@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* ==========================================================================
   DESIGN TOKENS — DEFENCE HUB SYSTEM
   Military: Slate Gunmetal | Tactical Gold | Olive | Off-White
   ========================================================================== */
:root {
  color-scheme: light;
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* ── LIGHT MODE ── */
  --bg-base:       #FAFBFD;
  --bg-surface:    #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-dark:       #F1F5F9;
  --border-card:   rgba(15, 26, 44, 0.06);
  --grid-color:    rgba(15, 26, 44, 0.02);

  /* Curated Premium Slate Navy & Radiant Gold */
  --primary:         #0A1325; /* Slate Navy 950 */
  --primary-hover:   #122038;
  --primary-light:   #2C3E5B;
  --primary-glow:    rgba(10, 19, 37, 0.05);
  --primary-gradient: linear-gradient(135deg, #122038 0%, #0A1325 100%);

  --gold:            #B45309; /* Warm Amber Gold */
  --gold-light:      #D97706;
  --gold-pale:       #FEF3C7;
  --gold-glow:       rgba(180, 83, 9, 0.08);
  --gold-gradient:   linear-gradient(135deg, #D97706 0%, #B45309 100%);

  --olive:           #059669;
  --olive-light:     #10B981;
  --olive-pale:      #ECFDF5;

  --accent-red:      #DC2626;
  --accent-green:    #16A34A;
  --accent-sky:      #2563EB;

  --text-primary:    #0A1325;
  --text-secondary:  #475569;
  --text-muted:      #94A3B8;
  --text-on-dark:    #F8FAFC;

  --bg-header:         rgba(250, 251, 253, 0.85);
  --bg-header-scrolled:rgba(255, 255, 255, 0.95);

  --header-height: 72px;
  --max-width:     1200px;

  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-xs:     0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm:     0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md:     0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg:     0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  --shadow-gold:   0 10px 25px -5px rgba(180, 83, 9, 0.15);
  --shadow-glow:   0 0 20px rgba(10, 19, 37, 0.04);

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-pill:9999px;
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  color-scheme: dark;
  --bg-base:       #070A13; /* Deep Tactical Slate */
  --bg-surface:    #0C101B; /* Charcoal Steel */
  --bg-card:       #101624; /* Muted navy-steel card background */
  --bg-dark:       #05080E;
  --border-card:   rgba(255, 255, 255, 0.06); /* Precise subtle borders */
  --grid-color:    rgba(255, 255, 255, 0.015);

  --primary:         #F8FAFC; /* Slate 50 */
  --primary-hover:   #CBD5E1;
  --primary-light:   #E2E8F0;
  --primary-glow:    rgba(255, 255, 255, 0.08);
  --primary-gradient: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);

  --gold:            #C59B27; /* Muted Luxury Brass Gold */
  --gold-light:      #DFB63D;
  --gold-pale:       rgba(197, 155, 39, 0.08);
  --gold-glow:       rgba(197, 155, 39, 0.15);
  --gold-gradient:   linear-gradient(135deg, #DFB63D 0%, #C59B27 100%);

  --olive:           #10B981;
  --olive-light:     #34D399;
  --olive-pale:      rgba(16, 185, 129, 0.08);

  --text-primary:    #F8FAFC;
  --text-secondary:  #8E9CAE; /* Softer slate gray */
  --text-muted:      #5E6D82;
  --text-on-dark:    #F8FAFC;

  --bg-header:          rgba(7, 10, 19, 0.85);
  --bg-header-scrolled: rgba(12, 16, 27, 0.95);

  --shadow-xs:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-sm:   0 4px 12px rgba(0,0,0,0.4);
  --shadow-md:   0 12px 24px rgba(0,0,0,0.5);
  --shadow-lg:   0 20px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 8px 30px rgba(197, 155, 39, 0.12);
  --shadow-glow: 0 0 30px rgba(197, 155, 39, 0.06);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  background-color: var(--bg-base);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; transition: var(--transition-smooth); }
ul { list-style: none; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }

/* Scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-navy-gradient {
  background: linear-gradient(135deg, #253560 0%, #4A6FA5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   UTILITY: BADGE, LABEL
   ========================================================================== */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-badge-gold {
  background: var(--gold-pale);
  border: 1px solid var(--gold-glow);
  color: var(--gold);
}

.rank-badge-navy {
  background: rgba(26, 39, 68, 0.07);
  border: 1px solid rgba(26, 39, 68, 0.14);
  color: var(--primary);
}

.rank-badge-olive {
  background: var(--olive-pale);
  border: 1px solid rgba(85, 107, 47, 0.25);
  color: var(--olive);
}

[data-theme="dark"] .rank-badge-gold {
  background: rgba(201, 168, 76, 0.10);
  border-color: rgba(201, 168, 76, 0.22);
  color: var(--gold-light);
}

[data-theme="dark"] .rank-badge-navy {
  background: rgba(74, 111, 165, 0.12);
  border-color: rgba(74, 111, 165, 0.24);
  color: var(--primary);
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
header {
  --active-header-height: var(--header-height);
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--active-header-height);
  background: var(--bg-header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-card);
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  --active-header-height: 62px;
  background: var(--bg-header-scrolled);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo img { width: 38px; height: 38px; }

.logo .logo-accent { color: var(--gold); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: var(--gold-light);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* Entry selector badge */
.badge-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-glow);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.badge-header:hover {
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

[data-theme="dark"] .badge-header {
  background: var(--gold-pale);
  border-color: var(--gold-glow);
  color: var(--gold-light);
}

/* Burger */
.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Header actions row */
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.25);
  transform: translateY(-1.5px);
}

.btn-navy {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-navy:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1.5px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold-gradient);
  color: #fff;
  transform: translateY(-1.5px);
}

.btn-ghost {
  background: rgba(10, 19, 37, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.btn-ghost:hover {
  background: rgba(10, 19, 37, 0.08);
}

/* ==========================================================================
   DATETIME DISPLAY & CAPSULE
   ========================================================================== */
.header-datetime-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 2px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
  height: 40px;
}

.header-datetime-capsule:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.header-datetime {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.datetime-day {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-theme="dark"] .datetime-day {
  color: var(--gold-light);
}

.datetime-divider {
  width: 1px;
  height: 14px;
  background: var(--border-card);
}

.datetime-date {
  letter-spacing: 0.02em;
  font-weight: 600;
}

.datetime-time-box {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-weight: 700;
}

.datetime-time-box .clock-icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
  animation: pulse-clock 2s infinite ease-in-out;
}

[data-theme="dark"] .datetime-time-box .clock-icon {
  color: var(--gold-light);
}

.datetime-time {
  letter-spacing: 0.05em;
}

@keyframes pulse-clock {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}


/* Responsiveness for Datetime Capsule */
@media (max-width: 991px) {
  .datetime-date,
  .divider-date {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-datetime-capsule {
    padding: 2px 10px;
    gap: 6px;
  }
  .header-datetime {
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .datetime-day,
  .divider-day {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-datetime-capsule {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTION — COMMAND CENTRE STYLE
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 72px);
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative background stripes */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 39, 68, 0.03) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* Decorative corner accent */
.hero-corner-accent {
  position: absolute;
  top: calc(var(--header-height) + 20px);
  right: 0;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at top right, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out forwards;
}

.hero-divider-line {
  width: 32px;
  height: 1.5px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw + 1rem, 4.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--text-primary);
  animation: fadeInUp 0.7s ease-out forwards;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px auto;
  font-weight: 400;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Mission Search Panel */
.mission-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 6px 8px 6px 8px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 800px;
  margin: 0 auto 28px auto;
  display: flex;
  align-items: center;
  animation: fadeInUp 0.9s ease-out forwards;
}

/* Panel left accent stripe */
.mission-panel::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold-gradient);
  border-radius: 4px 0 0 4px;
}
.mission-panel { position: relative; }

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  flex: 1;
  width: 100%;
}

.search-field select,
.search-field input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.search-field select { cursor: pointer; }

/* Style input placeholder */
.search-field input::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
  opacity: 0.9;
}

