:root {
    --navy: #0C3A2C;
    --navy-mid: #165A43;
    --crimson: #C9A227;
    --crimson-deep: #A6851A;
    --cream: #F6F1E4;
    --ivory: #FBF8F1;
    --gold: #E4C45A;
    --ink: #1C1A17;
    --muted: #5E584F;
    --line: #E4DCD0;
    --white: #FFFFFF;
    --shadow: 0 12px 40px rgba(11, 31, 58, 0.08);
    --radius: 4px;
    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --sans: "Source Sans 3", "Segoe UI", sans-serif;
    --arabic: "Amiri", "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body.public-body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.65;
    font-size: 1.05rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crimson); }

.sr-only, .skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    inset: 8px;
    z-index: 100;
    background: var(--white);
    padding: 8px 12px;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.topbar {
    background: var(--navy);
    color: #E8E4DC;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 38px;
}
.topbar-place { margin: 0; }
.topbar-tools { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 8px; }
.lang-switch a {
    color: #C9C3B8;
    text-decoration: none;
    padding: 2px 4px;
}
.lang-switch a.is-active,
.lang-switch a:hover { color: #fff; }
.topbar-login {
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.28);
    padding: 3px 10px;
}
.topbar-login:hover { border-color: #fff; color: #fff; }

.site-header {
    background: var(--navy);
    border-bottom: 1px solid rgba(201, 162, 39, 0.45);
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 84px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--cream);
}
.brand:hover { color: #fff; }
.brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.brand-name {
    display: block;
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.1;
    font-weight: 600;
}
.brand-sub {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 8px 10px;
    color: var(--cream);
}
.header-nav { display: flex; align-items: center; gap: 18px; }
.nav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list > li > a {
    white-space: nowrap;
}
.nav-list a {
    text-decoration: none;
    color: var(--cream);
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}
.header-apply { white-space: nowrap; }
.nav-list a.is-active,
.nav-list a:hover {
    color: var(--gold);
}
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop > a::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.8;
}
.nav-sub {
    display: none;
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    min-width: 300px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    margin: 0;
    padding: 6px 0 8px;
    list-style: none;
    background: var(--ivory);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(12, 58, 44, 0.16);
    z-index: 50;
}
.nav-sub::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 18px;
}
.nav-drop:hover > .nav-sub,
.nav-drop:focus-within > .nav-sub {
    display: block;
}
.nav-sub-label {
    padding: 10px 16px 2px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--crimson-deep);
}
.nav-sub a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 16px;
    color: var(--navy);
    font-size: 0.92rem;
}
.nav-sub a.is-child { padding-left: 28px; }
.nav-sub a small {
    color: var(--muted);
    font-size: 0.75rem;
    white-space: nowrap;
}
.nav-sub a:has(small[lang="ar"]) {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.nav-sub a small[lang="ar"] {
    font-family: var(--arabic);
    font-size: 1.05rem;
    line-height: 1.5;
    letter-spacing: 0;
    white-space: normal;
}
.nav-sub a:hover,
.nav-sub a.is-active {
    color: var(--navy);
    background: #EFE8D8;
}
[dir="rtl"] .nav-sub a.is-child { padding-left: 16px; padding-right: 28px; }
.site-header .btn-primary,
.header-apply {
    background: var(--crimson);
    border-color: var(--crimson);
    color: var(--navy);
}
.site-header .btn-primary:hover,
.header-apply:hover {
    background: var(--gold);
    color: var(--navy);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    padding: 12px 20px;
    font-family: var(--sans);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
}
.btn-sm { padding: 8px 14px; font-size: 0.86rem; }
.btn-primary {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-mid); color: #fff; }
.btn-navy {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); color: #fff; }
.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.hero {
    background:
        linear-gradient(180deg, rgba(11,31,58,0.08), rgba(11,31,58,0.08)),
        var(--navy);
    color: var(--cream);
    position: relative;
    overflow: hidden;
    padding: 72px 0 80px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: var(--crimson);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 48px;
    align-items: center;
    position: relative;
}
.eyebrow {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: var(--gold);
    margin: 0 0 14px;
}
.hero h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    margin: 0 0 18px;
}
.lede {
    font-size: 1.15rem;
    max-width: 38rem;
    color: #E4DCD0;
    margin: 0 0 28px;
}
.lede a,
.hero-langs a,
.page-hero p a {
    color: var(--gold);
    text-underline-offset: 3px;
}
.lede a:hover,
.hero-langs a:hover,
.page-hero p a:hover { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-crest {
    justify-self: end;
    width: min(280px, 78%);
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.28));
}
.hero-langs {
    margin-top: 36px;
    font-size: 0.9rem;
    color: #C9C3B8;
    letter-spacing: 0.06em;
}
.hero-motto {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gold);
    max-width: 36rem;
    margin: 0 0 28px;
}
.photo-banner.is-filled img {
    aspect-ratio: auto;
    object-fit: contain;
    background: #fff;
    width: 100%;
    height: auto;
}
.pillar-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 40px;
}
.pillar-row h3 { margin: 0; text-align: center; }
.subject-group { margin: 40px 0 48px; }
.subject-group h2 { margin-bottom: 18px; }
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.subject-grid .card h3 { margin-bottom: 0; }
.subject-grid .card h3 a {
    color: inherit;
    text-decoration: none;
}
.subject-grid .card h3 a:hover {
    color: var(--navy-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.subject-grid .card p { margin-top: 8px; }
.stem-related {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.stem-related li {
    background: var(--ivory);
    border: 1px solid var(--line);
    padding: 16px 18px;
    font-weight: 600;
}
.stem-related a {
    color: var(--navy);
    text-decoration: none;
}
.stem-related a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-motto {
    font-style: italic;
    color: #E4DCD0;
    font-size: 0.92rem;
}
.hero-photo {
    background: #0C3A2C;
    padding: 0 0 56px;
}
.hero-photo .container { width: min(1200px, calc(100% - 32px)); }

.photo-frame {
    margin: 0;
    background: #EFE8DC;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-frame figcaption {
    padding: 10px 14px 12px;
    font-size: 0.82rem;
    color: var(--muted);
    background: var(--cream);
    border-top: 1px solid var(--line);
}
.photo-banner img, .photo-banner .photo-slot { aspect-ratio: 21 / 9; min-height: 220px; }
.photo-wide img, .photo-wide .photo-slot { aspect-ratio: 4 / 3; }
.photo-portrait img, .photo-portrait .photo-slot { aspect-ratio: 4 / 5; }
.photo-tile img, .photo-tile .photo-slot { aspect-ratio: 4 / 3; }
.photo-slot {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(11, 31, 58, 0.04), rgba(185, 28, 44, 0.06)),
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 12px,
            rgba(11, 31, 58, 0.03) 12px,
            rgba(11, 31, 58, 0.03) 13px
        );
    color: var(--navy);
}
.photo-slot-title {
    font-family: var(--serif);
    font-size: 1.35rem;
}
.photo-slot-file {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.photo-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
}
.photo-mosaic .photo-frame:first-child { grid-row: span 1; }
.split-center { align-items: center; }
.lang-list { display: grid; gap: 14px; }
.lang-list h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin: 0 0 4px;
    color: var(--navy);
}
.lang-list p { margin: 0; color: var(--muted); }
.lang-native {
    font-weight: 400;
    color: var(--crimson);
    font-size: 0.95em;
}
.step-num {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--crimson);
    margin: 0 0 8px;
}
.begin-address {
    margin: 0;
    line-height: 1.55;
    color: var(--ink);
}
.home-news { display: grid; gap: 22px; }
.event-card { margin-bottom: 12px; }

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--cream); }

