﻿/* =========================================================
   XFSPL TEAM PAGE
   Premium Financial Services Design
========================================================= */

.xfspl-team-page {
    --team-navy: #0B1F3A;
    --team-dark: #06172C;
    --team-blue: #1557B0;
    --team-gold: #D4A72C;
    --team-bg: #F7F9FC;
    --team-white: #ffffff;
    --team-text: #172033;
    --team-muted: #687588;
    --team-border: #E1E7EF;
    background: var(--team-bg);
    color: var(--team-text);
}


/* =========================================================
   HERO
========================================================= */

.team-hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    background: linear-gradient( 90deg, rgba(6, 23, 44, .98) 0%, rgba(6, 23, 44, .88) 48%, rgba(6, 23, 44, .45) 100% ), url('/images/team-bg.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.team-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient( circle at 80% 30%, rgba(212,167,44,.12), transparent 30% );
}

.team-hero .container {
    position: relative;
    z-index: 2;
}

.team-hero-content {
    max-width: 700px;
    padding: 80px 0;
}

.team-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--team-gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

    .team-eyebrow i {
        font-size: 15px;
    }

.team-hero h1 {
    color: #fff;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.05;
    font-weight: 800;
    margin: 0 0 25px;
    font-family: "Manrope", sans-serif;
}

    .team-hero h1 span {
        display: block;
        color: var(--team-gold);
    }

.team-hero p {
    max-width: 610px;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 30px;
}

.team-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.65);
    font-size: 14px;
}

    .team-breadcrumb a {
        color: #fff;
        text-decoration: none;
    }

    .team-breadcrumb i {
        color: var(--team-gold);
    }


/* =========================================================
   INTRO
========================================================= */

.team-intro {
    padding: 85px 0 55px;
    background: #fff;
}

.team-section-heading {
    max-width: 780px;
    margin: auto;
}

.team-section-label {
    display: inline-block;
    color: var(--team-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    margin-bottom: 12px;
}

.team-section-heading h2 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 18px;
}

    .team-section-heading h2 span {
        color: var(--team-blue);
    }

.team-section-heading p {
    color: var(--team-muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}


/* =========================================================
   DEPARTMENT
========================================================= */

.team-department {
    padding: 75px 0;
}

.leadership-section {
    background: var(--team-bg);
}

.sales-section {
    background: #fff;
}

.operations-section {
    background: var(--team-bg);
}

.it-hr-section {
    background: #fff;
}


/* =========================================================
   DEPARTMENT HEADING
========================================================= */

.department-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 38px;
}

.department-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--team-navy);
    color: var(--team-gold);
    border-radius: 14px;
    font-size: 24px;
    box-shadow: 0 12px 30px rgba(11,31,58,.15);
}

