/*
 * FutureFit – main stylesheet
 *
 * Sections (search for these headers):
 *   1. CSS variables & base reset
 *   2. Layout: header, nav, main, footer
 *   3. Home page blocks
 *   4. Buttons & forms
 *   5. Career quiz
 *   6. Resume / document types
 *   7. Resume templates & academic writing layout
 *   8. Schools / colleges
 *   9. Footer
 */

/* 1. CSS variables & base reset — dark theme */
:root {
  --navy: #071A2B;
  --primary-btn: #28D7FF;
  --primary-btn-hover: #4ADFFF;
  --bg: #0A1628;
  --surface: #0F1F35;
  --surface-elevated: #152238;
  --border: rgba(255, 255, 255, 0.08);
  --text: #E8F4F8;
  --text-muted: #8BA4B0;
  --accent: var(--primary-btn);
  --accent-hover: var(--primary-btn-hover);
  --accent-gold: #FFC857;
  --accent-coral: #FF6B6B;
  --light-primary: #28D7FF;
  --sage: #4FA3A5;
  --teal-accent: var(--primary-btn);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

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

/* Responsive breakpoints: 1024+ desktop, 768 tablet/iPad, 600 phone, 380 small phone */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-btn) var(--bg);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  transition: box-shadow 0.3s ease;
}
@media (max-width: 768px) {
  .main-content { padding: 2rem 1.25rem; }
}
@media (max-width: 600px) {
  .main-content { padding: 1.5rem 1rem; }
}
body.is-scrolled .main-content {
  box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.2);
}

/* 2. Layout: header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
body.is-scrolled .site-header {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
}
@media (max-width: 768px) {
  .header-inner { padding: 0.75rem 1.25rem; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0.65rem 1rem; gap: 0.5rem; }
}

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 52px;
  overflow: visible;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
  height: 100%;
}
.logo:hover { opacity: 0.9; }
.logo-img {
  height: 140px;
  width: auto;
  display: block;
  object-fit: contain;
  transform: translateY(6px);
}
.brand-divider {
  width: 1px;
  height: 1.1rem;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.site-tagline {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  opacity: 0.75;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-link {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.8125rem, 0.6rem + 0.5vw, 1rem);
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.nav-link--active {
  color: var(--text);
  font-weight: 600;
  background: rgba(40, 215, 255, 0.1);
}
.btn-header {
  padding: 0.5rem 1.15rem;
  font-size: clamp(0.72rem, 0.5rem + 0.4vw, 0.82rem);
  background: var(--primary-btn);
  color: var(--navy);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(79, 163, 165, 0.25);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-header:hover {
  background: var(--primary-btn-hover);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 163, 165, 0.35);
}
.btn-header-short { display: none; }
.btn-header-full { display: inline; }

/* Mobile navigation */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden;
  }
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    z-index: 105;
    overflow-y: auto;
    visibility: visible;
  }
  .nav:not(.nav--open) {
    pointer-events: none;
  }
  .nav--open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav-link {
    padding: 1rem 0.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-link:last-of-type {
    border-bottom: none;
  }
  .btn-header {
    margin-top: 1.5rem;
    text-align: center;
    font-size: clamp(0.78rem, 2vw, 0.88rem);
  }
  .btn-header-full { display: inline; }
  .btn-header-short { display: none; }
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
  }
}
@media (max-width: 768px) {
  .btn-header {
    padding: 0.5rem 1rem;
    min-height: 44px;
  }
}
@media (max-width: 600px) {
  .btn-header { padding: 0.5rem 1rem; }
}

/* Home: full-width block layout */
.page-home .main-content {
  padding: 0;
  max-width: none;
  width: 100%;
}

/* Block sections */
.block {
  width: 100%;
  padding: 4rem 1.5rem;
}
@media (max-width: 768px) {
  .block { padding: 3.5rem 1.25rem; }
}
@media (max-width: 600px) {
  .block { padding: 3rem 1rem; }
}
@media (max-width: 380px) {
  .block { padding: 2.5rem 0.75rem; }
}
.block-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Hero block */
.block--hero {
  background: linear-gradient(165deg, rgba(40, 215, 255, 0.04) 0%, var(--bg) 35%, var(--surface) 100%);
  padding: 5rem 1.5rem 5.5rem;
}
.block--hero-with-bg {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(165deg, #0A1628 0%, #0F1F35 40%, #0A1628 100%);
}
@media (max-width: 768px) {
  .block--hero-with-bg { padding: 4rem 1.5rem 3.5rem; min-height: 50vh; }
}
@media (max-width: 600px) {
  .block--hero-with-bg { padding: 3.5rem 1rem 3rem; min-height: auto; }
}
.block--hero-with-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(40, 215, 255, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 55% at 85% 55%, rgba(40, 215, 255, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 45% 50% at 50% 85%, rgba(40, 215, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 45% at 70% 15%, rgba(40, 215, 255, 0.12) 0%, transparent 65%);
  animation: heroMesh 20s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroMesh {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(1.5%, -1%) scale(1.01); }
  100% { transform: translate(-1%, 0.5%) scale(1); }
}
.block--hero-with-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 50%, rgba(40, 215, 255, 0.03) 100%);
  pointer-events: none;
}
.block--hero-with-bg .block-inner { position: relative; z-index: 1; }

/* Resources (blog) page: much smaller hero */
.blog-hero--compact.block--hero-with-bg {
  padding: 2rem 1.5rem 2rem;
  min-height: auto;
  display: block;
  align-items: unset;
  justify-content: unset;
}
.blog-hero--compact .hero-badge { font-size: 0.8rem; margin-bottom: 0.4rem; }
.blog-hero--compact .block-hero-title { font-size: clamp(1.35rem, 3vw, 1.65rem); margin-bottom: 0.35rem; }
.blog-hero--compact .block-hero-sub { font-size: 0.95rem; }

/* Hero geometric shapes — glass-like orbs, prisms, glowing blobs */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  animation: heroShapeDrift 12s ease-in-out infinite;
}
.hero-shape--orb {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(40, 215, 255, 0.25), rgba(40, 215, 255, 0.06));
  box-shadow: 0 0 60px rgba(40, 215, 255, 0.2), inset 0 0 30px rgba(40, 215, 255, 0.08);
}
.hero-shape--blob {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: linear-gradient(135deg, rgba(40, 215, 255, 0.12), rgba(40, 215, 255, 0.04));
  filter: blur(1px);
}
.hero-shape--prism {
  background: linear-gradient(135deg, rgba(40, 215, 255, 0.1), rgba(40, 215, 255, 0.03));
  border-radius: 4px;
}
.hero-shape--glow {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 215, 255, 0.2) 0%, transparent 70%);
  filter: blur(25px);
}
.hero-shape-1 { width: 120px; height: 120px; top: 8%; left: 10%; animation-delay: 0s; }
.hero-shape-2 { width: 80px; height: 80px; top: 35%; right: 15%; animation-delay: 2s; }
.hero-shape-3 { width: 90px; height: 90px; bottom: 20%; left: 8%; animation-delay: 4s; }
.hero-shape-4 { width: 140px; height: 140px; top: 50%; left: 25%; animation-delay: 1s; animation-duration: 15s; }
.hero-shape-5 { width: 60px; height: 100px; top: 15%; right: 25%; animation-delay: 3s; }
.hero-shape-6 { width: 50px; height: 80px; bottom: 30%; right: 20%; animation-delay: 5s; }
.hero-shape-7 { width: 180px; height: 180px; top: 20%; right: 5%; animation-delay: 0.5s; animation-duration: 18s; }
.hero-shape-8 { width: 150px; height: 150px; bottom: 15%; left: 20%; animation-delay: 2.5s; animation-duration: 14s; }
@keyframes heroShapeDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(8px, -12px) rotate(3deg); }
  50% { transform: translate(-5px, 8px) rotate(-2deg); }
  75% { transform: translate(12px, 5px) rotate(2deg); }
}
.hero-shape-5 { transform: rotate(-25deg); }
.hero-shape-5 { animation: heroShapeDriftPrism 12s ease-in-out infinite; animation-delay: 3s; }
.hero-shape-6 { transform: rotate(15deg); }
.hero-shape-6 { animation: heroShapeDriftPrism 14s ease-in-out infinite; animation-delay: 5s; }
@keyframes heroShapeDriftPrism {
  0%, 100% { transform: translate(0, 0) rotate(-25deg); }
  25% { transform: translate(8px, -12px) rotate(-22deg); }
  50% { transform: translate(-5px, 8px) rotate(-28deg); }
  75% { transform: translate(12px, 5px) rotate(-23deg); }
}
.hero-shape-6 { animation-name: heroShapeDriftPrism2; }
@keyframes heroShapeDriftPrism2 {
  0%, 100% { transform: translate(0, 0) rotate(15deg); }
  25% { transform: translate(-6px, 10px) rotate(18deg); }
  50% { transform: translate(10px, -6px) rotate(12deg); }
  75% { transform: translate(-8px, -8px) rotate(16deg); }
}

