/* ============================================================
   WELLOADED SCHOOLS — Student Opportunity Hub
   Premium Theme | Mobile-First | SEO-Optimized
   ============================================================ */

/* --- Google Fonts loaded in HTML --- */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --blue:        #123C69;
  --blue-dark:   #0d2d50;
  --blue-mid:    #1a5296;
  --blue-light:  #1e6ac1;
  --green:       #0E9F6E;
  --green-dark:  #0a7a55;
  --green-light: #12c285;
  --yellow:      #F9B233;
  --yellow-dark: #e09520;
  --light-blue:  #EAF4FF;
  --text-dark:   #1F2937;
  --text-muted:  #6B7280;
  --text-light:  #9CA3AF;
  --bg:          #F8FAFC;
  --bg-alt:      #EFF6FF;
  --white:       #FFFFFF;
  --border:      #E5E7EB;
  --border-light:#F3F4F6;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(18,60,105,0.08);
  --shadow:    0 4px 16px rgba(18,60,105,0.10);
  --shadow-md: 0 8px 24px rgba(18,60,105,0.13);
  --shadow-lg: 0 16px 40px rgba(18,60,105,0.15);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: all 0.25s ease;
  --transition-slow: all 0.4s ease;

  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-w: 1200px;
  --section-py: 64px;

  /* Semantic aliases used across components */
  --primary:         #123C69;
  --primary-dark:    #0d2d50;
  --card-bg:         #FFFFFF;
  --heading:         #1F2937;
  --text:            #4B5563;
  --section-alt-bg:  #EFF6FF;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg:              #0f172a;
  --bg-alt:          #1e293b;
  --white:           #1e293b;
  --text-dark:       #f1f5f9;
  --text-muted:      #94a3b8;
  --text-light:      #64748b;
  --border:          #334155;
  --border-light:    #1e293b;
  --light-blue:      #1e3a5f;
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.3);
  --shadow:          0 4px 16px rgba(0,0,0,0.4);
  --shadow-md:       0 8px 24px rgba(0,0,0,0.45);
  /* Semantic aliases — dark overrides */
  --card-bg:         #1e293b;
  --heading:         #f1f5f9;
  --text:            #94a3b8;
  --section-alt-bg:  #1e293b;
}

/* ============================================================
   2. 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);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
}

button { cursor: pointer; border: none; background: none; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

strong { color: var(--text-dark); font-weight: 600; }

/* ============================================================
   4. UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: var(--section-py) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--blue-dark); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--light-blue);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

[data-theme="dark"] .section-badge {
  background: rgba(18,60,105,0.4);
  color: #93c5fd;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

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

.section-subtitle {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(14,159,110,0.35);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(14,159,110,0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(18,60,105,0.3);
}

.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(249,178,51,0.35);
}

.btn-yellow:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Tags & Badges */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.tag-blue    { background: var(--light-blue); color: var(--blue); }
.tag-green   { background: rgba(14,159,110,0.1); color: var(--green-dark); }
.tag-yellow  { background: rgba(249,178,51,0.15); color: #c47d00; }
.tag-orange  { background: rgba(249,115,22,0.1); color: #c2410c; }
.tag-purple  { background: rgba(139,92,246,0.1); color: #6d28d9; }
.tag-red     { background: rgba(239,68,68,0.1); color: #dc2626; }

[data-theme="dark"] .tag-blue   { background: rgba(30,99,177,0.25); color: #93c5fd; }
[data-theme="dark"] .tag-green  { background: rgba(14,159,110,0.2); color: #34d399; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

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

/* ============================================================
   5. READING PROGRESS BAR
   ============================================================ */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================================
   6. ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--blue-mid));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}

.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.announcement-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

.announcement-dot {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 1.5s infinite;
}

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

.announcement-text {
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.announcement-close {
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  flex-shrink: 0;
  transition: var(--transition);
}

.announcement-close:hover { color: var(--white); }

/* ============================================================
   7. HEADER / NAVIGATION
   ============================================================ */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 900;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue);
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Primary Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover {
  color: var(--blue);
  background: var(--light-blue);
}

.nav-link.active {
  color: var(--blue);
  font-weight: 600;
}

/* Dropdown */
.nav-item { position: relative; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--text-dark);
  border-radius: var(--radius-xs);
}

.nav-dropdown a:hover {
  background: var(--light-blue);
  color: var(--blue);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-btn, .dark-mode-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
  font-size: 0.9rem;
}

.search-btn:hover, .dark-mode-btn:hover {
  background: var(--light-blue);
  color: var(--blue);
  border-color: var(--blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
}

.search-box h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.search-input-wrap {
  display: flex;
  gap: 10px;
}

.search-input-wrap input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 1rem;
  outline: none;
  background: var(--bg);
  color: var(--text-dark);
}

.search-input-wrap input:focus {
  border-color: var(--blue);
}

.search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--white);
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  z-index: 950;
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
  padding: 24px 0;
}

.mobile-nav.active { transform: translateX(0); }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 940;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active { opacity: 1; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.mobile-nav-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: var(--bg);
  font-size: 1rem;
  color: var(--text-dark);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-weight: 500;
  color: var(--text-dark);
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--blue);
  background: var(--light-blue);
  border-left-color: var(--blue);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 20px;
}

.mobile-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 8px 20px 4px;
}

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-mid) 100%);
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14,159,110,0.15), transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249,178,51,0.1), transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}

/* Hero Cards */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

/* Hero media stack — photo on top, video below */
.hero-media-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hero-media-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  height: 180px;
}
.hero-media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.hero-media-photo-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.hero-media-video {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  height: 260px;
}
.hero-media-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-media-video-label {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(18,60,105,0.8);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.hero-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: float-up 0.6s ease both;
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: translateX(-4px);
}

