/* Partner Section Styles */
#partners-section {
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    overflow: hidden;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.partners-title {
    margin-bottom: 30px;
    color: var(--primary-dark, #333);
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.partners-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold, #FFD700);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Marquee Container */
.partners-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 40px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 80px;
    /* Increased from 40px */
    animation: scroll 30s linear infinite;
    min-width: 100%;
}

/* No Scroll Mode (Static Center) */
.partners-marquee.no-scroll {
    mask-image: none;
    -webkit-mask-image: none;
    justify-content: center;
}

.partners-marquee.no-scroll .partners-track {
    animation: none;
    justify-content: center;
    min-width: auto;
    width: 100%;
    flex-wrap: wrap;
}

/* Traditional Marquee (Enter Right, Exit Left) */
.partners-marquee.scroll-full .partners-track {
    animation-name: scroll-full;
    gap: 80px;
    /* Increased from 0 */
    justify-content: flex-start;
    padding-left: 100%;
    /* Start offset */
}

@keyframes scroll-full {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
        /* Move content width + padding width */
    }
}

/* Adjust duration for longer travel */
.partners-marquee.scroll-full .partners-track {
    animation-duration: 15s;
}

.partner-item {
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: scale(1.1);
}

.partner-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    /* filter: grayscale(100%); Removed to show original color */
    /* opacity: 0.7; Removed to show full brightness */
    mix-blend-mode: multiply;
    /* Makes white background transparent */
    transition: all 0.3s ease;
}

.partner-item:hover .partner-logo {
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .partner-logo {
        height: 40px;
    }

    .partners-track {
        gap: 20px;
    }
}