/* Free Nuclear Power – Decolonize Africa
   Inspired by Space420 design language: clean, modern, Bootstrap 5, Inter + Playfair
   Colour system: deep navy / electric blue / gold accents
*/

:root {
  --navy: #0a1628;
  --navy-mid: #12253d;
  --blue: #1e4d8c;
  --blue-bright: #2b6cb0;
  --gold: #d4a84b;
  --gold-light: #e8c87a;
  --cream: #f7f5f0;
  --text: #1a1a1a;
  --muted: #5a6577;
  --success: #0d9488;
  --card-bg: #ffffff;
  --border: #e5e0d8;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Playfair Display', Georgia, serif;
}

/* HUD top bar */
.hud-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  padding: 0.4rem 0;
  letter-spacing: 0.02em;
}
.hud-bar .status-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hud-bar .sep { margin: 0 0.6rem; opacity: 0.5; }

/* Navbar */
.navbar-da {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.brand-mark {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 0.5rem;
}
.navbar-brand {
  font-weight: 600;
  color: var(--navy) !important;
  font-size: 1.25rem;
}
.brand-gold { color: var(--gold); }
.nav-link {
  color: var(--navy-mid) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
}
.nav-link:hover, .nav-link.active {
  color: var(--blue-bright) !important;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
}
.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

/* Hero */
.hero-banner {
  background: linear-gradient(165deg, #0a1628 0%, #12253d 45%, #1e4d8c 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(212,168,75,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.hero-banner h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-banner .lead {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
}
.hero-stat .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}
.hero-stat .label {
  font-size: 0.85rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sections */
.section-pad { padding: 4.5rem 0; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* Cards */
.card-da {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card-da:hover {
  box-shadow: 0 12px 32px rgba(10,22,40,0.08);
  transform: translateY(-3px);
}
.card-da .icon-wrap {
  width: 48px; height: 48px;
  background: rgba(30,77,140,0.1);
  color: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card-da h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.card-da p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Country grid */
.country-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  height: 100%;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.country-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(30,77,140,0.12);
  transform: translateY(-2px);
}
.country-card .region-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.country-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.country-card .meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.country-card .status-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 0.6rem;
}
.status-pilot { background: #dcfce7; color: #166534; }
.status-planning { background: #dbeafe; color: #1e40af; }
.status-concept { background: #f3f4f6; color: #4b5563; }
.status-operating { background: #fef3c7; color: #92400e; }
.status-resource { background: #ede9fe; color: #5b21b6; }

/* Detail page */
.detail-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  padding: 3.5rem 0 2.5rem;
}
.detail-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.detail-meta { opacity: 0.85; font-size: 0.95rem; }
.detail-section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.detail-section h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.detail-section h3 i { color: var(--blue); }

/* Timeline / Plan */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
  border-left: 2px solid var(--border);
}
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h4 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.3rem; }
.timeline-item .year { color: var(--gold); font-weight: 700; font-size: 0.9rem; }

/* Footer */
.footer-da {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-da a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-da a:hover { color: var(--gold); }
.footer-brand { font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer-da h6 { color: #fff; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-da hr { border-color: rgba(255,255,255,0.1); }

/* Utilities */
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background: var(--navy) !important; }
.fade-up { animation: fadeUp 0.6s ease forwards; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-banner { padding: 3.5rem 0 3rem; }
  .hero-stats { gap: 1.25rem; }
  .section-pad { padding: 3rem 0; }
}
/* ========== NUCLEAR THEMED ANIMATIONS ========== */

/* Atom icon animation */
.atom-spin {
  display: inline-block;
  position: relative;
  width: 48px;
  height: 48px;
}
.atom-spin .nucleus {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold), 0 0 24px rgba(212,168,75,0.5);
  animation: nucleus-pulse 2s ease-in-out infinite;
}
.atom-spin .orbit {
  position: absolute;
  top: 50%; left: 50%;
  border: 1.5px solid rgba(43,108,176,0.6);
  border-radius: 50%;
  animation: orbit-spin 4s linear infinite;
}
.atom-spin .orbit-1 { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.atom-spin .orbit-2 { width: 42px; height: 42px; margin: -21px 0 0 -21px; animation-duration: 6s; animation-direction: reverse; border-color: rgba(212,168,75,0.45); }
.atom-spin .electron {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--blue-bright);
  border-radius: 50%;
  top: -3px; left: 50%;
  margin-left: -3px;
  box-shadow: 0 0 6px var(--blue-bright);
}
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes nucleus-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px var(--gold), 0 0 24px rgba(212,168,75,0.4); }
  50% { transform: scale(1.15); box-shadow: 0 0 18px var(--gold), 0 0 36px rgba(212,168,75,0.6); }
}

/* Energy glow pulse on cards */
.card-da.nuclear-glow:hover {
  box-shadow: 0 0 0 1px rgba(43,108,176,0.3), 0 12px 40px rgba(30,77,140,0.15), 0 0 30px rgba(212,168,75,0.12);
}
.energy-bar {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--blue-bright), var(--gold), transparent);
  background-size: 200% 100%;
  animation: energy-flow 3s linear infinite;
  border-radius: 2px;
  margin: 1rem 0;
}
@keyframes energy-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Floating particles / radiation dots in hero */
.hero-banner.nuclear-hero {
  position: relative;
  overflow: hidden;
}
.nuclear-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.nuclear-particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(212,168,75,0.5);
  border-radius: 50%;
  animation: float-up 12s linear infinite;
  box-shadow: 0 0 6px rgba(212,168,75,0.6);
}
.nuclear-particles span:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 14s; }
.nuclear-particles span:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 11s; width: 3px; height: 3px; }
.nuclear-particles span:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 16s; }
.nuclear-particles span:nth-child(4) { left: 55%; animation-delay: 1s; animation-duration: 13s; width: 5px; height: 5px; }
.nuclear-particles span:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 10s; }
.nuclear-particles span:nth-child(6) { left: 85%; animation-delay: 5s; animation-duration: 15s; }
.nuclear-particles span:nth-child(7) { left: 15%; animation-delay: 6s; animation-duration: 12s; background: rgba(43,108,176,0.5); }
.nuclear-particles span:nth-child(8) { left: 60%; animation-delay: 7s; animation-duration: 14s; background: rgba(43,108,176,0.4); }
@keyframes float-up {
  0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1.2); opacity: 0; }
}