.hero-card:nth-child(1) { animation-delay: 0.1s; margin-right: 0; }
.hero-card:nth-child(2) { animation-delay: 0.2s; margin-right: 20px; }
.hero-card:nth-child(3) { animation-delay: 0.3s; margin-right: 0; }
.hero-card:nth-child(4) { animation-delay: 0.4s; margin-right: 30px; }

@keyframes float-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-card-icon.blue   { background: var(--light-blue); }
.hero-card-icon.green  { background: rgba(14,159,110,0.1); }
.hero-card-icon.yellow { background: rgba(249,178,51,0.15); }
.hero-card-icon.purple { background: rgba(139,92,246,0.1); }

.hero-card-body { flex: 1; }

.hero-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.hero-card-label.blue   { color: var(--blue); }
.hero-card-label.green  { color: var(--green); }
.hero-card-label.yellow { color: #c47d00; }
.hero-card-label.purple { color: #6d28d9; }

.hero-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.hero-card-meta {
  font-size: 0.73rem;
  color: var(--text-light);
}

.hero-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.hero-card-badge.new    { background: rgba(14,159,110,0.1); color: var(--green); }
.hero-card-badge.hot    { background: rgba(249,115,22,0.1); color: #ea580c; }
.hero-card-badge.update { background: var(--light-blue); color: var(--blue); }
.hero-card-badge.tip    { background: rgba(139,92,246,0.1); color: #7c3aed; }

/* ============================================================
   9. STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--blue);
  padding: 20px 0;
}

.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 160px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-info strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}

.stat-info span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* ============================================================
   10. CATEGORY CARDS
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

/* Category card background media */
.cat-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Dark gradient overlay so text is always readable */
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.10) 100%);
  z-index: 1;
}

/* Text content sits above media + overlay */
.cat-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px 16px 18px;
  text-align: center;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color, var(--blue));
  opacity: 0;
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--cat-color, var(--blue));
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
  background: var(--cat-bg, var(--light-blue));
  transition: var(--transition);
}

.category-card:hover .category-icon-wrap {
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.category-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.82);
  margin: 0 0 12px;
  line-height: 1.5;
}

.category-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.category-icon-wrap {
  background: rgba(255,255,255,0.18) !important;
  color: #fff;
}

/* ============================================================
   11. POST CARDS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.post-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.post-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.post-card-microcopy {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.4;
}

.post-card h3 a:hover { color: var(--blue); }

.post-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.6;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.post-card-meta img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

.read-more:hover {
  color: var(--green);
  gap: 7px;
}

/* Featured Post Card */
.post-card-featured {
  grid-column: span 2;
  flex-direction: row;
}

.post-card-featured .post-card-image {
  width: 45%;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.post-card-featured .post-card-body {
  padding: 28px;
}

.post-card-featured h3 {
  font-size: 1.2rem;
}

/* ============================================================
   12. AD SPACES
   ============================================================ */
.ad-space {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.ad-space-banner {
  height: 90px;
  margin: 24px 0;
}

.ad-space-rectangle {
  height: 250px;
  margin: 20px 0;
}

.ad-space-leaderboard {
  height: 90px;
  width: 100%;
  margin: 20px 0;
}

/* ============================================================
   13. EXAM UPDATES SECTION
   ============================================================ */
.exam-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: var(--bg);
  padding: 6px;
  border-radius: var(--radius);
  display: inline-flex;
  border: 1px solid var(--border);
}

.exam-tab {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
}

.exam-tab.active {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.exam-tab:hover:not(.active) {
  color: var(--blue);
  background: var(--light-blue);
}

.exam-panel { display: none; }
.exam-panel.active { display: block; }

.exam-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.exam-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--exam-color, var(--blue));
}

.exam-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.exam-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.exam-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.exam-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.exam-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ============================================================
   14. GUIDES SECTION
   ============================================================ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.guide-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.guide-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.guide-card:hover::after {
  transform: scaleX(1);
}

.guide-icon {
  width: 52px;
  height: 52px;
  background: var(--light-blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.guide-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.guide-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.guide-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.guide-link:hover { color: var(--green); gap: 8px; }

/* ============================================================
   15. COUNTRY SECTION
   ============================================================ */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.country-card {
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
}

.country-flag-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform 0.4s ease;
}

.country-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}

.country-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 14px 12px 16px;
}

.country-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.country-card:hover .country-flag-bg {
  transform: scale(1.06);
}

.country-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}

.country-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.82);
}

/* ============================================================
   16. TRUST SECTION
   ============================================================ */
.trust-section {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  position: relative;
  overflow: hidden;
}

.trust-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14,159,110,0.12), transparent 70%);
  border-radius: 50%;
}

.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.trust-content .section-badge {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}

.trust-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.trust-content p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}

.trust-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: var(--transition);
}

.trust-point:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

.trust-point-icon {
  width: 38px;
  height: 38px;
  background: rgba(14,159,110,0.2);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--green-light);
}

.trust-point-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.trust-point-body span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.trust-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Side-by-side: cards left, phone right */
.trust-media-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

/* Scrolling cards column — takes 55%, height matches parent */
.trust-floating-cards {
  flex: 0 0 55%;
  overflow: hidden;
  position: relative;
}

.trust-floating-cards-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: scrollTicker 25s linear infinite;
}

/* ---- Phone mockup ---- */
.trust-phone-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.trust-phone {
  width: 180px;
  background: #1a1a2e;
  border-radius: 36px;
  border: 6px solid #2e2e4a;
  outline: 2px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px #111,
    8px 8px 30px rgba(0,0,0,0.7),
    -2px -2px 10px rgba(255,255,255,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rotatePhone 8s ease-in-out infinite;
  transform-style: preserve-3d;
  position: relative;
  z-index: 10;
}

/* Phone side buttons */
.trust-phone::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 60px;
  width: 4px;
  height: 28px;
  background: #2e2e4a;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 36px 0 #2e2e4a;
}
.trust-phone::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 80px;
  width: 4px;
  height: 44px;
  background: #2e2e4a;
  border-radius: 0 2px 2px 0;
}

