/* Mr Alayman Hassan — public stylesheet v3 */
:root {
    /* ── Brand palette ── */
    --ep-ink:         #000B1E;   /* deep navy */
    --ep-navy:        #000B1E;
    --ep-dark:        #000B1E;
    --ep-primary:     #0056B3;   /* Alayman blue */
    --ep-primary-alt: #003d82;   /* darker blue */
    --ep-secondary:   #4DAFFF;   /* sky blue accent */
    --ep-sky:         #4DAFFF;
    --ep-chalk:       #e8f4ff;
    --ep-paper:       #f0f4f9;
    --ep-surface:     #ffffff;
    --ep-body:        #2e3a4e;
    --ep-muted:       #64748b;
    --ep-border:      #d0dcea;
    --ep-shadow:      0 20px 52px rgba(0, 11, 30, 0.14);
    --ep-radius:      10px;
    --ep-transition:  0.25s ease;

    /* ── Typography ── */
    --ep-font:      "Cairo", system-ui, sans-serif;
    --ep-heading:   "Cairo", system-ui, sans-serif;
    --ep-display:   "Aref Ruqaa", "Cairo", serif;
    --ep-container: 1200px;

    /* Aliases */
    --ep-white: #ffffff;
    --ep-gold:  #4DAFFF;
    --ep-shade: #f0f4f9;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ep-public {
    margin: 0;
    font-family: var(--ep-font);
    color: var(--ep-body);
    background: var(--ep-paper);
    line-height: 1.7;
    overflow-x: hidden;
}

html[dir="rtl"] body.ep-public { direction: rtl; }
html[dir="ltr"] body.ep-public { direction: ltr; }

a {
    color: var(--ep-primary);
    text-decoration: none;
    transition: color var(--ep-transition);
}

a:hover { color: var(--ep-secondary); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ep-container {
    width: 100%;
    max-width: var(--ep-container);
    margin: 0 auto;
    padding: 0 22px;
}

/* ================================================================
   HEADER — modern frosted glass floating bar
   ================================================================ */
.ep-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* frosted glass: white/10% base + blur */
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 86, 179, 0.12);
    box-shadow: 0 2px 20px rgba(0, 11, 30, 0.08);
    transition: background var(--ep-transition), box-shadow var(--ep-transition);
}

.ep-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
}

.ep-logo { text-decoration: none; flex-shrink: 0; }
.ep-logo:hover { color: inherit; }

/* ── Desktop nav links with animated underline indicator ── */
.ep-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ep-nav-links a {
    position: relative;
    color: var(--ep-ink);
    font-weight: 700;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color var(--ep-transition), background var(--ep-transition);
}

/* Sliding underline on hover/active */
.ep-nav-links a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    inset-inline-start: 16px;
    inset-inline-end: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--ep-primary);
    transform: scaleX(0);
    transition: transform 0.22s ease;
    transform-origin: center;
}

.ep-nav-links a:hover,
.ep-nav-links a.active {
    color: var(--ep-primary);
    background: rgba(0, 86, 179, 0.07);
}

.ep-nav-links a:hover::after,
.ep-nav-links a.active::after {
    transform: scaleX(1);
}

/* ── Right cluster: locale + CTA buttons ── */
.ep-nav-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Locale pill toggle */
.ep-locale {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--ep-paper);
    border: 1px solid var(--ep-border);
    border-radius: 20px;
    padding: 3px;
}

.ep-locale a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 800;
    color: var(--ep-muted);
    letter-spacing: 0.03em;
    transition: background var(--ep-transition), color var(--ep-transition);
}

.ep-locale a.is-active {
    background: var(--ep-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.3);
}

.ep-locale--mobile { margin-top: 24px; }

/* ── Hamburger — three bars that morph ── */
.ep-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: background var(--ep-transition);
}

.ep-menu-toggle:hover { background: rgba(0, 86, 179, 0.08); }

.ep-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ep-ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.ep-menu-toggle span:nth-child(2) { width: 16px; }

/* ── Mobile nav drawer — slide in from end side ── */
.ep-mobile-nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(320px, 85vw);
    background: var(--ep-surface);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    transform: translateX(110%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 11, 30, 0.18);
    padding: 0;
    overflow-y: auto;
}

