/* WILA Placed Slider — continuous-scroll photo marquee
 *
 * Ported from a standalone reference build. The reference linked Slick
 * Slider's CSS from a CDN but never called .slick() anywhere — the
 * scroll is entirely the hand-rolled JS animation below — so that
 * dependency is dropped here; nothing in this stylesheet or the JS
 * needs it.
 *
 * Classes are prefixed wila-placed-slider (not the reference's bare
 * "placed-slider") to avoid colliding with theme or other plugin CSS.
 * Sizing/color values that had Elementor Style controls added are read
 * from CSS custom properties set inline by the widget PHP; everything
 * else keeps the reference's hardcoded values as sensible defaults.
 */

.wila-placed-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--wila-pl-bg, #f8fafc);
    padding: 16px 0 20px;
    box-sizing: border-box;

    --wila-pl-fade-w: 75px;
}

.wila-placed-slider *,
.wila-placed-slider *::before,
.wila-placed-slider *::after {
    box-sizing: border-box;
}


/* ---------- Container ---------- */

.wila-placed-slider__container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ---------- Heading ---------- */

.wila-placed-slider__head {
    width: 100%;
    text-align: center;
    margin: 0 auto 22px;
}

.wila-placed-slider__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 14px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fffaf5;
    color: #f97316;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.wila-placed-slider__title {
    margin: 17px 0 12px;
    color: #071d49;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.wila-placed-slider__subtitle {
    margin: 0;
    color: #163c72;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}


/* ---------- Marquee viewport + edge fade ---------- */

.wila-placed-slider__marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
}

.wila-placed-slider__marquee::before,
.wila-placed-slider__marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--wila-pl-fade-w);
    z-index: 5;
    pointer-events: none;
}

.wila-placed-slider__marquee::before {
    left: 0;
    background: linear-gradient(
        to right,
        var(--wila-pl-bg, #f8fafc) 0%,
        color-mix(in srgb, var(--wila-pl-bg, #f8fafc) 92%, transparent) 25%,
        transparent 100%
    );
}

.wila-placed-slider__marquee::after {
    right: 0;
    background: linear-gradient(
        to left,
        var(--wila-pl-bg, #f8fafc) 0%,
        color-mix(in srgb, var(--wila-pl-bg, #f8fafc) 92%, transparent) 25%,
        transparent 100%
    );
}

/* Edge Fade switched off in the widget settings */
.wila-placed-slider.wila-pl-no-fade .wila-placed-slider__marquee::before,
.wila-placed-slider.wila-pl-no-fade .wila-placed-slider__marquee::after {
    display: none;
}


/* ---------- Track / group ---------- */

.wila-placed-slider__track {
    display: flex;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.wila-placed-slider__group {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    gap: 18px;
    padding-right: 18px;
}


/* ---------- Learner card ---------- */

.wila-placed-slider__card {
    display: block;
    width: 80px;
    height: 120px;
    flex: 0 0 80px;
    object-fit: cover;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow:
        0 2px 5px rgba(15, 23, 42, 0.05),
        0 5px 12px rgba(15, 23, 42, 0.04);
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wila-placed-slider:not(.wila-pl-no-hover-lift) .wila-placed-slider__card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 5px 12px rgba(15, 23, 42, 0.08),
        0 10px 22px rgba(15, 23, 42, 0.06);
}


/* ---------- Tablet ---------- */

@media (max-width: 991px) {
    .wila-placed-slider {
        padding-top: 18px;
        padding-bottom: 20px;
    }
    .wila-placed-slider__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .wila-placed-slider__head {
        margin-bottom: 20px;
    }
    .wila-placed-slider__title {
        font-size: 29px;
    }
    .wila-placed-slider__subtitle {
        font-size: 15px;
    }
}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {
    .wila-placed-slider {
        padding: 15px 0 18px;
    }
    .wila-placed-slider__container {
        padding-left: 0;
        padding-right: 0;
    }
    .wila-placed-slider__head {
        padding: 0 15px;
        margin-bottom: 18px;
    }
    .wila-placed-slider__eyebrow {
        min-height: 29px;
        padding: 6px 13px;
        font-size: 10px;
    }
    .wila-placed-slider__title {
        margin-top: 14px;
        margin-bottom: 9px;
        font-size: 27px;
        letter-spacing: -0.5px;
    }
    .wila-placed-slider__subtitle {
        font-size: 14px;
        line-height: 1.45;
    }
    .wila-placed-slider__card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wila-placed-slider__card {
        transition: none;
    }
}
