/* ==========================================================================
   Jeeva Earth Video Stories Section [jeeva_video_stories]
   Behind-The-Scenes YouTube Carousel & Lightbox
   ========================================================================== */

:root {
    --jeeva-stories-bg: #045A31;
    --jeeva-stories-orange: #F47521;
    --jeeva-stories-orange-hover: #dd6212;
    --jeeva-stories-card-radius: 20px;
}

.jeeva-stories-section {
    width: 100%;
    /* max-width: 1280px; */
    margin: 35px auto 55px auto;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
}

.jeeva-stories-inner {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    overflow: hidden;
    padding: 0;
}

/* Skewed & Curved Green Background SVG Canvas */
.jeeva-stories-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.jeeva-stories-svg-bg {
    width: 100%;
    height: 100%;
    display: block;
}

.jeeva-stories-svg-desktop {
    display: block;
}

.jeeva-stories-svg-mobile {
    display: none;
}

/* Foreground Content Wrapper */
.jeeva-stories-content-wrap {
    position: relative;
    z-index: 1;
    padding: 55px 20px 45px 50px;
    box-sizing: border-box;
}

/* Header Area */
.jeeva-stories-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 24px;
    padding-right: 40px;
}

.jeeva-stories-title-wrap {
    max-width: 600px;
}

.jeeva-stories-heading {
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px 0;
    letter-spacing: -0.4px;
}

.jeeva-stories-subheading {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14.5px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* Navigation Arrow Controls */
.jeeva-stories-nav-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-top: 6px;
}

.jeeva-stories-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    outline: none;
    padding: 0;
    box-sizing: border-box;
}

.jeeva-stories-arrow svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
    display: block;
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
}

.jeeva-stories-prev {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    color: #ffffff !important;
}

.jeeva-stories-prev:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: #ffffff !important;
    transform: scale(1.08);
}

.jeeva-stories-next {
    background: #F47521 !important;
    border: 1.5px solid #F47521 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(244, 117, 33, 0.45) !important;
}

.jeeva-stories-next:hover {
    background: #dd6212 !important;
    border-color: #dd6212 !important;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(244, 117, 33, 0.6) !important;
}

.jeeva-stories-arrow:disabled,
.jeeva-stories-arrow.is-disabled {
    opacity: 0.6 !important;
    cursor: pointer;
}

/* Slider Track & Container */
.jeeva-stories-slider-container {
    width: 100%;
    position: relative;
}

.jeeva-stories-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 40px 14px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.jeeva-stories-track::-webkit-scrollbar {
    display: none;
}

/* Story Card */
.jeeva-story-card {
    flex: 0 0 265px;
    width: 265px;
    scroll-snap-align: start;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    user-select: none;
    box-sizing: border-box;
}

.jeeva-story-card:hover {
    transform: translateY(-5px);
}

/* Media Area (Top Rounded Block) */
.jeeva-story-media-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 22px;
    overflow: hidden;
    background: #2a3b32;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.jeeva-story-card:hover .jeeva-story-media-wrap {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.jeeva-story-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.jeeva-story-card:hover .jeeva-story-thumb {
    transform: scale(1.05);
}

.jeeva-story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
}

/* Play Button */
.jeeva-story-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 50%;
    border: none;
    outline: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    padding: 0;
}