/* Style select placeholder (invalid state) */
.search-field select:invalid {
  color: var(--text-secondary);
  font-weight: 400;
  opacity: 0.9;
}

.search-field select option {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 500;
}

.search-field-icon {
  color: var(--gold);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.search-field-icon svg { width: 18px; height: 18px; fill: currentColor; }

.search-divider {
  width: 1px;
  height: 32px;
  background: var(--border-card);
  flex-shrink: 0;
}

.panel-search-btn {
  background: var(--gold-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.panel-search-btn:hover {
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.25);
  transform: translateY(-1px);
}

/* Quick links */
.quick-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto 56px auto;
  animation: fadeInUp 1s ease-out forwards;
}

.quick-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}
.tag-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-pale);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

/* Hero stat cards */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 1.1s ease-out forwards;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px 30px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
  min-width: 140px;
}

.stat-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-dark); border-top: 1px solid var(--border-card); border-bottom: 1px solid var(--border-card); }

.section-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before, .section-label::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.section-title { text-align: center; margin-bottom: 56px; }
.section-title .section-label { justify-content: center; }
.section-title h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.section-title p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.97rem;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Base card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition-smooth);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.card:hover::before {
  background: var(--gold-gradient);
}

/* Card icon */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gold-pale);
  border: 1px solid var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition-smooth);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--gold);
  stroke: none;
}

