/* ==========================================================================
   RNSP — Modern redesign stylesheet
   Roshan Nepal Smriti Pratisthan
   ========================================================================== */

:root {
  --c-primary: #243652;
  --c-primary-800: #1a2740;
  --c-primary-700: #203149;
  --c-primary-100: #e4e9f0;
  --c-primary-50: #f3f5f8;
  --c-accent: #4a6d8c;
  --c-accent-600: #3a5873;
  --c-accent-100: #e8eef4;
  --c-ink: #1e2a38;
  --c-muted: #5c6b7a;
  --c-bg: #eef1f5;
  --c-surface: #fbfcfd;
  --c-line: #d5dce6;
  --c-line-soft: #e6ebf1;

  --c-gold: #b8956a;
  --c-gold-soft: #d4b896;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(26, 39, 64, 0.06);
  --shadow-md: 0 12px 28px rgba(26, 39, 64, 0.08);
  --shadow-lg: 0 22px 48px rgba(26, 39, 64, 0.12);

  --font-body: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --c-hero-bg: #1b2a4a;
  --c-hero-gold: #c9a24d;
  --c-hero-btn: #d8b089;

  --container: 1200px;
  --header-h: 92px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--c-ink);
  line-height: 1.22;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--c-accent-600); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(74,109,140,.28); }
.btn-gold {
  background: var(--c-hero-btn);
  color: #1a1a1a;
}
.btn-gold:hover { background: #e0c0a0; color: #111; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(184,149,106,.28); }
.btn-solid {
  background: var(--c-primary);
  color: #fff;
}
.btn-solid:hover { background: var(--c-primary-800); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26,39,64,.25); }
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline-light:hover { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.site-topbar {
  background: var(--c-primary-800);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  flex-wrap: wrap;
}
.topbar-contacts { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item a { color: inherit; }
.topbar-item a:hover { color: #fff; }
.topbar-item svg { flex: 0 0 auto; opacity: .7; color: var(--c-gold-soft); }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all .2s ease;
}
.topbar-social a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ==========================================================================
   Header — logo + menu + donate in one row
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line-soft);
  box-shadow: var(--shadow-sm);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.brand-row {
  position: relative;
  background: transparent;
}
.brand-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand-emblem {
  width: 108px;
  height: 90px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.brand-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.brand-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.nav-list { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: center; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--c-ink);
  border-radius: 8px;
}
.nav-list > li > a:hover { color: var(--c-primary-800); background: var(--c-primary-50); }
.nav-list > li > a .caret {
  font-size: 10px;
  opacity: .55;
  transition: transform .2s ease;
}
.nav-list > li:hover > a .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .22s ease;
  z-index: 50;
}
.nav-list > li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: 7px;
}
.dropdown li a:hover { background: var(--c-primary-50); color: var(--c-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--c-primary-50);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--c-primary-800); border-radius: 2px; transition: all .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Memorial hero — fixed navy panel
   ========================================================================== */
.hero-memorial {
  position: relative;
  padding: 20px 0 8px;
  background: transparent;
}
.hero-panel {
  --hero-bg: var(--c-hero-bg);
  background: var(--hero-bg);
  border-radius: 22px;
  padding: 28px 36px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 40px rgba(16, 28, 52, .18);
}
.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 92% 18%, rgba(255,255,255,.08), transparent 70%),
    radial-gradient(340px 200px at 8% 90%, rgba(201,162,77,.12), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 28px;
  min-height: 0;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  max-width: 520px;
}
.hero-kicker {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-hero-gold);
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-head);
  color: #fff;
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 10px;
}
.hero-text {
  font-family: var(--font-ui);
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.55;
  max-width: 420px;
  margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--c-hero-btn);
  color: #1a1a1a;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  box-shadow: none;
}
.btn-hero-primary:hover {
  background: #e0c0a0;
  color: #111;
  transform: translateY(-1px);
}
.btn-hero-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 240px;
}
.hero-photo-frame {
  background: #fff;
  padding: 8px 8px 26px;
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
  transform: rotate(1.5deg);
  transition: transform .4s ease;
}
.hero-photo-frame:hover { transform: rotate(0deg) translateY(-3px); }
.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 48px 0; }
.section-alt { background: var(--c-surface); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
}
.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 8px;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.25rem); margin-bottom: 0; }
.section-sub { color: var(--c-muted); margin-top: 10px; max-width: 620px; }

/* ==========================================================================
   Help cards
   ========================================================================== */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.help-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.help-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.help-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.help-card:hover::before { transform: scaleX(1); }
