/**
 * IMT Premium Hero — circular image layout
 * Colors: Navy #102A56 | Deep Navy #0B1F3F | Gold #C9A24A | Soft Gold #E4C878
 *         White #FFFFFF | Off White #F8FAFC | Light Blue Gray #EEF4FA | Text Gray #64748B
 */

/* ══════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
══════════════════════════════════════════════════════ */
body.is-home-page .premium-hero-banner-mock--ref-layout {
    --hero-ref-navy:       #102A56;
    --hero-ref-deep-navy:  #0B1F3F;
    --hero-ref-gold:       #C9A24A;
    --hero-ref-gold-soft:  #E4C878;
    --hero-ref-white:      #FFFFFF;
    --hero-ref-off-white:  #FFFFFF;
    --hero-ref-bg:         #FFFFFF;
    --hero-ref-text-muted: #334155;
    overflow-x: clip;
    overflow-y: visible;
    background: #ffffff !important;
    padding: clamp(1rem, 3vw, 2rem) 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;
}

/* Hide old wave / layer decorators */
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;
}

/* ══════════════════════════════════════════════════════
   ENTRANCE ANIMATIONS (subtle, no float loop on image)
══════════════════════════════════════════════════════ */
@keyframes heroRefFadeUp {
    from { opacity: 0; transform: translate3d(0, 22px, 0); }
    to   { opacity: 1; transform: translate3d(0,  0px, 0); }
}

@keyframes heroRefImageIn {
    from { opacity: 0; transform: translate3d(-24px, 8px, 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);    }
}

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

    /* Circle hero image — gentle fade-in only */
    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__visual-composition.hero-ref-anim--image {
        animation: heroRefImageIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) var(--hero-anim-delay, 0.04s) forwards;
    }
}

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

/* ══════════════════════════════════════════════════════
   OUTER CONTAINER
══════════════════════════════════════════════════════ */
body.is-home-page .premium-hero-ref__outer {
    max-width: 100% !important;
    width: 100%;
    padding: 0 !important;
}

/* Rounded card wrapper */
body.is-home-page .premium-hero-ref__card {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
    box-sizing: border-box;
}

/* Subtle dot pattern top corner */
body.is-home-page .premium-hero-ref__card::before {
    display: none;
}

body.is-home-page .premium-hero-ref__body {
    padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 4vw, 2.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
    max-width: none;
    margin-inline: 0;
    width: 100%;
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════
   SPLIT COLUMNS
══════════════════════════════════════════════════════ */
body.is-home-page .premium-hero-ref__split {
    align-items: center;
    width: 100%;
    margin-inline: 0;
    overflow: visible;
}

@media (min-width: 992px) {
    body.is-home-page .premium-hero-ref__split {
        flex-wrap: nowrap !important;
        column-gap: clamp(1rem, 2vw, 1.75rem);
        row-gap: 0;
    }

    body.is-home-page .premium-hero-ref__split > .premium-hero-ref__visual,
    body.is-home-page .premium-hero-ref__split > .premium-hero-ref__content {
        flex: 1 1 0 !important;
        max-width: none !important;
        width: auto !important;
        min-width: 0;
    }
}

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

/* ══════════════════════════════════════════════════════
   LEFT PANEL — CIRCULAR HERO IMAGE
══════════════════════════════════════════════════════ */
body.is-home-page .premium-hero-ref__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1.5rem);
    overflow: visible;
}

body.is-home-page .premium-hero-ref__visual-composition {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.is-home-page .premium-hero-ref__deco--dots {
    position: absolute;
    width: clamp(72px, 14vw, 110px);
    height: clamp(72px, 14vw, 110px);
    background-image: radial-gradient(circle, rgba(87, 134, 199, 0.32) 2px, transparent 2px);
    background-size: 13px 13px;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

body.is-home-page .premium-hero-ref__deco--dots-tl {
    top: 2%;
    left: 0;
}

body.is-home-page .premium-hero-ref__deco--dots-tr {
    top: 0;
    right: 2%;
    opacity: 0.4;
}

body.is-home-page .premium-hero-ref__circle-wrap {
    position: relative;
    z-index: 1;
    width: min(580px, 88vw);
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
}

body.is-home-page .premium-hero-ref__circle-glow {
    position: absolute;
    inset: -6%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(87, 134, 199, 0.14) 0%, rgba(87, 134, 199, 0.04) 55%, transparent 72%);
    z-index: 0;
    pointer-events: none;
}

body.is-home-page .premium-hero-ref__circle-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 3px solid rgba(87, 134, 199, 0.45);
    z-index: 3;
    pointer-events: none;
}