[data-theme="dark"] .card-icon {
  background: var(--gold-pale);
  border-color: var(--gold-glow);
}

.card:hover .card-icon {
  background: var(--gold-gradient);
  border-color: transparent;
}
.card:hover .card-icon svg { fill: #fff; }

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  transition: var(--transition-smooth);
}
.card-link:hover { gap: 10px; }

/* Pathway/feature cards */
.pathway-card {
  border-left: 3px solid var(--border-card);
  padding-left: 32px;
}
.pathway-card:hover { border-left-color: var(--gold); }

/* ==========================================================================
   MISSION TICKER (News / Updates)
   ========================================================================== */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

#articles {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.news-card-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.20);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.20); }
  50%       { box-shadow: 0 0 0 6px rgba(39, 174, 96, 0.08); }
}

.news-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border-card);
}

.news-item {
  padding: 16px 0 16px 20px;
  position: relative;
  transition: var(--transition-smooth);
}

.news-item + .news-item { border-top: 1px solid var(--border-card); }

.news-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--border-card);
  transition: var(--transition-smooth);
}

.news-item:hover::before {
  background: var(--gold);
  border-color: var(--gold);
}

.news-date {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.news-item h4 {
  font-size: 0.97rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.news-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   OLQ FACTORS SECTION
   ========================================================================== */
.olq-factor {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.olq-factor:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateX(4px);
}

.olq-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 42px;
  line-height: 1;
}

.olq-text strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.olq-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   PROGRESS/MISSION TRACKER CHIPS
   ========================================================================== */
.floating-widget-container {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 52px;
  animation: fadeInUp 1.2s ease-out forwards;
  flex-wrap: wrap;
}

.sticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.sticker-pill svg { width: 16px; height: 16px; fill: currentColor; }

.sticker-pill-gold {
  background: var(--gold-pale);
  border: 1px solid var(--gold-glow);
  color: var(--gold);
}
[data-theme="dark"] .sticker-pill-gold {
  background: var(--gold-pale);
  border-color: var(--gold-glow);
}

.sticker-pill-navy {
  background: rgba(26, 39, 68, 0.05);
  border: 1px solid rgba(26, 39, 68, 0.12);
  color: var(--primary);
  cursor: pointer;
}
.sticker-pill-navy:hover {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
[data-theme="dark"] .sticker-pill-navy {
  background: rgba(74, 111, 165, 0.08);
  border-color: rgba(74, 111, 165, 0.20);
  color: var(--primary);
}
[data-theme="dark"] .sticker-pill-navy:hover {
  background: var(--primary-gradient);
  color: #fff;
}

/* Orange/alert pill — kept for compatibility */
.sticker-pill-orange { @extend .sticker-pill-gold; }
.sticker-pill-green {
  background: var(--olive-pale);
  border: 1px solid rgba(85, 107, 47, 0.22);
  color: var(--olive);
  cursor: pointer;
}
.sticker-pill-green:hover {
  background: var(--olive);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}
[data-theme="dark"] .sticker-pill-green {
  background: rgba(122, 154, 74, 0.10);
  border-color: rgba(122, 154, 74, 0.22);
}

/* ==========================================================================
   TABS INTERFACE
   ========================================================================== */
.tabs-container { margin-top: 30px; }

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}
.tab-btn:hover { color: var(--gold); border-color: var(--gold); }
.tab-btn.active {
  background: var(--gold-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.tab-content { display: none; animation: fadeIn 0.4s ease-out; }
.tab-content.active { display: block; }

/* Guide Content */
.guide-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.guide-text h3 { font-size: 1.7rem; margin-bottom: 14px; }
.guide-text p { color: var(--text-secondary); margin-bottom: 22px; }

.test-list { display: flex; flex-direction: column; gap: 14px; }

.test-item {
  display: flex;
  gap: 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-card);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}
.test-item:hover { border-color: var(--gold); }

.test-num { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--gold); }
.test-details h4 { font-size: 1rem; margin-bottom: 2px; }
.test-details p { font-size: 0.86rem; color: var(--text-secondary); margin: 0; }

/* Checklist */
.checklist-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.checklist-title {
  font-size: 1.15rem;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.02em;
}

.checklist-counter {
  font-size: 0.82rem;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.checklist-list { display: flex; flex-direction: column; gap: 10px; }

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.checklist-item:hover { border-color: var(--gold); background: var(--gold-pale); }
.checklist-item input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--gold); cursor: pointer; }
.checklist-item.checked { opacity: 0.55; text-decoration: line-through; }

