/* Container */
.sponsor-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    width: 100%;
}

/* Track Wrapper for the infinite scroll */
.sponsor-track-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    overflow: hidden;
    width: 100%;
}

/* The moving track */
.sponsor-track {
    display: flex;
    align-items: center;
    gap: 50px;
    padding-left: 50px;
    white-space: nowrap;
    animation: scrollTrack 30s linear infinite;
    will-change: transform;
}

@keyframes scrollTrack {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Individual Sponsor Item */
.sponsor-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 10px;
    background: transparent;
    transition: transform 0.3s ease; /* Removed 'all' to prevent jumping due to layout changes */
    border: 2px solid transparent; /* Fixed dimensions to prevent jumping */
    box-sizing: border-box; /* Ensure border doesn't add to dimensions */
}

.sponsor-item img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: none; /* Removed transition on image to avoid conflict */
    display: block; /* Remove bottom space under inline images */
}

/* Pause animation on hover */
.sponsor-track-wrap:hover .sponsor-track {
    animation-play-state: paused;
}
