/* =========================================================
   WANJOHI TECHNICAL TRAINING COLLEGE (WTTI)
   Patron: Hon. James Wanjohi - Kabete 001
   Theme Colors & Mobile-First Zero-Overflow Design System
   ========================================================= */

:root {
  /* Brand Theme Colors */
  --green: #0a8a45;
  --green-d: #066632;
  --green-l: #e7f5ec;
  --green-glow: rgba(10, 138, 69, 0.28);
  --lime: #7ed321;
  
  --red: #d7262e;
  --red-d: #a9161d;
  --red-l: #fde8e9;
  
  --navy: #0f2563;
  --navy-d: #08153b;
  --navy-m: #1d3b8f;
  --navy-l: #eef2ff;
  
  --gold: #f2c230;
  --gold-d: #c69b18;
  --gold-l: #fdf6dc;
  
  --ink: #111512;
  --ink-2: #2b332e;
  --ink-3: #4b554e;
  --muted: #6b746e;
  
  --paper: #ffffff;
  --paper-2: #f8faf8;
  --paper-3: #edf2ee;
  --line: #e2e8e3;
  --line-strong: #c8d4cb;

  /* Typography */
  --font-display: 'Oswald', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Geometry & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-sm: 0 4px 14px rgba(17, 21, 18, 0.05);
  --shadow-md: 0 12px 30px -10px rgba(10, 40, 20, 0.12);
  --shadow-lg: 0 24px 50px -14px rgba(10, 40, 20, 0.18);
  --shadow-glow: 0 12px 28px rgba(10, 138, 69, 0.28);
  --shadow-red: 0 12px 28px rgba(215, 38, 46, 0.3);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, .cond {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.1;
  word-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}

/* =========================================================
   TOP CAMPAIGN BANNER
   ========================================================= */
.top-bar {
  background: linear-gradient(90deg, var(--green-d) 0%, var(--green) 50%, var(--navy) 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 2px solid var(--gold);
}

.top-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(242, 194, 48, 0.7);
  animation: pulseGold 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(242, 194, 48, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(242, 194, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 194, 48, 0); }
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}

.top-bar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
}

@media (max-width: 600px) {
  .top-bar-contact {
    display: none;
  }
}

/* =========================================================
   CLEAN & SPACIOUS STICKY HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
  padding: 10px 0;
  transition: all 0.25s ease;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  max-width: 80%;
}

/* Prominent Official College Crest */
.brand-college-logo {
  height: 52px;
  width: auto;
  max-width: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  min-width: 0;
}

.brand-main-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-main-title span {
  color: var(--green);
}

.brand-sub-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop Navigation */
.main-nav {
  display: none;
}

@media (min-width: 960px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
  }
}

.main-nav a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 9px;
  flex-shrink: 0;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (min-width: 960px) {
  .mobile-toggle {
    display: none;
  }
}

/* Small Device Header Optimizations - Zero Overflows */
@media (max-width: 768px) {
  .site-header {
    padding: 8px 0;
  }
  .header-actions .btn-header-cta {
    display: none !important;
  }
  .brand-college-logo {
    height: 44px;
    max-width: 48px;
  }
  .brand-main-title {
    font-size: 16.5px;
  }
  .brand-sub-title {
    font-size: 9.5px;
  }
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 96px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 3px solid var(--green);
  box-shadow: 0 16px 30px rgba(0,0,0,0.12);
  padding: 20px 24px;
  display: none;
  flex-direction: column;
  gap: 14px;
  z-index: 99;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

/* =========================================================
   BUTTONS & SAFE ZERO-OVERFLOW PADDING
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary, .btn-green {
  background: var(--green);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover, .btn-green:hover {
  background: var(--green-d);
  transform: translateY(-2px);
}

.btn-red {
  background: var(--red);
  color: #ffffff;
  box-shadow: var(--shadow-red);
}

.btn-red:hover {
  background: var(--red-d);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: #ffffff;
}

.btn-navy:hover {
  background: var(--navy-d);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-d);
  font-weight: 800;
}

.btn-gold:hover {
  background: #e2b426;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #ffffff;
}

.btn-whatsapp {
  background: #25D366;
  color: #07381b;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12.5px;
}

/* Button Container Wrappers for Safe Mobile Stacking */
.cta-btn-group, .hero-cta-group, .spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

@media (max-width: 640px) {
  .cta-btn-group, .hero-cta-group, .spotlight-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .cta-btn-group .btn, .hero-cta-group .btn, .spotlight-actions .btn {
    width: 100%;
    padding: 13px 16px;
    font-size: 13.5px;
    white-space: normal;
    line-height: 1.35;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: 100%;
}

.badge-green {
  background: var(--green-l);
  color: var(--green-d);
  border: 1px solid rgba(10, 138, 69, 0.25);
}

.badge-red {
  background: var(--red-l);
  color: var(--red-d);
  border: 1px solid rgba(215, 38, 46, 0.25);
}

.badge-gold {
  background: var(--gold-l);
  color: #634f0c;
  border: 1px solid rgba(242, 194, 48, 0.4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
}

.eyebrow.white {
  color: var(--gold);
}

.eyebrow.white::before {
  background: #ffffff;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--paper-2) 100%);
  padding: 38px 0 54px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero-content h1 {
  font-size: clamp(32px, 5.2vw, 58px);
  margin: 12px 0 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-content h1 .accent-red {
  color: var(--red);
}

.hero-quote-box {
  background: #ffffff;
  border-left: 5px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 18px 0 22px;
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}

.hero-quote-text {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-quote-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-d);
}

.hero-micro-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 18px;
}

.hero-micro-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-micro-trust span svg {
  color: var(--green);
  flex-shrink: 0;
}

/* Hero Multi-Image Visual Composition */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid #ffffff;
  background: var(--paper-3);
  aspect-ratio: 16/11;
  width: 100%;
}

.hero-main-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(8, 21, 59, 0.92) 0%, rgba(8, 21, 59, 0) 100%);
  padding: 14px 18px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-main-overlay b {
  font-family: var(--font-display);
  font-size: 18px;
  display: block;
  letter-spacing: 0.04em;
}

.hero-main-overlay span {
  font-size: 11.5px;
  color: var(--gold);
}

.hero-thumb-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.hero-thumb-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid #ffffff;
  aspect-ratio: 4/3;
  position: relative;
  background: var(--paper-2);
}

