/* ========================================================
   MEET THE TEAM SECTION 
   ======================================================== */

.team-section {
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    padding: 2rem 3.5rem;
    position: relative;
}

.team-container {
    max-width: 1290px;
    margin: 0 auto;
}

/* Section Header */
.team-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.team-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #FDB913;
    background: rgba(253, 185, 19, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.team-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.team-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
}

/* Team Member Card */
.team-member {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member__image-wrapper {
    width: 100%;
    aspect-ratio: 3/3.5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.team-member:hover .team-member__image-wrapper {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(253, 185, 19, 0.15);
}

.team-member__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.5s ease;
}

.team-member:hover .team-member__image {
    transform: scale(1.05);
}

.team-member__content {
    padding: 0 0.5rem;
}

.team-member__name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #414141;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.team-member__role {
    font-size: 0.875rem;
    font-weight: 400;
    color: #FDB913;
    margin: 0;
    line-height: 1.2;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */

/* Extra Large Desktops (1580px+) */
@media (min-width: 1580px) {
    .team-section {
        padding: 7rem 3.5rem;
    }

    .team-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .team-grid {
        gap: 2.5rem;
    }

    .team-member__name {
        font-size: 1rem;
    }

    .team-member__role {
        font-size: 0.9rem;
    }
}

/* Large Desktops (1400px - 1579px) */
@media (max-width: 1579px) {
    .team-section {
        padding: 6rem 3rem;
    }

    .team-title {
        font-size: 3rem;
    }

    .team-grid {
        gap: 2rem;
    }
}

/* Medium Desktops (1200px - 1399px) */
@media (max-width: 1399px) {
    .team-section {
        padding: 5.5rem 3.3rem;
    }

    .team-title {
        font-size: 2.8rem;
    }

    .team-grid {
        gap: 1.75rem;
    }

    .team-member__name {
        font-size: 0.9rem;
    }

    .team-member__role {
        font-size: 0.85rem;
    }
}

/* Small Desktops (1000px - 1199px) */
@media (max-width: 1199px) {
    .team-section {
        padding: 5rem 3.3rem;
    }

    .team-title {
        font-size: 2.6rem;
    }

    .team-header {
        margin-bottom: 3rem;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Tablets (768px - 999px) */
@media (max-width: 999px) {
    .team-section {
        padding: 4.5rem 2.5rem;
    }

    .team-title {
        font-size: 2.4rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .team-subtitle {
        font-size: 0.9rem;
        padding: 0.4rem 1.25rem;
    }

    .team-description {
        font-size: 0.95rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .team-member__name {
        font-size: 0.93rem;
    }
}

/* Small Tablets (640px - 767px) */
@media (max-width: 767px) {
    .team-section {
        padding: 4rem 2rem;
    }

    .team-title {
        font-size: 2.2rem;
    }

    .team-header {
        margin-bottom: 2.5rem;
    }

    .team-grid {
        gap: 1.75rem;
        max-width: 500px;
    }
}

/* Large Mobile (480px - 639px) - SINGLE COLUMN CENTERED */
@media (max-width: 639px) {
    .team-section {
        padding: 3.5rem 1.5rem;
    }

    .team-title {
        font-size: 2rem;
    }

    .team-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .team-description {
        font-size: 0.9rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 320px;
        margin: 0 auto;
    }

    .team-member__image-wrapper {
        border-radius: 14px;
        margin-bottom: 0.75rem;
    }

    .team-member__image {
        border-radius: 10px;
    }

    .team-member__name {
        font-size: 0.95rem;
    }

    .team-member__role {
        font-size: 0.875rem;
    }
}

/* Medium Mobile (390px - 479px) */
@media (max-width: 479px) {
    .team-section {
        padding: 3rem 1.25rem;
    }

    .team-title {
        font-size: 1.8rem;
    }

    .team-grid {
        gap: 1.75rem;
        max-width: 280px;
    }

    .team-member__name {
        font-size: 0.9rem;
    }

    .team-member__role {
        font-size: 0.85rem;
    }
}

/* Small Mobile (360px - 389px) */
@media (max-width: 389px) {
    .team-section {
        padding: 2.5rem 1rem;
    }

    .team-title {
        font-size: 1.6rem;
    }

    .team-grid {
        gap: 1.5rem;
        max-width: 260px;
    }

    .team-member__image-wrapper {
        border-radius: 12px;
    }

    .team-member__image {
        border-radius: 9px;
    }

    .team-member__name {
        font-size: 0.88rem;
    }

    .team-member__role {
        font-size: 0.825rem;
    }
}

/* Extra Small Mobile (≤359px) */
@media (max-width: 359px) {
    .team-section {
        padding: 2.2rem 0.875rem;
    }

    .team-title {
        font-size: 1.5rem;
    }

    .team-grid {
        gap: 1.25rem;
        max-width: 240px;
    }

    .team-member__image-wrapper {
        border-radius: 10px;
    }

    .team-member__image {
        border-radius: 8px;
    }

    .team-member__name {
        font-size: 0.85rem;
    }

    .team-member__role {
        font-size: 0.8rem;
    }
}