/*
  IESMA RVO — Modern Redesign Concept 01 (Refactored)
  Typography: EB Garamond (display) + Noto Sans (body) + JetBrains Mono (data)
  Accent: #E8870A (exact amber from ESMA logo)
*/

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Noto+Sans:wght@300;400;500;600;700&family=Source+Serif+4:wght@400;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  --primary:        #E8870A;
  --primary-light:  #F5A633;
  --primary-dark:   #C4700A;
  --primary-faint:  rgba(232, 135, 10, 0.1);
  --primary-glow:   rgba(232, 135, 10, 0.25);

  --bg-page:        #0C0E14;
  --bg-section:     #14161C;
  --bg-card:        #1A1B22;
  --bg-card-hover:  #21222B;
  --bg-glass:       rgba(18, 22, 38, 0.82);

  --text-1:         #EEF0F5;
  --text-2:         #9AA3B8;
  --text-3:         #5C6578;

  --border:         rgba(255, 255, 255, 0.07);
  --border-accent:  rgba(232, 135, 10, 0.3);

  --shadow-sm:      0 2px 12px rgba(0,0,0,0.35);
  --shadow-md:      0 6px 30px rgba(0,0,0,0.5);
  --shadow-glow:    0 0 24px rgba(232,135,10,0.2);

  --radius-sm:      2px;
  --radius-md:      4px;
  --radius-lg:      8px;

  --font-display:   'EB Garamond', Georgia, serif;
  --font-heading:   'Source Serif 4', Georgia, serif;
  --font-body:      'Noto Sans', 'Segoe UI', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --transition:     all 0.3s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Amber top-stripe — institutional authority mark */
  border-top: 3px solid var(--primary);
}

@media (max-width: 768px) { html { font-size: 15px; } }

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
address { font-style: normal; }

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
.t-display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.t-heading {
  font-family: var(--font-heading);
  line-height: 1.25;
}
.t-mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem);  font-family: var(--font-display); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-family: var(--font-heading); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-family: var(--font-heading); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; }

/* ─────────────────────────────────────────
   UTILITIES
───────────────────────────────────────── */
.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5.5rem 1.5rem;
}

.section-header {
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #000;
}
.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: #000;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-faint);
  border-color: var(--primary);
}

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 900;
  /* Smooth transition — no flicker */
  background: transparent;
  transition: background 0.5s var(--ease),
              padding 0.4s var(--ease),
              box-shadow 0.5s var(--ease);
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
  padding: 0.6rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.nav-brand-logo {
  height: 44px;
  width: auto;
}

.nav-brand-text { line-height: 1.1; }

.nav-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-1);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.navbar.scrolled .nav-brand-name,
.navbar.scrolled .nav-brand-rno {
  text-shadow: none;
}

.nav-brand-rno {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-1);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar.scrolled .nav-link {
  text-shadow: none;
}

.nav-link:hover { color: var(--primary); }

.nav-link .caret {
  font-size: 0.55rem;
  transition: transform 0.25s;
  opacity: 0.6;
}

.nav-item:hover .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 910;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.65rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.dropdown-item:last-child { border-bottom: none; }

.dropdown-item:hover {
  background: var(--primary-faint);
  color: var(--primary);
  padding-left: 1.5rem;
}

/* Nested Dropdown */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-item {
  display: flex;
  align-items: center;
}

.dropdown-menu-sub {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 920;
}

.dropdown-submenu:hover .dropdown-menu-sub,
.dropdown-submenu:focus-within .dropdown-menu-sub {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: -100%;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 950;
  overflow-y: auto;
  transition: right 0.35s var(--ease);
  padding: 2rem 1.5rem;
}

.mobile-nav.active { right: 0; }

.mobile-nav-close {
  display: block;
  text-align: right;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-2);
}

.mobile-nav-group { margin-bottom: 0.5rem; }

.mobile-nav-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.mobile-nav-sub {
  display: none;
  padding: 0.5rem 0 0.5rem 1rem;
}

.mobile-nav-sub.open { display: block; }

.mobile-nav-sub a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.83rem;
  color: var(--text-2);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mobile-nav-sub a:hover { color: var(--primary); }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 940;
}
.mobile-overlay.active { display: block; }

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/home-banner.jpg');
  background-size: cover;
  background-position: center top;
  /* Parallax scroll effect */
  background-attachment: fixed;
  z-index: 0;
  transform: scale(1.05);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 10, 16, 0.75) 0%,
    rgba(8, 10, 16, 0.0) 28%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Reduced opacity to reveal image more, added blur on scroll if needed but here we just lighten the overlay */
  background: linear-gradient(
    180deg,
    rgba(12, 14, 20, 0.2) 0%,
    rgba(12, 14, 20, 0.45) 50%,
    rgba(12, 14, 20, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1400px;
  padding: 0 2rem;
  width: 100%;
}

.hero-gov-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.gov-logo-card {
  background: rgba(255,255,255,0.95);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

.gov-logo-card img {
  height: 52px;
  width: auto;
}

.hero-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-logo {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(232,135,10,0.6));
  animation: fadeUp 1s ease-out both;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 0;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
  animation: fadeUp 1s ease-out 0.15s both;
}

.hero-subtitle-block {
  animation: fadeUp 1s ease-out 0.3s both;
}

.hero-rno {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-2);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.hero-org {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-2);
}

