@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap');

/* ============================================================
   MT - Informative Hero Widget (mtfe-informative-hero)
   Layout: bg stack | left title | right info | thumbnails | stats
   ============================================================ */

.mtfe-informative-hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-color: #050505;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

/* ---- Background Slide Stack --------------------------------- */

.mtfe-informative-hero__bgs {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mtfe-informative-hero__bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.mtfe-informative-hero__bg.is-active {
    opacity: 1;
    transform: scale(1);
}

.mtfe-informative-hero__bg-img,
.mtfe-informative-hero__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    opacity: 0.4;
    mix-blend-mode: luminosity;
}

/* YouTube background: cover area and sit behind content like MP4 */
.mtfe-informative-hero__bg-youtube-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.4;
    mix-blend-mode: luminosity;
}

.mtfe-informative-hero__bg-youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 177.78vh;  /* 16:9 cover */
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

/* Per-slide gradient accent (uses CSS vars set via inline style) */
.mtfe-informative-hero__bg-accent {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        var(--accent-from, rgba(20, 184, 166, 0.2)),
        var(--accent-to, rgba(239, 68, 68, 0.2))
    );
    mix-blend-mode: overlay;
}

/* Fade to bg color at the bottom (keeps text readable) */
.mtfe-informative-hero__bg-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #050505 0%, transparent 55%);
}

/* ---- Main Content Grid ------------------------------------- */

.mtfe-informative-hero__main {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 4rem;
    min-height: 70vh;
    gap: 2rem;
    box-sizing: border-box;
}

/* ---- Left Column: Giant Title ------------------------------ */

.mtfe-informative-hero__col-left {
    width: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

/* CSS grid stacking: all slide-titles in same cell */
.mtfe-informative-hero__title-wrap {
    display: grid;
}

.mtfe-informative-hero__slide-title {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.mtfe-informative-hero__slide-title.is-active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.mtfe-informative-hero__title {
    margin: 0;
    padding: 0;
}

.mtfe-informative-hero__title-line {
    display: block;
    font-size: 10vw;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.03em;
}

/* Outline variant (first line) */
.mtfe-informative-hero__title-line--outline {
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.3);
    color: transparent;
    opacity: 0.5;
}

/* ---- Right Column: Heading + Info + CTA -------------------- */

.mtfe-informative-hero__col-right {
    width: 33%;
    flex-shrink: 0;
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mtfe-informative-hero__right-heading {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}

/* CSS grid stacking for descriptions */
.mtfe-informative-hero__info-wrap {
    display: grid;
}

.mtfe-informative-hero__slide-info {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.mtfe-informative-hero__slide-info.is-active {
    opacity: 1;
    transform: translateY(0);
    z-index: 1;
}

.mtfe-informative-hero__description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 26rem;
    margin: 0;
}

/* ---- CTA Button -------------------------------------------- */

.mtfe-informative-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    align-self: flex-start;
    cursor: pointer;
    white-space: nowrap;
}

.mtfe-informative-hero__cta:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
    text-decoration: none;
}

.mtfe-informative-hero__cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.mtfe-informative-hero__cta:hover svg {
    transform: translate(2px, -2px);
}

/* ---- Bottom bar: Thumbnails (left) + Stats (right) ----------- */

.mtfe-informative-hero__bottom {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 4rem 3.5rem;
    flex-shrink: 0;
}