.help-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  background: var(--c-primary-50);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.help-card h3 { font-size: 20px; margin-bottom: 10px; }
.help-card p { color: var(--c-muted); font-size: 15px; margin-bottom: 18px; }
.help-card a.more { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.help-card a.more:hover { gap: 10px; }

/* ==========================================================================
   Mission / message feature
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-quote {
  font-size: 19px;
  font-weight: 500;
  color: var(--c-ink);
  border-left: 4px solid var(--c-accent);
  padding-left: 20px;
  margin: 22px 0;
}
.feature-meta { color: var(--c-muted); font-size: 14.5px; }

/* ==========================================================================
   News / Donations
   ========================================================================== */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-item img {
  width: 132px; height: 92px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.news-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.news-item h3 a { color: var(--c-ink); }
.news-item h3 a:hover { color: var(--c-primary); }
.news-item p { color: var(--c-muted); font-size: 14px; margin-bottom: 0; }
.post-date {
  font-size: 12.5px;
  color: var(--c-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.event-list { display: flex; flex-direction: column; gap: 20px; }
.event-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.event-date {
  flex: 0 0 auto;
  width: 62px;
  text-align: center;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 6px;
}
.event-date strong { display: block; font-size: 22px; line-height: 1; }
.event-date span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; margin-top: 3px; }
.event-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.event-item h3 a { color: var(--c-ink); }
.event-item p { color: var(--c-muted); font-size: 14px; margin-bottom: 0; }

.view-all { margin-top: 26px; }

/* ==========================================================================
   Donors
   ========================================================================== */
.donor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.donor-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.donor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.donor-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.donor-card .donor-body { padding: 20px 16px 24px; }
.donor-card h3 { font-size: 17px; margin-bottom: 4px; }
.donor-card .donor-tag { font-size: 13px; color: var(--c-muted); }

/* ==========================================================================
   Works / gallery
   ========================================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card { display: flex; flex-direction: column; gap: 10px; }
.work-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  display: block;
}
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-item:hover img { transform: scale(1.07); }
.work-item .work-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(11,28,44,.85));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  opacity: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity .3s ease;
}
.work-count {
  font-size: 12px;
  font-weight: 500;
  opacity: .85;
}
.work-desc {
  font-size: 14.5px;
  color: var(--c-muted);
  line-height: 1.55;
  margin: 0;
}
.work-more {
  display: inline-block;
  margin-left: 6px;
  font-weight: 600;
  font-size: 14px;
}
.work-detail-lead {
  font-size: 17px;
  color: var(--c-ink);
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 720px;
}
.work-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.work-detail-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-primary-50);
  box-shadow: var(--shadow-sm);
}
.work-detail-photo:first-child {
  grid-column: 1 / -1;
}
.work-detail-photo img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.work-detail-back { margin-top: 8px; }
@media (max-width: 640px) {
  .work-detail-gallery { grid-template-columns: 1fr; }
  .work-detail-photo:first-child { grid-column: auto; }
}
.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 16, 28, .88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.work-lightbox.open { display: flex; }
.work-lightbox img {
  max-width: min(960px, 92vw);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.work-lightbox-meta {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  text-align: center;
  color: #fff;
  font-family: var(--font-ui);
}
.work-lightbox-close,
.work-lightbox-prev,
.work-lightbox-next {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}
.work-lightbox-close { top: 20px; right: 20px; }
.work-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.work-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   About list
   ========================================================================== */
.about-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--c-ink);
  padding-left: 2px;
}
.about-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
  margin-top: 8px;
}
.about-list li strong { font-weight: 700; }

/* ==========================================================================
   Quote band
   ========================================================================== */
.quote-band {
  position: relative;
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(11, 161, 179, .28), transparent 60%),
    var(--c-primary-800);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 54px 48px;
  text-align: center;
  overflow: hidden;
}
.quote-mark { color: var(--c-accent); margin-bottom: 18px; }
.quote-band blockquote {
  margin: 0 auto;
  max-width: 720px;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #fff;
}
.quote-band cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ==========================================================================
   Empty state
   ========================================================================== */
.empty-state {
  background: var(--c-surface);
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
}
.empty-icon {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--c-accent-100);
  color: var(--c-accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state p { color: var(--c-muted); font-size: 14.5px; margin-bottom: 18px; }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.team-card h3 { font-size: 17px; margin: 18px 0 20px; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(201,162,77,.16), transparent 60%),
    var(--c-primary-800);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.82); margin-bottom: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Page hero + content
   ========================================================================== */