.hero-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top !important;
}

.hero-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   DYNAMIC STATS BAR
   ========================================================= */
.stats-bar {
  background: var(--ink);
  color: #ffffff;
  padding: 26px 0;
  border-top: 4px solid var(--green);
}

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

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 11.5px;
  color: #c5cdc7;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 3px;
}

/* =========================================================
   SECTIONS & PILLARS
   ========================================================= */
.section {
  padding: 62px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 6px;
}

.section-head p {
  color: var(--ink-3);
  font-size: 15.5px;
  margin-top: 8px;
}

.pillars-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.pillar-img-box {
  height: 220px;
  width: 100%;
  overflow: hidden;
  background: var(--paper-3);
  position: relative;
}

.pillar-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top !important;
  transition: transform 0.4s ease;
}

.pillar-card:hover .pillar-img-box img {
  transform: scale(1.05);
}

.pillar-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.pillar-card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* =========================================================
   FREE COURSES CATALOG WITH SPECIALIZED COURSE ICONS
   (NO WANJOHI PHOTOS ON COURSE CARDS)
   ========================================================= */
.courses-section {
  background: radial-gradient(1200px 600px at 80% -10%, #1d3b8f 0%, var(--navy) 50%, var(--navy-d) 100%);
  color: #ffffff;
  position: relative;
}

.courses-section .section-head h2 {
  color: #ffffff;
}

.courses-section .section-head p {
  color: #cbd5e1;
}

.courses-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: var(--navy-d);
  border-color: var(--gold);
  font-weight: 700;
}

.courses-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-card {
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  transition: all 0.22s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  box-sizing: border-box;
  position: relative;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 32px rgba(0,0,0,0.3);
}

.course-card.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(10, 138, 69, 0.4);
}

/* Course Card Top with Dedicated Course Icon */
.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.course-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.course-top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.course-code {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--paper-2);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.course-tag-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.course-card h4 {
  font-size: 19px;
  margin-bottom: 8px;
  line-height: 1.25;
}

.course-card p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}

.course-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-meta-row strong {
  color: var(--ink);
}

.course-pricing {
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pricing-title {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--green-d);
  font-weight: 700;
}

.pricing-amount.free-tag s {
  font-size: 12.5px;
  color: var(--muted);
  margin-right: 5px;
  font-weight: normal;
}

.course-card .btn {
  width: 100%;
}

/* =========================================================
   HON. JAMES WANJOHI SPOTLIGHT - ZERO OVERFLOW
   ========================================================= */
.scholarship-spotlight {
  background: var(--paper-2);
}

.spotlight-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.spotlight-grid {
  display: grid;
  gap: 0;
  width: 100%;
}

@media (min-width: 960px) {
  .spotlight-grid {
    grid-template-columns: 1.05fr 1.15fr;
  }
}

.spotlight-photo {
  position: relative;
  overflow: hidden;
  background: var(--navy-d);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 959px) {
  .spotlight-photo {
    aspect-ratio: 5/6;
    max-height: 540px;
  }
}

.spotlight-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(8, 21, 59, 0.95) 0%, rgba(8, 21, 59, 0.2) 60%, transparent 100%);
  padding: 20px;
  color: #ffffff;
}

.spotlight-photo-overlay h4 {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 2px;
}

.spotlight-photo-overlay p {
  color: var(--gold);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spotlight-body {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 640px) {
  .spotlight-body {
    padding: 22px 16px;
  }
}

.spotlight-body blockquote {
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 20px;
}

.spotlight-body blockquote mark {
  background: rgba(10, 138, 69, 0.15);
  color: var(--green-d);
  padding: 0 4px;
  border-radius: 4px;
}

.scholarship-benefits {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-bottom: 22px;
}

.scholarship-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.benefit-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-l);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--paper-2);
}

.gallery-card.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-card.wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top !important;
  transition: transform 0.4s ease;
}

