/* Dharul Eiman — public site */
:root {
  --green-950: #062a1b;
  --green-900: #0b3d27;
  --green-800: #0f5132;
  --green-700: #146c43;
  --green-100: #d7eee1;
  --green-50: #eef7f2;
  --gold: #c9a227;
  --gold-600: #a8841a;
  --gold-50: #fbf6e6;
  --ink: #16212e;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f7f9f8;
  --red: #b42318;
  --red-50: #fef3f2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Amiri', 'Traditional Arabic', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.ar, [lang="ar"] { font-family: var(--font-ar); }
.ar { color: var(--green-800); font-size: 1.15rem; line-height: 1.6; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 8px; border: 1px solid transparent; font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: #d8b23a; color: var(--green-950); }
.btn-outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn-outline:hover { background: var(--green-800); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; margin-top: 16px; }

/* Urgent bar + top bar */
.urgent-bar { background: var(--red); color: #fff; font-size: .9rem; }
.urgent-inner { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.urgent-label { flex: none; background: #fff; color: var(--red); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 4px; animation: pulse 2s infinite; }
.urgent-items { display: flex; flex-wrap: wrap; gap: 4px 20px; min-width: 0; }
.urgent-items a { color: #fff; font-weight: 500; text-decoration: none; }
.urgent-items a:hover { text-decoration: underline; }
@keyframes pulse { 50% { opacity: .7; } }

.topbar { background: var(--green-950); color: #cfe3d8; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { color: #cfe3d8; text-decoration: none; }
.topbar a:hover { color: #fff; }
.notify-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--gold); border: 1px solid rgba(201,162,39,.5); border-radius: 999px; padding: 3px 12px; font: 500 .8rem var(--font); cursor: pointer; }
.notify-btn:hover, .notify-btn.on { background: var(--gold); color: var(--green-950); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.5) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 50px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-ar { font-family: var(--font-ar); color: var(--green-800); font-size: 1.05rem; line-height: 1.3; font-weight: 700; }
.brand-en { color: var(--ink); font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.site-nav { display: flex; align-items: center; gap: 2px; flex: none; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.site-nav a:hover { color: var(--green-800); background: var(--green-50); }
.site-nav a.active { color: var(--green-800); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-nav a.nav-cta { background: var(--green-800); color: #fff; margin-left: 8px; border-radius: 6px; box-shadow: none; }
.site-nav a.nav-cta:hover { background: var(--green-900); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero / signboard */
.hero { position: relative; background: radial-gradient(1200px 500px at 80% -10%, rgba(201,162,39,.18), transparent 60%), linear-gradient(135deg, var(--green-950), var(--green-800)); color: #e6f2eb; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.hero-inner { position: relative; padding-top: 56px; padding-bottom: 64px; display: grid; gap: 36px; }
.signboard { display: flex; align-items: center; gap: 28px; padding: 26px 30px; border: 1px solid rgba(201,162,39,.45); border-radius: 14px; background: rgba(6,42,27,.45); box-shadow: 0 20px 50px rgba(0,0,0,.25), inset 0 0 0 4px rgba(255,255,255,.03); }
.signboard-logo { width: 140px; flex: none; background: #fff; border-radius: 12px; padding: 6px; }
.signboard-names { min-width: 0; flex: 1; }
.signboard-names p { margin: 0; }
.sb-ar { font-family: var(--font-ar); font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 700; color: #fff; line-height: 1.5; text-align: right; }
.sb-si { font-family: 'Noto Sans Sinhala', var(--font); color: #bfe0cd; font-size: clamp(.95rem, 1.8vw, 1.15rem); font-weight: 600; }
.sb-ta { font-family: 'Noto Sans Tamil', var(--font); color: #bfe0cd; font-size: clamp(.95rem, 1.8vw, 1.15rem); font-weight: 600; }
.sb-en { color: var(--gold); font-size: clamp(1.15rem, 2.6vw, 1.75rem); letter-spacing: .05em; text-transform: uppercase; font-weight: 700; margin: 8px 0 10px; }
.sb-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 10px; font-size: .88rem; color: #bfe0cd; }
.sb-reg { font-weight: 600; color: var(--gold); letter-spacing: .03em; }
.hero-copy { max-width: 760px; }
.motto-ar { font-family: var(--font-ar); font-size: 1.6rem; color: var(--gold); margin-bottom: 4px; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #e6f2eb; font-weight: 300; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* Stats */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 30px 12px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--green-800); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-plus { font-size: 1.4rem; font-weight: 600; color: var(--gold); margin-left: 2px; }
.stat-label { display: block; margin-top: 8px; color: var(--muted); font-size: .88rem; }

/* Sections */
.section { padding: 72px 0; }
.section-muted { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-block; color: var(--gold-600); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.lead { font-size: 1.12rem; color: var(--ink); }

.page-hero { background: linear-gradient(135deg, var(--green-950), var(--green-800)); color: #d7eee1; padding: 52px 0 46px; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { margin: 0; max-width: 720px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero-ar { color: var(--gold) !important; font-size: 1.4rem; margin-bottom: 8px !important; }
.back-link { display: inline-block; color: inherit; opacity: .85; text-decoration: none; font-size: .9rem; margin-bottom: 14px; margin-right: 12px; }
.page-hero .back-link { color: #d7eee1; }

/* Vision & mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green-800); border-radius: var(--radius); padding: 32px; }
.vm-card-alt { border-top-color: var(--gold); }
.vm-card p { font-size: 1.05rem; }
.vm-card p:last-child { margin: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.course-card, .news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; overflow: hidden; }
.course-card { padding: 24px; }
.course-card:hover, .news-card:hover { border-color: var(--green-700); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.course-card h3 { margin: 8px 0 4px; }
.course-card .ar { font-size: 1rem; }
.course-card p { font-size: .94rem; }
.course-code { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--green-800); background: var(--green-50); border: 1px solid var(--green-100); padding: 2px 8px; border-radius: 4px; }
.course-meta { margin-top: auto; font-size: .85rem; color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--line); }
.news-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.news-body { padding: 20px 22px 22px; }
.news-body h3 { margin: 10px 0 6px; }
.news-body p { font-size: .94rem; margin: 0; color: var(--muted); }
.news-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--muted); }
.tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 4px; background: var(--green-50); color: var(--green-800); }
.tag-urgent { background: var(--red-50); color: var(--red); }
.tag-admission { background: var(--gold-50); color: var(--gold-600); }
.tag-event { background: #eff4ff; color: #1d4ed8; }

.cta-band { background: var(--gold-50); border-top: 1px solid #efe2b5; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.cta-inner h2 { margin-bottom: 4px; }
.cta-inner p { margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.fact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.fact-card img { margin: 0 auto 16px; width: 110px; }
.fact-card dl { margin: 0; }
.fact-card dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-top: 14px; }
.fact-card dt:first-child { margin-top: 0; }
.fact-card dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.board-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.board-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.board-initials { display: grid; place-items: center; background: var(--green-50); color: var(--green-800); font-size: 2rem; font-weight: 600; border: 2px solid var(--green-100); }
.board-card h3 { margin: 0; font-size: 1.05rem; }
.board-card .ar { font-size: 1rem; margin: 2px 0 0; }
.board-role { color: var(--gold-600); font-weight: 600; font-size: .9rem; margin: 4px 0; }
.board-qual { font-size: .85rem; color: var(--muted); margin: 0 0 6px; }
.board-bio { font-size: .9rem; margin: 0; }

/* Academics */
.course-list { display: grid; gap: 16px; }
.course-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.course-row h2 { font-size: 1.3rem; margin: 8px 0 2px; }
.course-row h2 a { color: var(--ink); text-decoration: none; }
.course-row h2 a:hover { color: var(--green-800); }
.course-row p:last-child { margin: 0; }
.course-facts { display: grid; gap: 8px; margin: 0; min-width: 190px; font-size: .9rem; }
.course-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.course-facts dd { margin: 0; color: var(--ink); }
.syllabus { padding-left: 1.3em; }
.syllabus li { margin-bottom: .5em; padding-left: .3em; }
.verify-teaser { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.verify-teaser p { margin: 0; }

/* Forms */
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 8px; margin: 0 0 22px; }
.form legend { font-weight: 600; color: var(--green-800); padding: 0 8px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .88rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field b { color: var(--red); font-weight: 600; }
input[type=text], input:not([type]), input[type=email], input[type=tel], input[type=url], input[type=date], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; min-height: 44px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(20,108,67,.15); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; margin-bottom: 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-800); flex: none; }
.grid-2 .check { align-self: center; margin-top: 12px; }
.declaration { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 22px; }

.alert { border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid; font-size: .95rem; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert-error { background: var(--red-50); border-color: #fecdca; color: #7a271a; }
.alert-success { background: var(--green-50); border-color: var(--green-100); color: var(--green-900); }
.alert-info { background: #eff8ff; border-color: #b2ddff; color: #194185; }
.success-panel, .notice-panel { text-align: center; border: 1px solid var(--green-100); background: var(--green-50); border-radius: 14px; padding: 44px 28px; }
.notice-panel { background: var(--gold-50); border-color: #efe2b5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; }
.field-label { display: block; font-size: .88rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field-label b, .form legend b { color: var(--red); font-weight: 600; }
.grid-bottom { align-items: end; }
.check-sm { font-size: .88rem; margin: 8px 0 0; }
.check-sm input { width: 16px; height: 16px; margin-top: 2px; }
input[readonly] { background: var(--bg-soft); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"], fieldset[aria-invalid="true"] .choice { border-color: var(--red); }
.declaration:has(input[aria-invalid="true"]) { border-color: var(--red); }

/* Admission form (English / Tamil) */
.adm-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.adm-hero > div:first-child { flex: 1 1 420px; }
.lang-switch { display: grid; gap: 8px; }
.lang-switch-label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #a7d3bb; }
.lang-switch-label [lang="ta"] { letter-spacing: 0; }
.lang-options { display: inline-flex; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px; }
.lang-options a { min-width: 104px; padding: 8px 20px; border-radius: 999px; color: #fff; font-weight: 600; text-align: center; text-decoration: none; transition: background .15s; }
.lang-options a:hover { background: rgba(255,255,255,.14); }
.lang-options a.active { background: #fff; color: var(--green-800); }
.lang-options a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lang-options a[lang="ta"], .adm[lang="ta"] { --font: 'Outfit', 'Noto Sans Tamil', system-ui, sans-serif; font-family: var(--font); }
.adm[lang="ta"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.adm[lang="ta"] h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.4; letter-spacing: 0; }
.adm[lang="ta"] .field > span, .adm[lang="ta"] .field-label, .adm[lang="ta"] legend { line-height: 1.5; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; background: #fff; border: 1.5px solid #cbd5e1; border-radius: 10px; font-weight: 500; line-height: 1.4; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--green-700); }
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--green-800); }
.choice:has(input:checked) { border-color: var(--green-700); background: var(--green-50); box-shadow: 0 0 0 3px rgba(20,108,67,.12); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.age-out { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; background: var(--bg-soft); border: 1px dashed #cbd5e1; border-radius: 8px; font-weight: 600; color: var(--green-800); }
.age-out.is-empty { font-weight: 400; font-size: .86rem; line-height: 1.35; color: var(--muted); }
.adm-form textarea { min-height: 76px; }
.app-no { font-size: 1.25rem; color: var(--ink); background: #fff; display: inline-block; padding: 10px 20px; border-radius: 8px; border: 1px dashed var(--green-700); }

/* Verification */
.verify-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 28px; }
.segmented { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 4px; margin-bottom: 14px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 7px 16px; border-radius: 6px; font-weight: 500; font-size: .9rem; cursor: pointer; color: var(--muted); }
.segmented input:checked + span { background: #fff; color: var(--green-800); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.segmented input:focus-visible + span { outline: 3px solid var(--gold); }
.verify-input { display: flex; gap: 10px; }
.verify-input input { flex: 1; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; }
.verify-result { border-radius: 14px; padding: 26px 28px; margin-bottom: 20px; border: 1px solid; }
.verify-result.valid { border-color: var(--green-100); background: linear-gradient(180deg, var(--green-50), #fff 40%); }
.verify-result.invalid { border-color: #fecdca; background: var(--red-50); }
.verify-result header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: .9rem; }
.verify-badge { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--green-800); color: #fff; }
.invalid .verify-badge { background: var(--red); margin-bottom: 10px; }
.verify-result h2 { margin: 0; }
.verify-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 20px; margin: 18px 0; }
.verify-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.verify-grid dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }
.verify-foot { font-size: .82rem; color: var(--muted); margin: 0; border-top: 1px dashed var(--line); padding-top: 12px; }
.help-note { margin-top: 32px; font-size: .92rem; color: var(--muted); }
.help-note h3 { font-size: 1rem; }

/* News */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-chips a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .9rem; }
.filter-chips a.active, .filter-chips a:hover { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.article h1 { margin-top: 12px; }
.article-img { border-radius: var(--radius); margin: 20px 0; width: 100%; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination .page { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); font-size: .9rem; }
.pagination .page.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.pagination .gap { border: 0; }

/* Gallery */
.gallery-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 28px; }
.gallery-bar .filter-chips { margin: 0; }
.gallery-bar .segmented { margin: 0; }
.seg-links a { display: block; padding: 7px 16px; border-radius: 6px; font-weight: 500; font-size: .9rem; color: var(--muted); text-decoration: none; }
.seg-links a small { font-size: .75rem; opacity: .7; margin-left: 2px; }
.seg-links a.active { background: #fff; color: var(--green-800); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.gallery-card:hover { border-color: var(--green-700); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.gallery-media, .gallery-tile { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--green-950); overflow: hidden; }
.gallery-media img, .gallery-media video, .gallery-tile img, .gallery-tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-card:hover .gallery-media img, .gallery-tile:hover img { transform: scale(1.04); }
.gallery-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, var(--green-950), var(--green-700)); }
.play-badge { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.22); transition: background .15s; }
.play-badge > span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--green-950); box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .15s; }
.play-badge svg { margin-left: 3px; }
.gallery-card:hover .play-badge > span, .gallery-tile:hover .play-badge > span { transform: scale(1.08); }
.media-type { position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: var(--green-800); color: #fff; }
.media-type.video { background: var(--gold); color: var(--green-950); }
.gallery-info { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.gallery-info strong { color: var(--ink); font-weight: 600; line-height: 1.35; }
.gallery-info .ar { font-size: .98rem; line-height: 1.5; }
.gallery-meta { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.gallery-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-tile { border-radius: var(--radius); }
.tile-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-weight: 500; font-size: .92rem; line-height: 1.35; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.empty-state { text-align: center; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 14px; padding: 56px 20px; }
.empty-state h2 { font-size: 1.2rem; }

/* Facilities */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-chips a { color: #e6f2eb; text-decoration: none; font-size: .88rem; padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.hero-chips a:hover { background: rgba(255,255,255,.1); color: #fff; }
.facility { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.facility:first-child { padding-top: 0; }
.facility:last-child { border-bottom: 0; padding-bottom: 0; }
.facility-alt .facility-text { order: 2; }
.facility-noimg { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.facility-text h2 { margin-bottom: 2px; }
.facility-text .ar { margin-bottom: 10px; }
.facility-cover { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--green-950); box-shadow: var(--shadow); }
.facility-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.facility-cover:hover img { transform: scale(1.03); }
.facility-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.facility-thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--green-950); }
.facility-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.facility-thumb:hover img { opacity: .85; }
.more-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6,42,27,.65); color: #fff; font-weight: 600; font-size: 1.2rem; }
.facility-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.facility-card:hover { border-color: var(--green-700); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.facility-card-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--green-950); overflow: hidden; }
.facility-card-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-count { position: absolute; right: 10px; bottom: 10px; font-size: .72rem; font-weight: 600; background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: 4px; }
.facility-card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; font-size: .92rem; color: var(--muted); }
.facility-card-body strong { color: var(--ink); font-size: 1.05rem; font-weight: 600; }

/* Donate */
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar .donate-btn { display: inline-flex; align-items: center; background: var(--gold); color: var(--green-950); font-weight: 600; font-size: .8rem; padding: 3px 14px; border-radius: 999px; }
.topbar .donate-btn:hover, .topbar .donate-btn.active { background: #e0bb45; color: var(--green-950); }
.narrow-text { max-width: 760px; }
.cause-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 12px; }
.cause-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; }
.cause-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cause-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.bank-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow); }
.fund-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-600); background: var(--gold-50); border: 1px solid #efe2b5; padding: 2px 8px; border-radius: 4px; margin-bottom: 10px; }
.bank-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.bank-card h3 .muted { font-weight: 400; font-size: .95rem; }
.bank-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: .92rem; }
.bank-card dt { color: var(--muted); }
.bank-card dd { margin: 0; color: var(--ink); font-weight: 500; }
.acct-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-no { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; color: var(--green-900); }
.copy-btn { font: 600 .75rem var(--font); padding: 4px 10px; border-radius: 6px; border: 1px solid var(--green-700); background: #fff; color: var(--green-800); cursor: pointer; }
.copy-btn:hover, .copy-btn.copied { background: var(--green-800); color: #fff; }
.bank-notes { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--muted); }
.fraud-note { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }
.donate-after { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; background: #fff; border: 1px solid var(--green-100); border-left: 4px solid var(--green-800); border-radius: var(--radius); padding: 20px 24px; }
.donate-after h3 { margin-bottom: 4px; }
.donate-after p { margin: 0; max-width: 620px; }
.donate-after-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.donate-band { background: linear-gradient(135deg, var(--green-950), var(--green-800)); color: #d7eee1; }
.donate-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.donate-band h2 { color: #fff; margin-bottom: 4px; }
.donate-band p { margin: 0; max-width: 720px; }
.donate-band .eyebrow { color: var(--gold); }

/* Lightbox */
.lightbox { width: min(1040px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 14px; background: #0c120f; color: #d6e3dc; overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(3, 12, 8, .88); }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px 12px 18px; background: #121c17; }
.lb-heading { min-width: 0; }
.lb-kicker { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.lb-title { color: #fff; font-size: 1.05rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-close { flex: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.08); }
.lb-stage { position: relative; flex: 1 1 auto; min-height: 220px; background: #000; display: flex; align-items: center; justify-content: center; }
.lb-media { width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-media img, .lb-media video { display: block; max-width: 100%; max-height: calc(100dvh - 220px); width: auto; height: auto; }
.lb-media iframe { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 220px); border: 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.55); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(0,0,0,.8); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-foot { padding: 12px 18px 16px; background: #121c17; font-size: .92rem; }
.lb-foot p { margin: 0 0 4px; }
.lb-foot .ar { color: var(--gold); }
.lb-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .82rem; color: #8fa89b; }
.lb-link { color: var(--gold); }
.lb-link:hover { color: #e8c95a; }
body.lb-open { overflow: hidden; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
.info-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:first-child { padding-top: 0; }
.info-item h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-600); margin-bottom: 6px; }
.info-item p { margin: 0; color: var(--ink); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
.map-wrap { line-height: 0; border-top: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.2); }

/* Footer */
.site-footer { background: var(--green-950); color: #a9c7b7; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 46px; background: #fff; border-radius: 6px; padding: 2px; }
.footer-brand strong { color: #fff; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-brand .brand-ar { color: var(--gold); text-align: left; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfe3d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #7fa592; }
.social { display: flex; gap: 14px; margin-top: 14px; }
.social a { color: var(--gold); font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.footer-links { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-sep { color: #4d7462; }
.powered-by { color: #7fa592; }
.site-footer .powered-by a { color: var(--gold); font-weight: 600; }
.site-footer .powered-by a:hover { color: #e8c95a; }

/* Toast */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; max-width: 360px; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: .92rem; border-left: 4px solid var(--gold); }
.toast strong { display: block; color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.toast a { color: #fff; }

/* Responsive */
@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 20px 18px; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a.active { box-shadow: inset 3px 0 0 var(--gold); }
  .site-nav a.nav-cta { margin: 12px 0 0; text-align: center; border-radius: 8px; border: 0; }
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .vm-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .facility { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .facility-alt .facility-text { order: 0; }
  .fact-card { position: static; }
  .course-row { grid-template-columns: 1fr; gap: 16px; }
  .course-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 24px; }
  .course-row .btn { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .header-inner { min-height: 64px; }
  .brand img { width: 40px; }
  .brand-ar { font-size: .92rem; }
  .brand-en { font-size: .64rem; }
  .topbar-contact a:nth-child(2) { display: none; }
  .urgent-inner { align-items: flex-start; }
  .urgent-items { flex-direction: column; gap: 4px; line-height: 1.35; }
  .signboard { flex-direction: column; text-align: center; padding: 22px 18px; gap: 16px; }
  .signboard-logo { width: 110px; }
  .sb-ar { text-align: center; }
  .sb-meta { justify-content: center; }
  .hero-inner { padding-top: 32px; padding-bottom: 40px; gap: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0 !important; border-top: 1px solid var(--line); padding: 22px 8px; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(odd):not(:last-child) { border-right: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; }
  .vm-card { padding: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta-inner, .verify-teaser { flex-direction: column; align-items: flex-start; }
  .grid-2 { grid-template-columns: 1fr; }
  .form fieldset { padding: 16px 14px 4px; }
  .lang-switch, .lang-options { width: 100%; }
  .lang-options a { flex: 1; min-width: 0; }
  .choice-grid { grid-template-columns: 1fr; }
  .adm-form button[type=submit] { width: 100%; }
  .verify-input { flex-direction: column; }
  .board-grid { grid-template-columns: 1fr; }
  .board-card { padding: 18px; }
  .board-photo { width: 64px; height: 64px; }
  .course-facts { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .map-wrap iframe { height: 320px; }
  .facility-thumbs { gap: 6px; }
  .bank-card { padding: 18px; }
  .bank-card dl { grid-template-columns: 1fr; gap: 2px; }
  .bank-card dd { margin-bottom: 8px; }
  .donate-band-inner { flex-direction: column; align-items: flex-start; }
  .donate-after-actions .btn { flex: 1 1 100%; }
  .topbar .donate-btn { padding: 3px 12px; }
  .gallery-bar { flex-direction: column; align-items: stretch; }
  .gallery-bar .filter-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .gallery-bar .filter-chips a { flex: none; }
  .gallery-bar .segmented { align-self: flex-start; }
  .gallery-tiles > :last-child:nth-child(odd):not(:first-child) { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-info { padding: 10px 12px 12px; }
  .gallery-info strong { font-size: .9rem; }
  .gallery-info .ar { font-size: .88rem; }
  .play-badge > span { width: 42px; height: 42px; }
  .gallery-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile-caption { font-size: .8rem; padding: 22px 10px 8px; }
  .lightbox { border-radius: 10px; }
  .lb-nav { width: 38px; height: 38px; font-size: 1.4rem; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .urgent-bar, .toast, .verify-form, .help-note { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 16px; }
  .page-hero h1 { color: #000; }
}