/* Hero ambient particles — gentle drift, discovery/journey feel */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.hero-particles--behind { z-index: 0; }
.hero-particles--front { z-index: 2; }
.hero-particle {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 215, 255, 0.6) 0%, rgba(40, 215, 255, 0.15) 60%, transparent 100%);
  animation: heroParticleDrift 12s ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * -1s);
}
.hero-particle--s { width: 6px; height: 6px; }
.hero-particle--m { width: 10px; height: 10px; }
.hero-particle--l { width: 14px; height: 14px; }
.hero-particle--accent {
  background: radial-gradient(circle, rgba(255, 200, 87, 0.5) 0%, rgba(255, 200, 87, 0.12) 60%, transparent 100%);
}
.hero-particles--front .hero-particle { opacity: 0.9; }
.hero-particles--behind .hero-particle { opacity: 0.7; }
@keyframes heroParticleDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(4px, -12px) scale(1.1); }
  50% { transform: translate(-6px, -20px) scale(0.95); }
  75% { transform: translate(8px, -14px) scale(1.05); }
}
.block--hero-with-bg .hero-badge {
  background: rgba(255, 200, 87, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 200, 87, 0.35);
}
.block--hero-with-bg .block-hero-title { color: var(--text); }
.block--hero-with-bg .block-hero-sub { color: var(--text-muted); }
.block--hero-with-bg .btn-hero-primary {
  background: var(--primary-btn);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.block--hero-with-bg .btn-hero-primary:hover {
  background: var(--primary-btn-hover);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}
.block--hero-with-bg .btn-hero-secondary,
.block--hero-with-bg .btn-hero-tertiary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}
.block--hero-with-bg .btn-hero-secondary:hover,
.block--hero-with-bg .btn-hero-tertiary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-btn);
  color: var(--text);
}

.block--hero .block-inner { max-width: 640px; }
.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  background: rgba(255, 200, 87, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.block-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.block-hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.block-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary-btn);
  color: var(--navy);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s;
}
.btn-hero-primary:hover { background: var(--primary-btn-hover); color: var(--navy); }
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(40, 215, 255, 0.08);
  color: var(--text);
  border: 2px solid rgba(40, 215, 255, 0.4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-hero-secondary:hover,
.btn-hero-tertiary:hover { background: rgba(40, 215, 255, 0.15); border-color: var(--primary-btn); color: var(--text); }
.btn-hero-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-arrow { font-size: 1.1em; }
.btn-arrow--outline { font-size: 0.85em; }
@media (max-width: 600px) {
  .btn-hero-primary,
  .btn-hero-secondary,
  .btn-hero-tertiary {
    padding: 0.75rem 1.15rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

/* Dark/white block */
.block--dark {
  background: var(--surface);
  color: var(--text);
  padding: 4.5rem 1.5rem;
}
.block-inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
  max-width: 1100px;
}
@media (max-width: 768px) {
  .block-inner--split { grid-template-columns: 1fr; text-align: center; }
}
.block-content { min-width: 0; }
.block-title--light {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.block-desc--light {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--teal-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-light:hover { background: var(--accent-hover); color: #fff; }
.block-visual { display: flex; align-items: center; justify-content: center; }
.block-visual-placeholder {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/16;
  background: rgba(127, 175, 157, 0.12);
  border: 1px solid rgba(127, 175, 157, 0.3);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.block-visual-icon { font-size: 3rem; opacity: 0.9; }

/* Cream block */
.block--cream {
  background: var(--surface);
  padding: 4rem 1.5rem;
  text-align: center;
}
@media (max-width: 768px) {
  .block--cream { padding: 3.5rem 1.25rem; }
}
@media (max-width: 600px) {
  .block--cream { padding: 3rem 1rem; }
}
.block--cream .block-inner { text-align: center; }
.block--cream .block-title { color: var(--text); margin-bottom: 0.5rem; }
.block--cream .block-desc { color: var(--text-muted); margin-bottom: 1.5rem; }
.block--cream .block-hero-buttons {
  width: 100%;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.block--cream .block-hero-buttons .btn { margin-top: 0; }
.block--schools-cta { background: var(--surface); padding: 4rem 1.5rem; border-top: 1px solid var(--border); }
.block--schools-cta .block-title { color: var(--text); margin-bottom: 0.5rem; }
.block--schools-cta .block-desc { color: var(--text-muted); margin-bottom: 1.5rem; }
.block-inner--narrow { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Article / blog post body: left-aligned, no indentation */
.page-blog-detail .block--cream .block-inner--narrow { text-align: left; }
.page-blog-detail .blog-post-body {
  text-align: left;
  margin-top: 1rem;
}
.page-blog-detail .blog-post-body h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}
.page-blog-detail .blog-post-body h2:first-of-type { margin-top: 0.5rem; }
.page-blog-detail .blog-post-body p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.block-desc--why { font-size: 1.1rem; line-height: 1.65; margin-bottom: 1.5rem; }

/* Why FutureFit + Find colleges: separate sections stacked one under the other */
.cta-blocks {
  display: flex;
  flex-direction: column;
}
.cta-blocks .block--cream,
.cta-blocks .block--schools-cta {
  width: 100%;
}
@media (max-width: 768px) {
  .cta-blocks .block--cream,
  .cta-blocks .block--schools-cta {
    padding: 3.5rem 1.25rem;
  }
}
@media (max-width: 600px) {
  .cta-blocks .block--cream,
  .cta-blocks .block--schools-cta {
    padding: 3rem 1rem;
  }
}

/* Stats bar */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
}
.stats-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .stats-bar-inner {
    gap: 1.5rem 2rem;
  }
}
.stat-item {
  text-align: center;
  flex-shrink: 0;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--teal-accent);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
@media (max-width: 600px) {
  .stats-bar { padding: 1.25rem 1rem; }
  .stats-bar-inner {
    gap: 1rem 1.25rem;
  }
  .stat-number { font-size: 1.35rem; }
  .stat-label { font-size: 0.72rem; }
}
@media (max-width: 420px) {
  .stats-bar-inner {
    gap: 0.75rem 1rem;
  }
  .stat-number { font-size: 1.15rem; }
  .stat-label { font-size: 0.65rem; }
}

/* How it works */
.block--how {
  background: var(--surface);
  padding: 4.5rem 1.5rem;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  text-align: center;
  counter-reset: howstep;
}
.how-step {
  position: relative;
  counter-increment: howstep;
}
.how-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
  background: rgba(79, 163, 165, 0.10);
  border: 2px solid rgba(79, 163, 165, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.how-step:hover .how-step-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(79, 163, 165, 0.2);
}
.how-step-num {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(18px);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.how-step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}
.how-connector {
  display: none;
}
@media (min-width: 769px) {
  .how-connector {
    display: block;
    position: absolute;
    top: 32px;
    right: -1rem;
    width: calc(2rem);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--light-primary) 0, var(--light-primary) 6px, transparent 6px, transparent 12px);
  }
  .how-step:last-child .how-connector { display: none; }
}

/* How it works: compact side-by-side on smaller screens */
@media (max-width: 768px) {
  .block--how {
    padding: 2.5rem 1rem;
  }
  .block--how .block-title { font-size: 1.25rem; }
  .block--how .block-desc { font-size: 0.875rem; margin-bottom: 0; }
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.25rem;
  }
  .how-step-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin: 0 auto 0.4rem;
    border-width: 1.5px;
  }
  .how-step-num {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    top: -4px;
    transform: translateX(14px);
  }
  .how-step-title {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    line-height: 1.25;
  }
  .how-step-desc {
    font-size: 0.7rem;
    line-height: 1.4;
    max-width: none;
  }
}
@media (max-width: 480px) {
  .block--how { padding: 2rem 0.75rem; }
  .how-steps { gap: 0.35rem; margin-top: 1rem; }
  .how-step-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin: 0 auto 0.3rem;
  }
  .how-step-num { width: 16px; height: 16px; font-size: 0.6rem; transform: translateX(12px); }
  .how-step-title { font-size: 0.72rem; }
  .how-step-desc { font-size: 0.65rem; }
}

