.logo-section {
    overflow: hidden;
    position: relative;
    margin-top: var(--theme-section-margin-lg);
    margin-bottom: var(--theme-section-margin-lg);
}

.logo-section .container {
    position: relative;
    overflow: hidden;
    --logo-fade-bg: #fff; /* set this to your container bg color */
    --logo-fade-width: 80px;
}

.logo-section .container::before,
.logo-section .container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--logo-fade-width);
    z-index: 2;
    pointer-events: none;
}

.logo-section .container::before {
    left: 0;
    background: linear-gradient(to right, var(--logo-fade-bg) 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-section .container::after {
    right: 0;
    background: linear-gradient(to left, var(--logo-fade-bg) 0%, rgba(255, 255, 255, 0) 100%);
}

.logos-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: max-content;
    animation: logos-scroll 30s linear infinite;
}

.logos-track li {
    flex: 0 0 auto;
    align-items: center;
    display: flex;
}

.logos-track img {
    width: 140px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.logo-section:hover .logos-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .logos-track {
        animation: none;
    }
}

@keyframes logos-scroll {
    to {
        transform: translateX(-50%);
    }
}