/* ═══════════════════════════════════════════════════════════════
   Scholar Naija — about.css
   Modern, Dynamic About Us Page
   Shares the ScholarNaija "pg-" design system for brand consistency
   Fonts: Space Grotesk (Headings), Inter (Body), JetBrains Mono (Data)
   ═══════════════════════════════════════════════════════════════ */

/* ██ VARIABLES ██ */
:root {
  /* Colors - Core */
  --bg-body:       #F8FAFC;
  --bg-card:       #FFFFFF;
  --bg-dark:       #0F172A;
  
  /* Colors - Text */
  --text-main:     #1E293B;
  --text-muted:    #475569;
  --text-light:    #94A3B8;
  --text-inverse:  #F8FAFC;

  /* Colors - Accents */
  --accent-pri:    #2563EB; /* Royal Blue */
  --accent-sec:    #F59E0B; /* Amber */
  --accent-cyan:   #06B6D4;
  --accent-green:  #10B981;
  --accent-purple: #8B5CF6;
  --accent-teal:   #14B8A6;
  
  /* Borders & Shadows */
  --border-light:  #E2E8F0;
  --border-dark:   #334155;
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-glow:   0 0 20px rgba(37, 99, 235, 0.5);

  /* Typography */
  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Layout */
  --max-w:         1280px;
  --nav-height:    72px;
  --rad-sm:        6px;
  --rad-md:        12px;
  --rad-lg:        24px;
  --rad-pill:      9999px;
  
  /* Animation */
  --trans-fast:    0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth:  0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ██ RESET & BASE ██ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 100px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: all var(--trans-fast); }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent-pri); color: #fff; }

/* ██ READING PROGRESS ██ */
.rp-bar {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: linear-gradient(90deg, var(--accent-pri), var(--accent-cyan));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ██ HEADER ██ */
.pg-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: transparent; z-index: 1000;
  transition: background var(--trans-fast), border var(--trans-fast), backdrop-filter var(--trans-fast);
  border-bottom: 1px solid transparent;
}
.pg-header--solid {
  background: rgba(255, 255, 255, 0.95);
  /* backdrop-filter: blur(12px); */
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.pg-header__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 5vw, 40px);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.pg-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text-main);
}
.pg-header--solid .pg-logo, .pg-logo.pg-footer-logo { color: var(--text-main); }
.pg-logo { color: var(--text-inverse); } /* White on hero */
.pg-header--solid .pg-logo { color: var(--text-main); }
.pg-logo__text b { color: var(--accent-pri); font-weight: 700; }

.pg-nav { display: flex; gap: 24px; }
.pg-nav__link {
  font-size: 0.875rem; font-weight: 500; color: rgba(248,250,252,0.8);
  transition: color var(--trans-fast);
}
.pg-header--solid .pg-nav__link { color: var(--text-muted); }
.pg-nav__link:hover { color: var(--accent-cyan); }
.pg-header--solid .pg-nav__link:hover { color: var(--accent-pri); }

.pg-header__right { display: flex; align-items: center; gap: 16px; }
.pg-back-btn {
  font-size: 0.875rem; font-weight: 600; padding: 8px 16px; border-radius: var(--rad-pill);
  background: rgba(255,255,255,0.1); color: var(--text-inverse); border: 1px solid rgba(255,255,255,0.2);
}
.pg-header--solid .pg-back-btn { background: var(--bg-body); color: var(--text-main); border-color: var(--border-light); }
.pg-back-btn:hover { background: var(--accent-pri); color: #fff; border-color: var(--accent-pri); }

/* Burger Menu */
.pg-burger { display: none; width: 24px; height: 20px; position: relative; z-index: 1001; }
.pg-burger span {
  display: block; width: 100%; height: 2px; background: var(--text-inverse);
  position: absolute; left: 0; transition: all var(--trans-fast);
}
.pg-header--solid .pg-burger span { background: var(--text-main); }
.pg-burger span:nth-child(1) { top: 0; }
.pg-burger span:nth-child(2) { top: 9px; }
.pg-burger span:nth-child(3) { bottom: 0; }
.pg-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); top: 9px; background: var(--text-main); }
.pg-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pg-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; background: var(--text-main); }

