.team-section {
    text-align: center;
    padding: 50px 0;
    font-family: Arial, sans-serif;
}

.team-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px;
}

.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.card {
    flex: 0 0 calc(33.33% - 20px); /* Show 3 at a time */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    scroll-snap-align: start;
    text-align: center;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 15px 0 5px;
}

.card p {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}
