/**
 * Homepage hero — reference layout (full width)
 */

body.is-home-page .premium-hero-banner-mock--ref-layout {
    --hero-ref-navy: var(--navy, #0f2044);
    --hero-ref-accent: #5786c7;
    --hero-ref-gold: #5786c7;
    --hero-ref-gold-accent: #c5a059;
    --hero-ref-ivory: #f5f6f8;
    overflow-x: clip;
    overflow-y: visible;
    background: var(--hero-ref-ivory) !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
}

body.is-home-page .premium-hero-banner-mock--ref-layout.premium-home-hero-wrap {
    overflow-x: clip;
    overflow-y: visible;
    min-height: auto !important;
}

body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-banner-mock__layers,
body.is-home-page .premium-hero-banner-mock--ref-layout .hero-premium-wave--split-edge {
    display: none !important;
}

/* ── Premium entrance & motion (hero only) ── */
@keyframes heroRefFadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroRefImageIn {
    from {
        opacity: 0;
        transform: translate3d(-28px, 12px, 0) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes heroRefScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroRefCardIn {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes heroRefFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    body.is-home-page .premium-hero-banner-mock--ref-layout .hero-ref-anim {
        opacity: 0;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
        animation-fill-mode: forwards;
        animation-delay: var(--hero-anim-delay, 0s);
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .hero-ref-anim--fade-up,
    body.is-home-page .premium-hero-banner-mock--ref-layout .hero-ref-anim--stat {
        animation-name: heroRefFadeUp;
        animation-duration: 0.9s;
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .hero-ref-anim--scale-in {
        animation-name: heroRefScaleIn;
        animation-duration: 0.75s;
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .hero-ref-anim--card {
        animation-name: heroRefCardIn;
        animation-duration: 0.82s;
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__image-stage.hero-ref-anim--image {
        animation:
            heroRefImageIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards,
            heroRefFloat 9s ease-in-out 1.15s infinite;
        animation-delay: var(--hero-anim-delay, 0.04s), 1.15s;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.is-home-page .premium-hero-banner-mock--ref-layout .hero-ref-anim {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ── Full-width container ── */
body.is-home-page .premium-hero-ref__outer {
    max-width: 100% !important;
    width: 100%;
    padding: 0 !important;
}

body.is-home-page .premium-hero-ref__card {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(15, 32, 68, 0.06);
    box-shadow: 0 12px 40px rgba(15, 32, 68, 0.06);
    overflow: hidden;
    box-sizing: border-box;
}

body.is-home-page .premium-hero-ref__body {
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3rem) clamp(1rem, 2vw, 1.25rem);
    max-width: 1400px;
    margin-inline: auto;
    width: 100%;
    box-sizing: border-box;
}

/* ── Split columns ── */
body.is-home-page .premium-hero-ref__split {
    align-items: center;
    width: 100%;
    margin-inline: 0;
}

body.is-home-page .premium-hero-ref__split > [class*='col-'] {
    min-width: 0;
    max-width: 100%;
}

body.is-home-page .premium-hero-ref__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

body.is-home-page .premium-hero-ref__image-stage {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
}

body.is-home-page .premium-hero-ref__image {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    max-height: min(520px, 58vh);
    min-height: 0;
    object-fit: contain;
    object-position: center;
    display: block !important;
    border-radius: 12px;
    filter: drop-shadow(0 16px 36px rgba(15, 32, 68, 0.12));
}

/* Override kids-ref global sub centering on desktop RTL */
body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__lead.premium-hero-mock-sub {
    margin-inline-start: auto;
    margin-inline-end: 0;
    text-align: right;
}

body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__title.premium-hero-mock-title--stack {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__title .premium-hero-mock-title__line {
    display: block;
}

/* ── Right content ── */
body.is-home-page .premium-hero-ref__content {
    text-align: right;
}

body.is-home-page .premium-hero-ref__badge {
    margin-inline: 0 0;
    margin-inline-start: auto;
    margin-bottom: 1rem !important;
    background: #f3f5f8 !important;
    border: 1px solid rgba(15, 32, 68, 0.07) !important;
    color: rgba(15, 32, 68, 0.82) !important;
    text-transform: none;
    letter-spacing: 0;
    font-size: clamp(0.72rem, 1.3vw, 0.82rem) !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.9rem !important;
    opacity: 1 !important;
}

body.is-home-page .premium-hero-ref__badge .fa,
body.is-home-page .premium-hero-ref__badge .premium-hero-mock-eyebrow__ico {
    color: var(--hero-ref-gold-accent) !important;
    opacity: 1 !important;
}

body.is-home-page .premium-hero-ref__title {
    margin: 0 0 0.75rem;
    text-align: right;
}

body.is-home-page .premium-hero-ref__title .premium-hero-mock-title__line--1,
body.is-home-page .premium-hero-ref__title .premium-hero-mock-title__line--2,
body.is-home-page .premium-hero-ref__title .premium-hero-mock-title__line--3 {
    font-size: clamp(1.5rem, 3.2vw, 2.15rem);
    font-weight: 900;
    line-height: 1.25;
    color: var(--hero-ref-navy);
}

body.is-home-page .premium-hero-ref__lead {
    font-size: clamp(0.92rem, 1.45vw, 1.02rem);
    line-height: 1.85;
    color: rgba(15, 32, 68, 0.55);
    max-width: 38em;
    margin-inline-start: auto;
    text-align: right;
}

/* ── CTA buttons ── */
body.is-home-page .premium-hero-ref__actions {
    justify-content: flex-start;
    gap: 0.75rem;
}

body.is-home-page .premium-hero-ref__btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 1.45rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: clamp(0.82rem, 1.3vw, 0.92rem);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, background 0.25s ease;
}

body.is-home-page .premium-hero-ref__btn .fa {
    opacity: 1 !important;
    font-size: 0.95rem;
}

body.is-home-page .premium-hero-ref__btn--primary {
    background: var(--hero-ref-accent) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 24px rgba(87, 134, 199, 0.28);
    padding: 0.78rem 1.65rem;
}

body.is-home-page .premium-hero-ref__btn--primary:hover {
    box-shadow: 0 14px 32px rgba(87, 134, 199, 0.34);
    color: #fff !important;
}

body.is-home-page .premium-hero-ref__feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 0.55rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(87, 134, 199, 0.1);
    border: 1px solid rgba(87, 134, 199, 0.18);
    color: var(--hero-ref-accent) !important;
}

body.is-home-page .premium-hero-ref__feature-icon .fa {
    font-size: 1.05rem !important;
    color: var(--hero-ref-accent) !important;
    opacity: 1 !important;
    line-height: 1;
}

/* ── Feature cards ── */
body.is-home-page .premium-hero-ref__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.5vw, 0.9rem);
}

body.is-home-page .premium-hero-ref__btn--primary .fa {
    color: #fff !important;
    transition: transform 0.3s ease;
}

body.is-home-page .premium-hero-ref__btn--primary:hover .fa {
    transform: translateY(-1px);
}

body.is-home-page .premium-hero-ref__feature-card {
    background: #fff;
    border-radius: 14px;
    padding: clamp(0.85rem, 1.8vw, 1.1rem);
    border: 1px solid rgba(15, 32, 68, 0.08);
    box-shadow: 0 6px 18px rgba(15, 32, 68, 0.06);
    text-align: right;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    body.is-home-page .premium-hero-ref__feature-card {
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
    }

    body.is-home-page .premium-hero-ref__feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(15, 32, 68, 0.1);
        border-color: rgba(15, 32, 68, 0.14);
    }

    body.is-home-page .premium-hero-ref__feature-card:hover .premium-hero-ref__feature-icon {
        transform: scale(1.06);
    }

    body.is-home-page .premium-hero-ref__feature-icon {
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.is-home-page .premium-hero-ref__stat {
        transition: transform 0.3s ease;
    }

    body.is-home-page .premium-hero-ref__stat:hover {
        transform: translateY(-2px);
    }

    body.is-home-page .premium-hero-ref__btn--primary:hover {
        transform: translateY(-3px) scale(1.02);
    }
}

body.is-home-page .premium-hero-ref__feature-card .premium-hero-academic-card__title {
    font-size: clamp(0.82rem, 1.35vw, 0.9rem);
    font-weight: 800;
    color: var(--hero-ref-navy);
    margin-bottom: 0.25rem;
}

body.is-home-page .premium-hero-ref__feature-card .premium-hero-academic-card__desc {
    font-size: clamp(0.72rem, 1.15vw, 0.78rem);
    color: rgba(15, 32, 68, 0.55);
    margin: 0;
}

body.is-home-page .premium-hero-ref__feature-card .premium-hero-academic-card__meta {
    display: none;
}

@media (min-width: 1200px) {
    body.is-home-page .premium-hero-ref__cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    body.is-home-page .premium-hero-ref__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.is-home-page .premium-hero-ref__image-stage {
        max-width: 460px;
    }
}

/* ── Stats bar (full width) ── */
body.is-home-page .premium-hero-ref__stats {
    width: 100%;
    padding: clamp(1rem, 2.2vw, 1.35rem) clamp(1.25rem, 4vw, 3rem);
    background: #fafbfc;
    border-top: 1px solid rgba(15, 32, 68, 0.06);
}

body.is-home-page .premium-hero-ref__stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.8vw, 1.25rem);
    max-width: 1400px;
    margin-inline: auto;
}

body.is-home-page .premium-hero-ref__stat {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-align: right;
}

body.is-home-page .premium-hero-ref__stat-ico {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(87, 134, 199, 0.1);
    border: 1px solid rgba(87, 134, 199, 0.18);
    color: var(--hero-ref-accent) !important;
}

body.is-home-page .premium-hero-ref__stat-ico .fa {
    font-size: 1.1rem !important;
    color: var(--hero-ref-accent) !important;
    opacity: 1 !important;
    line-height: 1;
}

body.is-home-page .premium-hero-ref__stat-number {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 900;
    color: var(--hero-ref-navy);
    font-variant-numeric: tabular-nums;
}

body.is-home-page .premium-hero-ref__stat-label {
    font-size: clamp(0.7rem, 1.15vw, 0.8rem);
    font-weight: 600;
    color: rgba(15, 32, 68, 0.55);
}

@media (min-width: 768px) {
    body.is-home-page .premium-hero-ref__stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.is-home-page .premium-hero-ref__stat:not(:last-child) {
        border-inline-end: 1px solid rgba(15, 32, 68, 0.07);
        padding-inline-end: clamp(0.75rem, 1.5vw, 1.5rem);
    }
}

@media (min-width: 1400px) {
    body.is-home-page .premium-hero-ref__image-stage {
        max-width: 560px;
    }

    body.is-home-page .premium-hero-ref__image {
        max-height: min(560px, 62vh);
    }
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    body.is-home-page .premium-hero-ref__content {
        text-align: center;
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__lead.premium-hero-mock-sub {
        margin-inline: auto;
        text-align: center;
        max-width: 42em;
    }

    body.is-home-page .premium-hero-ref__badge,
    body.is-home-page .premium-hero-ref__title,
    body.is-home-page .premium-hero-ref__lead {
        margin-inline: auto;
        text-align: center;
    }

    body.is-home-page .premium-hero-ref__badge {
        margin-inline-start: auto;
        margin-inline-end: auto;
        width: fit-content;
        max-width: 100%;
    }

    body.is-home-page .premium-hero-ref__actions {
        justify-content: center;
        width: 100%;
    }

    body.is-home-page .premium-hero-ref__feature-card {
        text-align: center;
    }

    body.is-home-page .premium-hero-ref__feature-icon {
        margin-inline: auto;
    }

    body.is-home-page .premium-hero-ref__visual {
        min-height: 200px;
        padding-inline: clamp(0.5rem, 3vw, 1.5rem);
    }

    body.is-home-page .premium-hero-ref__image {
        max-height: min(420px, 50vh);
    }

    body.is-home-page .premium-hero-ref__stat {
        justify-content: center;
        text-align: center;
    }

    body.is-home-page .premium-hero-ref__stat .premium-hero-academic-stat__body {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    body.is-home-page .premium-hero-ref__stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem 0.65rem;
    }

    body.is-home-page .premium-hero-ref__stat:not(:last-child) {
        border-inline-end: none;
        padding-inline-end: 0;
    }

    body.is-home-page .premium-hero-ref__stat-ico {
        width: 40px;
        height: 40px;
    }

    body.is-home-page .premium-hero-ref__title .premium-hero-mock-title__line--1,
    body.is-home-page .premium-hero-ref__title .premium-hero-mock-title__line--2,
    body.is-home-page .premium-hero-ref__title .premium-hero-mock-title__line--3 {
        font-size: clamp(1.28rem, 5.2vw, 1.75rem);
        line-height: 1.3;
    }

    body.is-home-page .premium-hero-ref__lead {
        font-size: clamp(0.88rem, 3.6vw, 1rem);
        line-height: 1.75;
    }
}

@media (max-width: 575.98px) {
    body.is-home-page .premium-hero-ref__body {
        padding: 1.15rem 0.85rem 0.65rem;
    }

    body.is-home-page .premium-hero-ref__stats {
        padding: 0.85rem 0.75rem;
    }

    body.is-home-page .premium-hero-ref__btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    body.is-home-page .premium-hero-ref__cards {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    body.is-home-page .premium-hero-ref__feature-card {
        padding: 0.8rem 0.9rem;
    }

    body.is-home-page .premium-hero-ref__visual {
        min-height: 160px;
        padding-inline: 0.25rem;
    }

    body.is-home-page .premium-hero-ref__image {
        max-height: min(340px, 46vh);
        border-radius: 10px;
    }

    body.is-home-page .premium-hero-ref__stat-number {
        font-size: clamp(1.05rem, 4.8vw, 1.25rem);
    }

    body.is-home-page .premium-hero-ref__stat-label {
        font-size: clamp(0.65rem, 2.9vw, 0.75rem);
        line-height: 1.35;
    }
}

@media (max-width: 359.98px) {
    body.is-home-page .premium-hero-ref__body {
        padding: 1rem 0.65rem 0.5rem;
    }

    body.is-home-page .premium-hero-ref__stats-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    body.is-home-page .premium-hero-ref__stat {
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(15, 32, 68, 0.06);
    }

    body.is-home-page .premium-hero-ref__stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    body.is-home-page .premium-hero-ref__badge {
        font-size: 0.68rem !important;
        padding: 0.35rem 0.7rem !important;
    }

    body.is-home-page .premium-hero-ref__btn {
        padding: 0.68rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    body.is-home-page .premium-hero-ref__visual {
        min-height: 120px;
    }

    body.is-home-page .premium-hero-ref__image {
        max-height: min(280px, 70vh);
    }

    body.is-home-page .premium-hero-ref__body {
        padding-block: 0.85rem;
    }
}
