/* ===== Team Section Reset & Styles ===== */
.team-section,
.team-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

.team-section {
    width: 100vw !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px clamp(20px, 4vw, 48px) 48px !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    background: #ffffff !important;
    font-family: 'Montserrat', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
    overflow: hidden;
}

/* Title */
.team-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 16px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    padding: 0 20px !important;
}

/* Tags */
.team-tags {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin: 0 auto 40px auto !important;
    background-color: rgba(255, 167, 167, 0.24) !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    border: none !important;
}

.team-tag {
    color: #FF0000 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    border-right: 1px solid rgba(255, 0, 0, 0.3) !important;
    padding: 0 12px !important;
}

.team-tag:first-child {
    padding-left: 0 !important;
}

.team-tag:last-child {
    border-right: none !important;
    padding-right: 0 !important;
}

/* Content Layout — centred single column */
.team-content {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Info Card — centred */
.team-info {
    width: 100% !important;
    background: #ffffff !important;
    padding: 0 !important;
    text-align: center !important;
    animation: teamFadeIn 0.5s ease forwards !important;
}

.team-name {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
}

.team-role {
    color: #FF0000 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin-bottom: 16px !important;
}

.team-bio {
    color: #4b5563 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #e5e7eb !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Contact — single horizontal row */
.team-contact {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.team-contact-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    width: 100% !important;
    padding-top: 8px !important;
}

.team-contact-sep {
    color: #d1d5db !important;
    font-size: 1.1rem !important;
    padding: 0 14px !important;
    user-select: none !important;
    flex-shrink: 0 !important;
}

.team-contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.3s ease, transform 0.3s ease !important;
    white-space: nowrap !important;
}

#teamPhone {
    color: #ff0000 !important;
}
#teamPhone:hover {
    color: #cc0000 !important;
    transform: translateY(-2px) !important;
}

#teamWhatsapp {
    color: #ff0000 !important;
}
#teamWhatsapp .team-icon-svg {
    color: #25D366 !important;
}
#teamWhatsapp:hover {
    color: #cc0000 !important;
    transform: translateY(-2px) !important;
}
#teamWhatsapp:hover .team-icon-svg {
    color: #1ebd59 !important;
}

#teamEmail {
    color: #000000 !important;
}
#teamEmail:hover {
    color: #333333 !important;
    transform: translateY(-2px) !important;
}

.team-icon-svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

/* Navigation */
.team-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

.team-nav-prev,
.team-nav-next {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    outline: none !important;
}

.team-nav-prev {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #4b5563 !important;
}

.team-nav-prev:hover {
    background: #e5e7eb !important;
}

.team-nav-next {
    background: #FF0000 !important;
    color: #ffffff !important;
}

.team-nav-next:hover {
    background: #cc0000 !important;
}

/* Animations */
@keyframes teamFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .team-section {
        padding: 40px 20px 32px !important;
        align-items: center !important;
    }

    .team-title {
        font-size: 1.6rem !important;
        margin-bottom: 12px !important;
        padding: 0 16px !important;
        width: 100% !important;
    }

    .team-tags {
        display: inline-flex !important;
        width: auto !important;
        max-width: calc(100vw - 32px) !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 28px !important;
        padding: 6px 10px !important;
        background-color: #FFA7A73D !important;
        border-radius: 6px !important;
        flex-wrap: nowrap !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: hidden !important;
    }

    .team-tag {
        font-size: 0.62rem !important;
        line-height: 1 !important;
        padding: 0 7px !important;
        white-space: nowrap !important;
    }

    .team-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .team-info {
        width: 100% !important;
        text-align: center !important;
    }

    .team-name {
        font-size: 1.4rem !important;
    }

    .team-role {
        font-size: 0.85rem !important;
    }

    .team-bio {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
    }

    .team-contact-row {
        flex-wrap: wrap !important;
        gap: 8px 0 !important;
        justify-content: center !important;
    }

    .team-contact-sep {
        padding: 0 10px !important;
    }

    .team-contact-item {
        font-size: 0.82rem !important;
    }

    .team-nav {
        justify-content: center !important;
        width: 100% !important;
        margin-top: 8px !important;
    }
}

/* Very small screens: stack contacts vertically */
@media (max-width: 480px) {
    .team-contact-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .team-contact-sep {
        display: none !important;
    }
}
