/* Collaborators Section Styling */
.clients-section .nav-tabs {
    display: flex;
    align-items: center;
    border: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0.25rem 0.5rem;
    /* allow horizontal scroll on narrow screens and prevent wrapping */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.clients-section .nav-item {
    margin: 0;
}

.clients-section .nav-link {
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    margin: 0;
    line-height: 1.2;
    background-color: transparent;
    /* keep each pill inline and prevent shrinking so scroll works */
    flex: 0 0 auto;
    white-space: nowrap;
}

.clients-section .nav-link:hover {
    background-color: #f8f9fa;
    color: #198754;
    border-color: #e0e0e0;
}

.clients-section .nav-link.active {
    background-color: #198754;
    color: white !important;
    border-color: #198754;
    box-shadow: none;
}

/* Client items styling */
.client {
    display: none;
}

.client[data-type="all"],
.client[data-type="national"],
.client[data-type="international"] {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clients-section .nav-tabs {
        margin-top: 10px;
        gap: 0.4rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .clients-section .nav-link {
        padding: 0.28rem 0.7rem;
        font-size: 0.68rem;
    }
    
    .clients-section .nav-tabs {
        /* keep nowrap and allow horizontal scroll */
        flex-wrap: nowrap;
    }
    
    .clients-section .nav-item {
        margin-bottom: 5px;
    }
}

/* Extra small devices: make pills compact and touch-friendly */
@media (max-width: 480px) {
    .clients-section .nav-tabs {
        gap: 0.35rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .clients-section .nav-link {
        padding: 0.22rem 0.6rem;
        font-size: 0.62rem;
    }

    .clients-section .nav-item {
        margin-bottom: 0.25rem;
    }
}
