/* =====================================================
   SARHAD — Modern Design System v3
   Credible · Human-centric · Impact-driven
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,300;8..60,400;8..60,600&display=swap');

/* ── TOKENS ── */
:root {
  --navy:        #1B2B5E;
  --navy-dark:   #0F1A3A;
  --navy-mid:    #243474;
  --gold:        #B8872A;
  --gold-lt:     #D4A94E;
  --gold-pale:   #F5EDD8;
  --white:       #FFFFFF;
  --ivory:       #FAF8F4;
  --gray-100:    #F4F3F0;
  --gray-200:    #E6E4DF;
  --gray-400:    #B0ADA5;
  --gray-600:    #6B6760;
  --text:        #1A1917;
  --text-muted:  #5A5754;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-sub:     'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;

  --radius-sm:  6px;
  --radius:     14px;
  --radius-lg:  24px;
  --shadow-sm:  0 2px 16px rgba(27,43,94,.07);
  --shadow:     0 8px 36px rgba(27,43,94,.11);
  --shadow-lg:  0 20px 60px rgba(27,43,94,.15);
  --transition: .38s cubic-bezier(.4,0,.2,1);

  /* backward compat aliases */
  --off-white:   #FAF8F4;
  --gray-500:    #6B6760;
}

/* ── RESET ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.75; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--navy); }
h5,h6        { font-family: var(--font-sub); color: var(--navy); }

/* ── LAYOUT ── */
.container       { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.container-wide  { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.container-narrow{ max-width: 820px;  margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-sub); font-size: 14px; font-weight: 600; letter-spacing: .3px;
  transition: var(--transition); cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: #9A7020; border-color: #9A7020; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,135,42,.35); }
.btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-navy     { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost    { background: transparent; color: var(--navy); border-color: var(--gray-200); }
.btn-ghost:hover { border-color: var(--navy); background: var(--ivory); }

/* ── SECTION HEADERS ── */
.section-header  { text-align: center; margin-bottom: clamp(36px,6vw,60px); }
.section-label {
  display: inline-block; font-family: var(--font-sub);
  font-size: 10px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-title    { font-size: clamp(28px, 4.5vw, 46px); color: var(--navy); margin-bottom: 16px; }
.section-subtitle { font-family: var(--font-sub); font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.65; }
.section-divider  { width: 44px; height: 2px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }

/* ── SCROLL ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── PAGE LOADER ── */
.page-loader {
  position: fixed; inset: 0; background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15); border-top-color: var(--gold);
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  padding: 120px 0 56px; color: var(--white);
}
.page-hero h1 { font-size: clamp(28px,5vw,52px); color: var(--white); margin-top: 16px; }
.page-hero p  { font-family: var(--font-sub); color: rgba(255,255,255,.65); font-size: 16px; margin-top: 10px; }
.page-hero-accent { height: 5px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 50%, transparent 100%); }
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-sub); font-size: 13px; color: rgba(255,255,255,.55); }
.breadcrumb a { color: rgba(255,255,255,.7); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold-lt); }
.breadcrumb-sep { opacity: .4; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background .4s ease, box-shadow .4s ease; }
.site-header.transparent { background: transparent; }
.site-header.scrolled { background: var(--navy-dark); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 32px rgba(0,0,0,.25); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo-img { height: 40px; width: auto; }
.nav-logo-divider { width: 1px; height: 34px; background: rgba(255,255,255,.2); }
.nav-logo-text { color: var(--white); }
.nav-logo-text strong { display: block; font-family: var(--font-heading); font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: .5px; }
.nav-logo-text span   { font-family: var(--font-sub); font-size: 9.5px; letter-spacing: 2.5px; text-transform: uppercase; opacity: .55; margin-top: 3px; display: block; }

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 8px 14px;
  font-family: var(--font-sub); color: rgba(255,255,255,.8);
  font-size: 13.5px; font-weight: 500; letter-spacing: .2px;
  border-radius: 5px; transition: var(--transition);
}
.nav-link:hover,.nav-link.active { color: var(--white); }
.nav-link.active::after { content:''; display: block; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; margin: 2px auto 0; }

.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: -10px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition); list-style: none; padding: 10px 0;
  border-top: 2px solid var(--gold);
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 10px 20px; font-family: var(--font-sub); font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.nav-dropdown a:hover { background: var(--ivory); color: var(--navy); padding-left: 26px; }