html[dir="rtl"] .ep-mobile-nav {
    inset-inline-end: auto;
    inset-inline-start: 0;
    transform: translateX(-110%);
}

.ep-mobile-nav.open { transform: translateX(0); }

/* Blue top accent on drawer */
.ep-mobile-nav::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(to right, var(--ep-primary), var(--ep-secondary));
    flex-shrink: 0;
}

/* Close button inside drawer */
.ep-mobile-nav .close-btn {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--ep-surface);
    border: none;
    border-bottom: 1px solid var(--ep-border);
    color: var(--ep-ink);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    text-align: start;
    z-index: 1;
    font-family: inherit;
}

.ep-mobile-nav .close-btn i { margin-inline-start: auto; color: var(--ep-muted); }

/* Nav links in drawer */
.ep-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px;
    color: var(--ep-ink);
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--ep-border);
    transition: background var(--ep-transition), color var(--ep-transition);
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
}

.ep-mobile-nav a:hover {
    background: rgba(0, 86, 179, 0.06);
    color: var(--ep-primary);
}

/* Backdrop when drawer is open */
.ep-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 11, 30, 0.45);
    z-index: 1050;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ep-nav-backdrop.open {
    display: block;
    opacity: 1;
}

/* ================================================================
   BUTTONS — modern rounded, navy/blue palette
   ================================================================ */
.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14.5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--ep-transition), border-color var(--ep-transition),
                color var(--ep-transition), box-shadow var(--ep-transition), transform var(--ep-transition);
    font-family: inherit;
    text-align: center;
}

.ep-btn:hover { transform: translateY(-1px); }

/* Primary = Alayman blue */
.ep-btn-primary {
    background: var(--ep-primary);
    color: #fff;
    border-color: var(--ep-primary);
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.28);
}

.ep-btn-primary:hover {
    background: var(--ep-primary-alt);
    border-color: var(--ep-primary-alt);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 86, 179, 0.38);
}

/* Secondary = white ghost */
.ep-btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.ep-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Outline = blue ghost */
.ep-btn-outline {
    background: transparent;
    color: var(--ep-primary);
    border-color: var(--ep-primary);
}

.ep-btn-outline:hover {
    background: var(--ep-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.28);
}

.ep-btn-lg {
    padding: 14px 34px;
    font-size: 15.5px;
    border-radius: 12px;
}

/* ---------- Brand mark (temporary until logo arrives) ---------- */
.mh-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    line-height: 1.1;
}

.mh-brand__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(0, 86, 179, 0.1);
    color: var(--ep-primary);
    overflow: hidden;
}

.mh-brand__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mh-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.mh-brand__prefix {
    font-family: var(--ep-display);
    font-weight: 700;
    color: var(--ep-secondary);
    letter-spacing: 0.02em;
}

.mh-brand__name {
    font-family: var(--ep-heading);
    font-weight: 800;
    color: var(--ep-ink);
    letter-spacing: -0.02em;
}

.mh-brand--sm .mh-brand__icon {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.05rem;
}

.mh-brand--sm .mh-brand__prefix { font-size: 0.78rem; }
.mh-brand--sm .mh-brand__name { font-size: 0.98rem; }

.mh-brand--md .mh-brand__icon {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.2rem;
}

.mh-brand--md .mh-brand__prefix { font-size: 0.9rem; }
.mh-brand--md .mh-brand__name { font-size: 1.2rem; }

.mh-brand--lg .mh-brand__icon {
    width: 3.4rem;
    height: 3.4rem;
    font-size: 1.45rem;
}

.mh-brand--lg .mh-brand__prefix { font-size: 1.05rem; }
.mh-brand--lg .mh-brand__name { font-size: 1.55rem; }

.mh-brand--hero {
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 1.35rem;
    animation: mhRise 0.9s ease both;
}