/* Radiation / hazard subtle ring */
.rad-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(212,168,75,0.4);
  position: relative;
  animation: rad-pulse 3s ease-in-out infinite;
}
.rad-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(212,168,75,0.2);
  animation: rad-pulse 3s ease-in-out infinite 0.5s;
}
@keyframes rad-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,75,0.3); }
  50% { box-shadow: 0 0 0 10px rgba(212,168,75,0); }
}

/* Reactor core visual */
.reactor-visual {
  width: 120px; height: 120px;
  margin: 0 auto;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #1e4d8c, #0a1628);
  box-shadow: 0 0 40px rgba(43,108,176,0.4), inset 0 0 30px rgba(212,168,75,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reactor-visual .core {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--gold), 0 0 40px rgba(212,168,75,0.5);
  animation: nucleus-pulse 1.8s ease-in-out infinite;
}
.reactor-visual .ring {
  position: absolute;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  animation: orbit-spin 8s linear infinite;
}
.reactor-visual .ring-a { width: 70px; height: 70px; }
.reactor-visual .ring-b { width: 95px; height: 95px; animation-duration: 12s; animation-direction: reverse; border-color: rgba(212,168,75,0.3); }

/* Location map placeholder card */
.location-visual {
  background: linear-gradient(145deg, #0a1628 0%, #1e4d8c 100%);
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.location-visual::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212,168,75,0.2) 0%, transparent 70%);
  animation: nucleus-pulse 4s ease-in-out infinite;
}
.location-visual .coords-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: monospace;
}
.location-visual h4 {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.location-visual p {
  position: relative;
  z-index: 1;
  opacity: 0.85;
  font-size: 0.9rem;
  margin: 0;
}

/* Stat tiles with glow */
.stat-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s;
}
.stat-tile:hover {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(30,77,140,0.12);
}
.stat-tile .val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
}
.stat-tile .lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* Detail section icons glow */
.detail-section h3 i {
  animation: icon-glow 3s ease-in-out infinite;
}
@keyframes icon-glow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 6px rgba(43,108,176,0.5)); }
}

