/* ==========================================================================
   Custom Logo Ticker — clt
   Infinite auto-scrolling logo marquee with fade-out edges.
   ========================================================================== */

.clt-wrapper {
    background-color: #14213D;
    padding: 32px 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.clt-track-outer {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* White fade overlays on left and right edges */
.clt-track-outer::before,
.clt-track-outer::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--clt-fade-px, 120px);
    z-index: 2;
    pointer-events: none;
}

.clt-track-outer::before {
    left: 0;
    background: linear-gradient(to right, var(--clt-fade-color, #14213D) 0%, transparent 100%);
}

.clt-track-outer::after {
    right: 0;
    background: linear-gradient(to left, var(--clt-fade-color, #14213D) 0%, transparent 100%);
}

.clt-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: clt-scroll var(--clt-duration, 35s) linear infinite;
    will-change: transform;
}

/* Explicit programmatic pause only */
.clt-track.is-paused {
    animation-play-state: paused;
}

@keyframes clt-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes clt-scroll-rtl {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.clt-wrapper[data-direction="right"] .clt-track {
    animation-name: clt-scroll-rtl;
}

.clt-item {
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    box-sizing: border-box;
}

.clt-item img {
    height: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Reduced motion: stop animation, show a static row */
@media (prefers-reduced-motion: reduce) {
    .clt-track {
        animation: none;
    }
}
