/* Banner container */
.partners-banner {
    background: #f8f9fa;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: .75rem 0;
}

/* Scrolling track */
.scrolling-track {
    display: flex;
    gap: 2rem;
    align-items: center;
    /* duplicate content width will make this seamless */
    animation: scroll-left 22s linear infinite;
    will-change: transform;
}

/* Pause on hover for accessibility */
.partners-banner:hover .scrolling-track {
    animation-play-state: paused;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 220px; /* ensures consistent spacing */
    text-decoration: none;
    color: inherit;
}

    .partner-item img {
        max-height: 56px;
        width: auto;
        display: block;
    }

.partner-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Keyframes: move entire track from right to left */
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Make the track duplicate seamlessly by having two identical copies side-by-side */
.scrolling-wrapper {
    display: block;
    width: 100%;
    overflow: hidden;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .partner-item {
        min-width: 160px;
    }

        .partner-item img {
            max-height: 40px;
        }
}