.hero-cta {
  animation: fadeUp 1s ease-out 0.45s both;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-3);
  animation: bounce 2.5s infinite;
  font-size: 1.1rem;
}

/* ─────────────────────────────────────────
   STATS STRIP
───────────────────────────────────────── */
.stats-strip {
  position: relative;
  z-index: 10;
  margin-top: -3.5rem;
  padding: 2.5rem 0;
  background: #0E1018;
  border-top: 2px solid var(--border-accent);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.stats-grid {
  max-width: 1400px;
  padding: 0 2rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-cell {
  text-align: center;
  padding: 1rem;
  position: relative;
}

.stat-cell + .stat-cell {
  border-left: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ─────────────────────────────────────────
   COURSES SECTION
───────────────────────────────────────── */
.courses-section {
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.courses-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}

.course-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
  transform-origin: left;
  z-index: 2;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

.course-card:hover::before { transform: scaleX(1); }

.card-img-wrap {
  position: relative;
  height: 195px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.course-card:hover .card-img-wrap img { transform: scale(1.04); }

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(12,14,20,0.85) 100%);
}

.card-icon {
  position: absolute;
  bottom: 1rem; left: 1rem;
  width: 40px; height: 40px;
  background: var(--primary);
  color: #000;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  margin-bottom: 1rem;
  color: var(--text-1);
}

.card-list {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card-list li {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.card-list li:last-child { border-bottom: none; }

.card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
}

.card-cta:hover { color: var(--primary); }

/* ─────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────── */
.about-section {
  background: var(--bg-section);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text {
  position: relative;
  padding-left: 1.75rem;
}

.about-text::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.about-text p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.about-objective {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-objective p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-1);
  margin-bottom: 0;
  line-height: 1.6;
}

.about-img-wrap { position: relative; }

.about-img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-accent);
  box-shadow: 12px 12px 0 var(--primary-dark);
  object-fit: cover;
}

/* ─────────────────────────────────────────
   VIDEO TESTIMONIALS
───────────────────────────────────────── */
.testimonials-section {
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 480px)  { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testi-grid { grid-template-columns: repeat(4, 1fr); } }

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.testi-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testi-thumb {
  position: relative;
  height: 240px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
@media (min-width: 1024px) { .testi-thumb { height: 200px; } }

.testi-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.testi-card:hover .testi-thumb img { opacity: 1; }

.play-btn {
  position: absolute;
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #000;
  font-size: 1.3rem;
  transition: var(--transition);
  z-index: 2;
}

.testi-card:hover .play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--primary-glow);
}

.testi-body { padding: 1.25rem; }

.testi-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.testi-meta {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}

.testi-quote {
  font-size: 0.88rem;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-modal.active { display: flex; }

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
}

.video-modal-inner video {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 6rem);
  border-radius: var(--radius-md);
  display: block;
  background: #000;
}

.video-modal-close {
  display: block;
  margin: 0.75rem auto 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.video-modal-close:hover { background: rgba(255,255,255,0.2); }

.video-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  z-index: 10;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ─────────────────────────────────────────
   KEY PEOPLE
───────────────────────────────────────── */
.people-section { background: var(--bg-section); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
}

.person-card {
  padding: 1.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.person-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.person-initial {
  width: 52px; height: 52px;
  background: var(--primary-faint);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
}

.person-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.person-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ─────────────────────────────────────────
   BRANCHES
───────────────────────────────────────── */
.branches-section { background: var(--bg-page); }

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.branch-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.branch-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.branch-city {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.branch-contact {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.branch-asset-class {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--primary-faint);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.6rem;
}

.branch-addr {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.branch-info {
  font-size: 0.82rem;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.branch-info i { color: var(--primary); width: 14px; margin-right: 0.4rem; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #0A0C12 0%, #060810 100%);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 0;
}

.footer-grid {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 3rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 0;
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.soc-btn {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 0.9rem;
  transition: var(--transition);
}

.soc-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.footer-links a::before {
  content: '›';
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
}

.footer-links a:hover { color: var(--primary); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}

.footer-contact-item i { color: var(--primary); margin-top: 3px; }

.footer-disclaimer {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 1rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-3);
  line-height: 1.6;
}

.footer-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-3);
}

.footer-bar a { color: var(--text-3); margin-left: 1rem; }
.footer-bar a:hover { color: var(--primary); }

/* ─────────────────────────────────────────
   BOTTOM STICKY NEWS TICKER
───────────────────────────────────────── */
.news-ticker {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  display: flex;
  align-items: center;
  z-index: 800;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  /* Smooth fade */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.news-ticker.hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.ticker-badge {
  flex-shrink: 0;
  height: 100%;
  padding: 0 1.2rem;
  background: var(--primary);
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-content:hover { animation-play-state: paused; }

.ticker-item {
  padding: 0 3rem;
  font-size: 0.8rem;
  color: var(--text-2);
}

.ticker-item i {
  color: var(--primary);
  margin-right: 0.4rem;
}

.ticker-close {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.ticker-close:hover { color: var(--primary); background: var(--primary-faint); }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   REVEAL ANIMATIONS
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for siblings */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .stat-cell + .stat-cell::before { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-join { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: block; }

  .hero-gov-logos { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-logo { width: 100px; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img-wrap { order: -1; }
  .about-img-frame { display: none; }

  .courses-grid, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bar { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
}
