/* =========================================
   TEAM PAGE – HERO (LIGHT THEME)
========================================= */
.team-hero {
    position: relative;
    height: 100vh;
    min-height: 400px;
    background: url("../images/team.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.team-hero-content {
    position: relative;
    z-index: 2;
}

.team-hero-content h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.team-hero-content p {
    color: #f1f5f9;
    font-size: 18px;
    margin-top: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.highlight { 
    color: #facc15; 
}

/* =========================================
   TEAM SECTION - STICKY STACK
========================================= */
.team-scroll-container {
    background-color: #f8fafc;
    overflow: hidden;
}

.team-card-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.team-card-inner {
    display: flex;
    max-width: 1100px;
    width: 90%;
    gap: 60px;
    align-items: center;
    justify-content: center;
}

/* =========================================
   Polaroid Image Box
========================================= */
.polaroid-frame {
    background: #ffffff;
    padding: 15px 15px 50px 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid #facc15;
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s ease;
    border-radius: 6px;
}

.polaroid-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.polaroid-caption {
    color: #0f172a;
    font-family: 'Brush Script MT', cursive;
    font-size: 1.8rem;
    text-align: center;
    margin-top: 15px;
}

/* =========================================
   Text Styling
========================================= */
.team-text-box {
    flex: 1;
}

.team-text-box h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    margin-bottom: 5px;
    color: #0f172a;
    line-height: 1;
}

.yellow-text {
    color: #facc15;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   TEAM LIST SECTION (GRID)
========================================= */
.team-list-section {
    background: #ffffff;
    padding: 100px 20px;
}

.team-list-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-list-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 60px;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.team-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f8fafc;
    padding: 24px 20px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-list-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.team-list-image {
    width: 90px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #facc15;
    margin-bottom: 16px;
}

.team-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-list-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.team-list-info p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
========================================= */

/* Tablets */
@media (max-width: 992px) {
    .team-card-inner {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .polaroid-frame {
        max-width: 360px;
        padding: 12px 12px 40px 12px;
    }

    .polaroid-frame img {
        height: 380px;
    }

    .polaroid-caption {
        font-size: 1.5rem;
    }

    .team-text-box h2 {
        font-size: 2.8rem;
    }

    .yellow-text {
        font-size: 1.2rem;
    }
}

/* Mobiles */
@media (max-width: 576px) {
    .team-card-section {
        height: auto;
        padding: 60px 0;
    }

    .polaroid-frame {
        max-width: 280px;
        padding: 10px 10px 32px 10px;
    }

    .polaroid-frame img {
        height: 280px;
    }

    .polaroid-caption {
        font-size: 1.2rem;
        margin-top: 10px;
    }

    .team-text-box h2 {
        font-size: 2rem;
    }

    .yellow-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .team-list {
        gap: 16px;
    }

    .team-list-image {
        width: 70px;
        height: 70px;
    }

    .team-list-info h3 {
        font-size: 16px;
    }

    .team-list-info p {
        font-size: 11px;
    }
}