.nav-cta { margin-left: 16px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ── */
@media (max-width: 991px) {
  .nav-hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--navy-dark); flex-direction: column; align-items: flex-start;
    padding: 20px clamp(16px,5vw,28px); gap: 0; overflow-y: auto;
    transform: translateX(100%); transition: transform var(--transition);
    z-index: 999;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-item { width: 100%; }
  .nav-link { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav-link.active::after { display: none; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,.04);
    border-radius: 0; border-top: none; padding: 4px 0; min-width: 0;
  }
  .nav-dropdown a { color: rgba(255,255,255,.55); padding: 10px 16px; font-size: 14px; }
  .nav-dropdown a:hover { color: var(--gold-lt); background: transparent; padding-left: 22px; }
  .nav-cta { margin: 20px 0 0; width: 100%; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
}

/* =====================================================
   HERO
   ===================================================== */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--navy-dark); }
.hero-slider { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,26,58,.3) 0%, rgba(15,26,58,.55) 100%); }
.hero-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); border: none; cursor: pointer; transition: var(--transition); padding: 0; }
.hero-dot.active { background: var(--gold-lt); width: 24px; border-radius: 4px; }
.hero-scroll { position: absolute; bottom: 28px; right: 36px; font-family: var(--font-sub); font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.45); writing-mode: vertical-rl; z-index: 10; }

@media (max-width: 767px) {
  .hero { min-height: 480px; height: 85vh; }
  .hero-scroll { display: none; }
  .hero-dots { bottom: 20px; }
}

/* =====================================================
   WELCOME SECTION
   ===================================================== */
.welcome-section {
  padding: clamp(60px,8vw,100px) 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.welcome-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(36px,6vw,80px);
  align-items: center;
}
.welcome-logo-col { text-align: center; }
.welcome-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 200px; height: 200px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--ivory);
  border: 3px solid var(--gold-pale);
  box-shadow: 0 0 0 8px var(--gold-pale), var(--shadow);
  padding: 24px; transition: var(--transition);
}
.welcome-logo-wrap:hover { box-shadow: 0 0 0 12px var(--gold-pale), var(--shadow-lg); }
.welcome-logo { width: 140px; height: 140px; object-fit: contain; margin: 0 auto; }
.welcome-logo-caption { font-family: var(--font-sub); }
.welcome-logo-caption strong { display: block; color: var(--navy); font-size: 18px; font-weight: 700; }
.welcome-logo-caption span   { color: var(--gold); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }

.welcome-title {
  font-size: clamp(30px, 4vw, 48px);
  color: var(--navy);
  line-height: 1.15;
  margin: 12px 0 20px;
}
.welcome-divider {
  width: 56px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 2px; margin-bottom: 28px;
}
.welcome-body p {
  font-family: var(--font-body); font-size: 16px; color: var(--text-muted);
  line-height: 1.9; margin-bottom: 16px;
}
.welcome-body p strong { color: var(--navy); font-weight: 600; }
.welcome-body p em { color: var(--gold); font-style: italic; }

@media (max-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr; text-align: center; }
  .welcome-logo-wrap { margin: 0 auto 20px; }
  .welcome-divider { margin: 0 auto 28px; }
  .welcome-body { text-align: left; }
}
@media (max-width: 480px) {
  .welcome-logo-wrap { width: 160px; height: 160px; }
  .welcome-logo { width: 110px; height: 110px; }
}

/* =====================================================
   NAHAR SIR SECTION
   ===================================================== */
.nahar-section {
  padding: clamp(64px,8vw,110px) 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  overflow: hidden;
  position: relative;
}
.nahar-section::before {
  content: '"';
  position: absolute; top: -20px; right: 5%;
  font-family: var(--font-heading); font-size: clamp(200px, 25vw, 380px);
  color: rgba(255,255,255,.03); line-height: 1; pointer-events: none; user-select: none;
}
.nahar-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: clamp(40px,6vw,80px);
  align-items: center;
}

/* Photo — zoom effect on scroll */
.nahar-photo-wrap {
  position: relative;
  opacity: 0; transform: scale(.88);
  transition: opacity .9s ease, transform .9s cubic-bezier(.16,1,.3,1);
}
.nahar-photo-wrap.zoom-in { opacity: 1; transform: scale(1); }
.nahar-photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  display: block;
}
.nahar-photo-wrap::after {
  content: ''; position: absolute; inset: -3px; border-radius: calc(var(--radius-lg) + 3px);
  border: 2px solid var(--gold); opacity: .35; pointer-events: none;
}