@keyframes rotatePhone {
  0%   { transform: rotateY(0deg); }
  25%  { transform: rotateY(18deg); }
  50%  { transform: rotateY(0deg); }
  75%  { transform: rotateY(-18deg); }
  100% { transform: rotateY(0deg); }
}

.trust-phone-bar {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
  background: #111122;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  justify-content: flex-start;
  align-items: center;
}

.trust-phone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.trust-phone-dot:nth-child(1) { background: #ef4444; }
.trust-phone-dot:nth-child(2) { background: #f59e0b; }
.trust-phone-dot:nth-child(3) { background: #10b981; }

.trust-phone-screen {
  padding: 14px;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 300px;
}

.trust-phone-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 0;
}

.trust-phone-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,15,35,0.72) 0%, rgba(5,15,35,0.55) 100%);
  z-index: 1;
}

.trust-phone-header,
.trust-phone-ticker-wrap {
  position: relative;
  z-index: 2;
}

.trust-phone-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-phone-ticker-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.trust-phone-ticker {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: scrollTicker 25s linear infinite;
}

@keyframes scrollTicker {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.ticker-item {
  font-size: 0.73rem;
  font-weight: 500;
  color: #fff;
  padding: 8px 10px;
  margin-bottom: 7px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.ticker-tag {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ticker-tag.scholarship { background: #F9B233; color: #000; }
.ticker-tag.jamb        { background: #10b981; color: #fff; }
.ticker-tag.grant       { background: #f59e0b; color: #000; }
.ticker-tag.waec        { background: #ef4444; color: #fff; }
.ticker-tag.neco        { background: #0891B2; color: #fff; }
.ticker-tag.admission   { background: #a78bfa; color: #000; }
.ticker-tag.loan        { background: #34d399; color: #000; }

/* ---- Stats grid ---- */
.trust-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Phone + ticker row — fixed height so it doesn't overflow */
.trust-media-row {
  display: flex;
  gap: 12px;
  height: 200px;
  overflow: hidden;
}

.trust-floating-cards {
  flex: 0 0 55%;
  overflow: hidden;
  height: 200px;
}

.trust-floating-cards-inner {
  display: flex;
  flex-direction: column;
  animation: scrollTicker 25s linear infinite;
}

.trust-phone-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

/* Stat cards at natural size */
.trust-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ---- Media stat cards ---- */
.trust-num-card--media {
  position: relative;
  overflow: hidden;
}

.trust-num-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.trust-num-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 50, 0.68);
  z-index: 1;
}

.trust-num-card--media .number,
.trust-num-card--media .label {
  position: relative;
  z-index: 2;
}

.trust-num-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.trust-num-card:hover {
  background: rgba(255,255,255,0.14);
}

.trust-num-card .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
  display: block;
  margin-bottom: 6px;
}

.trust-num-card .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ============================================================
   17. NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  border-radius: 50%;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.newsletter-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.newsletter-content h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.newsletter-content p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.newsletter-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.newsletter-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.newsletter-feature::before {
  content: '✓';
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.newsletter-form-wrap {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.newsletter-form-wrap h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.newsletter-form-wrap p {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form input {
  padding: 13px 18px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

.newsletter-form input:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.2);
}

.newsletter-form button {
  background: var(--white);
  color: var(--green-dark);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.newsletter-form button:hover {
  background: var(--yellow);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.newsletter-privacy {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-top: 10px;
}

/* ============================================================
   18. FOOTER
   ============================================================ */
.site-footer {
  background: var(--blue-dark);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .site-logo {
  margin-bottom: 16px;
}

.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.5); }

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

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

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-links a::before {
  content: '→';
  font-size: 0.7rem;
  opacity: 0;
  transition: var(--transition);
}

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

.footer-links a:hover::before {
  opacity: 1;
}

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

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-legal a:hover { color: var(--yellow); }

/* ============================================================
   19. BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 800;
  cursor: pointer;
  border: none;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--green);
  transform: translateY(-2px);
}

/* ============================================================
   20. BLOG POST PAGE
   ============================================================ */
.post-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 48px 0;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.post-breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.post-breadcrumb a:hover { color: var(--yellow); }

.post-breadcrumb span {
  color: rgba(255,255,255,0.4);
}

.post-breadcrumb .current {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.post-hero h1 {
  color: var(--white);
  max-width: 800px;
  margin-bottom: 20px;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.author-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Post Layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px;
}

/* Post Content */
.post-content-area {
  min-width: 0;
}

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

/* Key Info Box */
.key-info-box {
  background: var(--light-blue);
  border: 1.5px solid rgba(18,60,105,0.15);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}

[data-theme="dark"] .key-info-box {
  background: rgba(18,60,105,0.25);
  border-color: rgba(18,60,105,0.5);
}

.key-info-box h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 10px;
}

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

.key-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.key-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.key-info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Table of Contents */
.toc-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 28px;
}

[data-theme="dark"] .toc-box {
  background: var(--bg-alt);
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.toc-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-toggle {
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
}

.toc-list {
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  margin-bottom: 6px;
}

.toc-list li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 8px;
  transition: var(--transition);
}

.toc-list li a::before {
  content: counter(toc) '.';
  color: var(--blue);
  font-weight: 600;
  font-size: 0.78rem;
  min-width: 18px;
}

.toc-list li a:hover {
  color: var(--blue);
  border-left-color: var(--blue);
}

/* Article Body */
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-top: 8px;
  color: var(--blue-dark);
}

[data-theme="dark"] .article-body h2 { color: #93c5fd; }

.article-body h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 18px;
  color: var(--text-dark);
}

.article-body ul, .article-body ol {
  margin: 0 0 18px 20px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 8px;
  color: var(--text-dark);
  padding-left: 6px;
}

.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover { color: var(--green); }

/* Step boxes */
.step-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .step-box {
  background: var(--bg-alt);
  border-color: var(--border);
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-body h4 { margin-bottom: 6px; font-size: 1rem; }
.step-body p { margin: 0; font-size: 0.9rem; }

/* Notice boxes */
.notice-box {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.notice-box.info {
  background: var(--light-blue);
  border-left: 4px solid var(--blue);
}

.notice-box.warning {
  background: rgba(249,178,51,0.1);
  border-left: 4px solid var(--yellow);
}

.notice-box.danger {
  background: rgba(239,68,68,0.07);
  border-left: 4px solid #dc2626;
}

.notice-box.success {
  background: rgba(14,159,110,0.08);
  border-left: 4px solid var(--green);
}

[data-theme="dark"] .notice-box.info    { background: rgba(18,60,105,0.3); }
[data-theme="dark"] .notice-box.warning { background: rgba(249,178,51,0.08); }
[data-theme="dark"] .notice-box.danger  { background: rgba(239,68,68,0.08); }
[data-theme="dark"] .notice-box.success { background: rgba(14,159,110,0.1); }

.notice-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

.notice-body strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.notice-body p { font-size: 0.875rem; margin: 0; }

/* Scholarship info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th, .info-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.info-table th {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  width: 35%;
}

.info-table td {
  background: var(--white);
  color: var(--text-dark);
}

[data-theme="dark"] .info-table td {
  background: var(--bg-alt);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Section */
.faq-section {
  margin: 36px 0;
}

.faq-section h2 {
  margin-bottom: 20px;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
}

[data-theme="dark"] .faq-item {
  background: var(--bg-alt);
}

.faq-item.open {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  user-select: none;
}

.faq-item.open .faq-question { color: var(--blue); }

.faq-icon {
  width: 24px;
  height: 24px;
  background: var(--light-blue);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.open .faq-icon { background: var(--blue); color: var(--white); transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Social Share */
.social-share {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

[data-theme="dark"] .social-share { background: var(--bg-alt); }

.social-share span {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.twitter  { background: #1da1f2; color: #fff; }
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.copy     { background: var(--bg); color: var(--text-dark); border: 1.5px solid var(--border); }

.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* Author Box */
.author-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

[data-theme="dark"] .author-box { background: var(--bg-alt); }

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-role {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
}

.author-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Disclaimer Box */
.disclaimer-box {
  background: rgba(249,178,51,0.08);
  border: 1.5px solid rgba(249,178,51,0.3);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.disclaimer-box-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Related Posts */
.related-posts { margin: 40px 0; }

.related-posts h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Post Sidebar */
.post-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .sidebar-widget { background: var(--bg-alt); }

.sidebar-widget h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  color: var(--blue);
}

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

.sidebar-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sidebar-post-img {
  width: 64px;
  height: 56px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.sidebar-post-info h5 {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.sidebar-post-info h5 a:hover { color: var(--blue); }

.sidebar-post-date {
  font-size: 0.73rem;
  color: var(--text-light);
}

.sidebar-category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  color: var(--text-dark);
  background: var(--bg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.sidebar-category-list a:hover {
  background: var(--light-blue);
  color: var(--blue);
  border-color: var(--blue);
}

.sidebar-category-list .count {
  font-size: 0.72rem;
  background: var(--light-blue);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* ============================================================
   21. CATEGORY PAGE
   ============================================================ */
.category-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 48px 0;
  text-align: center;
}

.category-hero h1 { color: var(--white); margin-bottom: 10px; }
.category-hero p  { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 20px; }

.category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.category-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  max-width: var(--max-w);
  margin: 40px auto;
  padding: 0 20px;
}

.category-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.category-posts-header h2 {
  font-size: 1.15rem;
}

.sort-select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--white);
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
}

[data-theme="dark"] .sort-select { background: var(--bg-alt); border-color: var(--border); }

.posts-list { display: flex; flex-direction: column; gap: 20px; }

.post-list-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  padding: 20px;
  transition: var(--transition);
  overflow: hidden;
}

[data-theme="dark"] .post-list-card { background: var(--bg-alt); }

.post-list-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-left-color: var(--blue);
}

.post-list-img {
  width: 140px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.post-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-list-card:hover .post-list-img img { transform: scale(1.05); }

.post-list-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.post-list-body { flex: 1; min-width: 0; }

.post-list-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.post-list-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.post-list-body h3 a:hover { color: var(--blue); }

.post-list-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-list-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ============================================================
   22. ABOUT PAGE
   ============================================================ */
.about-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 80px 0;
  text-align: center;
}

.about-hero h1 { color: var(--white); margin-bottom: 16px; }
.about-hero p  { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.about-mission {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  margin: -40px auto 0;
  max-width: 900px;
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .about-mission { background: var(--bg-alt); }

.about-mission h2 { color: var(--blue); margin-bottom: 16px; }
.about-mission p  { font-size: 1.05rem; line-height: 1.8; margin-bottom: 0; }

.about-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.cover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.cover-item span { font-size: 1.2rem; }
.cover-item p    { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin: 0; }

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

[data-theme="dark"] .value-card { background: var(--bg-alt); }

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

.value-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================================
   23. CONTACT PAGE
   ============================================================ */
.contact-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 64px 0;
  text-align: center;
}

.contact-hero h1 { color: var(--white); margin-bottom: 12px; }
.contact-hero p  { color: rgba(255,255,255,0.8); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  max-width: var(--max-w);
  margin: 60px auto;
  padding: 0 20px;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p  { margin-bottom: 28px; font-size: 0.95rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

[data-theme="dark"] .contact-detail { background: var(--bg-alt); }

.contact-detail:hover {
  border-color: var(--blue);
  transform: translateX(4px);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--light-blue);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail-body strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-detail-body span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.contact-social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .contact-social-btn { background: var(--bg-alt); }

.contact-social-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border-light);
}

[data-theme="dark"] .contact-form-card { background: var(--bg-alt); }

.contact-form-card h3 { margin-bottom: 24px; }

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(18,60,105,0.08);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-dark);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

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

/* ============================================================
   24. LEGAL PAGES
   ============================================================ */
.legal-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 60px 0;
  text-align: center;
}

.legal-hero h1  { color: var(--white); margin-bottom: 10px; }
.legal-hero p   { color: rgba(255,255,255,0.75); }

.legal-content {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--blue);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

[data-theme="dark"] .legal-content h2 { color: #93c5fd; border-color: var(--border); }

.legal-content h3 {
  font-size: 1.05rem;
  margin: 22px 0 10px;
}

.legal-content p {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  margin: 0 0 16px 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.7;
}

.legal-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 36px;
}

/* ============================================================
   25. 404 PAGE
   ============================================================ */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.page-404-inner {
  max-width: 520px;
}

.page-404-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  display: block;
}

.page-404-num {
  font-family: var(--font-heading);
  font-size: 7rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-404 h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.page-404 p {
  font-size: 1rem;
  margin-bottom: 32px;
}

.page-404-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-404-suggestions {
  margin-top: 48px;
  text-align: left;
}

.page-404-suggestions h4 {
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ============================================================
   26. SEARCH RESULTS PAGE
   ============================================================ */
.search-hero {
  background: var(--light-blue);
  padding: 48px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.search-hero h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.search-form-large {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 10px;
}

.search-form-large input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 1rem;
  outline: none;
  background: var(--white);
  color: var(--text-dark);
}

.search-form-large input:focus {
  border-color: var(--blue);
}

.search-results-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.search-results-info strong { color: var(--blue); }

/* ============================================================
   27. IN-FEED ADS
   ============================================================ */
.infeed-ad {
  background: linear-gradient(135deg, var(--light-blue), #dbeafe);
  border: 2px dashed rgba(18,60,105,0.2);
  border-radius: var(--radius);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ============================================================
   28. DARK MODE TRANSITION
   ============================================================ */
body, .site-header, .card, .post-card, .category-card,
.guide-card, .country-card, .sidebar-widget, .faq-item,
.author-box, .social-share, .contact-form-card, .toc-box {
  transition: background 0.3s ease, color 0.3s ease,
              border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================================
   28a. COLORFUL OVERRIDES — Vibrant Cards & Sections
   ============================================================ */

/* ---- Global polish ---- */

/* Smoother scrolling */
html { scroll-behavior: smooth; }

/* Better focus rings for accessibility */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Post cards — lift + glow on hover */
.post-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(18,60,105,0.15);
}

/* Guide cards — subtle scale */
.guide-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* Country cards — scale on hover */
.country-card:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Section titles — gradient accent on span */
.section-title span {
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Announcement bar — pulse the dot */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.hero-badge-dot { animation: pulseDot 1.8s ease-in-out infinite; }

/* Stats bar numbers — bold pop */
.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Newsletter input focus glow */
.newsletter-form input:focus {
  box-shadow: 0 0 0 3px rgba(14,159,110,0.25);
}

/* Back-to-top — smoother appearance */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:not(.visible) {
  transform: translateY(8px);
}

/* Trust num cards — subtle scale */
.trust-num-card {
  transition: transform 0.25s ease, background 0.25s ease;
}
.trust-num-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.14);
}

/* Exam tabs — active glow */
.exam-tab.active {
  box-shadow: 0 4px 14px rgba(18,60,105,0.25);
}

/* Sticky header shadow on scroll */
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

/* Mobile nav smoother open/close */
.mobile-nav {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* FAQ items — smooth open */
.faq-answer {
  transition: max-height 0.35s ease, padding 0.35s ease;
}

/* Footer links — underline slide on hover */
.footer-links a {
  position: relative;
  display: inline-block;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--yellow);
  transition: width 0.25s ease;
}
.footer-links a:hover::after { width: 100%; }

/* Tags — subtle scale on hover */
.tag:hover { transform: scale(1.05); }

/* Breadcrumb styling improvement */
.breadcrumb { font-size: 0.8rem; }

/* Read progress bar — thicker & glowing */
#progress-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow));
  box-shadow: 0 0 8px rgba(14,159,110,0.5);
}

/* Image lazy load fade-in */
img[loading="lazy"] {
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded { opacity: 1; }

/* Mobile touch — remove tap highlight */
a, button { -webkit-tap-highlight-color: transparent; }

/* --- Vibrant Category Cards --- */
.category-card::before { display: none; }

.cat-scholarships { background: linear-gradient(145deg, #0d3158, #123C69); border-color: transparent; }
.cat-grants       { background: linear-gradient(145deg, #065f46, #0E9F6E); border-color: transparent; }
.cat-bursaries    { background: linear-gradient(145deg, #4c1d95, #7C3AED); border-color: transparent; }
.cat-loans        { background: linear-gradient(145deg, #92400e, #D97706); border-color: transparent; }
.cat-waec         { background: linear-gradient(145deg, #7f1d1d, #DC2626); border-color: transparent; }
.cat-neco         { background: linear-gradient(145deg, #0c4a6e, #0891B2); border-color: transparent; }
.cat-jamb         { background: linear-gradient(145deg, #064e3b, #059669); border-color: transparent; }
.cat-admission    { background: linear-gradient(145deg, #78350f, #F59E0B); border-color: transparent; }

.cat-scholarships .category-icon-wrap,
.cat-grants .category-icon-wrap,
.cat-bursaries .category-icon-wrap,
.cat-loans .category-icon-wrap,
.cat-waec .category-icon-wrap,
.cat-neco .category-icon-wrap,
.cat-jamb .category-icon-wrap,
.cat-admission .category-icon-wrap {
  background: rgba(255,255,255,0.18);
}

.cat-scholarships h3, .cat-scholarships p,
.cat-grants h3,       .cat-grants p,
.cat-bursaries h3,    .cat-bursaries p,
.cat-loans h3,        .cat-loans p,
.cat-waec h3,         .cat-waec p,
.cat-neco h3,         .cat-neco p,
.cat-jamb h3,         .cat-jamb p,
.cat-admission h3,    .cat-admission p {
  color: rgba(255,255,255,0.9);
}

.cat-scholarships p, .cat-grants p, .cat-bursaries p,
.cat-loans p, .cat-waec p, .cat-neco p, .cat-jamb p, .cat-admission p {
  color: rgba(255,255,255,0.72);
}

.cat-scholarships .category-count,
.cat-grants .category-count,
.cat-bursaries .category-count,
.cat-loans .category-count,
.cat-waec .category-count,
.cat-neco .category-count,
.cat-jamb .category-count,
.cat-admission .category-count {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.category-card:is(.cat-scholarships,.cat-grants,.cat-bursaries,.cat-loans,
                   .cat-waec,.cat-neco,.cat-jamb,.cat-admission):hover {
  filter: brightness(1.12);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
  border-color: transparent;
}

/* --- Guide Cards with Images --- */
.guide-card { padding: 0; overflow: hidden; }

.guide-card-image {
  height: 170px;
  overflow: hidden;
  position: relative;
}

.guide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.guide-card:hover .guide-card-image img {
  transform: scale(1.07);
}

.guide-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.35) 100%);
}

.guide-card-body {
  padding: 22px 22px 24px;
}

.guide-card-body .guide-icon {
  margin-bottom: 14px;
}

/* --- Guide cards with full media background (cards 3-6) --- */
.guide-card--media {
  padding: 0;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.guide-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 0;
}

.guide-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.08) 100%);
  z-index: 1;
}

.guide-bg-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px 22px 24px;
}

.guide-card--media .guide-icon {
  background: rgba(255,255,255,0.18);
  margin-bottom: 12px;
}

.guide-card--media h3 {
  color: #fff;
}

.guide-card--media p {
  color: rgba(255,255,255,0.82);
}

.guide-card--media .guide-link {
  color: #F9B233;
}

/* --- Colorful Tags — solid backgrounds --- */
.tag-blue   { background: #123C69; color: #fff; }
.tag-green  { background: #0E9F6E; color: #fff; }
.tag-yellow { background: #D97706; color: #fff; }
.tag-orange { background: #EA580C; color: #fff; }
.tag-purple { background: #7C3AED; color: #fff; }
.tag-red    { background: #DC2626; color: #fff; }

[data-theme="dark"] .tag-blue,
[data-theme="dark"] .tag-green,
[data-theme="dark"] .tag-yellow,
[data-theme="dark"] .tag-orange,
[data-theme="dark"] .tag-purple,
[data-theme="dark"] .tag-red { opacity: 0.9; }

/* --- Colorful Section Headers --- */
.section-title .highlight-blue   { color: var(--blue); }
.section-title .highlight-green  { color: var(--green); }
.section-title .highlight-yellow { color: var(--yellow); }

/* --- Colorful Country Cards --- */
.country-ng { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #86efac; }
.country-gh { background: linear-gradient(135deg, #fefce8, #fef08a40); border-color: #fde047; }
.country-ke { background: linear-gradient(135deg, #fef2f2, #fecaca40); border-color: #fca5a5; }
.country-in { background: linear-gradient(135deg, #fff7ed, #fed7aa40); border-color: #fdba74; }
.country-za { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #93c5fd; }
.country-ca { background: linear-gradient(135deg, #fef2f2, #fecaca30); border-color: #f87171; }
.country-uk { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #93c5fd; }
.country-us { background: linear-gradient(135deg, #f0f9ff, #bae6fd30); border-color: #7dd3fc; }

.country-ng:hover { background: linear-gradient(135deg, #dcfce7, #bbf7d0); border-color: #4ade80; }
.country-gh:hover { background: linear-gradient(135deg, #fefce8, #fef08a); border-color: #facc15; }
.country-ke:hover { background: linear-gradient(135deg, #fef2f2, #fecaca); border-color: #f87171; }
.country-in:hover { background: linear-gradient(135deg, #fff7ed, #fed7aa); border-color: #fb923c; }
.country-za:hover { background: linear-gradient(135deg, #eff6ff, #bfdbfe); border-color: #60a5fa; }
.country-ca:hover { background: linear-gradient(135deg, #fff1f2, #fecdd3); border-color: #fb7185; }
.country-uk:hover { background: linear-gradient(135deg, #eff6ff, #bfdbfe); border-color: #3b82f6; }
.country-us:hover { background: linear-gradient(135deg, #f0f9ff, #bae6fd); border-color: #38bdf8; }

/* Remove default country card hover override */
.country-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* --- Colorful Exam Cards --- */
.exam-card {
  border-left-width: 5px;
}

/* --- Colorful Section Backgrounds --- */
.section-guides-bg {
  background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
}

.section-opportunities-bg {
  background: linear-gradient(160deg, #fafafa 0%, #f0f9ff 100%);
}

/* --- Post card image rounded top corners --- */
.post-card-image {
  border-radius: var(--radius) var(--radius) 0 0;
}

/* --- Colorful hero badge pulse ring --- */
.hero-badge-dot::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  animation: pulse-ring 1.5s infinite;
  top: -2px;
  left: -2px;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-badge-dot { position: relative; }

/* --- Colorful stats bar items --- */
.stat-icon {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================================
   28b. FADE-IN ANIMATION (class-based, no invisible gaps)
   ============================================================ */
.fade-in--ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in--visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================================
   29. RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-py: 60px; }

  .categories-grid  { grid-template-columns: repeat(4, 1fr); }
  .posts-grid       { grid-template-columns: repeat(2, 1fr); }
  .post-card-featured { grid-column: span 2; }
  .guides-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-inner     { grid-template-columns: 1fr 1fr; gap: 28px; }
  .exam-cards       { grid-template-columns: 1fr; }
  .hero-inner       { gap: 40px; }
  .trust-inner      { gap: 40px; }
  .newsletter-inner { gap: 32px; }
  .post-layout      { grid-template-columns: 1fr 280px; gap: 28px; }
  .related-grid     { grid-template-columns: repeat(2, 1fr); }
  .about-covers     { grid-template-columns: repeat(2, 1fr); }
  .about-values     { grid-template-columns: repeat(2, 1fr); }
  .countries-grid   { grid-template-columns: repeat(4, 1fr); }
  .contact-layout   { gap: 28px; }
  .primary-nav      { display: none; }
  .hamburger        { display: flex; }
  .mobile-nav       { display: block; }
  .mobile-nav-overlay { display: block; }
}

/* ============================================================
   30. RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-py: 48px; }

  /* ---- Hero ---- */
  .hero { padding: 48px 0 40px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .hero-actions  { justify-content: center; flex-wrap: wrap; }
  .hero-stats    { justify-content: center; }
  .hero-visual   { align-items: center; }
  .hero-media-stack { gap: 10px; }
  .hero-media-photo { aspect-ratio: 16/9; }
  .hero-media-video { height: 180px; }

  /* ---- Stats bar ---- */
  .stats-bar-inner  { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .stat-divider     { display: none; }
  .stat-item        { min-width: 40%; justify-content: center; }

  /* ---- Categories ---- */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card   { min-height: 160px; }

  /* ---- Posts ---- */
  .posts-grid { grid-template-columns: 1fr; }
  .post-card-featured {
    grid-column: span 1;
    flex-direction: column;
  }
  .post-card-featured .post-card-image {
    width: 100%;
    aspect-ratio: 16/9;
  }

  /* ---- Guides ---- */
  .guides-grid   { grid-template-columns: 1fr; }
  .guide-card--media { min-height: 220px; }

  /* ---- Exam tabs ---- */
  .exam-cards    { grid-template-columns: 1fr; }
  .exam-tabs     { width: 100%; justify-content: stretch; }
  .exam-tab      { flex: 1; text-align: center; padding: 10px 8px; font-size: 0.78rem; }

  /* ---- Countries ---- */
  .countries-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .country-card   { min-height: 120px; }

  /* ---- Trust ---- */
  .trust-inner { grid-template-columns: 1fr; gap: 28px; }
  .trust-right  { gap: 12px; }
  .trust-media-row { height: 160px; gap: 10px; }
  .trust-floating-cards { height: 160px; }
  .trust-phone  { width: 120px; border-radius: 24px; border-width: 4px; }
  .trust-phone-screen { min-height: 120px; padding: 10px; }
  .trust-phone-header { font-size: 0.65rem; margin-bottom: 6px; }
  .trust-numbers { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust-num-card { padding: 16px 12px; }
  .trust-num-card .number { font-size: 1.5rem; }
  .ticker-item { font-size: 0.65rem; padding: 6px 8px; }
  .ticker-tag  { font-size: 0.55rem; padding: 1px 5px; }

  /* ---- Newsletter ---- */
  .newsletter-inner { grid-template-columns: 1fr; text-align: center; }
  .newsletter-form  { flex-direction: column; }
  .newsletter-form input { border-radius: var(--radius); }
  .newsletter-form button { border-radius: var(--radius); width: 100%; }

  /* ---- Footer ---- */
  .footer-inner  { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* ---- Blog post ---- */
  .post-layout   { grid-template-columns: 1fr; padding: 24px 16px; }
  .post-sidebar  { position: static; }
  .key-info-grid { grid-template-columns: 1fr; }
  .related-grid  { grid-template-columns: 1fr; }
  .share-btns    { gap: 6px; flex-wrap: wrap; }
  .share-btn     { padding: 7px 12px; font-size: 0.75rem; }

  /* ---- Category page ---- */
  .category-layout { grid-template-columns: 1fr; }
  .post-list-card  { flex-direction: column; gap: 14px; }
  .post-list-img   { width: 100%; height: 180px; }

  /* ---- About / Contact ---- */
  .about-covers   { grid-template-columns: 1fr; }
  .about-values   { grid-template-columns: 1fr; }
  .about-mission  { padding: 28px 20px; margin: -20px 16px 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px 18px; }
  .form-row       { grid-template-columns: 1fr; }

  /* ---- Misc ---- */
  .section-header { margin-bottom: 28px; }
  .page-404-num   { font-size: 5rem; }
  .page-404 h2    { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  :root { --section-py: 40px; }

  .hero h1        { font-size: 1.55rem; line-height: 1.3; }
  .hero-badge     { font-size: 0.72rem; }
  .hero-desc      { font-size: 0.88rem; }
  .hero-stat-num  { font-size: 1.4rem; }
  .hero-media-video { height: 150px; }

  .section-title  { font-size: 1.25rem; }
  .section-subtitle { font-size: 0.85rem; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card   { min-height: 140px; }
  .cat-content     { padding: 14px 10px 12px; }
  .cat-content h3  { font-size: 0.82rem; }
  .cat-content p   { display: none; }

  .countries-grid  { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .country-card    { min-height: 100px; }
  .country-name    { font-size: 0.82rem; }
  .country-count   { font-size: 0.68rem; }

  .guide-card--media { min-height: 190px; }
  .guide-bg-content  { padding: 14px 14px 16px; }
  .guide-card--media h3 { font-size: 0.88rem; }
  .guide-card--media p  { font-size: 0.75rem; }

  .trust-media-row { height: 140px; }
  .trust-floating-cards { height: 140px; }
  .trust-phone     { width: 100px; border-radius: 20px; border-width: 3px; }

  .btn-lg          { padding: 12px 20px; font-size: 0.9rem; }
  #back-to-top     { bottom: 16px; right: 16px; width: 38px; height: 38px; }

  .post-card-body  { padding: 16px; }
  .post-card h3    { font-size: 0.9rem; }

  .announcement-bar .marquee { font-size: 0.75rem; }

  .footer-brand p  { font-size: 0.82rem; }
  .footer-links h4 { font-size: 0.82rem; }
  .footer-links a  { font-size: 0.82rem; }
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot {
  width: 100%;
  overflow: hidden;
  text-align: center;
  clear: both;
}
.ad-slot--ad-above-fold {
  background: var(--section-alt-bg, #f8f9fa);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.ad-slot--ad-in-content {
  margin: 28px 0;
}
.ad-slot--ad-sidebar {
  margin-bottom: 24px;
}
.ad-slot--ad-related-posts {
  margin: 28px 0;
}
.ad-slot--ad-footer-banner {
  background: var(--section-alt-bg, #f8f9fa);
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

/* ============================================================
   INLINE WHATSAPP / CTA BOX (in post content)
   ============================================================ */
.inline-cta {
  background: linear-gradient(135deg, #075e54, #128c7e);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
}
.inline-cta-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.inline-cta-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.inline-cta-text {
  flex: 1;
  min-width: 200px;
}
.inline-cta-text strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.inline-cta-text span {
  display: block;
  color: rgba(255,255,255,0.82);
  font-size: 0.83rem;
  line-height: 1.5;
}
.inline-cta-btn {
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.inline-cta-btn:hover {
  background: #1ebe5c;
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .inline-cta-inner { flex-direction: column; gap: 12px; }
  .inline-cta-btn   { width: 100%; text-align: center; }
}

/* ============================================================
   MOBILE VIDEO PERFORMANCE
   Disable autoplay background videos on narrow screens
   to protect Core Web Vitals and mobile data usage.
   ============================================================ */
@media (max-width: 640px) {
  .cat-media[src$=".mp4"],
  .guide-bg-media[src$=".mp4"],
  .hero-media-video video,
  .trust-phone-video {
    display: none;
  }
  /* Show the card's CSS gradient background instead */
  .category-card  { background: linear-gradient(135deg, #123C69 0%, #1a5276 100%); }
  .cat-scholarships { background: linear-gradient(135deg,#123C69,#1a5276); }
  .cat-grants       { background: linear-gradient(135deg,#0E9F6E,#0a7a55); }
  .cat-bursaries    { background: linear-gradient(135deg,#7C3AED,#5b21b6); }
  .cat-loans        { background: linear-gradient(135deg,#F9B233,#e0900a); }
  .cat-waec         { background: linear-gradient(135deg,#DC2626,#b91c1c); }
  .cat-neco         { background: linear-gradient(135deg,#0891B2,#0e7490); }
  .cat-jamb         { background: linear-gradient(135deg,#059669,#047857); }
  .cat-admission    { background: linear-gradient(135deg,#D97706,#b45309); }
  .guide-card--media { background: linear-gradient(135deg,#123C69,#0E9F6E); }
  .trust-phone-screen { background: linear-gradient(135deg,#123C69,#1a5276); }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 780px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  padding: 20px 24px;
  animation: cookie-slide-up 0.35s ease;
}
@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text { flex: 1; min-width: 220px; }
.cookie-banner-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--heading);
  margin-bottom: 4px;
}
.cookie-banner-text p {
  font-size: 0.83rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.55;
}
.cookie-banner-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
}
.cookie-btn:hover { transform: translateY(-1px); }

.cookie-btn--accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn--accept:hover { background: var(--primary-dark, #0a2540); }

.cookie-btn--decline {
  background: var(--border);
  color: var(--text);
}
.cookie-btn--decline:hover { background: var(--text-light); color: #fff; }

@media (max-width: 600px) {
  .cookie-banner { bottom: 12px; width: calc(100% - 24px); }
  .cookie-banner-inner { flex-direction: column; gap: 14px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ============================================================
   DEADLINE COUNTDOWN
   ============================================================ */
.countdown-section { background: var(--bg); }

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.countdown-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.countdown-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.countdown-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.countdown-card--red::before   { background: #DC2626; }
.countdown-card--blue::before  { background: var(--primary); }
.countdown-card--green::before { background: #059669; }

.countdown-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.countdown-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-urgency {
  font-size: 0.7rem;
  font-weight: 700;
  color: #DC2626;
  background: rgba(220,38,38,0.1);
  padding: 3px 8px;
  border-radius: 50px;
  animation: urgency-pulse 2s ease-in-out infinite;
}
@keyframes urgency-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.countdown-card h3 {
  font-size: 1rem;
  color: var(--heading);
  line-height: 1.4;
  margin: 0;
}

.countdown-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--section-alt-bg, rgba(0,0,0,0.04));
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  justify-content: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.countdown-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.countdown-label {
  font-size: 0.62rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.countdown-sep {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  padding-bottom: 8px;
}

.countdown-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
}
.countdown-cta:hover { background: var(--primary-dark, #0a2540); transform: translateY(-1px); }

.countdown-card--expired .countdown-urgency { color: var(--text-light); background: var(--border); animation: none; }
.countdown-card--expired .countdown-num { color: var(--text-light); }

@media (max-width: 900px) {
  .countdown-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .countdown-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { background: var(--section-alt-bg, var(--bg)); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  align-items: start;
}

.faq-col { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }

.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 18px;
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .faq-col:last-child .faq-item:first-child { border-top: none; }
}

/* ============================================================
   WHATSAPP CTA
   ============================================================ */
.whatsapp-cta-section {
  background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
  padding: 60px 0;
}

.whatsapp-cta-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.whatsapp-cta-icon {
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-cta-content {
  flex: 1;
  min-width: 260px;
}

.whatsapp-cta-content h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.whatsapp-cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.whatsapp-cta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.whatsapp-cta-list li {
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
}

.whatsapp-cta-action {
  flex-shrink: 0;
  text-align: center;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
  background: #1ebe5c;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}

.whatsapp-cta-note {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .whatsapp-cta-inner { flex-direction: column; text-align: center; gap: 24px; }
  .whatsapp-cta-list { align-items: center; }
  .whatsapp-cta-icon { margin: 0 auto; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testimonial-stars { font-size: 0.9rem; letter-spacing: 2px; }

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--heading);
}
.testimonial-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