/* ==========================================================================
   PRACTICE PAGE (Simulators)
   ========================================================================== */
.practice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.practice-card { text-align: center; padding: 40px 30px; }
.practice-card .card-icon { margin: 0 auto 24px auto; }

.simulator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 700px;
  margin: 40px auto 0;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
  display: none;
}
.simulator-box.active { display: block; }

.wat-word-display {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 40px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.timer-circle-container { width: 80px; height: 80px; margin: 0 auto 20px; position: relative; }
.timer-circle {
  width: 100%; height: 100%;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem;
  position: relative;
}
.timer-circle svg { transform: rotate(-90deg); width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.timer-circle circle { fill: none; stroke-width: 4; }
.timer-circle .bg-circle { stroke: var(--border-card); }
.timer-circle .progress-circle {
  stroke: var(--gold);
  stroke-dasharray: 220;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s linear;
}
.word-counter { color: var(--text-secondary); font-weight: 600; margin-bottom: 20px; }
.sim-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* OIR Quiz */
.quiz-question-container { text-align: left; margin: 28px 0; }
.quiz-question { font-size: 1.2rem; font-weight: 600; margin-bottom: 18px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  background: var(--bg-base);
  border: 1px solid var(--border-card);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.quiz-option:hover { border-color: var(--gold); background: var(--gold-pale); }
.quiz-option.selected { background: var(--gold-pale); border-color: var(--gold); color: var(--gold); font-weight: 600; }

.quiz-results-container { display: none; text-align: center; padding: 30px 0; }
.quiz-score-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.quiz-score-val { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--gold); }
.quiz-score-total { font-size: 0.9rem; color: var(--text-secondary); }

/* ==========================================================================
   EXAMS PAGE
   ========================================================================== */
.exam-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 40px; }

.table-responsive {
  width: 100%; overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 20px; border-bottom: 1px solid var(--border-card); }
th {
  background: var(--bg-dark);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gold-pale); }
[data-theme="dark"] tr:hover td { background: rgba(201, 168, 76, 0.05); }

/* Accordion */
.syllabus-accordion { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
}
.accordion-item:hover { border-color: var(--gold-glow); }