/* Mobile Nav Drawer */
.pg-mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 320px;
  background: #fff; box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 1000;
  padding: 100px 24px 40px; display: flex; flex-direction: column; gap: 16px;
  transform: translateX(100%); transition: transform var(--trans-smooth);
}
.pg-mobile-nav--open { transform: translateX(0); }
.pg-mn-link { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text-main); padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.pg-mn-link:hover { color: var(--accent-pri); padding-left: 8px; }

/* ██ HERO SECTION ██ */
.pg-hero {
  position: relative; padding: 160px clamp(16px, 5vw, 40px) 100px;
  background: var(--bg-dark); color: var(--text-inverse); overflow: hidden;
  display: flex; justify-content: center;
}

/* Dynamic Hero Background */
.pg-hero__canvas { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.pg-hero__blueprint {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.pg-hero__glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(100px); opacity: 0.15;
}
.pg-hero__glow--1 { top: -200px; right: -100px; background: var(--accent-pri); animation: pulse 8s infinite alternate; }
.pg-hero__glow--2 { bottom: -200px; left: -100px; background: var(--accent-cyan); animation: pulse 10s infinite alternate-reverse; }

.pg-hero__ticker {
  position: absolute; bottom: 0; left: 0; width: 200%; display: flex;
  font-family: var(--font-mono); font-size: 3rem; font-weight: 700; color: rgba(255,255,255,0.02);
  white-space: nowrap; animation: ticker 40s linear infinite; pointer-events: none;
}
.pg-hero__ticker span { padding-right: 20px; }

@keyframes pulse { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.pg-hero__body { position: relative; z-index: 1; max-width: 900px; text-align: center; }

.pg-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 16px; border-radius: var(--rad-pill);
}
.pg-eyebrow__dot { width: 8px; height: 8px; background: var(--accent-green); border-radius: 50%; box-shadow: 0 0 10px var(--accent-green); }
.pg-eyebrow__text { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-light); }

.pg-hero__title {
  font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px;
}
.pg-hero__title--outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.5); }
.pg-hero__title--accent { color: var(--accent-cyan); }

.pg-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--text-light); max-width: 700px; margin: 0 auto 40px; line-height: 1.6;
}

.pg-hero__stats {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-bottom: 48px;
}
.pg-stat { display: flex; flex-direction: column; gap: 4px; }
.pg-stat__n { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: #fff; }
.pg-stat__l { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.pg-stat__div { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

.pg-hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 64px; }
.pg-cta {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; padding: 14px 28px; border-radius: var(--rad-pill); transition: all var(--trans-fast);
}
.pg-cta--primary { background: var(--accent-pri); color: #fff; box-shadow: var(--shadow-glow); }
.pg-cta--primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(37, 99, 235, 0.8); }
.pg-cta--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.pg-cta--ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }

.pg-hero__toc { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 24px; border-radius: var(--rad-lg); text-align: left; }
.pg-toc__label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-light); margin-bottom: 16px; letter-spacing: 0.1em; }
.pg-toc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-toc__chip {
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.05); padding: 8px 16px; border-radius: var(--rad-pill);
}
.pg-toc__chip:hover { background: var(--accent-pri); color: #fff; }

/* ██ LAYOUT & GRID ██ */
.pg-wrap { padding: 0 clamp(16px, 5vw, 40px); }
.pg-layout {
  max-width: var(--max-w); margin: -40px auto 0; position: relative; z-index: 10;
  display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start;
}
.pg-main { background: var(--bg-card); border-radius: var(--rad-lg); padding: clamp(24px, 4vw, 64px); box-shadow: var(--shadow-md); }
.pg-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }

/* ██ CONTENT TYPOGRAPHY & SECTIONS ██ */
.pg-section { margin-bottom: 80px; padding-bottom: 80px; border-bottom: 1px solid var(--border-light); }
.pg-section:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.pg-section__tag-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.pg-tag { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 12px; border-radius: var(--rad-pill); }
.pg-tag--cyan { background: #ECFEFF; color: #0891B2; }
.pg-tag--amber { background: #FEF3C7; color: #D97706; }
.pg-tag--green { background: #D1FAE5; color: #059669; }
.pg-tag--purple { background: #F3E8FF; color: #7E22CE; }
.pg-tag--teal { background: #CCFBF1; color: #0D9488; }
.pg-section__num { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--text-light); }

.pg-section__title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.2; color: var(--text-main); margin-bottom: 16px; letter-spacing: -0.02em; }
.pg-section__lead { font-size: 1.25rem; color: var(--text-muted); font-weight: 300; line-height: 1.6; margin-bottom: 40px; }

.pg-content h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-main); margin: 40px 0 16px; }
.pg-content p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.8; }
.pg-blockquote { border-left: 4px solid var(--accent-pri); padding: 24px 32px; background: var(--bg-body); border-radius: 0 var(--rad-md) var(--rad-md) 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--accent-pri); margin: 40px 0; }