.section-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--crimson);
    margin: 0 0 8px;
}
.section h2, .page-hero h1, .article h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 16px;
    color: var(--navy);
}
.section-navy h2 { color: var(--cream); }
.section-lead {
    max-width: 40rem;
    color: var(--muted);
    margin-bottom: 36px;
}

.page-hero {
    background: var(--navy);
    color: var(--cream);
    padding: 56px 0 48px;
    border-bottom: 6px solid var(--crimson);
}
.page-hero h1 { color: var(--cream); margin-bottom: 8px; }
.page-hero p { margin: 0; color: #D8D1C6; max-width: 42rem; }
.page-hero p + p { margin-top: 12px; }
#education-pathways { scroll-margin-top: 120px; }
.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    font-size: 0.88rem;
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li:not(:last-child)::after {
    content: "→";
    margin: 0 8px;
    opacity: 0.7;
}
.page-hero .crumbs,
.page-hero .crumbs a { color: var(--gold); }
.page-hero .crumbs [aria-current="page"] { color: var(--cream); }
[dir="rtl"] .crumbs li:not(:last-child)::after { content: "←"; }
.path-card h3 { margin-bottom: 8px; }
a.card {
    display: block;
    color: inherit;
    text-decoration: none;
}
a.card:hover { color: inherit; border-color: var(--navy); }
a.card:hover h3 {
    text-decoration: underline;
    text-underline-offset: 3px;
}
a.card:focus-visible {
    outline: 2px solid var(--crimson);
    outline-offset: 3px;
}
.path-card p,
.plain-list li,
.card h3,
.card li { overflow-wrap: anywhere; }
.path-split { margin-top: 22px; }
.path-arabic-head { margin: 40px 0 18px; max-width: 40rem; }
.path-arabic-head h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--navy);
    margin: 0 0 8px;
}
.path-arabic-head p { margin: 0; color: var(--muted); }
.arabic-name {
    font-family: var(--arabic);
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--navy);
    margin: 0 0 8px;
    width: fit-content;
    max-width: 100%;
}
.page-hero .arabic-name {
    color: var(--gold);
    margin: 10px 0 8px;
}
.grade-block { margin-top: 48px; }
.grade-block > p { max-width: 40rem; color: var(--muted); }
.grade-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    background: var(--white);
}
.grade-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    direction: ltr;
}
.grade-table th,
.grade-table td {
    padding: 12px 16px;
    border: 1px solid var(--line);
    text-align: start;
    vertical-align: middle;
}
.grade-table thead th {
    background: var(--navy);
    color: var(--cream);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.grade-table thead th[lang="ar"] {
    font-family: var(--arabic);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0;
}
.grade-table td[lang="ar"],
.grade-band span[lang="ar"] {
    font-family: var(--arabic);
    font-size: 1.25rem;
    line-height: 1.6;
}
.grade-band {
    background: var(--ivory);
    text-align: center;
    width: 9.5rem;
}
.grade-band span { display: block; }
.grade-band span[lang="en"] {
    margin-top: 4px;
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.grade-table tbody tr:nth-child(even) td { background: #FBF8F1; }
.grade-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.plain-list { margin: 12px 0 0; padding-left: 1.15rem; }
.plain-list li { margin: 6px 0; }
.edu-next { display: flex; flex-wrap: wrap; gap: 12px; }
.edu-next-section h2 { font-size: 1.7rem; margin-bottom: 18px; }
.edu-next .btn { text-align: center; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 26px 24px;
    box-shadow: var(--shadow);
}
.card h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    margin: 0 0 10px;
    color: var(--navy);
}
.card p { margin: 0; color: var(--muted); }
.card-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--cream);
    color: var(--crimson);
    margin-bottom: 16px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.prose p { margin: 0 0 16px; }
.prose h3 {
    font-family: var(--serif);
    color: var(--navy);
    font-size: 1.5rem;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat {
    padding: 28px 16px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:last-child { border-right: 0; }
.stat strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
}
.stat span { font-size: 0.86rem; color: #C9C3B8; }

.cta-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.cta-band h2 { margin-bottom: 8px; }

.news-card time {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--crimson);
}
.news-card h3 { margin-top: 8px; }
.news-card a { text-decoration: none; color: inherit; }
.news-card a:hover h3 { color: var(--crimson); }

.teacher-card { text-align: left; }
.teacher-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background:
        linear-gradient(160deg, var(--navy-mid), var(--crimson-deep));
    margin: -26px -24px 18px;
    width: calc(100% + 48px);
}
.teacher-role { color: var(--crimson); font-size: 0.88rem; margin-bottom: 8px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--navy-mid);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(11,31,58,0.75));
    color: #fff;
    font-size: 0.86rem;
}
.gallery-ph {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #E8D5A3;
    font-family: var(--serif);
    font-size: 1.2rem;
}