.mh-brand--hero .mh-brand__icon {
    width: clamp(3.4rem, 8vw, 4.6rem);
    height: clamp(3.4rem, 8vw, 4.6rem);
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    border-radius: 1rem;
    background: rgba(77, 175, 255, 0.18);
    color: var(--ep-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.mh-brand--hero .mh-brand__text {
    text-align: start;
}

.mh-brand--hero .mh-brand__prefix {
    font-size: clamp(1.35rem, 3.5vw, 2.1rem);
    color: var(--ep-secondary);
}

.mh-brand--hero .mh-brand__name {
    font-size: clamp(2.1rem, 6.5vw, 4.2rem);
    color: #fff;
}

.mh-brand--light .mh-brand__icon {
    background: rgba(77, 175, 255, 0.16);
    color: var(--ep-secondary);
}

.mh-brand--light .mh-brand__prefix { color: var(--ep-secondary); }
.mh-brand--light .mh-brand__name { color: #fff; }

.mh-brand--on-dark .mh-brand__icon {
    background: rgba(255, 255, 255, 0.12);
    color: #f3c96b;
}

.mh-brand--on-dark .mh-brand__prefix { color: #f3c96b; }
.mh-brand--on-dark .mh-brand__name { color: #fff; }

/* ---------- Hero (full-bleed classroom) ---------- */
.mh-hero {
    position: relative;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--ep-ink);
    color: #fff;
}

.mh-hero--photo {
    align-items: flex-end;
}

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

.mh-hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.04);
    animation: mhKen 18s ease-in-out infinite alternate;
}

.mh-hero__portrait {
    display: none;
}

@keyframes mhKen {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.mh-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 28, 26, 0.28) 0%, rgba(8, 28, 26, 0.42) 38%, rgba(6, 22, 20, 0.88) 100%),
        linear-gradient(90deg, rgba(8, 28, 26, 0.55) 0%, rgba(8, 28, 26, 0.18) 55%, rgba(8, 28, 26, 0.45) 100%);
    pointer-events: none;
}

.mh-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 72px 0 88px;
    text-align: center;
}

.mh-hero__headline {
    margin: 0 0 16px;
    font-family: var(--ep-heading);
    font-weight: 700;
    font-size: clamp(1.15rem, 2.8vw, 1.65rem);
    color: rgba(255, 255, 255, 0.94);
    max-width: 34rem;
    margin-inline: auto;
    animation: mhRise 0.9s ease 0.12s both;
}

.mh-hero__desc {
    max-width: 640px;
    margin: 0 auto 34px;
    font-size: clamp(1.02rem, 2.1vw, 1.18rem);
    color: rgba(255, 255, 255, 0.84);
    animation: mhRise 0.9s ease 0.22s both;
}

.mh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    animation: mhRise 0.9s ease 0.32s both;
}

@keyframes mhRise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Classroom gallery ---------- */
.mh-gallery {
    padding: 72px 0 0;
    background: var(--ep-paper);
}

.mh-gallery__lead {
    margin: -8px auto 36px;
    max-width: 36rem;
    text-align: center;
    color: var(--ep-muted);
    font-size: 1.05rem;
}

.mh-gallery__mosaic {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: minmax(220px, 32vh) minmax(220px, 32vh);
    gap: 10px;
    padding: 0 10px 10px;
}

.mh-gallery__mosaic--three {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: minmax(260px, 42vh);
}

.mh-gallery__cell {
    margin: 0;
    position: relative;
    overflow: hidden;
    background: var(--ep-ink);
    min-height: 220px;
}

.mh-gallery__cell--a {
    grid-row: 1 / span 2;
}

.mh-gallery__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.mh-gallery__cell:hover img {
    transform: scale(1.05);
}

.mh-gallery__cell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 28, 26, 0.35) 100%);
    pointer-events: none;
    opacity: 0.85;
}

/* ---------- Sections ---------- */
.mh-section {
    padding: 88px 0;
}

.mh-section--shade {
    background: var(--ep-chalk);
}

.mh-section__title {
    margin: 0 0 12px;
    text-align: center;
    font-family: var(--ep-heading);
    font-weight: 800;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    color: var(--ep-ink);
}

.mh-section__rule {
    width: 64px;
    height: 3px;
    margin: 0 auto 48px;
    background: var(--ep-secondary);
}