/* ██ COURSE CARDS ██ */
.pg-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin: 40px 0; }
.pg-course-card {
  background: var(--bg-body); border: 1px solid var(--border-light); border-radius: var(--rad-md); padding: 24px;
  position: relative; transition: all var(--trans-smooth); overflow: hidden;
}
.pg-course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-cyan); }
.pg-course-card--featured { border-width: 2px; border-color: var(--accent-pri); background: #F8FAFC; }
.pg-course-card__dept-code { position: absolute; top: -10px; right: -10px; font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: rgba(15, 23, 42, 0.03); line-height: 1; pointer-events: none; }
.pg-course-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: var(--rad-sm); margin-bottom: 16px; background: #E2E8F0; color: #475569; }
.pg-course-badge--hot { background: #FEE2E2; color: #DC2626; }
.pg-course-badge--rising { background: #E0E7FF; color: #4338CA; }
.pg-course-card__header h4 { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-main); margin-bottom: 12px; line-height: 1.3; }
.pg-course-card__desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }

.pg-course-stat { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.pg-cs-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; }
.pg-cs-val { font-family: var(--font-mono); font-weight: 700; color: var(--text-main); }
.pg-demand-bar { width: 100%; height: 6px; background: var(--border-light); border-radius: var(--rad-pill); overflow: hidden; }
.pg-demand-fill { height: 100%; background: linear-gradient(90deg, var(--accent-pri), var(--accent-cyan)); border-radius: var(--rad-pill); transition: width 1s cubic-bezier(0.16, 1, 0.3, 1); }

.pg-course-card__footer { display: flex; justify-content: space-between; border-top: 1px solid var(--border-light); margin-top: 24px; padding-top: 16px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-light); }