body.is-home-page .premium-hero-ref__circle-clip {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #eef4fb;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 24px 56px rgba(87, 134, 199, 0.2),
        0 8px 20px rgba(15, 32, 68, 0.08),
        inset 0 0 0 1px rgba(87, 134, 199, 0.12);
}

body.is-home-page .premium-hero-ref__circle-clip .premium-hero-ref__image,
body.is-home-page .premium-hero-ref__circle-clip .imt-hero-main-photo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center center !important;
    filter: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Legacy flat fallback (slider paths) */
body.is-home-page .premium-hero-ref__flat-img-wrap {
    width: 100%;
    max-width: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.is-home-page .premium-hero-ref__flat-img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: min(560px, 55vh) !important;
    object-fit: contain !important;
    object-position: center center !important;
}

body.is-home-page .premium-hero-ref__float-cards {
    display: none !important;
}

/* ══════════════════════════════════════════════════════
   RIGHT PANEL — CONTENT
══════════════════════════════════════════════════════ */
body.is-home-page .premium-hero-ref__content {
    text-align: right;
}

/* Badge */
body.is-home-page .premium-hero-ref__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem !important;
    background: var(--hero-ref-white) !important;
    border: 1px solid rgba(16, 42, 86, 0.1) !important;
    color: var(--hero-ref-navy) !important;
    text-transform: none;
    letter-spacing: 0;
    font-size: clamp(0.7rem, 1.2vw, 0.8rem) !important;
    font-weight: 700 !important;
    padding: 0.42rem 0.95rem !important;
    border-radius: 999px !important;
    opacity: 1 !important;
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
    width: fit-content;
}

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) !important;
    opacity: 1 !important;
    font-size: 0.85rem;
}

/* Headline */
body.is-home-page .premium-hero-ref__title {
    margin: 0 0 0.75rem;
    text-align: right !important;
    width: 100%;
}

body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__title.premium-hero-mock-title--stack {
    max-width: 100%;
    width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: right !important;
    margin-inline: 0 !important;
    display: block;
}

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

body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__title .premium-hero-mock-title__line--1,
body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__title .premium-hero-mock-title__line--2,
body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__title .premium-hero-mock-title__line--3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    color: var(--ph-title-color, var(--hero-ref-navy)) !important;
    margin-top: 0 !important;
    text-align: right !important;
}

/* Default gold accent — only when admin has not set title_highlight_color */
body.is-home-page .premium-hero-ref__title:not(.premium-hero-mock-title--custom-highlight) .premium-hero-accent--gradient {
    color: var(--hero-ref-gold) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: var(--hero-ref-gold) !important;
}

/* Admin title color (لوحة التحكم → title_color) */
body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-mock-title--custom-color .premium-hero-mock-title__line,
body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-mock-title--custom-color .premium-hero-mock-title__line--1,
body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-mock-title--custom-color .premium-hero-mock-title__line--2,
body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-mock-title--custom-color .premium-hero-mock-title__line--3 {
    color: var(--ph-title-color) !important;
}

body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-mock-title--custom-color .premium-hero-mock-title__line .premium-hero-accent:not(.premium-hero-accent--gradient) {
    color: inherit !important;
}

/* Admin highlight color (نص ** ** → title_highlight_color) */
body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-mock-title--custom-highlight .premium-hero-accent--gradient {
    background-image: linear-gradient(
        118deg,
        color-mix(in srgb, var(--ph-title-highlight) 38%, #ffffff) 0%,
        var(--ph-title-highlight) 46%,
        color-mix(in srgb, var(--ph-title-highlight) 58%, #0b2d6b) 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 16px color-mix(in srgb, var(--ph-title-highlight) 28%, transparent));
}

/* Subtitle */
body.is-home-page .premium-hero-ref__lead {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    line-height: 1.85;
    font-weight: 500;
    color: var(--ph-desc-color, var(--hero-ref-text-muted));
    max-width: 38em;
    margin-inline-start: auto;
    margin-inline-end: 0;
    text-align: right;
}

body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__lead.premium-hero-mock-sub--custom-color {
    color: var(--ph-desc-color) !important;
}

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

/* ══════════════════════════════════════════════════════
   CTA BUTTONS
══════════════════════════════════════════════════════ */
body.is-home-page .premium-hero-ref__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    direction: rtl;
}

body.is-home-page .premium-hero-ref__btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: clamp(0.82rem, 1.3vw, 0.92rem);
    min-height: 46px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.25s ease;
    text-decoration: none !important;
}

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

/* Primary: gold */
body.is-home-page .premium-hero-ref__btn--primary {
    background: var(--hero-ref-gold) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 24px rgba(201, 162, 74, 0.32);
}

body.is-home-page .premium-hero-ref__btn--primary:hover,
body.is-home-page .premium-hero-ref__btn--primary:focus {
    background: #b8923f !important;
    box-shadow: 0 14px 32px rgba(201, 162, 74, 0.40);
    color: #fff !important;
    transform: translateY(-3px) scale(1.02);
}

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

/* Secondary: white outline */
body.is-home-page .premium-hero-ref__btn--secondary {
    background: var(--hero-ref-white) !important;
    color: var(--hero-ref-navy) !important;
    border: 1.5px solid rgba(16, 42, 86, 0.16) !important;
    box-shadow: 0 4px 14px rgba(16, 42, 86, 0.06);
}

body.is-home-page .premium-hero-ref__btn--secondary:hover,
body.is-home-page .premium-hero-ref__btn--secondary:focus {
    background: var(--hero-ref-bg) !important;
    border-color: rgba(16, 42, 86, 0.28) !important;
    color: var(--hero-ref-deep-navy) !important;
    box-shadow: 0 8px 20px rgba(16, 42, 86, 0.1);
    transform: translateY(-2px);
}

body.is-home-page .premium-hero-ref__btn--secondary .fa {
    color: var(--hero-ref-navy) !important;
}

/* ══════════════════════════════════════════════════════
   FEATURE CARDS — 4 columns on desktop
══════════════════════════════════════════════════════ */
body.is-home-page .premium-hero-ref__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.6rem, 1.2vw, 0.85rem);
    margin-top: 0.25rem;
}

