.cs-slider {
    --cs-columns: 4;
    --cs-gap: 20px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.cs-viewport {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.cs-viewport:active {
    cursor: grabbing;
}

.cs-track {
    display: flex;
    gap: 20px;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.cs-track.is-dragging {
    transition: none;
}

.cs-item {
    flex: 0 0 calc((100% - (var(--cs-columns) - 1) * var(--cs-gap)) / var(--cs-columns));
    min-width: 0;
}

.cs-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.cs-image {
    width: 100%;
    height: 168px;
    overflow: hidden;
    border-radius: 16px;
    background: #eee;
}

/* interactive hover effect — added when the widget's "Hover Interaction" is on */
.cs-image.cs-hover-fx {
    position: relative;
    cursor: pointer;
    transition: transform 0.35s ease;
    will-change: transform;
}

.cs-image.cs-hover-fx:hover {
    transform: translateY(0px) scale(0.95);
}

.cs-image.cs-hover-fx:active {
    transform: translateY(-2px) scale(0.99);
}

/* soft shine sweep across the image on hover */
.cs-image.cs-hover-fx::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.cs-image.cs-hover-fx:hover::before {
    left: 130%;
}

@media (prefers-reduced-motion: reduce) {
    .cs-image.cs-hover-fx {
        transition: none;
    }
    .cs-image.cs-hover-fx::before {
        display: none;
    }
}

.cs-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.cs-content {
    padding-top: 10px;
    text-align: center;
}

.cs-title {
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 2px;
}

.cs-subtitle {
    color: #eee;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400;
}

.cs-progress-wrap {
    width: 65%;
    margin: 28px auto 0;
}

.cs-progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
}

.cs-progress-fill {
    display: block;
    width: 25%;
    height: 100%;
    background: #f5a800;
    border-radius: 10px;
    transition: width 0.3s ease;
    transition: width .55s cubic-bezier(.22,.61,.36,1);
}

@media (max-width: 767px) {
    .cs-progress-wrap {
        width: 85%;
    }
}