/* ██ POLYTECHNIC CARDS ██ */
.pg-poly-grid { display: flex; flex-direction: column; gap: 16px; margin: 40px 0; }
.pg-poly-card { display: flex; gap: 24px; background: var(--bg-body); border: 1px solid var(--border-light); border-radius: var(--rad-md); padding: 24px; transition: all var(--trans-fast); }
.pg-poly-card:hover { border-color: var(--accent-pri); box-shadow: var(--shadow-sm); }
.pg-poly-card--top { background: #F8FAFC; border-left: 4px solid var(--accent-sec); }
.pg-poly-rank { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 700; color: var(--border-light); line-height: 1; }
.pg-poly-card:hover .pg-poly-rank { color: var(--accent-pri); }
.pg-poly-body h4 { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-main); margin-bottom: 4px; }
.pg-poly-location { font-size: 0.875rem; color: var(--text-muted); display: block; margin-bottom: 12px; }
.pg-poly-body p { font-size: 1rem; color: var(--text-muted); margin-bottom: 16px; }
.pg-poly-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-poly-tags span { font-size: 0.75rem; font-weight: 500; background: #fff; border: 1px solid var(--border-light); padding: 4px 12px; border-radius: var(--rad-pill); color: var(--text-muted); }

/* ██ ADMISSION CARDS ██ */
.pg-admission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin: 40px 0; }
.pg-admission-card { background: var(--bg-body); border-radius: var(--rad-md); padding: 24px; border-top: 4px solid var(--accent-pri); box-shadow: var(--shadow-sm); }
.pg-admission-card__icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.pg-admission-card h4 { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 12px; color: var(--text-main); }
.pg-admission-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* ██ AFFILIATE & AD BLOCKS ██ */
.pg-affiliate { background: #fff; border: 1px solid var(--border-light); border-left: 4px solid var(--accent-pri); padding: 24px; border-radius: var(--rad-md); margin: 40px 0; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pg-affiliate--gold { border-left-color: var(--accent-sec); }
.pg-affiliate--purple { border-left-color: var(--accent-purple); }
.pg-affiliate__badge { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; background: #EFF6FF; color: #2563EB; padding: 4px 12px; border-radius: var(--rad-pill); }
.pg-affiliate__badge--gold { background: #FFFBEB; color: #D97706; }
.pg-affiliate__badge--purple { background: #F5F3FF; color: #7C3AED; }
.pg-affiliate__body { font-size: 1.1rem; color: var(--text-main); }
.pg-affiliate__cta { font-family: var(--font-display); font-weight: 600; padding: 12px 24px; background: var(--accent-pri); color: #fff; border-radius: var(--rad-sm); transition: background var(--trans-fast); }
.pg-affiliate__cta:hover { background: var(--bg-dark); }
.pg-affiliate__cta--gold { background: var(--accent-sec); }
.pg-affiliate__cta--purple { background: var(--accent-purple); }

.pg-ad { background: var(--bg-body); border: 1px dashed var(--border-light); border-radius: var(--rad-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; position: relative; margin: 40px 0; }
.pg-ad__label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-light); text-transform: uppercase; position: absolute; top: 4px; right: 8px; z-index: 10; }
.pg-ad--leader { width: 100%; min-height: 100px; margin: 0 auto 40px; }
.pg-ad--inline { width: 100%; min-height: 250px; }
.pg-ad--sidebar { width: 100%; min-height: 250px; margin: 0; }

/* ██ SIDEBAR COMPONENTS ██ */
.pg-sidebar-toc { background: #fff; border: 1px solid var(--border-light); border-radius: var(--rad-md); padding: 24px; box-shadow: var(--shadow-sm); }
.pg-stoc__title { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--text-light); margin-bottom: 16px; letter-spacing: 0.05em; }
.pg-stoc__link { display: block; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); padding: 8px 12px; border-radius: var(--rad-sm); margin-bottom: 4px; transition: all var(--trans-fast); border-left: 2px solid transparent; }
.pg-stoc__link:hover { background: var(--bg-body); color: var(--text-main); }
.pg-stoc__link--active { background: #EFF6FF; color: var(--accent-pri); border-left-color: var(--accent-pri); font-weight: 600; }

.pg-sidebar-aff { background: #fff; border: 1px solid var(--border-light); border-radius: var(--rad-md); padding: 24px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--accent-pri); }
.pg-sidebar-aff--amber { border-top-color: var(--accent-sec); }
.pg-sidebar-aff--purple { border-top-color: var(--accent-purple); }
.pg-saff__tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent-pri); margin-bottom: 8px; font-weight: 700; text-transform: uppercase; }
.pg-saff__tag--amber { color: var(--accent-sec); }
.pg-saff__tag--purple { color: var(--accent-purple); }
.pg-saff__title { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 8px; color: var(--text-main); }
.pg-saff__desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 16px; }
.pg-saff__btn { display: inline-block; font-size: 0.875rem; font-weight: 600; color: #fff; background: var(--accent-pri); padding: 10px 16px; border-radius: var(--rad-sm); width: 100%; text-align: center; }
.pg-saff__btn:hover { background: var(--bg-dark); }
.pg-saff__btn--amber { background: var(--accent-sec); }
.pg-saff__btn--purple { background: var(--accent-purple); }

/* ██ NEWSLETTER ██ */
.pg-newsletter { background: var(--bg-dark); color: #fff; border-radius: var(--rad-md); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 60px 0; }
.pg-nl__emoji { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.pg-nl__left h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 12px; }
.pg-nl__left p { color: var(--text-light); font-size: 1.1rem; }
.pg-nl__form { display: flex; gap: 12px; margin-bottom: 12px; }
.pg-nl__input { flex: 1; padding: 14px 16px; border: 1px solid var(--border-dark); border-radius: var(--rad-sm); background: rgba(255,255,255,0.05); color: #fff; font-family: var(--font-body); }
.pg-nl__input:focus { outline: none; border-color: var(--accent-cyan); }
.pg-nl__btn { padding: 14px 24px; background: var(--accent-cyan); color: var(--bg-dark); font-weight: 600; border-radius: var(--rad-sm); transition: background var(--trans-fast); }
.pg-nl__btn:hover { background: #fff; }
.pg-nl__note { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-light); }

/* ██ PAGE NAV ██ */
.pg-page-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--border-light); padding-top: 24px; margin-top: 40px; }
.pg-pagenav-btn { font-family: var(--font-display); font-weight: 600; color: var(--text-muted); transition: color var(--trans-fast); }
.pg-pagenav-btn:hover { color: var(--accent-pri); }
.pg-pagenav-btn--next { text-align: right; color: var(--accent-pri); }

/* ██ FOOTER ██ */
.pg-footer { background: var(--bg-card); border-top: 1px solid var(--border-light); padding: 60px clamp(16px, 5vw, 40px) 40px; margin-top: 60px; }
.pg-footer__inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 2fr; gap: 40px; align-items: start; }
.pg-footer-logo { margin-bottom: 16px; }
.pg-footer__brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 300px; }
.pg-footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pg-footer__links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.pg-footer__links a:hover { color: var(--accent-pri); }
.pg-footer__copy { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-light); border-top: 1px solid var(--border-light); padding-top: 24px; margin-top: 24px; }
.pg-footer__aff-note { grid-column: 1 / -1; font-size: 0.8rem; color: var(--text-light); }
.pg-footer__aff-note a { color: var(--accent-pri); text-decoration: underline; }

