:root {
  --green: #0a5c38;
  --green-dark: #073d26;
  --green-light: #e8f4ed;
  --gold: #c8a033;
  --gold-light: #f7f0dc;
  --white: #ffffff;
  --bg: #f8f6f1;
  --txt: #1c2b20;
  --txt-m: #5a6e61;
  --bd: #ddd8cd;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10,92,56,.10);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--green);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.15); }
.navbar-logo-fallback {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 18px;
}
.navbar-name { color: var(--white); font-weight: 700; font-size: 15px; line-height: 1.2; }
.navbar-name span { display: block; font-size: 11px; font-weight: 400; opacity: .75; }
.navbar-links { display: flex; align-items: center; gap: 4px; }
.navbar-links a {
  color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600;
  padding: 6px 11px; border-radius: 7px; transition: background .18s, color .18s;
  white-space: nowrap;
}
.navbar-links a:hover, .navbar-links a.active { background: rgba(255,255,255,.15); color: var(--white); }
.navbar-links a.nav-verify {
  background: var(--gold); color: var(--green-dark);
  padding: 6px 13px; border-radius: 999px;
}
.navbar-links a.nav-verify:hover { background: #b8911f; color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 520px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #1a7a4e 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-bg:not(.active) {
  opacity: 0;
}
.hero-bg.active {
  opacity: .42;
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 60px 24px;
  max-width: 760px; margin: 0 auto;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white); font-weight: 800; line-height: 1.15;
  margin-bottom: 16px;
}
.hero-content h1 span { color: var(--gold); }
.hero-content p {
  color: rgba(255,255,255,.85); font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  border: 2px solid transparent; transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--green-dark); border-color: var(--gold); }
.btn-primary:hover { background: #b8911f; color: var(--white); border-color: #b8911f; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }

/* ── STATS BAR ──────────────────────────────────────── */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--bd); }
.stats-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center; padding: 22px 16px;
  border-right: 1px solid var(--bd);
}
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1; }
.stat-label { font-size: 12px; color: var(--txt-m); font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }

/* ── SECTIONS ───────────────────────────────────────── */
.section { padding: 72px 24px; }
.section-alt { background: var(--white); }
.section-green { background: var(--green); color: var(--white); }
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 900px; }
.section-center { text-align: center; }
.section-green-heading {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 12px 0 8px;
}
.section-green-copy {
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-light);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.section-green .section-tag { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--txt); margin-bottom: 12px; }
.section-green .section-header h2 { color: var(--white); }
.section-header p { color: var(--txt-m); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-green .section-header p { color: rgba(255,255,255,.8); }

/* ── CARDS ──────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--bd);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(10,92,56,.15); }
.card-img { width: 100%; height: 180px; object-fit: cover; background: var(--green-light); }
.card-img-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--green-light), #d4e8db);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--green);
}
.card-body { padding: 20px; }
.card-tag { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.card-body h3 { font-size: 1.1rem; color: var(--txt); margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--txt-m); line-height: 1.6; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--bd); }

/* ── PROGRAMME CARDS ─────────────────────────────────── */
.programme-card {
  background: var(--white); border: 1px solid var(--bd);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.programme-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--green);
}
.programme-card.gold::before { background: var(--gold); }
.programme-card.teal::before { background: #0e7490; }
.programme-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--green-light); display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin-bottom: 16px;
}
.programme-icon .bi { line-height: 1; }
.programme-card h3 { font-size: 1.25rem; color: var(--txt); margin-bottom: 6px; }
.programme-card .ar { font-size: 1rem; color: var(--txt-m); direction: rtl; margin-bottom: 12px; }
.programme-card p { font-size: 14px; color: var(--txt-m); margin-bottom: 16px; }
.level-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.level-pill {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: var(--green-light); color: var(--green);
  border: 1px solid #b8d9c5;
}
.programme-detail-card {
  background: var(--white);
  border: 1px solid var(--bd);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  min-width: 0;
}
.programme-detail-card.gold { border-top-color: var(--gold); }
.programme-detail-card.teal { border-top-color: #0e7490; }
.programme-detail-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.programme-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.programme-detail-card.gold .programme-detail-icon { background: var(--gold-light); }
.programme-detail-card.teal .programme-detail-icon { background: #e0f0ff; }
.programme-detail-body {
  flex: 1;
  min-width: 0;
}
.programme-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.programme-detail-title h2 {
  font-size: 1.5rem;
  color: var(--txt);
  overflow-wrap: anywhere;
}
.programme-detail-title span {
  font-size: 1rem;
  color: var(--txt-m);
  direction: rtl;
  overflow-wrap: anywhere;
}
.programme-detail-badge {
  margin-bottom: 14px;
}
.programme-detail-description {
  color: var(--txt-m);
  margin-bottom: 18px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.programme-detail-subtitle {
  color: var(--txt);
  margin-bottom: 10px;
}
.programme-detail-levels {
  margin-bottom: 18px;
}
.programme-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.programme-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--txt-m);
  min-width: 0;
}
.page-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.page-actions-tight {
  margin-top: 0;
}
.assessment-wrap {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.assessment-table {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.assessment-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 14px 24px;
  border-bottom: 1px solid var(--bd);
  font-size: 15px;
  align-items: center;
}
.assessment-row:last-child {
  border-bottom: none;
}
.assessment-head {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.assessment-name {
  color: var(--txt);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.assessment-muted {
  color: var(--txt-m);
  overflow-wrap: anywhere;
}
.assessment-strong {
  color: var(--green);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ── SUBJECT TABLE ──────────────────────────────────── */
.subject-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--bd); background: var(--white); color: var(--txt-m);
  cursor: pointer; transition: all .18s;
}
.filter-btn.active, .filter-btn:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.subject-section { display: none; margin-bottom: 36px; }
.subject-section.active { display: block; }
.subject-level { margin-bottom: 24px; }
.subject-level h4 {
  font-size: 14px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--green); margin-bottom: 12px;
  padding-bottom: 6px; border-bottom: 2px solid var(--green-light);
}
.subject-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.subject-item {
  background: var(--white); border: 1px solid var(--bd);
  border-radius: 8px; padding: 10px 14px;
  font-size: 14px; color: var(--txt); font-weight: 600;
}
.subject-item .ar { font-size: 13px; color: var(--txt-m); direction: rtl; margin-top: 2px; font-weight: 400; }

/* ── FEES TABLE ─────────────────────────────────────── */
.fees-container {
  max-width: 1100px;
}
.fees-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fees-table th { background: var(--green); color: var(--white); padding: 14px 20px; text-align: left; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fees-table td { padding: 13px 20px; border-bottom: 1px solid var(--bd); font-size: 15px; }
.fees-table tr:last-child td { border-bottom: none; }
.fees-table tr:hover td { background: var(--green-light); }
.fee-amount { font-weight: 700; color: var(--green); }
.fee-structure-table {
  margin-bottom: 24px;
}
.fees-note-list {
  background: var(--green-light);
  border: 1px solid #b8d9c5;
  border-radius: var(--radius);
  color: var(--txt-m);
  font-size: 14px;
  line-height: 1.6;
  margin: -24px 0 24px;
  padding: 18px 22px;
}
.fees-note-list p + p {
  margin-top: 6px;
}
.fee-structure-table thead tr:first-child th {
  text-align: center;
  font-size: 14px;
  background: var(--green-dark);
}
.fee-structure-table thead tr:first-child th.fee-details-heading {
  text-align: left;
}
.fee-structure-table thead tr:nth-child(2) th {
  background: var(--green);
}
.fee-structure-table th,
.fee-structure-table td {
  border-right: 1px solid var(--bd);
}
.fee-structure-table th:last-child,
.fee-structure-table td:last-child {
  border-right: none;
}
.fee-structure-table thead th {
  border-right-color: rgba(255,255,255,.35);
}
.fee-structure-table thead tr:first-child th:nth-child(2),
.fee-structure-table thead tr:nth-child(2) th:nth-child(3),
.fee-structure-table tbody td:nth-child(4),
.fee-structure-table .fee-year-total-row td:nth-child(2) {
  border-right: 2px solid rgba(255,255,255,.45);
}
.fee-structure-table tbody td:nth-child(4),
.fee-structure-table .fee-year-total-row td:nth-child(2) {
  border-right-color: #b8d9c5;
}
.fee-total-label {
  text-align: left;
}
.fee-total-row td {
  background: var(--green-light);
  font-weight: 800;
  border-top: 2px solid #b8d9c5;
}
.fee-year-total-row td {
  background: var(--gold-light);
  border-top-color: #e5c97a;
}
.fee-total-row:hover td,
.fee-total-row td {
  background: var(--green-light);
}
.fee-year-total-row:hover td,
.fee-year-total-row td {
  background: var(--gold-light);
}
.payment-details-box {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 20px 0 0;
}
.payment-details-box h3 {
  color: var(--txt);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.payment-details-lines {
  display: grid;
  gap: 6px;
}
.payment-details-lines p {
  color: var(--txt-m);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.table-scroll {
  width: 100%;
  overflow-x: visible;
}
.table-scroll .fees-table,
.table-scroll .schedule-table {
  min-width: 0;
}
.table-scroll .fee-structure-table {
  min-width: 0;
}

/* ── SCHEDULE TABLE ─────────────────────────────────── */
.schedule-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.schedule-table th { background: var(--green); color: var(--white); padding: 14px 18px; text-align: left; font-size: 13px; font-weight: 700; }
.schedule-table td { padding: 12px 18px; border-bottom: 1px solid var(--bd); font-size: 14px; }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--green-light); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.badge-green { background: var(--green-light); color: var(--green); }
.badge-gold { background: var(--gold-light); color: #7a5c0a; }
.badge-blue { background: #e0f0ff; color: #1a5a8c; }

/* ── VERIFY ─────────────────────────────────────────── */
.verify-box {
  max-width: 520px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--bd);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.verify-result {
  margin-top: 24px; padding: 18px 20px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
}
.verify-result.ok { background: #e8f4ed; color: #0a5c38; border: 1px solid #b8d9c5; }
.verify-result.fail { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── NEWS ───────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.news-card { background: var(--white); border: 1px solid var(--bd); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.news-card:hover { transform: translateY(-3px); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card-no-img { width: 100%; height: 200px; background: linear-gradient(135deg, var(--green-light), #d4e8db); display: flex; align-items: center; justify-content: center; font-size: 52px; }
.activity-video-thumb {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.activity-video-thumb .bi {
  font-size: 46px;
  color: var(--gold);
}
.activity-video-thumb span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.news-card-body { padding: 20px; }
.news-date { font-size: 12px; color: var(--txt-m); margin-bottom: 6px; }
.news-card-body h3 { font-size: 1.05rem; color: var(--txt); margin-bottom: 8px; line-height: 1.4; }
.news-card-body p { font-size: 14px; color: var(--txt-m); }
.news-article { max-width: 780px; margin: 0 auto; }
.news-article img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; max-height: 400px; object-fit: cover; }
.activity-video {
  width: 100%;
  max-height: 520px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  background: #000;
  box-shadow: var(--shadow);
}
.news-article h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--txt); margin-bottom: 8px; }
.news-article .meta { font-size: 13px; color: var(--txt-m); margin-bottom: 28px; }
.news-article .content { font-size: 1rem; line-height: 1.8; color: var(--txt); }
.news-article .content p { margin-bottom: 16px; }

/* ── FORMS ──────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--txt); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--bd);
  border-radius: 8px; font-size: 14px; color: var(--txt);
  background: var(--white); outline: none; transition: border-color .18s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--green);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.site-form .btn { border: none; }

/* ── CONTENT HELPERS ────────────────────────────────── */
.section-tag-spaced {
  margin-bottom: 10px;
}
.compact-section-title {
  font-size: 1.5rem;
  color: var(--txt);
  margin-bottom: 20px;
}
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--txt);
  overflow-wrap: anywhere;
}
.check-list .bi {
  color: var(--green);
  margin-top: 2px;
  flex-shrink: 0;
}
.admissions-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}
.student-type-card {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}
.student-type-card + .student-type-card {
  margin-top: 16px;
}
.student-type-card-green {
  background: var(--green-light);
  border-color: #b8d9c5;
}
.student-type-card h4 {
  color: var(--txt);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.student-type-card-green h4 {
  color: var(--green);
}
.student-type-card p {
  font-size: 14px;
  color: var(--txt-m);
  overflow-wrap: anywhere;
}

/* ── CONTACT ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-panel-grid { gap: 28px; }
.contact-panel {
  background: var(--white); border: 1px solid var(--bd);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.contact-panel h3 { font-size: 1.25rem; color: var(--txt); margin-bottom: 6px; }
.contact-panel-sub { color: var(--txt-m); font-size: 14px; margin-bottom: 22px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-info-item h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--txt-m); margin-bottom: 2px; }
.contact-info-item p { font-size: 15px; color: var(--txt); }
.contact-info-item div:last-child {
  min-width: 0;
}
.contact-info-item p,
.contact-info-item a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-link-list {
  display: grid;
  gap: 4px;
}
.contact-socials { display: flex; gap: 10px; padding-top: 4px; }
.contact-socials a {
  width: 38px; height: 38px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--white);
}
.contact-socials a:hover { background: var(--gold); color: var(--green-dark); }

/* ── MODAL ──────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: 18px; background: rgba(8,18,13,.62);
}
.modal-backdrop.open { display: flex; }
.modal-card {
  width: min(720px, 100%); max-height: calc(100vh - 36px); overflow: auto;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 20px 70px rgba(0,0,0,.28); padding: 28px;
  position: relative;
}
.modal-card h2 { color: var(--txt); font-size: 1.45rem; margin: 8px 42px 6px 0; }
.modal-sub { color: var(--txt-m); margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--bd); background: var(--white);
  color: var(--txt); cursor: pointer;
}
.modal-close:hover { border-color: var(--green); color: var(--green); }

/* ── ABOUT SPLIT ────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-img img { width: 100%; height: 400px; object-fit: cover; }
.split-img-placeholder { width: 100%; height: 400px; background: linear-gradient(135deg, var(--green-light), #d4e8db); display: flex; align-items: center; justify-content: center; font-size: 72px; }
.split-content h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--txt); margin-bottom: 16px; }
.split-content p { color: var(--txt-m); margin-bottom: 14px; line-height: 1.75; }
.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.purpose-card {
  border-radius: var(--radius);
  padding: 32px;
  min-width: 0;
}
.purpose-card-green {
  background: var(--green);
  color: var(--white);
}
.purpose-card-gold {
  background: var(--gold-light);
  border: 1px solid #e5c97a;
}
.purpose-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.purpose-card h3 {
  color: var(--txt);
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.purpose-card-green h3 {
  color: var(--white);
}
.purpose-card p {
  color: var(--txt-m);
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.purpose-card-green p {
  color: rgba(255,255,255,.85);
}
.school-info-grid {
  max-width: 900px;
  margin: 0 auto;
}
.school-info-card {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  min-width: 0;
}
.school-info-body {
  min-width: 0;
  flex: 1;
}
.school-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--txt-m);
  margin-bottom: 4px;
}
.school-info-value {
  font-size: 15px;
  color: var(--txt);
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── STEPS ──────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { text-align: center; padding: 28px 20px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; margin: 0 auto 16px;
}
.step h4 { font-size: 1rem; color: var(--txt); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--txt-m); }

/* ── FOOTER ─────────────────────────────────────────── */
.footer { background: var(--green-dark); color: rgba(255,255,255,.8); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 56px 24px 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.footer-bottom span {
  min-width: 0;
}
.footer-copy {
  text-align: left;
}
.footer-foundation {
  text-align: center;
  color: rgba(255,255,255,.86);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.footer-powered {
  text-align: right;
}
.footer-bottom a { color: var(--gold); }

/* ── PAGE HEADER ────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 52px 24px; text-align: center;
}
.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.page-header p { color: rgba(255,255,255,.8); margin-top: 8px; font-size: 1.05rem; }

/* ── BREADCRUMB ─────────────────────────────────────── */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--bd); padding: 12px 24px; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; font-size: 13px; color: var(--txt-m); }
.breadcrumb-inner a { color: var(--green); }
.breadcrumb-inner a:hover { color: var(--gold); }

/* ── DIVIDER ────────────────────────────────────────── */
.gold-divider { width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin: 12px auto 0; }

/* ── ALERT ──────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.alert-ok { background: #e8f4ed; color: #0a5c38; border: 1px solid #b8d9c5; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warn { background: var(--gold-light); color: #7a5c0a; border: 1px solid #e5c97a; }

/* ── LEGAL PAGES ────────────────────────────────────── */
.legal-page {
  max-width: 860px;
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  min-width: 0;
}
.legal-page h2 { color: var(--txt); font-size: 1.15rem; margin: 28px 0 8px; }
.legal-page p { color: var(--txt-m); margin-bottom: 14px; }
.legal-page p:first-child { color: var(--txt); }
.legal-page p,
.legal-page a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── EMPTY STATE ────────────────────────────────────── */
.empty { text-align: center; padding: 60px 24px; color: var(--txt-m); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty h3 { font-size: 1.1rem; color: var(--txt); }

/* ── SCROLL REVEAL ─────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s ease,
    transform .7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-on-scroll.reveal-left {
  transform: translateX(-22px);
}
.reveal-on-scroll.reveal-right {
  transform: translateX(22px);
}
.reveal-on-scroll.reveal-scale {
  transform: translateY(16px) scale(.98);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .purpose-grid,
  .admissions-info-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--bd); }
}
@media (max-width: 700px) {
  .section { padding: 52px 18px; }
  .page-header { padding: 42px 18px; }
  .hero { min-height: 460px; }
  .hero-content { padding: 52px 18px; }
  .btn {
    justify-content: center;
    text-align: center;
  }
  .page-actions,
  .page-actions-tight {
    align-items: stretch;
    gap: 10px;
  }
  .page-actions .btn {
    width: 100%;
  }
  .programme-detail-card {
    padding: 24px;
  }
  .programme-detail-layout {
    flex-direction: column;
    gap: 16px;
  }
  .programme-detail-icon {
    width: 58px;
    height: 58px;
    font-size: 26px;
  }
  .programme-detail-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .programme-detail-title h2 {
    font-size: 1.3rem;
  }
  .programme-feature-grid {
    grid-template-columns: 1fr;
  }
  .assessment-row {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 14px;
    font-size: 13px;
  }
  .assessment-head {
    display: grid;
    font-size: 11px;
  }
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-scroll .fees-table,
  .table-scroll .schedule-table {
    min-width: 640px;
  }
  .table-scroll .fee-structure-table {
    min-width: 860px;
  }
  .compact-section-title {
    font-size: 1.3rem;
  }
  .purpose-card,
  .student-type-card {
    padding: 22px;
  }
  .navbar-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--green-dark); padding: 12px; gap: 2px; }
  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 10px 14px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 6px;
  }
  .footer-copy,
  .footer-foundation,
  .footer-powered {
    text-align: center;
  }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-panel { padding: 22px; }
  .modal-card { padding: 22px; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.7rem; }
  .navbar-inner {
    padding: 0 14px;
  }
  .navbar-name {
    font-size: 13px;
    max-width: 210px;
  }
  .card-grid,
  .news-grid,
  .subject-list {
    grid-template-columns: 1fr;
  }
  .programme-card {
    padding: 22px;
  }
  .programme-detail-card {
    padding: 20px;
  }
  .section-header {
    margin-bottom: 34px;
  }
  .split-img img,
  .split-img-placeholder {
    height: 280px;
  }
  .legal-page {
    padding: 24px;
  }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 16px 10px; }
  .stat-number { font-size: 1.5rem; }
}
