/* ── Hero (redesign) ─────────────────────────────────────────────────────────
   Loaded after index.css and overrides the hero rules there. Class names and
   element ids are deliberately unchanged — hero-videos.js, video-player.js and
   the demo-modal handler bind to .hero-image-card, .play-button, #hero-video-bg,
   #hero-thumbnail and #demo-btn-*, so renaming would silently break playback.

   Layout: copy left, an overlapping video collage right, and the stats bar as a
   centred card beneath both (it used to be a half-width shape pinned to the
   bottom-left corner). */

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 3rem;
    /* Height follows the content — a fixed 85vh left a large void under the
       shorter translations. */
    min-height: 0;
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 45%, #eef3f9 100%);
}

/* Two soft brand-tinted washes, one per side, so the full-bleed band reads as a
   designed surface rather than a flat panel with the content marooned in it. */
.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
}

.hero-section::before {
    width: 46vw;
    height: 46vw;
    max-width: 720px;
    max-height: 720px;
    top: -18%;
    inset-inline-start: -14%;
    background: radial-gradient(circle, rgba(229, 43, 50, .07), transparent 68%);
}

.hero-section::after {
    width: 52vw;
    height: 52vw;
    max-width: 820px;
    max-height: 820px;
    bottom: -26%;
    inset-inline-end: -16%;
    background: radial-gradient(circle, rgba(20, 71, 122, .09), transparent 70%);
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 2.75rem;
}

/* ── Copy ─────────────────────────────────────────────────────────────────── */

/* Was a bare line of letter-spaced text; now an outlined pill. */
.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 1.4rem;
    padding: 8px 16px;
    border: 1px solid rgba(229, 43, 50, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    color: #E52B32;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1;
}

.hero-subtitle::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E52B32;
    flex: 0 0 auto;
}

.hero-title {
    margin: 0 0 1.15rem;
    font-size: clamp(2.1rem, 3.6vw, 3.4rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f1b2d;
}

/* Each clause sits on its own line, as in the design */
.hero-title span {
    display: block;
}

.hero-title .hero-title-alt {
    color: #14477a;
}

/* Red rule under the emphasised word. Drawn just below the baseline rather
   than behind the glyphs with z-index:-1 — a negative index would be resolved
   against the stacking context .hero-section > .container creates, and could
   disappear behind it. */
.hero-title .hero-title-mark {
    display: inline;
    position: relative;
    white-space: nowrap;
}

.hero-title .hero-title-mark::after {
    content: "";
    position: absolute;
    left: -.03em;
    right: -.03em;
    bottom: -.09em;
    height: .085em;
    border-radius: 999px;
    background: #E52B32;
}

.hero-description {
    margin: 0 0 1.35rem;
    max-width: 30rem;
    color: #5b6b7a;
    font-size: 1rem;
    line-height: 1.65;
}

/* "Native Instructors • Medical + General English • AI Practice 24/7" */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin: 0 0 1.9rem;
    padding: 0;
    list-style: none;
}

.hero-features li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    font-weight: 700;
    color: #0f1b2d;
}

/* Separator dot before every item except the first, so it survives wrapping */
.hero-features li + li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E52B32;
    flex: 0 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Video collage ────────────────────────────────────────────────────────── */

.hero-images {
    position: relative;
    height: 470px;
    animation: fadeInRight .8s ease-out;
}

.hero-image-card {
    position: absolute;
    border-radius: 22px;
    overflow: hidden;
    background: #0f1b2d;
    box-shadow: 0 22px 50px rgba(15, 27, 45, .22);
    transition: transform .25s ease, box-shadow .25s ease;
}

.hero-image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 64px rgba(15, 27, 45, .28);
}

.hero-image-card img,
.hero-image-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Left card, sitting lower and behind */
.main-image {
    top: 42px;
    left: 0;
    width: 60%;
    height: 400px;
    z-index: 2;
}

/* Right card, raised and overlapping the left one */
.student-image {
    top: 0;
    left: auto;
    right: 0;
    width: 46%;
    height: 330px;
    z-index: 3;
}

/* Corner label — "LIVE CLASS" / "STUDENT STORY" */
.hero-card-tag {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #0f1b2d;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(15, 27, 45, .16);
}

.hero-card-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E52B32;
    flex: 0 0 auto;
}

/* Pulsing dot on the live card only */
.hero-card-tag--live::before {
    animation: heroLivePulse 1.8s ease-in-out infinite;
}

@keyframes heroLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .45; transform: scale(.8); }
}