body.is-home-page .premium-hero-ref__feature-card {
    background: var(--hero-ref-white);
    border-radius: 14px;
    padding: clamp(0.85rem, 1.6vw, 1.1rem);
    border: 1px solid rgba(16, 42, 86, 0.07);
    box-shadow: 0 6px 18px rgba(11, 31, 63, 0.07);
    text-align: right;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
}

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

body.is-home-page .premium-hero-ref__feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    margin-bottom: 0.5rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--hero-ref-bg);
    border: 1px solid rgba(16, 42, 86, 0.08);
    color: var(--hero-ref-navy) !important;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* Accent colours for icon backgrounds */
body.is-home-page .premium-hero-academic-card--accent-emerald .premium-hero-ref__feature-icon {
    background: rgba(201, 162, 74, 0.08);
    border-color: rgba(201, 162, 74, 0.18);
}

body.is-home-page .premium-hero-academic-card--accent-sky .premium-hero-ref__feature-icon {
    background: rgba(16, 42, 86, 0.06);
    border-color: rgba(16, 42, 86, 0.12);
}

body.is-home-page .premium-hero-academic-card--accent-amber .premium-hero-ref__feature-icon {
    background: rgba(228, 200, 120, 0.12);
    border-color: rgba(228, 200, 120, 0.24);
}

body.is-home-page .premium-hero-academic-card__title {
    display: block;
    font-size: clamp(0.75rem, 1.1vw, 0.85rem) !important;
    font-weight: 800;
    color: var(--hero-ref-navy) !important;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

body.is-home-page .premium-hero-academic-card__desc {
    font-size: clamp(0.68rem, 1vw, 0.75rem) !important;
    color: var(--hero-ref-text-muted) !important;
    margin: 0;
    line-height: 1.55;
}

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

/* ══════════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════════ */
body.is-home-page .premium-hero-ref__stats {
    width: 100%;
    margin: 0;
    padding: clamp(1rem, 2vw, 1.4rem) clamp(1rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, 0.94);
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

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

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

body.is-home-page .premium-hero-ref__stat:not(:last-child) {
    border-inline-end: 1px solid rgba(16, 42, 86, 0.08);
    padding-inline-end: clamp(0.75rem, 2vw, 1.5rem);
}

body.is-home-page .premium-hero-ref__stat-ico,
body.is-home-page .premium-hero-academic-stat__ico {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 74, 0.1);
    border: 1px solid rgba(201, 162, 74, 0.22);
    color: var(--hero-ref-gold) !important;
}

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

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

body.is-home-page .premium-hero-ref__stat-label,
body.is-home-page .premium-hero-academic-stat__label {
    font-size: clamp(0.7rem, 1.1vw, 0.8rem);
    font-weight: 600;
    color: var(--hero-ref-text-muted);
    line-height: 1.35;
}

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

/* ══════════════════════════════════════════════════════
   ADMIN CUSTOM BG
══════════════════════════════════════════════════════ */
body.is-home-page .premium-hero-admin-custom-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    border-radius: inherit;
}