.accordion-header {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  transition: var(--transition-smooth);
}
.accordion-header:hover { background: var(--gold-pale); }

.accordion-header .arrow { transition: transform 0.3s ease; width: 15px; height: 15px; }
.accordion-item.active .accordion-header .arrow { transform: rotate(180deg); }
.accordion-item.active .accordion-header { color: var(--gold); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 22px;
  background: var(--bg-base);
}
.accordion-item.active .accordion-content {
  padding: 18px 22px;
  border-top: 1px solid var(--border-card);
}

.syllabus-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.syllabus-list li {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-secondary); font-size: 0.88rem;
}
.syllabus-list li::before { content: '✓'; color: var(--gold); font-weight: bold; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; }
.contact-icon { font-size: 1.4rem; color: var(--gold); }
.contact-details h4 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-details p { color: var(--text-secondary); font-size: 0.93rem; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); letter-spacing: 0.04em; text-transform: uppercase; }

.form-control {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.93rem;
  transition: var(--transition-smooth);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
textarea.form-control { resize: vertical; min-height: 115px; }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form .form-control { border-radius: var(--radius-pill); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-card);
  padding: 80px 0 28px;
  margin-top: 80px;
  position: relative;
}

/* Footer gold top accent */
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-about h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-about p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.7; }

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--gold);
}

.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: var(--transition-smooth); display: inline-flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '›'; color: var(--gold); opacity: 0; transition: var(--transition-smooth); }
.footer-links a:hover { color: var(--gold); padding-left: 8px; }
.footer-links a:hover::before { opacity: 1; }

.footer-newsletter h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--gold);
}
.footer-newsletter p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 18px; line-height: 1.65; }

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-card);
  padding-top: 26px;
  color: var(--text-muted);
  font-size: 0.83rem;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Animated gold underline for headings */
.underline-gold {
  position: relative;
  display: inline-block;
}
.underline-gold::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 100%; height: 3px;
  background: var(--gold-gradient);
  border-radius: 3px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .burger { display: block; }

  .nav-links {
    position: fixed;
    top: var(--active-header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--active-header-height));
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
    gap: 6px;
    border-left: 1px solid var(--border-card);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -12px 0 32px rgba(0,0,0,0.08);
    z-index: 999;
    overflow-y: auto;
  }
  [data-theme="dark"] .nav-links { box-shadow: -12px 0 32px rgba(0,0,0,0.45); }
  .nav-links.active { right: 0; }
  .nav-links a { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.95rem; }
  .nav-links a.active::after { display: none; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .guide-block { grid-template-columns: 1fr; gap: 28px; }
  .exam-summary-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .hero h1 { font-size: 2.6rem; }
  .section-title h2 { font-size: 2rem; }

  .mission-panel {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 18px;
    gap: 12px;
  }
  .search-divider { display: none; }
  .panel-search-btn { width: 100%; justify-content: center; }

  .hero-stats { gap: 12px; }
  .stat-card { padding: 16px 20px; min-width: 110px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .floating-widget-container { flex-direction: column; align-items: center; }
  .tab-buttons { gap: 6px; }
  .tab-btn { padding: 8px 14px; font-size: 0.8rem; }
}

/* ==========================================================================
   THEME TOGGLE GRAPHICS
   ========================================================================== */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Toggle icon display based on active dataset theme */
.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle-btn .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; }

[data-theme="dark"] .theme-toggle-btn:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ==========================================================================
   PAGE HERO & UTILITIES REDESIGN
   ========================================================================== */
.page-hero {
  padding: calc(var(--header-height) + 56px) 0 48px 0;
  background: radial-gradient(circle at 50% 50%, rgba(184, 146, 42, 0.04) 0%, transparent 65%);
  border-bottom: 1px solid var(--border-card);
  text-align: center;
}

[data-theme="dark"] .page-hero {
  background: radial-gradient(circle at 50% 50%, rgba(197, 155, 39, 0.05) 0%, transparent 70%);
}

.py-60 {
  padding: 60px 0;
}