/* Feature cards - the blog posts/resources */
.block--features {
  background: var(--bg);
  padding: 3rem 1rem 4rem;
}
.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  min-width: 0;
}
.feature-card:hover {
  transform: translateY(-2px) !important;
  border-color: var(--teal-accent);
  box-shadow: var(--shadow-hover);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.feature-card-icon--teal { background: rgba(40, 215, 255, 0.12); }
.feature-card-icon--sage { background: rgba(40, 215, 255, 0.08); }
.feature-card-icon--navy { background: rgba(255, 255, 255, 0.06); }
.feature-card-accent {
  display: block;
  width: 36px;
  height: 5px;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.feature-card-accent--teal { background: var(--sage); }
.feature-card-accent--peach { background: var(--teal-accent); }
.feature-card-accent--coral { background: var(--primary-btn); }

.feature-card-title, .feature-card-title > * {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.feature-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 768px) {
  .block--features { padding: 2rem 0.75rem 3rem; }
  .feature-cards { gap: 0.75rem; }
  .feature-card { padding: 0.75rem; }
  .feature-card-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
  }
  .feature-card-accent { width: 32px; height: 4px; margin-bottom: 0.5rem; }
  .feature-card-title, .feature-card-title > * { font-size: 0.85rem; }
  .feature-card-desc { font-size: 0.72rem; line-height: 1.4; }
}
/* Phone: 2×2 grid — Career quiz & Resumes on top, AI gap & Find colleges below */
@media (max-width: 600px) {
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .feature-card { padding: 0.65rem; }
  .feature-card-icon {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }
  .feature-card-title, .feature-card-title > * { font-size: 0.8rem; }
  .feature-card-desc { font-size: 0.68rem; line-height: 1.4; }
}
@media (max-width: 480px) {
  .block--features { padding: 1.5rem 0.5rem 2rem; }
  .feature-cards { gap: 0.5rem; }
  .feature-card { padding: 0.5rem; }
  .feature-card-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    border-radius: 6px;
  }
  .feature-card-accent { width: 28px; height: 4px; margin-bottom: 0.35rem; }
  .feature-card-title, .feature-card-title > * { font-size: 0.75rem; }
  .feature-card-desc { font-size: 0.65rem; line-height: 1.35; }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.block-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}
.block-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Page section & banner (quiz, etc.) */
.page-section { padding: 1rem 0 2rem; }
.page-banner {
  position: relative;
  margin: -2rem -1.5rem 2rem -1.5rem;
  padding: 2.5rem 1.5rem;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1200&q=75');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 42, 68, 0.80) 0%, rgba(31, 42, 68, 0.88) 50%, rgba(20, 28, 48, 0.90) 100%);
  pointer-events: none;
}
.page-banner .page-title,
.page-banner .page-intro {
  position: relative;
  z-index: 1;
}
.page-banner .page-title { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.page-banner .page-intro { color: rgba(255,255,255,0.92); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.page-banner--quiz::before {
  background-image: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1200&q=75');
}
.page-banner--quiz::after {
  background: linear-gradient(135deg, rgba(31, 42, 68, 0.78) 0%, rgba(31, 42, 68, 0.85) 50%, rgba(20, 28, 48, 0.88) 100%);
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  color: var(--text);
}
.page-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 60ch;
}

/* About page */
.about-page,
.about-page-wrap .main-content {
  padding: 0;
  max-width: none;
  width: 100%;
}

/* About hero — unified with block--hero-with-bg, smaller height */
.about-hero.about-hero--unified {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  min-height: auto;
}
@media (max-width: 768px) {
  .about-hero.about-hero--unified { padding: 2.5rem 1.5rem 2rem; }
}
@media (max-width: 600px) {
  .about-hero.about-hero--unified { padding: 2rem 1rem 1.5rem; }
}
.about-hero.about-hero--unified::before,
.about-hero.about-hero--unified::after {
  /* inherit from block--hero-with-bg */
}
.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}
.about-hero .hero-badge {
  background: rgba(255, 200, 87, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 200, 87, 0.35);
}

/* About sections */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.about-section--cream {
  max-width: none;
  background: var(--surface);
}
.about-section--cream > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.about-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0 0 0.35rem;
}
.about-section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Format comparison cards */
.about-format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .about-format-grid { grid-template-columns: 1fr; }
}
.about-format-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-format-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.about-format-card--featured {
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 1px rgba(79, 163, 165, 0.15), var(--shadow);
}
.about-format-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.85rem;
}
.about-format-badge--quick {
  background: rgba(31, 42, 68, 0.08);
  color: var(--text-muted);
}
.about-format-badge--full {
  background: rgba(79, 163, 165, 0.12);
  color: var(--teal-accent);
}
.about-format-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.25rem;
}
.about-format-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}
.about-format-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.about-format-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-accent);
  text-decoration: none;
}
.about-format-cta:hover { text-decoration: underline; }

/* Two paths cards */
.about-paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
}
@media (max-width: 640px) {
  .about-paths-grid { grid-template-columns: 1fr; }
}
.about-path-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-path-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}
.about-path-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.about-path-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Results grid */
.about-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .about-results-grid { grid-template-columns: 1fr; }
}
.about-result-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.about-result-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 163, 165, 0.08);
  border-radius: 10px;
}
.about-result-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.2rem;
}
.about-result-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* About CTA */
.about-cta-section {
  padding: 3rem 1.5rem 3.5rem;
  background: var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-cta-section::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 50% 50% at 40% 50%, rgba(40, 215, 255, 0.08) 0%, transparent 70%);
  animation: heroMesh 25s ease-in-out infinite alternate;
  pointer-events: none;
}
.about-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}
.about-cta-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.about-cta-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.about-cta-section .btn-hero-primary {
  background: var(--primary-btn);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(40, 215, 255, 0.2);
}
.about-cta-section .btn-hero-primary:hover {
  background: var(--primary-btn-hover);
  transform: translateY(-2px);
}
.reveal-delay-3 { transition-delay: 0.3s; }

/* Cards */
.card {
  background: var(--surface);
  border: 2px solid rgba(127, 175, 157, 0.30);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow);
}
.card.card-link { cursor: pointer; }
.card:hover {
  border-color: var(--teal-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover), 0 0 0 2px rgba(79, 163, 165, 0.2);
}
.card-icon { font-size: 2.25rem; display: block; margin-bottom: 0.75rem; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
  min-height: 0;
}
.card-cta { color: var(--teal-accent); font-weight: 700; font-size: 0.95rem; margin-top: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--primary-btn);
  color: var(--navy);
}
.btn-primary:hover { background: var(--primary-btn-hover); color: var(--navy); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--primary-btn);
  margin-top: 1rem;
}
.btn-secondary:hover {
  border-color: var(--teal-accent);
  color: var(--teal-accent);
  background: rgba(79, 163, 165, 0.06);
}

/* Forms */
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-textarea, .form-input {
  width: 100%;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}
.form-textarea:focus, .form-input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(127, 175, 157, 0.2);
}
.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 700px) {
  .form-row.two-cols { grid-template-columns: 1fr; }
}

/* Quiz */
.quiz-step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem 0;
}
.quiz-length-section { margin-bottom: 2rem; }
.quiz-path-section { margin-bottom: 1rem; }
.quiz-length-cards { margin-bottom: 0.5rem; }
.quiz-length-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
}
.quiz-length-selected {
  border-color: var(--sage);
  box-shadow: 0 0 0 2px rgba(127, 175, 157, 0.35);
}

.quiz-options-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  align-items: stretch;
}
.quiz-option-card .card-desc { margin-bottom: 0.75rem; flex: 1; min-height: 0; }
.quiz-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.quiz-meta a {
  color: var(--sage);
  text-decoration: none;
}
.quiz-meta a:hover {
  color: var(--teal-accent);
  text-decoration: underline;
}

.major-choose-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}
.major-search-input, .form-select {
  width: 100%;
  max-width: 420px;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}
.major-list-wrapper {
  display: flex;
  align-items: stretch;
  max-height: 220px;
  margin-bottom: 1rem;
  gap: 0;
}
.major-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.major-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.major-list-scrollbar {
  flex-shrink: 0;
  width: 10px;
  background: var(--bg);
  border-radius: 5px;
  position: relative;
  cursor: pointer;
}
.major-list-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  min-height: 24px;
  background: var(--sage);
  border-radius: 5px;
  cursor: grab;
  pointer-events: auto;
}
.major-list-thumb:active {
  cursor: grabbing;
}
.major-submit-btn {
  margin-top: 0.25rem;
}
.major-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.major-option:hover {
  border-color: var(--sage);
  background: rgba(127, 175, 157, 0.10);
}
.major-option.selected {
  border-color: var(--sage);
  background: rgba(127, 175, 157, 0.15);
}
.major-option-label,
.major-option-desc {
  color: var(--text);
}
.quiz-major-badge {
  background: rgba(127, 175, 157, 0.18);
  border: 1px solid var(--sage);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.quiz-question {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.quiz-question-legend { font-weight: 600; margin-bottom: 0.75rem; padding: 0; }
.quiz-options { list-style: none; margin: 0; padding: 0; }
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  margin: 0 -0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.quiz-option input { margin-top: 0.35rem; accent-color: var(--teal-accent); }
.quiz-option:hover {
  background: rgba(127, 175, 157, 0.06);
}
.quiz-option.is-selected {
  background: rgba(127, 175, 157, 0.12);
  box-shadow: inset 0 0 0 2px rgba(127, 175, 157, 0.4);
}

/* Quiz page full-width layout */
.quiz-page-wrap .main-content {
  max-width: 100%;
  padding: 0;
}

/* Quiz hero – shorter than the homepage hero */
.quiz-hero {
  min-height: auto !important;
  padding: 4.5rem 1.5rem 3.5rem !important;
}
.quiz-hero--compact {
  padding: 3.5rem 1.5rem 2.5rem !important;
}
.quiz-hero .block-inner {
  max-width: 640px;
  margin: 0 auto;
}
.quiz-hero-save-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.quiz-hero-save-note a {
  color: var(--sage);
  font-weight: 600;
  text-underline-offset: 2px;
}

/* Quiz content sections */
.quiz-choices-section,
.quiz-major-section,
.quiz-questions-section,
.quiz-results-section {
  padding: 0;
}
.quiz-choices-section .block-inner,
.quiz-major-section .block-inner,
.quiz-questions-section .block-inner,
.quiz-results-section .block-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  text-align: left;
}

/* Quiz choice cards */
.quiz-choices-heading {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  text-align: center;
  margin: 0 0 1.75rem;
  color: var(--text);
}
.quiz-choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.quiz-choice-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.quiz-choice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sage);
}
.quiz-choice-card--featured {
  border-color: var(--sage);
  background: linear-gradient(135deg, rgba(127,175,157,0.06) 0%, rgba(79,163,165,0.06) 100%);
}
.quiz-choice-badge {
  position: absolute;
  top: -0.6rem;
  right: 1.25rem;
  background: var(--sage);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}