/* Bootstrap image placeholders / icon cards */
.icon-hero {
  width: 80px; height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30,77,140,0.15), rgba(212,168,75,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 1rem;
  position: relative;
}
.icon-hero::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1px solid rgba(43,108,176,0.2);
  animation: rad-pulse 4s ease-in-out infinite;
}

/* Page load fade */
.fade-in-up {
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Sticky side panel glow */
.side-panel-glow {
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(10,22,40,0.06);
}
.side-panel-glow:hover {
  box-shadow: 0 8px 32px rgba(30,77,140,0.12);
}

/* Status badge pulse for pilot */
.status-pilot {
  animation: badge-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,101,52,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(22,101,52,0); }
}

/* Plant images */
.country-card img {
  transition: transform 0.4s ease;
}
.country-card:hover img {
  transform: scale(1.05);
}
.plant-hero-img {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(10,22,40,0.15);
}

/* Donations extras */
.donate-amount-btn {
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  color: var(--navy);
  width: 100%;
}
.donate-amount-btn:hover, .donate-amount-btn.active {
  border-color: var(--gold);
  background: rgba(212,168,75,0.12);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(212,168,75,0.2);
}
.donate-amount-btn .amt {
  font-size: 1.4rem;
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  display: block;
}
.paypal-box {
  background: linear-gradient(135deg, #0a1628, #1e4d8c);
  border-radius: 16px;
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.paypal-box::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(212,168,75,0.25) 0%, transparent 70%);
  animation: nucleus-pulse 4s ease-in-out infinite;
}
.impact-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(30,77,140,0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.counter-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.counter-box .big {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
}

/* Careers extras */
.role-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.role-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(30,77,140,0.1);
  transform: translateY(-2px);
}
.role-card .badge-field {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(30,77,140,0.1);
  color: var(--blue);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}
.duty-row { border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.duty-row:hover { background: rgba(30,77,140,0.03); }
.issue-open { color: #b45309; font-weight: 600; }
.issue-resolved { color: #166534; }
.filter-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ========== CAREERS ENHANCED CSS + BOOTSTRAP POLISH ========== */

/* Smooth global */
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }

/* Stronger navbar on scroll feel */
.navbar-da {
  backdrop-filter: blur(8px);
  background: rgba(247, 245, 240, 0.92) !important;
  box-shadow: 0 1px 0 var(--border);
}
.navbar-da .nav-link {
  position: relative;
  transition: color 0.2s;
}
.navbar-da .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.25rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.navbar-da .nav-link:hover::after,
.navbar-da .nav-link.active::after {
  transform: scaleX(1);
}

/* Buttons */
.btn-gold {
  box-shadow: 0 4px 14px rgba(212, 168, 75, 0.35);
}
.btn-gold:hover {
  box-shadow: 0 6px 20px rgba(212, 168, 75, 0.45);
}
.btn-outline-navy {
  transition: all 0.2s ease;
}
.btn-sm { font-size: 0.8rem; }

/* Hero improvements */
.hero-banner {
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-banner h1 {
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-stats {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Cards */
.card-da, .role-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.04);
}
.card-da .icon-wrap {
  transition: transform 0.25s, background 0.25s;
}
.card-da:hover .icon-wrap {
  transform: scale(1.08);
  background: rgba(212, 168, 75, 0.15);
  color: var(--navy);
}

/* Role cards grid polish */
.role-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  opacity: 0;
  transition: opacity 0.25s;
}
.role-card:hover::before { opacity: 1; }

/* Forms – Bootstrap-aligned */
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
  outline: none;
}
.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--navy-mid);
  margin-bottom: 0.35rem;
}
.form-check-input:checked {
  background-color: var(--navy);
  border-color: var(--navy);
}

/* Tables */
.table {
  --bs-table-bg: transparent;
  font-size: 0.9rem;
}
.table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom-width: 1px;
  font-weight: 600;
}
.table > :not(caption) > * > * {
  padding: 0.75rem 0.5rem;
}