/* ██ BACK TO TOP ██ */
.pg-btt {
  position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px;
  background: var(--text-main); color: #fff; border-radius: 50%; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center; z-index: 900;
  opacity: 0; pointer-events: none; transform: translateY(20px); transition: all var(--trans-smooth);
  box-shadow: var(--shadow-md);
}
.pg-btt--show { opacity: 1; pointer-events: all; transform: translateY(0); }
.pg-btt:hover { background: var(--accent-pri); transform: translateY(-4px); }

/* ██ SCROLL REVEAL ██ */
.pg-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--trans-smooth), transform 0.8s var(--trans-smooth); }
.pg-revealed { opacity: 1; transform: translateY(0); }

/* ██ RESPONSIVE ██ */
@media (max-width: 1024px) {
  .pg-layout { grid-template-columns: 1fr; gap: 0; }
  .pg-sidebar { display: none; } /* Hide sidebar on tablet/mobile */
  .pg-hero__toc { display: none; }
}

@media (max-width: 768px) {
  .pg-nav { display: none; }
  .pg-burger { display: block; }
  .pg-hero { padding: 120px 20px 60px; }
  .pg-hero__title { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .pg-hero__stats { flex-direction: column; gap: 16px; align-items: flex-start; }
  .pg-stat__div { width: 100%; height: 1px; }
  .pg-main { padding: 32px 20px; border-radius: 0; box-shadow: none; margin: 0 -20px; border-top: 1px solid var(--border-light); }
  .pg-newsletter { grid-template-columns: 1fr; padding: 32px 20px; gap: 24px; }
  .pg-nl__form { flex-direction: column; }
  .pg-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .pg-poly-card { flex-direction: column; gap: 16px; }
}
/* ██ COMPARISON TABLE (Remedial Science page addition) ██ */
.pg-compare-wrap { overflow-x: auto; margin: 40px 0; border-radius: var(--rad-md); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
.pg-compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
.pg-compare th, .pg-compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-light); }
.pg-compare thead th { font-family: var(--font-display); font-size: 1rem; background: var(--bg-dark); color: #fff; }
.pg-compare thead th:first-child { border-top-left-radius: var(--rad-md); }
.pg-compare thead th:last-child { border-top-right-radius: var(--rad-md); }
.pg-compare tbody tr:last-child td { border-bottom: none; }
.pg-compare tbody tr:nth-child(even) { background: var(--bg-body); }
.pg-compare td:first-child { font-family: var(--font-mono); font-weight: 700; color: var(--accent-pri); white-space: nowrap; }
.pg-compare td, .pg-compare th { color: var(--text-muted); }

/* ██ COMBO CARDS — reuse course-card visuals with a "leads to" field ██ */
.pg-cs-val--wrap { line-height: 1.3; }

/* ██ TIMELINE (How Remedial Science Works) ██ */
.pg-timeline { position: relative; margin: 40px 0; padding-left: 32px; border-left: 2px solid var(--border-light); display: flex; flex-direction: column; gap: 32px; }
.pg-timeline__item { position: relative; }
.pg-timeline__item::before { content: ''; position: absolute; left: -40px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-pri); border: 3px solid var(--bg-card); box-shadow: 0 0 0 2px var(--accent-pri); }
.pg-timeline__step { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-pri); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.pg-timeline__item h4 { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-main); margin-bottom: 6px; }
.pg-timeline__item p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