/* Text — slide-up effect on scroll */
.nahar-text-col {
  opacity: 0; transform: translateY(40px);
  transition: opacity .9s ease .2s, transform .9s cubic-bezier(.16,1,.3,1) .2s;
}
.nahar-text-col.slide-in { opacity: 1; transform: translateY(0); }

.nahar-title {
  font-size: clamp(30px, 4vw, 52px); color: var(--white);
  margin: 12px 0 20px; line-height: 1.1;
}
.nahar-divider { width: 48px; height: 2px; background: var(--gold); border-radius: 2px; margin-bottom: 28px; }
.nahar-quote {
  position: relative; padding: 24px 28px 24px 36px;
  background: rgba(255,255,255,.06); border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  font-family: var(--font-heading); font-size: clamp(18px,2.5vw,24px);
  color: rgba(255,255,255,.9); font-style: italic; line-height: 1.65;
  margin-bottom: 24px;
}
.nahar-quote-mark {
  position: absolute; top: -12px; left: 20px;
  font-family: var(--font-heading); font-size: 72px;
  color: var(--gold); line-height: 1; opacity: .6;
}
.nahar-desc {
  font-family: var(--font-sub); font-size: 15px; color: rgba(255,255,255,.6);
  line-height: 1.75; margin-bottom: 32px;
}

@media (max-width: 900px) {
  .nahar-grid { grid-template-columns: 1fr; }
  .nahar-photo { aspect-ratio: 4/3; max-height: 400px; }
  .nahar-photo-wrap { max-width: 480px; margin: 0 auto; }
  .nahar-text-col { text-align: center; }
  .nahar-divider { margin: 0 auto 28px; }
  .nahar-quote { text-align: left; }
}
@media (max-width: 480px) {
  .nahar-photo { max-height: 300px; }
}

/* =====================================================
   INITIATIVES
   ===================================================== */