/* Badges */
.badge {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-field {
  background: linear-gradient(135deg, rgba(30,77,140,0.12), rgba(212,168,75,0.12));
}

/* Alerts */
.alert {
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
}
.alert-info { background: #e8f0fe; color: #1e3a5f; }
.alert-success { background: #e6f7f0; color: #0d5c3d; }
.alert-danger { background: #fde8e8; color: #8b1a1a; }

/* Modals */
.modal-content {
  border: none;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.2);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
}
.modal-footer {
  border-top: 1px solid var(--border);
}

/* Detail sections */
.detail-section {
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.04);
  transition: box-shadow 0.2s;
}
.detail-section:hover {
  box-shadow: 0 6px 20px rgba(10, 22, 40, 0.07);
}

/* Stat tiles */
.stat-tile {
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30, 77, 140, 0.1);
}

/* Filter chips */
.filter-chip {
  text-decoration: none;
  color: var(--navy-mid);
  font-weight: 500;
}
.filter-chip:hover {
  text-decoration: none;
  color: #fff;
}

/* Breadcrumb on dark hero */
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* Duty table */
.duty-row td {
  vertical-align: middle;
}
.table-responsive {
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* Admin / volunteer panels */
.sticky-top.detail-section {
  z-index: 100;
}

/* Pagination-like page feel */
.section-pad + .section-pad {
  border-top: 1px solid transparent;
}

/* Footer links */
.footer-da a {
  transition: color 0.15s;
  font-size: 0.9rem;
}

/* Loading / empty states */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-state i {
  font-size: 2.5rem;
  opacity: 0.4;
  display: block;
  margin-bottom: 0.75rem;
}

/* Numbered how-it-works */
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* Shadow utilities aligned with theme */
.shadow-da {
  box-shadow: 0 8px 30px rgba(10, 22, 40, 0.1) !important;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .hero-banner {
    min-height: auto;
    padding: 3rem 0;
  }
  .hero-stats {
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
  }
  .hero-stat .num { font-size: 1.5rem; }
  .section-title { font-size: 1.6rem; }
  .role-card {
  display: flex;
  flex-direction: column; margin-bottom: 0; }
}

/* Print-friendly admin tables */
@media print {
  .hud-bar, .navbar-da, .footer-da, .btn { display: none !important; }
}

/* ========== LINK & TEXT CONTRAST FIX ========== */

/* Default body links — brand blue, never pure black/white */
a {
  color: var(--blue-bright);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  color: var(--navy);
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Content area links */
.section-pad a:not(.btn):not(.filter-chip):not(.nav-link):not(.navbar-brand),
.detail-section a:not(.btn),
.card-da a:not(.btn),
.role-card a:not(.btn) {
  color: var(--blue-bright);
  font-weight: 500;
}
.section-pad a:not(.btn):not(.filter-chip):hover,
.detail-section a:not(.btn):hover {
  color: var(--navy);
}

/* Role cards — force readable text (not inherit black/white mess) */
.role-card {
  color: var(--text);
  text-decoration: none !important;
}
.role-card:hover {
  color: var(--text);
  text-decoration: none !important;
}
.role-card h3,
.role-card h4,
.role-card .h5 {
  color: var(--navy) !important;
}
.role-card .meta,
.role-card .small,
.role-card p {
  color: var(--muted) !important;
}
.role-card .badge-field {
  color: var(--blue) !important;
}

/* Country-style cards if used */
.country-card {
  color: var(--text) !important;
  text-decoration: none !important;
}
.country-card:hover {
  color: var(--text) !important;
  text-decoration: none !important;
}
.country-card h4 {
  color: var(--navy) !important;
}

/* Filter chips stay navy / white on active */
.filter-chip {
  color: var(--navy-mid) !important;
  text-decoration: none !important;
}
.filter-chip:hover,
.filter-chip.active {
  color: #fff !important;
  text-decoration: none !important;
  background: var(--navy);
  border-color: var(--navy);
}

/* Hero / dark sections — light text, gold accents */
.hero-banner,
.hero-banner p,
.hero-banner .lead,
.detail-hero,
.detail-hero p {
  color: #fff;
}
.hero-banner a:not(.btn),
.detail-hero a:not(.btn) {
  color: var(--gold-light) !important;
  text-decoration: underline;
}
.hero-banner a:not(.btn):hover,
.detail-hero a:not(.btn):hover {
  color: #fff !important;
}
.detail-hero .breadcrumb-item a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none;
}
.detail-hero .breadcrumb-item a:hover {
  color: #fff !important;
}
.detail-hero .breadcrumb-item.active {
  color: #fff !important;
}

/* Navy CTA band */
section[style*="--navy"],
section[style*="var(--navy)"] {
  color: #fff;
}
section[style*="--navy"] a:not(.btn),
section[style*="var(--navy)"] a:not(.btn) {
  color: var(--gold) !important;
}

/* Footer — always light on navy */
.footer-da {
  color: rgba(255,255,255,0.8);
}
.footer-da a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
}
.footer-da a:hover {
  color: var(--gold) !important;
  text-decoration: none !important;
}
.footer-da h6,
.footer-da .footer-brand {
  color: #fff !important;
}

/* Navbar links stay navy */
.navbar-da .nav-link {
  color: var(--navy-mid) !important;
  text-decoration: none !important;
}
.navbar-da .nav-link:hover,
.navbar-da .nav-link.active {
  color: var(--blue-bright) !important;
  text-decoration: none !important;
}
.navbar-brand {
  text-decoration: none !important;
  color: var(--navy) !important;
}

/* Buttons never look like plain text links */
.btn {
  text-decoration: none !important;
}
.btn-gold {
  color: var(--navy) !important;
}
.btn-gold:hover {
  color: var(--navy) !important;
  text-decoration: none !important;
}
.btn-outline-navy {
  color: var(--navy) !important;
}
.btn-outline-navy:hover {
  color: #fff !important;
  background: var(--navy);
  text-decoration: none !important;
}
.btn-outline-light {
  color: #fff !important;
}
.btn-outline-light:hover {
  color: var(--navy) !important;
  text-decoration: none !important;
}

/* Table links */
.table a {
  color: var(--blue-bright);
  font-weight: 500;
}
.table a:hover {
  color: var(--navy);
}

/* Muted text must stay readable (not pure gray-on-white washout) */
.text-muted {
  color: var(--muted) !important;
}
.text-navy {
  color: var(--navy) !important;
}
.text-gold {
  color: var(--gold) !important;
}

/* Code / member IDs */
code {
  color: var(--navy);
  background: rgba(30, 77, 140, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Alert links */
.alert a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* Navy band explicit children */
.section-pad.bg-navy,
section.bg-navy,
section[style*="background:var(--navy)"],
section[style*="background: var(--navy)"] {
  background: var(--navy) !important;
  color: #f0f4f8 !important;
}
section[style*="background:var(--navy)"] p,
section[style*="background:var(--navy)"] h2,
section[style*="background:var(--navy)"] blockquote {
  color: #f0f4f8 !important;
}

/* Bootstrap reboot overrides for body text */
body {
  color: var(--text) !important;
  background-color: var(--cream) !important;
}
p, li, td, th, label, span {
  /* don't force all spans - too broad */
}
.card-da p, .role-card p, .detail-section p {
  color: var(--muted);
}
.card-da h3, .detail-section h3, .section-title {
  color: var(--navy);
}
.return-card,.office-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:1.5rem;height:100%;transition:transform .25s,box-shadow .25s}
.return-card:hover,.office-card:hover{transform:translateY(-3px);box-shadow:0 12px 32px rgba(10,22,40,.08)}
.return-card .ico,.office-card .ico{width:48px;height:48px;border-radius:12px;background:rgba(30,77,140,.1);color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:1.25rem;margin-bottom:1rem}
.flight-table{font-size:.85rem}
.flight-table th{font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.badge-live{background:#dcfce7;color:#166534;font-size:.7rem}
.badge-office{background:rgba(30,77,140,.1);color:var(--blue);font-size:.7rem}
