/**
 * WAOO — World Academy of Ophthalmic Education
 * Master Stylesheet (Zero-CDN, 100% Offline Compatible)
 * "From WhatsApp to a Global Academy" • "From Pakistan • For the World"
 */

/* ==========================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand Palette */
  --navy: #102A43;
  --blue: #1769AA;
  --teal: #0F8B8D;
  --green: #0B6B45;   /* Pakistan / education accent */
  --gold: #C89B3C;    /* Knowledge rays & academic distinction */
  --ink: #243B53;
  --muted: #627D98;
  --bg: #F5F9FC;
  --white: #FFFFFF;
  --line: #D9E2EC;

  /* Accent & State Variations */
  --navy-deep: #081B2B;
  --navy-light: #1A365D;
  --blue-hover: #12558A;
  --blue-light: #EAF4FB;
  --teal-light: #EAF7F7;
  --green-light: #E6F4ED;
  --gold-light: #FBF4E4;
  --ink-light: #334E68;
  --bg-alt: #EBF3F8;

  /* Typography Stacks (Local & System Fonts Only - Zero CDN) */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", Cambria, "Times New Roman", Times, serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 42, 67, 0.05);
  --shadow-sm: 0 2px 6px rgba(16, 42, 67, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 42, 67, 0.09);
  --shadow-lg: 0 16px 40px rgba(16, 42, 67, 0.12);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --transition: all 0.22s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--navy);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

/* Accessible focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   3. TYPOGRAPHY & SECTION HEADINGS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 2.5vw + 0.5rem, 2.4rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

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

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background-color: var(--gold);
}

.eyebrow.eyebrow-center::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background-color: var(--gold);
}

.eyebrow-light {
  color: #7AD1D2;
}

.eyebrow-light::before, .eyebrow-light::after {
  background-color: var(--gold);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--ink-light);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.serif-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

/* ==========================================================================
   4. BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
  box-shadow: 0 4px 12px rgba(23, 105, 170, 0.25);
}

.btn-primary:hover {
  background-color: var(--blue-hover);
  border-color: var(--blue-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: #128C7E;
  color: var(--white);
  border: 1px solid #128C7E;
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.25);
}

.btn-whatsapp:hover {
  background-color: #075E54;
  border-color: #075E54;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover {
  background-color: var(--blue-light);
  color: var(--navy);
}

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

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

.btn-gold {
  background-color: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
  font-weight: 800;
}

.btn-gold:hover {
  background-color: #b5892f;
  color: var(--navy);
}

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-teal {
  background-color: var(--teal-light);
  color: var(--teal);
}

.badge-blue {
  background-color: var(--blue-light);
  color: var(--blue);
}

.badge-green {
  background-color: var(--green-light);
  color: var(--green);
}

.badge-gold {
  background-color: var(--gold-light);
  color: #976F17;
}

.badge-demo {
  background-color: #FEEBC8;
  color: #7B341E;
  border: 1px dashed #DD6B20;
}

/* ==========================================================================
   5. TOP UTILITY BAR
   ========================================================================== */
.waoo-top-bar {
  background-color: var(--navy);
  color: #BCCCDC;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.waoo-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-statement {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #D9E2EC;
}

.top-bar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold);
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-links a {
  color: #D9E2EC;
  font-size: 0.82rem;
}

.top-bar-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.top-bar-divider {
  color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   6. MAIN NAVIGATION & HEADER
   ========================================================================== */
.waoo-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

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

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-acronym {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-tag-origin {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 2px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--blue);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--blue);
}

.btn-nav-join {
  background-color: var(--blue);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-nav-join:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* Mobile Hamburger Toggle */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 120;
}

.hamburger-line {
  width: 100%;
  height: 2.5px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(16, 42, 67, 0.6);
  backdrop-filter: blur(2px);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 115;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  overflow-y: auto;
}

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

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 0;
  border-bottom: 1px solid #F0F4F8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--blue);
}

