/* ============================================================
   TrueNorth Relief — Field Operations Chronicle
   Fun, warm, friendly humanitarian style
   ============================================================ */

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

:root {
  /* Warm off-white background */
  --bg:           #fdf8f4;
  --bg-card:      #ffffff;
  --bg-soft:      #f5f0eb;

  /* Borders */
  --border:       #ede8e3;
  --border-mid:   #d9d0c7;

  /* Text */
  --text:         #1a1208;
  --text-body:    #3d3228;
  --text-muted:   #7a6e65;
  --text-dim:     #b0a49a;

  /* Coral — primary action */
  --coral:        #f25c38;
  --coral-dark:   #d44422;
  --coral-light:  #fff3ef;
  --coral-border: #fdbfb0;

  /* Teal — ongoing / success */
  --teal:         #0ca678;
  --teal-dark:    #0a8a63;
  --teal-light:   #edfaf4;
  --teal-border:  #9ee6c9;

  /* Blue — links / active / trust */
  --blue:         #3b82f6;
  --blue-dark:    #2563eb;
  --blue-light:   #eff6ff;
  --blue-border:  #bfdbfe;

  /* Yellow — accent / highlight */
  --yellow:       #f59e0b;
  --yellow-light: #fffbeb;
  --yellow-border:#fde68a;

  /* Purple — special */
  --purple:       #8b5cf6;
  --purple-light: #f5f3ff;

  /* Emergency red */
  --red:          #e53e2d;
  --red-light:    #fff1ef;
  --red-border:   #fdcfca;

  /* Radii — generous curves throughout */
  --r-xs:   6px;
  --r-sm:   10px;
  --r:      16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 99px;

  /* Shadows — soft and warm */
  --sh-xs:  0 1px 3px rgba(60,20,0,0.06);
  --sh-sm:  0 2px 10px rgba(60,20,0,0.07), 0 1px 3px rgba(60,20,0,0.04);
  --sh:     0 6px 24px rgba(60,20,0,0.09), 0 2px 6px rgba(60,20,0,0.05);
  --sh-lg:  0 16px 48px rgba(60,20,0,0.12), 0 4px 12px rgba(60,20,0,0.06);
  --sh-color-coral: 0 6px 20px rgba(242,92,56,0.30);
  --sh-color-teal:  0 6px 20px rgba(12,166,120,0.28);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --t: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
img    { display: block; }
.hidden { display: none !important; }

/* ════════════════════════════════════════════════════════════
   SITE HEADER
   ════════════════════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  box-shadow: var(--sh-xs);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 70px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.brand-mark {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.2;
  text-align: left;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
  text-align: left;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--t), color var(--t);
}

.nav-link:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.nav-link.active {
  background: var(--coral-light);
  color: var(--coral);
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn-primary {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1px;
  transition: background var(--t), box-shadow var(--t), transform var(--t);
  box-shadow: var(--sh-color-coral);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--coral-dark);
  box-shadow: 0 8px 28px rgba(242,92,56,0.38);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.40);
  border-radius: var(--r-pill);
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--t), border-color var(--t);
  white-space: nowrap;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.65);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-body);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-pill);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}

.btn-outline:hover {
  background: var(--bg-soft);
  border-color: var(--coral);
  color: var(--coral);
  box-shadow: var(--sh-xs);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--t), opacity var(--t);
}

.btn-link:hover { gap: 8px; }

/* ════════════════════════════════════════════════════════════
   VIEW
   ════════════════════════════════════════════════════════════ */
.view { min-height: calc(100vh - 70px - 80px); }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #c13a18 0%, var(--coral) 45%, #f5824a 80%, #f8a86e 100%);
  padding: 60px 28px 56px;
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-blob-1 {
  right: -100px;
  top: -100px;
  width: 480px;
  height: 480px;
  background: rgba(255,255,255,0.08);
}
.hero-blob-2 {
  left: 40%;
  bottom: -140px;
  width: 380px;
  height: 380px;
  background: rgba(255,255,255,0.05);
}

/* Golden thread watermark text */
.hero::before {
  content: 'TrueNorth Relief';
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 7vw;
  font-weight: 800;
  letter-spacing: -4px;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 215, 64, 0.32);
  text-stroke: 2px rgba(255, 215, 64, 0.32);
  pointer-events: none;
  line-height: 1;
  width: max-content;
}