.mh-why {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

.mh-why__portrait {
    margin: 0;
    justify-self: center;
    width: min(100%, 360px);
}

.mh-why__portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 1.15rem;
    box-shadow: 0 24px 50px rgba(8, 9, 13, 0.18);
}

.mh-why__content .mh-features {
    grid-template-columns: 1fr;
    gap: 22px;
}

.mh-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.mh-feature {
    padding: 8px 8px 8px 0;
    border-inline-start: 3px solid var(--ep-primary);
    padding-inline-start: 22px;
}

.mh-feature h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--ep-ink);
    font-weight: 800;
}

.mh-feature p {
    margin: 0;
    color: var(--ep-muted);
    font-size: 0.98rem;
}

.mh-feature__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: rgba(232, 160, 32, 0.08);
    color: var(--ep-primary);
    font-size: 1.15rem;
}

.mh-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.mh-strip__item {
    padding: 28px 18px;
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
}

.mh-strip__item .icon-wrap {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ep-ink);
    color: var(--ep-secondary);
    font-size: 1.25rem;
}

.mh-strip__item h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--ep-ink);
}

.mh-booking {
    padding: 96px 0;
    background:
        linear-gradient(135deg, rgba(8, 9, 13, 0.94), rgba(20, 20, 20, 0.9)),
        var(--ep-ink);
    color: #fff;
    text-align: center;
}

.mh-booking h2 {
    margin: 0 0 28px;
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: #fff;
}

.mh-booking__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.mh-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.mh-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Alerts ---------- */
.ep-alert {
    padding: 14px 18px;
    border-radius: var(--ep-radius);
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.5;
}

.ep-alert-success { background: #d8efe8; color: #0f4f45; }
.ep-alert-danger { background: #fde2e2; color: #9b1c1c; }
.ep-alert-warning { background: #f8efd2; color: #7a5b10; }
.ep-alert-info { background: #dceef5; color: #1a5670; }

.ep-btn-block { width: 100%; }

/* ================================================================
   AUTH PAGES — Cinematic fullscreen with floating card
   ================================================================ */

/* Hide site chrome on auth screens */
body:has(.ep-auth-page) .ep-header,
body:has(.ep-auth-page) .ep-footer {
    display: none;
}

.ep-auth-page {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: stretch;
    background: #000B1E;
}

/* Full-bleed background photo */
.ep-auth-bg {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
}

.ep-auth-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0,11,30,0.92) 0%, rgba(0,11,30,0.55) 55%, rgba(0,11,30,0.75) 100%),
        linear-gradient(to bottom, rgba(0,11,30,0.3) 0%, transparent 30%);
}

/* Scanline texture */
.ep-auth-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
    );
    z-index: 1;
    pointer-events: none;
}

/* Two-column layout: left brand panel + right form panel */
.ep-auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 480px;
    align-items: stretch;
}

.ep-auth-card.wide {
    grid-template-columns: 1fr 560px;
}

.ep-auth-card.ep-auth-card--single {
    grid-template-columns: 1fr;
}

/* LEFT: brand storytelling panel */
.ep-auth-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 5rem);
    position: relative;
}

.ep-auth-side > * { position: relative; z-index: 1; }

.ep-auth-side .ep-auth-brand,
.ep-auth-side .mh-brand {
    margin-bottom: 0;
}

.ep-auth-side .ep-hero-title {
    margin: 2rem 0 1rem;
    font-family: var(--ep-heading);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    letter-spacing: -0.03em;
    text-shadow: 0 4px 32px rgba(0,11,30,0.8);
}

.ep-auth-side .ep-hero-title__prefix {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #4DAFFF;
    margin-bottom: 0.5rem;
}

.ep-auth-side .ep-hero-title__name {
    display: block;
    color: #fff;
}

.ep-auth-side p {
    margin: 0 0 2.5rem;
    max-width: 38ch;
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    line-height: 1.7;
}