.gallery-card.tall img {
  object-position: center top !important;
}

.gallery-card.wide img {
  object-position: center 25% !important;
}

/* Global rule ensuring all portrait photos never crop the face */
img[src*="SNP_0382"], img[src*="SNP_0433"], img[src*="j_wanjohi"], img[src*="JAMES"], img[src*="banner_2"] {
  object-position: center top !important;
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, transparent 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   ENROLLMENT SECTION
   ========================================================= */
.enroll-section {
  background: linear-gradient(145deg, #0a8a45 0%, #066632 60%, #0f2563 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.enroll-grid {
  display: grid;
  gap: 32px;
  position: relative;
  z-index: 2;
}

@media (min-width: 960px) {
  .enroll-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }
}

.enroll-info h2 {
  color: #ffffff;
  font-size: clamp(30px, 4.2vw, 46px);
  margin-top: 8px;
}

.enroll-info p {
  color: #d1fae5;
  font-size: 15.5px;
  margin: 12px 0 18px;
}

.enroll-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.enroll-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-d);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-text b {
  display: block;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 2px;
}

.step-text span {
  font-size: 12.5px;
  color: #d1fae5;
}

/* Enrollment Card Form */
.enroll-card {
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 580px) {
  .enroll-card {
    padding: 20px 16px;
  }
}

.enroll-card-header {
  margin-bottom: 18px;
}

.enroll-card-header h3 {
  font-size: 25px;
  color: var(--ink);
}

.enroll-card-header p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
}

.form-group {
  margin-bottom: 13px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 5px;
}

.form-group label i {
  color: var(--red);
  font-style: normal;
}

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 138, 69, 0.15);
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 580px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.phone-field {
  display: flex;
  width: 100%;
}

.phone-prefix {
  display: grid;
  place-items: center;
  padding: 0 11px;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  flex-shrink: 0;
}

.phone-field .form-control {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.scholarship-disclaimer {
  background: var(--gold-l);
  border: 1px dashed var(--gold-d);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: #5c4709;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.form-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  margin-top: 1px;
  flex-shrink: 0;
}

.form-alert {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  display: none;
}

.form-alert.error {
  display: block;
  background: var(--red-l);
  color: var(--red-d);
  border: 1px solid rgba(215, 38, 46, 0.3);
}

.form-alert.success {
  display: block;
  background: var(--green-l);
  color: var(--green-d);
  border: 1px solid rgba(10, 138, 69, 0.3);
}

/* Enrollment Voucher / Success View */
.enroll-success-box {
  display: none;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

.enroll-success-box.active {
  display: block;
}

.success-badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-l);
  color: var(--green);
  font-size: 32px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}

.voucher-card {
  background: var(--paper-2);
  border: 2px dashed var(--green);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
}

.voucher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.voucher-code {
  font-family: monospace;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green-d);
}

.voucher-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
  gap: 8px;
}

.voucher-row span {
  color: var(--muted);
}

.voucher-row strong {
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}

/* =========================================================
   LIVE NOTIFICATION TOAST
   ========================================================= */
.live-toast-container {
  position: fixed;
  bottom: 74px;
  left: 16px;
  z-index: 105;
  pointer-events: none;
  max-width: 90%;
}

.live-toast {
  background: #ffffff;
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 320px;
}

.live-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-l);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

.toast-text {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ink);
}

.toast-text strong {
  color: var(--green-d);
}

.toast-text small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

/* Offline Indicator Banner */
.offline-banner {
  background: var(--red);
  color: #ffffff;
  text-align: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  display: none;
  position: sticky;
  top: 0;
  z-index: 110;
}

.offline-banner.active {
  display: block;
}

/* =========================================================
   FAQ SECTION
   ========================================================= */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--green);
}

.faq-question {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  user-select: none;
  gap: 10px;
}

.faq-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  background: var(--green-l);
  color: var(--green);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid var(--paper-2);
}

.faq-item.active .faq-answer {
  display: block;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-d);
  color: #cbd5e1;
  padding: 50px 0 26px;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand h4 {
  font-size: 23px;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 380px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.footer-logos img {
  height: 42px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 4px 7px;
  border-radius: 6px;
}

.footer-col h5 {
  font-size: 15.5px;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: #cbd5e1;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

/* =========================================================
   STICKY MOBILE ENROLLMENT BAR
   ========================================================= */
.sticky-enroll-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid var(--green);
  box-shadow: 0 -4px 18px rgba(0,0,0,0.1);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 90;
  box-sizing: border-box;
}

@media (min-width: 960px) {
  .sticky-enroll-bar {
    display: none;
  }
}

.sticky-enroll-text {
  font-size: 12px;
  line-height: 1.25;
}

.sticky-enroll-text strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.sticky-enroll-text span {
  color: var(--green);
  font-weight: 700;
}

/* Print Stylesheet */
@media print {
  body * {
    visibility: hidden;
  }
  #enrollSuccessView, #enrollSuccessView * {
    visibility: visible;
  }
  #enrollSuccessView {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .btn, .site-header, .site-footer, .top-bar, .sticky-enroll-bar, .live-toast-container {
    display: none !important;
  }
}
