/* =============================================================
   Custom Slide Carousel Widget – slide-carousel.css
   Animation is 100% JS (rAF) — no CSS keyframes needed.
   ============================================================= */

/* ── Outer wrapper ── */
.cws-ticker-section {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

/* ── Each row viewport (clips overflow) ── */
.cws-ticker-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* ── The moving track ── */
.cws-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
}

/* ── Single item wrapper ── */
.cws-ticker-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ── Logo row item ── */
.cws-logo-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cws-logo-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.cws-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.cws-logo-text {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

/* ── Linked slide item ── */
a.cws-slide-link {
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.22s ease, opacity 0.22s ease;
}

a.cws-slide-link:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    opacity: 0.85;
}

/* ── Tag / pill card ── */
.cws-slide-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-sizing: border-box;
    white-space: nowrap;
    transition: box-shadow 0.22s ease;
    gap: 8px;
}

.cws-slide-item:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.cws-slide-label {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1;
}

/* ── Glassmorphism ── */
.cws-slide-item.glass {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ── Navigation arrows ── */
.cws-arrow {
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    padding: 0;
}

.cws-arrow:hover  { background: rgba(255, 255, 255, 0.22); transform: scale(1.08); }
.cws-arrow:active { transform: scale(0.96); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .cws-ticker-section { gap: 6px; }
    .cws-slide-label    { font-size: 12px; }
    .cws-logo-text      { font-size: 11px; }
}