.sv-theme-hero {
    --sv-theme-hero-image: none;
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    min-height: clamp(470px, 60vw, 620px);
    overflow: hidden;
    color: #fff;
    background: var(--sv-color-ink, #10231B);
}

.sv-theme-hero::before,
.sv-theme-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sv-theme-hero::before {
    z-index: -2;
    background-image: var(--sv-theme-hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.01);
}

.sv-theme-hero::after {
    z-index: -1;
    background: rgba(16, 35, 27, .72);
}

.sv-theme-hero__shell {
    display: flex;
    align-items: center;
    width: min(calc(100% - 64px), var(--sv-container-width, 1440px));
    margin: 0 auto;
    padding: clamp(76px, 8vw, 124px) 0 clamp(72px, 7vw, 110px);
}

.sv-theme-hero__copy {
    width: min(100%, 850px);
}

.sv-theme-hero__eyebrow {
    margin: 0 0 16px;
    color: var(--sv-color-green-hi, #37D48C);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sv-theme-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 4.7vw, 68px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.sv-theme-hero__description {
    max-width: 790px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .96);
    font-size: clamp(17px, 1.45vw, 20px);
    font-weight: 500;
    line-height: 1.65;
}

.sv-theme-hero__benefits {
    display: grid;
    gap: 11px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.sv-theme-hero__benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
}

.sv-theme-hero__benefits li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border-radius: 50%;
    color: var(--sv-color-ink, #10231B);
    background: var(--sv-color-green-hi, #37D48C);
    font-size: 11px;
    font-weight: 800;
}

.sv-theme-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 34px;
    padding: 14px 25px;
    border-radius: 999px;
    color: #fff !important;
    background: var(--sv-color-green, #1BA365);
    box-shadow: 0 11px 26px rgba(27, 163, 101, .28);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.sv-theme-hero__button:hover,
.sv-theme-hero__button:focus-visible {
    color: #fff !important;
    background: var(--sv-color-ink, #10231B);
    box-shadow: 0 15px 32px rgba(16, 35, 27, .32);
    transform: translateY(-2px);
}

.sv-theme-hero__button:active {
    transform: translateY(1px) scale(.98);
}

.sv-theme-hero__note {
    margin-top: 13px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.sv-theme-hero--home {
    min-height: clamp(650px, calc(100svh - 118px), 820px);
    border-radius: 0 0 112px 0;
}

.sv-theme-hero--home .sv-theme-hero__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(360px, .64fr);
    gap: clamp(38px, 5vw, 76px);
}

.sv-theme-hero--home .sv-theme-hero__copy {
    width: 100%;
}

.sv-theme-hero-quiz {
    align-self: center;
    width: 100%;
    padding: clamp(26px, 3vw, 36px);
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 28px;
    color: var(--sv-color-ink, #10231B);
    background: rgba(247, 250, 248, .96);
    box-shadow: 0 24px 62px rgba(5, 28, 20, .24);
}

.sv-theme-hero-quiz__eyebrow {
    margin-bottom: 11px;
    color: var(--sv-color-green, #1BA365);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sv-theme-hero-quiz h2 {
    margin: 0;
    color: var(--sv-color-ink, #10231B);
    font-size: clamp(26px, 2.35vw, 36px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.sv-theme-hero-quiz > p {
    margin: 15px 0 0;
    color: var(--sv-color-muted, #5C6F67);
    font-size: 14px;
    line-height: 1.6;
}

.sv-theme-hero-quiz__steps {
    display: grid;
    gap: 9px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.sv-theme-hero-quiz__steps li {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--sv-color-border, #C9DDD2);
    border-radius: 13px;
    background: #fff;
}

.sv-theme-hero-quiz__steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    color: #fff;
    background: var(--sv-color-green, #1BA365);
    font-size: 12px;
    font-weight: 700;
}

.sv-theme-hero-quiz__steps strong {
    color: var(--sv-color-ink, #10231B);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.sv-theme-hero-quiz__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    padding: 13px 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--sv-color-green, #1BA365);
    box-shadow: 0 10px 24px rgba(27, 163, 101, .22);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.sv-theme-hero-quiz__button > span:last-child {
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
}

.sv-theme-hero-quiz__button:hover,
.sv-theme-hero-quiz__button:focus-visible {
    color: #fff;
    background: var(--sv-color-ink, #10231B);
    box-shadow: 0 14px 28px rgba(16, 35, 27, .25);
    transform: translateY(-2px);
}

.sv-theme-hero-quiz__button:focus-visible {
    outline: 3px solid rgba(55, 212, 140, .38);
    outline-offset: 3px;
}

.sv-theme-hero--about,
.sv-theme-hero--tutors,
.sv-theme-hero--contact {
    border-radius: 0 0 86px 0;
}

/* The application form no longer sits inside a Gutenberg shortcode block. */
body.sv-page-application #sv-application-content {
    width: 100%;
    padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 100px);
}

/* A transition-safe fallback until the saved editor blocks are deleted. */
body.home .entry-content > .wp-block-uagb-container.uagb-block-0d23f057,
body:is(.sv-page-about, .sv-page-tutors, .sv-page-contact)
    .entry-content > .wp-block-uagb-container.uagb-block-7dc1b7fc {
    display: none !important;
}

@media (max-width: 1024px) {
    .sv-theme-hero__shell {
        width: calc(100% - 48px);
    }

    .sv-theme-hero::after {
        background: rgba(16, 35, 27, .70);
    }

    .sv-theme-hero--home .sv-theme-hero__shell {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .7fr);
        gap: 32px;
    }
}

@media (max-width: 920px) {
    .sv-theme-hero--home .sv-theme-hero__shell {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .sv-theme-hero-quiz {
        width: min(100%, 620px);
    }
}

@media (max-width: 767px) {
    body.sv-page-application #sv-application-content {
        padding: 36px 0 52px;
    }

    .sv-theme-hero,
    .sv-theme-hero--home {
        min-height: 0;
        border-radius: 0 0 54px 0;
    }

    .sv-theme-hero__shell {
        width: calc(100% - 32px);
        padding-top: 70px;
        padding-bottom: 66px;
    }

    .sv-theme-hero--home .sv-theme-hero__shell {
        gap: 32px;
    }

    .sv-theme-hero-quiz {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .sv-theme-hero-quiz h2 {
        font-size: 27px;
    }

    .sv-theme-hero::before {
        background-position: 62% center;
    }

    .sv-theme-hero::after {
        background: rgba(16, 35, 27, .72);
    }

    .sv-theme-hero__eyebrow {
        margin-bottom: 11px;
        font-size: 11px;
        letter-spacing: .13em;
    }

    .sv-theme-hero h1 {
        font-size: clamp(38px, 11vw, 49px);
        line-height: 1.08;
    }

    .sv-theme-hero__description {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.55;
    }

    .sv-theme-hero__benefits {
        gap: 9px;
        margin-top: 25px;
    }

    .sv-theme-hero__benefits li {
        font-size: 14px;
    }

    .sv-theme-hero__button {
        min-height: 50px;
        margin-top: 29px;
        padding: 13px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sv-theme-hero__button,
    .sv-theme-hero-quiz__button {
        transition: none;
    }
}