.play-button {
    background: #ffffff;
    color: #E52B32;
    box-shadow: 0 8px 22px rgba(15, 27, 45, .28);
}

/* Floating "Dr Meddy" card, overlapping the bottom of the collage */
/* The card is the Dr Meddy call to action now, so it needs to behave like a
   control: no underline from being an <a>, a pointer, and a lift on hover. */
.hero-meddy {
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    position: absolute;
    right: 0;
    bottom: 6px;
    z-index: 5;
    width: min(320px, 84%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 27, 45, .2);
}

[dir="rtl"] .hero-meddy {
    right: auto;
    left: 0;
}

.hero-meddy__avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #14477a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-meddy__text {
    flex: 1;
    min-width: 0;
}

.hero-meddy__name {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: .88rem;
    font-weight: 800;
    color: #0f1b2d;
}

/* Green "online" dot */
.hero-meddy__name::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    flex: 0 0 auto;
}

/* Reads as the card's call to action, so it carries the brand navy and a
   heavier weight instead of the muted grey it used when it was a status line. */
.hero-meddy__sub {
    margin: 2px 0 0;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.35;
    color: #14477a;
    /* Keeps the two lines even instead of stranding a single word on the
       second one ("konuş!" / "now"). Ignored by browsers that lack it, which
       simply get the old ragged wrap. */
    text-wrap: balance;
}

.hero-meddy:hover .hero-meddy__sub {
    color: #E52B32;
}

.hero-meddy__mic {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #E52B32;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

/* Hover and focus live on the card, not the mic — the mic is a span inside the
   link now, so it cannot take them itself. */
.hero-meddy:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(15, 27, 45, .20);
}

.hero-meddy:hover .hero-meddy__mic {
    background: #C81F26;
    transform: scale(1.06);
}

.hero-meddy:focus-visible {
    outline: 2px solid #E52B32;
    outline-offset: 3px;
}

/* ── Stats bar ────────────────────────────────────────────────────────────── */

/* Was absolutely positioned at 50% width in the bottom-left corner; now a
   centred card under both columns. */
.hero-bottom-shape {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-content: initial;
    gap: 0;
    padding: 1.6rem 1.5rem;
    background: #ffffff;
    border-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 16px 44px rgba(15, 27, 45, .1);
    z-index: 2;
}

.hero-bottom-stat {
    text-align: center;
    position: relative;
}

/* Divider drawn on the item, so it stays correct at any breakpoint */
.hero-bottom-stat + .hero-bottom-stat::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 42px;
    background: #e6ebf0;
}

.hero-bottom-divider {
    display: none;
}

.hero-bottom-stat h3 {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 800;
    color: #14477a;
    line-height: 1.1;
}

.hero-bottom-stat p {
    margin: 4px 0 0;
    font-size: .82rem;
    font-weight: 600;
    color: #64748b;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .hero-content { gap: 2.5rem; }
    .hero-images { height: 420px; }
    .main-image { height: 360px; }
    .student-image { height: 300px; }
}

@media (max-width: 900px) {
    .hero-section { padding: 2.5rem 0; }

    .hero-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
        margin-bottom: 2rem;
    }

    .hero-description { max-width: none; }

    /* The collage relies on absolute positioning; stack the cards in normal
       flow instead, and unpin the floating card so nothing overlaps. */
    .hero-images {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .hero-image-card,
    .main-image,
    .student-image {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        height: 300px;
    }

    .hero-meddy {
        position: relative;
        right: auto;
        left: auto;
        bottom: auto;
        width: 100%;
        grid-column: 1 / -1;
    }

    [dir="rtl"] .hero-meddy { right: auto; left: auto; }

    .hero-bottom-shape {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.4rem 0;
        border-radius: 20px;
    }

    /* With two per row the vertical rule only belongs between columns */
    .hero-bottom-stat + .hero-bottom-stat::before { display: none; }
    .hero-bottom-stat:nth-child(even)::before { display: block; }
}

@media (max-width: 560px) {
    .hero-title { font-size: 1.85rem; }
    .hero-subtitle { font-size: .64rem; letter-spacing: .08em; }
    .hero-features { gap: 8px 14px; }
    .hero-features li { font-size: .8rem; }
    .hero-buttons { gap: .7rem; }

    .hero-images { grid-template-columns: 1fr; }

    .hero-image-card,
    .main-image,
    .student-image { height: 260px; }
}

