/* ==========================================================
   IBIMA CBO — TEAM PAGE
   team.css

   Designed for:
   - 10+ team members
   - 20+ team members
   - 30+ team members
   - Desktop
   - Tablet
   - Mobile
========================================================== */


/* ==========================================================
   01. TEAM HERO
========================================================== */

.team-hero {
    position: relative;
    min-height: 360px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(3, 25, 77, 0.97) 0%,
            rgba(16, 40, 97, 0.91) 35%,
            rgba(194, 198, 207, 0.171) 60%,
            rgba(255, 255, 255, 0) 100%
        ),
        url("../images/about-team.jpg")
        center center / cover no-repeat;
}


/* ==========================================================
   HERO PATTERN
========================================================== */

.team-hero-pattern {
    position: absolute;
    inset: 0;

    opacity: 0.12;

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.35) 1px,
            transparent 1px
        );

    background-size: 20px 20px;

    pointer-events: none;
}


/* ==========================================================
   HERO CURVE
========================================================== */

.team-hero::after {
    content: "";

    position: absolute;
    left: -5%;
    bottom: -55px;

    width: 110%;
    height: 95px;

    background: #ffffff;

    border-radius:
        50% 50% 0 0 /
        70% 70% 0 0;

    border-top: 8px solid var(--ibima-green);

    z-index: 2;
}


/* ==========================================================
   HERO CONTAINER
========================================================== */

.team-hero .container {
    position: relative;
    z-index: 3;
}


/* ==========================================================
   HERO CONTENT
========================================================== */

.team-hero-content {
    width: 58%;

    padding:
        70px 0
        85px;
}

.team-hero-text {
    max-width: 680px;
}


/* ==========================================================
   HERO LABEL
========================================================== */

.team-hero-label {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--ibima-green);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* ==========================================================
   HERO TITLE
========================================================== */

.team-hero-text h1 {
    margin: 0;

    color: #ffffff;

    font-size: 48px;
    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -0.6px;
}


/* ==========================================================
   HERO LINE
========================================================== */

.team-hero-line {
    width: 78px;
    height: 4px;

    margin:
        13px 0
        18px;

    border-radius: 10px;

    background: var(--ibima-green);
}


/* ==========================================================
   HERO DESCRIPTION
========================================================== */

.team-hero-text p {
    max-width: 620px;

    margin: 0;

    color: rgba(255, 255, 255, 0.95);

    font-size: 17px;
    line-height: 1.75;
}


/* ==========================================================
   02. TEAM MEMBERS SECTION
========================================================== */

.team-members-section {
    padding:
        80px 0
        90px;

    background: #ffffff;
}


/* ==========================================================
   SECTION HEADING
========================================================== */

.team-section-heading {
    max-width: 760px;

    margin:
        0 auto
        55px;

    text-align: center;
}

.team-section-heading > span {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--ibima-green);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.team-section-heading h2 {
    margin: 0;

    color: var(--ibima-navy);

    font-size: 36px;
    line-height: 1.2;

    font-weight: 800;
}

.team-section-heading p {
    max-width: 680px;

    margin:
        0 auto;

    color: #667085;

    font-size: 16px;
    line-height: 1.75;
}


/* ==========================================================
   HEADING LINE
========================================================== */

.heading-line {
    width: 65px;
    height: 4px;

    margin:
        15px auto
        18px;

    border-radius: 10px;

    background: var(--ibima-green);
}

.heading-line.left {
    margin-left: 0;
    margin-right: 0;
}


/* ==========================================================
   03. TEAM GRID

   Automatically expands vertically for:
   10 members
   20 members
   30 members
   50+ members
========================================================== */

.team-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 26px;

    align-items: stretch;
}


/* ==========================================================
   04. TEAM CARD
========================================================== */

.team-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e6ebf1;

    border-radius: 16px;

    box-shadow:
        0 8px 28px rgba(3, 25, 77, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* ==========================================================
   CARD TOP ACCENT
========================================================== */

.team-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: var(--ibima-green);

    transform: scaleX(0);

    transform-origin: left;

    transition:
        transform 0.3s ease;

    z-index: 2;
}


/* ==========================================================
   CARD HOVER
========================================================== */

.team-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(3, 25, 77, 0.10);

    box-shadow:
        0 18px 42px rgba(3, 25, 77, 0.12);
}

.team-card:hover::before {
    transform: scaleX(1);
}


/* ==========================================================
   05. TEAM PHOTO
========================================================== */

.team-photo {
    position: relative;

    width: 100%;

    aspect-ratio: 4 / 4.4;

    overflow: hidden;

    background: #edf2f7;
}

.team-photo::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 70%,
            rgba(3, 25, 77, 0.12)
        );

    pointer-events: none;
}

.team-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.5s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.045);
}


/* ==========================================================
   06. TEAM CARD CONTENT
========================================================== */

.team-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding:
        23px 22px
        21px;
}


/* ==========================================================
   TEAM ROLE
========================================================== */

