/* TEAM SECTION */
#team {
    padding: 80px 8%;
}

#team h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

/* HORIZONTAL SCROLLER */
.team-scroller {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: thin;
}

/* Hide scrollbar on Chrome */
/* .team-scroller::-webkit-scrollbar {
    height: 10px;
}
.team-scroller::-webkit-scrollbar-thumb {
    background-color: black;
    border-radius: 10px;
} */

/* Individual Sliding Cards */
.team-card {
    flex: 0 0 70%;
    display: flex;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    scroll-snap-align: start;
}

/* Left: Photo */
.team-photo {
    flex: 4;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right: Info Text */
.team-info {
    flex: 5;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #444;
}

.team-info p {
    font-size: 1.2rem;
    color: #444;
}

    @media (max-width: 750px) {
        .team-info p {
            font-size: 1rem;
        }
    }
    /* MOBILE: Full-width cards */
    @media (max-width: 700px) {
        .team-card {
        flex: 0 0 90%;
        flex-direction: column;
        }
        .team-info {
            margin-top: -80px;
            margin-bottom: -80px;
        }
    }
        /* MOBILE: Full-width cards */
    @media (max-width: 500px) {
        .team-card {
        height: 600px;
        }
        .team-info {
            margin-top: -50px;
            margin-bottom: -50px;
        }
    }
    @media (max-width: 375px) {
        .team-card {
        height: 600px;
        }
        .team-info {
            margin-top: -20px;
            margin-bottom: -50px;
        }
    }