/* RIGHT: form panel — frosted glass card */
.ep-auth-form {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: 100vh;
    box-shadow: -20px 0 60px rgba(0,11,30,0.4);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.ep-auth-form > * {
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
    padding-inline: 2.5rem;
}

.ep-auth-form > *:first-child { padding-top: 1.5rem; }
.ep-auth-form > *:last-child  { padding-bottom: 2rem; }

.ep-auth-card.wide .ep-auth-form > * {
    max-width: 500px;
}

.ep-auth-form form { padding-top: 0; }

/* Back home link — chip on the left, aligned with form fields */
.ep-auth-form > .ep-auth-home.ep-auth-home--btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    width: fit-content;
    max-width: none;
    margin-top: 0;
    margin-bottom: 1.25rem;
    margin-left: 2.5rem;
    margin-right: auto;
    padding-inline: 0.55rem 1rem;
}

.ep-auth-home {
    gap: 6px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.ep-auth-home:hover { color: #0056B3; }

.ep-auth-home--btn {
    padding-block: 0.55rem;
    border: 1.5px solid #d0dcea;
    border-radius: 8px;
    background: #fff;
    color: #000B1E;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: none;
    box-sizing: border-box;
}

.ep-auth-home--btn:hover {
    color: #0056B3;
    border-color: #0056B3;
    background: rgba(0, 86, 179, 0.06);
}

/* Form heading */
.ep-auth-form h1 {
    margin: 0 0 4px;
    font-family: var(--ep-heading);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 900;
    color: #000B1E;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ep-auth-form h1::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    background: linear-gradient(to right, #0056B3, #4DAFFF);
    border-radius: 2px;
    margin-top: 10px;
}

.ep-auth-form .subtitle {
    margin: 12px 0 24px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Form controls */
.ep-form-group {
    margin-bottom: 14px;
}

.ep-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #000B1E;
    font-weight: 700;
    font-size: 0.83rem;
    letter-spacing: 0.02em;
}

.ep-form-group input,
.ep-form-group select,
.ep-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d0dcea;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #f8fafc;
    color: #000B1E;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ep-form-group input[type="hidden"] {
    display: none !important;
    width: 0 !important; height: 0 !important;
    padding: 0 !important; margin: 0 !important;
    border: 0 !important;
}

.ep-form-group input:focus,
.ep-form-group select:focus,
.ep-form-group textarea:focus {
    outline: none;
    border-color: #0056B3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.12);
}

.ep-form-group.has-error input,
.ep-form-group.has-error select,
.ep-form-group.has-error textarea {
    border-color: #c83b3b;
}

.ep-field-error {
    display: block;
    margin-top: 4px;
    color: #c83b3b;
    font-size: 0.78rem;
    font-weight: 600;
}

.ep-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Auth action links below form */
.ep-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.ep-auth-actions a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid #d0dcea;
    border-radius: 8px;
    color: #000B1E;
    font-weight: 700;
    font-size: 0.87rem;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.ep-auth-actions a:hover {
    border-color: #0056B3;
    background: rgba(0,86,179,0.04);
    color: #0056B3;
}

.ep-auth-actions a i { color: #4DAFFF; width: 16px; text-align: center; }

.ep-divider {
    text-align: center;
    position: relative;
    margin: 1rem 0;
}

.ep-divider::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: #e2e8f0;
}

.ep-divider span {
    position: relative;
    background: rgba(255,255,255,0.97);
    padding: 0 12px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ep-form-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.ep-form-links a {
    color: #0056B3;
    font-weight: 600;
    text-decoration: none;
}

.ep-form-links a:hover { text-decoration: underline; }

/* File upload */
.ep-file-upload { position: relative; }
.ep-file-upload input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
    width: 100%; height: 100%;
}
.ep-file-upload-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px dashed #d0dcea;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.ep-file-upload:hover .ep-file-upload-btn {
    border-color: #0056B3;
    background: rgba(0,86,179,0.04);
    color: #0056B3;
}
.ep-file-upload-btn i { color: #4DAFFF; }

/* Hint text */
/* Parent login / alternate action button */
.ep-auth-alt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #d0dcea;
    border-radius: 8px;
    background: transparent;
    color: #000B1E;
    font-weight: 700;
    font-size: 0.87rem;
    line-height: 1.4;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    width: auto;
    min-height: unset;
    height: auto;
}