.team-role {
    display: inline-block;

    align-self: flex-start;

    margin-bottom: 8px;

    color: var(--ibima-green);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


/* ==========================================================
   TEAM MEMBER NAME
========================================================== */

.team-card-content h3 {
    margin:
        0 0
        10px;

    color: var(--ibima-navy);

    font-size: 20px;
    line-height: 1.3;

    font-weight: 800;
}


/* ==========================================================
   TEAM DESCRIPTION
========================================================== */

.team-card-content p {
    margin:
        0 0
        18px;

    color: #667085;

    font-size: 14px;
    line-height: 1.65;
}


/* ==========================================================
   07. TEAM SOCIAL
========================================================== */

.team-social {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: auto;
}

.team-social a {
    width: 34px;
    height: 34px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--ibima-navy);

    background: #eef3f8;

    font-size: 13px;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.team-social a:hover {
    color: #ffffff;

    background: var(--ibima-green);

    transform: translateY(-2px);
}


/* ==========================================================
   08. OUR APPROACH
========================================================== */

.team-approach-section {
    padding:
        90px 0;

    background: #f5f8fb;
}

.team-approach-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 70px;

    align-items: center;
}


/* ==========================================================
   APPROACH IMAGE
========================================================== */

.team-approach-image {
    position: relative;

    overflow: hidden;

    min-height: 460px;

    border-radius: 18px;

    box-shadow:
        0 18px 45px rgba(3, 25, 77, 0.10);
}

.team-approach-image::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 7px;

    background: var(--ibima-green);
}

.team-approach-image img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 460px;

    object-fit: cover;
}


/* ==========================================================
   APPROACH CONTENT
========================================================== */

.team-approach-content {
    max-width: 600px;
}

.team-approach-content > span {
    display: inline-block;

    margin-bottom: 9px;

    color: var(--ibima-green);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.team-approach-content h2 {
    margin: 0;

    color: var(--ibima-navy);

    font-size: 36px;
    line-height: 1.25;

    font-weight: 800;
}

.team-approach-content p {
    margin:
        0 0
        17px;

    color: #667085;

    font-size: 16px;
    line-height: 1.75;
}


/* ==========================================================
   APPROACH POINTS
========================================================== */

.team-approach-points {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        14px 25px;

    margin-top: 28px;
}

.team-approach-points > div {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--ibima-navy);

    font-size: 14px;
    font-weight: 700;
}

.team-approach-points i {
    color: var(--ibima-green);

    font-size: 16px;
}


/* ==========================================================
   09. TEAM CTA

   IMPORTANT:
   CTA HAS ITS OWN NAVY BACKGROUND.
========================================================== */

.team-cta {
    position: relative;

    display: block;

    width: 100%;

    overflow: hidden;

    padding:
        60px 0;

    background-color: var(--ibima-navy) !important;

    color: #ffffff;
}


/* ==========================================================
   CTA DECORATION
========================================================== */

.team-cta::before {
    content: "";

    position: absolute;

    top: -120px;
    right: -100px;

    width: 330px;
    height: 330px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.04);

    pointer-events: none;
}

.team-cta::after {
    content: "";

    position: absolute;

    bottom: -140px;
    left: -100px;

    width: 340px;
    height: 340px;

    border-radius: 50%;

    border:
        35px solid rgba(255, 255, 255, 0.03);

    pointer-events: none;
}


/* ==========================================================
   CTA CONTENT
========================================================== */

.team-cta-content {
    position: relative;

    z-index: 5;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 30px;

    width: 100%;

    background: transparent !important;
}


/* ==========================================================
   CTA ICON
========================================================== */

.team-cta-icon {
    width: 72px;
    height: 72px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 16px;

    color: var(--ibima-green);

    background:
        rgba(255, 255, 255, 0.10);

    font-size: 29px;
}


/* ==========================================================
   CTA TEXT
========================================================== */

.team-cta-text {
    background: transparent !important;
}

