/* ===== Leading Organizations Auto-Sliding Carousel ===== */
:root {
    --leading-gold-primary: #D6C58C;
    --leading-gold-light: #F1D27A;
    --leading-gold-dark: #B48C0C;
    --leading-bg-dark: #0a0a0a;
    --leading-bg-card: #ffffff;
    --leading-text-light: #ffffff;
    --leading-text-dark: #384F76;
    --leading-slide-speed: 60s;
}

/* Section Container */
.leading-orgs-section {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

/* Section Header */
.leading-orgs-header {
    text-align: center;
    padding: 0 20px 50px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.leading-orgs-header.in-view {
    opacity: 1;
    transform: translateY(0);
}

.leading-orgs-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.leading-orgs-tagline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--leading-text-dark);
    margin-bottom: 16px;
    padding: 8px 24px;
    border: 1px solid rgba(56, 79, 118, 0.3);
    border-radius: 30px;
    background: rgba(56, 79, 118, 0.05);
}

.leading-orgs-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.leading-orgs-highlight {
    color: var(--leading-gold-primary);
    background: linear-gradient(135deg, #D6C58C 0%, #B48C0C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leading-orgs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.leading-orgs-divider::before,
.leading-orgs-divider::after {
    content: '';
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--leading-gold-primary), transparent);
}

.leading-orgs-diamond {
    width: 12px;
    height: 12px;
    background: var(--leading-gold-primary);
    transform: rotate(45deg);
    box-shadow: 0 0 20px rgba(214, 197, 140, 0.6);
    animation: pulseDiamond 2s ease-in-out infinite;
}

@keyframes pulseDiamond {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(214, 197, 140, 0.6);
        transform: rotate(45deg) scale(1);
    }

    50% {
        box-shadow: 0 0 30px rgba(214, 197, 140, 0.9);
        transform: rotate(45deg) scale(1.1);
    }
}

/* Slider Container */
.leading-orgs-slider-container {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

/* Sliding Rows – native scroll, JS drives auto-scroll */
.leading-orgs-row {
    position: relative;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    /* Hide scrollbar across browsers */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    /* iOS momentum scroll */
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-x;
}

.leading-orgs-row::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}



.leading-orgs-row.in-view {
    opacity: 1;
    transform: translateX(0);
}

.leading-orgs-row:last-child {
    margin-bottom: 0;
}

/* Track – no animation, JS scrollLeft drives movement */
.leading-orgs-track {
    display: flex;
    gap: 30px;
    width: max-content;
}

/* Organization Item */
.leading-org-item {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
}

.leading-org-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: var(--leading-bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.leading-org-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(214, 197, 140, 0.5);
    box-shadow: 0 8px 30px rgba(214, 197, 140, 0.25);
}

/* Logo Image */
.leading-org-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.leading-org-card:hover .leading-org-logo {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* Overlay Effect */
.leading-org-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(214, 197, 140, 0) 0%,
            rgba(214, 197, 140, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.leading-org-card:hover .leading-org-overlay {
    opacity: 1;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
    .leading-orgs-section {
        padding: 50px 0;
    }

    .leading-orgs-header {
        padding: 0 20px 40px;
    }

    .leading-org-item {
        width: 180px;
        height: 110px;
    }

    .leading-orgs-track {
        gap: 25px;
    }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 767px) {
    :root {
        --leading-slide-speed: 45s;
    }

    .leading-orgs-section {
        padding: 40px 0;
    }

    .leading-orgs-header {
        padding: 0 16px 30px;
    }

    .leading-orgs-tagline {
        font-size: 0.65rem;
        padding: 6px 18px;
    }

    .leading-orgs-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 15px;
    }

    .leading-orgs-divider::before,
    .leading-orgs-divider::after {
        width: 50px;
    }

    .leading-org-item {
        width: 150px;
        height: 90px;
    }

    .leading-orgs-track {
        gap: 20px;
    }

    .leading-org-logo {
        padding: 12px;
    }

    .leading-orgs-row {
        margin-bottom: 20px;
    }
}

/* ===== Very Small Screens ===== */
@media (max-width: 480px) {
    :root {
        --leading-slide-speed: 35s;
    }

    .leading-orgs-section {
        padding: 30px 0;
    }

    .leading-orgs-header {
        padding: 0 12px 25px;
    }

    .leading-org-item {
        width: 130px;
        height: 80px;
    }

    .leading-orgs-track {
        gap: 15px;
    }

    .leading-org-logo {
        padding: 10px;
    }

    .leading-orgs-row {
        margin-bottom: 15px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .leading-orgs-diamond {
        animation: none;
    }

    .leading-orgs-track {
        animation: none !important;
    }

    .leading-orgs-row,
    .leading-orgs-header {
        transition: none;
        opacity: 1;
        transform: none;
    }
}