.ep-auth-alt-btn:hover {
    border-color: #0056B3;
    background: rgba(0,86,179,0.04);
    color: #0056B3;
}

.ep-auth-alt-btn i {
    color: #4DAFFF;
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.ep-field-hint {
    margin-top: -0.25rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: #64748b;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .ep-auth-card,
    .ep-auth-card.wide {
        grid-template-columns: 1fr;
    }
    .ep-auth-side { display: none; }
    .ep-auth-form {
        box-shadow: none;
        background: #fff;
        min-height: 100vh;
    }
    .ep-auth-form > * {
        max-width: 480px;
        padding-inline: 1.5rem;
    }
    .ep-auth-form > .ep-auth-home.ep-auth-home--btn {
        margin-left: 1.5rem;
    }
    .ep-auth-bg::after {
        background: rgba(0,11,30,0.7);
    }
}

@media (max-width: 480px) {
    .ep-form-row { grid-template-columns: 1fr; }
    .ep-auth-form > * { padding-inline: 1.25rem; }
    .ep-auth-form > .ep-auth-home.ep-auth-home--btn {
        margin-left: 1.25rem;
    }
}

.ep-form-group {
    margin-bottom: 16px;
}

.ep-form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--ep-ink);
    font-weight: 700;
    font-size: 0.88rem;
}

.ep-form-group input,
.ep-form-group select,
.ep-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--ep-border);
    border-radius: 8px;
    font-size: 0.97rem;
    font-family: inherit;
    background: var(--ep-paper);
    color: var(--ep-ink);
    transition: border-color var(--ep-transition), box-shadow var(--ep-transition), background var(--ep-transition);
}

.ep-form-group input[type="hidden"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.ep-form-group input:focus,
.ep-form-group select:focus,
.ep-form-group textarea:focus {
    outline: none;
    border-color: var(--ep-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.ep-form-group.has-error input,
.ep-form-group.has-error select,
.ep-form-group.has-error textarea {
    border-color: #c83b3b;
}

.ep-field-error {
    display: block;
    margin-top: 5px;
    color: #c83b3b;
    font-size: 0.8rem;
    font-weight: 600;
}

.ep-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Division picker (signup / public forms) */
.division-select-wrapper .academic-field__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.division-select-wrapper .academic-field__label i {
    color: var(--ep-primary);
    font-size: 0.85rem;
}

.division-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.division-card {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 4.75rem;
    margin: 0;
    padding: 0.85rem 0.55rem;
    border: 1.5px solid var(--ep-border);
    border-radius: var(--ep-radius);
    background: #f7f5f0;
    color: var(--ep-muted);
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition:
        border-color var(--ep-transition),
        box-shadow var(--ep-transition),
        transform var(--ep-transition),
        background var(--ep-transition),
        color var(--ep-transition);
}

.division-card:hover {
    border-color: var(--ep-primary);
    color: var(--ep-ink);
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(8, 9, 13, 0.08);
}

.division-card.is-disabled,
.division-card:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    background: #f0ede8;
    color: #9A9A9A;
    border-color: var(--ep-border);
    pointer-events: none;
}

.division-card.is-disabled:hover,
.division-card:disabled:hover {
    border-color: var(--ep-border);
    color: #9A9A9A;
    background: #f0ede8;
    transform: none;
    box-shadow: none;
}

.division-card:focus-visible {
    outline: none;
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.18);
}

.division-card.is-active {
    border-color: var(--ep-primary);
    background: rgba(0, 86, 179, 0.07);
    color: var(--ep-ink);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.18);
}

.division-card__icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ep-chalk);
    color: var(--ep-primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.division-card.is-active .division-card__icon {
    background: var(--ep-primary);
    color: #fff;
}

.division-card__label {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    color: inherit;
}

@media (max-width: 640px) {
    .division-cards {
        grid-template-columns: 1fr;
    }

    .division-card {
        flex-direction: row;
        justify-content: flex-start;
        min-height: 3.35rem;
        padding: 0.75rem 0.95rem;
        gap: 0.75rem;
        text-align: start;
    }
}

.ep-form-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.92rem;
    color: var(--ep-muted);
}

