/* =========================
   TEAM SECTION
   ========================= */

.team-section {
    padding: 60px 5%;
    background: #f9f9f9;
    text-align: center;
}

.team-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #b11226;
    text-transform: uppercase;
}

.team-hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}


/* Scrollable container */

.team-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    gap: 20px;
}


/* Hide scrollbar */

.team-scroll-container::-webkit-scrollbar {
    display: none;
}

.team-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* Team Cards */

.team-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 220px;
    flex: 0 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}


/* Team Photo */

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #b11226;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.1);
}


/* Name & Role */

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.team-card p {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 15px;
}


/* Social Icons */

.team-socials a {
    margin: 0 5px;
    color: #b11226;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.team-socials a:hover {
    color: #7a0c18;
}


/* Scroll Buttons */

.team-scroll-btn {
    background: #b11226;
    color: white;
    border: none;
    font-size: 1.8rem;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s ease;
}

.team-scroll-btn:hover {
    background: #7a0c18;
}

.team-scroll-btn.left {
    left: -25px;
}

.team-scroll-btn.right {
    right: -25px;
}


/* Responsive */


/* =========================
   Mobile Styling for Team Section
   ========================= */


/* Medium Devices (Tablets) */

@media screen and (max-width: 992px) {
    .team-hero h1 {
        font-size: 2.4rem;
    }
    .team-hero p {
        font-size: 1.1rem;
        max-width: 90%;
        margin-bottom: 30px;
    }
    .team-card {
        width: 180px;
        padding: 15px;
    }
    .team-photo {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    .team-card h3 {
        font-size: 1.1rem;
    }
    .team-card p {
        font-size: 0.9rem;
    }
    .team-socials a {
        font-size: 0.9rem;
        margin: 0 4px;
    }
    .team-scroll-btn.left {
        left: -20px;
    }
    .team-scroll-btn.right {
        right: -20px;
    }
}


/* Small Devices (Mobile Phones) */

@media screen and (max-width: 576px) {
    .team-section {
        padding: 50px 5%;
    }
    .team-hero h1 {
        font-size: 2rem;
    }
    .team-hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .team-scroll-container {
        gap: 15px;
    }
    .team-card {
        width: 160px;
        padding: 12px;
    }
    .team-photo {
        width: 80px;
        height: 80px;
        border-width: 2px;
    }
    .team-card h3 {
        font-size: 1rem;
    }
    .team-card p {
        font-size: 0.85rem;
    }
    .team-socials a {
        font-size: 0.85rem;
        margin: 0 3px;
    }
    .team-scroll-btn {
        font-size: 1.5rem;
        padding: 8px 12px;
    }
    .team-scroll-btn.left {
        left: -15px;
    }
    .team-scroll-btn.right {
        right: -15px;
    }
}