.initiatives { padding: clamp(64px,8vw,110px) 0; background: var(--ivory); }
.init-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
.init-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); border: 1px solid var(--gray-200);
}
.init-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.init-img { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--navy); }
.init-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.init-card:hover .init-img img { transform: scale(1.04); }
.init-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--white);
  font-family: var(--font-sub); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px;
}
.init-body { padding: clamp(16px,3vw,24px); }
.init-title { font-size: clamp(17px,2.5vw,22px); color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.init-desc  { font-family: var(--font-sub); font-size: 13.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.init-metrics { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.init-metric { text-align: center; }
.init-metric strong { display: block; font-family: var(--font-heading); font-size: 22px; color: var(--gold); }
.init-metric span   { font-family: var(--font-sub); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

@media (max-width: 900px) { .init-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .init-grid { grid-template-columns: 1fr; } }

/* =====================================================
   INSTITUTION CARDS (for other pages)
   ===================================================== */
.inst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: clamp(16px,2.5vw,24px);
  margin-top: 40px;
}
.inst-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.inst-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.inst-cover { aspect-ratio: 16/8; overflow: hidden; position: relative; background: var(--navy-mid); }
.inst-cover img { width: 100%; height: 100%; object-fit: cover; }
.inst-type-badge {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--navy); color: var(--white);
  font-family: var(--font-sub); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 4px;
}
.inst-body { padding: 20px; }
.inst-logo-row { margin-bottom: 12px; }
.inst-logo-sm   { height: 40px; width: auto; object-fit: contain; }
.inst-name { font-family: var(--font-heading); font-size: 20px; color: var(--navy); margin-bottom: 8px; line-height: 1.25; }
.inst-desc { font-family: var(--font-sub); font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.inst-meta { font-family: var(--font-sub); font-size: 12px; color: var(--gray-400); margin-bottom: 16px; }
.inst-link { font-family: var(--font-sub); font-size: 13px; font-weight: 600; color: var(--gold); transition: var(--transition); }
.inst-link:hover { color: var(--navy); gap: 8px; }

/* =====================================================
   IMPACT MATRIX
   ===================================================== */
.impact-matrix {
  padding: clamp(56px,7vw,88px) 0;
  background: var(--navy-dark);
  position: relative; overflow: hidden;
}
.impact-matrix::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(184,135,42,.08) 0%, transparent 70%);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0; position: relative;
}
.impact-item {
  text-align: center; padding: clamp(20px,4vw,44px) clamp(12px,3vw,28px);
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.impact-item:last-child { border-right: none; }
.impact-number {
  display: block; font-family: var(--font-heading);
  font-size: clamp(36px,6vw,68px); font-weight: 700;
  color: var(--gold-lt); line-height: 1; margin-bottom: 10px;
}
.impact-label {
  display: block; font-family: var(--font-sub);
  font-size: clamp(12px,1.5vw,15px); font-weight: 600;
  color: var(--white); margin-bottom: 6px;
}
.impact-desc {
  font-family: var(--font-sub); font-size: clamp(11px,1.2vw,13px);
  color: rgba(255,255,255,.4); line-height: 1.5;
}

@media (max-width: 768px) {
  .impact-grid { grid-template-columns: repeat(2,1fr); }
  .impact-item { border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
  .impact-item:nth-child(2n) { border-right: none; }
  .impact-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 400px) {
  .impact-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   EVENTS (homepage)
   ===================================================== */
.events-home { padding: clamp(64px,8vw,100px) 0; background: var(--white); }
.events-list  { display: flex; flex-direction: column; gap: clamp(12px,2vw,20px); }
.event-card-home {
  display: grid; grid-template-columns: 160px 1fr auto;
  gap: clamp(16px,2.5vw,28px); align-items: center;
  background: var(--ivory); border-radius: var(--radius-lg);
  padding: clamp(16px,3vw,24px); border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.event-card-home:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.event-banner { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--navy-mid); flex-shrink: 0; }
.event-banner img { width: 100%; height: 100%; object-fit: cover; }
.event-date-tag { font-family: var(--font-sub); font-size: 12px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.event-title-home { font-family: var(--font-heading); font-size: clamp(18px,2.5vw,24px); color: var(--navy); margin-bottom: 8px; line-height: 1.25; }
.event-desc-home  { font-family: var(--font-sub); font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.event-cta-col { flex-shrink: 0; }

@media (max-width: 700px) {
  .event-card-home { grid-template-columns: 1fr; }
  .event-banner { max-height: 180px; }
  .event-cta-col { justify-self: start; }
}

/* =====================================================
   NEWS
   ===================================================== */
.news-section { padding: clamp(64px,8vw,100px) 0; background: var(--ivory); }
.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(14px,2.5vw,24px);
}
.news-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); border: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card.featured { grid-row: span 2; }

.news-img { position: relative; overflow: hidden; background: var(--navy); }
.news-img.featured { aspect-ratio: 16/10; }
.news-img.standard { aspect-ratio: 16/9; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-cat {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--gold); color: var(--white);
  font-family: var(--font-sub); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 4px;
}
.news-body  { padding: clamp(14px,2.5vw,22px); flex: 1; display: flex; flex-direction: column; }
.news-date  { font-family: var(--font-sub); font-size: 11px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.news-title { font-size: clamp(16px,2vw,22px); color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.news-excerpt { font-family: var(--font-sub); font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; flex: 1; }
.news-link { font-family: var(--font-sub); font-size: 13px; font-weight: 600; color: var(--gold); margin-top: auto; transition: var(--transition); }
.news-link:hover { color: var(--navy); }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-row: span 1; }
}
@media (max-width: 580px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials { padding: clamp(64px,8vw,100px) 0; background: var(--navy); }
.testimonials .section-label { color: var(--gold-lt); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-subtitle { color: rgba(255,255,255,.55); }
.testimonials .section-divider { background: var(--gold); }

.testi-slider { position: relative; overflow: hidden; }
.testi-track  { overflow: hidden; }
.testi-cards  {
  display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.testi-card {
  min-width: 100%; display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px,4vw,56px);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-lg); padding: clamp(24px,4vw,48px);
  border: 1px solid rgba(255,255,255,.08);
  align-items: center;
}
.testi-portrait {
  aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-mid); position: relative;
}
.testi-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.testi-quote-mark { font-family: var(--font-heading); font-size: 80px; color: var(--gold); line-height: .8; display: block; margin-bottom: 12px; opacity: .7; }
.testi-text { font-family: var(--font-body); font-size: clamp(16px,2vw,20px); color: rgba(255,255,255,.85); font-style: italic; line-height: 1.7; margin-bottom: 28px; }
.testi-person { display: flex; align-items: center; gap: 16px; }
.testi-person-line { width: 40px; height: 2px; background: var(--gold); flex-shrink: 0; }
.testi-name   { font-family: var(--font-sub); font-weight: 700; color: var(--white); font-size: 15px; }
.testi-designation { font-family: var(--font-sub); font-size: 13px; color: rgba(255,255,255,.45); margin-top: 2px; }
.testi-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.testi-btn { background: rgba(255,255,255,.1); border: none; color: var(--white); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 18px; transition: var(--transition); }
.testi-btn:hover { background: var(--gold); }
.testi-dots { display: flex; gap: 8px; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); border: none; cursor: pointer; transition: var(--transition); padding: 0; }
.testi-dot.active { background: var(--gold-lt); width: 22px; border-radius: 4px; }

@media (max-width: 700px) {
  .testi-card { grid-template-columns: 1fr; }
  .testi-portrait { aspect-ratio: 3/2; max-height: 220px; }
}

/* =====================================================
   CTA STRIP
   ===================================================== */
.cta-strip {
  padding: clamp(60px,7vw,88px) 0;
  background: linear-gradient(135deg, var(--gold) 0%, #9A6B20 100%);
  text-align: center;
}
.cta-strip h2   { font-size: clamp(26px,4vw,44px); color: var(--white); margin-bottom: 14px; }
.cta-strip p    { font-family: var(--font-sub); font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-strip-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-strip .btn-primary { background: var(--white); color: var(--gold); border-color: var(--white); }
.cta-strip .btn-primary:hover { background: var(--ivory); transform: translateY(-2px); }

/* =====================================================
   FILTER BAR (gallery, institutions, initiatives)
   ===================================================== */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: clamp(28px,4vw,44px);
  padding: 6px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  width: fit-content;
}
.filter-btn {
  padding: 9px 20px; border-radius: calc(var(--radius) - 4px);
  font-family: var(--font-sub); font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
  border: none; background: transparent;
}
.filter-btn:hover { color: var(--navy); background: var(--ivory); }
.filter-btn.active { background: var(--navy); color: var(--white); }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: clamp(32px,4vw,52px); flex-wrap: wrap; }
.page-link {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-family: var(--font-sub); font-size: 14px; font-weight: 600;
  color: var(--navy); background: var(--white); border: 1px solid var(--gray-200);
  transition: var(--transition); cursor: pointer;
}
.page-link:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.page-link.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* =====================================================
   FORMS
   ===================================================== */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-family: var(--font-sub); font-size: 13px; font-weight: 600; color: var(--navy); }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: var(--font-sub); font-size: 14px; color: var(--text);
  background: var(--white); transition: var(--transition); outline: none;
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,43,94,.1); }
.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5754' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea.form-control { resize: vertical; min-height: 100px; }
.req { color: #e74c3c; }
.alert { padding: 14px 18px; border-radius: var(--radius); font-family: var(--font-sub); font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #e8f5e9; border: 1px solid #81c784; color: #2e7d32; }
.alert-error   { background: #fff3e0; border: 1px solid #ffb74d; color: #e65100; }

/* =====================================================
   CARDS (generic)
   ===================================================== */
.card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--gray-200); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body  { padding: clamp(16px,3vw,24px); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--navy-dark);
  padding: clamp(56px,7vw,88px) 0 0;
  color: rgba(255,255,255,.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(28px,4vw,56px);
  margin-bottom: clamp(44px,5vw,72px);
}
.footer-brand-logo { height: 44px; width: auto; margin-bottom: 16px; }
.footer-brand-name { font-family: var(--font-heading); font-size: 24px; color: var(--white); margin-bottom: 4px; }
.footer-brand-tag  { font-family: var(--font-sub); font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-brand-desc { font-family: var(--font-sub); font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,.5); max-width: 280px; }

.footer-col-title { font-family: var(--font-sub); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--white); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-family: var(--font-sub); font-size: 13.5px; color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-links a:hover { color: var(--gold-lt); padding-left: 4px; }

.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.footer-contact-text { font-family: var(--font-sub); font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; }
.footer-contact-text a { color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-contact-text a:hover { color: var(--gold-lt); }

.footer-socials { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.footer-social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--transition); color: rgba(255,255,255,.6);
}
.footer-social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--white); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy  { font-family: var(--font-sub); font-size: 12.5px; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-family: var(--font-sub); font-size: 12.5px; color: rgba(255,255,255,.35); transition: var(--transition); }
.footer-legal a:hover { color: var(--gold-lt); }

#backToTop {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white); border: none;
  font-size: 18px; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
#backToTop.visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--gold); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =====================================================
   BACK-COMPAT ALIASES
   ===================================================== */
.gallery-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-filter .filter-btn { padding: 8px 18px; }

/* =====================================================
   MOBILE — GLOBAL OVERRIDES (< 480px)
   ===================================================== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 11px 22px; font-size: 13px; }
  .section-title { font-size: clamp(24px, 7vw, 32px); }
  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: clamp(24px, 7vw, 36px); }
  .filter-bar { width: 100%; }
  .event-card-home { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .testi-card { grid-template-columns: 1fr; padding: 20px; }
  .cta-strip-btns { flex-direction: column; align-items: center; }
  .cta-strip-btns .btn { width: 100%; max-width: 280px; }
}

/* =====================================================
   VOLUNTEER PAGE
   ===================================================== */
@media (max-width: 900px) {
  .volunteer-grid { grid-template-columns: 1fr !important; }
}


/* =====================================================
   RICH CONTENT (TinyMCE output styling)
   ===================================================== */
.rich-content {
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.85;
}

.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 28px 0 16px;
  line-height: 1.3;
}