.quiz-choice-icon {
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
  line-height: 1;
}
.quiz-choice-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.3rem;
}
.quiz-choice-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.quiz-choice-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}
.quiz-choice-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}
.quiz-choice-card:hover .quiz-choice-cta {
  gap: 0.5rem;
}
.quiz-choice-card.clicked {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Quiz length selector (interactive short/full) */
.quiz-length-selector {
  width: 100%;
}
.quiz-length-cards-interactive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.quiz-length-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.quiz-length-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--sage);
}
.quiz-length-card.active {
  border-color: var(--sage);
  background: linear-gradient(135deg, rgba(127,175,157,0.08) 0%, rgba(79,163,165,0.06) 100%);
  box-shadow: 0 4px 24px rgba(127, 175, 157, 0.2);
}
.quiz-length-card--featured.active {
  border-color: var(--teal-accent);
}
.quiz-length-badge {
  position: absolute;
  top: -0.6rem;
  right: 1.25rem;
  background: var(--sage);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}
.quiz-length-card-icon {
  font-size: 2rem;
  margin-bottom: 0.65rem;
  line-height: 1;
  transition: transform 0.3s ease;
}
.quiz-length-card:hover .quiz-length-card-icon {
  transform: scale(1.1);
}
.quiz-length-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.3rem;
}
.quiz-length-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.quiz-length-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}
.quiz-length-card-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.3s ease, transform 0.2s ease;
}
.quiz-length-card:hover .quiz-length-card-cta {
  gap: 0.5rem;
}

/* Quiz path page extras */
.quiz-path-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin: -0.5rem 0 1.5rem;
}
.quiz-path-cards .quiz-choice-card {
  overflow: hidden;
}
.quiz-path-card-visual {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.quiz-path-card-visual .quiz-choice-icon {
  margin-bottom: 0;
  transition: transform 0.3s ease;
}
.quiz-path-card:hover .quiz-path-card-visual .quiz-choice-icon {
  transform: scale(1.15) rotate(-3deg);
}
.quiz-path-arrow {
  font-size: 1.25rem;
  color: var(--sage);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.quiz-path-card:hover .quiz-path-arrow {
  opacity: 1;
  transform: translateX(0);
}

.quiz-back-link {
  text-align: center;
}
.quiz-back-link a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.quiz-back-link a:hover {
  color: var(--teal-accent);
}

/* Quiz major pill */
.quiz-major-pill {
  display: inline-block;
  background: rgba(127, 175, 157, 0.15);
  border: 1px solid var(--sage);
  color: var(--text);
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Quiz progress bar */
.quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 62px;
  z-index: 50;
  background: var(--bg);
  padding: 0.65rem 0;
}
.quiz-progress-bar {
  flex: 1;
  height: 5px;
  background: rgba(31, 42, 68, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--teal-accent));
  border-radius: 3px;
  transition: width 0.4s ease;
}
.quiz-progress-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Quiz submit */
.quiz-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quiz-submit-btn.is-ready {
  box-shadow: 0 4px 20px rgba(127, 175, 157, 0.35);
}

/* Quiz results */
.quiz-results-section .block-inner {
  max-width: 1100px;
}
.quiz-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.quiz-results-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
.results-careers-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.explore-badge {
  background: rgba(200, 221, 213, 0.30);
  border-color: var(--light-primary);
}
.explore-section-title { font-size: 1.2rem; margin-bottom: 0.35rem; color: var(--navy); }
.explore-section-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.explore-majors-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}
.explore-major-item { margin: 0; display: flex; }
.explore-major-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  height: 100%;
  min-height: 0;
}
.explore-major-link:hover {
  border-color: var(--sage);
  background: rgba(127, 175, 157, 0.10);
  box-shadow: var(--shadow);
}
.explore-major-name { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.explore-major-desc {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  flex: 1;
  min-height: 0;
}
.explore-major-cta {
  font-size: 0.85rem;
  color: var(--teal-accent);
  font-weight: 600;
  margin-top: auto;
}
.explore-major-schools-link {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 0.35rem;
  padding-left: 1rem;
  transition: color 0.2s;
}
.explore-major-schools-link:hover {
  color: var(--teal-accent);
}

/* Career results */
.results-summary + .career-cards {
  margin-top: 2.5rem;
}
.career-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: start;
}
.career-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  box-shadow: var(--shadow);
}
.career-card-rank {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--sage);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}
.career-card-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.career-card-desc { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 1rem 0; flex: 1; min-height: 0; line-height: 1.5; }
.career-learn-more {
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding-top: 1rem;
}
.career-learn-more-trigger {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-accent);
  user-select: none;
}
.career-learn-more-trigger::-webkit-details-marker,
.career-learn-more-trigger::marker { display: none; }
.career-learn-more[open] .career-learn-more-arrow { transform: rotate(180deg); }
.career-learn-more-arrow { transition: transform 0.25s ease; }
.career-learn-more-content { padding-top: 0.75rem; }
.career-learn-more-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.results-summary {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.results-summary-title { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--teal-accent); }
.results-summary-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; margin: 0; }
.results-major { margin-bottom: 1rem; }
.results-major strong { color: var(--sage); }
.results-error { color: var(--teal-accent); }
.results-error a { color: var(--teal-accent); }
.scores-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.scores-list { color: var(--text-muted); font-size: 0.95rem; padding-left: 1.25rem; }

/* Quiz loading states */
.quiz-loading {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.quiz-calc-done {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.quiz-calculating {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.quiz-calc-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--teal-accent);
  border-radius: 50%;
  animation: quiz-spin 0.9s linear infinite;
}
@keyframes quiz-spin { to { transform: rotate(360deg); } }
.quiz-chart-container { margin-bottom: 2rem; }
.quiz-chart-title { font-size: 1.1rem; margin-bottom: 1rem; color: var(--teal-accent); }
.quiz-chart-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 640px) {
  .quiz-chart-wrap {
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
  }
  .quiz-chart-wrap .quiz-chart-legend {
    margin-top: 0.5rem;
  }
}
.quiz-pie-chart { display: block; border-radius: 50%; border: 2px solid var(--border); }
.quiz-chart-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.quiz-legend-item { display: flex; align-items: center; gap: 0.5rem; }
.quiz-legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

.results-actions,
.explore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.explore-actions { margin-top: 2rem; }
.results-from-explore-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

/* Resume pages – full-width layout */
.page-resume .main-content {
  padding: 0;
  max-width: none;
  width: 100%;
}

/* Resume hero – shorter than the homepage hero */
.resume-hero {
  min-height: auto !important;
  padding: 4.5rem 1.5rem 3.5rem !important;
}
.resume-hero--compact {
  padding: 3.5rem 1.5rem 2.5rem !important;
}
.resume-hero .block-inner {
  max-width: 640px;
  margin: 0 auto;
}