.page { overflow: hidden; }
.page-hero {
  background:
    radial-gradient(800px 320px at 90% -20%, rgba(201,162,77,.14), transparent 60%),
    var(--c-primary-800);
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero .page-title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-hero-lead {
  margin: 10px 0 0;
  max-width: 38rem;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.55;
}
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 14px; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

.page-content {
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 44px;
  margin: -34px 0 0;
  position: relative;
  font-size: 16.5px;
}
.page-content-loose {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 0 48px;
  margin: -20px 0 0;
}

/* ==========================================================================
   Blog listing
   ========================================================================== */
.page-blog { background: var(--c-bg); }

.blog-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 380px at 12% 0%, rgba(216,176,137,.18), transparent 58%),
    radial-gradient(700px 320px at 92% 20%, rgba(74,109,140,.35), transparent 55%),
    linear-gradient(160deg, #152238 0%, #1f314c 48%, #243652 100%);
}
.blog-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero .breadcrumb { margin-bottom: 22px; }
.blog-hero-copy { max-width: 640px; }
.blog-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
}
.blog-hero .page-title {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.blog-hero .page-hero-lead {
  margin: 0;
  max-width: 34rem;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  line-height: 1.6;
}
.blog-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13.5px;
  color: rgba(255,255,255,.68);
}
.blog-hero-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-gold-soft);
  opacity: .8;
}

.blog-body {
  position: relative;
  padding: 0 0 80px;
  margin-top: -42px;
}

.blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: calc(var(--radius-lg) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
}
.blog-featured-media {
  position: relative;
  display: block;
  min-height: 320px;
  background: var(--c-primary-50);
  overflow: hidden;
}
.blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.blog-featured:hover .blog-featured-media img { transform: scale(1.04); }
.blog-featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(26, 39, 64, .82);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.blog-featured-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 36px 34px;
}
.blog-date-chip {
  flex: 0 0 auto;
  width: 58px;
  border-radius: 14px;
  background: var(--c-primary-50);
  border: 1px solid var(--c-line-soft);
  text-align: center;
  padding: 10px 6px 12px;
  line-height: 1.1;
}
.blog-date-chip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--c-primary);
}
.blog-date-chip span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.blog-featured-copy { min-width: 0; }
.blog-featured-copy .post-date { margin-bottom: 10px; }
.blog-featured-copy h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin: 0 0 14px;
  line-height: 1.28;
}
.blog-featured-copy h2 a { color: var(--c-ink); }
.blog-featured-copy h2 a:hover { color: var(--c-primary); }
.blog-featured-copy p {
  color: var(--c-muted);
  font-size: 15.5px;
  margin: 0 0 22px;
  line-height: 1.65;
}

.blog-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}
.blog-section-head .section-title { margin-bottom: 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cfd8e4;
}
.blog-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(145deg, var(--c-primary-100), var(--c-primary-50));
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.05); }
.blog-card-date {
  position: absolute;
  left: 14px;
  bottom: 14px;
  min-width: 52px;
  padding: 8px 8px 9px;
  border-radius: 12px;
  background: rgba(251, 252, 253, .94);
  border: 1px solid rgba(255,255,255,.7);
  text-align: center;
  line-height: 1.05;
  box-shadow: var(--shadow-sm);
}
.blog-card-date strong {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--c-primary);
}
.blog-card-date em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}
.blog-card-body h2 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  line-height: 1.35;
}
.blog-card-body h2 a { color: var(--c-ink); }
.blog-card-body h2 a:hover { color: var(--c-primary); }
.blog-card-body p {
  color: var(--c-muted);
  font-size: 14.5px;
  margin: 0 0 18px;
  line-height: 1.55;
  flex: 1;
}
.blog-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--c-accent-600);
}
.blog-read svg { transition: transform .2s ease; }
.blog-read:hover { color: var(--c-primary); }
.blog-read:hover svg { transform: translateX(3px); }