/* Subtle golden ring accent top-right */
.hero::after {
  content: '';
  position: absolute;
  right: 4%;
  top: 8%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 64, 0.28);
  box-shadow:
    0 0 0 14px rgba(255, 215, 64, 0.09),
    0 0 0 28px rgba(255, 215, 64, 0.05);
  pointer-events: none;
}

.hero-inner {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.80);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.25);
}

.hero-title {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

.hero-title em {
  font-style: normal;
  color: #ffe5b8;
}

.hero-lead {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   STATS STRIP
   ════════════════════════════════════════════════════════════ */
.stats-strip {
  background: var(--bg-card);
  border-bottom: 1.5px solid var(--border);
  box-shadow: var(--sh-xs);
}

.stats-strip-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: stretch;
}

.stat-block {
  flex: 1;
  padding: 30px 24px;
  border-right: 1.5px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-block:last-child { border-right: none; }

.stat-number {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.5px;
}

.stat-block:nth-child(1) .stat-number { color: var(--coral); }
.stat-block:nth-child(2) .stat-number { color: var(--teal); }
.stat-block:nth-child(3) .stat-number { color: var(--blue); }
.stat-block:nth-child(4) .stat-number { color: var(--yellow); }

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ════════════════════════════════════════════════════════════
   HOME CONTENT
   ════════════════════════════════════════════════════════════ */
.home-content { padding-bottom: 80px; }

.content-section { padding: 72px 28px 0; }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2.5px;
  background: var(--coral);
  border-radius: 2px;
}

.section-heading {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.section-row .section-heading { margin-bottom: 0; }

/* ── Mission layout ──────────────────────────────────────── */
.mission-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.mission-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mission-text p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.80;
}

.mission-values {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.value-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--coral);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t);
}

.value-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh);
}

.value-icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #fff3ef 0%, #ffe4d6 100%);
  border-radius: 50%;
  border: 2px solid var(--coral-border);
  box-shadow: 0 3px 10px rgba(242,92,56,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 42px;
  height: 42px;
}

.value-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.value-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Self-funded section (centered personal statement) ────── */
.personal-section {
  background: linear-gradient(135deg, #fff9f6 0%, #fff4ee 100%);
  border: 2px solid var(--coral-border);
  border-radius: var(--r-xl);
  padding: 56px 40px;
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.personal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.personal-icon svg {
  width: 64px;
  height: 64px;
}

.personal-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.personal-tagline {
  font-size: 16px;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 22px;
}

.personal-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.82;
  max-width: 580px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════
   OPERATION CARDS
   ════════════════════════════════════════════════════════════ */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.op-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
}

.op-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-5px);
  border-color: var(--border-mid);
}