.ep-form-links a {
    color: var(--ep-primary);
    font-weight: 700;
}

.ep-form-links a:hover {
    color: var(--ep-secondary);
}

.ep-auth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.ep-auth-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1.5px solid var(--ep-border);
    background: #f7f5f0;
    color: var(--ep-ink);
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    transition: border-color var(--ep-transition), background var(--ep-transition), color var(--ep-transition);
}

.ep-auth-actions a:hover {
    border-color: var(--ep-primary);
    background: rgba(0, 86, 179, 0.06);
    color: var(--ep-primary);
}

.ep-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--ep-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ep-divider::before,
.ep-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ep-border);
}

.ep-file-upload input[type="file"] { display: none; }

.ep-file-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 1.5px dashed var(--ep-border);
    border-radius: var(--ep-radius);
    background: #f7f5f0;
    cursor: pointer;
    color: var(--ep-muted);
    font-weight: 700;
    transition: border-color var(--ep-transition), color var(--ep-transition), background var(--ep-transition);
}

.ep-file-upload-btn:hover {
    border-color: var(--ep-primary);
    color: var(--ep-primary);
    background: rgba(0, 86, 179, 0.05);
}

/* Booking form */
.ep-booking-page {
    padding: 60px 0 80px;
    background: var(--ep-paper);
    min-height: calc(100vh - 76px);
}

.ep-booking-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: var(--ep-surface);
    padding: 40px 36px;
    border: 1px solid var(--ep-border);
    border-block-start: 4px solid var(--ep-primary);
    box-shadow: var(--ep-shadow);
}

.ep-booking-form-wrap h1 {
    font-family: var(--ep-heading);
    color: var(--ep-ink);
    text-align: center;
    margin: 0 0 8px;
}