/* ── Decorative background layer ─────────────────────────────────────────────
   Ambient shapes only. The whole layer is aria-hidden in the markup and
   pointer-events:none here, so it never steals a click or reaches a screen
   reader. Everything sits at z-index 0, under .hero-section > .container's
   z-index 1, and opacities are deliberately low — the copy has to stay the
   thing you read first. */

.hero-deco {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Concentric rings, bleeding off the right edge — only the arcs show */
.hero-deco__arcs {
    position: absolute;
    top: 50%;
    inset-inline-end: -16%;
    width: 44vw;
    max-width: 620px;
    aspect-ratio: 1;
    transform: translateY(-50%);
    color: rgba(229, 43, 50, .16);
}

/* Flowing lines down the left margin */
.hero-deco__waves {
    position: absolute;
    top: -6%;
    inset-inline-start: -3%;
    width: 15vw;
    max-width: 210px;
    aspect-ratio: 220 / 320;
    color: rgba(20, 71, 122, .13);
}

/* Heartbeat trace low on the left, echoing the logo mark */
.hero-deco__pulse {
    position: absolute;
    bottom: 16%;
    inset-inline-start: 4%;
    width: 16vw;
    max-width: 240px;
    aspect-ratio: 240 / 40;
    color: rgba(229, 43, 50, .2);
}

/* Dot grid in the upper right, behind the video collage */
.hero-deco__dots {
    position: absolute;
    top: 8%;
    inset-inline-end: 6%;
    width: 190px;
    height: 150px;
    background-image: radial-gradient(rgba(20, 71, 122, .22) 1.4px, transparent 1.4px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(135deg, #000 15%, transparent 75%);
    mask-image: linear-gradient(135deg, #000 15%, transparent 75%);
}

/* Small floating tiles for depth */
.hero-deco__chip {
    position: absolute;
    border-radius: 12px;
    animation: heroFloat 7s ease-in-out infinite;
}

.hero-deco__chip--1 {
    width: 62px;
    height: 62px;
    top: 14%;
    inset-inline-start: 41%;
    background: rgba(229, 43, 50, .07);
    transform: rotate(14deg);
}

.hero-deco__chip--2 {
    width: 38px;
    height: 38px;
    bottom: 26%;
    inset-inline-start: 33%;
    background: rgba(20, 71, 122, .09);
    border-radius: 50%;
    animation-delay: -2.4s;
}

.hero-deco__chip--3 {
    width: 46px;
    height: 46px;
    top: 60%;
    inset-inline-end: 41%;
    background: rgba(20, 71, 122, .07);
    transform: rotate(-10deg);
    animation-delay: -4.8s;
}

@keyframes heroFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -14px; }
}

/* Below the two-column breakpoint the copy runs full width, so the shapes
   would sit directly under the text — thin them out rather than compete. */
@media (max-width: 900px) {
    .hero-deco__dots,
    .hero-deco__chip { display: none; }

    .hero-deco__arcs { inset-inline-end: -30%; opacity: .6; }
    .hero-deco__waves { width: 26vw; opacity: .55; }
    .hero-deco__pulse { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-deco__chip { animation: none; }
    .hero-card-tag--live::before { animation: none; }
}

/* ── Turkish hero additions ──────────────────────────────────────────────────
   The Turkish copy carries a boxed word in the headline, a slogan line and a
   second paragraph that the other languages do not have. Kept restrained per
   the brief: brand red and navy only, no gradients or large colour fields. */

/* "DİL" set in a red box inside the headline */
.hero-title .hero-title-box {
    display: inline-block;
    padding: 0 .12em .06em;
    margin-inline-end: .02em;
    border-radius: .14em;
    background: #E52B32;
    color: #ffffff;
}

/* İNGİLİZCE KONUŞ, / DÜNYA VATANDAŞI OL! */
.hero-slogan {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 1.15rem;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 800;
    letter-spacing: -.01em;
}

/* Only the first clause is boxed — the rest stays plain navy */
.hero-slogan__mark {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    background: #E52B32;
    color: #ffffff;
    line-height: 1.2;
}

.hero-slogan__rest {
    color: #0f1b2d;
}

/* Two paragraphs sit tighter together than one paragraph and a list would */
.hero-description--second {
    margin-top: -.55rem;
}






/* The Turkish column carries more copy; give it a little more room without
   going past the 10% the brief allows. */
[lang="tr"] .hero-content {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
}

[lang="tr"] .hero-description {
    max-width: 32rem;
}

@media (max-width: 900px) {
    [lang="tr"] .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }
}
