/* Sponsor Marquee Styles */
.sponsors-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: #fff;
    padding: 40px 0;
    position: relative;
}

.sponsors-marquee-wrapper::before,
.sponsors-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.sponsors-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.sponsors-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.sponsors-marquee-container {
    display: flex;
    width: fit-content;
    /* Animation properties set dynamically by JavaScript */
    animation-duration: 30s; /* Default speed, overridden by inline style */
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.sponsors-marquee-container:hover {
    animation-play-state: paused;
}

.sponsors-marquee-track {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 30px;
    flex-shrink: 0;
}

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sponsor-item:hover {
    transform: scale(1.1);
}

.sponsor-logo {
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sponsor-item:hover .sponsor-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.sponsor-title {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* Default animation keyframes - overridden by JavaScript for exact width calculation */
@keyframes scroll-default {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.sponsors-marquee-container {
    animation-name: scroll-default;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sponsors-marquee-wrapper {
        padding: 20px 0;
    }

    /* Smaller fade gradients on mobile */
    .sponsors-marquee-wrapper::before,
    .sponsors-marquee-wrapper::after {
        width: 50px;
    }

    /* Keep animation running on mobile */
    .sponsors-marquee-container {
        display: flex;
        animation-name: scroll-default;
        animation-duration: 30s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }

    .sponsors-marquee-track {
        gap: 30px;
        padding: 0 15px;
    }

    .sponsor-item {
        min-width: 120px;
    }

    .sponsor-logo {
        max-width: 100px;
        max-height: 60px;
        filter: grayscale(100%);
        opacity: 0.7;
    }

    .sponsor-title {
        font-size: 11px;
        margin-top: 8px;
    }
}
