

:root {
    --stories0-bg: #FFF5ED;
    --stories0-text: #503B2D;
    --stories0-title-color: #4A2C1A;
    --stories0-accent: #E8792C;
    --stories0-card-bg: #4A2C1A;
    --stories0-focus-color: #E8792C;
    --stories0-badge-bg: #B9571F;
    --stories0-play-icon: #F5B27E;
    --stories0-nav-border: #F2DDCC;
    --stories0-nav-color: #4A2C1A;
    --stories0-nav-hover-bg: #E8792C;
    --stories0-nav-hover-border: #E8792C;
    --stories0-modal-bg: #4A2C1A;
    --stories0-modal-border: #F5B27E;
    --stories0-modal-body-bg: #FFF5ED;
}

/* YOUTUBE VIDEO SLIDER MAPPING */
.stories {
    --stories-bg: var(--stories0-bg);
    --stories-text: var(--stories0-text);
    --stories-title-color: var( --stories0-title-color);
    --stories-accent: var(--stories0-accent);
    --stories-card-bg: var(--stories0-card-bg);
    --stories-focus-color: var(--stories0-focus-color);
    --stories-badge-bg: var(--stories0-badge-bg);
    --stories-play-icon: var(--stories0-play-icon);
    --stories-nav-border: var(--stories0-nav-border);
    --stories-nav-color: var(--stories0-nav-color);
    --stories-nav-hover-bg: var(--stories0-nav-hover-bg);
    --stories-nav-hover-border: var(--stories0-nav-hover-border);
    --stories-modal-bg: var(--stories0-modal-bg);
    --stories-modal-border: var(--stories0-modal-border);
    --stories-modal-body-bg: var( --stories0-modal-body-bg);
}


/* =====================================================
   SECTION
===================================================== */

.stories {
    padding: 80px 0;
    background: var(--stories-bg, #F4F5F6);
    color: var(--stories-text, #14181F);
    overflow: hidden;
}

.stories .stories-panel {
    width: 100%;
}

/* =====================================================
   HEADER (title + nav)
===================================================== */

.stories .stories-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.stories .stories-heading-wrap {
    flex: 1;
    min-width: 0;
}

/* =====================================================
   SECTION TITLE
===================================================== */

.stories .stories-title {
    margin: 0;
    color: var(--stories-title-color, #14181F);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

.stories .stories-title span {
    color: var(--stories-accent, #E31B21);
}

/* =====================================================
   SLIDER  (desktop: 5 cards, gap = 14px -> 4 gaps = 56px)
===================================================== */

.stories .stories-swiper {
    width: 100%;
    padding: 30px 0 56px;
    overflow: hidden;
}

.stories .stories-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.stories .stories-swiper .swiper-slide {
    width: calc((100% - 56px) / 5);
    height: auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* =====================================================
   VIDEO CARD
===================================================== */

.stories .story-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: var(--stories-card-bg, #14181F);
    aspect-ratio: 4 / 3;
    box-shadow: var(--stories-card-shadow, 0 12px 30px rgba(20, 24, 31, 0.14));
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.stories .story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--stories-card-hover-shadow, 0 20px 42px rgba(20, 24, 31, 0.22));
}

/* =====================================================
   EMBEDDED YOUTUBE VIDEO
===================================================== */

.stories .story-card iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
}

/* =====================================================
   LINK CARD (last slide)
===================================================== */

.stories .story-card a {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.stories .story-card a:hover {
    color: var(--stories-accent, #E31B21);
}

/* =====================================================
   SWIPER NAVIGATION
===================================================== */

.stories .stories-nav {
    display: flex;
    gap: 9px;
    flex-shrink: 0;
}

.stories .nav-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--stories-nav-border, #DDE1E7);
    border-radius: 6px;
    background: var(--stories-nav-bg, #FFFFFF);
    color: var(--stories-nav-color, #14181F);
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.stories .nav-btn:hover {
    background: var(--stories-nav-hover-bg, #E31B21);
    border-color: var(--stories-nav-hover-border, #E31B21);
    color: var(--stories-nav-hover-color, #FFFFFF);
}

.stories .nav-btn.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* keep title centered on tablet/desktop, arrows on the right */
@media (min-width: 576px) {
    .stories .stories-nav {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* =====================================================
   TABLET  (3 cards, 2 gaps = 28px)
===================================================== */

@media (max-width: 991.98px) {
    .stories {
        padding: 65px 0;
    }

    .stories .stories-swiper {
        padding-top: 26px;
    }

    .stories .stories-swiper .swiper-slide {
        width: calc((100% - 28px) / 3);
    }
}

/* =====================================================
   MOBILE  (1 card)
===================================================== */

@media (max-width: 575.98px) {
    .stories {
        padding: 55px 0;
    }

    .stories .stories-title {
        font-size: 20px;
        text-align: left;
    }

    .stories .stories-swiper {
        padding: 24px 0 50px;
    }

    .stories .stories-swiper .swiper-slide {
        width: 100%;
    }

    .stories .story-card {
        border-radius: 8px;
        aspect-ratio: 16 / 9;
    }

    .stories .nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .stories .story-card,
    .stories .nav-btn {
        transition: none;
    }
}