.rich-content h1 { font-size: clamp(28px, 4vw, 38px); margin-top: 40px; }
.rich-content h2 { font-size: clamp(24px, 3.5vw, 32px); margin-top: 36px; }
.rich-content h3 { font-size: clamp(20px, 3vw, 26px); margin-top: 32px; }
.rich-content h4 { font-size: clamp(18px, 2.5vw, 22px); margin-top: 28px; }

.rich-content p {
  margin-bottom: 16px;
  line-height: 1.85;
}

.rich-content ul, .rich-content ol {
  margin: 16px 0 16px 28px;
  padding-left: 0;
}

.rich-content li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.rich-content ul li {
  list-style-type: disc;
}

.rich-content ol li {
  list-style-type: decimal;
}

.rich-content a {
  color: var(--gold);
  text-decoration: underline;
  transition: color .2s;
}

.rich-content a:hover {
  color: var(--navy);
}

.rich-content strong {
  font-weight: 600;
  color: var(--navy);
}

.rich-content em {
  font-style: italic;
  color: var(--text-muted);
}

.rich-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 22px;
  background: var(--ivory);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted);
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.rich-content table th,
.rich-content table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--gray-200);
}

.rich-content table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-family: var(--font-sub);
}

.rich-content table tr:nth-child(even) {
  background: var(--ivory);
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 20px 0;
}

