/* ===========================
   SUCCESS STORIES — CINEMA
=========================== */
.stories-section { background: white; padding: 20px 0; }

.stories-cinema {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===========================
   FEATURED STORY
=========================== */
.story-cinema__featured {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 460px;
    text-decoration: none;
    cursor: pointer;
}

.story-cinema__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-cinema__featured:hover .story-cinema__bg,
.story-cinema__card:hover    .story-cinema__bg {
    transform: scale(1.06);
}

.story-cinema__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 20, 40, 0.92) 0%,
        rgba(10, 20, 40, 0.50) 50%,
        rgba(10, 20, 40, 0.10) 100%
    );
}

.story-cinema__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 36px;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.story-cinema__featured:hover .story-cinema__content { transform: translateY(-8px); }

/* ── Tag ── */
.story-cinema__tag {
    display: inline-block;
    background: rgba(60, 120, 180, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* ── Title ── */
.story-cinema__title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Excerpt ── */
.story-cinema__excerpt {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Read label (slides up on hover) ── */
.story-cinema__read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.story-cinema__featured:hover .story-cinema__read {
    opacity: 1;
    transform: translateY(0);
}

.story-cinema__read svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.2s;
}

.story-cinema__featured:hover .story-cinema__read svg { transform: translateX(4px); }

/* ── Accent bar ── */
.story-cinema__accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3C78B4;
    border-radius: 0 4px 0 0;
    transition: width 0.4s ease;
    z-index: 3;
}

.story-cinema__featured:hover .story-cinema__accent { width: 120px; }

/* ── No image fallback ── */
.story-cinema__no-img .story-cinema__bg {
    background: linear-gradient(135deg, #1D3557 0%, #3C78B4 100%);
}

/* ===========================
   SECONDARY STORIES
=========================== */
.stories-cinema__secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.story-cinema__card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    text-decoration: none;
    cursor: pointer;
}

.story-cinema__card .story-cinema__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-cinema__card:hover .story-cinema__bg { transform: scale(1.07); }

.story-cinema__card .story-cinema__content  { padding: 24px 28px; }
.story-cinema__card:hover .story-cinema__content { transform: translateY(-6px); }

.story-cinema__card .story-cinema__title    { font-size: 18px; }
.story-cinema__card .story-cinema__excerpt  { font-size: 13px; -webkit-line-clamp: 2; }

.story-cinema__card .story-cinema__read     { opacity: 0; }
.story-cinema__card:hover .story-cinema__read {
    opacity: 1;
    transform: translateY(0);
}

.story-cinema__card .story-cinema__read svg { transition: transform 0.2s; }
.story-cinema__card:hover .story-cinema__read svg { transform: translateX(4px); }

.story-cinema__card .story-cinema__accent   { width: 40px; }
.story-cinema__card:hover .story-cinema__accent { width: 80px; }

/* ===========================
   RTL
=========================== */
[dir="rtl"] .story-cinema__content { left: auto; right: 0; }

[dir="rtl"] .story-cinema__accent {
    left: auto;
    right: 0;
    border-radius: 4px 0 0 0;
}

[dir="rtl"] .story-cinema__read svg { transform: scaleX(-1); }

[dir="rtl"] .story-cinema__featured:hover .story-cinema__read svg,
[dir="rtl"] .story-cinema__card:hover    .story-cinema__read svg {
    transform: scaleX(-1) translateX(-4px);
}

/* ===========================
   SCROLL ANIMATIONS
=========================== */
@keyframes storiesFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes storiesTagSlide {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Default hidden state ── */
.stories-section .section-tag,
.stories-section .section-title {
    opacity: 0;
}

.story-cinema__featured,
.story-cinema__card {
    opacity: 0;
    transform: translateY(40px);
}

.stories-section .section-footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ── Triggered when .stories-section.is-visible ── */
.stories-section.is-visible .section-tag {
    animation: storiesTagSlide 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
}
.stories-section.is-visible .section-title {
    animation: storiesFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.stories-section.is-visible .story-cinema__featured {
    animation: storiesFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
.stories-section.is-visible .story-cinema__card:nth-child(1) {
    animation: storiesFadeUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
.stories-section.is-visible .story-cinema__card:nth-child(2) {
    animation: storiesFadeUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}
.stories-section.is-visible .section-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* ===========================
   RESPONSIVE — portrait
=========================== */
@media (max-width: 1024px) and (orientation: portrait) {
    .stories-cinema { padding: 0 16px; }

    .story-cinema__featured { height: 300px; }

    .story-cinema__content { padding: 20px; }

    .story-cinema__featured .story-cinema__title { font-size: 20px; }

    .stories-cinema__secondary {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .story-cinema__card { height: 220px; }

    .story-cinema__card .story-cinema__title { font-size: 16px; }

    /* Always visible on touch devices */
    .story-cinema__read,
    .story-cinema__card .story-cinema__read {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   RESPONSIVE — landscape
=========================== */
@media (max-width: 1024px) and (orientation: landscape) {
    .stories-cinema { padding: 0 20px; }

    .story-cinema__featured { height: 360px; }

    .stories-cinema__secondary { grid-template-columns: 1fr 1fr; }

    .story-cinema__card { height: 260px; }
}

/* ── Scroll Reveal ── */
@keyframes storyReveal {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stories-section .story-cinema__featured,
.stories-section .stories-cinema__secondary,
.stories-section .story-cinema__card {
    opacity: 0;
    transform: translateY(40px);
    transition: none;
}

.stories-section.is-visible .story-cinema__featured {
    animation: storyReveal 1.1s cubic-bezier(0.22,1,0.36,1) 0.15s forwards;
}
.stories-section.is-visible .stories-cinema__secondary {
    animation: storyReveal 1s cubic-bezier(0.22,1,0.36,1) 0.4s forwards;
}
.stories-section.is-visible .story-cinema__card {
    animation: storyReveal 0.9s cubic-bezier(0.22,1,0.36,1) 0.5s forwards;
}