/* Colored top accent bar */
.op-card-stripe {
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.op-card.emergency  .op-card-stripe { background: linear-gradient(90deg, var(--red) 0%, #ff7a6e 100%); }
.op-card.ongoing    .op-card-stripe { background: linear-gradient(90deg, var(--teal) 0%, #4ed9a8 100%); }
.op-card.active     .op-card-stripe { background: linear-gradient(90deg, var(--blue) 0%, #7ab8fc 100%); }
.op-card.education  .op-card-stripe { background: linear-gradient(90deg, var(--purple) 0%, #c4b5fd 100%); }

.op-card-body {
  padding: 24px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.op-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}

.type-badge.emergency {
  background: var(--red-light);
  color: var(--red);
  border: 1.5px solid var(--red-border);
}

.type-badge.ongoing {
  background: var(--teal-light);
  color: var(--teal);
  border: 1.5px solid var(--teal-border);
}

.type-badge.active {
  background: var(--blue-light);
  color: var(--blue);
  border: 1.5px solid var(--blue-border);
}

.type-badge.education {
  background: var(--purple-light);
  color: var(--purple);
  border: 1.5px solid #ddd6fe;
}

.op-date {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  font-weight: 500;
}

.op-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.op-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.op-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.op-metrics {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  border-top: 1.5px solid var(--border);
  margin-top: 4px;
  flex-wrap: wrap;
}

.op-metric-val {
  font-size: 21px;
  font-weight: 800;
  color: var(--coral);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.op-metric-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  margin-top: 1px;
}

.op-card-footer {
  padding: 12px 24px 14px;
  border-top: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.card-read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--t);
}

.op-card:hover .card-read-more { gap: 8px; }

.status-badge-completed {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  border: 1.5px solid var(--teal-border);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}

.status-badge-ongoing {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-light);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}

.status-badge-monthly {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1.5px solid #ddd6fe;
  border-radius: var(--r-pill);
  padding: 3px 9px;
}

/* ════════════════════════════════════════════════════════════
   PAGE BANNER (ops list + add record)
   ════════════════════════════════════════════════════════════ */
.page-banner {
  background: linear-gradient(135deg, #c13a18 0%, var(--coral) 60%, #f5824a 100%);
  padding: 52px 28px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  margin-bottom: 4px;
}

.page-banner-edu    { background: linear-gradient(135deg, #4c1d95 0%, var(--purple) 60%, #a78bfa 100%); }
.page-banner-collab { background: linear-gradient(135deg, #0f4f4b 0%, #0d9488 60%, #2dd4bf 100%); }

.page-banner-inner { max-width: 1120px; margin: 0 auto; }

/* ════════════════════════════════════════════════════════════
   COLLABORATIONS — COMING SOON
   ════════════════════════════════════════════════════════════ */
.collab-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.collab-cs-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.collab-cs-icon svg {
  width: 100%;
  height: 100%;
}

.collab-cs-badge {
  display: inline-block;
  background: rgba(13,148,136,0.12);
  color: #0d9488;
  border: 1.5px solid rgba(13,148,136,0.3);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.collab-cs-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.collab-cs-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.1;
}

.page-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
}

.page-desc code {
  background: rgba(255,255,255,0.18);
  border-radius: var(--r-xs);
  padding: 2px 7px;
  font-size: 13px;
  color: #fff;
}

/* ════════════════════════════════════════════════════════════
   LIST BODY
   ════════════════════════════════════════════════════════════ */
.filter-tabs {
  display: flex;
  gap: 8px;
  padding: 20px 28px 0;
  max-width: calc(1120px + 56px);
  margin: 0 auto;
}

.filter-tab {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-tab:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.filter-tab.active {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.list-body  { padding: 44px 28px 80px; }
.list-inner { max-width: 1120px; margin: 0 auto; }

/* ════════════════════════════════════════════════════════════
   DETAIL NAV
   ════════════════════════════════════════════════════════════ */
.detail-nav {
  background: var(--bg-card);
  border-bottom: 1.5px solid var(--border);
  padding: 0 28px;
}

.detail-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 54px;
  display: flex;
  align-items: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--t);
}

.back-btn:hover { color: var(--coral); }

/* ════════════════════════════════════════════════════════════
   EVENT DETAIL
   ════════════════════════════════════════════════════════════ */
.detail-header {
  background: linear-gradient(135deg, #c13a18 0%, var(--coral) 55%, #f5824a 100%);
  padding: 52px 28px 48px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.detail-header-inner { max-width: 1120px; margin: 0 auto; }

.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.detail-date {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* Badge overrides for dark header */
.detail-meta .type-badge {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.35);
}

.detail-meta .type-badge.emergency { color: #ffc4be; }
.detail-meta .type-badge.ongoing   { color: #9ef5d3; }
.detail-meta .type-badge.active    { color: #c0d9fe; }

.detail-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.8px;
  line-height: 1.08;
  margin-bottom: 10px;
}

.detail-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 16px;
  line-height: 1.4;
}

.detail-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.70);
  font-weight: 500;
}

/* Detail body layout */
.detail-body-wrap { padding: 48px 28px 80px; }

.detail-body-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.detail-main { display: flex; flex-direction: column; gap: 44px; }

.detail-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--coral);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section-label::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--border);
  border-radius: 2px;
}

.detail-summary {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.88;
}

/* Media grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.media-item {
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow var(--t), transform var(--t);
}

.media-item:hover {
  box-shadow: var(--sh);
  transform: translateY(-3px);
}

.media-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-soft);
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.media-thumb:hover { opacity: 0.88; }

.media-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--coral-light) 0%, #fff4ee 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
}

.media-thumb-placeholder .ph-icon { font-size: 32px; }
.media-thumb-placeholder .ph-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.media-caption {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  font-weight: 500;
}

/* Certificate item */
.cert-item {
  border: 1.5px dashed var(--coral-border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--coral-light);
  transition: box-shadow var(--t), transform var(--t);
}

.cert-item:hover {
  box-shadow: var(--sh);
  transform: translateY(-3px);
}

.cert-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: contain;
  padding: 8px;
  background: #fff;
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.cert-thumb:hover { opacity: 0.88; }

.cert-thumb-placeholder {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--coral-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cert-thumb-placeholder .ph-icon { font-size: 36px; }
.cert-thumb-placeholder .ph-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--coral);
}

.cert-thumb-placeholder.cert-achieved {
  background: var(--teal-light);
}
.cert-thumb-placeholder.cert-achieved .ph-icon {
  font-size: 40px;
  color: var(--teal);
  font-weight: 800;
}
.cert-thumb-placeholder.cert-achieved .ph-label {
  color: var(--teal-dark);
}

.cert-caption {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--coral-border);
  font-weight: 500;
}

/* Student testimonial card */
.testimonial-card {
  background: #fdf8f4;
  border: 1.5px solid var(--coral-border);
  border-radius: 12px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  position: relative;
}

.testimonial-label {
  width: 100%;
  text-align: center;
  align-self: center;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: #3d3228;
}

.testimonial-quote-mark {
  font-size: 80px;
  line-height: 0.6;
  color: #f25c38;
  opacity: 0.18;
  font-family: Georgia, serif;
  font-weight: 700;
  position: absolute;
  top: 20px;
  left: 20px;
  pointer-events: none;
  user-select: none;
}

.testimonial-body {
  font-size: 14px;
  color: #3d3228;
  line-height: 1.85;
  font-style: italic;
  margin: 0;
  padding: 0 0 0 8px;
}

.testimonial-body p {
  margin: 0;
}

.testimonial-body p + p {
  margin-top: 14px;
}

.testimonial-attribution {
  font-size: 12px;
  font-weight: 600;
  color: #7a6e65;
  border-top: 1px solid var(--coral-border);
  padding-top: 14px;
  line-height: 1.6;
}

/* Appreciation card — certificate format */
.appreciation-card {
  background: #fffdf9;
  border: 2px solid #c8a96e;
  border-radius: 4px;
  box-shadow: 0 0 0 6px #fffdf9, 0 0 0 8px #c8a96e, 0 4px 24px rgba(0,0,0,0.08);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  width: 100%;
  position: relative;
}

.appreciation-card--compact {
  padding: 20px 24px 18px;
  box-shadow: 0 0 0 4px #fffdf9, 0 0 0 6px #c8a96e, 0 2px 12px rgba(0,0,0,0.06);
}
.appreciation-card--compact .appr-seal { font-size: 24px; margin-bottom: 6px; }
.appreciation-card--compact .appr-title { font-size: 17px; }
.appreciation-card--compact .appr-body { font-size: 12px; margin-bottom: 12px; }
.appreciation-card--compact .appr-date { margin-bottom: 0; font-size: 11px; }
.appreciation-card--compact .appr-divider { margin-bottom: 12px; }

.appr-seal {
  font-size: 36px;
  margin-bottom: 10px;
  line-height: 1;
}

.appr-issuer {
  font-size: 11px;
  font-weight: 600;
  color: #7a6e65;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.appr-title {
  font-size: 26px;
  font-weight: 800;
  color: #c8a96e;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.appr-subtitle {
  font-size: 13px;
  font-style: italic;
  color: #c8a96e;
  margin-bottom: 20px;
}

.appr-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c8a96e, transparent);
  border-radius: 99px;
  margin-bottom: 18px;
}

.appr-body {
  font-size: 13.5px;
  color: #3d3228;
  line-height: 1.8;
  font-style: italic;
  max-width: 480px;
  margin: 0 0 20px;
}

.appr-date {
  font-size: 12px;
  color: #7a6e65;
  margin-bottom: 24px;
}

.appr-signatories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 40px;
  width: 100%;
  border-top: 1px solid #e8ddd0;
  padding-top: 20px;
  margin-top: 4px;
}

.appr-signatory {
  text-align: center;
}

.appr-sig-name {
  font-size: 12px;
  font-weight: 700;
  color: #1a1208;
  border-top: 1.5px solid #c8a96e;
  padding-top: 6px;
  min-width: 140px;
}

.appr-sig-role {
  font-size: 10.5px;
  color: #7a6e65;
  margin-top: 2px;
}

.edu-cert-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
}

.edu-cert-badge.received {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid var(--teal-border);
}

.edu-cert-badge.in-progress {
  background: var(--yellow-light);
  color: #92610a;
  border: 1px solid var(--yellow-border);
}

.cert-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
}

.cert-status.received {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1.5px solid var(--teal-border);
}

.cert-status.in-progress {
  background: var(--yellow-light);
  color: #92610a;
  border: 1.5px solid var(--yellow-border);
}

.cert-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cert-status.received .cert-status-dot  { background: var(--teal); }
.cert-status.in-progress .cert-status-dot { background: var(--yellow); }

/* ════════════════════════════════════════════════════════════
   DETAIL SIDEBAR
   ════════════════════════════════════════════════════════════ */
.detail-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.sidebar-card-header {
  padding: 16px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.sidebar-card-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.sidebar-card-body { padding: 20px; }

.metrics-list { display: flex; flex-direction: column; gap: 16px; }

.metric-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--coral-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.metric-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.5px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  margin-top: 2px;
}


/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
/* ── Say something ───────────────────────────────────────── */
.say-something {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.say-something-icon svg {
  width: 40px;
  height: 40px;
}

.say-something-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.say-something-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.say-something-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--coral);
  text-decoration: none;
  border-bottom: 2px solid var(--coral-border);
  padding-bottom: 2px;
  transition: border-color var(--t), color var(--t);
}

.say-something-link:hover {
  color: var(--coral-dark);
  border-color: var(--coral);
}

#site-footer {
  background: var(--text);
  padding: 36px 28px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.footer-text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .detail-body-inner {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    order: -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .mission-wrap { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 660px) {
  /* Header: stack brand + nav into two rows */
  .header-inner {
    height: auto;
    padding: 10px 16px 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .header-brand { width: 100%; }
  .brand-tagline { display: none; }
  .header-nav {
    width: 100%;
    gap: 2px;
    padding-bottom: 2px;
  }
  .nav-link { padding: 6px 10px; font-size: 12.5px; }

  /* Hero */
  .hero { padding: 36px 16px 32px; }
  .hero::before, .hero::after { display: none; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }

  /* Stats strip */
  .stats-strip-inner { flex-wrap: wrap; padding: 0; }
  .stat-block {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1.5px solid var(--border);
    padding: 22px 16px;
  }
  .stat-block:nth-child(odd) { border-right: 1.5px solid var(--border); }

  /* Content sections */
  .content-section { padding: 40px 16px 0; }
  .ops-grid { grid-template-columns: 1fr; }
  .section-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .personal-section { padding: 32px 20px; border-radius: var(--r-lg); }

  /* List pages */
  .page-banner { padding: 28px 16px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .filter-tabs { padding: 16px 16px 0; flex-wrap: wrap; }
  .list-body { padding: 20px 16px 56px; }

  /* Detail page */
  .detail-body-wrap { padding: 20px 16px 56px; }
  .detail-header { padding: 28px 16px 24px; }
  .detail-nav { padding: 0 16px; }
  .detail-title { font-size: clamp(22px, 6vw, 36px); }
  .detail-sidebar {
    grid-template-columns: 1fr 1fr;
  }
  .metrics-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .metric-item {
    flex: 1 1 calc(50% - 8px);
  }

  /* Media grid — single column on mobile */
  .media-grid {
    grid-template-columns: 1fr;
  }

  /* Certificate cards */
  .appreciation-card {
    padding: 24px 16px 20px;
    box-shadow: 0 0 0 4px #fffdf9, 0 0 0 6px #c8a96e, 0 4px 16px rgba(0,0,0,0.07);
  }
  .appr-title { font-size: 20px; }
  .appr-signatories { gap: 16px 20px; }
  .appr-sig-name { min-width: 110px; font-size: 11px; }
  .appr-sig-role { font-size: 10px; }

  /* Testimonial card */
  .testimonial-card { padding: 20px 16px 18px; }
  .testimonial-quote-mark { font-size: 60px; top: 14px; left: 14px; }
  .testimonial-body { font-size: 13.5px; }

  /* Cert item thumbnails */
  .cert-thumb { max-height: 220px; object-fit: contain; }
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 0, 0.88);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
  max-height: 92vh;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--r);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.lightbox-caption {
  color: rgba(255,255,255,0.80);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 600px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--t);
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }
