/* ============================================================
   Editorial Theme — inspired by classic independent schools
   Loaded after style.css
   ============================================================ */
:root {
  --ink: #0a1a33;
  --ink-2: #17365f;
  --blue: #1b3f7a;
  --blue-deep: #12294d;
  --gold: #c9a227;
  --gold-soft: #e7d9a8;
  --paper: #f2efe7;
  --paper-2: #eae5d8;
  --line-soft: #ddd8cb;
  --font-head: 'Amiri', 'Noto Kufi Arabic', serif;
  --font-body: 'Tajawal', 'Segoe UI', sans-serif;
  --accent: #c9a227;
  --primary: #1b3f7a;
  --navy-900: #10233f;
  --navy-950: #0a172b;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0;
}

.container { max-width: 1240px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1200;
  padding: 22px 0; transition: all 0.4s ease;
  color: #fff;
}
.site-header.scrolled {
  background: rgba(10, 23, 43, 0.94);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.6);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand-mark {
  width: 58px; height: 58px; border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 26px; font-weight: 700;
  position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.65);
}
.brand-name { font-family: var(--font-head); font-size: 21px; line-height: 1.2; }
.brand-logo {
  width: 58px; height: 58px; display: block; flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
}
.ministry-logo {
  height: 46px; width: auto; display: block; flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
  margin-left: 10px;
}
.brand-name small { display: block; font-family: var(--font-body); font-size: 11px; opacity: 0.75; letter-spacing: 0.5px; font-weight: 500; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a {
  font-size: 14px; font-weight: 600; opacity: 0.85; position: relative;
  padding-bottom: 4px; transition: opacity 0.25s;
}
.header-nav a::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s;
}
.header-nav a:hover { opacity: 1; }
.header-nav a:hover::after { width: 100%; }
.header-apply {
  border: 1px solid var(--gold); color: var(--gold) !important;
  padding: 10px 20px !important; border-radius: 999px; font-weight: 700 !important;
  transition: all 0.3s !important;
}
.header-apply:hover { background: var(--gold); color: var(--ink) !important; }
.menu-btn {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.5);
  color: #fff; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; font-size: 18px; transition: all 0.3s;
}
.menu-btn:hover { background: #fff; color: var(--ink); }

/* Full-screen menu */
.menu-overlay {
  position: fixed; inset: 0; background: var(--ink);
  z-index: 1300; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0.45s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-overlay .menu-close {
  position: absolute; top: 30px; left: 30px; background: none;
  border: 1px solid rgba(255,255,255,0.4); color: #fff; width: 52px; height: 52px;
  border-radius: 50%; font-size: 22px; cursor: pointer;
}
.menu-overlay nav { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.menu-overlay a {
  font-family: var(--font-head); font-size: clamp(28px, 5vw, 46px);
  color: #fff; padding: 6px 20px; transition: color 0.3s, transform 0.3s;
  opacity: 0; transform: translateY(20px);
}
.menu-overlay.open a { opacity: 1; transform: translateY(0); }
.menu-overlay.open a:nth-child(1) { transition-delay: 0.08s; }
.menu-overlay.open a:nth-child(2) { transition-delay: 0.13s; }
.menu-overlay.open a:nth-child(3) { transition-delay: 0.18s; }
.menu-overlay.open a:nth-child(4) { transition-delay: 0.23s; }
.menu-overlay.open a:nth-child(5) { transition-delay: 0.28s; }
.menu-overlay.open a:nth-child(6) { transition-delay: 0.33s; }
.menu-overlay.open a:nth-child(7) { transition-delay: 0.38s; }
.menu-overlay.open a:nth-child(8) { transition-delay: 0.43s; }
.menu-overlay a:hover { color: var(--gold); }
.menu-overlay .menu-foot {
  position: absolute; bottom: 30px; right: 0; left: 0; text-align: center;
  color: rgba(255,255,255,0.5); font-size: 13px;
}

/* ---------- Full hero ---------- */
.hero-full {
  position: relative; height: 100vh; min-height: 680px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,15,30,0.7) 0%, rgba(6,15,30,0.35) 40%, rgba(6,15,30,0.7) 100%);
}
.hero-full .container {
  position: relative; z-index: 2; width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; padding-bottom: 70px;
}
.hero-caption {
  background: rgba(18, 41, 77, 0.93);
  border: 1px solid rgba(201,162,39,0.4);
  padding: 46px 52px; max-width: 760px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
}
.hero-kicker {
  display: block; color: var(--gold); font-size: 13px; font-weight: 700;
  letter-spacing: 1px; margin-bottom: 14px;
}
.hero-caption h1 {
  color: #fff; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.25; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-caption p { color: #c9d5e6; font-size: 16px; margin-top: 14px; max-width: 560px; }
.hero-circles { display: flex; gap: 16px; flex-shrink: 0; }
.circle-action {
  width: 92px; height: 92px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(10,23,43,0.25); backdrop-filter: blur(8px);
  color: #fff; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; transition: all 0.3s;
}
.circle-action .ic { font-size: 24px; line-height: 1; }
.circle-action small { font-size: 12px; font-weight: 700; }
.circle-action:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-4px); }
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 12px; letter-spacing: 1px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 36px; background: rgba(255,255,255,0.4);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Vision/Mission/Values Quick Link Button */
.vmq-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--ad-gold), var(--ad-gold-soft));
  color: var(--ad-sidebar);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--ad-radius);
  margin-top: 24px;
  box-shadow: 0 4px 12px -4px var(--ad-gold-glow);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.vmq-btn:hover {
  background: var(--ad-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px var(--ad-gold-glow);
}

.vmq-btn:focus-visible {
  outline: 3px solid var(--ad-sidebar);
  outline-offset: 2px;
}

/* ---------- Header action buttons (visible on mobile only) ---------- */
.header-actions { display: none; gap: 10px; align-items: center; }
.action-btn {
  display: inline-block;
  padding: 11px 20px;
  background: rgba(201,162,39,0.14);
  border: 1px solid rgba(201,162,39,0.7);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.action-btn:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.action-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Hero CTA buttons ---------- */
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-cta .btn { margin: 0; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 800; }
.btn-gold:hover { background: #d8b23c; color: var(--ink); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.75); }
.btn-outline-light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

/* ---------- Stats band over photo ---------- */
.stats-photo { position: relative; overflow: hidden; padding: 0; display: block; border-radius: 0; box-shadow: none; }
.stats-bg { position: absolute; inset: 0; }
.stats-bg img { width: 100%; height: 100%; object-fit: cover; }
.stats-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16,35,63,0.9), rgba(16,35,63,0.78));
}
.stats-photo .container { position: relative; z-index: 2; padding: 78px 24px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; text-align: center;
}
.stats-photo .stat { border: 0; padding: 0; }
.stat-ic {
  width: 62px; height: 62px; margin: 0 auto 14px;
  border-radius: 14px; display: grid; place-items: center;
  background: rgba(201,162,39,0.92);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.6);
}
.stat-ic img { width: 34px; height: 34px; }
.stats-photo .stat .num { color: #fff; font-size: clamp(32px, 4.4vw, 52px); }
.stats-photo .stat .lbl { color: #c9d5e6; font-size: 15px; margin-top: 6px; }

/* ---------- Why us numbered cards ---------- */
.why-section { background: var(--paper); padding: 96px 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card {
  position: relative; background: var(--card, #fafaf6);
  border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 30px 26px 28px; overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s, border-color 0.3s;
}
.why-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -22px rgba(16,35,63,0.4); border-color: rgba(201,162,39,0.5); }
.why-num {
  position: absolute; top: 10px; left: 16px;
  font-family: var(--font-head); font-size: 58px; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.4px rgba(201,162,39,0.55);
  line-height: 1; pointer-events: none;
}
.why-ic {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--blue-deep); border: 3px solid rgba(201,162,39,0.5);
  display: grid; place-items: center; margin-bottom: 18px;
  box-shadow: 0 8px 18px -10px rgba(0,0,0,0.5);
}
.why-ic img { width: 30px; height: 30px; }
.why-card h3 { font-family: var(--font-head); font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.why-card p { font-size: 15px; color: var(--muted); line-height: 1.75; }

/* ---------- Partners strip ---------- */
.partners-strip { background: var(--paper-2, #ece7db); padding: 34px 0; border-top: 1px solid var(--line-soft); }
.partners-label {
  display: block; text-align: center; font-family: var(--font-body);
  font-size: 13px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.4px; margin-bottom: 20px;
}
.partners-row { display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; }
.partner-item {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 6px 18px;
  background: rgba(255,255,255,0.65); border: 1px solid var(--line-soft);
  border-radius: 999px; transition: all 0.3s;
}
.partner-item:hover { background: #fff; border-color: rgba(201,162,39,0.5); transform: translateY(-2px); }
.partner-item img { height: 40px; width: auto; max-width: 140px; object-fit: contain; }
.partner-text { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--ink); }

/* ---------- Events ---------- */
.events-section { background: var(--paper); padding: 96px 0; }
.events-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.events-head h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--ink); }
.events-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.events-tab {
  background: none; border: none; padding: 10px 18px; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; color: #6b6860;
  border-bottom: 2px solid transparent; transition: all 0.25s;
}
.events-tab.active { color: var(--ink); border-bottom-color: var(--gold); }
.event-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 26px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s, padding 0.3s;
}
.event-row:hover { background: rgba(201,162,39,0.06); padding-right: 14px; }
.event-date { text-align: center; border-left: 1px solid var(--line-soft); padding-left: 26px; }
.event-date .m { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 1px; }
.event-date .d { font-family: var(--font-head); font-size: 34px; line-height: 1; color: var(--ink); }
.event-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.event-note { font-size: 13px; color: #6b6860; }
.event-arrow { color: var(--gold); font-size: 20px; opacity: 0; transform: translateX(8px); transition: all 0.3s; }
.event-row:hover .event-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Split section ---------- */
.split-section { background: #f2efe7; padding: 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.split-text {
  padding: 90px clamp(28px, 6vw, 90px); display: flex; flex-direction: column;
  justify-content: center;
}
.split-text .kicker { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; margin-bottom: 16px; }
.split-text h2 { font-size: clamp(28px, 3.6vw, 44px); color: var(--ink); margin-bottom: 18px; line-height: 1.3; }
.split-text p { color: #4a4740; font-size: 16px; margin-bottom: 16px; }
.split-text .btn { align-self: flex-start; margin-top: 10px; }
.split-image { position: relative; overflow: hidden; min-height: 420px; }
.split-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.split-image:hover img { transform: scale(1.04); }

/* ---------- Image band ---------- */
.image-band { position: relative; height: 70vh; min-height: 480px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.image-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-band::after { content: ''; position: absolute; inset: 0; background: rgba(10,23,43,0.65); }
.image-band-content { position: relative; z-index: 2; max-width: 760px; padding: 0 24px; color: #fff; }
.image-band-content h2 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.image-band-content p { color: #d6deea; font-size: 17px; margin-bottom: 28px; }
.image-band .btn { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.image-band .btn:hover { background: var(--gold); color: var(--ink); }

/* ---------- Programs editorial ---------- */
.programs-editorial { background: var(--paper); padding: 96px 0; }
.prog-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.prog-head .kicker { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; }
.prog-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 10px 0 12px; }
.prog-head p { color: #4a4740; }
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prog-tile {
  position: relative; border-radius: 2px; overflow: hidden; min-height: 380px;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.prog-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s ease; }
.prog-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,23,43,0.3) 30%, rgba(10,23,43,0.85)); z-index: -1; }
.prog-tile:hover img { transform: scale(1.06); }
.prog-tile-body { padding: 26px 22px; width: 100%; }
.prog-tile-body .age { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--gold); margin-bottom: 8px; }
.prog-tile-body h3 { font-size: 24px; margin-bottom: 6px; }
.prog-tile-body p { font-size: 13px; color: #d6deea; }
.prog-tile-body .link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gold); margin-top: 12px; }

/* ---------- News editorial ---------- */
.news-editorial { background: #f2efe7; padding: 96px 0; }
.news-ed-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 26px; }
.news-ed-card { display: flex; flex-direction: column; }
.news-ed-card .thumb { overflow: hidden; aspect-ratio: 16/10; margin-bottom: 18px; }
.news-ed-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.news-ed-card:hover .thumb img { transform: scale(1.05); }
.news-ed-meta { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 0.6px; margin-bottom: 8px; }
.news-ed-card h3 { font-size: 21px; line-height: 1.4; margin-bottom: 8px; }
.news-ed-card p { font-size: 14px; color: #4a4740; }
.news-ed-card.feature h3 { font-size: 30px; }
.news-ed-card .read { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--blue); }

/* ---------- CTA editorial ---------- */
.cta-editorial {
  position: relative; padding: 110px 0; text-align: center; color: #fff; overflow: hidden;
}
.cta-editorial img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-editorial::after { content: ''; position: absolute; inset: 0; background: rgba(18,41,77,0.88); }
.cta-editorial .container { position: relative; z-index: 2; }
.cta-editorial h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.cta-editorial p { color: #d6deea; font-size: 17px; margin-bottom: 28px; }

/* ---------- Footer editorial ---------- */
.footer-editorial { background: var(--ink); color: #b9c4d4; padding: 76px 0 0; }
.footer-ed-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 50px; }
.footer-ed-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-ed-brand p { font-size: 14px; line-height: 1.9; max-width: 340px; }
.footer-editorial h4 { color: #fff; font-family: var(--font-head); font-size: 19px; margin-bottom: 16px; }
.footer-editorial ul li { margin-bottom: 9px; }
.footer-editorial ul a { font-size: 14px; transition: color 0.25s; }
.footer-editorial ul a:hover { color: var(--gold); }
.footer-editorial .contact-line { display: flex; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.footer-ed-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #8fa0b8;
}

/* ---------- Buttons overrides ---------- */
.btn {
  border-radius: 0; padding: 14px 28px; font-weight: 700; font-size: 15px;
  letter-spacing: 0.2px;
}
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: none; }
.btn-primary:hover { background: #b8921f; color: #fff; box-shadow: none; }
.btn-dark { background: var(--blue); color: #fff; box-shadow: none; }
.btn-dark:hover { background: var(--blue-deep); }
.btn-outline { border: 1px solid rgba(255,255,255,0.7); background: transparent; }
.btn-outline:hover { background: #fff; color: var(--ink); }

/* ---------- Inner pages: shared restyle ---------- */
.page-header {
  background-size: cover; background-position: center; position: relative;
  padding: 170px 0 100px; text-align: center; color: #fff;
}
.page-header::before { background: rgba(10,23,43,0.72); opacity: 1; }
.page-header h1 { font-family: var(--font-head); font-size: clamp(34px, 5vw, 54px); text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.page-header p { color: #d6deea; }

body.page-about .page-header { background-image: url('../images/campus.jpg'); }
body.page-programs .page-header { background-image: url('../images/classroom.jpg'); }
body.page-admissions .page-header { background-image: url('../images/students.jpg'); }
body.page-news .page-header { background-image: url('../images/library.jpg'); }
body.page-gallery .page-header { background-image: url('../images/teacher.jpg'); }
body.page-contact .page-header { background-image: url('../images/campus.jpg'); }

.section-title .eyebrow { background: transparent; color: var(--gold); padding: 0; font-size: 12px; letter-spacing: 1.2px; }
.section-title .eyebrow::before { background: var(--gold); }
.section-title h2 { color: var(--ink); }
.section-title p { color: #4a4740; }

/* Cards */
.feature-card, .mission-card, .step, .faq-item, .contact-form, .testimonial {
  border-radius: 2px; border-color: var(--line-soft); background: #fafaf6;
}
.mission-card {
  background: linear-gradient(135deg, #1b3f7a, #10233f);
  border: 1px solid rgba(201,162,39,0.3);
  color: #fff;
}
.mission-card .icon { color: var(--gold); }
.mission-card h3 { color: #fff; }
.mission-card p { color: #c9d5e6; }

.feature-icon { border-radius: 50%; background: var(--paper-2); border-color: var(--line-soft); }
.feature-card:hover .feature-icon { background: var(--blue); }
.feature-card h3, .mission-card h3, .step h3 { color: var(--ink); font-family: var(--font-head); font-size: 22px; }
.program-card { border-radius: 2px; border-color: var(--line-soft); }
.program-head { border-radius: 0; }
.news-card { border-radius: 2px; border-color: var(--line-soft); }
.news-body h3 { font-family: var(--font-head); font-size: 22px; }
.about-img {
  border-radius: 2px; background: linear-gradient(145deg, var(--blue), var(--ink));
}
.about-img img {
  width: 190px; height: 190px; display: block; position: relative; z-index: 1;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.45));
}
.about-badge { border-radius: 2px; }
.stats-band { border-radius: 0; background: var(--blue-deep); }
.stats-band .stat .num { color: var(--gold); font-family: var(--font-head); }
.testimonial::before { color: var(--gold-soft); }
.testimonial .author { color: var(--ink); }
.contact-info { border-radius: 2px; background: var(--blue-deep); }
.contact-form { border-radius: 2px; }
.form-group input, .form-group textarea, .form-group select { border-radius: 0; background: #fbfaf6; border-color: var(--line-soft); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.15); }
.faq-q { font-family: var(--font-body); }
.faq-item.open .faq-q .ic { background: var(--gold); }
.footer { background: var(--ink); }
.footer h4 { font-family: var(--font-head); font-size: 19px; }
.footer-bottom { color: #8fa0b8; }

/* Navbar override for inner pages (old navbar) */
.navbar { background: rgba(16,35,63,0.96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.navbar .logo, .navbar .nav-links a { color: #fff; }
.navbar .nav-links a:hover { color: var(--gold); background: transparent; }
.navbar .nav-links a.active { color: var(--gold); background: rgba(255,255,255,0.06); }
.navbar .nav-links a::after { background: var(--gold); }
.navbar .logo-text small { color: #a9b8cd; }
.navbar .logo-icon { border-radius: 50%; background: transparent; border: none; box-shadow: none; overflow: visible; padding: 0; }
.navbar .logo-icon::after { display: none; }
.navbar .logo-icon img { width: 100%; height: 100%; display: block; }
.ministry-logo-nav { height: 34px; width: auto; display: block; margin-left: 8px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.nav-toggle span.bar { background: #fff; }
.topbar { background: var(--ink); }

/* ---------- Inline icons ---------- */
.ico-line {
  width: 14px; height: 14px; display: inline-block;
  vertical-align: -2px; margin-left: 7px; opacity: 0.95;
}
.topbar-info span .ico-line { width: 13px; height: 13px; vertical-align: -2px; margin-left: 5px; }
.footer-links li .ico-line { width: 14px; height: 14px; vertical-align: -2px; }
.contact-line .ico-line { width: 15px; height: 15px; vertical-align: -3px; margin-left: 8px; }
.contact-row .ic img.ico-line { width: 22px; height: 22px; margin: 0; vertical-align: middle; }

/* Dark mode adjustments */
body.dark { --paper: #0a172b; --paper-2: #12233c; --ink: #e9eef7; --line-soft: #24344f; }
body.dark .menu-overlay { background: #0a172b; }
body.dark .menu-overlay a { color: #fff; }
body.dark .menu-overlay a:hover { color: var(--gold); }
body.dark .split-section, body.dark .news-editorial { background: var(--paper-2); }
body.dark .section { background: var(--paper); }
body.dark .feature-card, body.dark .mission-card, body.dark .step, body.dark .faq-item, body.dark .contact-form, body.dark .testimonial { background: #12233c; }
body.dark .form-group input, body.dark .form-group textarea, body.dark .form-group select { background: #0e1d33; color: #e9eef7; }
body.dark .footer-editorial { background: #0a172b; color: #b9c4d4; }
body.dark .footer-editorial h4 { color: #fff; }
body.dark .navbar { background: rgba(10,23,43,0.96); }

/* ---------- Leadership cards ---------- */
.leaders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.leader-card {
  background: linear-gradient(135deg, #10233f, #17365f);
  border: 1px solid rgba(201,162,39,0.3);
  border-right: 4px solid var(--gold);
  border-radius: 2px;
  padding: 20px; display: flex; align-items: center; gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px -4px rgba(0,0,0,0.3);
}
.leader-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px -12px rgba(201,162,39,0.3); }
.leader-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(145deg, var(--gold), #b8921f);
  border: 3px solid #fff; overflow: hidden;
  display: grid; place-items: center; color: var(--ink); font-family: var(--font-head); font-size: 26px; font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(16,35,63,0.2);
}
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-info h3 { font-family: var(--font-head); font-size: 20px; color: #fff; margin-bottom: 2px; }
.leader-info .role { font-size: 13px; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.leader-info .bio { font-size: 13px; color: #c9d5e6; line-height: 1.6; }
@media (max-width: 992px) {
  .header-nav { display: none; }
  .header-actions { display: flex; }
  .menu-btn { display: block; }
  .hero-full .container { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 60px; }
  .hero-circles { align-self: flex-end; }
  .hero-caption { padding: 32px 28px; }
  .split-grid { grid-template-columns: 1fr; }
  .split-image { min-height: 340px; order: -1; }
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .news-ed-grid { grid-template-columns: 1fr 1fr; }
  .news-ed-card.feature { grid-column: 1 / -1; }
  .news-ed-card.feature .thumb { aspect-ratio: 21/9; }
  .footer-ed-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .page-header { padding: 110px 0 70px; }
}
@media (max-width: 640px) {
  .hero-full { min-height: 620px; }
  .hero-scroll { display: none; }
  .hero-circles { gap: 10px; }
  .circle-action { width: 74px; height: 74px; }
  .circle-action .ic { font-size: 20px; }
  .circle-action small { font-size: 11px; }
  .footer-editorial li a, .footer-ed-bottom a,
  .footer-links li a { display: inline-block; padding: 7px 0; min-height: 34px; }
  .news-ed-card .read, .prog-tile .link { display: inline-block; padding: 8px 0; min-height: 34px; }
  .event-row { grid-template-columns: 80px 1fr; gap: 16px; }
  .event-date { padding-left: 16px; }
  .event-arrow { display: none; }
  .prog-grid { grid-template-columns: 1fr; }
  .news-ed-grid { grid-template-columns: 1fr; }
  .footer-ed-grid { grid-template-columns: 1fr; }
  .brand-logo { width: 42px; height: 42px; }
  .ministry-logo { height: 32px; margin-left: 6px; }
  .brand { gap: 6px; flex-shrink: 0; }
  .brand-name { font-size: 16px; }
  .brand-name small { font-size: 10px; }
  .about-img img { width: 150px; height: 150px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 26px 22px 24px; }
  .why-num { font-size: 48px; top: 8px; left: 12px; }
  .header-actions { gap: 6px; flex-shrink: 0; }
  .action-btn { padding: 9px 10px; font-size: 12px; }
  .brand-name { display: none; }
  .hero-caption { padding: 26px 20px; }
  .hero-caption h1 { font-size: clamp(27px, 8.2vw, 34px); line-height: 1.3; }
  .hero-caption h1 br { display: none; }
  .hero-caption p { font-size: 15px; margin-top: 12px; }
  .hero-kicker { font-size: 11px; letter-spacing: 0.4px; margin-bottom: 10px; }
  .hero-cta { margin-top: 18px; }
  .hero-cta { gap: 10px; margin-top: 20px; }
  .hero-cta .btn { padding: 12px 22px; font-size: 14px; }
  .stats-photo .container { padding: 56px 20px; }
  .stats-grid { gap: 28px 14px; }
  .stat-ic { width: 52px; height: 52px; }
  .stat-ic img { width: 28px; height: 28px; }
  .stats-photo .stat .lbl { font-size: 13px; }
  .partners-row { gap: 14px; }
  .partner-item { padding: 5px 14px; }
}
/* ===== Modern Page Transitions (View Transitions API) ===== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-fade-out 0.25s cubic-bezier(.4,0,.2,1) forwards; }
::view-transition-new(root) { animation: vt-fade-in 0.35s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes vt-fade-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

body { animation: pageFadeIn 0.5s ease both; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

html { scroll-behavior: smooth; }

/* Modern glass navbar for inner pages */
.navbar {
  background: rgba(16,35,63,0.75) !important;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(201,162,39,0.15);
  box-shadow: 0 8px 32px -16px rgba(0,0,0,0.4);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar .nav-links a { position: relative; padding: 8px 12px !important; border-radius: 6px; transition: color 0.25s, background 0.25s; }
.navbar .nav-links a::after {
  content: ''; position: absolute; bottom: 2px; right: 50%; left: 50%;
  height: 2px; background: var(--gold); transition: left 0.3s, right 0.3s; border-radius: 2px;
}
.navbar .nav-links a:hover::after, .navbar .nav-links a.active::after { left: 8px; right: 8px; }
.navbar .nav-links a:hover { color: var(--gold); background: rgba(201,162,39,0.08); }
.navbar .logo { transition: transform 0.3s; }
.navbar .logo:hover { transform: scale(1.03); }
.navbar .logo-icon img { transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.navbar .logo:hover .logo-icon img { transform: rotate(-6deg) scale(1.05); }

/* Enhance editorial header */
.site-header .header-nav a { transition: color 0.25s, transform 0.25s; }
.site-header .header-nav a:hover { transform: translateY(-1px); }
.site-header .brand-logo { transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.site-header .brand:hover .brand-logo { transform: rotate(-4deg) scale(1.05); }
