/* ============================================
   LESSON HERO - Yakov banner on top of a lesson
   Used via the 'lesson-hero.html' template include.
   ============================================ */
.lesson-hero {
    /* per-lesson accent + artwork framing, set inline by lesson-hero.html */
    --hero-a1: #10b981;
    --hero-a2: #14b8a6;
    --hero-zoom: 1;
    --hero-origin: 50% 20%;
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 340px;
    margin-bottom: 30px;
    border-radius: 25px;
    overflow: hidden;
    background:
        linear-gradient(115deg,
            color-mix(in srgb, var(--hero-a1) 16%, transparent) 0%,
            transparent 58%),
        rgba(13, 17, 23, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lesson-hero__content {
    position: relative;
    z-index: 2;
    flex: 1 1 58%;
    padding: 40px 20px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.lesson-hero__badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--hero-a1) 30%, transparent),
        color-mix(in srgb, var(--hero-a2) 30%, transparent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
    border: 2px solid color-mix(in srgb, var(--hero-a1) 45%, transparent);
    box-shadow: 0 0 30px color-mix(in srgb, var(--hero-a1) 32%, transparent);
}

.lesson-hero__tag {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.lesson-hero__content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--hero-a1), var(--hero-a2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.55));
}

.lesson-hero__content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.lesson-hero__media picture {
    display: contents;
}

.lesson-hero__media {
    position: relative;
    flex: 0 0 46%;
    overflow: hidden;
}

.lesson-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 56% 6%;
    display: block;
    transform: scale(var(--hero-zoom));
    transform-origin: var(--hero-origin);
}

@media (max-width: 768px) {
    .lesson-hero {
        display: block;
        min-height: 330px;
        border-radius: 20px;
    }

    .lesson-hero__media {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .lesson-hero__img {
        object-position: 52% 6%;
    }

    .lesson-hero__media::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top,
            rgba(5, 10, 15, 0.96) 0%,
            rgba(5, 10, 15, 0.88) 26%,
            rgba(5, 10, 15, 0.45) 55%,
            rgba(5, 10, 15, 0.10) 100%);
    }

    .lesson-hero__content {
        position: relative;
        min-height: 330px;
        padding: 24px 20px 26px;
        justify-content: flex-end;
        align-items: center;
        text-align: center;
    }

    /* on mobile the artwork sits behind the text - the badge would land on Yakov's face */
    .lesson-hero__badge {
        display: none;
    }

    .lesson-hero__tag {
        align-self: center;
    }

    .lesson-hero__content p {
        font-size: 1rem;
    }
}