/* ==========================================================================
   7. HERO SECTION (HOMEPAGE)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #EAF4FB 0%, #F5F9FC 55%, #EAF5F0 100%);
  padding: 85px 0 70px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  margin: 16px 0 14px;
  color: var(--navy);
}

.hero-subheading {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.45;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-motto-bar {
  margin-top: 32px;
  padding: 14px 20px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}

.hero-motto-bar span {
  color: var(--gold);
  font-weight: 800;
}

/* Hero Visual: Pakistan -> Knowledge -> Ophthalmology -> World */
.hero-visual-academic {
  position: relative;
  background-color: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.visual-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.hero-svg-canvas {
  width: 100%;
  height: 290px;
  display: block;
}

.visual-caption {
  margin-top: 18px;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.visual-caption h4 {
  font-size: 0.98rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.visual-caption p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ==========================================================================
   8. SECTION ARCHITECTURE & CARDS
   ========================================================================== */
.section {
  padding: 85px 0;
  position: relative;
}

.section-white {
  background-color: var(--white);
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-navy {
  background-color: var(--navy);
  color: #D9E2EC;
}

.section-navy h2, .section-navy h3 {
  color: var(--white);
}

.section-navy p {
  color: #BCCCDC;
}

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

.section-header.text-center .eyebrow {
  justify-content: center;
}

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

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

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

/* Cards */
.card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.card-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon-blue {
  background-color: var(--blue-light);
  color: var(--blue);
}

.card-icon-teal {
  background-color: var(--teal-light);
  color: var(--teal);
}

.card-icon-green {
  background-color: var(--green-light);
  color: var(--green);
}

.card-icon-gold {
  background-color: var(--gold-light);
  color: #976F17;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.card-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.card-link:hover {
  color: var(--navy);
  transform: translateX(3px);
}

/* ==========================================================================
   9. TIMELINE COMPONENT (WAOO STORY)
   ========================================================================== */
.timeline-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
  margin-top: 40px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(to right, var(--green) 0%, var(--teal) 30%, var(--blue) 70%, var(--gold) 100%);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding-top: 36px;
}

.timeline-node {
  position: absolute;
  top: 4px;
  left: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.15);
  transition: var(--transition);
}

.timeline-step:hover .timeline-node {
  transform: scale(1.2);
  background-color: var(--gold);
  border-color: var(--navy);
}

.timeline-step.milestone-origin .timeline-node {
  border-color: var(--green);
}

.timeline-step.milestone-future .timeline-node {
  border-color: var(--gold);
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  height: 100%;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.timeline-step:hover .timeline-card {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   10. WAOO EDUCATIONAL COMPASS
   ========================================================================== */
.compass-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.compass-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-center-circle {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.25);
  border: 4px solid var(--gold);
  z-index: 5;
  transition: var(--transition);
}

.compass-center-circle:hover {
  transform: scale(1.04);
}

.compass-center-circle strong {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.compass-center-circle small {
  font-size: 0.68rem;
  color: var(--gold);
  margin-top: 4px;
  letter-spacing: 0.08em;
}

.compass-ring-outer {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 2px dashed #BCCCDC;
  animation: rotateSlow 80s linear infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.compass-node {
  position: absolute;
  background-color: var(--white);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.compass-node:hover {
  border-color: var(--blue);
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
  color: var(--blue);
}

.compass-node::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.compass-node.node-1 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.compass-node.node-1::before { background-color: var(--blue); }

.compass-node.node-2 { top: 32%; right: -25px; transform: translate(0, -50%); }
.compass-node.node-2::before { background-color: var(--teal); }

.compass-node.node-3 { bottom: 12%; right: -10px; }
.compass-node.node-3::before { background-color: var(--gold); }

.compass-node.node-4 { bottom: 12%; left: -10px; }
.compass-node.node-4::before { background-color: var(--green); }

.compass-node.node-5 { top: 32%; left: -25px; transform: translate(0, -50%); }
.compass-node.node-5::before { background-color: var(--navy); }

/* ==========================================================================
   11. CLINICAL CONVERSATIONS (SIGNATURE FEATURE)
   ========================================================================== */
.convo-flow-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin: 35px 0;
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}

.convo-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.convo-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.convo-arrow {
  color: var(--muted);
  font-size: 0.9rem;
}

.convo-feature-box {
  background: linear-gradient(135deg, #102A43 0%, #1A365D 100%);
  border-radius: var(--radius-xl);
  color: var(--white);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.convo-feature-box h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.convo-feature-box p {
  color: #D9E2EC;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.convo-case-preview {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.convo-case-preview h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.convo-case-preview p {
  font-size: 0.88rem;
  color: #BCCCDC;
  margin-bottom: 16px;
}

/* ==========================================================================
   12. EDUCATORS SECTION
   ========================================================================== */
.educator-founder-card {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
}

.founder-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  border: 4px solid var(--white);
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.15);
  overflow: hidden;
}

.founder-info h3 {
  font-size: 1.6rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.founder-title {
  color: var(--green);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.founder-creds {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Educator Grid Cards */
.educator-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.educator-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
  border: 2px solid #D9E2EC;
}

.educator-name {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.educator-role {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.educator-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ==========================================================================
   13. ACADEMIC EVENTS SECTION
   ========================================================================== */
.event-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 24px;
  align-items: center;
  transition: var(--transition);
  margin-bottom: 16px;
}

.event-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.event-date-box {
  background-color: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 10px 6px;
}

.event-month {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.08em;
  display: block;
}

.event-day {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  display: block;
}

.event-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.membership-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.membership-card.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-md);
}

.membership-card h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.membership-card ul {
  margin: 20px 0;
  flex-grow: 1;
}

.membership-card li {
  font-size: 0.88rem;
  color: var(--ink-light);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.membership-card li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

/* ==========================================================================
   15. FINAL CTA BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #0D3E2F 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(200, 155, 60, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-banner p {
  color: #D9E2EC;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.cta-banner .serif-motto {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 30px;
  color: var(--gold);
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.waoo-footer {
  background-color: #081B2B;
  color: #9FB3C8;
  padding: 70px 0 25px;
  border-top: 3px solid var(--gold);
  font-size: 0.9rem;
}

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

.footer-brand h3 {
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.footer-desc {
  font-size: 0.84rem;
  color: #829AB1;
  line-height: 1.6;
}

.footer-column h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  font-weight: 800;
}

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

.footer-links a {
  color: #9FB3C8;
  font-size: 0.85rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #627D98;
}

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

.footer-legal-links a {
  color: #829AB1;
}

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

/* ==========================================================================
   17. INTERNAL PAGES (BREADCRUMBS, FILTERS, CASE VIEWERS)
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, #EAF4FB 0%, #F5F9FC 70%, #EBF4EE 100%);
  padding: 45px 0 40px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb-nav a {
  color: var(--muted);
}

.breadcrumb-nav a:hover {
  color: var(--blue);
}

.breadcrumb-sep {
  color: #BCCCDC;
}

/* Case Filters */
.filter-toolbar {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: var(--transition);
}

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

/* Case Detail Card */
.case-full-article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.case-section-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #F0F4F8;
}

.case-section-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.case-section-block h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-image-placeholder {
  background: #EAF2F8;
  border: 2px dashed #BCCCDC;
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  color: var(--ink-light);
  margin: 16px 0;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background-color: #F8FAFC;
  transition: var(--transition);
}

.form-control:focus {
  background-color: var(--white);
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.15);
}

/* Modal Toast */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(16, 42, 67, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

/* ==========================================================================
   18. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 4;
  }
}

@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .compass-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .timeline-track {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
  }
  .timeline-track::before {
    display: none;
  }
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .membership-grid {
    grid-template-columns: 1fr 1fr;
  }
  .convo-feature-box {
    grid-template-columns: 1fr;
  }
  .event-card {
    grid-template-columns: 75px 1fr;
  }
  .event-card .btn {
    grid-column: span 2;
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .hero-section {
    padding: 60px 0 50px;
  }
  .grid-2, .grid-3, .grid-4, .membership-grid {
    grid-template-columns: 1fr;
  }
  .educator-founder-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .founder-info {
    text-align: center;
  }
  .timeline-track {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .waoo-top-bar .container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .top-bar-statement {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand-name {
    font-size: 0.85rem;
  }
  .brand-logo-img {
    height: 42px;
  }
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-group .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.85rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .hero-subheading {
    font-size: 1.1rem;
  }
}

/* Accessibility: respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
