@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;
    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;
    }
}
