/* ========================================================
   DYNAMIC HERO BANNER (IMAGE + VIDEO) STYLES
   ======================================================== */

.banner,
.hero-banner-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    height: 70vh;
    max-height: 720px;
    overflow: hidden;
    background-color: #0c0a09;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback background image - always sits at base layer */
.banner .banner-fallback-image,
.hero-banner-section .banner-fallback-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* Video layer - sits immediately above fallback image */
.banner .banner-video-layer,
.hero-banner-section .banner-video-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none; /* Never intercept CTA clicks */
}

.banner .banner-video-layer.is-playing,
.hero-banner-section .banner-video-layer.is-playing {
    opacity: 1;
}

/* HTML5 video element */
.banner .banner-video-player,
.hero-banner-section .banner-video-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive iframe for YouTube / Drive / Instagram */
.banner .banner-iframe-player,
.hero-banner-section .banner-iframe-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    border: none;
    pointer-events: none;
}

/* Dark tint overlay for typography readability */
.banner .banner-overlay,
.hero-banner-section .banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 3;
    pointer-events: none;
    transition: background 0.3s ease;
}

/* Content layer - dynamic heading, subtitle, CTA */
.banner .banner-content,
.hero-banner-section .banner-content {
    position: relative;
    z-index: 4;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #ffffff;
    pointer-events: auto;
}

.banner .banner-kicker {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #f59e0b;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.banner .banner-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.banner .banner-subtitle {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.banner .banner-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #111827;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.85rem 2.2rem;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    cursor: pointer;
}

.banner .banner-cta-btn:hover {
    background: #111827;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Mobile responsive adjustments for Hero Banner */
@media (max-width: 768px) {
    .banner,
    .hero-banner-section {
        min-height: 480px;
        height: 75vh;
    }

    .banner .banner-content {
        padding: 1.5rem 1rem;
    }

    .banner .banner-heading {
        font-size: 2rem;
    }

    .banner .banner-subtitle {
        font-size: 0.92rem;
        margin-bottom: 1.25rem;
    }

    .banner .banner-cta-btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.88rem;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .banner .banner-video-layer {
        display: none !important;
    }
    .banner .banner-fallback-image {
        opacity: 1 !important;
    }
}

/* ========================================================
   INDEPENDENT THREE-VIDEO GALLERY (.video-header)
   Desktop / Laptop: Side-by-Side (3 in a row)
   Phone / Mobile: Ek ke niche ek (stacked vertically, scrollable full)
   ======================================================== */

.video-header {
    width: 100%;
    padding: 3.5rem 1.5rem;
    background: #0f1012;
    position: relative;
    overflow: hidden;
}

.video-header-title-wrap {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}

.video-header-kicker {
    font-size: 0.82rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-header-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.85rem, 3.5vw, 2.8rem);
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.video-header-subtitle {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 300;
    margin: 0;
}

/* ── LAPTOP / DESKTOP (In 1 Line / 3 Side-by-Side) ────── */
.video-header-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex-wrap: wrap;
}

.video-header-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #111113;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    cursor: pointer;
    flex: 0 1 350px;
    max-width: 380px;
    min-width: 280px;
}

.video-header-item .vhi-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-header-item.is-paused .vhi-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-header-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    border-color: rgba(245, 158, 11, 0.4);
}

.video-header-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-header-item .vhi-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

.video-header-item .vhi-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1rem;
    z-index: 3;
    color: #ffffff;
    text-align: center;
    pointer-events: none;
}

.video-header-item .vhi-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.video-header-item .vhi-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}

.video-header-item .vhi-mute-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s, transform 0.2s;
}

.video-header-item .vhi-mute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* ── PHONE / MOBILE: EK KE NICHE EK, SCROLLABLE FULL ──── */
@media (max-width: 768px) {
    .video-header {
        padding: 2.25rem 1rem;
    }

    .video-header-title-wrap {
        margin-bottom: 1.75rem;
    }

    .video-header-grid {
        display: flex;
        flex-direction: column; /* "Ek ke niche ek" - stacked vertically! */
        gap: 1.75rem;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .video-header-item {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 9/16;
        min-height: 500px;
        height: 80vh; /* Full, immersive mobile view */
        max-height: 680px;
        margin: 0 auto;
        border-radius: 20px;
        scroll-snap-align: start;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    }

    .video-header-item .vhi-content {
        padding: 1.75rem 1.25rem;
    }

    .video-header-item .vhi-title {
        font-size: 1.2rem;
    }

    .video-header-item .vhi-mute-btn {
        width: 40px;
        height: 40px;
        font-size: 17px;
        top: 16px;
        right: 16px;
    }
}