.jeeva-play-icon {
    width: 15px;
    height: 15px;
    color: var(--jeeva-stories-orange, #F47521) !important;
    fill: var(--jeeva-stories-orange, #F47521) !important;
    margin-left: 2px;
    transition: color 0.2s ease;
}

.jeeva-story-play-btn:hover,
.jeeva-story-play-btn:focus,
.jeeva-story-play-btn:active,
.jeeva-story-card:hover .jeeva-story-play-btn {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: var(--jeeva-stories-orange, #F47521) !important;
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    outline: none !important;
}

/* Card Info Box (Bottom Rounded White Block) */
.jeeva-story-info {
    background: #ffffff;
    border-radius: 18px;
    padding: 12px 18px 15px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.jeeva-story-tag {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.2px;
    margin-bottom: 3px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jeeva-story-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Video Lightbox / Modal
   ========================================================================== */
.jeeva-story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.jeeva-story-modal.is-open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.jeeva-story-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 20, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.jeeva-story-modal-content {
    position: relative;
    width: 90%;
    max-width: 860px;
    z-index: 2;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jeeva-story-modal.is-open .jeeva-story-modal-content {
    transform: scale(1);
}

.jeeva-story-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.jeeva-story-modal-close:hover {
    transform: scale(1.15) rotate(90deg);
    opacity: 1;
}

.jeeva-story-modal-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.jeeva-story-modal-iframe-holder {
    width: 100%;
    height: 100%;
}

.jeeva-story-modal-iframe-holder iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .jeeva-stories-content-wrap {
        padding: 42px 20px 36px 32px;
    }

    .jeeva-stories-heading {
        font-size: 28px;
    }

    .jeeva-story-card {
        flex: 0 0 230px;
        width: 230px;
        height: 375px;
    }

    .jeeva-story-media-wrap {
        height: 295px;
        flex: 0 0 295px;
    }
}

@media (max-width: 767px) {
    .jeeva-stories-section {
        margin: 15px 0 35px 0;
        padding: 0 4px;
    }

    .jeeva-stories-inner {
        background: transparent !important;
        border-radius: 0 !important;
        overflow: hidden;
    }

    .jeeva-stories-bg-canvas {
        display: block !important;
    }

    .jeeva-stories-svg-desktop {
        display: none !important;
    }

    .jeeva-stories-svg-mobile {
        display: block !important;
    }

    .jeeva-stories-content-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 42px 14px 28px 14px;
        box-sizing: border-box;
    }

    /* Unbox header to position title at top and arrows at bottom */
    .jeeva-stories-header {
        display: contents;
    }

    .jeeva-stories-title-wrap {
        order: 1;
        max-width: 100%;
        text-align: center;
        margin-bottom: 18px;
        padding: 0 8px;
    }

    .jeeva-stories-heading {
        font-size: 25px;
        line-height: 1.25;
        text-align: center;
        margin: 0 auto 8px auto;
        max-width: 270px;
        letter-spacing: -0.3px;
        color: #ffffff;
    }

    .jeeva-stories-subheading {
        font-size: 13px;
        line-height: 1.45;
        text-align: center;
        max-width: 300px;
        margin: 0 auto;
        color: rgba(255, 255, 255, 0.88);
    }

    /* Carousel in middle */
    .jeeva-stories-slider-container {
        order: 2;
        width: 100%;
    }

    .jeeva-stories-track {
        gap: 14px;
        padding: 0 4px 6px 4px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 4px;
        justify-content: flex-start;
    }

    .jeeva-story-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 320px;
        scroll-snap-align: center;
        margin: 0 auto;
        gap: 8px;
    }

    .jeeva-story-media-wrap {
        height: 310px;
        border-radius: 20px;
    }

    .jeeva-story-play-btn {
        width: 42px;
        height: 42px;
    }

    .jeeva-play-icon {
        width: 14px;
        height: 14px;
    }

    .jeeva-story-info {
        border-radius: 16px;
        padding: 12px 16px 14px 16px;
        text-align: left;
    }

    .jeeva-story-tag {
        font-size: 11px;
    }

    .jeeva-story-card-title {
        font-size: 14px;
        line-height: 1.35;
    }

    /* Navigation Arrows Centered at Bottom on Mobile */
    .jeeva-stories-nav-arrows {
        order: 3;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 18px;
        width: 100%;
    }

    .jeeva-stories-arrow {
        width: 40px;
        height: 40px;
    }

    .jeeva-story-modal-content {
        width: 95%;
    }
}
