/* ─── Logo Rotator – Frontend Styles v2.4 ─── */

.clr-banner {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 0;
}

/* Clips the track — overflow hidden is the key */
.clr-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Track: single flex row, width set by JS in px */
.clr-track {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Each slot — width set by JS in px */
.clr-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 20px;
}

.clr-item img {
    display: block;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(10%);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.clr-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.clr-item a:hover img,
.clr-item a:focus img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.clr-text-logo {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    text-align: center;
    white-space: nowrap;
}

/* Controls */
.clr-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.clr-prev,
.clr-next {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.clr-prev:hover,
.clr-next:hover {
    background: #555;
    color: #fff;
    border-color: #555;
}

.clr-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.clr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.clr-dot.clr-dot-active {
    background: #555;
    transform: scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
    .clr-track { transition: none !important; }
}

.clr-empty {
    color: #888;
    font-style: italic;
}
