﻿.about-section {
    padding: 90px 0;
    background: #f5f8fc;
    position: relative;
    overflow: hidden;
}

    .about-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(rgba(255,255,255,.65),rgba(255,255,255,.65)), url('/images/patterns/hexagon.svg');
        opacity: .45;
        pointer-events: none;
    }

    .about-section .container {
        position: relative;
        z-index: 2;
    }

/*==============================*/

.section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 45px;
}

.heading-line {
    width: 55px;
    height: 4px;
    background: #8b0000;
    border-radius: 30px;
}

.section-heading h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #14213d;
    margin: 0;
}

/*==============================*/

.about-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 28px;
}

/*==============================*/

.about-card {
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: 22px;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
    transition: .45s;
}

    .about-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .6s;
    }

    /* Dark Gradient */

    .about-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(10,28,60,.92), rgba(10,28,60,.15), transparent);
        transition: .45s;
    }

/*==============================*/

.about-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px;
    color: #fff;
    transform: translateY(75px);
    transition: .45s;
}

    .about-overlay h3 {
        font-size: 1.45rem;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .about-overlay p {
        opacity: 0;
        transform: translateY(20px);
        transition: .4s;
        line-height: 1.7;
    }

/*==============================*/

.card-arrow {
    width: 52px;
    height: 52px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0056b3;
    font-size: 26px;
    transition: .4s;
}

/*==============================*/

.about-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,.18);
}

    .about-card:hover img {
        transform: scale(1.12);
    }

    .about-card:hover .about-overlay {
        transform: translateY(0);
    }

    .about-card:hover p {
        opacity: 1;
        transform: none;
    }

    .about-card:hover .card-arrow {
        transform: translateX(8px);
    }

/*==============================*/

@media(max-width:1200px) {

    .about-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:768px) {

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        height: 340px;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }
}