/* Academic Writing layout — Word + Canva style */
.page-academic-writing .main-content {
  padding: 0;
  max-width: none;
  width: 100%;
}
.academic-writing-layout {
  display: flex;
  min-height: 0;
  background: var(--surface);
  padding-top: 1.5rem;
}
.academic-sidebar {
  width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  background: var(--surface-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease, min-width 0.25s ease;
  position: relative;
}
.academic-sidebar.is-collapsed {
  width: 0;
  min-width: 0;
  overflow: hidden;
  border-right: none;
  padding: 0;
}
.academic-sidebar-collapse {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 72px;
  padding: 0;
  margin: 0;
  border: none;
  border-left: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
  box-shadow: var(--shadow);
}
.academic-sidebar-collapse:hover {
  background: rgba(40, 215, 255, 0.12);
  color: var(--primary-btn);
}
.academic-sidebar.is-collapsed .academic-sidebar-collapse {
  display: none;
}
.academic-sidebar-expand {
  width: 28px;
  min-width: 28px;
  flex-shrink: 0;
  height: 80px;
  padding: 0;
  border: none;
  border-right: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  align-self: center;
}
.academic-sidebar-expand:hover {
  background: rgba(40, 215, 255, 0.12);
  color: var(--primary-btn);
}
.academic-sidebar-inner {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.academic-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.academic-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.academic-nav-item:hover {
  color: var(--text);
  background: rgba(40, 215, 255, 0.08);
}
.academic-nav-item.is-active {
  color: var(--primary-btn);
  background: rgba(40, 215, 255, 0.12);
}
.academic-nav-icon {
  font-size: 1rem;
  opacity: 0.8;
}
.academic-sidebar-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.academic-ai-prompt {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.academic-ai-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s;
}
.academic-ai-input:focus {
  outline: none;
  border-color: var(--primary-btn);
}
.academic-ai-submit {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--primary-btn);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.academic-ai-submit:hover {
  background: var(--primary-btn-hover);
  transform: scale(1.05);
}
.academic-generate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--primary-btn);
  border-radius: 10px;
  background: rgba(40, 215, 255, 0.1);
  color: var(--primary-btn);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.academic-generate-btn:hover {
  background: var(--primary-btn);
  color: var(--navy);
}
.academic-generate-icon {
  font-size: 0.9rem;
}
.academic-doc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.academic-doc-link {
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.academic-doc-link:hover {
  color: var(--text);
  background: rgba(40, 215, 255, 0.08);
}
.academic-doc-link.is-active {
  color: var(--primary-btn);
  font-weight: 600;
  background: rgba(40, 215, 255, 0.12);
}
.academic-majors-section { flex: 1; overflow: hidden; }
.academic-majors-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 280px;
  overflow-y: auto;
}
.academic-major-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  width: 100%;
  text-align: left;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  background: none;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.academic-major-link:hover {
  background: rgba(40, 215, 255, 0.08);
  color: var(--primary-btn);
}
.academic-major-link.is-selected {
  background: rgba(40, 215, 255, 0.15);
  color: var(--primary-btn);
}
.academic-major-icon {
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 215, 255, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}
.academic-major-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.academic-major-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.academic-sidebar-footer {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.academic-tips-dropdown {
  font-size: 0.9rem;
}
.academic-tips-dropdown-trigger {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.academic-tips-dropdown-trigger::-webkit-details-marker { display: none; }
.academic-tips-dropdown-trigger::marker { display: none; }
.academic-tips-dropdown-trigger:hover { color: var(--primary-btn); }
.academic-tips-chevron {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s;
}
.academic-tips-dropdown[open] .academic-tips-chevron { transform: rotate(180deg); }
.academic-tips-dropdown-content {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem 0;
}
.academic-tips-verbs {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.academic-tips-verbs-title {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0 0 0.25rem;
  font-weight: 700;
}
.academic-tips-verbs-intro {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.academic-tips-verb-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.academic-tips-verb-group {
  font-size: 0.72rem;
  padding: 0.35rem 0.5rem;
  background: rgba(79, 163, 165, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.academic-tips-verb-group strong {
  color: var(--primary-btn);
  font-size: 0.7rem;
}
.academic-tips-verb-group span {
  color: var(--text-muted);
  line-height: 1.3;
}
.academic-tips-item {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.academic-tips-item:last-of-type { border-bottom: none; }
.academic-tips-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 215, 255, 0.15);
  color: var(--primary-btn);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
}
.academic-tips-title {
  font-size: 0.82rem;
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
}
.academic-tips-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}
.academic-tips-more {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--primary-btn);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.academic-tips-more:hover { color: var(--primary-btn-hover); }

.academic-main {
  flex: 1;
  overflow: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.academic-main-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.academic-main-header {
  text-align: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.academic-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.academic-main-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.academic-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  color: var(--text);
}
.academic-toolbar-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--primary-btn);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.academic-toolbar-ai:hover {
  background: var(--primary-btn-hover);
  transform: translateY(-1px);
}
.academic-toolbar-divider {
  width: 1px;
  height: 1.4rem;
  background: rgba(255, 255, 255, 0.15);
}
.academic-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.academic-toolbar-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.academic-toolbar-btn:hover {
  background: rgba(40, 215, 255, 0.15);
}
.academic-toolbar-btn.is-active {
  background: rgba(40, 215, 255, 0.2);
  color: var(--primary-btn);
}
.academic-toolbar-label {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 600;
  margin-right: 0.35rem;
}
.academic-toolbar-select {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}
.academic-search-wrap {
  position: relative;
  max-width: 360px;
  margin: 0 auto 1.5rem;
}
.academic-search-wrap--sidebar {
  max-width: none;
  margin: 0 0 0.75rem;
}
.academic-search-wrap--sidebar .academic-search-input {
  padding-left: 2rem;
  font-size: 0.85rem;
}
.academic-search-wrap--sidebar .academic-search-icon {
  left: 0.65rem;
}

/* Academic document canvas — paper/writing area (US Letter 8.5" × 11") */
.academic-document-wrap {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius-sm);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  align-items: center;
}
.academic-document-paper {
  background: #fff;
  width: 8.5in;
  height: 11in;
  min-height: 11in;
  max-width: min(8.5in, 100%);
  margin: 0 auto;
  padding: 0.75in 1in;
  font-size: 12pt;
  line-height: 1.6;
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.academic-document-paper .resume-paper {
  outline: none;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.academic-document-paper .rp-editor {
  outline: none;
  cursor: text;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.academic-document-paper .rp-editor .ql-container {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 10pt;
  border: none;
  flex: 1;
  min-height: 0;
}
.academic-document-paper .rp-editor .ql-container.ql-snow {
  border: none;
}
.academic-document-paper .rp-editor .ql-toolbar.ql-snow {
  display: none;
}
.academic-document-paper .rp-editor .ql-editor {
  min-height: 0;
  padding: 0 0.25in;
  line-height: 1.6;
  font-size: 10pt;
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
  overflow-y: auto;
}
.academic-document-paper .rp-editor .ql-editor h1 {
  font-size: 18pt;
  font-weight: bold;
  color: var(--navy);
  text-align: center;
  margin: 0 0 4px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.academic-document-paper .rp-editor .ql-editor h2 {
  font-size: 11pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  margin: 12px 0 6px;
  color: var(--navy);
}
.academic-document-paper .rp-editor .ql-editor p {
  margin: 0 0 8px;
}
.academic-document-paper .rp-editor .ql-editor ul {
  margin: 4px 0;
  padding-left: 20px;
}
.academic-document-paper .rp-editor .ql-editor li {
  margin-bottom: 4px;
}
/* Legacy rp-* (template_detail) */
.academic-document-paper .rp-header {
  text-align: center;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.academic-document-paper .rp-name { font-size: 18pt; font-weight: bold; color: var(--navy); margin-bottom: 4px; }
.academic-document-paper .rp-contact { font-size: 10pt; color: var(--text-muted); }
.academic-document-paper .rp-section { margin-bottom: 12px; }
.academic-document-paper .rp-section-title { font-size: 11pt; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); padding-bottom: 4px; margin-bottom: 6px; color: var(--navy); }
.academic-document-paper .rp-content { outline: none; font-size: 10pt; min-height: 2em; }
.academic-document-paper .rp-content .ql-container { font-family: Georgia, serif; font-size: 10pt; }
.academic-document-paper .rp-content .ql-container.ql-snow { border: none; }
.academic-document-paper .rp-content .ql-toolbar.ql-snow { display: none; }
.academic-toolbar-undo,
.academic-toolbar-redo {
  padding: 0.35rem 0.5rem !important;
  font-size: 1rem;
}
.academic-toolbar-undo:disabled,
.academic-toolbar-redo:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.academic-toolbar-actions {
  margin-left: auto;
}
.academic-toolbar-download {
  padding: 0.45rem 0.9rem;
  background: var(--primary-btn);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.academic-toolbar-download:hover {
  background: var(--primary-btn-hover);
}
.academic-toolbar-download:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}
.academic-btn-spinner {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.academic-search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--text);
}
.academic-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}
.academic-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.academic-template-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.2s;
}
.academic-template-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(79, 163, 165, 0.3);
}
.academic-template-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.academic-template-icon {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, rgba(79, 163, 165, 0.08) 0%, rgba(127, 175, 157, 0.1) 100%);
}
.academic-template-body {
  padding: 1rem;
}
.academic-template-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.35rem;
}
.academic-template-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.academic-template-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-accent);
}
.academic-no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .academic-writing-layout { flex-direction: column; }
  .academic-sidebar {
    width: 100%;
    max-width: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .academic-sidebar.is-collapsed {
    width: 100%;
    height: 0;
    min-height: 0;
    overflow: hidden;
  }
  .academic-sidebar-expand {
    width: 100%;
    min-width: 100%;
    height: 36px;
  }
  .academic-sidebar-inner { flex-direction: row; flex-wrap: wrap; }
  .academic-majors-section { flex: none; width: 100%; }
  .academic-majors-list { max-height: 140px; }
}
@media (max-width: 600px) {
  .academic-main { padding: 1.25rem; }
  .academic-templates-grid { grid-template-columns: 1fr; }
}