.mtfe-informative-hero__thumbs {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.mtfe-informative-hero__thumb {
    position: relative;
    width: 10rem;
    min-width: 10rem;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.55;
    transition: opacity 0.25s ease, outline 0.2s ease, outline-offset 0.2s ease;
    flex-shrink: 0;
}

.mtfe-informative-hero__thumb:hover {
    opacity: 0.85;
}

.mtfe-informative-hero__thumb.is-active {
    opacity: 1;
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.mtfe-informative-hero__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stats (right bottom): value + label per item */
.mtfe-informative-hero__stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.mtfe-informative-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.mtfe-informative-hero__stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.mtfe-informative-hero__stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Decorative Corner Element ----------------------------- */

.mtfe-informative-hero__deco {
    pointer-events: none;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 33%;
    height: 33%;
    background: linear-gradient(to top left, rgba(255, 255, 255, 0.04), transparent);
    z-index: 5;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .mtfe-informative-hero__bottom {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .mtfe-informative-hero__main {
        padding: 2rem 2.5rem;
    }

    .mtfe-informative-hero__col-left {
        width: 52%;
    }

    .mtfe-informative-hero__col-right {
        width: 44%;
    }

    .mtfe-informative-hero__title-line {
        font-size: 12vw;
    }
}

@media (max-width: 767px) {
    .mtfe-informative-hero__main {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        min-height: auto;
        gap: 2.5rem;
    }

    .mtfe-informative-hero__col-left,
    .mtfe-informative-hero__col-right {
        width: 100%;
    }

    .mtfe-informative-hero__title-line {
        font-size: 16vw;
    }

    .mtfe-informative-hero__right-heading {
        font-size: 2rem;
    }

    .mtfe-informative-hero__description {
        font-size: 1rem;
    }

    .mtfe-informative-hero__bottom {
        flex-wrap: wrap;
        padding: 0 1.5rem 2.5rem;
        gap: 1.25rem;
    }

    .mtfe-informative-hero__thumb {
        width: 8rem;
        min-width: 8rem;
    }

    .mtfe-informative-hero__stat-value {
        font-size: 1.5rem;
    }

    .mtfe-informative-hero__stat-label {
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .mtfe-informative-hero__title-line {
        font-size: 18vw;
    }
}

/* ============================================================
   MT - Informative Hero Widget — V2 Skin (Full-screen Slider)
   Layout: stacked bg images | left-aligned content | bottom tab nav
   ============================================================ */

/* ---- Container ---- */

.mtfe-informative-hero--v2 {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-color: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    font-family: inherit;
}

/* ---- Background Slides ---- */

.mtfe-ihe-v2__bgs {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mtfe-ihe-v2__bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.mtfe-ihe-v2__bg.is-active {
    opacity: 1;
    transform: translateX(0);
}

.mtfe-ihe-v2__bg.is-prev {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.mtfe-ihe-v2__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* MP4 video background */

.mtfe-ihe-v2__bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* YouTube iframe background */

.mtfe-ihe-v2__bg-yt-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.mtfe-ihe-v2__bg-yt {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Covers the container regardless of viewport ratio (16:9) */
    width: max(100%, 177.78vh);
    height: max(100%, 56.25vw);
    /* Prevent theme resets (max-width:100%; height:auto) from collapsing the iframe */
    max-width: none !important;
    max-height: none !important;
    min-width: 0;
    min-height: 0;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}

.mtfe-ihe-v2__bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* ---- Slide Content Area ---- */

.mtfe-ihe-v2__content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 6rem;
    min-height: 0;
}

.mtfe-ihe-v2__slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 6rem;
    padding-right: 6rem;
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
    will-change: opacity, transform;
    pointer-events: none;
}

.mtfe-ihe-v2__slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* ---- Title ---- */

.mtfe-ihe-v2__title {
    display: block;
    font-size: 9vw;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 0.5em;
}

/* .mtfe-ihe-v2__title-word reserved for future inline use */

/* ---- Subtitle ---- */

.mtfe-ihe-v2__subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2.5rem;
    max-width: 480px;
    line-height: 1.5;
}

/* ---- CTA Button ---- */

.mtfe-ihe-v2__cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.mtfe-ihe-v2__cta:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.mtfe-ihe-v2__cta svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mtfe-ihe-v2__cta:hover svg {
    transform: translateX(4px);
}

/* ---- Bottom Navigation ---- */

.mtfe-ihe-v2__nav {
    position: relative;
    z-index: 20;
    padding: 0 6rem 3rem;
}

.mtfe-ihe-v2__nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

/* ---- Individual Tab ---- */

.mtfe-ihe-v2__tab {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 0.75rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

.mtfe-ihe-v2__tab:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Progress Track */

.mtfe-ihe-v2__tab-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.mtfe-ihe-v2__tab-progress-bar {
    height: 100%;
    width: 0;
    background-color: #10b981;
}

.mtfe-ihe-v2__tab.is-active .mtfe-ihe-v2__tab-progress-bar {
    animation: mtfe-ihe-v2-progress var(--mtfe-v2-interval, 6s) linear forwards;
}

@keyframes mtfe-ihe-v2-progress {
    from { width: 0; }
    to   { width: 100%; }
}

/* Tab Info */

.mtfe-ihe-v2__tab-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: opacity 0.3s ease;
}

.mtfe-ihe-v2__tab:not(.is-active) .mtfe-ihe-v2__tab-info {
    opacity: 0.4;
}

.mtfe-ihe-v2__tab:not(.is-active):hover .mtfe-ihe-v2__tab-info {
    opacity: 0.7;
}

.mtfe-ihe-v2__tab-num {
    font-size: 0.75rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.mtfe-ihe-v2__tab-label {
    font-size: 0.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
}

/* Active tab highlight backdrop */

.mtfe-ihe-v2__tab-highlight {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.mtfe-ihe-v2__tab.is-active .mtfe-ihe-v2__tab-highlight {
    background-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ---- V2 Page-load Entrance Animations ---- */

@keyframes mtfe-ihe-v2-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.mtfe-informative-hero--v2 .mtfe-ihe-v2__content {
    animation: mtfe-ihe-v2-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.1s;
}

.mtfe-informative-hero--v2 .mtfe-ihe-v2__nav {
    animation: mtfe-ihe-v2-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.3s;
}

/* ---- V2 Responsive ---- */

@media (max-width: 1024px) {
    .mtfe-ihe-v2__title {
        font-size: 11vw;
    }

    .mtfe-ihe-v2__content,
    .mtfe-ihe-v2__slide,
    .mtfe-ihe-v2__nav {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    /* YouTube iframe cover on tablet */
    .mtfe-ihe-v2__bg-yt-wrap {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .mtfe-ihe-v2__bg-yt {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        /* On tablet portrait the height drives: need 177.78vh width to cover */
        width: max(100%, 177.78vh) !important;
        height: max(100%, 56.25vw) !important;
        max-width: none !important;
        max-height: none !important;
        transform: translate(-50%, -50%) !important;
    }
}

@media (max-width: 767px) {
    /* Use small viewport height so bg fills the visible area on mobile browsers */
    .mtfe-informative-hero--v2 {
        min-height: 100vh;
        min-height: 100svh;
    }

    /* Background must cover the full container height */
    .mtfe-ihe-v2__bgs,
    .mtfe-ihe-v2__bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .mtfe-ihe-v2__bg-img,
    .mtfe-ihe-v2__bg-video {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
        object-position: center;
    }

    /* YouTube iframe cover on mobile — fight theme resets aggressively */
    .mtfe-ihe-v2__bg-yt-wrap {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .mtfe-ihe-v2__bg-yt {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        /* Portrait mobile: 177.78vh makes the iframe wide enough to cover */
        width: 177.78vh !important;
        height: 100vh !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        transform: translate(-50%, -50%) !important;
        border: none;
        pointer-events: none;
    }

    .mtfe-ihe-v2__title {
        font-size: 13vw;
        margin-bottom: 0.4em;
    }

    .mtfe-ihe-v2__subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
        max-width: 100%;
    }

    .mtfe-ihe-v2__content {
        min-height: 55vh;
        padding: 0 1.5rem;
        align-items: flex-start;
    }

    .mtfe-ihe-v2__slide {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-top: 1.5rem;
    }

    .mtfe-ihe-v2__cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    /* Nav tabs: 2-column grid, more compact */
    .mtfe-ihe-v2__nav {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .mtfe-ihe-v2__nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .mtfe-ihe-v2__tab-label {
        font-size: 0.75rem;
        letter-spacing: 0;
    }

    .mtfe-ihe-v2__tab-num {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .mtfe-ihe-v2__title {
        font-size: 15vw;
    }

    /* Single-column tabs on very small screens */
    .mtfe-ihe-v2__nav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.375rem;
    }

    .mtfe-ihe-v2__tab-label {
        font-size: 0.7rem;
    }
}