.ep-booking-form-wrap .badge-type {
    display: block;
    width: fit-content;
    margin: 0 auto 28px;
    background: var(--ep-primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--ep-radius);
    font-size: 0.85rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    /* Auth: stack form full-width, hide dark panel */
    .ep-auth-card {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .ep-auth-side {
        display: none;
    }

    .ep-auth-form {
        max-height: none;
        overflow: visible;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .ep-auth-form > * {
        padding: 0 28px;
    }

    .ep-auth-form > .ep-auth-home.ep-auth-home--btn {
        margin-left: 28px;
    }

    .ep-auth-form > *:first-child { padding-top: 1.25rem; }
    .ep-auth-form > *:last-child  { padding-bottom: 2.5rem; }

    .ep-auth-card.wide .ep-auth-form > * {
        max-width: 100%;
    }

    .ep-form-row,
    .ep-auth-actions {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   FOOTER — deep navy with blue accent
   ================================================================ */
.ep-footer {
    background: var(--ep-ink);
    color: rgba(255, 255, 255, 0.65);
    padding: 0;
    border-top: 3px solid var(--ep-primary);
}

.ep-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.3fr;
    gap: 0;
    padding: 56px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Each column gets a vertical separator except last */
.ep-footer-grid > div:not(:last-child) {
    padding-inline-end: 40px;
    border-inline-end: 1px solid rgba(255,255,255,0.08);
}

.ep-footer-grid > div:not(:first-child) {
    padding-inline-start: 40px;
}

.ep-footer-brand {
    margin-bottom: 14px;
}

.ep-footer h4 {
    color: var(--ep-secondary);
    margin: 0 0 18px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ep-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ep-footer ul li { margin-bottom: 9px; }

.ep-footer a { color: rgba(255, 255, 255, 0.65); }
.ep-footer a:hover { color: var(--ep-secondary); }

/* Social icons — square dark border, amber on hover */
.ep-footer-social {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.ep-footer-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ep-footer-social a:hover {
    background: var(--ep-secondary);
    border-color: var(--ep-secondary);
    color: var(--ep-ink);
}

.ep-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ep-footer-contact i {
    color: var(--ep-secondary);
    margin-top: 4px;
}

.ep-footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.ep-footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.ep-footer-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #25D366;
    color: #fff !important;
    border-radius: 50%;
    font-size: 0.75rem;
    margin-inline-start: 6px;
    vertical-align: middle;
    text-decoration: none !important;
    transition: transform 0.2s, background 0.2s;
}

.ep-footer-wa:hover {
    background: #1ebe5d;
    transform: scale(1.1);
    text-decoration: none !important;
}

.ep-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    text-align: center;
    font-size: 0.9rem;
}

.ep-footer-bottom a { color: var(--ep-secondary); }

/* Legacy class aliases used by older public blades */
.ep-hero { display: none; }
.ep-section { padding: 80px 0; }
.ep-section-title { color: var(--ep-ink); text-align: center; }
.ep-title-underline { width: 64px; height: 3px; margin: 12px auto 40px; background: var(--ep-secondary); }
.ep-features-grid,
.ep-strip,
.ep-stages-grid { display: grid; gap: 20px; }
.ep-feature-card,
.ep-strip-item,
.ep-stage-card {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    padding: 24px;
}
.ep-booking {
    padding: 80px 0;
    background: var(--ep-ink);
    color: #fff;
    text-align: center;
}
.ep-reveal { opacity: 0; transform: translateY(20px); transition: 0.6s ease; }
.ep-reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
    .mh-features,
    .mh-strip { grid-template-columns: 1fr; }

    .ep-footer-grid {
        grid-template-columns: 1fr;
        padding: 40px 0 24px;
    }

    .ep-footer-grid > div:not(:last-child) {
        padding-inline-end: 0;
        border-inline-end: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding-bottom: 28px;
        margin-bottom: 28px;
    }

    .ep-footer-grid > div:not(:first-child) {
        padding-inline-start: 0;
    }

    .ep-nav-links,
    .ep-nav-cta .ep-btn-outline,
    .ep-nav-cta .ep-btn-primary { display: none; }

    .ep-menu-toggle { display: inline-flex; }

    .mh-why {
        display: block;
    }

    .mh-why__portrait {
        display: none;
    }

    .mh-hero {
        min-height: auto;
        align-items: center;
        background: linear-gradient(165deg, var(--ep-ink) 0%, #1a1a2e 55%, var(--ep-ink) 100%);
    }

    .mh-hero__media,
    .mh-hero__photo--classroom {
        display: none;
    }

    .mh-hero__veil {
        background:
            radial-gradient(ellipse 80% 55% at 50% 18%, rgba(201, 162, 39, 0.18), transparent 58%),
            linear-gradient(180deg, rgba(8, 28, 26, 0.2) 0%, rgba(6, 22, 20, 0.55) 100%);
    }

    .mh-hero__inner {
        padding: 36px 0 56px;
    }

    .mh-hero__portrait {
        display: block;
        width: min(72vw, 280px);
        margin: 0 auto 1.35rem;
        animation: mhRise 0.9s ease both;
    }

    .mh-hero__portrait img {
        width: 100%;
        height: auto;
        border-radius: 1.25rem;
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
        object-fit: cover;
        aspect-ratio: 3 / 4;
    }

    .mh-gallery__mosaic,
    .mh-gallery__mosaic--three {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }

    .mh-gallery__cell--a {
        grid-row: auto;
        grid-column: 1 / -1;
        min-height: 240px;
    }

    .mh-gallery__mosaic--three .mh-gallery__cell:first-child {
        grid-column: 1 / -1;
        min-height: 220px;
    }

    .mh-gallery__cell {
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    .mh-hero__actions { flex-direction: column; }
    .mh-hero__actions .ep-btn { width: 100%; }

    .mh-brand--hero {
        flex-direction: column;
        text-align: center;
    }

    .mh-brand--hero .mh-brand__text {
        text-align: center;
        align-items: center;
    }

    .mh-hero__portrait {
        width: min(78vw, 260px);
    }

    .mh-gallery__mosaic,
    .mh-gallery__mosaic--three {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 8px 8px;
    }

    .mh-gallery__cell--a,
    .mh-gallery__mosaic--three .mh-gallery__cell:first-child {
        grid-column: auto;
        min-height: 220px;
    }
}