.rich-content code {
  background: var(--ivory);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  color: var(--navy);
}

.rich-content pre {
  background: var(--navy-dark);
  color: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 20px 0;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.rich-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 32px 0;
}

/* Rich content quote (for principal message) */
.rich-content-quote {
  border-left: 4px solid var(--gold);
  padding: 16px 22px;
  background: var(--ivory);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  font-style: italic;
  margin: 20px 0;
}

.rich-content-quote h1,
.rich-content-quote h2,
.rich-content-quote h3,
.rich-content-quote h4 {
  font-size: 18px;
  margin: 12px 0 8px;
  font-style: normal;
}

.rich-content-quote p {
  margin-bottom: 12px;
}

.rich-content-quote strong {
  color: var(--navy);
  font-weight: 600;
}

/* Remove default TinyMCE inline styles that conflict */
.rich-content [style*="text-align: center"] {
  text-align: center !important;
}

.rich-content [style*="text-align: right"] {
  text-align: right !important;
}

.rich-content [style*="text-align: left"] {
  text-align: left !important;
}

/* Mobile adjustments */
@media (max-width: 580px) {
  .rich-content {
    font-size: 15px;
  }
  
  .rich-content h1 { font-size: 24px; }
  .rich-content h2 { font-size: 22px; }
  .rich-content h3 { font-size: 20px; }
  .rich-content h4 { font-size: 18px; }
  
  .rich-content table {
    font-size: 13px;
  }
  
  .rich-content table th,
  .rich-content table td {
    padding: 8px 10px;
  }
}