/* Resume content sections */
.resume-templates-section,
.resume-tips-section,
.resume-ai-section,
.resume-detail-section,
.resume-verbs-section-block {
  padding: 0;
}
.resume-templates-section .block-inner,
.resume-tips-section .block-inner,
.resume-ai-section .block-inner,
.resume-verbs-section-block .block-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}
@media (max-width: 768px) {
  .resume-templates-section .block-inner,
  .resume-tips-section .block-inner,
  .resume-ai-section .block-inner,
  .resume-verbs-section-block .block-inner {
    padding: 2rem 1.25rem 2.5rem;
  }
}
@media (max-width: 600px) {
  .resume-templates-section .block-inner,
  .resume-tips-section .block-inner,
  .resume-ai-section .block-inner,
  .resume-verbs-section-block .block-inner {
    padding: 1.5rem 1rem 2rem;
  }
}
.resume-detail-section .block-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
@media (max-width: 768px) {
  .resume-detail-section .block-inner { padding: 2rem 1.25rem 2.5rem; }
}
@media (max-width: 600px) {
  .resume-detail-section .block-inner { padding: 1.5rem 1rem 2rem; }
}

/* Resume templates search */
.resume-search-wrap {
  max-width: 420px;
  margin: 0 auto 2rem;
  position: relative;
}
.resume-search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.resume-search-input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(127, 175, 157, 0.15);
}
.resume-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
}
.resume-no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  font-size: 0.95rem;
  display: none;
}

/* Resume tips animated counters */
.resume-tip-number {
  transition: transform 0.3s ease, color 0.3s ease;
}
.resume-tip-card.is-visible .resume-tip-number {
  animation: tipPop 0.5s ease;
}
@keyframes tipPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* Resume quickstart steps animation */
.resume-qs-step {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.resume-quickstart.is-animated .resume-qs-step {
  animation: qsSlideIn 0.5s ease both;
}
.resume-quickstart.is-animated .resume-qs-step:nth-child(2) { animation-delay: 0.1s; }
.resume-quickstart.is-animated .resume-qs-step:nth-child(3) { animation-delay: 0.2s; }
.resume-quickstart.is-animated .resume-qs-step:nth-child(4) { animation-delay: 0.3s; }
@keyframes qsSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Resume back link (consistent) */
.resume-back-link {
  text-align: center;
  padding: 0 0 2rem;
}
.resume-back-link a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.resume-back-link a:hover {
  color: var(--teal-accent);
}

/* Resume options grid */
.resume-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.resume-options-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
}
@media (max-width: 900px) {
  .resume-options-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .resume-options-grid { grid-template-columns: 1fr; }
}
.resume-option-card {
  background: var(--surface);
  border: 2px solid rgba(127, 175, 157, 0.30);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow);
  text-align: left;
}
.resume-option-card:hover {
  border-color: var(--teal-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.resume-option-icon {
  font-size: 3.25rem;
  margin-bottom: 0.25rem;
  line-height: 1;
  display: block;
  min-height: 3.25rem;
}
.resume-option-icon--plus {
  display: block;
  color: var(--sage);
}
.resume-option-icon--plus svg {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
}
.resume-option-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.resume-option-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  text-align: left;
}
.resume-option-cta {
  color: var(--teal-accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Resume AI generate form */
.resume-generate-section {
  padding: 2rem 0 3rem;
}
.resume-generate-form {
  max-width: 720px;
  margin: 0 auto;
}
.resume-generate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
@media (max-width: 700px) {
  .resume-generate-grid { grid-template-columns: 1fr; }
}
.resume-generate-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.resume-generate-fieldset--wide {
  grid-column: 1 / -1;
}
.resume-generate-fieldset legend {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
.resume-generate-fieldset label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.75rem 0 0.3rem;
}
.resume-generate-fieldset label:first-of-type {
  margin-top: 0;
}
.resume-generate-fieldset input,
.resume-generate-fieldset textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 0.2s;
}
.resume-generate-fieldset input:focus,
.resume-generate-fieldset textarea:focus {
  outline: none;
  border-color: var(--teal-accent);
}
.resume-generate-fieldset textarea {
  resize: vertical;
  min-height: 80px;
}
.resume-generate-fieldset .required {
  color: var(--teal-accent);
}
.resume-generate-actions {
  margin-top: 2rem;
  text-align: center;
}
.resume-generate-actions .btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.05rem;
}
.resume-generate-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}
.resume-generate-hint-small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}
.resume-generate-error {
  max-width: 720px;
  margin: 1.5rem auto 0;
  padding: 1rem;
  background: rgba(200, 118, 106, 0.15);
  border: 1px solid #c8766a;
  border-radius: var(--radius);
  color: #8b3a30;
}

/* Resume major grid */
.resume-major-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.resume-major-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}
.resume-major-card:hover {
  border-color: var(--sage);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.resume-major-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.resume-major-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  display: block;
}
.resume-major-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
}
.resume-major-focus {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.resume-major-cta {
  font-size: 0.88rem;
  color: var(--teal-accent);
  font-weight: 600;
  margin-top: 0.75rem;
}

/* Resume detail layout (preview + sidebar) */
.resume-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .resume-detail-layout {
    grid-template-columns: 1fr;
  }
}

/* Resume quickstart bar */
.resume-quickstart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.resume-quickstart-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
}
.resume-qs-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.resume-qs-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Resume collapsible details */
.resume-sidebar-card--compact {
  padding: 0;
  overflow: hidden;
}
.resume-details {
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.resume-details:last-child {
  border-bottom: none;
}
.resume-details[open] > .resume-details-toggle {
  border-bottom: 1px solid var(--border);
}
.resume-details-toggle {
  display: block;
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease;
}
.resume-details-toggle::-webkit-details-marker { display: none; }
.resume-details-toggle::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.8rem;
  color: var(--teal-accent);
  transition: transform 0.2s ease;
}
.resume-details[open] > .resume-details-toggle::before {
  transform: rotate(90deg);
}
.resume-details-toggle:hover {
  background: rgba(31, 42, 68, 0.03);
}
.resume-details > .resume-sidebar-tips,
.resume-details > .resume-sidebar-sections {
  padding: 0.75rem 1.25rem 1rem 2.25rem;
}

/* Teal button variant */
.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-teal:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Resume review results */
.review-results {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-top: 1rem;
  animation: gapFadeIn 0.4s ease;
  text-align: left;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.review-score-ring {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.review-score-ring canvas {
  display: block;
}
.review-score-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.review-verdict-wrap {
  flex: 1;
  min-width: 0;
}
.review-verdict {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.25rem;
}
.review-verdict-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
.review-section {
  margin-bottom: 1.25rem;
}
.review-section:last-child {
  margin-bottom: 0;
}
.review-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}
.review-section-title--good {
  color: var(--sage);
}
.review-section-title--fix {
  color: var(--teal-accent);
}
.review-strengths {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text);
}
.review-strength-item {
  margin-bottom: 0.3rem;
  line-height: 1.5;
}
.review-improvement {
  background: rgba(79, 163, 165, 0.05);
  border: 1px solid rgba(79, 163, 165, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  text-align: left;
}
.review-improvement:last-child {
  margin-bottom: 0;
}
.review-imp-header {
  margin-bottom: 0.35rem;
}
.review-imp-area {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-accent);
}
.review-imp-issue {
  font-size: 0.88rem;
  color: var(--text);
  margin: 0 0 0.35rem;
  line-height: 1.5;
  text-align: left;
}
.review-imp-fix {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  text-align: left;
}

/* Resume format toolbar (mini word-like) */
.resume-format-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
}
.resume-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.resume-toolbar-divider {
  width: 1px;
  height: 1.25rem;
  background: rgba(255,255,255,0.35);
  margin: 0 0.15rem;
}
.resume-format-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  min-width: 2rem;
  height: 1.75rem;
  padding: 0 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}
.resume-format-btn:hover {
  background: rgba(255,255,255,0.3);
}
.resume-format-btn.is-active {
  background: rgba(127, 175, 157, 0.7);
  color: #fff;
}
.resume-format-undo,
.resume-format-redo {
  font-size: 1.1rem;
}
.resume-format-undo:disabled,
.resume-format-redo:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.resume-format-btn--ai {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem;
  background: linear-gradient(135deg, var(--teal-accent) 0%, var(--sage) 100%);
  color: #fff;
}
.resume-format-btn--ai:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #6b9f8d 100%);
  color: #fff;
}
.resume-ai-sparkle { font-size: 0.9rem; }