.blog-empty {
  margin-top: 0;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.page-content > :first-child { margin-top: 0; }
.page-content h2 { font-size: 24px; margin-top: 1.4em; }
.page-content h3 { font-size: 20px; margin-top: 1.3em; }
.page-content ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.page-content ol { list-style: decimal; padding-left: 22px; margin: 0 0 1em; }
.page-content li { margin-bottom: 6px; }
.page-content img { border-radius: var(--radius); margin: 20px 0; }
.page-content a { font-weight: 500; }

/* ==========================================================================
   Tables
   ========================================================================== */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.modern-table th, .modern-table td {
  border: 1px solid var(--c-line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.modern-table thead th {
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
}
.modern-table tbody tr:nth-child(even) { background: var(--c-primary-50); }
.modern-table tbody tr:hover { background: var(--c-accent-100); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.contact-card .help-icon { margin: 0 auto 18px; }
.contact-card h3 { font-size: 17px; margin-bottom: 6px; }
.contact-card p { color: var(--c-muted); font-size: 15px; margin-bottom: 0; }
.contact-card a { font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--c-primary-800); color: rgba(255,255,255,.78); margin-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0 48px;
}
.footer-brand .brand-emblem { margin-bottom: 18px; }
.brand-emblem-lg {
  width: 96px;
  height: 82px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.brand-emblem-lg img { width: 100%; height: 100%; }
.footer-brand p { font-size: 14.5px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.footer-social a:hover { background: var(--c-accent); color: #fff; transform: translateY(-3px); }
.footer-col h3 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  border-radius: 2px;
  background: var(--c-accent);
}
.footer-list li { display: flex; gap: 10px; margin-bottom: 13px; font-size: 14.5px; }
.footer-list li svg { flex: 0 0 auto; color: var(--c-accent); margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
}
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.8); }
.footer-bottom a:hover { color: var(--c-accent); }

/* ==========================================================================
   Misc
   ========================================================================== */
.pdf-list { list-style: none !important; padding-left: 0 !important; }
.pdf-list li { padding: 8px 12px; background: var(--c-primary-50); border-radius: var(--radius-sm); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.pdf-list li a { font-weight: 600; }

.page-404 { text-align: center; padding: 90px 0; }
.page-404 .code { font-size: 8rem; font-weight: 800; color: var(--c-primary-100); line-height: 1; }
.page-404 h1 { margin: 6px 0 12px; }
.page-404 p { color: var(--c-muted); max-width: 420px; margin: 0 auto 26px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .donor-grid { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .nav-list > li > a { padding: 9px 10px; font-size: 13.5px; }
  .brand-emblem { width: 96px; height: 80px; }
}

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .brand-row-inner { flex-wrap: wrap; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-surface);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--c-line-soft);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all .28s ease;
    justify-content: stretch;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 14px; gap: 2px; }
  .nav-list > li > a { justify-content: space-between; padding: 13px 12px; color: var(--c-ink); }
  .nav-list > li > a:hover { background: var(--c-primary-50); color: var(--c-primary); }
  .dropdown {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--c-bg);
    padding: 4px 6px;
    margin: 2px 0 8px;
    display: none;
  }
  .nav-list > li.open > .dropdown { display: block; }
  .nav-list > li > a .caret { transform: none; }
  .nav-list > li.open > a .caret { transform: rotate(180deg); }

  .help-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-media { min-height: 240px; aspect-ratio: 16 / 10; }
  .blog-featured-body { padding: 28px 24px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-panel { padding: 24px 22px; }
  .hero-grid { gap: 22px; }
  .hero-visual { max-width: 200px; }
}

@media (max-width: 640px) {
  .topbar-contacts { gap: 12px; }
  .topbar-inner { justify-content: center; text-align: center; }
  .brand-row-inner { padding: 12px 16px; }
  .brand-emblem { width: 78px; height: 66px; }
  .brand-actions { gap: 10px; }
.section { padding: 44px 0; }
  .news-item { grid-template-columns: 1fr; }
  .news-item img { width: 100%; height: 180px; }
  .blog-hero { padding: 56px 0 72px; }
  .blog-body { margin-top: -28px; padding-bottom: 56px; }
  .blog-featured-body { flex-direction: column; gap: 14px; }
  .blog-grid { grid-template-columns: 1fr; }
  .donor-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 48px 0 36px; }
  .cta { padding: 40px 28px; }
  .page-content { padding: 28px 22px; }

  .hero-memorial { padding: 14px 0 6px; }
  .hero-panel { padding: 22px 18px; border-radius: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-content { max-width: none; }
  .hero-title { font-size: clamp(1.55rem, 7vw, 2rem); }
  .hero-text { font-size: 14.5px; margin-bottom: 16px; }
  .hero-visual { max-width: 180px; justify-self: center; }
  .hero-photo-frame { transform: none; padding: 8px 8px 22px; }
}

/* Reveal animation — only hide when JS opts in (avoids blank page if JS fails) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.visible { opacity: 1; transform: none; }
