/* ================= TEAM PAGE ================= */

.team-page {
    background: #f8fafc;
    padding: 40px 0 80px;
}

/* MAIN CONTAINER */
.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= HERO ================= */

.team-hero {
    height: 320px;
    border-radius: 18px;
    background:
        linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
        url("/assets/img/team-hero.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 70px;
}

.team-hero-content {
    text-align: center;
    color: #fff;
}

.team-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}

.team-hero p {
    font-size: 18px;
    opacity: .9;
}

/* ================= SECTIONS ================= */

.team-section {
    margin-bottom: 80px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1193d433;
    padding-bottom: 8px;
    margin-bottom: 30px;
}

.section-head h2 {
    color: #1193d4;
    font-weight: 700;
}

.section-head span {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6b7280;
}

/* ================= GRID (DESKTOP) ================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 260px);
    gap: 22px;
    justify-content: center;
}

/* ================= TEAM CARD ================= */

.team-card {
    width: 260px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
}

/* IMAGE */
.team-img {
    aspect-ratio: 1 / 1; /* desktop */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* head safe */
}

/* TEXT */
.team-card h4 {
    font-size: 16px;
    font-weight: 600;
}

.team-card p {
    font-size: 13px;
    color: #1193d4;
}

/* ================= TRAINERS ================= */

.trainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.trainer-card {
    background: #fff;
    padding: 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.trainer-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.trainer-card h4 {
    font-size: 15px;
    font-weight: 600;
}

.trainer-card p {
    font-size: 12px;
    color: #6b7280;
}

/* ================================================= */
/* ================= MOBILE VIEW =================== */
/* ================================================= */

@media (max-width: 768px) {

    .team-container {
        padding: 0 16px;
    }

    /* HERO */
    .team-hero {
        height: 210px;
        margin-bottom: 40px;
    }

    .team-hero h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    .team-hero p {
        font-size: 14px;
    }

    .team-section {
        margin-bottom: 50px;
    }

    /* 🔥 MOBILE: VERTICAL CARDS */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
    }

    .team-card {
        width: 100%;
        max-width: 330px;
        padding: 8px;          /* 🔥 padding kam */
    }

    /* 🔥 IMAGE HEIGHT AUR KAM */
    .team-img {
        aspect-ratio: 6 / 7;  /* 👈 5/6 se thoda kam */
        margin-bottom: 6px;
    }

    .team-img img {
        object-position: top center;
    }

    /* TEXT COMPACT */
    .team-card h4 {
        font-size: 14px;
        margin-bottom: 2px;
        line-height: 1.25;
    }

    .team-card p {
        font-size: 12px;
        line-height: 1.25;
    }

    /* TRAINERS (mobile vertical) */
    .trainer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trainer-card {
        padding: 14px;
        gap: 12px;
    }

    .trainer-card img {
        width: 58px;
        height: 58px;
    }

    .trainer-card h4 {
        font-size: 16px;
    }

    .trainer-card p {
        font-size: 13px;
    }
}