/* ══════════════════════════════════════════════════════
   TABLET (max 991px)
══════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    /* Mobile stack: badge → title → text → buttons → image → trust cards */
    body.is-home-page .premium-hero-ref__split {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "hero-top"
            "hero-visual"
            "hero-cards";
        align-items: start;
    }

    body.is-home-page .premium-hero-ref__split > .premium-hero-ref__visual {
        grid-area: hero-visual;
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    body.is-home-page .premium-hero-ref__split > .premium-hero-ref__content {
        display: contents;
    }

    body.is-home-page .premium-hero-ref__content-top {
        grid-area: hero-top;
        width: 100%;
        min-width: 0;
    }

    body.is-home-page .premium-hero-ref__cards {
        grid-area: hero-cards;
        width: 100%;
        min-width: 0;
    }

    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: 44em;
    }

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

    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__title.premium-hero-mock-title--stack,
    body.is-home-page .premium-hero-ref__title {
        text-align: center !important;
        margin-inline: auto !important;
    }

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

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

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

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

    body.is-home-page .premium-hero-ref__visual {
        padding-inline: 0.5rem;
        padding-block: 0.25rem;
        overflow: visible;
    }

    body.is-home-page .premium-hero-ref__circle-wrap {
        max-width: min(480px, 92vw);
    }

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

    /* Tablet: 2 columns feature cards */
    body.is-home-page .premium-hero-ref__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Tablet: 2 columns stats */
    body.is-home-page .premium-hero-ref__stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    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 {
        justify-content: center;
        text-align: center;
    }

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

/* ══════════════════════════════════════════════════════
   MOBILE (max 767px)
══════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    body.is-home-page .premium-hero-ref__body {
        padding: 1rem 1rem 0.75rem;
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__title .premium-hero-mock-title__line--1,
    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__title .premium-hero-mock-title__line--2,
    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__title .premium-hero-mock-title__line--3 {
        font-size: clamp(1.15rem, 5vw, 1.8rem) !important;
        line-height: 1.3;
    }

    body.is-home-page .premium-hero-ref__lead {
        font-size: clamp(0.92rem, 3.6vw, 1.02rem);
        line-height: 1.8;
        font-weight: 600;
        color: var(--ph-desc-color, #334155);
        opacity: 1;
    }

    body.is-home-page .premium-hero-ref__flat-img,
    body.is-home-page .imt-hero-main-photo {
        max-height: min(360px, 48vh) !important;
    }
}

/* ══════════════════════════════════════════════════════
   SMALL MOBILE (max 575px) — stack buttons, 2-col cards
══════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {
    body.is-home-page .premium-hero-ref__body {
        padding: 0.75rem 0.75rem 0.5rem;
    }

    body.is-home-page .premium-hero-ref__actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    body.is-home-page .premium-hero-ref__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

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

    body.is-home-page .premium-hero-ref__stats {
        padding: 0.65rem 0.75rem;
        margin-block: 0.4rem 0.5rem;
        width: calc(100% - 1rem);
    }

    body.is-home-page .premium-hero-ref__stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 0.5rem;
    }

    body.is-home-page .premium-hero-ref__stat-ico,
    body.is-home-page .premium-hero-academic-stat__ico {
        width: 38px;
        height: 38px;
    }

    body.is-home-page .premium-hero-ref__circle-wrap {
        max-width: min(340px, 88vw);
    }

    body.is-home-page .premium-hero-ref__flat-img {
        max-height: min(300px, 44vh) !important;
    }
}

/* ══════════════════════════════════════════════════════
   VERY SMALL (max 359px) — 1-col stats
══════════════════════════════════════════════════════ */
@media (max-width: 359.98px) {
    body.is-home-page .premium-hero-ref__body {
        padding: 0.5rem 0.6rem 0.35rem;
    }

    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.67rem !important;
        padding: 0.32rem 0.65rem !important;
    }

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

/* ══════════════════════════════════════════════════════
   LANDSCAPE MOBILE
══════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
    body.is-home-page .premium-hero-ref__visual {
        min-height: 100px;
    }

    body.is-home-page .premium-hero-ref__flat-img,
    body.is-home-page .imt-hero-main-photo {
        max-height: min(260px, 65vh) !important;
    }

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

/* ══════════════════════════════════════════════════════
   DESKTOP — feature cards 4 columns, ensure right-align text
══════════════════════════════════════════════════════ */
@media (min-width: 992px) {
    body.is-home-page .premium-hero-ref__cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
    }

    body.is-home-page.rtl .premium-hero-banner-mock--ref-layout .premium-hero-ref__title,
    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__title {
        text-align: right !important;
        margin-inline: 0 !important;
        margin-inline-start: auto !important;
        width: 100%;
    }

    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(16, 42, 86, 0.08);
        padding-inline-end: clamp(0.75rem, 1.5vw, 1.5rem);
    }
}

/* Prevent horizontal scroll on all screen sizes */
body.is-home-page .premium-home-hero-wrap,
body.is-home-page .premium-hero-ref__outer,
body.is-home-page .premium-hero-ref__card {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}
