/* CMS Sponsors Carousel Component Styles */

/* Base Wrapper */
.cms-sponsors-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

/* Container */
.cms-sponsors-carousel-container {
    padding: 2rem 0;
    overflow: hidden;
}

/* Title */
.cms-sponsors-carousel-title {
    color: #f0b323; /* EAA Gold */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Banner Container */
.cms-sponsors-carousel-banner {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 1.5rem 0;
}

/* Scrolling Row */
.cms-sponsors-carousel-scroll {
    display: flex;
    animation: scroll-banner-cms 40s linear infinite;
    width: fit-content;
    gap: 60px;
    margin-bottom: 20px;
}

.cms-sponsors-carousel-scroll:last-child {
    margin-bottom: 0;
}

/* Individual Sponsor Item */
.cms-sponsors-carousel-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cms-sponsors-carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(240, 179, 35, 0.4);
}

.cms-sponsors-carousel-item img {
    height: 100px;
    max-width: 250px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.cms-sponsors-carousel-item a {
    display: block;
    line-height: 0;
}

/* Animation */
@keyframes scroll-banner-cms {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%);
    }
}

/* Pause animation on hover */
.cms-sponsors-carousel-container:hover .cms-sponsors-carousel-scroll {
    animation-play-state: paused;
}

/* Edit Mode */
.cms-sponsors-carousel-edit {
    position: relative;
}

/* Responsive */
@media (max-width: 959px) {
    .cms-sponsors-carousel-item img {
        height: 70px;
        max-width: 180px;
    }

    .cms-sponsors-carousel-scroll {
        gap: 30px;
        animation-duration: 20s !important; /* Faster on mobile */
    }

    .cms-sponsors-carousel-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .cms-sponsors-carousel-container {
        padding: 1.5rem 0;
    }

    .cms-sponsors-carousel-banner {
        padding: 1rem 0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cms-sponsors-carousel-scroll {
        animation: none !important;
    }

    .cms-sponsors-carousel-item {
        transition: none;
    }

    .cms-sponsors-carousel-item img {
        transition: none;
    }
}
