/* Mr Mohamed Hamdy — public / landing (mathematics theme) */
:root {
    --ep-ink: #0c2d2a;
    --ep-primary: #146356;
    --ep-primary-alt: #0f4f45;
    --ep-secondary: #c9a227;
    --ep-chalk: #e8f0ee;
    --ep-paper: #f3f6f5;
    --ep-surface: #ffffff;
    --ep-body: #3d4f4c;
    --ep-muted: #6b7f7a;
    --ep-border: #d5e0dc;
    --ep-shadow: 0 18px 50px rgba(12, 45, 42, 0.12);
    --ep-radius: 6px;
    --ep-transition: 0.28s ease;
    --ep-font: "Cairo", "Sora", sans-serif;
    --ep-heading: "Sora", "Cairo", sans-serif;
    --ep-display: "Aref Ruqaa", "Sora", serif;
    --ep-container: 1180px;
    --ep-white: #ffffff;
    --ep-navy: #0c2d2a;
    --ep-gold: #c9a227;
    --ep-dark: #0c2d2a;
    --ep-shade: #f3f6f5;
}

*,
*::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 ---------- */
.ep-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(243, 246, 245, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ep-border);
}

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

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

.ep-logo:hover {
    color: inherit;
}

.ep-nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ep-nav-links a {
    color: var(--ep-ink);
    font-weight: 700;
    font-size: 15px;
}

.ep-nav-links a:hover,
.ep-nav-links a.active {
    color: var(--ep-primary);
}

.ep-nav-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ep-locale {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 4px;
    background: rgba(20, 99, 86, 0.08);
}

.ep-locale a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-ink);
}

.ep-locale a.is-active {
    background: var(--ep-primary);
    color: #fff;
}

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

.ep-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ep-ink);
    cursor: pointer;
    padding: 8px;
}

.ep-mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--ep-ink);
    color: #fff;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    padding: 40px;
}

html[dir="rtl"] .ep-mobile-nav { transform: translateX(-100%); }

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

.ep-mobile-nav a {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}

.ep-mobile-nav .close-btn {
    position: absolute;
    top: 24px;
    inset-inline-end: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--ep-radius);
    font-weight: 800;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--ep-transition), border-color var(--ep-transition), color var(--ep-transition), transform var(--ep-transition);
    font-family: inherit;
    text-align: center;
}

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

.ep-btn-primary {
    background: var(--ep-secondary);
    color: var(--ep-ink);
    border-color: var(--ep-secondary);
}

.ep-btn-primary:hover {
    background: #dbb133;
    border-color: #dbb133;
    color: var(--ep-ink);
}

.ep-btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

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

.ep-btn-outline {
    background: transparent;
    color: var(--ep-primary);
    border-color: var(--ep-primary);
}

.ep-btn-outline:hover {
    background: var(--ep-primary);
    color: #fff;
}

.ep-btn-lg {
    padding: 15px 34px;
    font-size: 16px;
}

/* ---------- 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: 0.55rem;
    background: rgba(20, 99, 86, 0.12);
    color: var(--ep-primary);
}

.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(201, 162, 39, 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(201, 162, 39, 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: #0a2421;
    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: #0c2d2a;
    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(12, 45, 42, 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(20, 99, 86, 0.1);
    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(12, 45, 42, 0.94), rgba(20, 99, 86, 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%; }

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

/* ---------- Auth pages ---------- */
.ep-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 18px 48px;
    background:
        linear-gradient(rgba(20, 99, 86, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 99, 86, 0.04) 1px, transparent 1px),
        var(--ep-paper);
    background-size: 40px 40px, 40px 40px, auto;
}

.ep-auth-card {
    width: 100%;
    max-width: 920px;
    min-height: 560px;
    margin-block: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    box-shadow: var(--ep-shadow);
    overflow: visible;
}

.ep-auth-card.wide {
    max-width: 1040px;
    min-height: auto;
}

.ep-auth-card.ep-auth-card--single {
    max-width: 480px;
    min-height: auto;
    grid-template-columns: 1fr;
}

.ep-auth-form {
    padding: 40px 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
    max-height: none;
}

.ep-auth-card.wide .ep-auth-form {
    padding: 36px 48px 48px;
}

.ep-auth-form h1 {
    margin: 0 0 8px;
    font-family: var(--ep-heading);
    font-size: clamp(1.55rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--ep-ink);
    line-height: 1.25;
}

.ep-auth-form .subtitle {
    margin: 0 0 24px;
    color: var(--ep-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.ep-auth-form form {
    padding-top: 4px;
}

.ep-auth-form form > .ep-form-row:first-of-type {
    margin-top: 4px;
}

.ep-auth-side {
    position: relative;
    background:
        linear-gradient(155deg, #0a2421 0%, #146356 55%, #0f4f45 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 36px;
    overflow: hidden;
}

.ep-auth-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.5;
    pointer-events: none;
}

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

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

.ep-auth-side h2,
.ep-auth-side .ep-hero-title {
    margin: 0 0 14px;
    font-family: var(--ep-heading);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.ep-auth-side .ep-hero-title {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.ep-auth-side .ep-hero-title__prefix {
    display: block;
    font-family: var(--ep-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ep-secondary);
    margin-bottom: 4px;
}

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

.ep-auth-side p {
    margin: 0;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
    line-height: 1.6;
}

.ep-auth-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--ep-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.ep-auth-home:hover {
    color: var(--ep-secondary);
}

.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: 13px 14px;
    border: 1.5px solid var(--ep-border);
    border-radius: var(--ep-radius);
    font-size: 0.98rem;
    font-family: inherit;
    background: #f8fbfa;
    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(20, 99, 86, 0.16);
}

.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: #f8fbfa;
    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(12, 45, 42, 0.08);
}

.division-card.is-disabled,
.division-card:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    background: #eef2f1;
    color: #8aa09a;
    border-color: #d7e3de;
    pointer-events: none;
}

.division-card.is-disabled:hover,
.division-card:disabled:hover {
    border-color: #d7e3de;
    color: #8aa09a;
    background: #eef2f1;
    transform: none;
    box-shadow: none;
}

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

.division-card.is-active {
    border-color: var(--ep-primary);
    background: rgba(20, 99, 86, 0.08);
    color: var(--ep-ink);
    box-shadow: 0 0 0 3px rgba(20, 99, 86, 0.16);
}

.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: #f8fbfa;
    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(20, 99, 86, 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: #f8fbfa;
    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(20, 99, 86, 0.04);
}

/* 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) {
    .ep-auth-card {
        grid-template-columns: 1fr;
        max-width: 480px;
        min-height: auto;
    }

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

    .ep-auth-form {
        padding: 32px 28px 40px;
        max-height: none;
        overflow: visible;
    }

    .ep-auth-card.wide .ep-auth-form {
        padding: 32px 28px 40px;
    }

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

/* ---------- Footer ---------- */
.ep-footer {
    background: var(--ep-ink);
    color: rgba(255, 255, 255, 0.78);
    padding: 64px 0 0;
}

.ep-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

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

.ep-footer h4 {
    color: #fff;
    margin: 0 0 16px;
    font-size: 1.05rem;
}

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

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

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

.ep-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.ep-footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.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-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,
    .ep-footer-grid {
        grid-template-columns: 1fr;
    }

    .ep-nav-links,
    .ep-nav-cta .ep-btn { 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, #0a2421 0%, #146356 55%, #0c2d2a 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;
    }
}