@media (max-width: 768px) {
  .pg-timeline { padding-left: 24px; }
  .pg-timeline__item::before { left: -32px; }
}

/* ██ ABOUT PAGE — MISSION BANNER ██ */
.pg-mission { position: relative; background: var(--bg-dark); color: #fff; border-radius: var(--rad-lg); padding: clamp(32px, 6vw, 64px); margin: 40px 0 60px; overflow: hidden; text-align: center; }
.pg-mission::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(37,99,235,0.35), transparent 55%), radial-gradient(circle at 80% 80%, rgba(6,182,212,0.25), transparent 50%); pointer-events: none; }
.pg-mission__eyebrow { position: relative; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 16px; display: block; }
.pg-mission__text { position: relative; font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.35; font-weight: 500; max-width: 900px; margin: 0 auto; }
.pg-mission__text b { color: var(--accent-cyan); font-weight: 700; }

/* ██ STATS STRIP (outside hero) ██ */
.pg-stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 40px 0; }
.pg-stat-tile { background: var(--bg-body); border: 1px solid var(--border-light); border-radius: var(--rad-md); padding: 24px; text-align: center; transition: all var(--trans-fast); }
.pg-stat-tile:hover { border-color: var(--accent-pri); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.pg-stat-tile__n { display: block; font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--accent-pri); margin-bottom: 6px; }
.pg-stat-tile__l { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ██ STORY SPLIT ██ */
.pg-story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 48px 0; }
.pg-story__visual { background: linear-gradient(135deg, var(--accent-pri), var(--accent-cyan)); border-radius: var(--rad-lg); min-height: 320px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pg-story__visual::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 32px 32px; }
.pg-story__emoji { font-size: 5rem; position: relative; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); }
.pg-story__body h3 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 16px; color: var(--text-main); }
.pg-story__body p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }

/* ██ FEATURE GRID (What We Do) ██ */
.pg-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 40px 0; }
.pg-feature-card { background: var(--bg-body); border: 1px solid var(--border-light); border-radius: var(--rad-md); padding: 28px; transition: all var(--trans-smooth); position: relative; overflow: hidden; }
.pg-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-cyan); }
.pg-feature-card__icon { font-size: 2rem; margin-bottom: 16px; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--rad-md); background: #EFF6FF; }
.pg-feature-card h4 { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-main); margin-bottom: 10px; }
.pg-feature-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.pg-feature-card__link { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--accent-pri); }
.pg-feature-card__link:hover { color: var(--bg-dark); }

/* ██ VALUE CARDS ██ */
.pg-value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 40px 0; }
.pg-value-card { text-align: center; padding: 28px 20px; border-radius: var(--rad-md); background: #fff; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); transition: all var(--trans-fast); }
.pg-value-card:hover { border-color: var(--accent-sec); transform: translateY(-3px); }
.pg-value-card__num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-light); margin-bottom: 12px; }
.pg-value-card__icon { font-size: 1.75rem; margin-bottom: 12px; display: block; }
.pg-value-card h4 { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-main); margin-bottom: 8px; }
.pg-value-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* ██ CONTACT GRID ██ */
.pg-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 40px 0; }
.pg-contact-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--rad-md); border: 1px solid var(--border-light); background: var(--bg-body); }
.pg-contact-card__icon { font-size: 1.5rem; }
.pg-contact-card h4 { font-family: var(--font-display); font-size: 1rem; color: var(--text-main); }
.pg-contact-card a, .pg-contact-card span.pg-contact-val { font-size: 0.95rem; color: var(--accent-pri); font-weight: 600; word-break: break-word; }

@media (max-width: 900px) {
  .pg-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .pg-story { grid-template-columns: 1fr; }
  .pg-story__visual { min-height: 220px; }
}