/* ============================================================
   HERO MEDIA TYPES — v3.0
   Extends hero-css-v2.css
   Scope: video background + split layout modes
============================================================ */


/* =============================================================
   VIDEO MODE — fullscreen background video
============================================================= */
.hero-video-bg {
    position: relative;
    overflow: hidden;
}

.hero-video-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

/* Overlay sits on top of video */
.hero-video-bg .hero-overlay {
    position: relative;
    z-index: 1;
}


/* =============================================================
   SPLIT MODE — left text | right video
============================================================= */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

/* LEFT PANEL */
.hero-split-left {
    position: relative;
    background-color: var(--mt-primary, #1e3a5f);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-split-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--hero-overlay-start, rgba(12,14,20,0.77)) 0%,
        var(--hero-overlay-end,   rgba(10,12,18,0.85)) 100%
    );
    display: flex;
    align-items: center;
}

.hero-split-content {
    width: 100%;
    padding: 60px 48px;
}

/* RIGHT PANEL */
.hero-split-right {
    position: relative;
    background: #0c0e14;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Video / iframe wrapper — 16:9 ratio */
.hero-split-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.hero-split-video-wrap iframe,
.hero-split-video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

/* Image fallback on right */
.hero-split-img-fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 992px) {
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-split-left {
        min-height: 380px;
    }

    .hero-split-overlay {
        position: relative;
        inset: auto;
    }

    .hero-split-content {
        padding: 48px 24px;
    }

    .hero-split-right {
        min-height: 260px;
    }

    .hero-split-video-wrap {
        padding-top: 56.25%;
    }
}

@media (max-width: 576px) {
    .hero-split-left {
        min-height: 300px;
    }

    .hero-split-content {
        padding: 36px 16px;
    }

    .hero-split-right {
        min-height: 220px;
    }
}