/* FutureBot pop-up — Canva Magic Write style */
.futurebot-popup {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  padding-top: 0.5rem;
}
.futurebot-popup-inner {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  max-width: 380px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-btn), var(--primary-btn-hover)) 1;
}
.futurebot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.futurebot-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.futurebot-sparkle {
  color: var(--primary-btn);
  font-size: 0.85rem;
}
.futurebot-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s;
}
.futurebot-close:hover {
  color: var(--text);
}
.futurebot-prompt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}
.futurebot-input-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.futurebot-input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}
.futurebot-input:focus {
  outline: none;
  border-color: var(--primary-btn);
  box-shadow: 0 0 0 2px rgba(40, 215, 255, 0.2);
}
.futurebot-input::placeholder {
  color: var(--text-muted);
}
.futurebot-generate-btn {
  flex-shrink: 0;
  padding: 0.45rem 0.75rem;
  background: var(--primary-btn);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.futurebot-generate-btn:hover {
  background: var(--primary-btn-hover);
}
.futurebot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.futurebot-suggestion {
  padding: 0.3rem 0.6rem;
  background: rgba(40, 215, 255, 0.1);
  border: 1px solid rgba(40, 215, 255, 0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.futurebot-suggestion:hover {
  background: rgba(40, 215, 255, 0.2);
  border-color: var(--primary-btn);
}
.futurebot-status {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}
.futurebot-status--error {
  color: #c23;
}
.futurebot-output-wrap {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.futurebot-output {
  max-height: 160px;
  overflow-y: auto;
  padding: 0.5rem 0.6rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0.4rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.futurebot-insert-btn {
  display: block;
  width: 100%;
  padding: 0.4rem 0.6rem;
  background: rgba(40, 215, 255, 0.12);
  border: 1px solid var(--primary-btn);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-btn);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.futurebot-insert-btn:hover {
  background: var(--primary-btn);
  color: var(--navy);
}
.futurebot-popup--academic {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  z-index: 200;
}
.futurebot-popup--draggable {
  position: fixed !important;
  margin-top: 0;
  width: auto;
  max-width: 380px;
}
.futurebot-drag-handle {
  cursor: move;
  user-select: none;
}
.futurebot-drag-handle:active {
  cursor: grabbing;
}
.futurebot-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  z-index: 1;
}
.futurebot-resize-handle::after {
  content: '';
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  opacity: 0.5;
}
.futurebot-resize-handle:hover::after {
  opacity: 1;
}

/* Toolbar tooltips — pop up on hover */
.resume-format-btn[title],
.resume-format-select[title],
.academic-toolbar-btn[title],
.academic-toolbar-select[title] {
  position: relative;
}
.resume-format-btn[title]:hover::after,
.resume-format-select[title]:hover::after,
.academic-toolbar-btn[title]:hover::after,
.academic-toolbar-select[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -6px);
  padding: 0.4rem 0.7rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 6px;
  margin-bottom: 4px;
  z-index: 100;
  pointer-events: none;
  animation: tooltipFadeIn 0.15s ease-out;
}
@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translate(-50%, -4px); }
  to { opacity: 1; transform: translate(-50%, -6px); }
}
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -6px);
  padding: 0.35rem 0.6rem;
  background: #1f2a44;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translate(-50%, -8px);
}
.resume-format-select {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  min-width: 5rem;
}
.resume-format-select.resume-format-size { min-width: 4rem; }
.resume-format-select.resume-format-color { min-width: 4.5rem; }
.resume-format-select option { color: #1f2a44; }
.resume-back-top { margin: 0 0 1rem; }
.resume-back-top .btn--back {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

/* Resume preview (editable) */
.resume-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.resume-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  overflow: auto;
}
.resume-paper {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.92rem;
  color: #333;
  line-height: 1.55;
  max-width: 100%;
}
.resume-paper.rp-doc p {
  margin: 0 0 0.75rem;
}
.resume-paper.rp-doc p[contenteditable="true"]:focus {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}
.rp-header {
  text-align: center;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.rp-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.rp-contact {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.rp-section {
  margin-bottom: 0.85rem;
}
.rp-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
  text-align: left;
}
.rp-content {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: left;
}
.rp-content:focus {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Quill editor — Word-like styling inside resume paper */
.rp-content .ql-container {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 11pt;
}
.rp-content .ql-editor {
  min-height: 2rem;
  padding: 0.35rem 0.5rem;
  line-height: 1.5;
}
.rp-content .ql-editor.ql-blank::before {
  font-style: normal;
  color: var(--text-muted);
}
.resume-paper .rp-content .ql-container.ql-snow {
  border: none;
}
.resume-paper .rp-content .ql-toolbar.ql-snow {
  display: none;
}
.rp-content ul {
  margin: 0.25rem 0;
  padding-left: 1.25rem;
}
.rp-content li {
  margin-bottom: 0.3rem;
}
.resume-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}
.resume-action-btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  border-radius: 6px;
  margin-top: 0;
}
.resume-action-btn span[aria-hidden="true"] {
  margin-right: 0.3rem;
}

/* Resume sidebar */
.resume-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.resume-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.resume-sidebar-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.resume-sidebar-tips,
.resume-sidebar-sections,
.resume-sidebar-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}
.resume-sidebar-tips li,
.resume-sidebar-sections li,
.resume-sidebar-steps li {
  margin-bottom: 0.5rem;
}
.resume-sidebar-steps a {
  color: var(--teal-accent);
  text-decoration: none;
}
.resume-sidebar-steps a:hover {
  text-decoration: underline;
}

/* Resume tips page */
.resume-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.resume-tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.resume-tip-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.resume-tip-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.resume-tip-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.resume-tip-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Action verbs section */
.resume-verbs-section {
  max-width: 900px;
  margin: 0 auto;
}
.resume-verbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.resume-verb-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.resume-verb-category {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.resume-verb-list {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* AI Tools */
.ai-key-setup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  text-align: left;
}
.ai-key-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.ai-key-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.ai-key-header strong { display: block; font-size: 1rem; color: var(--text); margin-bottom: 0.15rem; }
.ai-key-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; text-align: left; }
.ai-key-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--teal-accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.ai-key-link:hover { text-decoration: underline; }
.ai-key-input-row { display: flex; gap: 0.5rem; }
.ai-key-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}
.ai-key-input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 2px rgba(127, 175, 157, 0.2); }
.ai-key-save { padding: 0.5rem 1rem; font-size: 0.85rem; white-space: nowrap; }

/* AI tool sections (accordion) */
.ai-tool-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ai-tool-section + .ai-tool-section { margin-top: 0.75rem; }
.ai-tool-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.ai-tool-toggle:hover { background: rgba(127, 175, 157, 0.06); }
.ai-tool-icon { font-size: 1.1rem; }
.ai-tool-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}
.ai-tool-body {
  padding: 0 1rem 1rem;
  text-align: left;
}
.ai-tool-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.75rem;
  text-align: left;
}

/* AI inputs */
.ai-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  margin-top: 0.75rem;
}
.ai-label:first-child { margin-top: 0; }
.ai-optional { font-weight: 400; color: var(--text-muted); }
.ai-textarea, .ai-input, .ai-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}
.ai-textarea:focus, .ai-input:focus, .ai-select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 2px rgba(127, 175, 157, 0.2);
}
.ai-textarea-lg { min-height: 200px; }
.ai-action-btn { margin-top: 0.75rem; width: 100%; text-align: center; }

/* AI results */
.ai-result {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(127, 175, 157, 0.08);
  border: 1px solid rgba(127, 175, 157, 0.25);
  border-radius: var(--radius-sm);
}
.ai-result-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage);
  margin-bottom: 0.5rem;
}
.ai-result-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}
.ai-result-formatted { white-space: normal; }
.ai-result-formatted ul { margin: 0.5rem 0; padding-left: 1.25rem; }
.ai-result-formatted li { margin-bottom: 0.3rem; }
.ai-result-formatted h3, .ai-result-formatted h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
}
.ai-result-lg { margin-top: 1.5rem; }
.ai-copy-btn { margin-top: 0.75rem; font-size: 0.85rem; }

/* AI error */
.ai-error {
  font-size: 0.85rem;
  color: #c0392b;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  background: rgba(192, 57, 43, 0.06);
  border-radius: 6px;
}

/* AI loading */
.ai-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.ai-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--teal-accent);
  border-radius: 50%;
  animation: quiz-spin 0.8s linear infinite;
}