.form {
    display: grid;
    gap: 16px;
    max-width: 640px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
input, select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    background: var(--white);
    font: inherit;
    color: var(--ink);
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
}
textarea { min-height: 120px; resize: vertical; }
.help { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.alerts { display: grid; gap: 10px; margin-bottom: 20px; }
.alert {
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--white);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.alert-success { border-color: #9BB8A4; background: #F1F7F3; }
.alert-error { border-color: #D7A3A8; background: #FBF1F2; }
.alert-info { border-color: #B7C4D6; background: #F3F6FA; }
.alert-close { background: none; border: 0; font-size: 1.2rem; cursor: pointer; }

.site-footer {
    background: var(--navy);
    color: #D8D1C6;
    padding-top: 56px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-edu {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
}
.footer-name {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: #fff;
    margin: 10px 0 4px;
}
.footer-arabic {
    font-family: var(--arabic);
    font-size: 1.15rem;
    color: var(--gold);
    margin: 0 0 12px;
}
.site-footer h2 {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #E4DCD0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-langs { color: #fff; }
.footer-langs a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-langs a:hover { color: var(--gold); }
.footer-note { font-size: 0.86rem; }
.footer-base {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    font-size: 0.84rem;
}

.empty-note {
    border: 1px dashed var(--line);
    padding: 28px;
    color: var(--muted);
    background: var(--white);
}
.section-follow { margin-top: 28px; }
.prose-narrow { max-width: 42rem; margin-bottom: 36px; }

.home-tracks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.home-track {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}
.section-cream .home-track { background: var(--white); }
.section-white .home-track { background: var(--ivory); }
.home-track h3 {
    font-family: var(--serif);
    font-size: 1.55rem;
    color: var(--navy);
    margin: 0 0 12px;
    line-height: 1.2;
}
.home-track > p { margin: 0 0 16px; color: var(--muted); }
.home-track ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}
.home-track li {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
}
.home-track li a {
    color: var(--navy);
    text-underline-offset: 3px;
}
.home-track li a:hover { color: var(--navy-mid); }
.name-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.teacher-card.has-photo .teacher-photo { display: block; }
.application-id {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--navy);
    margin: 8px 0 16px;
}
.home-find-head { max-width: 40rem; }
.home-find-head .section-lead { margin-bottom: 32px; }
.home-find {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
    gap: 24px;
    align-items: stretch;
}
.home-find-card,
.home-map {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.home-find-place {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 26px 26px 22px;
    background: var(--navy);
    color: var(--cream);
}
.home-find-pin {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--crimson);
    color: var(--navy);
    border-radius: 50%;
}
.home-find-pin svg { width: 22px; height: 22px; }
.home-find-label {
    margin: 0 0 4px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}
.home-find-address {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.3;
    color: #fff;
}
.home-find-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    flex: 1;
}
.home-find-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 26px;
    border-bottom: 1px solid var(--line);
}
.home-find-list li:last-child { border-bottom: 0; }
.home-find-icon {
    color: var(--crimson);
    margin-top: 2px;
}
.home-find-icon svg { width: 20px; height: 20px; display: block; }
.home-find-list .home-find-label { color: var(--muted); }
.home-find-list a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}
.home-find-list a:hover { color: var(--crimson); }
.home-find-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 26px 26px;
    margin-top: auto;
}
.home-find-actions .btn { flex: 1 1 160px; }
.home-map-caption {
    margin: 0;
    padding: 12px 16px;
    background: var(--navy);
    color: var(--cream);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.home-map iframe {
    display: block;
    width: 100%;
    flex: 1;
    min-height: 340px;
    height: 100%;
    border: 0;
}
.home-map-note {
    margin: 0;
    padding: 12px 16px;
    font-size: 0.84rem;
    color: var(--muted);
    background: var(--cream);
    border-top: 1px solid var(--line);
}
.gallery-note { margin-top: 16px; }

[dir="rtl"] .brand-text,
[dir="rtl"] .hero h1,
[dir="rtl"] .section h2 { font-family: var(--arabic); }

@media (max-width: 900px) {
    .hero-grid,
    .split,
    .card-grid,
    .card-grid-2,
    .card-grid-4,
    .stat-row,
    .footer-grid,
    .footer-edu,
    .form-row,
    .gallery-grid,
    .photo-mosaic,
    .pillar-row,
    .home-tracks,
    .name-list,
    .subject-grid,
    .stem-related,
    .home-find { grid-template-columns: 1fr; }
    .home-find-card { height: auto; }
    .home-map iframe { min-height: 280px; }
    .hero-crest { justify-self: start; }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-toggle { display: inline-flex; }
    .header-nav {
        display: none;
        position: absolute;
        inset: 122px 16px auto;
        background: var(--navy-mid);
        border: 1px solid rgba(201, 162, 39, 0.45);
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow);
    }
    .header-nav.is-open {
        display: flex;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    .nav-list { flex-direction: column; gap: 10px; }
    .header-inner { position: relative; }
    .nav-drop > a::after { display: none; }
    .nav-sub,
    .nav-drop:hover > .nav-sub,
    .nav-drop:focus-within > .nav-sub {
        display: block;
        position: static;
        transform: none;
        min-width: 0;
        max-height: none;
        overflow: visible;
        margin-top: 4px;
        padding: 4px 0 8px 8px;
        background: transparent;
        border: 0;
        box-shadow: none;
        color: inherit;
    }
    .nav-sub a { color: var(--cream); padding: 6px 8px; }
    .nav-sub a small { color: #C9C3B8; }
    .nav-sub a:hover,
    .nav-sub a.is-active { background: transparent; color: var(--gold); }
    .nav-sub::before { display: none; }
    .nav-sub-label { padding: 10px 8px 2px; color: var(--gold); }
    .nav-sub a.is-child { padding-left: 20px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .nav-list { gap: 10px; }
    .nav-list a { font-size: 0.84rem; }
    .header-apply { display: none; }
    .card-grid-4 { grid-template-columns: 1fr 1fr; }
}