.team-cta-text span {
    display: block;

    margin-bottom: 6px;

    color: var(--ibima-green) !important;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.team-cta-text h2 {
    margin:
        0 0
        8px;

    color: #000000 !important;

    font-size: 28px;
    line-height: 1.25;

    font-weight: 800;
}

.team-cta-text p {
    max-width: 650px;

    margin: 0;

    color:
        rgba(0, 0, 0, 0.82) !important;

    font-size: 15px;
    line-height: 1.65;
}


/* ==========================================================
   10. CTA BUTTONS
========================================================== */

.team-cta-buttons {
    display: flex;

    align-items: center;

    gap: 12px;

    white-space: nowrap;
}

.team-btn-primary {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        13px 21px;

    color: #ffffff !important;

    background:
        var(--ibima-green) !important;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none !important;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.team-btn-primary:hover {
    color: var(--ibima-navy) !important;

    background: #063d26 !important;

    transform:
        translateY(-2px);
}


.team-btn-secondary {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        12px 20px;

    color: #000000 !important;

    background: transparent !important;

    border:
        1px solid rgba(255, 255, 255, 0.50);

    border-radius: 6px;

    font-size: 13px;
    font-weight: 750;

    text-decoration: none !important;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.team-btn-secondary:hover {
    color: var(--ibima-navy) !important;

    background: #000000 !important;

    border-color: #ffffff;
}





/* ==========================================================
   11. LARGE DESKTOP
========================================================== */

@media (min-width: 1400px) {

    .team-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 30px;
    }

    .team-card-content {
        padding:
            25px 24px
            23px;
    }

    .team-card-content h3 {
        font-size: 21px;
    }
}


/* ==========================================================
   12. SMALL DESKTOP / TABLET
========================================================== */

@media (max-width: 1200px) {

    .team-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 22px;
    }

    .team-approach-grid {
        gap: 45px;
    }

    .team-approach-content h2 {
        font-size: 32px;
    }
}


/* ==========================================================
   13. TABLET
========================================================== */

@media (max-width: 992px) {

    /* HERO */

    .team-hero-content {
        width: 70%;
    }


    /* TEAM */

    .team-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px;
    }


    /* APPROACH */

    .team-approach-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .team-approach-image {
        min-height: 400px;
    }

    .team-approach-image img {
        min-height: 400px;
    }

    .team-approach-content {
        max-width: 100%;
    }


    /* CTA */

    .team-cta-content {
        grid-template-columns:
            auto
            1fr;

        gap: 25px;
    }

    .team-cta-buttons {
        grid-column: 2;

        justify-content: flex-start;
    }
}


/* ==========================================================
   14. MOBILE
========================================================== */

@media (max-width: 768px) {

    /* ======================================================
       HERO
    ====================================================== */

    .team-hero {
        min-height: 330px;

        background:
            linear-gradient(
                90deg,
                rgba(3, 25, 77, 0.96),
                rgba(3, 25, 77, 0.78)
            ),
            url("../images/about-team.jpg")
            center center / cover no-repeat;
    }

    .team-hero::after {
        bottom: -45px;

        height: 75px;

        border-top-width: 6px;
    }

    .team-hero-content {
        width: 100%;

        padding:
            60px 0
            70px;
    }

    .team-hero-text h1 {
        font-size: 36px;
    }

    .team-hero-text p {
        max-width: 100%;

        font-size: 15px;

        line-height: 1.7;
    }


    /* ======================================================
       TEAM SECTION
    ====================================================== */

    .team-members-section {
        padding:
            60px 0
            70px;
    }

    .team-section-heading {
        margin-bottom: 38px;
    }

    .team-section-heading h2 {
        font-size: 29px;
    }

    .team-section-heading p {
        font-size: 15px;
    }

    .team-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .team-card-content {
        padding:
            21px 18px
            19px;
    }

    .team-card-content h3 {
        font-size: 18px;
    }

    .team-card-content p {
        font-size: 13px;

        line-height: 1.6;
    }


    /* ======================================================
       APPROACH
    ====================================================== */

    .team-approach-section {
        padding:
            65px 0;
    }

    .team-approach-image {
        min-height: 330px;

        border-radius: 14px;
    }

    .team-approach-image img {
        min-height: 330px;
    }

    .team-approach-content h2 {
        font-size: 29px;
    }

    .team-approach-content p {
        font-size: 15px;
    }

    .team-approach-points {
        gap:
            13px 18px;
    }


    /* ======================================================
       CTA
    ====================================================== */

    .team-cta {
        padding:
            50px 0;
    }

    .team-cta-content {
        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .team-cta-text {
        width: 100%;
    }

    .team-cta-text h2 {
        font-size: 25px;
    }

    .team-cta-text p {
        font-size: 14px;
    }

    .team-cta-buttons {
        display: flex;

        flex-wrap: wrap;

        width: 100%;
    }

    .team-btn-primary,
    .team-btn-secondary {
        flex: 1;

        min-width: 135px;

        text-align: center;
    }
}


/* ==========================================================
   15. SMALL MOBILE
========================================================== */

@media (max-width: 540px) {

    .team-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .team-photo {
        aspect-ratio: 4 / 3.8;
    }

    .team-card-content {
        padding:
            22px 20px
            20px;
    }

    .team-card-content h3 {
        font-size: 20px;
    }

    .team-card-content p {
        font-size: 14px;
    }

    .team-approach-points {
        grid-template-columns: 1fr;
    }

    .team-btn-primary,
    .team-btn-secondary {
        width: 100%;

        flex: none;
    }
}


/* ==========================================================
   16. VERY SMALL PHONES
========================================================== */

@media (max-width: 380px) {

    .team-hero-text h1 {
        font-size: 32px;
    }

    .team-hero-text p {
        font-size: 14px;
    }

    .team-section-heading h2 {
        font-size: 27px;
    }

    .team-card-content {
        padding:
            20px 18px;
    }

    .team-card-content h3 {
        font-size: 19px;
    }

    .team-approach-content h2 {
        font-size: 27px;
    }

    .team-cta-text h2 {
        font-size: 23px;
    }
}