/* AI tailor page */
.ai-tailor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .ai-tailor-grid { grid-template-columns: 1fr; }
}
.ai-tailor-col { display: flex; flex-direction: column; }
.ai-resume-upload-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.ai-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  margin: 0;
}
.ai-resume-source {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.ai-tailor-btn { max-width: 300px; margin: 1rem auto 0; }

/* AI sidebar card wrapper */
.ai-sidebar-wrap {
  margin-top: 0.5rem;
}
.ai-sidebar-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ai-sidebar-title .ai-badge {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--teal-accent);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* ---- Gap Analysis ---- */
.gap-analysis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.gap-analysis-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
}
.gap-analysis-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}
.gap-btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gapSpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}
@keyframes gapSpin { to { transform: rotate(360deg); } }

/* Gap results */
.gap-results {
  animation: gapFadeIn 0.5s ease;
}
@keyframes gapFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.gap-results-top {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
@media (max-width: 680px) {
  .gap-results-top {
    flex-direction: column;
    align-items: center;
  }
}

/* Donut chart */
.gap-chart-wrap {
  flex-shrink: 0;
}
.gap-chart-ring {
  position: relative;
  width: 220px;
  height: 220px;
}
.gap-chart-ring canvas {
  display: block;
}
.gap-chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.gap-chart-score {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.gap-chart-score-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

/* Summary */
.gap-summary-wrap {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.gap-summary-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.gap-summary-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  text-align: left;
}
.gap-strengths-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  margin: 0 0 0.4rem;
}
.gap-strengths-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text);
  text-align: left;
}
.gap-strengths-list li {
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

/* Gap section cards */
.gap-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  text-align: left;
}
.gap-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.25rem;
}
.gap-section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  text-align: left;
}

/* Missing keyword tags */
.gap-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gap-keyword-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(79, 163, 165, 0.10);
  color: var(--teal-accent);
  border: 1px solid rgba(79, 163, 165, 0.25);
  border-radius: 20px;
}

/* Suggestions list */
.gap-suggestions {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  color: var(--text);
  text-align: left;
}
.gap-suggestions li {
  margin-bottom: 0.6rem;
  line-height: 1.55;
  padding-left: 0.25rem;
}
.gap-suggestions li::marker {
  color: var(--teal-accent);
  font-weight: 700;
}

/* CTA bar */
.gap-cta-bar {
  text-align: center;
  padding: 1.25rem;
  background: rgba(127, 175, 157, 0.08);
  border: 1px solid rgba(127, 175, 157, 0.2);
  border-radius: var(--radius-sm);
}
.gap-ai-tools {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.gap-cta-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

/* More tools heading */
.gap-tools-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
}

/* Schools page – full-width layout */
/* Keep main as non-scroll-container so body scroll works on mobile (fixes iOS "can't scroll while loading") */
body.page-schools {
  -webkit-overflow-scrolling: touch;
}
.page-schools .main-content {
  padding: 0;
  max-width: none;
  width: 100%;
  min-height: 0; /* flex child can shrink so document scroll works */
  box-sizing: border-box;
  overflow: visible; /* do not use overflow-x: hidden – it blocks touch scroll on iOS */
}
.page-schools .schools-content-section {
  overflow-x: clip; /* contain horizontal overflow without blocking body scroll */
}
@supports not (overflow-x: clip) {
  .page-schools .schools-content-section { overflow-x: hidden; }
}
.schools-hero {
  min-height: auto !important;
  padding: 2.5rem 1.5rem 2rem !important;
  display: block;
  align-items: unset;
  justify-content: unset;
}
.schools-hero .block-inner {
  max-width: 640px;
  margin: 0 auto;
}
.schools-hero .hero-badge { font-size: 0.8rem; margin-bottom: 0.4rem; }
.schools-hero .block-hero-title { font-size: clamp(1.35rem, 3vw, 1.65rem); margin-bottom: 0.35rem; }
.schools-hero .block-hero-sub { font-size: 0.95rem; }
@media (max-width: 600px) {
  .schools-hero { padding: 2rem 1rem 1.5rem !important; }
}
.schools-content-section {
  padding: 0;
  box-sizing: border-box;
}
.schools-content-section .block-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  box-sizing: border-box;
  min-width: 0;
}

/* Quiz result badge */
.schools-quiz-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(127,175,157,0.08) 0%, rgba(79,163,165,0.08) 100%);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text);
}
.schools-quiz-badge-icon { font-size: 1.15rem; }
.schools-quiz-badge-clear {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 50%;
  transition: color 0.2s;
}
.schools-quiz-badge-clear:hover { color: var(--text); }

/* Filters */
.schools-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  min-width: 0;
}
.schools-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.schools-filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.schools-filter-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A6478' d='M3 5l3 3 3-3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  box-sizing: border-box;
}
.schools-filter-select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(127, 175, 157, 0.15);
}

/* Results bar */
.schools-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.schools-results-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.schools-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.schools-clear-btn:hover {
  color: var(--teal-accent);
  background: rgba(79, 163, 165, 0.08);
}

/* School card grid */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.school-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow);
}
.school-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sage);
}
.school-card-image-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--bg);
}
.school-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.school-card-image-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.school-card-image-loading.is-loading {
  opacity: 1;
  pointer-events: auto;
}
.school-card-image-loading::after {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid rgba(79, 163, 165, 0.3);
  border-top-color: var(--teal-accent);
  border-radius: 50%;
  animation: school-card-spin 0.7s linear infinite;
}
@keyframes school-card-spin {
  to { transform: rotate(360deg); }
}
.school-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.school-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.school-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
}
.school-type-badge--public {
  background: rgba(79, 163, 165, 0.12);
  color: var(--teal-accent);
}
.school-type-badge--private {
  background: rgba(127, 175, 157, 0.12);
  color: var(--text);
}
.school-accept-badge {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: auto;
}
.school-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.2rem;
  line-height: 1.3;
}
.school-card-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.school-card-highlight {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 1rem;
  flex: 1;
}
.school-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.school-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.school-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.school-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.school-card-majors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.school-major-pill {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  background: rgba(127, 175, 157, 0.12);
  color: var(--text);
  white-space: nowrap;
}
.school-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-accent);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s;
}
.school-card-link:hover {
  gap: 0.5rem;
  color: var(--accent-hover);
}

/* Pagination – after 6 college cards */
.schools-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem 0;
}
.schools-pagination-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--teal-accent);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  transition: color 0.2s, opacity 0.2s;
}
.schools-pagination-btn:hover {
  color: var(--accent-hover);
}
.schools-pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.schools-pagination-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0.75rem;
}

.schools-no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .schools-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .schools-content-section .block-inner { padding: 2rem 1.25rem 2.5rem; }
  .schools-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
}
@media (max-width: 600px) {
  .schools-content-section .block-inner { padding: 1.5rem 1rem 2rem; }
  .schools-filters {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .schools-filter-group { gap: 0.15rem; }
  .schools-filter-label {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    white-space: normal;
  }
  .schools-filter-select {
    font-size: 0.82rem;
    padding: 0.4rem 0.6rem;
    padding-right: 1.75rem;
    background-position: right 0.5rem center;
  }
  .schools-results-bar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
  }
  .schools-results-count { font-size: 0.85rem; }
  .schools-clear-btn { font-size: 0.78rem; }
  .schools-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .school-card-image-wrap,
  .school-card-image { height: 140px; }
  .school-card-body { padding: 0.9rem 1rem 1.1rem; }
  .school-card-top { gap: 0.35rem; margin-bottom: 0.5rem; }
  .school-type-badge,
  .school-accept-badge { font-size: 0.62rem; }
  .school-type-badge { padding: 0.12rem 0.4rem; }
  .school-card-name { font-size: 1rem; margin-bottom: 0.15rem; }
  .school-card-location { font-size: 0.78rem; margin-bottom: 0.35rem; }
  .school-card-highlight { font-size: 0.82rem; line-height: 1.45; margin-bottom: 0.7rem; }
  .school-card-stats {
    gap: 0.35rem;
    margin-bottom: 0.7rem;
    padding: 0.5rem 0;
  }
  .school-stat-value { font-size: 0.88rem; }
  .school-stat-label { font-size: 0.64rem; }
  .school-card-majors { gap: 0.25rem; margin-bottom: 0.6rem; }
  .school-major-pill { font-size: 0.62rem; padding: 0.1rem 0.4rem; }
  .school-card-link { font-size: 0.8rem; }
}
@media (max-width: 380px) {
  .schools-content-section .block-inner { padding: 1.25rem 0.75rem 1.5rem; }
}

/* Footer */
.site-footer {
  background: #050D14;
  border-top: none;
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand {
  max-width: 320px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}
.footer-tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.75rem;
}
.footer-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 2.5rem;
}
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.65rem;
}
.footer-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col-list li { margin-bottom: 0.4rem; }
.footer-col-list a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.footer-col-list a:hover { color: var(--light-primary); }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 768px) {
  .site-footer { padding: 2.5rem 1.25rem 1.5rem; }
  .footer-inner { gap: 2rem; }
}
@media (max-width: 600px) {
  .site-footer { padding: 2rem 1rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { gap: 2rem; }
}