.department-heading > div:last-child > span {
    color: var(--team-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.department-heading h2 {
    margin: 3px 0 5px;
    font-family: "Manrope", sans-serif;
    font-size: 30px;
    font-weight: 800;
}

.department-heading p {
    color: var(--team-muted);
    margin: 0;
    font-size: 14px;
}


/* =========================================================
   TEAM GRID
========================================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.leadership-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operations-grid,
.it-hr-grid {
    grid-template-columns: repeat(2, minmax(0, 320px));
}


/* =========================================================
   TEAM CARD
========================================================= */

.team-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--team-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(11,31,58,.06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

    .team-card:hover {
        transform: translateY(-8px);
        border-color: rgba(212,167,44,.55);
        box-shadow: 0 22px 50px rgba(11,31,58,.14);
    }


/* =========================================================
   PHOTO
========================================================= */

.team-photo {
    position: relative;
    height: 285px;
    background: linear-gradient( 145deg, #EAF2FC, #DDE8F5 );
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .team-photo img {
        width: 100%;
        height: 100%;
       /* object-fit: cover;*/
        display: block;
    }

.photo-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 145deg, var(--team-navy), var(--team-blue) );
}

    .photo-placeholder span {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,.12);
        border: 2px solid rgba(212,167,44,.8);
        color: #fff;
        font-family: "Manrope", sans-serif;
        font-size: 34px;
        font-weight: 800;
        letter-spacing: 1px;
    }


/* =========================================================
   BADGE
========================================================= */

.team-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 7px 12px;
    background: var(--team-gold);
    color: var(--team-navy);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================================================
   TEAM INFO
========================================================= */

.team-info {
    padding: 23px 22px 22px;
}

    .team-info h3 {
        margin: 0 0 7px;
        font-family: "Manrope", sans-serif;
        font-size: 19px;
        line-height: 1.3;
        font-weight: 800;
    }

.team-designation {
    color: var(--team-blue);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.team-qualification {
    color: var(--team-muted);
    font-size: 12px;
    line-height: 1.5;
    min-height: 18px;
    margin: 0 0 17px;
}


/* =========================================================
   CONTACT
========================================================= */

.team-contact {
    padding-top: 15px;
    border-top: 1px solid var(--team-border);
}

    .team-contact a {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--team-muted);
        text-decoration: none;
        font-size: 12px;
        margin-bottom: 10px;
        transition: color .25s ease;
    }

        .team-contact a:last-child {
            margin-bottom: 0;
        }

        .team-contact a:hover {
            color: var(--team-blue);
        }

    .team-contact i {
        width: 18px;
        color: var(--team-gold);
        text-align: center;
    }

    .team-contact span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


/* =========================================================
   SOCIAL
========================================================= */

.team-social {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

    .team-social a {
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--team-blue);
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        transition: transform .25s ease, background .25s ease;
    }

        .team-social a:hover {
            transform: translateY(-3px);
            background: var(--team-gold);
            color: var(--team-navy);
        }


/* =========================================================
   FEATURED LEADER
========================================================= */

.featured-team-card {
    border-top: 4px solid var(--team-gold);
}


/* =========================================================
   CTA
========================================================= */

.team-cta {
    padding: 80px 0;
    background: linear-gradient( 110deg, var(--team-dark), var(--team-navy) );
}

.team-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.team-cta h2 {
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 12px;
}

    .team-cta h2 span {
        color: var(--team-gold);
    }

.team-cta p {
    max-width: 620px;
    color: rgba(255,255,255,.72);
    margin: 0;
    line-height: 1.7;
}

.team-cta-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.team-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: all .25s ease;
}

.team-btn-primary {
    background: var(--team-gold);
    color: var(--team-navy);
}

    .team-btn-primary:hover {
        background: #e4bd55;
        color: var(--team-navy);
        transform: translateY(-2px);
    }

.team-btn-outline {
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
}

    .team-btn-outline:hover {
        background: #fff;
        color: var(--team-navy);
    }


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {

    .team-grid,
    .leadership-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .operations-grid,
    .it-hr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 991px) {

    .team-hero {
        min-height: 420px;
    }

    .team-hero-content {
        padding: 65px 0;
    }

    .team-grid,
    .leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-photo {
        height: 260px;
    }

    .team-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 767px) {

    .team-hero {
        min-height: 390px;
        background: linear-gradient( 90deg, rgba(6,23,44,.96), rgba(6,23,44,.78) ), url('/images/team-bg.jpg') center / cover no-repeat;
    }

    .team-hero-content {
        padding: 55px 0;
    }

    .team-hero h1 {
        font-size: 42px;
    }

    .team-hero p {
        font-size: 15px;
    }

    .team-intro {
        padding: 60px 0 35px;
    }

    .team-department {
        padding: 55px 0;
    }

    .department-heading {
        align-items: flex-start;
    }

    .department-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        font-size: 20px;
    }

    .department-heading h2 {
        font-size: 25px;
    }

    .team-grid,
    .leadership-grid,
    .operations-grid,
    .it-hr-grid {
        grid-template-columns: 1fr;
    }

    .team-photo {
        height: 320px;
    }

    .team-cta {
        padding: 60px 0;
    }

    .team-cta-buttons {
        width: 100%;
        flex-direction: column;
    }

    .team-btn {
        width: 100%;
    }
}


@media (max-width: 480px) {

    .team-hero h1 {
        font-size: 35px;
    }

    .team-eyebrow {
        font-size: 11px;
    }

    .department-heading {
        gap: 13px;
    }

        .department-heading h2 {
            font-size: 22px;
        }

        .department-heading p {
            font-size: 12px;
        }

    .team-photo {
        height: 290px;
    }

    .team-info {
        padding: 20px 18px;
    }

        .team-info h3 {
            font-size: 18px;
        }
}
