/* ============================================================
   PULSE for Nurses — Shared Stylesheet
   Brand palette extracted from logo (maroon / amber / red)
   ============================================================ */

:root {
  /* === Pulse 2026 — Calm Clinical Palette ===========================
     A calming, professional palette: deep teal, warm muted gold,
     cream surfaces, soft coral accents. Designed for long reading
     sessions on mobile without eye strain.
     -----------------------------------------------------------------*/
  --primary:        #14387A;   /* deep calm teal — brand primary    */
  --primary-deep:   #0A2350;   /* darker teal — hover / footers      */
  --primary-soft:   #2E63B8;   /* mid teal — gradients, soft accents */
  --primary-tint:   #E6ECF8;   /* very light teal — chips, hovers    */
  --accent:         #C99A50;   /* warm calm gold — accents           */
  --accent-light:   #E6CFA3;   /* lighter gold — soft surfaces       */
  --accent-deep:    #A47B36;   /* deeper gold — text on light        */
  --coral:          #B85C5C;   /* soft warm coral — warnings/red     */
  --mint:           #7FB69E;   /* soft mint — success                */
  --rose:           #D4A5A5;   /* dusty rose — tertiary highlights   */

  --bg:             #FAF7F2;   /* warm cream background              */
  --bg-warm:        #F1E9DC;   /* deeper cream — section bands       */
  --bg-cool:        #EDF2F4;   /* cool tint — alternate band         */
  --surface:        #FFFFFF;   /* card surface                       */

  --text:           #1F2A33;   /* slate text                         */
  --text-soft:      #6B7785;   /* secondary text                     */
  --text-muted:     #97A1AB;   /* tertiary text / placeholders       */
  --line:           #E4DCCF;   /* warm divider                       */
  --line-cool:      #DCE3E7;   /* cool divider                       */

  --shadow-sm:      0 2px 8px rgba(10, 35, 80, 0.06);
  --shadow-md:      0 10px 28px rgba(10, 35, 80, 0.09);
  --shadow-lg:      0 20px 50px rgba(10, 35, 80, 0.14);
  --shadow-ring:    0 0 0 1px rgba(10, 35, 80, 0.06) inset;

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;

  /* === Legacy aliases — existing rules keep working ================ */
  --maroon:         var(--primary);
  --maroon-deep:    var(--primary-deep);
  --amber:          var(--accent);
  --amber-light:    var(--accent-light);
  --red:            var(--coral);
  --navy:           var(--primary-soft);
  --gold:           var(--accent);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--maroon); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
a { color: var(--maroon); text-decoration: none; }
img { max-width: 100%; }

/* ===== HEADER ===== */
header.top-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 249, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif; font-weight: 800;
  color: var(--maroon); font-size: 1.3rem;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--maroon); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -1px;
  border-top: 3px solid var(--amber);
}
.brand-mark::before { content: "+"; }
.top-nav nav { display: flex; gap: 28px; align-items: center; font-size: 0.95rem; font-weight: 500; }
.top-nav nav a { color: var(--text); transition: color 0.2s; }
.top-nav nav a:hover { color: var(--maroon); }
.top-nav nav a.cta-mini {
  background: var(--maroon); color: white;
  padding: 8px 18px; border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.top-nav nav a.cta-mini:hover { background: var(--maroon-deep); transform: translateY(-1px); }
@media (max-width: 768px) {
  .top-nav nav { gap: 14px; font-size: 0.85rem; }
  .top-nav nav a:not(.cta-mini) { display: none; }
}

/* ===== HERO (program pages) ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(232, 155, 44, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(107, 36, 36, 0.12) 0%, transparent 60%),
    var(--bg);
  padding: 28px 24px 32px;
}
.hero::before {
  content: "";
  position: absolute; top: 0; right: 0; width: 60%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 95,28 95,75 50,100 5,75 5,28' fill='none' stroke='%236B2424' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 80px 80px; opacity: 0.5; pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px;
  align-items: center; position: relative;
}
.breadcrumb {
  font-size: 0.85rem; color: var(--text-soft); margin-bottom: 8px;
}
.breadcrumb a { color: var(--text-soft); }
.pill-tag {
  display: inline-block;
  background: var(--amber); color: white;
  padding: 5px 14px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 12px;
}
.hero h1 { margin-bottom: 6px; }
.hero h1::after {
  content: ""; display: block;
  width: 72px; height: 4px;
  background: var(--amber); margin-top: 10px; border-radius: 2px;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-soft);
  margin: 14px 0 20px; max-width: 480px; line-height: 1.55;
}
.hero-sub strong { color: var(--maroon); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--maroon); color: white;
  box-shadow: 0 4px 14px rgba(107, 36, 36, 0.3);
}
.btn-primary:hover {
  background: var(--maroon-deep); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 36, 36, 0.4);
}
.btn-secondary {
  background: transparent; color: var(--maroon); border-color: var(--amber);
}
.btn-secondary:hover { background: var(--amber); color: white; }
.stat-strip {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; gap: 30px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--maroon);
  border-bottom: 2px solid var(--amber); display: inline-block; padding-bottom: 3px;
}
.stat-label { font-size: 0.85rem; color: var(--text-soft); margin-top: 4px; }

/* ===== BOOK MOCKUP ===== */
.book-stack { position: relative; height: 460px; perspective: 1500px; }
.book {
  position: absolute; width: 280px; height: 380px; border-radius: 4px 12px 12px 4px;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  overflow: hidden;
}
.book-1 {
  top: 30px; right: 60px;
  background: linear-gradient(135deg, #0F1B4C 0%, #1E3A8A 60%, #2563EB 100%);
  transform: rotateY(-12deg) rotateZ(-3deg);
}
.book-2 {
  top: 80px; right: 0;
  background: linear-gradient(135deg, #87CEEB 0%, #4FA8D8 60%, #1E5F9C 100%);
  transform: rotateY(-12deg) rotateZ(2deg);
  z-index: 2;
}
/* Per-program cover variants */
.book.cover-bsc-basic { background: linear-gradient(135deg, #0F4C3A 0%, #16A34A 60%, #4ADE80 100%); }
.book.cover-postbasic { background: linear-gradient(135deg, #87CEEB 0%, #4FA8D8 60%, #1E5F9C 100%); }
.book.cover-diploma { background: linear-gradient(135deg, #7C2D12 0%, #C2410C 60%, #FB923C 100%); }
.book.cover-midwifery { background: linear-gradient(135deg, #831843 0%, #BE185D 60%, #F472B6 100%); }
.book-spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: rgba(0,0,0,0.4);
}
.book-content { padding: 22px 18px; color: white; height: 100%; display: flex; flex-direction: column; }
.book-tag { font-size: 0.6rem; letter-spacing: 1px; opacity: 0.85; margin-bottom: 10px; }
.book-logo {
  background: white; color: var(--maroon);
  width: 56px; padding: 6px 4px; border-radius: 4px;
  text-align: center; font-weight: 800; font-size: 0.55rem;
  line-height: 1; border-top: 4px solid var(--amber);
  margin-bottom: 14px;
}
.book-title-pulse { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 800; opacity: 0.95; }
.book-title-msn { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 800; line-height: 1; margin: 4px 0 8px; }
.book-title-msn.smaller { font-size: 2rem; }
.book-title-sub { font-size: 0.85rem; font-weight: 500; opacity: 0.9; line-height: 1.3; }
.book-edition {
  position: absolute; right: 16px; top: 80px;
  background: var(--gold); color: var(--maroon-deep);
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 2px solid white;
}
.book-edition strong { font-size: 0.95rem; line-height: 1; }
.book-vol {
  position: absolute; bottom: 18px; left: 18px;
  background: var(--gold); color: var(--maroon-deep);
  padding: 4px 10px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 700;
}
.book-features {
  margin-top: auto; font-size: 0.65rem; line-height: 1.5;
  background: rgba(255,255,255,0.12); padding: 8px 10px; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.book-features li { list-style: none; padding-left: 12px; position: relative; }
.book-features li::before {
  content: "■"; color: var(--red); position: absolute; left: 0; font-size: 0.5rem; top: 4px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .book-stack { height: 420px; max-width: 360px; margin: 0 auto; }
  .book { width: 230px; height: 310px; }
  .book-title-msn { font-size: 2.4rem; }
  .book-title-msn.smaller { font-size: 1.6rem; }
}

/* ===== STICKY SUBNAV ===== */
.subnav {
  position: sticky; top: 67px; z-index: 50;
  background: white; border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.subnav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 8px; padding: 14px 24px;
  white-space: nowrap;
}
.subnav a {
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-soft);
  transition: all 0.2s; border: 1px solid transparent;
}
.subnav a:hover { background: var(--bg-warm); color: var(--maroon); border-color: var(--line); }

/* ===== SECTION DEFAULTS ===== */
section.block { max-width: 1200px; margin: 0 auto; padding: 24px 24px; }
.section-eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
  color: var(--amber); text-transform: uppercase; margin-bottom: 12px;
}
.section-title { margin-bottom: 10px; }
.section-lead { color: var(--text-soft); font-size: 1rem; max-width: 640px; margin-bottom: 12px; }

/* ===== ABOUT GRID (3 columns) ===== */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.about-card {
  background: white; padding: 32px 28px; border-radius: 16px;
  border: 1px solid var(--line); transition: all 0.3s;
  position: relative; overflow: hidden;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--amber); }
.about-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.about-card:hover::before { transform: scaleX(1); }
.about-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--bg-warm); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}

/* ===== HEXAGON SUBJECT MAP ===== */
.hex-section { background: var(--bg-warm); padding: 54px 24px; }
.hex-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hex-inner { grid-template-columns: 1fr; } }
.hex-grid {
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 1;
  margin: 0 auto;
}
.hex {
  position: absolute; width: 28%; aspect-ratio: 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; text-align: center;
  color: white; padding: 10px; line-height: 1.15;
  transition: transform 0.3s;
}
.hex:hover { transform: scale(1.05); }
.hex-center { background: white; color: var(--maroon); font-family: 'Playfair Display', serif; font-size: 0.9rem; }
.hex-1 { top: 0; left: 36%; background: var(--amber); }
.hex-2 { top: 18%; right: 8%; background: var(--red); }
.hex-3 { bottom: 18%; right: 8%; background: #84CC16; }
.hex-4 { bottom: 0; left: 36%; background: #1F1F1F; }
.hex-5 { bottom: 18%; left: 8%; background: var(--gold); }
.hex-6 { top: 18%; left: 8%; background: var(--red); }
.hex-c { top: 36%; left: 36%; }

/* ===== BOOKS SHOWCASE ===== */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
.book-card {
  background: white; border-radius: 16px; padding: 28px;
  border: 1px solid var(--line); position: relative; transition: all 0.3s;
  display: flex; flex-direction: column; gap: 16px;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.book-card.bundle { border: 2px solid var(--amber); background: linear-gradient(180deg, #FFF8EE 0%, white 100%); }
.book-card.bundle::before {
  content: "BEST VALUE"; position: absolute; top: -12px; right: 24px;
  background: var(--amber); color: white;
  padding: 4px 14px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
}
.book-mini {
  height: 180px; border-radius: 8px;
  background: linear-gradient(135deg, #0F1B4C 0%, #1E3A8A 60%, #2563EB 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: 'Playfair Display', serif; font-weight: 800; font-size: 2.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  position: relative;
}
.book-mini.vol2 { background: linear-gradient(135deg, #87CEEB 0%, #4FA8D8 60%, #1E5F9C 100%); }
.book-mini.bundle-cover {
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon) 60%, var(--red));
  font-size: 1.3rem; flex-direction: column;
}
.book-mini.bsc-basic { background: linear-gradient(135deg, #0F4C3A 0%, #16A34A 60%, #4ADE80 100%); }
.book-mini.postbasic { background: linear-gradient(135deg, #87CEEB 0%, #4FA8D8 60%, #1E5F9C 100%); }
.book-mini.diploma { background: linear-gradient(135deg, #7C2D12 0%, #C2410C 60%, #FB923C 100%); }
.book-mini.midwifery { background: linear-gradient(135deg, #831843 0%, #BE185D 60%, #F472B6 100%); }
.book-mini[data-tag]::after {
  content: attr(data-tag); position: absolute; bottom: 16px; right: 16px;
  background: var(--gold); color: var(--maroon-deep);
  padding: 3px 8px; border-radius: 3px; font-size: 0.65rem; font-weight: 800; font-family: 'Inter', sans-serif;
}
.book-card h4 { color: var(--maroon); font-size: 1.1rem; margin-bottom: 4px; }
.book-meta { font-size: 0.85rem; color: var(--text-soft); }
.book-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.book-price { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--maroon); }
.book-price-old { font-size: 0.95rem; color: var(--text-soft); text-decoration: line-through; margin-right: 8px; font-family: 'Inter', sans-serif; font-weight: 400; }
.stars { color: var(--gold); font-size: 0.85rem; }
.stars span { color: var(--text-soft); margin-left: 4px; font-family: 'Inter', sans-serif; }

/* ===== MOCK SECTION ===== */
.mock-shell { background: var(--bg-warm); padding: 54px 0; }
.mock-shell .mock-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 40px; }
@media (max-width: 768px) { .mock-grid { grid-template-columns: 1fr; } }
.mock-card {
  border-radius: 16px; padding: 32px; position: relative; overflow: hidden;
  transition: transform 0.3s;
}
.mock-card:hover { transform: translateY(-4px); }
.mock-free { background: white; border: 2px solid #84CC16; }
.mock-paid { background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 100%); color: white; }
.mock-paid h3 { color: white; }
.mock-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 16px;
}
.mock-free .mock-badge { background: #84CC16; color: white; }
.mock-paid .mock-badge { background: var(--gold); color: var(--maroon-deep); }
.mock-features { list-style: none; margin: 16px 0; font-size: 0.95rem; }
.mock-features li { padding: 6px 0 6px 24px; position: relative; }
.mock-features li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.mock-paid .mock-features li::before { color: var(--gold); }
.mock-price-line { font-size: 1.3rem; font-weight: 700; margin: 8px 0 16px; font-family: 'Playfair Display', serif; }

.leader-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
@media (max-width: 768px) { .leader-row { grid-template-columns: 1fr; } }
.leaderboard {
  background: white; border-radius: 16px; padding: 28px;
  border: 1px solid var(--line);
}
.leaderboard h4 {
  margin-bottom: 18px; font-size: 1rem; display: flex; align-items: center; gap: 8px;
}
.lb-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.lb-row:last-child { border-bottom: none; }
.lb-rank {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
  background: var(--bg-warm); color: var(--text-soft);
}
.lb-rank.gold { background: var(--gold); color: white; }
.lb-rank.silver { background: #C0C0C0; color: white; }
.lb-rank.bronze { background: #CD7F32; color: white; }
.lb-name { flex: 1; font-weight: 500; }
.lb-score { color: var(--maroon); font-weight: 700; font-family: 'Playfair Display', serif; }

.countdown-card {
  background: var(--bg-warm); border-radius: 16px; padding: 28px;
  text-align: center; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center;
}
.countdown-label { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 14px; letter-spacing: 1px; text-transform: uppercase; }
.countdown-clock { display: flex; gap: 12px; justify-content: center; }
.clock-unit {
  background: var(--maroon); color: white;
  padding: 14px 16px; border-radius: 10px;
  min-width: 64px;
}
.clock-unit strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.6rem; line-height: 1; }
.clock-unit span { font-size: 0.65rem; opacity: 0.85; letter-spacing: 1px; }

/* ===== PAST PAPERS ===== */
.papers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 768px) { .papers-grid { grid-template-columns: repeat(2, 1fr); } }
.paper-card {
  background: white; border-radius: 12px; padding: 24px 18px;
  border: 1px solid var(--line); text-align: center; transition: all 0.2s;
  position: relative;
}
.paper-card:hover { border-color: var(--amber); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.paper-year { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--maroon); }
.paper-meta { font-size: 0.8rem; color: var(--text-soft); margin: 4px 0 12px; }
.paper-solved {
  display: inline-block; background: #ECFCCB; color: #4D7C0F;
  padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 600;
}

/* ===== SYLLABUS TRACKER ===== */
.syllabus {
  background: white; border-radius: 16px; padding: 36px;
  border: 1px solid var(--line); position: relative;
}
.syllabus-progress {
  height: 8px; background: var(--bg-warm); border-radius: 999px; overflow: hidden;
  margin: 16px 0 28px;
}
.syllabus-progress div {
  height: 100%; width: 60%;
  background: linear-gradient(90deg, var(--maroon), var(--amber));
}
.syllabus-list { list-style: none; }
.syllabus-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.syllabus-list li:last-child { border-bottom: none; }
.syl-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.syl-check.done { background: var(--maroon); color: white; border-color: var(--maroon); }
.syl-check.partial { background: var(--amber); color: white; border-color: var(--amber); }
.syllabus-locked { opacity: 0.45; filter: blur(0.5px); }
.syllabus-cta {
  text-align: center; margin-top: 20px;
  padding: 18px; background: var(--bg-warm); border-radius: 10px;
}

/* ===== FACULTY ===== */
.faculty-shell { background: var(--bg-warm); padding: 54px 0; }
.faculty-shell .faculty-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.faculty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .faculty-grid { grid-template-columns: 1fr; } }
.faculty-card {
  background: white; border-radius: 16px; padding: 32px 28px;
  border: 1px solid var(--line); text-align: center; transition: all 0.3s;
}
.faculty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.faculty-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--amber));
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700;
  border: 4px solid white; box-shadow: var(--shadow-md);
}
.faculty-card h4 { color: var(--maroon); margin-bottom: 6px; font-size: 1.15rem; }
.faculty-creds { font-size: 0.8rem; color: var(--maroon); font-weight: 600; margin-bottom: 16px; letter-spacing: 0.5px; }
.faculty-quote { font-style: italic; color: var(--text-soft); font-size: 0.9rem; line-height: 1.5; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: white; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; transition: all 0.2s;
}
.faq-item:hover { border-color: var(--amber); }
.faq-q {
  padding: 20px 24px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1rem; color: var(--maroon);
}
.faq-chev { transition: transform 0.2s; color: var(--amber); font-weight: 700; }
.faq-item.open .faq-chev { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-soft); font-size: 0.95rem;
}
.faq-item.open .faq-a { max-height: 240px; padding: 0 24px 20px; }

/* ===== FINAL CTA ===== */
.final-cta {
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 50%, var(--navy) 100%);
  color: white; padding: 54px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 95,28 95,75 50,100 5,75 5,28' fill='none' stroke='%23FFFFFF' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 60px 60px; opacity: 0.5;
}
.final-cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.final-cta h2 { color: white; margin-bottom: 14px; }
.final-cta p { opacity: 0.92; margin-bottom: 32px; font-size: 1.1rem; }
.final-cta .btn-primary { background: var(--amber); color: var(--maroon-deep); }
.final-cta .btn-primary:hover { background: var(--amber-light); }
.final-cta .btn-secondary { color: white; border-color: white; }
.final-cta .btn-secondary:hover { background: white; color: var(--maroon-deep); }

/* ===== FOOTER ===== */
footer {
  background: #1A1A1A; color: #B8B8B8; padding: 48px 24px 24px;
  font-size: 0.9rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 { color: white; font-family: 'Inter', sans-serif; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #B8B8B8; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: white; margin-bottom: 12px; font-weight: 700; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }

/* ===== HOMEPAGE-SPECIFIC ===== */

/* Home hero */
.home-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 60%, var(--navy) 100%);
  color: white; padding: 90px 24px 110px;
}
.home-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 95,28 95,75 50,100 5,75 5,28' fill='none' stroke='%23E89B2C' stroke-width='0.5' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 100px 100px; opacity: 0.4;
}
.home-hero-inner {
  max-width: 1100px; margin: 0 auto; position: relative; text-align: center;
}
.home-hero .pill-tag { background: rgba(232,155,44,0.25); color: var(--amber-light); }
.home-hero h1 { color: white; margin-bottom: 12px; }
.home-hero h1 em { color: var(--amber); font-style: italic; font-weight: 500; }
.home-hero .lead {
  max-width: 640px; margin: 0 auto 22px;
  font-size: 1.1rem; opacity: 0.92; line-height: 1.5;
}
.home-hero .hero-ctas { justify-content: center; }
.home-hero .btn-primary { background: var(--amber); color: var(--maroon-deep); }
.home-hero .btn-primary:hover { background: var(--amber-light); }
.home-hero .btn-secondary { color: white; border-color: white; }
.home-hero .btn-secondary:hover { background: white; color: var(--maroon-deep); }

/* Program selector grid */
.programs-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
@media (max-width: 1000px) { .programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .programs-grid { grid-template-columns: 1fr; } }
.program-card {
  background: white; border-radius: 16px; padding: 28px 22px;
  border: 1px solid var(--line); transition: all 0.3s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--amber); }
.program-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent, var(--amber));
}
.program-card.msn { --accent: var(--navy); }
.program-card.bsc-basic { --accent: #16A34A; }
.program-card.postbasic { --accent: #4FA8D8; }
.program-card.diploma { --accent: var(--red); }
.program-card.midwifery { --accent: #BE185D; }
.program-card .icon-wrap {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--bg-warm); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.program-card h3 { color: var(--maroon); font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.program-card p { font-size: 0.88rem; color: var(--text-soft); }
.program-card .arrow { margin-top: auto; color: var(--maroon); font-weight: 600; font-size: 0.9rem; }

/* Beyond strip (NCLEX + Abroad) */
.beyond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 768px) { .beyond-grid { grid-template-columns: 1fr; } }
.beyond-card {
  border-radius: 20px; padding: 34px 30px; color: white;
  position: relative; overflow: hidden; transition: transform 0.3s;
  min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end;
}
.beyond-card:hover { transform: translateY(-4px); }
.beyond-card.nclex { background: linear-gradient(135deg, #1E3A8A 0%, #4F46E5 100%); }
.beyond-card.abroad { background: linear-gradient(135deg, var(--maroon) 0%, var(--red) 100%); }
.beyond-card::before {
  content: ""; position: absolute; top: -20px; right: -20px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255,255,255,0.08);
}
.beyond-card h3 { color: white; font-size: 1.6rem; font-family: 'Playfair Display', serif; margin-bottom: 8px; position: relative; }
.beyond-card p { opacity: 0.92; margin-bottom: 18px; position: relative; }
.beyond-card .btn { align-self: flex-start; position: relative; }
.beyond-card .btn-primary { background: white; color: var(--maroon); }
.beyond-card.nclex .btn-primary { color: var(--navy); }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: white; border-radius: 16px; padding: 32px 28px;
  border: 1px solid var(--line); position: relative;
}
.testi-card::before {
  content: "\201C"; position: absolute; top: -20px; left: 24px;
  font-family: 'Playfair Display', serif; font-size: 5rem; color: var(--amber);
  line-height: 1;
}
.testi-card .quote { font-style: italic; color: var(--text); margin-bottom: 20px; line-height: 1.6; padding-top: 14px; }
.testi-card .who { display: flex; align-items: center; gap: 12px; }
.testi-card .who-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--amber));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.9rem;
}
.testi-card .who-name { font-weight: 600; font-size: 0.95rem; }
.testi-card .who-meta { font-size: 0.8rem; color: var(--text-soft); }

/* Lead-magnet block */
.leadmag {
  background: linear-gradient(135deg, var(--bg-warm) 0%, #FFF8EE 100%);
  border-radius: 20px; padding: 38px 32px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
}
@media (max-width: 768px) { .leadmag { grid-template-columns: 1fr; padding: 36px 24px; } }
.leadmag h2 { margin-bottom: 14px; }
.leadmag-form { display: flex; flex-direction: column; gap: 12px; }
.leadmag-form input, .leadmag-form select {
  padding: 14px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: white;
  font-family: inherit; font-size: 0.95rem;
}
.leadmag-form input:focus, .leadmag-form select:focus { outline: 2px solid var(--amber); outline-offset: 2px; }
.leadmag-form button {
  padding: 14px; border-radius: 10px;
  background: var(--maroon); color: white;
  border: none; font-family: inherit; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: background 0.2s;
}
.leadmag-form button:hover { background: var(--maroon-deep); }

/* Blog teaser */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: white; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); transition: all 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-image {
  height: 180px;
  background: linear-gradient(135deg, var(--maroon), var(--amber));
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: 'Playfair Display', serif; font-size: 1.4rem;
  text-align: center; padding: 20px;
}
.blog-image.alt-1 { background: linear-gradient(135deg, var(--navy), #4F46E5); }
.blog-image.alt-2 { background: linear-gradient(135deg, #16A34A, #4ADE80); }
.blog-content { padding: 24px; }
.blog-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
}
.blog-content h4 { color: var(--maroon); margin-bottom: 10px; font-size: 1.1rem; line-height: 1.3; }
.blog-content p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 14px; }
.blog-meta { font-size: 0.8rem; color: var(--text-soft); }

/* Community band */
.community-band {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: white; padding: 40px 24px; text-align: center;
}
.community-band h2 { color: white; margin-bottom: 12px; }
.community-band p { opacity: 0.92; margin-bottom: 24px; max-width: 580px; margin-left: auto; margin-right: auto; }
.community-band .btn { background: white; color: #0088cc; border-color: white; }
.community-band .btn:hover { background: var(--bg); }

/* ============================================================
   PROGRAM SELECTOR (homepage dropdown)
   ============================================================ */
.program-selector {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 18px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  max-width: 640px;
  margin: 24px 0 8px;
  backdrop-filter: blur(8px);
}
.program-selector-label { color: white; font-weight: 600; font-size: 0.95rem; flex: 0 0 auto; }
.program-selector select {
  flex: 1 1 200px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.95);
  color: var(--maroon);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M6 8L0 0h12z' fill='%236B2424'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.program-selector-go {
  flex: 0 0 auto;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--maroon-deep);
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .15s, box-shadow .15s;
}
.program-selector-go:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232,155,44,0.4); }

/* ============================================================
   TESTS CATALOG PAGE
   ============================================================ */
.tests-hero {
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 60%, #5A1E1E 100%);
  color: white;
  padding: 64px 24px 56px;
  text-align: center;
}
.tests-hero-inner { max-width: 880px; margin: 0 auto; }
.tests-hero .breadcrumb { color: rgba(255,255,255,0.75); margin-bottom: 12px; }
.tests-hero .breadcrumb a { color: var(--amber-light); text-decoration: none; }
.tests-hero h1 { color: white; margin: 14px 0 18px; }
.tests-hero-sub { font-size: 1.05rem; opacity: 0.95; max-width: 720px; margin: 0 auto 28px; }
.tests-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 700px; margin: 28px auto 0;
}
.tests-hero-stats > div {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px; padding: 14px 8px;
  font-size: 0.85rem; opacity: 0.9;
}
.tests-hero-stats strong {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--amber-light); margin-bottom: 2px;
}
@media (max-width: 600px) { .tests-hero-stats { grid-template-columns: repeat(2, 1fr); } }

.tests-tabs {
  position: sticky; top: 60px; z-index: 50;
  background: white; border-bottom: 1px solid var(--line);
  display: flex; gap: 4px; padding: 0 24px;
  overflow-x: auto;
}
.tests-tab {
  background: none; border: none;
  padding: 18px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.tests-tab:hover { color: var(--maroon); }
.tests-tab.is-active { color: var(--maroon); border-bottom-color: var(--amber); }

/* Subject mock card grid */
.test-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px; margin-top: 28px;
}
.test-card {
  display: flex; align-items: stretch; gap: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none; color: var(--text);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
}
.test-card.is-live:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent, var(--maroon));
}
.test-card-badge {
  flex: 0 0 64px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.1rem;
  letter-spacing: 1px;
}
.test-card-body { flex: 1; padding: 16px 18px; }
.test-card-eyebrow {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text-soft);
  margin-bottom: 4px;
}
.test-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--maroon);
  margin-bottom: 8px; line-height: 1.3;
}
.test-card-meta {
  display: flex; gap: 10px; font-size: 0.82rem; color: var(--text-soft);
  margin-bottom: 10px;
}
.test-card-meta span:not(:last-child)::after {
  content: '·'; margin-left: 10px; opacity: 0.6;
}
.test-card-cta {
  display: inline-block; font-weight: 600; font-size: 0.9rem;
  color: var(--maroon);
}
.test-card-cta.is-locked, .test-card.is-locked .test-card-cta {
  color: var(--text-soft); font-weight: 500;
}
.test-card.is-locked { opacity: 0.55; cursor: not-allowed; }
.test-card.is-locked .test-card-badge { filter: grayscale(0.6); }

/* Model test grid */
.model-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px; margin-top: 28px;
}
.model-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none; color: var(--text);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.model-card.is-live:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--maroon);
}
.model-card-num {
  flex: 0 0 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: white;
  border-radius: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.1rem;
}
.model-card.is-locked .model-card-num {
  background: linear-gradient(135deg, #999 0%, #666 100%);
}
.model-card-body { flex: 1; min-width: 0; }
.model-card-title {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  color: var(--maroon); margin-bottom: 2px;
}
.model-card-meta { font-size: 0.78rem; color: var(--text-soft); }
.model-card-cta {
  flex: 0 0 auto; font-size: 0.85rem; font-weight: 600;
  color: var(--maroon);
}
.model-card-cta.is-locked { color: var(--text-soft); font-weight: 500; }
.model-card.is-locked { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   QUIZ RUNNER
   ============================================================ */
.quiz-body { background: var(--bg-warm); }
.quiz-page { max-width: 1200px; margin: 0 auto; padding: 0; }

.quiz-topbar {
  position: sticky; top: 60px; z-index: 40;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px;
  padding: 14px 24px;
  box-shadow: var(--shadow-sm);
}
.quiz-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700; color: var(--maroon);
  font-size: 1.05rem; flex: 1; min-width: 0;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.quiz-timer {
  font-family: 'Inter', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 1.15rem;
  color: var(--maroon);
  background: var(--bg-warm);
  padding: 6px 14px; border-radius: 8px;
  border: 1px solid var(--line);
}
.quiz-submit-top {
  background: var(--red); color: white;
  border: none; padding: 10px 18px;
  border-radius: 8px; font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .15s;
}
.quiz-submit-top:hover { background: #A02E22; }

.quiz-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .quiz-shell { grid-template-columns: 1fr; }
  .quiz-palette { order: 2; }
}

.quiz-palette {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  position: sticky; top: 130px;
}
.quiz-palette h4 {
  font-family: 'Playfair Display', serif;
  color: var(--maroon);
  margin-bottom: 12px;
  font-size: 1rem;
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.pal-btn {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600; font-size: 0.85rem;
  color: var(--text-soft);
  font-family: 'Inter', sans-serif;
  transition: all .12s;
}
.pal-btn:hover { border-color: var(--maroon); color: var(--maroon); }
.pal-btn.is-answered { background: #DCFCE7; border-color: #16A34A; color: #14532D; }
.pal-btn.is-flagged { background: #FEF3C7; border-color: var(--amber); color: var(--maroon-deep); position: relative; }
.pal-btn.is-flagged::after {
  content: '⚑'; position: absolute; top: -4px; right: -2px;
  font-size: 0.7rem; color: var(--red);
}
.pal-btn.is-current { outline: 2px solid var(--maroon); outline-offset: 1px; }
.palette-legend {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.78rem; color: var(--text-soft);
}
.palette-legend .dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 3px; margin-right: 6px; vertical-align: middle;
}
.dot-answered { background: #16A34A; }
.dot-flagged  { background: var(--amber); }
.dot-current  { background: var(--maroon); }

.quiz-main {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.quiz-q-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.quiz-q-counter {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.5px;
}
.quiz-q-subject {
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.3px;
}
.quiz-q-stem {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 22px;
  line-height: 1.5;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all .14s;
  background: white;
}
.quiz-option:hover { border-color: var(--amber); background: #FFFBF2; }
.quiz-option.is-selected {
  border-color: var(--maroon);
  background: #FBF3F3;
}
.quiz-option input[type=radio] {
  flex: 0 0 auto; margin-top: 4px;
  accent-color: var(--maroon);
  cursor: pointer;
}
.opt-letter {
  flex: 0 0 28px; height: 28px;
  background: var(--bg-warm);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--maroon);
  font-size: 0.85rem;
}
.quiz-option.is-selected .opt-letter { background: var(--maroon); color: white; }
.opt-text { flex: 1; line-height: 1.5; }

.quiz-nav {
  display: flex; gap: 12px; justify-content: space-between;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.quiz-nav button {
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all .15s;
  border: 2px solid;
}
.quiz-nav .btn-primary {
  background: var(--maroon); color: white; border-color: var(--maroon);
}
.quiz-nav .btn-primary:hover { background: var(--maroon-deep); }
.quiz-nav .btn-secondary {
  background: white; color: var(--maroon); border-color: var(--line);
}
.quiz-nav .btn-secondary:hover { border-color: var(--maroon); }
.quiz-nav .btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }
#quiz-flag.is-flagged { background: var(--amber); color: var(--maroon-deep); border-color: var(--amber); }

.quiz-error {
  max-width: 540px; margin: 80px auto;
  text-align: center;
  background: white; padding: 40px 32px;
  border-radius: 14px; box-shadow: var(--shadow-sm);
}
.quiz-error h2 { color: var(--maroon); margin-bottom: 12px; }
.quiz-error p { color: var(--text-soft); margin-bottom: 22px; }

/* ============================================================
   RESULTS PAGE
   ============================================================ */
.results-page { max-width: 980px; margin: 0 auto; padding: 32px 24px 80px; }

.result-hero {
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 100%);
  color: white;
  border-radius: 18px;
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.result-eyebrow {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber-light); margin-bottom: 18px;
}
.result-score-ring {
  width: 200px; height: 200px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto 22px;
  background: conic-gradient(var(--amber-light) calc(var(--score, 0) * 1%), rgba(255,255,255,0.15) 0);
  position: relative;
}
.result-score-ring::before {
  content: ''; position: absolute; inset: 12px;
  border-radius: 50%;
  background: var(--maroon-deep);
}
.result-score-num {
  position: relative; z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem; font-weight: 800;
  color: white; line-height: 1;
}
.result-score-num span { font-size: 1.3rem; opacity: 0.7; }
.result-score-frac {
  position: relative; z-index: 1;
  font-size: 0.9rem; opacity: 0.85; margin-top: 4px;
}
.score-strong { background: conic-gradient(#22C55E var(--score-deg, 270deg), rgba(255,255,255,0.15) 0); }
.score-medium { background: conic-gradient(var(--amber-light) var(--score-deg, 180deg), rgba(255,255,255,0.15) 0); }
.score-weak   { background: conic-gradient(#EF4444 var(--score-deg, 90deg), rgba(255,255,255,0.15) 0); }

.result-meta {
  display: flex; justify-content: center; gap: 30px;
  flex-wrap: wrap; margin-bottom: 18px;
  font-size: 0.95rem; opacity: 0.92;
}
.result-meta strong {
  display: block; font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--amber-light);
}
.result-verdict {
  font-size: 1.05rem; font-style: italic;
  max-width: 600px; margin: 0 auto;
  opacity: 0.95;
}

.result-section {
  background: white;
  border-radius: 14px;
  padding: 28px 28px 32px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
}
.result-section h2 {
  margin-bottom: 6px;
}
.result-section .muted {
  color: var(--text-soft); font-size: 0.92rem; margin-bottom: 22px;
}

.subj-list { display: flex; flex-direction: column; gap: 14px; }
.subj-row { }
.subj-row-head {
  display: flex; justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.subj-name { font-weight: 600; color: var(--text); }
.subj-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 3px; margin-right: 8px; vertical-align: middle;
}
.subj-score { color: var(--text-soft); font-weight: 600; }
.subj-bar {
  height: 12px; background: var(--bg-warm);
  border-radius: 6px; overflow: hidden;
}
.subj-fill {
  height: 100%; border-radius: 6px;
  transition: width .6s ease-out;
  background: var(--maroon);
}

.result-callouts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: transparent; border: none; padding: 0;
}
@media (max-width: 700px) { .result-callouts { grid-template-columns: 1fr; } }
.callout {
  border-radius: 14px; padding: 24px 24px 26px;
  border: 1px solid var(--line);
}
.callout h3 {
  font-size: 1.1rem; margin-bottom: 12px;
}
.callout ul { list-style: none; padding: 0; }
.callout li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.94rem;
}
.callout li:last-child { border-bottom: none; }
.callout-strong { background: #F0FDF4; border-color: #BBF7D0; }
.callout-strong h3 { color: #15803D; }
.callout-weak { background: #FEF2F2; border-color: #FECACA; }
.callout-weak h3 { color: #B91C1C; }

.review-list { display: flex; flex-direction: column; gap: 8px; }
.review-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.review-item summary {
  list-style: none;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 500;
}
.review-item summary::-webkit-details-marker { display: none; }
.review-num {
  flex: 0 0 auto;
  font-weight: 700; color: var(--maroon);
  font-family: 'Playfair Display', serif;
  min-width: 36px;
}
.review-subject {
  flex: 0 0 auto;
  color: white;
  padding: 3px 8px; border-radius: 5px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3px;
}
.review-status {
  flex: 1;
  text-align: right;
  font-weight: 600; font-size: 0.85rem;
}
.review-item.is-correct .review-status { color: #15803D; }
.review-item.is-wrong   .review-status { color: #B91C1C; }
.review-item.is-skipped .review-status { color: var(--text-soft); }
.review-item.is-correct { border-left: 3px solid #16A34A; }
.review-item.is-wrong   { border-left: 3px solid #DC2626; }
.review-item.is-skipped { border-left: 3px solid #9CA3AF; }
.review-body {
  padding: 6px 18px 18px 18px;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--text);
}
.review-body p { margin: 10px 0; }
.review-correct { color: #15803D; font-weight: 600; }
.review-your { color: var(--text-soft); }
.review-expl {
  background: white; padding: 10px 12px;
  border-radius: 8px; border: 1px solid var(--line);
  font-size: 0.88rem;
}

.result-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-top: 28px;
}
.result-actions .btn-primary,
.result-actions .btn-secondary {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  font-size: 0.95rem;
  transition: all .15s;
}
.result-actions .btn-primary {
  background: var(--maroon); color: white;
}
.result-actions .btn-primary:hover { background: var(--maroon-deep); }
.result-actions .btn-secondary {
  background: white; color: var(--maroon);
  border: 1px solid var(--line);
}
.result-actions .btn-secondary:hover { border-color: var(--maroon); }

/* ============================================================
   PULSE 2026 REBUILD — Added Components
   ============================================================ */

/* Brand image in nav */
.brand-img {
  width: 38px; height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 3px;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text em { font-weight: 400; font-style: normal; font-size: 0.75rem; color: var(--text-soft); margin-top: 3px; }
.top-nav-links { display: flex; gap: 22px; align-items: center; font-size: 0.95rem; font-weight: 500; }
.top-nav-links a { color: var(--text); transition: color .2s; }
.top-nav-links a.is-active { color: var(--maroon); font-weight: 700; }
.top-nav-links a.cta-mini { background: var(--maroon); color: white; padding: 8px 18px; border-radius: 999px; }
.top-nav-links a.cta-mini:hover { background: var(--maroon-deep); }
@media (max-width: 768px) {
  .top-nav-links { gap: 12px; font-size: 0.85rem; }
  .top-nav-links a:not(.cta-mini) { display: none; }
}

/* Home hero strip */
.hero-strip {
  margin-top: 36px; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 14px;
  max-width: 760px; margin-left: auto; margin-right: auto;
  font-size: 0.92rem;
}
.hero-strip strong { color: var(--amber-light); }
@media (min-width: 700px) { .hero-strip { grid-template-columns: repeat(4, 1fr); } }

/* Program card list */
.programs-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .programs-grid-3 { grid-template-columns: 1fr; } }
.program-card { padding: 26px 22px 24px; }
.program-card-band { position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 16px 16px 0 0; }
.program-level {
  font-size: 0.72rem; letter-spacing: 1px; font-weight: 700;
  text-transform: uppercase; color: var(--text-soft); margin-bottom: 2px;
}
.program-card-list {
  list-style: none; padding: 0; margin: 12px 0 16px;
  font-size: 0.88rem; color: var(--text-soft);
}
.program-card-list li { padding: 5px 0 5px 22px; position: relative; }
.program-card-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 700;
}
.program-card.rn { --accent: #16A34A; }

/* Why list */
.why-list { list-style: none; padding: 0; }
.why-list li { padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.why-list li:last-child { border-bottom: none; }
.why-list strong { color: var(--maroon); }
.why-card-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.why-card {
  background: white; padding: 20px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line);
}
.why-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 800; color: var(--maroon);
}
.why-label { font-size: 0.82rem; color: var(--text-soft); }

/* Book shelf grid (home + program pages) */
.book-shelf-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 24px;
}
@media (max-width: 900px) { .book-shelf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .book-shelf-grid { grid-template-columns: 1fr; } }
.book-shelf-grid-1 { grid-template-columns: minmax(0, 280px); justify-content: center; }
.book-shelf-grid-2 { grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; }
.book-shelf-item {
  background: white; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
}
.book-shelf-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.book-shelf-item img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  background: #f3f3f3;
}
.book-shelf-meta { padding: 14px 16px 18px; }
.book-shelf-tag {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  background: var(--amber); color: white; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1px; margin-bottom: 8px;
}
.book-shelf-item h4 { color: var(--maroon); font-size: 1rem; margin: 4px 0; }
.book-shelf-edition { color: var(--text-soft); font-size: 0.85rem; }
.book-shelf-callout {
  background: linear-gradient(135deg, var(--bg-warm), white);
  border: 2px solid var(--amber);
}
.book-shelf-callout-inner { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.book-shelf-callout h4 { font-family: 'Playfair Display', serif; }

/* Program page hero variants */
.hero-program { padding: 22px 24px 30px; }
.hero-program h1 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); }
.hero-msn::before { background-image: none; }
.hero-postbasic {
  background:
    radial-gradient(ellipse at 75% 50%, rgba(79,168,216,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(30,95,156,0.15) 0%, transparent 60%),
    var(--bg);
}
.hero-rn {
  background:
    radial-gradient(ellipse at 75% 50%, rgba(22,163,74,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(74,222,128,0.12) 0%, transparent 60%),
    var(--bg);
}
.hero-nclex {
  background:
    radial-gradient(ellipse at 75% 50%, rgba(124,111,217,0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(42,167,199,0.14) 0%, transparent 60%),
    var(--bg);
}
.hero-books {
  background:
    linear-gradient(135deg, var(--bg-warm), #FFF8EE);
}
.hero-book-cover { position: relative; display: flex; gap: 16px; align-items: center; justify-content: center; min-height: 400px; }
.hero-book-cover .cover {
  height: 360px; width: auto; object-fit: cover;
  border-radius: 6px; box-shadow: var(--shadow-lg);
}
.hero-book-cover .cover-1 { transform: rotate(-4deg) translateX(10px); z-index: 1; }
.hero-book-cover .cover-2 { transform: rotate(3deg) translateX(-10px); z-index: 2; }
.hero-book-cover .cover-3 { transform: rotate(-2deg) translateX(-20px); z-index: 1; }
.hero-book-cover .cover-single { height: 380px; box-shadow: var(--shadow-lg); }
.cover-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--amber); color: var(--maroon-deep);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
}
.books-hero-row { gap: 8px; }
.books-hero-row .cover { height: 280px; }
@media (max-width: 700px) {
  .hero-book-cover { min-height: 320px; }
  .hero-book-cover .cover { height: 230px; }
}

/* RN hero illustration */
.hero-illust-rn {
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
}
.rn-illust-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 32px 30px; border-radius: 22px;
  background: linear-gradient(135deg, #16A34A, #4ADE80);
  color: white; text-align: center;
  box-shadow: var(--shadow-lg);
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; min-width: 280px;
}
.rn-illust-stat span {
  font-size: 4rem; font-weight: 800; line-height: 1;
  padding: 8px 24px; background: rgba(255,255,255,0.18); border-radius: 14px;
  margin: 0 auto;
}
.rn-illust-stat strong { font-size: 1.4rem; }

/* Topic grid + cards */
.topics-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 800px) { .topics-grid { grid-template-columns: 1fr; } }
.topic-card {
  display: flex; gap: 16px;
  background: white; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px;
  text-decoration: none; color: var(--text);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--amber); }
.topic-card-icon {
  flex: 0 0 52px; height: 52px;
  border-radius: 12px;
  background: var(--maroon); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
.topic-card-body { flex: 1; min-width: 0; }
.topic-card-eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1px; color: var(--text-soft);
  text-transform: uppercase; margin-bottom: 4px;
}
.topic-card-title { font-family: 'Playfair Display', serif; color: var(--maroon); font-size: 1.1rem; margin-bottom: 6px; }
.topic-card-summary { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 8px; line-height: 1.5; }
.topic-card-cta { color: var(--maroon); font-weight: 600; font-size: 0.85rem; }

/* Catalog section */
.catalog-section { margin-bottom: 56px; }
.catalog-section .section-title { font-size: 1.4rem; margin-bottom: 6px; }
.catalog-section .section-lead { margin-bottom: 22px; }
.model-card-full .model-card-num { color: white; }

/* Topic detail page */
.topic-hero {
  color: white; padding: 60px 24px 50px;
  position: relative;
}
.topic-hero .breadcrumb { color: rgba(255,255,255,0.75); }
.topic-hero .breadcrumb a { color: rgba(255,255,255,0.95); }
.topic-hero .pill-tag { margin-bottom: 18px; }
.topic-hero h1 { color: white; }
.topic-hero-summary { font-size: 1.05rem; opacity: 0.95; max-width: 720px; margin-top: 18px; }
.topic-hero-inner { max-width: 1100px; margin: 0 auto; }
.topic-article {
  max-width: 800px; margin: 0 auto; padding: 44px 24px 56px;
}
.topic-section {
  margin-bottom: 36px; padding-bottom: 22px;
  border-bottom: 1px dashed var(--line);
}
.topic-section:last-of-type { border-bottom: none; }
.topic-section h2 { font-size: 1.4rem; margin-bottom: 12px; }
.topic-section p { font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.topic-cta {
  margin-top: 40px;
}
.topic-cta-card {
  background: linear-gradient(135deg, var(--bg-warm), #FFF8EE);
  border: 2px solid var(--amber);
  border-radius: 18px; padding: 32px;
  text-align: center;
}
.topic-cta-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--amber); margin-bottom: 8px;
}

/* Book / price summary cards on program pages */
.book-price-card { background: white; padding: 24px; border-radius: 14px; border: 1px solid var(--line); }
.book-price-row-lg { display: flex; align-items: center; gap: 22px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.book-price-tag { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 800; color: var(--maroon); }
.book-price-tag span { display: block; font-size: 0.85rem; color: var(--text-soft); font-weight: 400; }
.book-store-card {
  background: var(--bg-warm); border-radius: 12px; padding: 18px;
  font-size: 0.92rem; line-height: 1.55;
}
.book-store-name { font-weight: 700; color: var(--maroon); margin-bottom: 4px; }
.book-store-bn { font-family: 'Noto Sans Bengali', serif; color: var(--maroon); margin-bottom: 6px; }
.book-store-addr { color: var(--text-soft); margin-bottom: 6px; }
.book-store-phone a { color: var(--maroon); font-weight: 700; }

/* Premium grid */
.premium-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 900px) { .premium-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .premium-grid { grid-template-columns: 1fr; } }
.premium-card {
  background: white; border: 1px solid var(--line);
  border-radius: 14px; padding: 22px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.premium-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--amber); }
.premium-card h3 { font-size: 1rem; margin-bottom: 8px; }
.premium-card p { font-size: 0.88rem; color: var(--text-soft); }

/* Books page detail */
.books-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .books-detail-grid { grid-template-columns: 1fr; } }
.books-detail-grid-2 { grid-template-columns: 1fr 0.8fr; }
@media (max-width: 800px) { .books-detail-grid-2 { grid-template-columns: 1fr; } }
.books-detail-card {
  background: white; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden;
}
.books-detail-card img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #f0f0f0;
}
.books-detail-body { padding: 20px; }
.books-detail-body ul {
  list-style: none; padding: 0; font-size: 0.92rem; color: var(--text-soft); margin-top: 10px;
}
.books-detail-body li {
  padding: 6px 0 6px 22px; position: relative;
}
.books-detail-body li::before { content: "•"; color: var(--amber); position: absolute; left: 6px; font-weight: 700; }
.books-detail-body h3 { color: var(--maroon); margin-top: 6px; }

.books-price-summary {
  background: linear-gradient(135deg, var(--bg-warm), #FFF8EE);
  border: 2px solid var(--amber);
  border-radius: 14px; padding: 32px 24px;
  text-align: center;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.books-price-summary-eyebrow {
  font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber); font-weight: 700;
}
.books-price-summary-amount {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem; font-weight: 800; color: var(--maroon); line-height: 1;
}
.books-price-summary-note { font-size: 0.85rem; color: var(--text-soft); }

/* Bookstore page */
.bookstore-card-large {
  background: white; border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; font-size: 0.95rem; line-height: 1.6;
}
.bookstore-card-large hr { border: none; border-top: 1px dashed var(--line); margin: 16px 0; }
.bookstore-row-bn { font-family: 'Noto Sans Bengali', serif; color: var(--maroon); }
.bookstore-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bookstore-price-card {
  background: white; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; text-align: center;
}
.bookstore-price-card-fb {
  grid-column: 1 / -1; background: var(--bg-warm); border-color: var(--amber);
}
.bookstore-price-label { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 6px; }
.bookstore-price-amount { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--maroon); }
.bookstore-price-meta { font-size: 0.78rem; color: var(--text-soft); margin-top: 4px; }

/* Community band tweaks */
.community-band .btn {
  border: 1.5px solid white; background: white; color: #006699;
  padding: 12px 24px; border-radius: 10px; font-weight: 700;
  text-decoration: none; transition: transform .15s;
}
.community-band .btn:hover { transform: translateY(-2px); }

/* Footer logo */
.footer-logo {
  width: 28px; height: 28px; border-radius: 5px;
  background: white; padding: 2px; vertical-align: middle; margin-right: 8px;
}
.footer-brand { display: flex; align-items: center; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-login {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--bg-warm), var(--bg));
}
.admin-login-card {
  background: white; padding: 36px 32px;
  border-radius: 18px; box-shadow: var(--shadow-md);
  max-width: 440px; width: 100%;
  display: flex; flex-direction: column; gap: 14px;
}
.admin-login-logo {
  width: 64px; height: 64px; align-self: center;
  border-radius: 14px; background: var(--bg-warm); padding: 6px;
  margin-bottom: 6px;
}
.admin-login h1 { text-align: center; margin-bottom: 0; }
.admin-login p.muted { text-align: center; }
.admin-login label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.admin-login input, .admin-login select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1rem;
}
.admin-login input:focus, .admin-login select:focus {
  outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber);
}
.login-err { color: #B91C1C; margin-top: 4px; min-height: 1em; }
.admin-help {
  background: var(--bg-warm); border-radius: 8px; padding: 12px;
  font-size: 0.82rem;
}
.admin-help summary { cursor: pointer; font-weight: 600; color: var(--maroon); }
.admin-help code { background: white; padding: 2px 6px; border-radius: 4px; font-size: 0.78rem; }

.admin-shell {
  display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 80px);
  background: var(--bg);
}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static !important; }
}
.admin-sidebar {
  background: white; border-right: 1px solid var(--line);
  padding: 22px 16px; position: sticky; top: 67px; height: calc(100vh - 67px);
  overflow-y: auto;
}
.admin-user {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.admin-role-pill {
  align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  background: var(--maroon); color: white;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px;
}
.admin-stat {
  font-size: 0.82rem; color: var(--text-soft);
  padding-left: 8px;
}
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav button {
  background: none; border: none;
  padding: 11px 14px; text-align: left;
  cursor: pointer; border-radius: 8px;
  font-family: inherit; font-size: 0.92rem; font-weight: 500;
  color: var(--text);
  transition: background .12s, color .12s;
}
.admin-nav button:hover { background: var(--bg-warm); color: var(--maroon); }
.admin-nav button.is-active { background: var(--maroon); color: white; }

.admin-main { padding: 32px; }
.admin-view-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 14px;
  padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.admin-view-head h1 { font-size: 1.8rem; margin-bottom: 4px; }
.admin-view-head p.muted { font-size: 0.92rem; }
.admin-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.admin-toolbar select,
.admin-toolbar input {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.9rem; background: white;
}
.admin-count { padding: 8px 4px 14px; font-size: 0.85rem; }

.admin-row {
  background: white; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 8px; overflow: hidden;
}
.admin-row[open] { box-shadow: var(--shadow-sm); }
.admin-row summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
}
.admin-row summary::-webkit-details-marker { display: none; }
.row-id { font-family: monospace; font-size: 0.8rem; color: var(--text-soft); flex: 0 0 auto; }
.row-subject {
  padding: 3px 8px; border-radius: 4px;
  color: white; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.3px;
  flex: 0 0 auto;
}
.row-stem { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-stem-meta { font-size: 0.78rem; color: var(--text-soft); flex: 0 0 auto; }
.row-pill { padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }
.row-pill.ok { background: #DCFCE7; color: #14532D; }
.row-pill.warn { background: #FEF3C7; color: #92400E; }
.row-body { padding: 4px 18px 16px; border-top: 1px dashed var(--line); font-size: 0.9rem; }
.row-opts { list-style: decimal; margin-left: 22px; }
.row-opts li { padding: 4px 0; color: var(--text); }
.row-opts li.is-correct { color: #15803D; font-weight: 700; }
.row-expl { background: var(--bg-warm); padding: 10px 12px; border-radius: 8px; margin: 12px 0; font-size: 0.88rem; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn-danger {
  background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA;
  padding: 8px 14px; border-radius: 8px; font-weight: 600;
  cursor: pointer; font-size: 0.85rem;
}
.btn-danger:hover { background: #FECACA; }

.admin-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.admin-modal-card {
  background: white; border-radius: 16px;
  max-width: 600px; width: 100%; max-height: 90vh;
  overflow-y: auto; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.admin-modal-card-wide { max-width: 760px; }
.admin-modal-card h2 { margin-bottom: 6px; }
.admin-modal-card label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.85rem; font-weight: 600;
}
.admin-modal-card input,
.admin-modal-card select,
.admin-modal-card textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.9rem; resize: vertical;
}
.admin-modal-card textarea { font-family: 'Inter', monospace; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.te-id-pool {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-height: 200px; overflow-y: auto;
  background: var(--bg-warm); padding: 12px; border-radius: 8px;
  margin-top: 8px;
}
.te-id-chip {
  background: white; border: 1px solid var(--line);
  padding: 4px 8px; border-radius: 6px;
  font-family: monospace; font-size: 0.78rem;
  cursor: pointer; transition: all .12s;
}
.te-id-chip:hover { background: var(--maroon); color: white; border-color: var(--maroon); }

.dash-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card {
  background: white; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px;
}
.dash-card h3 { color: var(--maroon); margin-bottom: 14px; font-size: 1.1rem; }
.dash-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 0; border-bottom: 1px dashed var(--line);
}
.dash-row:last-child { border-bottom: none; }
.dash-row span {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.4rem; color: var(--maroon);
  min-width: 50px;
}
.dash-row label { font-size: 0.9rem; color: var(--text-soft); }

.admin-tip {
  background: var(--bg-warm); border-radius: 14px;
  padding: 20px 24px; border-left: 4px solid var(--amber);
}
.admin-tip h3 { margin-bottom: 10px; font-size: 1.05rem; }
.admin-tip ul { padding-left: 20px; font-size: 0.92rem; color: var(--text); }
.admin-tip li { padding: 5px 0; }
.admin-section {
  background: white; border-radius: 14px;
  padding: 22px 24px; margin-bottom: 18px;
  border: 1px solid var(--line);
}
.admin-section h3 { margin-bottom: 10px; font-size: 1.1rem; }
.admin-section input,
.admin-section textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.9rem;
  margin-top: 6px;
}
.admin-section textarea { font-family: monospace; }
.migration-list { padding-left: 22px; }
.migration-list li { padding: 6px 0; font-size: 0.92rem; }
.migration-list code { background: var(--bg-warm); padding: 2px 6px; border-radius: 4px; font-size: 0.82rem; }

/* Bengali text safety */
[lang="bn"], .book-store-bn, .bookstore-row-bn { font-family: 'Noto Sans Bengali', 'Inter', serif; }
.row-pill.ok, .row-pill.warn { white-space: nowrap; }

/* Mobile tweaks */
@media (max-width: 700px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-program h1 { font-size: 1.9rem; }
  .hero-book-cover { order: -1; min-height: 280px; }
  .stat-strip { gap: 18px; }
  .stat-num { font-size: 1.5rem; }
  .admin-main { padding: 18px; }
  .admin-view-head h1 { font-size: 1.4rem; }
}

/* ============================================================
   ==  PULSE V2 REFINEMENT — calm palette + new header        ==
   ==  Overrides earlier rules where polish is wanted.         ==
   ============================================================ */

/* --- Smooth scroll, focus, scrollbar -------------------------- */
html { scroll-behavior: smooth; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
body { background: var(--bg); color: var(--text); }

/* Section bands use cool / warm tint variants in alternation */
.hex-section { background: var(--bg-cool); }
.mock-shell, .faculty-shell { background: var(--bg-warm); }

/* --- Refined Top Nav (.top-nav still the class) --------------- */
header.top-nav {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(228, 220, 207, 0.65);
  transition: box-shadow .3s, background .3s;
}
header.top-nav.is-scrolled {
  background: rgba(250, 247, 242, 0.95);
  box-shadow: 0 2px 14px rgba(10, 35, 80, 0.06);
}
.top-nav-inner {
  padding: 12px 24px;
  gap: 16px;
  align-items: center;
}
@media (max-width: 768px) { .top-nav-inner { padding: 10px 16px; } }

/* Brand block with tagline */
.brand-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand-img {
  width: 44px; height: 44px;
  border-radius: 12px;
  padding: 4px;
  background: linear-gradient(135deg, white 0%, var(--primary-tint) 100%);
  box-shadow: 0 2px 8px rgba(10, 35, 80,0.10), 0 0 0 1px rgba(10, 35, 80,0.06) inset;
  object-fit: contain;
  transition: transform .25s ease;
}
.brand-logo:hover .brand-img { transform: scale(1.05) rotate(-3deg); }
.brand-text {
  display: flex; flex-direction: column;
  line-height: 1; gap: 4px;
}
.brand-text em,
.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--primary-deep);
  letter-spacing: -0.4px;
  font-style: normal;
}
.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}
@media (max-width: 768px) {
  .brand-img { width: 38px; height: 38px; }
  .brand-name, .brand-text em { font-size: 1.1rem; }
  .brand-tag { font-size: 0.58rem; letter-spacing: 1.2px; }
}
@media (max-width: 380px) {
  .brand-tag { display: none; }
}

/* Refined nav links */
.top-nav-links {
  display: flex; gap: 3px; align-items: center;
  font-size: 0.92rem; font-weight: 500;
}
.top-nav-links a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.top-nav-links a:hover { background: var(--primary-tint); color: var(--primary); }
.top-nav-links a.is-active {
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 600;
}
.top-nav-links a.cta-mini,
.top-nav-links a.cta-mini:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(10, 35, 80,0.18);
  transition: transform .18s, box-shadow .18s;
}
.top-nav-links a.cta-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10, 35, 80,0.28);
}

/* Mobile hamburger toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  transition: background .18s, border-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover, .nav-toggle:focus { background: var(--primary-tint); border-color: var(--primary-tint); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--primary-deep);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .top-nav-links { display: none; }
}

/* Mobile drawer (JS-injected) */
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  z-index: 200;
  padding: 84px 18px 24px;
  display: flex; flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer > a {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, color .15s;
  display: flex; align-items: center; gap: 10px;
}
.nav-drawer > a:hover,
.nav-drawer > a.is-active { background: var(--primary-tint); color: var(--primary); }
.nav-drawer > a.nav-drawer-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: white;
  font-weight: 600;
  justify-content: center;
  margin-top: 14px;
  box-shadow: 0 6px 18px rgba(10, 35, 80,0.22);
}
.nav-drawer > a.nav-drawer-cta:hover {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: white;
}
.nav-drawer-sep {
  height: 1px;
  background: var(--line);
  margin: 14px 12px;
}
.nav-drawer-section {
  padding: 12px 16px 4px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-drawer-social {
  margin-top: auto;
  padding-top: 18px;
  display: flex; gap: 8px;
}
.nav-drawer-social a {
  flex: 1; text-align: center; padding: 12px 8px;
  border-radius: 10px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  background: var(--bg-warm);
  color: var(--primary);
  transition: background .15s;
}
.nav-drawer-social a:hover { background: var(--accent-light); }

.nav-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 35, 80, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nav-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* --- Home hero recolored to calm teal + warm gold sun --------- */
.home-hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,154,80,0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(46, 99, 184,0.25) 0%, transparent 60%),
    linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 55%, var(--primary-soft) 100%);
  padding: 52px 24px 56px;
}
.home-hero h1 em { color: var(--accent-light); }
.home-hero .pill-tag {
  background: rgba(255,255,255,0.14);
  color: var(--accent-light);
  border: 1px solid rgba(230,207,163,0.3);
  backdrop-filter: blur(8px);
  font-weight: 600;
}
.home-hero .btn-primary {
  background: var(--accent);
  color: var(--primary-deep);
  box-shadow: 0 6px 22px rgba(201,154,80,0.35);
}
.home-hero .btn-primary:hover { background: var(--accent-light); }
.home-hero .btn-secondary { color: white; border-color: rgba(255,255,255,0.7); }
.home-hero .btn-secondary:hover { background: white; color: var(--primary-deep); }

/* Hero strip refinement */
.hero-strip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  backdrop-filter: blur(6px);
}
.hero-strip > div {
  padding: 6px 0;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-strip > div:last-child { border-right: none; }
@media (max-width: 700px) { .hero-strip > div { border-right: none; } }

/* --- Buttons recolored ------------------------------------------ */
.btn {
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(10, 35, 80,0.20);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  box-shadow: 0 8px 24px rgba(10, 35, 80,0.30);
}
.btn-secondary {
  border-color: var(--accent);
  color: var(--primary);
}
.btn-secondary:hover { background: var(--accent); color: var(--primary-deep); border-color: var(--accent); }

/* --- Program cards refined ------------------------------------- */
.program-card {
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.program-card h3 { color: var(--primary); font-size: 1.25rem; margin-bottom: 4px; }
.program-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-tint), var(--bg-warm));
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.program-card .arrow {
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- Topic + test cards calm refresh --------------------------- */
.topic-card {
  background: var(--surface);
  border-color: var(--line-cool);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-light); }
.topic-card-icon { border-radius: 14px; box-shadow: var(--shadow-sm); }
.topic-card-title { color: var(--primary); font-weight: 700; }

.test-card { border-color: var(--line-cool); border-radius: var(--radius-md); }
.test-card.is-live:hover { border-color: var(--accent); }
.test-card-title { color: var(--primary); }
.model-card { border-color: var(--line-cool); border-radius: var(--radius-md); }
.model-card.is-live:hover { border-color: var(--accent); }
.model-card-title { color: var(--primary); }
.model-card-num {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}
.model-card-full .model-card-num {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)) !important;
}

/* --- Books shelf calm gradient placeholders -------------------- */
.book-shelf-item { border-color: var(--line-cool); border-radius: var(--radius-md); }
.book-shelf-tag { background: var(--accent); }
.book-shelf-callout {
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--surface) 100%);
  border-color: var(--accent);
}
.bookstore-price-card { border-color: var(--line-cool); border-radius: var(--radius-md); }
.bookstore-price-card-fb { background: var(--bg-warm); border-color: var(--accent); }

/* --- Why list bullets + community band -------------------------- */
.community-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
}
.community-band .btn { color: var(--primary); }

/* Final CTA + footer */
.final-cta {
  background:
    radial-gradient(ellipse at 30% 100%, rgba(201,154,80,0.20) 0%, transparent 55%),
    linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 60%, var(--primary-soft) 100%);
}
.final-cta .btn-primary {
  background: var(--accent);
  color: var(--primary-deep);
  box-shadow: 0 6px 22px rgba(201,154,80,0.35);
}
.final-cta .btn-primary:hover { background: var(--accent-light); }

footer { background: var(--primary-deep); color: #C6CFD6; }
.footer-col a, footer p a { color: #C6CFD6; }
.footer-col a:hover { color: var(--accent-light); }
.footer-col h5 { color: white; }
.footer-brand { color: white; }
.footer-bottom { border-top-color: rgba(255,255,255,0.12); }

/* --- Cards / surfaces softer ----------------------------------- */
.about-card,
.faculty-card,
.testi-card,
.blog-card,
.faq-item,
.book-card,
.dash-card,
.admin-section,
.book-price-card,
.premium-card,
.books-detail-card,
.bookstore-card-large,
.leaderboard,
.countdown-card {
  border-color: var(--line-cool);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.about-card:hover { border-color: var(--accent); }
.faq-item:hover { border-color: var(--accent); }

/* Pills + tags */
.pill-tag {
  background: var(--accent);
  color: var(--primary-deep);
  font-weight: 700;
  letter-spacing: 1.4px;
}

/* Subnav refinement */
.subnav { background: var(--surface); border-bottom-color: var(--line-cool); }
.subnav a:hover {
  background: var(--primary-tint);
  color: var(--primary);
  border-color: var(--primary-tint);
}

/* Hex map nicer */
.hex-c, .hex-center { background: var(--surface); color: var(--primary); }
.hex-1 { background: var(--accent); }
.hex-2 { background: var(--coral); }
.hex-3 { background: var(--mint); }
.hex-4 { background: var(--primary-deep); }
.hex-5 { background: var(--accent-deep); }
.hex-6 { background: var(--rose); }

/* Section eyebrow / titles */
.section-eyebrow { color: var(--accent-deep); }
h1, h2, h3, h4 { color: var(--primary); }
h2.section-title { color: var(--primary-deep); }

/* --- Reveal on scroll ----------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-on-scroll.is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Mobile polish, tap targets, fluid type ------------------- */
@media (max-width: 768px) {
  /* Bigger tap targets */
  .top-nav-links a, .nav-drawer a { min-height: 44px; }
  .btn { min-height: 48px; padding: 14px 22px; }
  .topic-card, .test-card, .model-card { min-height: 80px; }
  .program-card { padding: 22px 18px; }

  /* Fluid type clamps */
  h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .hero-sub, .section-lead, .lead { font-size: 1rem; line-height: 1.55; }

  /* Stack hero CTAs full-width */
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Section padding */
  section.block { padding: 18px 16px; }
  .hex-section { padding: 30px 16px; }
  .home-hero { padding: 44px 18px 72px; }

  /* Programs grid full width */
  .programs-grid, .programs-grid-3 { gap: 14px; }

  /* Topic grid stacks */
  .topics-grid { gap: 12px; }
  .topic-card { padding: 16px; }
  .topic-card-icon { flex-basis: 44px; height: 44px; }
  .topic-card-title { font-size: 1.02rem; }

  /* Test catalog */
  .test-grid { grid-template-columns: 1fr; gap: 12px; }
  .model-grid { grid-template-columns: 1fr; gap: 10px; }

  /* Stats strip */
  .stat-strip { gap: 14px; justify-content: space-between; }
  .stat { flex: 1 1 calc(50% - 14px); }

  /* Footer stacks cleanly */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Book cover stack mobile */
  .hero-book-cover { gap: 8px; min-height: 220px; margin-top: 10px; }
  .hero-book-cover .cover { height: 200px; }
  .hero-book-cover .cover-1 { transform: rotate(-3deg); }
  .hero-book-cover .cover-2 { transform: rotate(2deg); }

  /* Tests hero */
  .tests-hero { padding: 48px 18px 40px; }
  .tests-hero-stats { grid-template-columns: 1fr 1fr; }

  /* Quiz runner: palette under question on small screens */
  .quiz-shell { padding: 16px; gap: 14px; }
  .quiz-main { padding: 22px 18px; }
  .quiz-palette {
    position: static;
    padding: 14px;
  }
  .palette-grid { grid-template-columns: repeat(8, 1fr); }
  .quiz-q-stem { font-size: 1.08rem; }
  .quiz-option { padding: 12px 14px; }
  .quiz-nav { gap: 8px; }
  .quiz-nav button { flex: 1 1 100%; padding: 14px; }
  .quiz-nav .btn-secondary#quiz-flag { flex: 1 1 100%; order: -1; }

  /* Results page */
  .result-hero { padding: 32px 22px; border-radius: var(--radius-md); }
  .result-score-ring { width: 160px; height: 160px; }
  .result-score-num { font-size: 2.6rem; }
  .result-section { padding: 22px 18px; border-radius: var(--radius-md); }
  .result-actions { flex-direction: column; }
  .result-actions a { width: 100%; text-align: center; }

  /* Books page hero row */
  .books-hero-row .cover { height: 160px; }

  /* Admin panel — mobile workable */
  .admin-shell { display: block; }
  .admin-sidebar {
    position: static; height: auto;
    border-right: none; border-bottom: 1px solid var(--line);
    padding: 14px 16px;
  }
  .admin-user { flex-direction: row; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 12px; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .admin-nav button { flex: 1 1 calc(50% - 6px); justify-content: center; text-align: center; }
  .admin-main { padding: 18px; }
  .admin-row summary { flex-wrap: wrap; gap: 8px; }
  .row-stem { flex-basis: 100%; }

  /* Modal mobile */
  .admin-modal { padding: 12px; }
  .admin-modal-card { padding: 20px; max-height: 92vh; }

  /* Site-wide: prevent horizontal scroll */
  body { overflow-x: hidden; }
}

/* --- Tiny screens (<400px) tighten further -------------------- */
@media (max-width: 400px) {
  .home-hero h1 { font-size: 1.8rem; }
  .home-hero .lead { font-size: 0.95rem; }
  .stat-num { font-size: 1.3rem; }
  .program-card { padding: 20px 16px; }
  .program-card h3 { font-size: 1.1rem; }
  .nav-drawer { width: min(320px, 92vw); }
}

/* --- Improve focus + active states for touch ----------------- */
@media (hover: none) {
  .program-card:hover, .topic-card:hover, .test-card:hover, .model-card:hover {
    transform: none;
  }
  .program-card:active, .topic-card:active { transform: scale(0.98); }
}

/* Scroll-margin so anchor links don't hide under sticky header */
[id] { scroll-margin-top: 90px; }

/* Cleaner selection */
::selection { background: var(--accent); color: var(--primary-deep); }

/* Subtle decorative divider between sections */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 50%, transparent);
  margin: 0 auto;
  max-width: 600px;
}

/* ============================================================
   HOME HERO — title-left, taglines-right layout + 2020 badge
   ============================================================ */
.home-hero-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin: 8px auto 22px;
  text-align: left;
  max-width: 900px;
}
.home-hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  line-height: 0.95;
  margin: 0;
  letter-spacing: -1.5px;
  color: white;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.home-hero-title-pulse {
  display: block;
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  background: linear-gradient(135deg, #FFF6E3 0%, var(--accent-light) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 6px 18px rgba(201, 154, 80, 0.35));
}
.home-hero-title-rest {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  font-style: italic;
  margin-top: 6px;
  background: linear-gradient(135deg, #FFFFFF 0%, #D8E7EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 0.5px;
}
.home-hero-taglines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 26px;
  border-left: 2px solid rgba(230, 207, 163, 0.4);
  text-align: left;
}
.home-hero-tag-line {
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-light);
}
.home-hero-tag-platform {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: white;
  line-height: 1.25;
  opacity: 0.95;
}

/* Standalone centered title (no taglines column) */
.home-hero-title-standalone {
  text-align: center;
  margin: 8px auto 22px;
  display: block;
}

/* "Since 2020" badge — minimal, no star, no extra text */
.home-hero-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 20px;
  margin: 4px auto 28px;
  background: linear-gradient(135deg, rgba(201, 154, 80, 0.22), rgba(201, 154, 80, 0.08));
  border: 1px solid rgba(230, 207, 163, 0.45);
  border-radius: 999px;
  color: var(--accent-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
  position: relative;
  z-index: 1;
}
.home-hero-badge-since {
  font-size: 0.7rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
}
.home-hero-badge-year {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  color: #FFF6E3;
  text-shadow: 0 2px 8px rgba(201, 154, 80, 0.4);
}

/* Mobile: stack headline neatly, keep things calm */
@media (max-width: 760px) {
  .home-hero-headline {
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
  }
  .home-hero-title { text-align: center; }
  .home-hero-taglines {
    border-left: none;
    border-top: 1px solid rgba(230, 207, 163, 0.4);
    padding-left: 0;
    padding-top: 14px;
    align-items: center;
    text-align: center;
  }
  .home-hero-tag-platform br { display: none; }
  .home-hero-badge {
    padding: 8px 18px 8px 14px;
    gap: 10px;
  }
  .home-hero-badge-year { font-size: 1.25rem; }
  .home-hero-badge-text { font-size: 0.72rem; }
}
@media (max-width: 400px) {
  .home-hero-title-pulse { font-size: 2.6rem; }
  .home-hero-title-rest { font-size: 1.4rem; }
}

/* ============================================================
   ============ PULSE V3 — HIGH-END VISUAL POLISH =============
   Refined gradients, glass cards, 3D book covers, wave dividers,
   premium typography. Designed mobile-first; degrades gracefully
   on older browsers (no JS dependency).
   ============================================================ */

/* ----------- Typography refinement ----------- */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-feature-settings: "kern", "liga", "calt";
  letter-spacing: -0.005em;
}
h1, h2, h3, h4 {
  font-feature-settings: "kern", "liga", "calt", "dlig";
  letter-spacing: -0.015em;
}
/* Bangla rendering — applied to any element containing Bengali text */
.bookstore-row-bn,
.book-store-bn,
.book-store-phone-bn,
[lang="bn"] {
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
  font-feature-settings: normal;
  letter-spacing: 0;
}

/* ----------- Refined scrollbar (desktop only) ----------- */
@media (hover: hover) {
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-soft), var(--primary));
    border: 3px solid var(--bg);
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  }
}

/* ----------- Refined focus rings ----------- */
*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
  border-radius: 4px;
}
.btn:focus-visible,
.cta-mini:focus-visible,
.nav-drawer-cta:focus-visible {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 8px 24px rgba(10, 35, 80,0.25);
}

/* ----------- HERO — premium feel ----------- */
.home-hero {
  position: relative;
  overflow: hidden;
}
/* Layered mesh gradient + decorative aurora */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 25%, rgba(201, 154, 80, 0.22), transparent 65%),
    radial-gradient(ellipse 55% 50% at 85% 70%, rgba(46, 99, 184, 0.30), transparent 65%),
    radial-gradient(ellipse 45% 50% at 65% 15%, rgba(212, 165, 165, 0.14), transparent 70%);
  pointer-events: none;
  animation: hero-aurora 18s ease-in-out infinite alternate;
}
@keyframes hero-aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero::before { animation: none; }
}
/* (Mid-hero ECG ribbon removed — the heartbeat now lives as a clean
   baseline at the hero's bottom edge via the .hero-ecg SVG element.) */
.home-hero-inner { position: relative; z-index: 1; }
.home-hero-title { position: relative; }
.home-hero-title-pulse {
  position: relative;
  display: inline-block;
}
.home-hero-title-pulse::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 999px;
  opacity: 0.7;
}

/* Hero strip refinement: glass + subtle hover */
.hero-strip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  padding: 22px 28px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 12px 36px rgba(10, 35, 80, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.hero-strip > div {
  transition: transform .2s ease;
}
.hero-strip > div:hover { transform: translateY(-2px); }

/* ----------- Buttons — micro-polish ----------- */
.btn {
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .25s, background .25s;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left .55s ease;
  pointer-events: none;
}
.btn:hover::before { left: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  box-shadow: 0 6px 18px rgba(10, 35, 80, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(10, 35, 80, 0.2); }
.home-hero .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  box-shadow: 0 10px 28px rgba(201, 154, 80, 0.42),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.home-hero .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: var(--primary-deep);
  box-shadow: 0 14px 36px rgba(201, 154, 80, 0.52);
}

/* ----------- Program cards — glass + gold edge ----------- */
.programs-grid .program-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF8F3 100%);
  border: 1px solid rgba(228, 220, 207, 0.7);
  box-shadow:
    0 1px 2px rgba(10, 35, 80, 0.04),
    0 4px 16px rgba(10, 35, 80, 0.06);
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s,
              border-color .35s;
  isolation: isolate;
}
.programs-grid .program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(201, 154, 80, 0.4) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
  z-index: 0;
  pointer-events: none;
}
.programs-grid .program-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 4px 8px rgba(10, 35, 80, 0.05),
    0 24px 48px rgba(10, 35, 80, 0.16);
  border-color: rgba(228, 220, 207, 0.4);
}
.programs-grid .program-card:hover::after { opacity: 1; }
.programs-grid .program-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s, color .25s;
}
.programs-grid .program-card:hover .arrow { gap: 12px; color: var(--accent-deep); }
.programs-grid .program-card .icon-wrap {
  background: linear-gradient(135deg, var(--primary-tint) 0%, var(--bg-warm) 100%);
  box-shadow: 0 4px 12px rgba(10, 35, 80, 0.08), inset 0 1px 0 white;
  transition: transform .35s;
}
.programs-grid .program-card:hover .icon-wrap {
  transform: scale(1.08) rotate(-4deg);
}

/* ----------- Topic / test / model cards — refined ----------- */
.topic-card, .test-card, .model-card {
  background: white;
  border: 1px solid rgba(228, 220, 207, 0.7);
  transition: transform .25s, box-shadow .3s, border-color .3s;
  position: relative;
}
.topic-card::before, .test-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 50%, rgba(201, 154, 80, 0.10) 100%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.topic-card:hover, .test-card.is-live:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 36px rgba(10, 35, 80, 0.10), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.topic-card:hover::before, .test-card.is-live:hover::before { opacity: 1; }
.model-card.is-live {
  background: linear-gradient(180deg, #FFFFFF, #FCFAF6);
}
.model-card.is-live:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(10, 35, 80, 0.10);
}
.model-card-num {
  position: relative;
  overflow: hidden;
}
.model-card-num::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

/* ----------- 3D book covers ----------- */
.hero-book-cover {
  perspective: 1500px;
}
.hero-book-cover .cover {
  transition: transform .55s cubic-bezier(.4, 0, .2, 1), filter .4s;
  filter: drop-shadow(0 16px 30px rgba(10, 35, 80, 0.22));
  border-radius: 4px;
}
.hero-book-cover .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 50%);
  pointer-events: none;
}
.hero-book-cover:hover .cover-1 {
  transform: rotate(-6deg) translateX(8px) translateY(-6px) rotateY(-8deg);
}
.hero-book-cover:hover .cover-2 {
  transform: rotate(4deg) translateX(-8px) translateY(-6px) rotateY(8deg);
}
.book-shelf-item {
  background: linear-gradient(180deg, #FFFFFF, #FBF8F3);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s;
}
.book-shelf-item img {
  transition: transform .55s cubic-bezier(.4,0,.2,1), filter .4s;
  filter: brightness(0.97);
}
.book-shelf-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(10, 35, 80, 0.16);
  border-color: var(--accent-light);
}
.book-shelf-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.02);
}
.books-detail-card img {
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.books-detail-card:hover img {
  transform: scale(1.04);
}

/* ----------- Section eyebrow refinement ----------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2.4px;
  color: var(--accent-deep);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent));
  border-radius: 999px;
}

/* ----------- Section title refined ----------- */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  letter-spacing: -0.018em;
  margin-bottom: 9px;
}
.section-lead {
  font-size: 1.0rem;
  line-height: 1.5;
  color: var(--text-soft);
}

/* ----------- Wave / curve section dividers ----------- */
.home-hero,
.hex-section,
.community-band,
.final-cta {
  position: relative;
}
.home-hero::before { z-index: 0; }
/* Append wave at bottom of home hero */
.home-hero {
  padding-bottom: 84px;
}
.home-hero-inner { position: relative; z-index: 2; }
section.block + section.block,
section.block + section.hex-section {
  /* nothing — kept for future hooks */
}

/* Decorative SVG wave separator helper */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -1px;
  pointer-events: none;
}

/* ----------- Premium hex-section (alt band) ----------- */
.hex-section {
  background:
    radial-gradient(ellipse 50% 50% at 100% 0%, rgba(201, 154, 80, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(46, 99, 184, 0.10), transparent 60%),
    var(--bg-cool);
}

/* ----------- Community band — refined ----------- */
.community-band {
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgba(201, 154, 80, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 80% at 100% 100%, rgba(212, 165, 165, 0.18), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  position: relative;
  overflow: hidden;
}
.community-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 95,28 95,75 50,100 5,75 5,28' fill='none' stroke='%23E6CFA3' stroke-width='0.4' opacity='0.18'/%3E%3C/svg%3E");
  background-size: 90px 90px;
  opacity: 0.45;
  pointer-events: none;
}
.community-band > * { position: relative; z-index: 1; }
.community-band .btn {
  background: white;
  color: var(--primary);
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.community-band .btn:hover {
  transform: translateY(-2px);
  background: var(--accent-light);
  color: var(--primary-deep);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

/* ----------- Footer — refined ----------- */
footer {
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(201, 154, 80, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(46, 99, 184, 0.14), transparent 70%),
    var(--primary-deep);
  position: relative;
  padding-top: 56px;
}
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
footer h5 {
  color: white;
  letter-spacing: 1.4px;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
footer h5::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}
.footer-brand {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: white;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
footer .footer-col a {
  color: #C6CFD6;
  position: relative;
  transition: color .2s, padding-left .2s;
}
footer .footer-col a:hover {
  color: var(--accent-light);
  padding-left: 6px;
}
footer .footer-col a::before {
  content: "›";
  position: absolute;
  left: -10px;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  color: var(--accent);
}
footer .footer-col a:hover::before {
  opacity: 1;
  transform: translateX(2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 22px 0;
  margin-top: 24px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.4px;
}

/* ----------- Stat numbers refined ----------- */
.stat-num {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 4px;
}

/* ----------- Pill tag refined ----------- */
.pill-tag {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  padding: 6px 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 999px;
  font-size: 0.7rem;
  box-shadow: 0 4px 14px rgba(201, 154, 80, 0.3);
  display: inline-block;
  margin-bottom: 12px;
}

/* ----------- Book showcase refinement on program pages ----------- */
.book-store-card {
  background: linear-gradient(180deg, #FFFFFF, var(--bg-warm));
  border: 1px solid rgba(228, 220, 207, 0.85);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  box-shadow: 0 8px 24px rgba(10, 35, 80, 0.06);
}
.book-store-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep), var(--accent));
}
.book-store-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.book-store-addr {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 12px;
}
.book-store-bn {
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
  color: var(--primary);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 10px 0;
  margin-bottom: 12px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.book-store-phone {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.book-store-phone a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  transition: color .2s, border-color .2s;
}
.book-store-phone a:hover {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}
.book-store-phone-bn {
  display: block;
  margin-top: 6px;
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
}

/* ----------- Big bookstore card on books.html — refined ----------- */
.bookstore-card-large {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-warm) 100%);
  border: 1px solid rgba(228, 220, 207, 0.85);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: 0 14px 32px rgba(10, 35, 80, 0.08);
  position: relative;
  overflow: hidden;
}
.bookstore-card-large::before {
  content: "📍";
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 1.6rem;
  opacity: 0.18;
}
.bookstore-row-en {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
}
.bookstore-row-en strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--primary-deep);
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.bookstore-row-bn {
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--primary);
}
.bookstore-row-bn strong {
  font-size: 1.2rem;
  color: var(--primary-deep);
  display: block;
  margin-bottom: 6px;
}
.bookstore-card-large hr {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 18px 0;
}
.bookstore-card-large a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  transition: color .2s, border-color .2s;
}
.bookstore-card-large a:hover {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* ----------- Subtle text-link underline animation ----------- */
.section-lead a,
.lead a,
p a {
  position: relative;
  color: var(--primary);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  transition: background-size .3s ease;
  padding-bottom: 2px;
}
.section-lead a:hover,
.lead a:hover,
p a:hover {
  background-size: 100% 1.5px;
}

/* ----------- Pricing tag refined ----------- */
.book-price-tag,
.books-price-summary-amount,
.bookstore-price-amount {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ----------- Refined cover badge ----------- */
.cover-badge {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.7rem;
  box-shadow: 0 6px 16px rgba(201, 154, 80, 0.4);
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;   /* above both rotated covers (cover-2 is z-index 2) */
}

/* ----------- Premium grid — Why card refinement ----------- */
.why-card {
  background: linear-gradient(180deg, white, #FBF8F3);
  border: 1px solid rgba(228, 220, 207, 0.7);
  padding: 22px 20px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 20px; right: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(10, 35, 80, 0.10);
  border-color: var(--accent-light);
}
.why-card:hover::after { transform: scaleX(1); }

/* ----------- Pricing cards on bookstore page ----------- */
.bookstore-price-card {
  background: linear-gradient(180deg, white, var(--bg-warm));
  border: 1px solid rgba(228, 220, 207, 0.7);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bookstore-price-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(10, 35, 80, 0.08);
}

/* ----------- Mobile fine-tuning ----------- */
@media (max-width: 768px) {
  .home-hero { padding-bottom: 80px; }
  .home-hero::after { top: 45%; height: 60px; opacity: 0.5; }
  .programs-grid .program-card { padding: 24px 20px; }
  .programs-grid .program-card:hover { transform: translateY(-4px); }
  .hero-strip { padding: 16px 18px; }
  .bookstore-card-large { padding: 22px 20px; }
  .bookstore-row-en strong { font-size: 1.2rem; }
  .bookstore-row-bn strong { font-size: 1.1rem; }
  .book-store-card { padding: 18px; }
  .pill-tag { font-size: 0.62rem; padding: 5px 12px; }
  .section-eyebrow { font-size: 0.7rem; letter-spacing: 2px; }
}

/* ----------- Print considerations (just in case) ----------- */
@media print {
  .home-hero::before,
  .home-hero::after,
  .community-band::before,
  footer::before { display: none; }
  .btn, .nav-toggle, .nav-drawer, .nav-drawer-backdrop, .visitor-counter { display: none !important; }
}

/* ============================================================
   ============ VISITOR COUNTER CHIP (Netlify-backed) =========
   Top-right floating pill on every page, just under the sticky
   header. Shows Today and All-time counts side by side, with
   a live pulse dot and brand-gradient numbers.
   ============================================================ */
.visitor-counter {
  position: fixed;
  top: 78px;          /* sits just below the sticky header */
  right: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(228, 220, 207, 0.65);
  border-radius: 999px;
  box-shadow:
    0 8px 22px rgba(10, 35, 80, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  color: var(--primary-deep);
  cursor: pointer;
  transition: transform .22s, box-shadow .22s, background .22s;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translateY(-6px);
  animation: vc-enter .55s ease-out .4s forwards;
}
.visitor-counter:hover,
.visitor-counter:focus-visible {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 12px 28px rgba(10, 35, 80, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.visitor-counter:active { transform: translateY(1px); }

/* Live pulse dot */
.visitor-counter .vc-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
  animation: vc-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes vc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
}

.visitor-counter .vc-icon {
  font-size: 0.95rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.10));
}

/* Each stat is a tiny stacked column: small label above, gradient number below */
.visitor-counter .vc-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  gap: 1px;
}
.visitor-counter .vc-stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-soft);
}
.visitor-counter .vc-stat-value {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  min-width: 1.2ch;
  transition: transform .2s;
}
.visitor-counter:hover .vc-stat-value { transform: scale(1.04); }

.visitor-counter .vc-divider {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(10, 35, 80, 0.18), transparent);
  flex-shrink: 0;
}

/* Error state */
.visitor-counter.is-error .vc-pulse {
  background: var(--text-muted);
  animation: none;
  box-shadow: none;
}
.visitor-counter.is-error .vc-stat-value { color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }

@keyframes vc-enter {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .visitor-counter { animation: none; opacity: 1; transform: none; }
  .visitor-counter .vc-pulse { animation: none; }
}

/* Mobile: tighter, hide labels and the eye icon to save space */
@media (max-width: 560px) {
  .visitor-counter {
    top: 64px;
    right: 10px;
    padding: 6px 11px;
    gap: 7px;
  }
  .visitor-counter .vc-icon { display: none; }
  .visitor-counter .vc-stat-label { font-size: 0.54rem; }
  .visitor-counter .vc-stat-value { font-size: 0.88rem; }
  .visitor-counter .vc-divider { height: 18px; }
}

@media (max-width: 380px) {
  .visitor-counter .vc-stat-label { display: none; }
  .visitor-counter { gap: 5px; padding: 5px 10px; }
}

/* Hide when the mobile drawer is open (drawer slides in from the right) */
body:has(.nav-drawer.is-open) .visitor-counter,
.nav-drawer.is-open ~ .visitor-counter { display: none; }

/* When the account dropdown is open, gracefully clear the floating counter
   so the menu never appears to "cover" the visitor stats. */
body.pulse-acct-open .visitor-counter {
  opacity: 0 !important;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}


/* ================================================================
   PULSE 2026 - VIBRANT PORTAL LAYER
   Six-service portal restructure + vivid refresh + a11y fixes.
   Appended last so it wins the cascade; earlier rules untouched.
   ================================================================ */

:root {
  /* Vivid companions to the calm clinical base */
  --accent:        #D9A24A;   /* brighter warm gold                 */
  --coral:         #E2645A;   /* livelier coral                     */
  --mint:          #2E9E72;   /* deeper vivid mint                  */
  --cyan:          #2AA7C7;   /* pulse cyan - energy accent         */
  --cyan-soft:     #7FD1E8;   /* light cyan - lines on dark         */
  --violet:        #7C6FD9;   /* soft violet - NCLEX accent         */
  --eyebrow-ink:   #7A5310;   /* WCAG-safe gold-brown for eyebrows  */
  --lead-ink:      #51606E;   /* WCAG-safe secondary text           */
  --shadow-md:     0 10px 28px rgba(10, 35, 80, 0.12);
  --shadow-lg:     0 22px 54px rgba(10, 35, 80, 0.16);
}

/* ----------- A11Y: contrast fixes ----------- */
.section-eyebrow { color: var(--eyebrow-ink); }
.section-lead { color: var(--lead-ink); }
.section-eyebrow.eyebrow-on-dark { color: #F2D9A7; }
.section-eyebrow.eyebrow-on-dark::before {
  background: linear-gradient(90deg, transparent, #F2D9A7);
}

/* ----------- A11Y: footer headings are now styled <p> ----------- */
.footer-col .footer-head {
  color: white; font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-soon {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; border-radius: 999px;
  background: rgba(217, 162, 74, 0.18); color: var(--accent-light);
  border: 1px solid rgba(217, 162, 74, 0.4);
  vertical-align: 1px;
}

/* ----------- A11Y / BP: footer logo keeps its aspect ratio ----------- */
.footer-logo { object-fit: contain; background: white; }

/* ----------- Top nav: NCLEX soon dot ----------- */
.nav-soon-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral); margin-left: 3px; vertical-align: 8px;
  animation: navdot 2.2s ease-in-out infinite;
}
@keyframes navdot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 100, 90, 0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(226, 100, 90, 0); }
}

/* ----------- Hero: tagline ----------- */
.home-hero-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.18rem; font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 1.2px;
  margin: 4px 0 10px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

/* ----------- Hero: logo emblem above the wordmark ----------- */
.home-hero-emblem {
  display: block; width: 180px; height: auto;
  margin: 0 auto 16px; position: relative; z-index: 2;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.38));
}
@media (max-width: 600px) { .home-hero-emblem { width: 138px; margin-bottom: 12px; } }

/* ----------- Hero: heartbeat baseline with a travelling gold pulse ----------- */
.hero-ecg {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: auto; z-index: 1;
  pointer-events: none;
}
/* slim resting line — the draw/run + fade is driven by SMIL in the markup,
   on the same SVG timeline as the gold tip so they stay perfectly in sync */
.hero-ecg-line {
  fill: none; stroke: rgba(140, 205, 235, 0.50); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(127, 209, 232, 0.45));
}
/* softly glowing gold tip that rides the leading edge of the running line */
.ecg-tip-glow { filter: drop-shadow(0 0 4px rgba(242, 182, 60, 0.28)) opacity(0.38); }
.ecg-tip { filter: drop-shadow(0 0 3px rgba(244, 184, 60, 0.35)) opacity(0.45); }
.ecg-tip-core { filter: drop-shadow(0 0 2px rgba(255, 246, 221, 0.4)) opacity(0.45); }

/* ----------- Hero: service chips ----------- */
.hero-service-chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 34px; position: relative; z-index: 2;
}
.service-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  color: #F4F8FA; font-size: 0.85rem; font-weight: 600;
  transition: transform .2s, background .2s, border-color .2s;
}
.service-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.45);
}
.service-chip .chip-soon {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
  background: var(--accent); color: var(--primary-deep);
}

/* Hero grouped nav — 5 categories, each with clickable items */
.hero-groups {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 16px; max-width: 1180px; margin: 34px auto 0;
  position: relative; z-index: 2; text-align: left;
}
.hero-group { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.hero-group-label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent, #F4B83C); margin-bottom: 2px; padding-left: 4px;
}
.hero-group .service-chip { justify-content: flex-start; width: 100%; white-space: nowrap; }
.hero-group .service-chip .chip-new, .hero-group .service-chip .chip-soon, .hero-group .service-chip .chip-feat { flex: 0 0 auto; margin-left: auto; }
/* Feature badges on flagship chips (NCLEX = Adaptive Test, IELTS = AI Evaluation).
   Kept compact so label + badge always fit the column width — chips stay aligned. */
.service-chip .chip-feat {
  font-size: 0.52rem; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase;
  padding: 2px 6px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,0.9); color: #1E293B;
}
/* Never let chip content stretch a pill wider than its column: labels may
   ellipsize, the badge never shrinks. */
.hero-group .service-chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hero-group .service-chip .chip-new,
.hero-group .service-chip .chip-soon { font-size: 0.52rem; padding: 2px 6px; letter-spacing: 0.3px; }
.hero-group .service-chip-nclex .chip-feat { background: #FCE7C0; color: #7A4A12; }
.hero-group .service-chip-ielts .chip-feat { background: #E7DCFF; color: #4C1D95; }
/* Colour-coded highlight chips — draw the eye to the flagship NCLEX + IELTS */
.hero-group .service-chip-nclex {
  background: linear-gradient(135deg, rgba(232,155,44,0.30), rgba(201,154,80,0.18));
  border-color: rgba(240,180,90,0.75); color: #FFF4DE; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(240,180,90,0.25), 0 4px 16px rgba(232,155,44,0.22);
}
.hero-group .service-chip-nclex:hover {
  background: linear-gradient(135deg, rgba(232,155,44,0.42), rgba(201,154,80,0.26));
  border-color: rgba(240,180,90,0.95);
}
.hero-group .service-chip-ielts {
  background: linear-gradient(135deg, rgba(139,92,246,0.34), rgba(109,40,217,0.20));
  border-color: rgba(167,139,250,0.75); color: #EDE7FF; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(167,139,250,0.25), 0 4px 16px rgba(139,92,246,0.22);
}
.hero-group .service-chip-ielts:hover {
  background: linear-gradient(135deg, rgba(139,92,246,0.46), rgba(109,40,217,0.28));
  border-color: rgba(167,139,250,0.95);
}
span.service-chip.is-soon { opacity: 0.7; cursor: default; }
span.service-chip.is-soon:hover { transform: none; background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.22); }
@media (max-width: 1080px) { .hero-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; } }
@media (max-width: 720px) { .hero-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } }
@media (max-width: 520px) { .hero-groups { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════
   Glowing jellyfish — ambient blue/white creatures that wander the
   whole homepage (up / down / side). Fixed overlay so they drift over
   every section as you scroll. Purely decorative: translucent, never
   capture clicks (pointer-events:none), kept below the top nav and
   floating buttons (z-index 8), and disabled for reduced-motion users.
   Layers of transform, one job each:
     .jelly        → 2D wander across the viewport
     .jelly-scale  → static per-jelly size
     .jelly-body   → swim thrust (bob + tilt)
     .jelly-bell   → bell contraction pulse
     .jelly-arms span → trailing tentacle wave
   ════════════════════════════════════════════════════════════════ */
.jelly-field { position: fixed; inset: 0; z-index: 8; overflow: hidden; pointer-events: none; }
.jelly {
  position: absolute; top: var(--top, 40%); left: var(--left, 50%);
  opacity: var(--o, .5);
  will-change: transform;
  animation: var(--wander, jelly-wa) var(--dur, 52s) ease-in-out var(--d, 0s) infinite var(--dir, normal);
}
.jelly-scale { transform: scale(var(--s, 1)); transform-origin: center center; }
.jelly-body {
  animation: jelly-swim 4s ease-in-out var(--sd, 0s) infinite;
  /* soft edge so the jelly stays visible over both the dark hero and white sections */
  filter: drop-shadow(0 2px 7px rgba(40,110,200,0.28));
}
/* SVG jellyfish artwork — shared gradients live in the hidden .jelly-defs svg */
.jz { display: block; width: 100px; height: 160px; overflow: visible;
  filter: drop-shadow(0 3px 10px rgba(40,110,200,0.3)); }
.jz-bo { fill: url(#jbBell); stroke: rgba(86,116,214,0.42); stroke-width: 1; }
.jz-hi { fill: url(#jbHi); opacity: 0.85; }
.jz-dot { fill: rgba(255,255,255,0.42); }
.jz-arms path { fill: none; stroke: url(#jbTent); stroke-width: 1.7; stroke-linecap: round; }
.jz-orals path { fill: none; stroke: url(#jbTent); stroke-width: 3; stroke-linecap: round; opacity: 0.85; }
/* lifelike motion: bell contracts (pulse) while oral arms + tentacles trail and sway */
.jz-bell  { transform-box: fill-box; transform-origin: 50% 6%; animation: jz-pulse 4s ease-in-out var(--sd, 0s) infinite; }
.jz-orals { transform-box: fill-box; transform-origin: 50% 0%; animation: jz-sway 4.2s ease-in-out var(--sd, 0s) infinite reverse; }
.jz-arms  { transform-box: fill-box; transform-origin: 50% 0%; animation: jz-sway 4.8s ease-in-out var(--sd, 0s) infinite; }

/* swim thrust: body lifts as the bell contracts, then relaxes */
@keyframes jelly-swim {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-11px) rotate(2deg); }
}
@keyframes jz-pulse {
  0%, 100% { transform: scaleX(1) scaleY(1); }
  42%      { transform: scaleX(0.88) scaleY(1.1); }
  68%      { transform: scaleX(1.04) scaleY(0.95); }
}
@keyframes jz-sway {
  0%, 100% { transform: skewX(-6deg) translateY(0) scaleY(1); }
  50%      { transform: skewX(6deg) translateY(3px) scaleY(1.04); }
}
/* 2D wander paths — up, down and side to side, looping smoothly */
@keyframes jelly-wa {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(13vw, 9vh); }
  40%  { transform: translate(25vw, -6vh); }
  60%  { transform: translate(11vw, -16vh); }
  80%  { transform: translate(-6vw, 3vh); }
  100% { transform: translate(0, 0); }
}
@keyframes jelly-wb {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-15vw, 12vh); }
  50%  { transform: translate(-24vw, -7vh); }
  75%  { transform: translate(-8vw, -18vh); }
  100% { transform: translate(0, 0); }
}
@keyframes jelly-wc {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(10vw, -13vh); }
  50%  { transform: translate(-6vw, -22vh); }
  75%  { transform: translate(-15vw, -5vh); }
  100% { transform: translate(0, 0); }
}
@media (max-width: 600px) {
  /* thin the school on small screens so content stays clear */
  .jelly:nth-child(3), .jelly:nth-child(5), .jelly:nth-child(6) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jelly-field { display: none; }
}

/* ----------- Tinted alternate section band ----------- */
section.block-tint {
  position: relative; max-width: none;
}
section.block-tint::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 60% at 100% 0%, rgba(42, 167, 199, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(217, 162, 74, 0.10), transparent 60%),
    var(--bg-warm);
}
section.block-tint > * {
  position: relative; z-index: 1;
  max-width: 1152px; margin-left: auto; margin-right: auto;
}

/* ----------- Programs grid: two-column variant ----------- */
.programs-grid-2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .programs-grid-2col { grid-template-columns: 1fr; } }

/* ----------- Coming-soon program cards ----------- */
.program-card.is-soon {
  cursor: default;
  background:
    repeating-linear-gradient(-45deg, rgba(10, 35, 80, 0.018) 0 8px, transparent 8px 16px),
    var(--surface);
  border-style: dashed;
  border-color: var(--line-cool);
  overflow: hidden;
}
.program-card.is-soon:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.program-card.is-soon .icon-wrap { filter: saturate(0.85); }
.soon-ribbon {
  position: absolute; top: 14px; right: -34px;
  transform: rotate(38deg);
  width: 130px; text-align: center;
  padding: 4px 0;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), #EFC275);
  color: var(--primary-deep);
  box-shadow: 0 3px 10px rgba(10, 35, 80, 0.18);
  pointer-events: none;
}
.arrow-soon { color: var(--text-muted) !important; font-style: italic; }

/* ----------- Soon chip (inline, used in headings/cards) ----------- */
.soon-chip {
  display: inline-block; vertical-align: middle;
  margin-left: 10px; padding: 4px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 1.1px;
  text-transform: uppercase; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #EFC275);
  color: var(--primary-deep);
  box-shadow: 0 3px 10px rgba(217, 162, 74, 0.35);
  animation: soft-glow 2.6s ease-in-out infinite;
}
@keyframes soft-glow {
  0%, 100% { box-shadow: 0 3px 10px rgba(217, 162, 74, 0.35); }
  50%      { box-shadow: 0 3px 18px rgba(217, 162, 74, 0.6); }
}

/* ----------- NCLEX band ----------- */
.nclex-band {
  position: relative; overflow: hidden;
  padding: 90px 24px;
  background:
    radial-gradient(ellipse 55% 70% at 8% 12%, rgba(124, 111, 217, 0.30), transparent 60%),
    radial-gradient(ellipse 55% 70% at 95% 90%, rgba(42, 167, 199, 0.30), transparent 60%),
    linear-gradient(135deg, #07193F 0%, #14387A 55%, #1A4A9E 100%);
  color: #E8F0F4;
}
.nclex-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 95,28 95,75 50,100 5,75 5,28' fill='none' stroke='%237FD1E8' stroke-width='0.4' opacity='0.14'/%3E%3C/svg%3E");
  background-size: 90px 90px; opacity: 0.5;
}
.nclex-inner {
  position: relative; z-index: 1;
  max-width: 1152px; margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .nclex-inner { grid-template-columns: 1fr; gap: 40px; }
  .nclex-band { padding: 64px 18px; }
}
.nclex-band h2 {
  color: white;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 14px;
}
.nclex-lead {
  color: #C9DCE5; font-size: 1.06rem; line-height: 1.65;
  max-width: 560px; margin-bottom: 24px;
}
.nclex-features {
  list-style: none; padding: 0; margin: 0 0 30px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px;
}
@media (max-width: 560px) { .nclex-features { grid-template-columns: 1fr; } }
.nclex-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: #DAE8EE; line-height: 1.45;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.nclex-features li span { flex-shrink: 0; }
.btn-glow {
  background: linear-gradient(90deg, #D9A24A, #EFC275);
  color: #0A2350;
  border: none; border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(217, 162, 74, 0.4);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(217, 162, 74, 0.55);
  background: linear-gradient(90deg, #EFC275, #D9A24A);
  color: #0A2350;
}

/* Academic Programs band — same layout as the NCLEX band, in the academic (deep-gold) palette */
.academic-band {
  background:
    radial-gradient(ellipse 55% 70% at 8% 12%, rgba(251, 146, 60, 0.28), transparent 60%),
    radial-gradient(ellipse 55% 70% at 95% 90%, rgba(180, 84, 30, 0.34), transparent 60%),
    linear-gradient(135deg, #3F1207 0%, #7C2D12 55%, #B4541E 100%);
}
.academic-band::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 95,28 95,75 50,100 5,75 5,28' fill='none' stroke='%23F7C489' stroke-width='0.4' opacity='0.16'/%3E%3C/svg%3E");
}
.academic-band .nclex-lead { color: #FBE3CB; }
.academic-band .nclex-features li {
  color: #FBE7D3;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}
.academic-band .btn-glow {
  background: linear-gradient(90deg, #FFF7ED, #FCE3C4);
  color: #7C2D12;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.academic-band .btn-glow:hover {
  background: linear-gradient(90deg, #FCE3C4, #FFF7ED);
  color: #7C2D12;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* NCLEX floating preview cards */
.nclex-visual {
  position: relative; min-height: 320px;
}
@media (max-width: 900px) { .nclex-visual { min-height: 260px; } }
.nclex-card-float {
  position: absolute;
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  animation: float-y 5.5s ease-in-out infinite;
}
.nclex-card-1 { top: 6%; left: 4%; width: 64%; animation-delay: 0s; }
.nclex-card-2 { top: 42%; right: 2%; width: 44%; animation-delay: 1.2s; }
.nclex-card-3 { bottom: 4%; left: 10%; width: 48%; animation-delay: 2.3s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.nclex-card-kicker {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: #9FD8EA;
}
.nclex-card-big {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 800; color: white; line-height: 1;
}
.nclex-card-stat { font-size: 0.86rem; color: #E5F0F5; }
.nclex-card-stat em { color: #9FD8EA; font-style: normal; }
.nclex-card-line {
  height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, #7FD1E8 0%, #7C6FD9 70%, rgba(255,255,255,0.15) 70%);
}

/* ----------- Consultation section ----------- */
.consult-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: stretch;            /* both columns share the same height */
  max-width: 1040px; margin: 0 auto;
}
@media (max-width: 900px) { .consult-grid { grid-template-columns: 1fr; max-width: 560px; } }
.consult-services { display: flex; flex-direction: column; gap: 20px; }
.consult-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-lg);
  padding: 26px 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.consult-card:not(.consult-card-quote):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.consult-card .soon-chip { position: absolute; top: 18px; right: 18px; margin: 0; }
.consult-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 15px;
  font-size: 1.75rem; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(46, 99, 184, 0.13), rgba(46, 99, 184, 0.05));
  border: 1px solid rgba(46, 99, 184, 0.16);
}
.consult-card h3 { margin-bottom: 8px; font-size: 1.16rem; }
.consult-card p { font-size: 0.92rem; color: var(--lead-ink); line-height: 1.6; }
.consult-card-quote {
  flex: 1;                          /* grows to fill, balancing the tall form */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 150px;
  background: linear-gradient(135deg, #14387A 0%, #2E63B8 100%);
  border: none; text-align: center; padding: 34px 28px;
  box-shadow: 0 14px 34px rgba(20, 56, 122, 0.28);
}
.consult-card-quote::before {
  content: "💙"; font-size: 1.5rem; line-height: 1; margin-bottom: 4px;
}
.consult-card-quote p {
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
  color: white; font-size: 1.25rem; font-weight: 700; line-height: 1.55; margin: 0;
}
.consult-card-quote span { color: var(--accent-light); font-size: 0.9rem; letter-spacing: .01em; }

.consult-form {
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-lg);
  padding: 30px 28px 28px;
  box-shadow: var(--shadow-md);
}
.consult-form-title { margin-bottom: 4px; }
.consult-form-sub { font-size: 0.88rem; color: var(--lead-ink); margin-bottom: 20px; }
.consult-form .form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.consult-form label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.consult-form label .optional { font-weight: 400; color: var(--text-muted); }
.consult-form input,
.consult-form select,
.consult-form textarea {
  font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
  font-size: 0.95rem; color: var(--text);
  padding: 11px 14px;
  border: 1.5px solid var(--line-cool);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  outline: none; border-color: var(--primary-soft);
  background: white;
  box-shadow: 0 0 0 3px rgba(46, 99, 184, 0.15);
}
.consult-form textarea { resize: vertical; }
.consult-submit { width: 100%; justify-content: center; margin-top: 4px; }
.hidden-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ----------- Book shelf: h3 titles (was h4) ----------- */
.book-shelf-item .book-shelf-title,
.book-shelf-item h3 { color: var(--primary); font-size: 1rem; margin: 4px 0; font-weight: 600; }
.book-shelf-callout .book-shelf-title { font-family: 'Playfair Display', serif; }

/* ----------- Section title flourish ----------- */
section.block .section-title::after,
.hex-section .section-title::after {
  content: ""; display: block;
  width: 64px; height: 4px; border-radius: 999px;
  margin-top: 14px;
  background: linear-gradient(90deg, #D9A24A, #2AA7C7);
}

/* ----------- Reduced motion: calm everything ----------- */
@media (prefers-reduced-motion: reduce) {
  .hero-ecg-line { animation: none; stroke-dashoffset: 0; }
  .nclex-card-float { animation: none; }
  .soon-chip { animation: none; }
  .nav-soon-dot { animation: none; }
}

/* ════════════════════════════════════════════════════════════════
   NCLEX ADAPTIVE EXAM UI
   ════════════════════════════════════════════════════════════════ */
.quiz-shell-adaptive { display: block; }
.quiz-main-wide { max-width: 820px; margin: 0 auto; }
.adaptive-status {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.adaptive-count { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.adaptive-diff {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; color: white;
}
.adaptive-diff-1 { background: #2E9E72; }
.adaptive-diff-2 { background: #2AA7C7; }
.adaptive-diff-3 { background: #7C6FD9; }
.adaptive-progress {
  flex: 1; min-width: 120px; height: 7px; border-radius: 999px;
  background: var(--line-cool); overflow: hidden;
}
.adaptive-progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #2AA7C7, #7C6FD9);
  transition: width .4s ease;
}
.adaptive-note { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* Adaptive result banner */
.adaptive-result-banner {
  margin: 24px auto 0; max-width: 520px;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 20px;
  align-items: center;
  padding: 22px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 2px solid var(--line-cool);
  box-shadow: var(--shadow-md);
}
.adaptive-result-prob {
  grid-row: 1 / 3;
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: 3rem; line-height: 1;
}
.adaptive-band-pass { border-color: #2E9E72; }
.adaptive-band-pass .adaptive-result-prob { color: #2E9E72; }
.adaptive-band-borderline { border-color: #D9A24A; }
.adaptive-band-borderline .adaptive-result-prob { color: #B97E1E; }
.adaptive-band-fail { border-color: #E2645A; }
.adaptive-band-fail .adaptive-result-prob { color: #C44537; }
.adaptive-result-label { font-weight: 700; color: var(--text); font-size: 0.95rem; line-height: 1.3; }
.adaptive-result-label span { font-weight: 400; color: var(--text-soft); font-size: 0.82rem; }
.adaptive-result-note {
  grid-column: 1 / 3; margin-top: 8px;
  font-size: 0.86rem; color: var(--lead-ink); line-height: 1.55;
}
@media (max-width: 520px) {
  .adaptive-result-banner { grid-template-columns: 1fr; text-align: center; }
  .adaptive-result-prob { grid-row: auto; }
}

/* ════════════════════════════════════════════════════════════════
   ACCOUNTS — nav control, auth modal, soft prompt
   ════════════════════════════════════════════════════════════════ */
.pulse-acct { position: relative; display: inline-flex; align-items: center; }
.pulse-acct-signin {
  border: none; color: #fff;
  background: linear-gradient(135deg, #B3123E 0%, #E8792C 100%);
  font: inherit; font-weight: 700; font-size: 0.9rem; padding: 8px 18px;
  border-radius: 999px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(179, 18, 62, 0.28);
  transition: transform .18s, box-shadow .18s, filter .2s;
}
.pulse-acct-signin:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(179, 18, 62, 0.38); filter: brightness(1.07); }
.pulse-acct-btn {
  display: inline-flex; align-items: center; gap: 8px; border: none; background: transparent;
  font: inherit; cursor: pointer; padding: 4px 6px; border-radius: 999px;
}
.pulse-acct-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 700; font-size: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.pulse-acct-name { font-weight: 600; font-size: 0.9rem; color: var(--text); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse-acct-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line-cool); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; z-index: 200;
}
.pulse-acct-email { font-size: 0.78rem; color: var(--text-soft); padding: 6px 10px; border-bottom: 1px solid var(--line-cool); margin-bottom: 4px; word-break: break-all; }
.pulse-acct-item {
  display: block; width: 100%; text-align: left; background: transparent; border: none;
  font: inherit; font-size: 0.9rem; color: var(--text); padding: 9px 10px; border-radius: 8px; cursor: pointer;
}
.pulse-acct-item:hover { background: var(--bg); }
.pulse-acct-signout { color: var(--coral); }
@media (max-width: 768px) { .pulse-acct { display: none; } }

/* Auth modal */
.pulse-auth-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.pulse-auth-modal[hidden] { display: none; }
.pulse-auth-backdrop { position: absolute; inset: 0; background: rgba(20,30,40,0.55); backdrop-filter: blur(3px); }
.pulse-auth-card {
  position: relative; width: min(420px, 92vw); max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 30px 28px 26px;
  animation: pulse-auth-in .25s ease-out;
}
@keyframes pulse-auth-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.pulse-auth-close { position: absolute; top: 12px; right: 14px; background: transparent; border: none; font-size: 1.7rem; line-height: 1; color: var(--text-muted); cursor: pointer; }
.pulse-auth-close:hover { color: var(--text); }
.pulse-auth-head { text-align: center; margin-bottom: 20px; }
.pulse-auth-logo { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.4rem; color: var(--primary); }
.pulse-auth-title { font-size: 1.25rem; margin: 8px 0 4px; }
.pulse-auth-sub { font-size: 0.88rem; color: var(--lead-ink); line-height: 1.5; }
.pulse-auth-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px solid var(--line-cool); background: #fff; color: var(--text);
  font: inherit; font-weight: 600; font-size: 0.95rem; padding: 11px; border-radius: 10px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.pulse-auth-google:hover { background: var(--bg); border-color: var(--primary-soft); }
.pulse-auth-g { font-family: Arial, sans-serif; font-weight: 800; color: #4285F4; font-size: 1.05rem; }
.pulse-auth-or { display: flex; align-items: center; text-align: center; color: var(--text-muted); font-size: 0.78rem; margin: 16px 0; }
.pulse-auth-or::before, .pulse-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-cool); }
.pulse-auth-or span { padding: 0 12px; }
.pulse-auth-form { display: flex; flex-direction: column; gap: 12px; }
.pulse-auth-input {
  font: inherit; font-size: 0.95rem; padding: 11px 14px; border: 1.5px solid var(--line-cool);
  border-radius: 10px; background: var(--bg); transition: border-color .2s, box-shadow .2s, background .2s;
}
.pulse-auth-input:focus { outline: none; border-color: var(--primary-soft); background: #fff; box-shadow: 0 0 0 3px rgba(46, 99, 184,0.15); }
.pulse-auth-msg { font-size: 0.85rem; padding: 9px 12px; border-radius: 8px; line-height: 1.4; }
.pulse-auth-msg.is-err { background: rgba(226,100,90,0.12); color: #b23b2f; }
.pulse-auth-msg.is-ok { background: rgba(46,158,114,0.12); color: #1c7a52; }
.pulse-auth-submit {
  font: inherit; font-weight: 700; font-size: 0.98rem; padding: 12px; border: none; border-radius: 10px;
  background: var(--primary); color: #fff; cursor: pointer; transition: background .2s, transform .2s;
}
.pulse-auth-submit:hover { background: var(--primary-deep); transform: translateY(-1px); }
.pulse-auth-submit:disabled { opacity: .6; cursor: default; transform: none; }
.pulse-auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pulse-auth-toggle, .pulse-auth-forgot { background: transparent; border: none; font: inherit; font-size: 0.84rem; color: var(--primary); cursor: pointer; padding: 4px 0; }
.pulse-auth-toggle:hover, .pulse-auth-forgot:hover { text-decoration: underline; }

/* Soft sign-up prompt */
.pulse-prompt {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%);
  z-index: 900; width: min(640px, 94vw);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-cool); border-left: 4px solid var(--accent);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px 18px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.pulse-prompt.is-in { transform: translate(-50%, 0); }
.pulse-prompt-text { font-size: 0.9rem; color: var(--text); line-height: 1.45; flex: 1; min-width: 200px; }
.pulse-prompt-actions { display: flex; gap: 8px; align-items: center; }
.pulse-prompt-cta {
  font: inherit; font-weight: 700; font-size: 0.85rem; padding: 9px 16px; border: none; border-radius: 999px;
  background: var(--primary); color: #fff; cursor: pointer;
}
.pulse-prompt-cta:hover { background: var(--primary-deep); }
.pulse-prompt-dismiss { font: inherit; font-size: 0.85rem; color: var(--text-soft); background: transparent; border: none; cursor: pointer; padding: 9px 8px; }
.pulse-prompt-dismiss:hover { color: var(--text); }
@media (max-width: 560px) { .pulse-prompt { flex-direction: column; align-items: stretch; text-align: center; } .pulse-prompt-actions { justify-content: center; } }

/* ════════════════════════════════════════════════════════════════
   ACCOUNTS MODAL — redesigned (branded banner, confirm field, highlight)
   Appended last so it refines the earlier auth styles.
   ════════════════════════════════════════════════════════════════ */
.pulse-auth-card {
  padding: 0; overflow: hidden;
  width: min(430px, 93vw);
  border: 1px solid var(--line-cool);
}
.pulse-auth-close {
  top: 12px; right: 14px; color: rgba(255,255,255,0.85); z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.14); line-height: 1;
}
.pulse-auth-close:hover { color: #fff; background: rgba(255,255,255,0.28); }

/* Branded gradient banner */
.pulse-auth-banner {
  position: relative; text-align: center;
  padding: 26px 24px 22px;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(217,162,74,0.30), transparent 60%),
    radial-gradient(ellipse 70% 90% at 0% 100%, rgba(42,167,199,0.22), transparent 60%),
    linear-gradient(135deg, #07193F 0%, var(--primary) 55%, #1A4A9E 100%);
  color: #fff; overflow: hidden;
}
.pulse-auth-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 95,28 95,75 50,100 5,75 5,28' fill='none' stroke='%237FD1E8' stroke-width='0.4' opacity='0.16'/%3E%3C/svg%3E");
  background-size: 78px 78px;
}
.pulse-auth-brand-logo {
  position: relative; width: 52px; height: 52px; border-radius: 13px;
  background: #fff; padding: 5px; object-fit: contain;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25); margin-bottom: 10px;
}
.pulse-auth-brand-name {
  position: relative; font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800; font-size: 1.5rem; line-height: 1.05; letter-spacing: -0.01em;
  color: #fff;
}
.pulse-auth-brand-name span {
  font-style: italic; font-weight: 500;
  background: linear-gradient(135deg, #FFF6E3, var(--accent-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.pulse-auth-brand-tag {
  position: relative; font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 0.86rem; color: var(--accent-light); margin-top: 4px; letter-spacing: 0.4px;
}

/* Body */
.pulse-auth-body { padding: 22px 28px 26px; text-align: center; }
.pulse-auth-title { font-size: 1.32rem; margin: 0 0 5px; }
.pulse-auth-sub { font-size: 0.88rem; color: var(--lead-ink); line-height: 1.5; margin-bottom: 18px; }
.pulse-auth-form { text-align: left; }

/* Forgot link — small, right-aligned, sits under the password field */
.pulse-auth-forgot {
  display: block; margin: -4px 2px 2px auto; padding: 2px 0;
  font-size: 0.8rem; color: var(--primary-soft); background: transparent; border: none; cursor: pointer;
}
.pulse-auth-forgot:hover { text-decoration: underline; color: var(--primary); }

/* Confirm-password field gets a soft highlight when it appears (sign-up) */
.pulse-auth-confirm {
  border-color: var(--accent); background: rgba(217,162,74,0.06);
  animation: pulse-confirm-in .25s ease-out;
}
@keyframes pulse-confirm-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Submit turns gold in sign-up mode to emphasize account creation */
.pulse-auth-card.is-signup .pulse-auth-submit {
  background: linear-gradient(90deg, var(--accent), #EFC275);
  color: var(--primary-deep);
  box-shadow: 0 8px 22px rgba(217,162,74,0.4);
}
.pulse-auth-card.is-signup .pulse-auth-submit:hover {
  background: linear-gradient(90deg, #EFC275, var(--accent));
  color: var(--primary-deep);
}

/* Highlighted switch / create-account call-out */
.pulse-auth-switch {
  margin-top: 18px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  background: var(--bg-warm); border: 1px dashed var(--accent);
  border-radius: 12px;
}
.pulse-auth-switch-text { font-size: 0.88rem; color: var(--text); }
.pulse-auth-toggle {
  font: inherit; font-weight: 700; font-size: 0.88rem;
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
  background: var(--primary); color: #fff; border: none;
  box-shadow: 0 4px 12px rgba(10, 35, 80,0.18);
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none;
}
.pulse-auth-toggle:hover { transform: translateY(-1px); background: var(--primary-deep); box-shadow: 0 8px 18px rgba(10, 35, 80,0.26); }
/* In sign-up mode the call-out points back to sign-in, calmer styling */
.pulse-auth-card.is-signup .pulse-auth-switch { border-style: solid; border-color: var(--line-cool); background: var(--bg); }
.pulse-auth-card.is-signup .pulse-auth-toggle { background: transparent; color: var(--primary); box-shadow: none; text-decoration: underline; padding: 4px 6px; }

/* Respect the hidden attribute on the forgot link (overrides display:block) */
.pulse-auth-forgot[hidden] { display: none; }

/* ════════════════════════════════════════════════════════════════
   NAV — program links as solid colored pills (like the CTA button)
   Each program in its own brand colour. Desktop only (mobile uses drawer).
   ════════════════════════════════════════════════════════════════ */
.top-nav-links a[href="msn.html"],
.top-nav-links a[href="post-basic.html"],
.top-nav-links a[href="rn.html"],
.top-nav-links a[href="nclex.html"],
.top-nav-links a[href="books.html"] {
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(10, 35, 80,0.14);
  transition: transform .16s, box-shadow .2s, filter .2s;
}
.top-nav-links a[href="msn.html"]:hover,
.top-nav-links a[href="post-basic.html"]:hover,
.top-nav-links a[href="rn.html"]:hover,
.top-nav-links a[href="nclex.html"]:hover,
.top-nav-links a[href="books.html"]:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(10, 35, 80,0.22);
}
/* Per-program brand colours */
.top-nav-links a[href="msn.html"]        { background: linear-gradient(135deg,#1E3A8A,#2B4FA8); }
.top-nav-links a[href="post-basic.html"] { background: linear-gradient(135deg,#1E5F9C,#3F8FD0); }
.top-nav-links a[href="rn.html"]         { background: linear-gradient(135deg,#16A34A,#34C56A); }
.top-nav-links a[href="nclex.html"]      { background: linear-gradient(135deg,#6C5FD0,#8A7DE6); }
.top-nav-links a[href="books.html"]      { background: linear-gradient(135deg,#A47B36,#C99A50); }
/* Active program pill: keep its colour, add a ring instead of the tint default */
.top-nav-links a[href="msn.html"].is-active,
.top-nav-links a[href="post-basic.html"].is-active,
.top-nav-links a[href="rn.html"].is-active,
.top-nav-links a[href="nclex.html"].is-active,
.top-nav-links a[href="books.html"].is-active {
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 0 4px currentColor;
}
.top-nav-links { gap: 8px; }

/* ════════════════════════════════════════════════════════════════
   JOBS PAGE — live listings + trusted-sources hub
   ════════════════════════════════════════════════════════════════ */

/* Nav pill colour for Jobs (matches the program-pill convention) */
.top-nav-links a[href="jobs.html"] {
  color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600;
  background: linear-gradient(135deg, #B4541E, #E2784A);
  box-shadow: 0 3px 10px rgba(10, 35, 80,0.14);
  transition: transform .16s, box-shadow .2s, filter .2s;
}
.top-nav-links a[href="jobs.html"]:hover {
  color: #fff; transform: translateY(-1px); filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(10, 35, 80,0.22);
}
.top-nav-links a[href="jobs.html"].is-active {
  color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 0 4px currentColor;
}

/* Nav pill colour for IELTS (violet) */
.top-nav-links a[href="ielts.html"] {
  color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600;
  background: linear-gradient(135deg, #6D28D9, #8B5CF6);
  box-shadow: 0 3px 10px rgba(10, 35, 80,0.14);
  transition: transform .16s, box-shadow .2s, filter .2s;
}
.top-nav-links a[href="ielts.html"]:hover {
  color: #fff; transform: translateY(-1px); filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(10, 35, 80,0.22);
}
.top-nav-links a[href="ielts.html"].is-active {
  color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 0 4px currentColor;
}

/* Nav pill colour for Academic Programs (teal — distinct from RN green / NCLEX purple) */
.top-nav-links a[href="academic.html"] {
  color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600;
  background: linear-gradient(135deg, #0E7490, #16A6B6);
  box-shadow: 0 3px 10px rgba(10, 35, 80,0.14);
  transition: transform .16s, box-shadow .2s, filter .2s;
}
.top-nav-links a[href="academic.html"]:hover {
  color: #fff; transform: translateY(-1px); filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(10, 35, 80,0.22);
}
.top-nav-links a[href="academic.html"].is-active {
  color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 0 4px currentColor;
}

/* Page hero strip */
.jobs-hero {
  padding: 64px 24px 56px;
  background:
    radial-gradient(ellipse 55% 70% at 90% 10%, rgba(217,162,74,0.25), transparent 60%),
    radial-gradient(ellipse 55% 70% at 5% 90%, rgba(42,167,199,0.22), transparent 60%),
    linear-gradient(135deg, #07193F 0%, var(--primary) 55%, #1A4A9E 100%);
  color: #E8F0F4;
}
.jobs-hero-inner { max-width: 1152px; margin: 0 auto; }
.jobs-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 12px; }
.jobs-hero-lead { color: #C9DCE5; font-size: 1.05rem; line-height: 1.65; max-width: 640px; }

/* Toolbar */
.jobs-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-bottom: 14px;
}
.jobs-search {
  flex: 1 1 260px; max-width: 420px;
  font: inherit; font-size: 0.95rem; color: var(--text);
  padding: 11px 16px; border: 1.5px solid var(--line-cool); border-radius: 999px;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.jobs-search:focus { outline: none; border-color: var(--primary-soft); box-shadow: 0 0 0 3px rgba(46, 99, 184,0.15); }
.jobs-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.jobs-chip {
  font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line-cool); background: var(--surface); color: var(--lead-ink);
  transition: all .18s;
}
.jobs-chip:hover { border-color: var(--primary-soft); color: var(--primary); }
.jobs-chip.is-on {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 4px 12px rgba(10, 35, 80,0.2);
}
.jobs-status { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }

/* Live listing cards */
.job-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.job-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-cool); border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.job-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.job-org {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--primary-soft);
}
.job-badge {
  font-size: 0.68rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.job-badge-soon { background: rgba(226,100,90,0.12); color: #B0443B; border: 1px solid rgba(226,100,90,0.35); }
.job-title { font-size: 1.02rem; line-height: 1.4; color: var(--primary); margin: 0; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.82rem; color: var(--lead-ink); }
.job-via { color: var(--text-muted); }
.job-apply { margin-top: auto; justify-content: center; font-size: 0.88rem; padding: 11px 18px; }

/* Skeleton shimmer while loading */
.job-skel {
  min-height: 170px; border: 1px solid var(--line-cool);
  background: linear-gradient(100deg, var(--surface) 40%, var(--bg-cool) 50%, var(--surface) 60%);
  background-size: 200% 100%;
  animation: job-shimmer 1.3s linear infinite;
}
@keyframes job-shimmer { to { background-position: -200% 0; } }

/* Empty / fallback note */
.jobs-empty {
  grid-column: 1 / -1; text-align: center; padding: 40px 24px;
  background: var(--surface); border: 1px dashed var(--line-cool); border-radius: var(--radius-lg);
  color: var(--lead-ink); font-size: 0.95rem; line-height: 1.6;
}
.jobs-empty span { display: block; font-size: 2rem; margin-bottom: 8px; }
.jobs-disclaimer { margin-top: 22px; font-size: 0.78rem; color: var(--text-muted); max-width: 720px; line-height: 1.6; }

/* Trusted sources hub */
.src-group { margin-bottom: 34px; }
.src-group-title { font-size: 1.05rem; margin-bottom: 14px; color: var(--primary); }
.src-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.src-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line-cool); border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.src-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.src-card-major { grid-column: span 2; border-left: 4px solid var(--accent); }
@media (max-width: 620px) { .src-card-major { grid-column: span 1; } }
.src-card-name { font-weight: 700; color: var(--primary); font-size: 0.98rem; }
.src-card-desc { font-size: 0.84rem; color: var(--lead-ink); line-height: 1.5; }
.src-card-go { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--accent-deep); }

/* Safety note */
.jobs-safety {
  margin-top: 10px; padding: 24px 26px;
  background: var(--surface);
  border: 1px solid rgba(226,100,90,0.3); border-left: 5px solid var(--coral);
  border-radius: var(--radius-md);
}
.jobs-safety h3 { margin-bottom: 10px; font-size: 1rem; }
.jobs-safety ul { margin: 0; padding-left: 20px; }
.jobs-safety li { font-size: 0.9rem; color: var(--text); line-height: 1.6; padding: 3px 0; }

/* ════════════════════════════════════════════════════════════════
   JOBS v2 — simple list rows + compact source rows
   ════════════════════════════════════════════════════════════════ */
.job-list {
  border: 1px solid var(--line-cool); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm);
}
.job-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-cool);
  color: var(--text); transition: background .15s;
}
.job-row:last-child { border-bottom: none; }
.job-row:hover { background: var(--bg-cool); }
.job-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.job-row-title { font-weight: 600; font-size: 1rem; color: var(--primary); line-height: 1.35; }
.job-row:hover .job-row-title { text-decoration: underline; }
.job-row-org { font-size: 0.82rem; color: var(--lead-ink); }
.job-row-org em { color: var(--text-muted); font-style: normal; }
.job-row-side {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap;
}
.job-row-deadline { font-size: 0.84rem; color: var(--lead-ink); }
.job-row-open { color: var(--text-muted); font-style: italic; }
.job-row-apply {
  font-weight: 700; font-size: 0.86rem; color: #fff;
  background: var(--primary); padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 3px 9px rgba(10, 35, 80,0.18);
}
.job-row:hover .job-row-apply { background: var(--primary-deep); }
@media (max-width: 640px) {
  .job-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .job-row-side { width: 100%; justify-content: space-between; }
}

/* Compact trusted-source rows */
.src-list {
  border: 1px solid var(--line-cool); border-radius: var(--radius-md);
  overflow: hidden; background: var(--surface);
}
.src-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-cool);
  color: var(--text); transition: background .15s;
}
.src-row:last-child { border-bottom: none; }
.src-row:hover { background: var(--bg-warm); }
.src-row-name { font-weight: 700; color: var(--primary); font-size: 0.94rem; flex-shrink: 0; min-width: 165px; }
.src-row-hint { font-size: 0.84rem; color: var(--lead-ink); flex: 1; }
.src-row-go { font-weight: 700; font-size: 0.84rem; color: var(--accent-deep); flex-shrink: 0; }
.src-row:hover .src-row-go { text-decoration: underline; }
.src-row-major { border-left: 4px solid var(--accent); }
@media (max-width: 560px) {
  .src-row { flex-wrap: wrap; gap: 4px 14px; }
  .src-row-name { min-width: 0; flex: 1 1 100%; }
  .src-row-hint { flex: 1 1 auto; }
}

/* Pinned Bdjobs live-search row inside the jobs list */
.job-row-pinned {
  background: linear-gradient(90deg, rgba(217,162,74,0.10), rgba(217,162,74,0.02));
  border-left: 4px solid var(--accent);
}
.job-row-pinned:hover { background: linear-gradient(90deg, rgba(217,162,74,0.16), rgba(217,162,74,0.05)); }
.job-badge-live {
  background: rgba(22,163,74,0.10); color: #15803D;
  border: 1px solid rgba(22,163,74,0.35);
  font-size: 0.68rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.jobs-empty-slim { margin-top: 12px; padding: 18px 22px; font-size: 0.88rem; }

/* ════════════════════════════════════════════════════════════════
   JOBS v3 — excel-style listings table
   ════════════════════════════════════════════════════════════════ */
.job-table-wrap {
  border: 1px solid var(--line-cool); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.job-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.job-table thead th {
  text-align: left; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: #fff; background: var(--primary);
  padding: 11px 14px; white-space: nowrap;
}
.job-table tbody td {
  padding: 12px 14px; border-top: 1px solid var(--line-cool);
  vertical-align: top; color: var(--text);
}
.job-table tbody tr:nth-child(even) { background: var(--bg-cool); }
.job-table tbody tr:hover { background: var(--primary-tint); }
.jt-sl { width: 44px; text-align: center; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.jt-post a { font-weight: 600; color: var(--primary); }
.jt-post a:hover { text-decoration: underline; }
.jt-org { white-space: nowrap; color: var(--lead-ink); }
.jt-date { white-space: nowrap; color: var(--lead-ink); font-variant-numeric: tabular-nums; }
.jt-link { text-align: right; }
.jt-apply {
  display: inline-block; font-weight: 700; font-size: 0.8rem; color: #fff;
  background: var(--primary); padding: 6px 13px; border-radius: 999px;
  white-space: nowrap;
}
.jt-apply:hover { background: var(--primary-deep); color: #fff; }
tr.jt-soon .jt-date:nth-child(5) { color: #B0443B; font-weight: 600; }
.jobs-count { color: var(--primary); font-size: 1rem; }

/* ════════════════════════════════════════════════════════════════
   JOBS — app-style source tiles (tap a site → its nurse search)
   ════════════════════════════════════════════════════════════════ */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.app-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 20px 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .2s, border-color .2s;
}
.app-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--tile, var(--accent));
}
.app-icon {
  width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tile, var(--primary));
  color: #fff; font-weight: 800; font-size: 1.25rem;
  font-family: 'Inter', sans-serif; letter-spacing: -0.5px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--tile, #14387A) 40%, transparent);
}
.app-name { font-weight: 700; font-size: 0.95rem; color: var(--text); line-height: 1.2; }
.app-sub {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3px;
  color: var(--tile, var(--primary-soft));
}
@media (max-width: 480px) {
  .app-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
  .app-icon { width: 46px; height: 46px; font-size: 1.05rem; border-radius: 13px; }
  .app-name { font-size: 0.84rem; }
}

/* 2x5 fixed grid for the 10 job-site tiles */
.app-grid-10 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 920px) { .app-grid-10 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .app-grid-10 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .app-grid-10 { grid-template-columns: repeat(2, 1fr); } }

/* Screen-reader-only helper (visually hidden, still announced) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* Jobs page now opens straight into the tile grid — give it breathing room below the nav */
#sources.block { padding-top: 56px; }

/* ----------- Hero: full logo on a white brand card ----------- */
.home-hero-logo-card {
  display: inline-block; background: #fff;
  border-radius: 22px; padding: 22px 30px 18px;
  margin: 0 auto 18px; position: relative; z-index: 2;
  border-top: 6px solid var(--accent);
  box-shadow: 0 18px 46px rgba(0,0,0,.34);
}
.home-hero-logo-card img { display: block; width: 270px; height: auto; }
@media (max-width: 600px) {
  .home-hero-logo-card { padding: 16px 22px 14px; border-radius: 18px; }
  .home-hero-logo-card img { width: 210px; }
}

/* ════════════════════════════════════════════════════════════════
   HERO — Emory-blue shifting background + Fraunces wordmark (option G)
   Appended last so it wins over earlier .home-hero rules.
   ════════════════════════════════════════════════════════════════ */
.home-hero {
  background: linear-gradient(150deg,
    #000E2A 0%, #03205A 32%, #0C46A0 52%, #03205A 72%, #00102E 100%);
  background-size: 260% 260%;
  animation: hero-blue-shift 30s ease-in-out infinite;
}
@keyframes hero-blue-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* High-contrast depth: bright royal bloom centre, warm gold halo behind the
   wordmark, deep near-black navy in the corners (vignette). */
.home-hero::before {
  background:
    radial-gradient(ellipse 58% 46% at 50% 30%, rgba(58, 118, 245, 0.42), transparent 62%),
    radial-gradient(ellipse 42% 34% at 50% 26%, rgba(224, 170, 80, 0.14), transparent 60%),
    radial-gradient(circle at 92% 8%, rgba(96, 150, 255, 0.20), transparent 42%),
    radial-gradient(circle at 8% 96%, rgba(0, 6, 26, 0.65), transparent 52%),
    radial-gradient(circle at 100% 100%, rgba(0, 6, 26, 0.55), transparent 50%);
}

/* Wordmark → Fraunces, rich amber "Pulse" + cream italic "For Nurses" */
.home-hero-title-pulse {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  background: linear-gradient(135deg, #F4D08A 0%, #D9A24A 52%, #B97E2E 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 6px 18px rgba(217, 162, 74, 0.35));
}
.home-hero-title-rest {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; font-style: italic;
  background: none;
  -webkit-text-fill-color: #F1E2C4; color: #F1E2C4;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero { animation: none; background-position: 0% 50%; }
}

/* ════════════════════════════════════════════════════════════════
   SINGLE-SCREEN HERO — fit title → 4-category grid + ECG heartbeat
   line within one viewport (appended last so it wins the cascade).
   ════════════════════════════════════════════════════════════════ */
.home-hero {
  padding: 32px 24px 66px;               /* was 90 / 130; bottom clears the ECG line */
  min-height: calc(100svh - 90px);       /* top nav ≈ 88px → hero fills the rest */
  display: flex; flex-direction: column; justify-content: center;
}
.home-hero-inner { width: 100%; }
.home-hero-title-standalone { margin: 0 auto 10px; }
.home-hero-title-pulse { font-size: clamp(2.8rem, 6.4vw, 4.6rem); }
.home-hero-title-rest { font-size: clamp(1.5rem, 3.4vw, 2.4rem); margin-top: 2px; }
.home-hero-badge { margin: 2px auto 10px; padding: 6px 18px; }
.home-hero-tagline { margin: 2px 0 6px; font-size: 1.06rem; }
.home-hero .lead { margin: 0 auto 15px; font-size: 1.02rem; max-width: 590px; line-height: 1.45; }
.home-hero .hero-ctas { margin-bottom: 0; }
.hero-groups { margin-top: 16px; gap: 14px 18px; }
.hero-group { gap: 6px; }
.hero-group-label { margin-bottom: 0; }
.home-hero .service-chip { padding: 6px 11px; font-size: 0.82rem; gap: 6px; }
/* mid-width safety: at narrower 5-column layouts, trim label size a touch
   so the longest label+badge combos never clip */
@media (min-width: 1081px) and (max-width: 1260px) {
  .home-hero .service-chip { font-size: 0.78rem; padding: 6px 10px; }
}
@media (max-width: 860px) {
  .home-hero { min-height: 0; padding: 34px 18px 64px; }
}

/* ════════════════════════════════════════════════════════════════
   NURSING CALCULATORS
   ════════════════════════════════════════════════════════════════ */
.calc-disclaimer {
  background: rgba(217,162,74,0.12); border: 1px solid rgba(217,162,74,0.45);
  border-radius: 12px; padding: 12px 16px; font-size: 0.9rem; color: var(--text);
  margin: 4px 0 28px; line-height: 1.5;
}
.calc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-card {
  background: var(--surface); border: 1px solid var(--line-cool);
  border-radius: var(--radius-lg); padding: 22px 22px 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.calc-title {
  font-family: 'Inter', sans-serif; font-size: 1.08rem; font-weight: 700;
  color: var(--primary); margin: 0 0 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.calc-unit {
  font-size: 0.72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: var(--primary-tint); color: var(--primary); padding: 3px 9px; border-radius: 999px;
}
.calc-formula { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 14px; font-style: italic; }
.calc-sub-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--lead-ink); margin: 0 0 8px; }
.calc-fields { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
.calc-fields-2 { grid-template-columns: 1fr 1fr; }
.calc-fields-3 { grid-template-columns: 1.2fr 1fr 1fr; }
@media (max-width: 420px) { .calc-fields-3 { grid-template-columns: 1fr; } }
.calc-field { display: flex; flex-direction: column; gap: 5px; }
.calc-field > span { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.calc-field input, .calc-field select {
  font-family: 'Inter', sans-serif; font-size: 0.98rem; color: var(--text);
  padding: 10px 12px; border: 1.5px solid var(--line-cool); border-radius: 10px;
  background: var(--bg); width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
.calc-field input:focus, .calc-field select:focus {
  outline: none; border-color: var(--primary-soft); background: #fff;
  box-shadow: 0 0 0 3px rgba(46,99,184,0.15);
}
.calc-result {
  margin-top: auto; background: var(--bg-cool); border-radius: 12px;
  padding: 14px 16px; font-size: 1.05rem; color: var(--text-soft);
  border-left: 4px solid var(--primary);
}
.calc-result b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.calc-result-sm b { font-size: 1.15rem; }
.calc-work { display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---- Calculators: left options panel + right stage ---- */
.calc-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.calc-nav { display: flex; flex-direction: column; gap: 7px; position: sticky; top: 82px; }
.calc-nav-item {
  text-align: left; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.92rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-cool);
  padding: 12px 14px; border-radius: 11px; cursor: pointer;
  display: flex; align-items: center; gap: 9px;
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.calc-nav-item:hover { border-color: var(--primary-soft); background: var(--primary-tint); transform: translateX(2px); }
.calc-nav-item.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff; border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(20,56,122,0.28);
}
.calc-stage { min-width: 0; }
.calc-panel { display: none; animation: calc-fade .22s ease-out; }
.calc-panel.is-active { display: block; }
@keyframes calc-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.calc-stage .calc-card { max-width: 560px; }

@media (max-width: 760px) {
  .calc-layout { grid-template-columns: 1fr; gap: 16px; }
  .calc-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; position: static; }
  .calc-nav-item { flex: 0 0 auto; padding: 9px 13px; font-size: 0.86rem; }
  .calc-nav-item:hover { transform: none; }
  .calc-stage .calc-card { max-width: none; }
}

/* ---- Simple on-screen calculator ---- */
.sc-display {
  background: var(--primary-deep); color: #fff;
  border-radius: 12px; padding: 18px 18px; margin-bottom: 14px;
  font-size: 2rem; font-weight: 700; text-align: right;
  font-variant-numeric: tabular-nums; min-height: 64px; overflow-x: auto;
  white-space: nowrap; line-height: 1.4;
}
.sc-keys {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  grid-template-areas:
    "c   back div mul"
    "n7  n8   n9  sub"
    "n4  n5   n6  add"
    "n1  n2   n3  eq"
    "n0  n0   dot eq";
}
.sc-key {
  font-family: 'Inter', sans-serif; font-size: 1.25rem; font-weight: 600;
  padding: 16px 0; border-radius: 12px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-cool);
  transition: background .12s, transform .08s;
}
.sc-key:hover { background: var(--bg-cool); }
.sc-key:active { transform: scale(0.96); }
.sc-op { color: var(--primary); font-weight: 800; background: var(--primary-tint); border-color: transparent; }
.sc-fn { color: var(--coral); font-weight: 700; }
.sc-eq { background: linear-gradient(135deg, var(--primary), var(--primary-soft)); color: #fff; border: none; font-weight: 800; }
.sc-eq:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--primary), var(--primary-soft)); }
.sc-card { max-width: 360px; }

/* ---- Calculators: fit a desktop screen without scrolling ---- */
@media (min-width: 761px) {
  .calc-page { padding-top: 26px; padding-bottom: 26px; }
  .calc-page .section-eyebrow { margin-bottom: 6px; }
  .calc-page .section-title { font-size: 1.7rem; margin-bottom: 6px; }
  .calc-page .section-title::after { margin-top: 8px; height: 3px; width: 52px; }
  .calc-page .section-lead { font-size: 0.92rem; margin-bottom: 14px; }
  .calc-page .calc-disclaimer { padding: 9px 14px; font-size: 0.82rem; margin: 0 0 16px; }
  .calc-page .calc-nav { gap: 5px; top: 74px; }
  .calc-page .calc-nav-item { padding: 8px 12px; font-size: 0.88rem; border-radius: 9px; }
  /* keep the tallest right-hand panel (Simple Calculator) compact */
  .calc-page .sc-display { min-height: 54px; padding: 12px 16px; font-size: 1.7rem; margin-bottom: 10px; }
  .calc-page .sc-keys { gap: 7px; }
  .calc-page .sc-key { padding: 12px 0; font-size: 1.15rem; }
  .calc-page .calc-card { padding: 18px 20px 16px; }
  .calc-page .calc-fields { margin-bottom: 12px; }
}

/* ---- Calculators: stronger single-screen fit (override base section padding) ---- */
@media (min-width: 761px) {
  .calc-page.block { padding-top: 22px; padding-bottom: 22px; }
  .calc-page .section-title { font-size: 1.5rem; margin-bottom: 4px; }
  .calc-page .section-title::after { display: none; }
  .calc-page .section-eyebrow { margin-bottom: 4px; }
  .calc-page .section-lead { margin-bottom: 12px; }
  .calc-page .calc-disclaimer { margin-bottom: 14px; }
  .calc-page .calc-nav { gap: 4px; }
  .calc-page .calc-nav-item { padding: 6px 12px; font-size: 0.86rem; }
}

/* ---- Calculators: slim footer + final fit ---- */
@media (min-width: 761px) {
  .footer-slim { padding-top: 16px; }
  .footer-slim::before { display: none; }
  .footer-slim .footer-inner { padding: 0 24px 16px; }
  .footer-slim .footer-bottom { border-top: none; padding-top: 0; }
  .calc-page .calc-nav-item { padding: 5px 12px; }
  .calc-page .sc-key { padding: 9px 0; font-size: 1.1rem; }
  .calc-page .sc-display { min-height: 48px; padding: 10px 16px; font-size: 1.55rem; }
}

/* ---- Calculators: final footer slim (full padding override) ---- */
.footer-slim { padding: 14px 0; }
.footer-slim .footer-inner { padding: 0 24px; }

/* ---- Calculators: final keypad shave for single-screen fit ---- */
@media (min-width: 761px) {
  .calc-page .sc-key { padding: 7px 0; }
  .calc-page .sc-display { min-height: 44px; }
  .calc-page .calc-card { padding: 16px 18px 14px; }
}

/* ---- Calculators: final nav compaction ---- */
@media (min-width: 761px) {
  .calc-page .calc-nav { gap: 3px; }
  .calc-page .calc-nav-item { padding: 4px 11px; font-size: 0.83rem; }
}

/* ---- Calculators: zero out footer-bottom residual padding ---- */
.footer-slim .footer-bottom { padding: 0; }

/* ---- Calculators: balanced, polished desktop layout ---- */
@media (min-width: 761px) {
  .calc-layout { max-width: 880px; margin: 0 auto; grid-template-columns: 244px 1fr; gap: 28px; }
  .calc-stage { display: flex; justify-content: center; }
  .calc-stage .calc-card { width: 100%; max-width: 470px; margin: 0; }
  .calc-stage .sc-card { max-width: 400px; }
  /* squarer, app-like keypad */
  .calc-page .sc-display { min-height: 60px; font-size: 1.8rem; padding: 14px 18px; margin-bottom: 12px; }
  .calc-page .sc-keys { gap: 9px; }
  .calc-page .sc-key { padding: 14px 0; font-size: 1.2rem; }
}

/* ---- Calculators: center the nav+card as one balanced unit ---- */
@media (min-width: 761px) {
  .calc-layout { grid-template-columns: 232px 468px; gap: 28px; justify-content: center; max-width: none; margin: 0; }
  .calc-stage { display: flex; justify-content: center; }
  .calc-stage .calc-card { width: 100%; max-width: 468px; }
  .calc-stage .sc-card { max-width: 400px; }
}

/* ---- Calculators: fix card width within centered stage column ---- */
@media (min-width: 761px) {
  .calc-stage { display: block; }
  .calc-stage .calc-panel { width: 100%; }
  .calc-stage .calc-card { width: 100%; max-width: 468px; margin: 0 auto; }
  .calc-stage .sc-card { max-width: 400px; }
}

/* ---- Calculators: balance keypad height vs single-screen fit ---- */
@media (min-width: 761px) {
  .calc-page .sc-key { padding: 11px 0; }
  .calc-page .sc-display { min-height: 54px; font-size: 1.7rem; }
}

/* ---- Sticky footer: keep footer at the bottom on short pages ---- */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main, main#main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }

/* ---- BMI: sex toggle + WHO category scale ---- */
.bmi-seg { display: flex; gap: 8px; margin-bottom: 12px; }
.bmi-toggle {
  flex: 1; padding: 9px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--line-cool); background: var(--surface);
  font-weight: 600; font-size: 0.92rem; color: var(--text); transition: background .15s, color .15s, border-color .15s;
}
.bmi-toggle.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.bmi-scale { margin-top: 14px; }
.bmi-track { position: relative; padding-top: 4px; }
.bmi-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; }
.bmi-bar > span { display: block; height: 100%; }
.bmi-seg-u { width: 14%; background: #3F86E0; }
.bmi-seg-n { width: 26%; background: #16A34A; }
.bmi-seg-o { width: 20%; background: #E0A82E; }
.bmi-seg-ob { width: 40%; background: #D9534F; }
.bmi-marker {
  position: absolute; top: 0; width: 4px; height: 22px;
  background: var(--primary-deep); border: 2px solid #fff; border-radius: 3px;
  transform: translateX(-50%); box-shadow: 0 1px 5px rgba(0,0,0,.35); transition: left .25s ease;
}
.bmi-legend { display: flex; margin-top: 6px; font-size: 0.66rem; color: var(--text-muted); line-height: 1.25; }
.bmi-legend span { text-align: center; }
.bmi-legend span:nth-child(1) { flex: 0 0 14%; }
.bmi-legend span:nth-child(2) { flex: 0 0 26%; }
.bmi-legend span:nth-child(3) { flex: 0 0 20%; }
.bmi-legend span:nth-child(4) { flex: 0 0 40%; }

/* Ensure [hidden] wins over .calc-fields grid display */
.calc-fields[hidden] { display: none !important; }

/* ---- Quick Reference page: tables ---- */
/* Reference uses a clean 2-column layout (nav + table). The higher-specificity
   .calc-page.ref-page selector overrides the calculators' 3-column grid so the
   Reference page doesn't inherit a phantom empty right column. */
@media (min-width: 761px) {
  .calc-page.ref-page .calc-layout {
    grid-template-columns: 248px minmax(0, 624px);
    grid-template-areas: "nav stage";
    gap: 24px; justify-content: center; max-width: none; margin: 0;
  }
  .calc-page.ref-page .calc-nav { grid-area: nav; }
  .ref-page .calc-stage .calc-card { max-width: 624px; }
}
.ref-card { overflow-x: auto; }
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 4px; }
.ref-table td, .ref-table th { padding: 7px 10px; border-bottom: 1px solid var(--line-cool); text-align: left; }
.ref-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--lead-ink); white-space: nowrap; }
.ref-table .ref-group td {
  background: var(--primary-tint); color: var(--primary); font-weight: 700;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.5px; text-align: left;
}
.ref-table thead th { background: var(--primary); color: #fff; font-size: 0.78rem; white-space: nowrap; }
.ref-table-vitals td, .ref-table-vitals th { text-align: center; }
.ref-table-vitals td:first-child, .ref-table-vitals th:first-child { text-align: left; }

/* ===== Calculators / Reference: prettier left panel + bottom disclaimer ===== */
.calc-page .calc-nav {
  background: linear-gradient(180deg, #ffffff, var(--bg-cool));
  border: 1px solid var(--line-cool);
  border-radius: 18px;
  padding: 9px;
  gap: 4px;
  box-shadow: 0 12px 30px rgba(20,56,122,0.09);
}
.calc-page .calc-nav-item {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 8px 13px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  gap: 10px;
  transition: background .15s, color .15s, box-shadow .15s, transform .12s;
}
.calc-page .calc-nav-item:hover {
  background: var(--primary-tint);
  border-color: transparent;
  color: var(--primary);
  transform: translateX(2px);
}
.calc-page .calc-nav-item.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 7px 18px rgba(20,56,122,0.32);
  transform: none;
}
/* cohesive, lifted calculator card */
.calc-page .calc-stage .calc-card {
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(20,56,122,0.10);
}
.ref-page .calc-stage .ref-card { box-shadow: 0 16px 38px rgba(20,56,122,0.10); }

/* Quick Reference — grouped, scrollable left nav + coloured section titles */
.ref-page .calc-nav { max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: thin; }
.ref-page .calc-nav-item { white-space: nowrap; }
.calc-nav-cap {
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.9px; text-transform: uppercase;
  color: var(--text-soft); opacity: 0.62; padding: 9px 12px 3px; user-select: none;
}
.calc-nav-cap:first-child { padding-top: 3px; }
.ref-card .ref-h {
  border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 4px;
}
.ref-h-red    { color: #B3123E; border-bottom-color: #B3123E !important; }
.ref-h-blue   { color: #14387A; border-bottom-color: #14387A !important; }
.ref-h-teal   { color: #0E7490; border-bottom-color: #0E7490 !important; }
.ref-h-amber  { color: #8A5A12; border-bottom-color: #C99A50 !important; }
.ref-h-purple { color: #6D28D9; border-bottom-color: #6D28D9 !important; }
@media (max-width: 760px) {
  .ref-page .calc-nav { max-height: none; overflow: visible; }
  .calc-nav-cap { flex: 0 0 100%; padding: 6px 4px 2px; }
}

/* bottom disclaimer — centered under the content, education framing */
.calc-disclaimer-foot {
  max-width: 728px;
  margin: 26px auto 6px;
  background: rgba(217,162,74,0.10);
  border: 1px solid rgba(217,162,74,0.40);
}
.calc-page .calc-disclaimer-foot { margin: 24px auto 6px; }
@media (max-width: 760px) {
  .calc-disclaimer-foot { margin: 20px 0 4px; }
}

/* =====================================================================
   Diploma in Nursing — academic program portal
   ===================================================================== */
.dip-page { max-width: 980px; }
.dip-muted { color: var(--text-muted); }

/* --- breadcrumb --- */
.dip-crumb { font-size: 0.85rem; color: var(--text-soft); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dip-crumb a { color: var(--primary-soft); text-decoration: none; font-weight: 600; }
.dip-crumb a:hover { text-decoration: underline; }
.dip-crumb-sep { color: var(--text-muted); }
.dip-crumb [aria-current] { color: var(--text); font-weight: 600; }

/* --- portal: year folders + subject grid --- */
.dip-year { margin-top: 26px; }
.dip-year-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line-cool); }
.dip-folder { font-size: 1.3rem; }
.dip-year-head h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--primary); margin: 0; }
.dip-year-meta { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-left: auto; }

.dip-subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.dip-subj-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-lg);
  padding: 18px 18px 16px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text);
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.dip-subj-card.is-open:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-soft); }
.dip-subj-card.is-soon { opacity: .72; }
.dip-subj-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dip-code { font-size: 0.72rem; font-weight: 800; letter-spacing: .5px; color: var(--primary); background: var(--primary-tint); padding: 3px 9px; border-radius: 999px; }
.dip-subj-card h3 { font-size: 1.06rem; margin: 2px 0 0; color: var(--text); line-height: 1.25; }
.dip-subj-meta { font-size: 0.82rem; color: var(--text-soft); margin: 0; }
.dip-arrow { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 0.88rem; color: var(--primary-soft); }
.dip-subj-card.is-soon .dip-arrow { color: var(--text-muted); }

.dip-badge { font-size: 0.68rem; font-weight: 800; letter-spacing: .4px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.dip-badge-on { color: #1B6B45; background: rgba(127,182,158,.24); }
.dip-badge-soon { color: var(--text-muted); background: var(--bg-cool); }

/* --- subject: progress + topic list --- */
.dip-progress-bar { height: 8px; border-radius: 999px; background: var(--bg-cool); overflow: hidden; margin: 6px 0 4px; }
.dip-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-soft)); border-radius: 999px; transition: width .3s; }
.dip-progress-label { font-size: 0.82rem; color: var(--text-soft); margin: 0 0 18px; font-weight: 600; }

.dip-unit-head { font-size: 0.74rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--accent-deep); margin: 18px 0 8px; }
.dip-topic-list { display: flex; flex-direction: column; gap: 8px; }
.dip-topic-row {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-md);
  padding: 12px 16px; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.dip-topic-row:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); border-color: var(--primary-soft); }
.dip-topic-row.is-soon { opacity: .6; }
.dip-topic-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.dip-topic-text { flex: 1 1 auto; min-width: 0; }
.dip-topic-text h3 { font-size: 0.98rem; margin: 0; color: var(--text); line-height: 1.3; }
.dip-topic-text p { font-size: 0.82rem; color: var(--text-soft); margin: 2px 0 0; }
.dip-topic-meta { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }
.dip-pill { font-size: 0.7rem; font-weight: 700; color: var(--text-soft); background: var(--bg-cool); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.dip-pill-done { color: #1B6B45; background: rgba(127,182,158,.22); }
.dip-pill-soon { color: var(--text-muted); }

/* --- topic viewer: tabs --- */
.dip-topic-title { font-size: 1.7rem; }
.dip-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; border-bottom: 2px solid var(--line-cool); padding-bottom: 0; }
.dip-tab {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--text-soft);
  background: transparent; border: none; border-bottom: 3px solid transparent; cursor: pointer;
  padding: 10px 14px; margin-bottom: -2px; border-radius: 8px 8px 0 0; transition: color .15s, border-color .15s, background .15s;
}
.dip-tab:hover { color: var(--primary); background: var(--primary-tint); }
.dip-tab.is-active { color: var(--primary); border-bottom-color: var(--accent); }
.dip-panel { display: none; animation: dip-fade .2s ease-out; }
.dip-panel.is-active { display: block; }
@keyframes dip-fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* --- notes (book) --- */
.dip-notes { max-width: 720px; }
.dip-notes h3 { font-family: 'Inter', sans-serif; font-size: 1.08rem; color: var(--primary); margin: 20px 0 6px; }
.dip-notes h3:first-child { margin-top: 0; }
.dip-notes p { font-size: 1rem; line-height: 1.72; color: var(--text); margin: 0 0 10px; }
.dip-notes ul { margin: 0 0 12px; padding-left: 22px; }
.dip-notes li { font-size: 0.98rem; line-height: 1.6; color: var(--text); margin-bottom: 6px; }

/* --- video --- */
.dip-video { position: relative; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.dip-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dip-video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.dip-video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s, transform .3s; }
.dip-video-play:hover img { opacity: 1; transform: scale(1.03); }
.dip-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 70px; height: 70px; border-radius: 50%; background: rgba(217,162,74,.95); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); padding-left: 5px; }
.dip-video-tutor { font-size: 0.85rem; color: var(--text-soft); margin: 8px 0 0; }
.dip-video-soon { max-width: 720px; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; background: linear-gradient(150deg, var(--primary-deep), var(--primary)); color: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-md); }
.dip-video-soon-icon { font-size: 2.4rem; }
.dip-video-soon h3 { margin: 4px 0 0; font-size: 1.2rem; color: #fff; }
.dip-video-soon p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,.85); max-width: 440px; }
.dip-video-soon strong { color: #fff; }

/* --- self-check quiz --- */
.dip-quiz { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.dip-q { background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-md); padding: 16px 18px; transition: border-color .2s; }
.dip-q.is-correct { border-color: var(--mint); background: rgba(127,182,158,.08); }
.dip-q.is-wrong { border-color: var(--coral); background: rgba(184,92,92,.06); }
.dip-q-stem { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0 0 12px; line-height: 1.5; }
.dip-q-num { display: inline-block; font-size: 0.72rem; font-weight: 800; color: var(--primary); background: var(--primary-tint); padding: 2px 8px; border-radius: 999px; margin-right: 8px; }
.dip-options { display: flex; flex-direction: column; gap: 8px; }
.dip-option {
  display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  background: var(--bg-cool); border: 1.5px solid transparent; border-radius: 10px; padding: 10px 12px;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--text); transition: background .14s, border-color .14s;
}
.dip-option:hover:not(:disabled) { background: var(--primary-tint); }
.dip-option:disabled { cursor: default; }
.dip-option.is-correct { background: rgba(127,182,158,.22); border-color: var(--mint); }
.dip-option.is-wrong { background: rgba(184,92,92,.14); border-color: var(--coral); }
.dip-opt-letter { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-cool); font-weight: 800; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.dip-opt-text { flex: 1; }
.dip-fill { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dip-fill-input { flex: 1 1 200px; font-family: 'Inter', sans-serif; font-size: 0.98rem; padding: 10px 12px; border: 1.5px solid var(--line-cool); border-radius: 10px; background: var(--bg); color: var(--text); }
.dip-fill-input:focus { outline: none; border-color: var(--primary-soft); box-shadow: 0 0 0 3px rgba(46,99,184,.15); }
.dip-fill-input.is-correct { border-color: var(--mint); background: rgba(127,182,158,.14); }
.dip-fill-input.is-wrong { border-color: var(--coral); background: rgba(184,92,92,.1); }
.dip-fill-ans { font-size: 0.85rem; font-weight: 700; color: var(--accent-deep); }
.dip-rationale { margin-top: 12px; font-size: 0.9rem; line-height: 1.55; color: var(--text-soft); background: var(--bg-cool); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 12px; }
.dip-rationale strong { color: var(--text); }
.dip-quiz-foot { min-height: 4px; }
.dip-score { display: inline-block; font-weight: 800; color: #1B6B45; background: rgba(127,182,158,.22); padding: 8px 16px; border-radius: 999px; }

/* --- exam prep --- */
.dip-exam { max-width: 720px; }
.dip-exam-lead { font-size: 0.92rem; color: var(--text-soft); margin: 0 0 10px; }
.dip-exam ol { padding-left: 22px; }
.dip-exam li { font-size: 1rem; line-height: 1.6; color: var(--text); margin-bottom: 10px; }

/* --- feedback --- */
.dip-feedback { max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.dip-feedback p { font-size: 0.95rem; color: var(--text-soft); margin: 0; }
.dip-fb-rate { display: flex; gap: 8px; flex-wrap: wrap; }
.dip-fb-face { cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.88rem; color: var(--text); background: var(--surface); border: 1.5px solid var(--line-cool); border-radius: 999px; padding: 8px 14px; transition: background .14s, border-color .14s, color .14s; }
.dip-fb-face:hover { background: var(--primary-tint); }
.dip-fb-face.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.dip-fb-msg, .dip-fb-contact { font-family: 'Inter', sans-serif; font-size: 0.96rem; padding: 10px 12px; border: 1.5px solid var(--line-cool); border-radius: 10px; background: var(--bg); color: var(--text); width: 100%; }
.dip-fb-msg:focus, .dip-fb-contact:focus { outline: none; border-color: var(--primary-soft); box-shadow: 0 0 0 3px rgba(46,99,184,.15); }
.dip-fb-send { align-self: flex-start; }
.dip-fb-done { color: #1B6B45; font-weight: 700; }

/* --- prev / next --- */
.dip-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.dip-nav-btn { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-md); padding: 12px 16px; transition: transform .12s, box-shadow .12s, border-color .12s; }
.dip-nav-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--primary-soft); }
.dip-nav-btn.next { text-align: right; }
.dip-nav-btn.is-disabled { opacity: .4; pointer-events: none; }
.dip-nav-dir { font-size: 0.74rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--primary-soft); }
.dip-nav-title { font-size: 0.92rem; font-weight: 600; color: var(--text); }

/* --- coming-soon / not-found panels --- */
.dip-soon-panel { text-align: center; max-width: 520px; margin: 30px auto; padding: 32px 24px; background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.dip-soon-emoji { font-size: 2.6rem; }
.dip-soon-panel h2 { font-size: 1.3rem; color: var(--primary); margin: 8px 0 6px; }
.dip-soon-panel p { color: var(--text-soft); margin: 0 0 16px; }

@media (max-width: 600px) {
  .dip-subject-grid { grid-template-columns: 1fr; }
  .dip-prevnext { grid-template-columns: 1fr; }
  .dip-tabs { gap: 2px; }
  .dip-tab { padding: 9px 10px; font-size: 0.84rem; }
  .dip-topic-title { font-size: 1.4rem; }
  .dip-year-meta { margin-left: 0; flex-basis: 100%; }
}

/* --- Academic: program-section cards --- */
.dip-program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 8px; }
.dip-prog-card { position: relative; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-lg);
  padding: 22px 20px 18px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text);
  transition: transform .14s, box-shadow .14s, border-color .14s; }
.dip-prog-card.is-open:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-soft); }
.dip-prog-card.is-soon { opacity: .72; }
.dip-prog-band { position: absolute; top: 0; left: 0; right: 0; height: 6px; }
.dip-prog-icon { font-size: 2rem; margin-top: 6px; }
.dip-prog-auth { font-size: 0.72rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--text-muted); }
.dip-prog-card h3 { font-size: 1.18rem; margin: 2px 0 0; color: var(--primary); line-height: 1.25; }
.dip-prog-meta { font-size: 0.86rem; color: var(--text-soft); margin: 0; }

/* --- Academic: figures --- */
.dip-figure { margin: 16px 0 18px; }
.dip-fig-svg { background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-sm); overflow-x: auto; }
.dip-fig-svg svg { display: block; width: 100%; height: auto; max-width: 640px; margin: 0 auto; }
.dip-fig-img { display: block; max-width: 100%; border: 1px solid var(--line-cool); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.dip-fig-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  background: repeating-linear-gradient(135deg, var(--bg-cool), var(--bg-cool) 12px, #fff 12px, #fff 24px);
  border: 1.5px dashed var(--line-cool); border-radius: var(--radius-md); padding: 26px 18px; color: var(--text-muted); font-weight: 700; }
.dip-fig-slot small { font-weight: 500; font-size: 0.8rem; }
.dip-figcap { font-size: 0.82rem; color: var(--text-soft); margin-top: 7px; font-style: italic; text-align: center; }

/* --- Academic: references --- */
.dip-refs { max-width: 720px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line-cool); }
.dip-refs h4 { font-size: 0.78rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 8px; }
.dip-refs ol { margin: 0; padding-left: 20px; }
.dip-refs li { font-size: 0.84rem; line-height: 1.5; color: var(--text-soft); margin-bottom: 5px; }

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

/* ============================================================
   Personal Dashboard (dashboard.html)
   ============================================================ */
.dash-page { max-width: 1040px; margin: 0 auto; }
.dash-head { margin-bottom: 8px; }
.dash-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 0.92rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; letter-spacing: .01em; }
.dash-head .section-title { margin: 0; }
.dash-sub { color: var(--lead-ink); font-size: 1rem; margin-top: 6px; }
.dash-link-btn { background: none; border: none; color: var(--primary-soft, #2E63B8); font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; font-size: inherit; }
/* Every dashboard section is a clean white card; the pieces inside sit flat
   on the page-tint background so the eye reads one card = one purpose. */
.dash-section { margin-top: 14px; background: var(--surface); border: 1px solid var(--line-cool); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.dash-h2 { font-size: 1.02rem; margin-bottom: 8px; color: var(--text); }
.dash-note { color: var(--lead-ink); font-size: 0.86rem; margin-bottom: 12px; line-height: 1.5; }
.dash-empty { color: var(--text-muted); font-size: 0.92rem; padding: 16px; background: var(--bg); border: 1px dashed var(--line-cool); border-radius: 12px; }

/* interests — slim toggle rows */
.dash-interests { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.dash-int { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px; cursor: pointer;
  background: var(--bg); border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.dash-int:hover { border-color: var(--line-cool); }
.dash-int input { position: absolute; opacity: 0; pointer-events: none; }
.dash-int-ic { font-size: 1.02rem; }
.dash-int-name { font-weight: 600; font-size: 0.87rem; color: var(--text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-int-tick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-cool); color: transparent; display: flex; align-items: center; justify-content: center; font-size: 0.64rem; font-weight: 800; flex-shrink: 0; }
.dash-int.is-on { border-color: var(--pc, #2E63B8); background: #fff; }
.dash-int.is-on .dash-int-tick { background: var(--pc, #2E63B8); border-color: var(--pc, #2E63B8); color: #fff; }

/* continue cards — flat panels inside the section card */
.dash-cont-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dash-cont-card { background: var(--bg); border: 1px solid var(--line-cool); border-top: 3px solid var(--pc, #2E63B8); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.dash-cont-top { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.dash-cont-ic { font-size: 1.3rem; line-height: 1.25; }
.dash-cont-top h3 { font-size: 0.97rem; margin: 0 0 2px; color: var(--text); }
.dash-cont-metric { font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; }
.dash-bar { height: 8px; border-radius: 999px; background: rgba(0,0,0,.08); overflow: hidden; }
.dash-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--pc, #2E63B8); }
.dash-cont-lines { margin: 10px 0 12px; }
.dash-cont-line { font-size: 0.85rem; color: var(--text); margin: 4px 0; line-height: 1.45; }
.dash-cont-line span { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--pc, #2E63B8); border-radius: 5px; padding: 1px 6px; margin-right: 6px; vertical-align: middle; }
.dash-cont-line em { color: var(--text-muted); font-style: normal; font-size: 0.79rem; }
.dash-cont-prev { color: var(--text-muted); }
.dash-cont-prev span { background: var(--text-muted); }
.dash-cont-btn { margin-top: auto; align-self: flex-start; padding: 8px 18px; font-size: 0.88rem; }

/* stats — quiet tinted tiles */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 0; }
.dash-stat { background: var(--bg); border: 1px solid var(--line-cool); border-radius: 12px; padding: 13px 10px; text-align: center; }
.dash-stat-num { display: block; font-family: 'Fraunces', serif; font-size: 1.55rem; font-weight: 700; color: var(--primary, #14387A); line-height: 1.15; }
.dash-stat-label { display: block; font-size: 0.74rem; color: var(--text-muted); margin-top: 3px; }

/* scoreboard rows */
.dash-scorelist { display: flex; flex-direction: column; gap: 11px; }
.dash-scorerow { display: grid; grid-template-columns: minmax(140px, 1.2fr) 3fr auto; align-items: center; gap: 12px; }
.dash-scorerow-name { font-size: 0.87rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-scorerow-val { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
@media (max-width: 560px) { .dash-scorerow { grid-template-columns: 1fr; gap: 5px; } .dash-scorerow-val { text-align: right; } }

/* chart — lives inside the section card, no double frame */
.dash-chart-wrap { background: transparent; border: none; border-radius: 0; padding: 4px 0 0; box-shadow: none; }
.dash-chart { width: 100%; height: auto; display: block; }

/* feedback */
.dash-feedback { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.dash-fb-msg, .dash-fb-contact { font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--text); padding: 11px 14px; border: 1.5px solid var(--line-cool); border-radius: 10px; background: var(--bg); width: 100%; }
.dash-fb-msg:focus, .dash-fb-contact:focus { outline: none; border-color: var(--primary-soft, #2E63B8); background: #fff; box-shadow: 0 0 0 3px rgba(46,99,184,.15); }
.dash-fb-msg { resize: vertical; }
.dash-fb-send { align-self: flex-start; }
.dash-fb-done { color: #15803D; font-weight: 600; font-size: 0.9rem; }

/* Dashboard — single-window layout.
   Row 1: [My programs + Explore | Scoreboard + Continue]
   Row 2: [Your progress | Performance trend]
   Row 3: Feedback (full width). */
.dash-top { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 16px; }
.dash-metrics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: start; margin-top: 14px; }
.dash-top .dash-section, .dash-metrics .dash-section { margin-top: 0; }
.dash-main > .dash-section + .dash-section,
.dash-programs > .dash-section + .dash-section { margin-top: 14px; }
@media (max-width: 900px) {
  .dash-top { grid-template-columns: 1fr; gap: 14px; }
  .dash-metrics { grid-template-columns: 1fr; gap: 14px; }
}
/* programs stack compactly in the left column */
.dash-programs .dash-interests { grid-template-columns: 1fr; gap: 6px; }
/* stat tiles: 4 across the main column (2×2 on small screens) */
.dash-main .dash-stats { grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 620px) { .dash-main .dash-stats { grid-template-columns: repeat(2, 1fr); } }
/* continue cards fit the main panel (2-up when there's room) */
.dash-main .dash-cont-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
/* Explore & tools — tidy single-column list in the rail */
.dash-tools { display: grid; grid-template-columns: 1fr; gap: 5px; }
.dash-tool { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 9px; background: var(--bg); border: 1.5px solid transparent; text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.85rem; white-space: nowrap; transition: border-color .2s, background .2s; }
.dash-tool:hover { border-color: var(--primary-soft, #2E63B8); background: #fff; }
.dash-tool-ic { font-size: 1.02rem; }

/* ════════════════════════════════════════════════════════════════
   RESOURCE HUB (resources.html)
   ════════════════════════════════════════════════════════════════ */
.res-page { max-width: 1080px; margin: 0 auto; }
.res-toolbar { margin: 22px 0 12px; }
.res-search {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 16px;
  border: 1.5px solid var(--line-cool); border-radius: 12px; background: var(--surface); color: var(--text);
}
.res-search:focus { outline: none; border-color: var(--primary-soft, #2E63B8); box-shadow: 0 0 0 3px rgba(46,99,184,.15); }
.res-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.res-chip {
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line-cool);
  background: var(--surface); color: var(--text-soft); transition: all .15s;
}
.res-chip:hover { border-color: var(--primary-soft, #2E63B8); color: var(--primary); }
.res-chip.is-active { background: var(--primary, #14387A); border-color: var(--primary, #14387A); color: #fff; }
.res-section { margin-bottom: 34px; }
.res-h2 { font-size: 1.25rem; margin-bottom: 4px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.res-count { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); background: var(--bg); border: 1px solid var(--line-cool); border-radius: 999px; padding: 1px 9px; }
.res-blurb { color: var(--lead-ink); font-size: 0.92rem; margin-bottom: 14px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.res-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-cool); box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .2s, border-color .2s; text-decoration: none;
}
.res-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-soft, #2E63B8); }
.res-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.res-card-name { font-weight: 700; font-size: 1rem; color: var(--text); flex: 1; min-width: 0; }
.res-card-desc { font-size: 0.88rem; color: var(--lead-ink); line-height: 1.5; }
.res-card-host { font-size: 0.78rem; color: var(--primary, #14387A); font-weight: 600; margin-top: 2px; }
.res-tag { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 5px; }
.res-tag-free { background: #E7F6EC; color: #15803D; }
.res-tag-official { background: #E8EEFA; color: #1E3A8A; }
.res-tag-bd { background: #FCE8E6; color: #B4231C; }
.res-tag-global { background: #F1ECFB; color: #6D28D9; }
.res-tag-subscription { background: #FDF1DD; color: #9A6B12; }
.res-empty { color: var(--text-muted); font-size: 0.95rem; padding: 26px; text-align: center; background: var(--surface); border: 1px dashed var(--line-cool); border-radius: 12px; }
@media (max-width: 560px) { .res-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════
   IELTS (ielts.html hub + ielts-test.html player)
   ════════════════════════════════════════════════════════════════ */
.ielts-page { max-width: 1000px; margin: 0 auto; }
.ielts-empty { color: var(--text-muted); padding: 24px; text-align: center; }
.ielts-h2 { font-size: 1.3rem; margin: 6px 0 8px; color: var(--text); }
.ielts-about > p { color: var(--lead-ink); line-height: 1.6; margin-bottom: 12px; }
.ielts-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.ielts-type { background: var(--surface); border: 1px solid var(--line-cool); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.ielts-type h4 { font-size: 1rem; color: var(--primary, #14387A); margin-bottom: 4px; }
.ielts-type p { font-size: 0.88rem; color: var(--lead-ink); line-height: 1.5; }
.ielts-modline { color: var(--lead-ink); }
.ielts-mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 24px 0; }
.ielts-mod-card { background: var(--surface); border: 1px solid var(--line-cool); border-top: 3px solid var(--mc, #14387A); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); align-self: start; }
.ielts-mod-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; cursor: pointer; border-radius: 10px; }
.ielts-mod-top:focus-visible { outline: 2px solid var(--mc, #14387A); outline-offset: 3px; }
.ielts-mod-ic { font-size: 1.8rem; flex: none; }
.ielts-mod-h { flex: 1 1 auto; min-width: 0; }
.ielts-mod-top h3 { font-size: 1.15rem; color: var(--text); margin: 0; }
.ielts-mod-meta { display: block; font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.ielts-chev { flex: none; font-size: 1.05rem; color: var(--mc, #14387A); transition: transform .18s ease; }
.ielts-mod-card:not(.is-collapsed) .ielts-chev { transform: rotate(180deg); }
.ielts-mod-count { font-size: 0.82rem; color: var(--text-soft, #475569); margin: 0 0 10px; line-height: 1.4; }
.ielts-test-list { display: flex; flex-direction: column; gap: 8px; }
.ielts-test-preview, .ielts-test-rest { display: flex; flex-direction: column; gap: 8px; }
.ielts-mod-card.is-collapsed .ielts-test-rest { display: none; }
.ielts-more { align-self: flex-start; margin-top: 2px; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--mc, #14387A); background: none; border: none; cursor: pointer; padding: 4px 2px; }
.ielts-more:hover { text-decoration: underline; }
.ielts-test-link { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-cool); text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.92rem; transition: all .15s; }
.ielts-test-link:hover { border-color: var(--mc, #14387A); transform: translateX(2px); }
.ielts-test-link > span:first-child { flex: 1; }
.ielts-best { font-size: 0.72rem; font-weight: 700; color: #15803D; background: #E7F6EC; border-radius: 6px; padding: 1px 7px; }
.ielts-arrow { color: var(--mc, #14387A); font-weight: 700; }
.ielts-official { font-size: 0.9rem; color: var(--lead-ink); margin: 14px 0; }
.ielts-official a { color: var(--primary, #14387A); font-weight: 600; margin-left: 8px; }
.ielts-disclaimer { font-size: 0.8rem; color: var(--text-muted); background: var(--bg); border: 1px dashed var(--line-cool); border-radius: 10px; padding: 12px 14px; margin-top: 14px; }
.ielts-about { margin-bottom: 26px; }
/* Exam structure strip */
.ielts-struct { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.ielts-struct-row { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line-cool); border-left: 3px solid var(--primary, #14387A); border-radius: 10px; padding: 10px 14px; }
.ielts-struct-name { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.ielts-struct-time { font-size: 0.85rem; color: var(--primary, #14387A); font-weight: 600; }
.ielts-struct-detail { font-size: 0.82rem; color: var(--text-muted); }
/* Band scale */
.ielts-bands { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.ielts-band-row { display: grid; grid-template-columns: 34px 96px 1fr; align-items: center; gap: 10px; }
.ielts-band-n { width: 30px; height: 30px; border-radius: 8px; background: var(--primary, #14387A); color: #fff; font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; }
.ielts-band-name { font-weight: 700; color: var(--text); font-size: 0.9rem; }
.ielts-band-desc { font-size: 0.88rem; color: var(--lead-ink); }
/* Resource groups */
.ielts-res-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ielts-res-group h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 6px; }
.ielts-res-group a { display: block; font-size: 0.9rem; color: var(--primary, #14387A); font-weight: 600; padding: 3px 0; }
.ielts-samples-link { display: inline-block; margin: 4px 0 20px; font-weight: 700; color: var(--primary, #14387A); font-size: 0.98rem; }
/* Band Description cards */
.ielts-desc-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 6px; }
.ielts-desc-group { background: var(--surface); border: 1px solid var(--line-cool); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.ielts-desc-group h4 { font-size: 1rem; color: var(--text); margin: 0 0 6px; }
.ielts-desc-crit { font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; margin: 0 0 10px; }
.ielts-desc-group .ielts-official { margin: 0; }
.ielts-desc-group .ielts-official a { display: inline-block; margin: 0 12px 0 0; }
/* Sample-answer viewer (bands 6-9) */
.ielts-sample { background: var(--surface); border: 1px solid var(--line-cool); border-left: 4px solid var(--pc, #14387A); border-radius: 14px; padding: 18px 20px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.ielts-sample-prompt { font-size: 0.98rem; color: var(--text); line-height: 1.55; margin: 8px 0; font-weight: 500; }
.ielts-sample-data { font-size: 0.85rem; color: var(--text-muted); background: var(--bg); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; line-height: 1.5; }
.ielts-sample-fig { margin: 6px 0 14px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-cool); border-radius: 12px; }
.ielts-sample-fig svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.ielts-sample-fig figcaption { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin-top: 10px; border-top: 1px dashed var(--line-cool); padding-top: 8px; }
.ielts-fig-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ielts-fig-legend li { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--text-soft, #475569); }
.ielts-fig-swatch { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.ielts-fig-pierow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.ielts-fig-pierow svg { max-width: 190px; margin: 0; }
.ielts-fig-pierow .ielts-fig-legend { flex-direction: column; gap: 5px; margin-top: 0; }
.ielts-fig-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.83rem; }
.ielts-fig-table th, .ielts-fig-table td { border: 1px solid var(--line-cool); padding: 6px 10px; text-align: center; }
.ielts-fig-table th { background: var(--surface); font-weight: 700; color: var(--text); }
.ielts-fig-table th:first-child, .ielts-fig-table td:first-child { text-align: left; }
.ielts-sb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ielts-sb-tab { font: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer; padding: 6px 15px; border-radius: 999px; border: 1.5px solid var(--line-cool); background: var(--surface); color: var(--text-soft); }
.ielts-sb-tab.is-on { background: var(--pc, #14387A); border-color: var(--pc, #14387A); color: #fff; }
.ielts-sb-panel { display: none; }
.ielts-sb-panel.is-on { display: block; }
.ielts-sb-note { font-size: 0.88rem; color: #6B5A2E; background: #FBF7EC; border: 1px solid #EBDBB4; border-radius: 8px; padding: 9px 12px; margin-bottom: 10px; line-height: 1.5; }
.ielts-sb-wc { color: var(--text-muted); font-weight: 600; margin-left: 6px; white-space: nowrap; }
.ielts-sb-answer { font-size: 0.95rem; line-height: 1.75; color: var(--text); }
@media (max-width: 480px) { .ielts-band-row { grid-template-columns: 30px 1fr; } .ielts-band-name, .ielts-band-desc { grid-column: 2; } }
/* Hub info chip-tabs (About / Structure / Bands / Resources) */
.ielts-hub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.ielts-hub-chip { font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-cool); background: var(--surface); color: var(--text-soft); transition: background .15s, border-color .15s, color .15s; }
.ielts-hub-chip:hover { border-color: var(--primary-soft, #2E63B8); color: var(--primary); }
.ielts-hub-chip.is-on { background: var(--primary, #14387A); border-color: var(--primary, #14387A); color: #fff; }
.ielts-hub-panels { margin-bottom: 26px; }
.ielts-hub-panel { display: none; }
.ielts-hub-panel.is-on { display: block; }

/* ---- FAQ accordion (answer-first content for search + AI assistants).
   Uses .faqx-* names to avoid the older .faq-q/.faq-list component above. ---- */
.faq-block { max-width: 860px; }
.faqx-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.faqx-item {
  display: block;
  border: 1px solid var(--line-cool);
  border-radius: 14px;
  background: var(--surface, #fff);
  box-shadow: 0 1px 2px rgba(20,56,122,0.04);
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.faqx-item[open] { border-color: var(--primary-soft, #2E63B8); box-shadow: 0 8px 24px rgba(20,56,122,0.09); }
.faqx-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--primary-deep, #14387A);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faqx-item > summary::-webkit-details-marker { display: none; }
.faqx-item > summary:hover { color: var(--primary, #14387A); }
.faqx-item > summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-tint, #EAF0FA);
  color: var(--primary, #14387A);
  font-weight: 700; font-size: 1.1rem; line-height: 1;
  transition: background .2s, color .2s;
}
.faqx-item[open] > summary::after { content: "−"; background: var(--primary, #14387A); color: #fff; }
.faqx-item > p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--lead-ink, #4A5768);
  line-height: 1.65;
  font-size: 0.97rem;
}
/* 2x2 module grid */
.ielts-mod-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .ielts-mod-2x2 { grid-template-columns: 1fr; } }
/* sample-answers link inside the Writing card */
.ielts-samples-inline { background: #F1ECFB; border-color: #C9BEEC !important; color: #5B32B0 !important; font-weight: 700; }
.ielts-samples-inline:hover { border-color: #6D28D9 !important; transform: translateX(2px); }

/* Test player */
.ielts-crumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.ielts-crumb a { color: var(--primary, #14387A); }
.ielts-test-title { font-size: 1.6rem; margin-bottom: 10px; }
.ielts-instr { background: #FBF7EC; border: 1px solid #EBDBB4; border-radius: 10px; padding: 12px 14px; font-size: 0.9rem; color: #6B5A2E; margin-bottom: 16px; line-height: 1.55; }
.ielts-timer { position: sticky; top: 62px; z-index: 20; display: inline-block; background: var(--primary, #14387A); color: #fff; font-weight: 700; font-size: 0.95rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.ielts-timer.is-up { background: var(--coral, #DC2626); }
.ielts-timer.is-done { background: #15803D; }
.ielts-timer-wrap { margin-bottom: 16px; }
.ielts-timer-start {
  font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer;
  background: var(--primary, #14387A); color: #fff; border: none;
  padding: 9px 18px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.ielts-timer-start:hover { filter: brightness(1.06); }
.ielts-timer-start[disabled] { opacity: .6; cursor: default; }
.ielts-timeup { display: inline-block; background: var(--coral, #DC2626); color: #fff; font-weight: 700; font-size: 0.95rem; padding: 7px 16px; border-radius: 999px; }
.ielts-listen-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ielts-listen-status { font-weight: 600; font-size: 0.92rem; color: var(--primary, #14387A); }
.ielts-listen-status.is-up { color: var(--coral, #DC2626); }
/* Writing Task 1: figure (smaller) beside the answer box */
.ielts-wsplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 20px; align-items: stretch; }
.ielts-wsplit .ielts-fig { margin: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px; }
.ielts-wsplit .ielts-fig svg { max-width: 100%; }
.ielts-wbox-wrap { display: flex; flex-direction: column; }
.ielts-wsplit .ielts-wbox-wrap { height: 100%; }
.ielts-wsplit .ielts-wbox { flex: 1 1 auto; min-height: 360px; }
@media (max-width: 760px) { .ielts-wsplit { grid-template-columns: 1fr; align-items: start; } .ielts-wsplit .ielts-wbox { min-height: 260px; } }
.ielts-block { margin-bottom: 30px; }
.ielts-passage { background: var(--surface); border: 1px solid var(--line-cool); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
/* Reading side-by-side: passage (sticky, scrollable) | questions */
.ielts-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; align-items: start; }
.ielts-split .ielts-passage { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; margin-bottom: 0; }
.ielts-split .ielts-passage p { font-size: 0.86rem; line-height: 1.6; }
.ielts-split .ielts-passage h3 { font-size: 1.05rem; }
.ielts-split .ielts-q { padding: 10px 12px; }
.ielts-split .ielts-q-text { font-size: 0.88rem; }
.ielts-split .ielts-opt { font-size: 0.86rem; }
@media (max-width: 820px) {
  .ielts-split { grid-template-columns: 1fr; gap: 14px; }
  .ielts-split .ielts-passage { position: static; max-height: 320px; }
}
/* Per-passage / per-section colour coding for easy navigation */
.ielts-c1 { --pc: #1E5F9C; }
.ielts-c2 { --pc: #0E7490; }
.ielts-c3 { --pc: #6D28D9; }
.ielts-c4 { --pc: #B4541E; }
.ielts-block-tag {
  display: inline-block; background: var(--pc, #14387A); color: #fff;
  font-weight: 700; font-size: 0.78rem; letter-spacing: .02em;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.ielts-c1 .ielts-passage, .ielts-c2 .ielts-passage, .ielts-c3 .ielts-passage, .ielts-c4 .ielts-passage { border-left: 4px solid var(--pc); }
.ielts-c1 .ielts-q-num, .ielts-c2 .ielts-q-num, .ielts-c3 .ielts-q-num, .ielts-c4 .ielts-q-num { background: var(--pc); }
.ielts-c1 .ielts-timer, .ielts-c2 .ielts-timer, .ielts-c3 .ielts-timer, .ielts-c4 .ielts-timer { background: var(--pc); }
.ielts-passage h3 { font-size: 1.15rem; color: var(--text); margin-bottom: 10px; }
.ielts-passage p { font-size: 0.95rem; line-height: 1.7; color: var(--text); margin-bottom: 8px; }
.ielts-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ielts-section-head h3 { font-size: 1.1rem; margin: 0; flex-basis: 100%; }
.ielts-audio-btn, .ielts-transcript-btn { font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; border-radius: 8px; padding: 6px 12px; border: 1.5px solid var(--line-cool); background: var(--surface); color: var(--text); }
.ielts-audio-btn { border-color: #0E7490; color: #0E7490; }
.ielts-audio-btn:hover, .ielts-transcript-btn:hover { filter: brightness(0.97); }
.ielts-transcript { background: var(--bg); border: 1px dashed var(--line-cool); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: 0.9rem; line-height: 1.6; }
.ielts-qs { display: flex; flex-direction: column; gap: 14px; }
.ielts-q { display: flex; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-cool); border-radius: 12px; }
.ielts-q-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--primary, #14387A); color: #fff; font-weight: 700; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; }
.ielts-q-body { flex: 1; }
.ielts-q-text { font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.ielts-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ielts-opt { display: flex; align-items: flex-start; gap: 8px; font-size: 0.92rem; cursor: pointer; padding: 5px 8px; border-radius: 8px; }
.ielts-opt:hover { background: var(--bg); }
.ielts-opt.is-ok { background: #E7F6EC; color: #15803D; font-weight: 600; }
.ielts-opt.is-no { background: #FCE8E6; color: #B4231C; }
.ielts-gap { font: inherit; font-size: 0.92rem; padding: 4px 8px; border: 1.5px solid var(--line-cool); border-radius: 7px; min-width: 130px; background: var(--bg); }
.ielts-gap.is-ok { border-color: #16A34A; background: #E7F6EC; }
.ielts-gap.is-no { border-color: #DC2626; background: #FCE8E6; }
.ielts-submit-row { margin: 24px 0; }
.ielts-score { display: flex; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line-cool); border-radius: 16px; padding: 20px 24px; box-shadow: var(--shadow-md); }
.ielts-score-num { font-family: 'Fraunces', serif; font-size: 2.6rem; font-weight: 700; color: var(--primary, #14387A); }
.ielts-score-num span { font-size: 1.2rem; color: var(--text-muted); }
.ielts-score-band { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--text-muted); }
.ielts-score-band strong { font-family: 'Fraunces', serif; font-size: 2rem; color: #15803D; }
.ielts-score-note { font-size: 0.82rem; color: var(--text-muted); margin: 8px 0 14px; }
.ielts-review summary { cursor: pointer; font-weight: 600; color: var(--primary, #14387A); }
.ielts-review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 12px; }
.ielts-rev { font-size: 0.8rem; padding: 6px 8px; border-radius: 7px; }
.ielts-rev.ok { background: #E7F6EC; color: #15803D; }
.ielts-rev.no { background: #FCE8E6; color: #B4231C; }

/* Writing */
.ielts-wtask { background: var(--surface); border: 1px solid var(--line-cool); border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.ielts-wtask-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ielts-wtask-head h3 { font-size: 1.1rem; color: var(--text); }
.ielts-wtask-min { font-size: 0.8rem; color: var(--text-muted); }
.ielts-wtask-prompt { font-size: 0.95rem; line-height: 1.6; color: var(--text); margin: 8px 0; }
.ielts-fig { background: var(--bg); border: 1px solid var(--line-cool); border-radius: 10px; padding: 12px; margin: 10px 0; }
.ielts-fig svg { width: 100%; height: auto; display: block; }
.ielts-wbox { width: 100%; min-height: 260px; font: inherit; font-size: 0.95rem; line-height: 1.6; padding: 12px 14px; border: 1.5px solid var(--line-cool); border-radius: 10px; background: var(--bg); resize: vertical; }
.ielts-wbox:focus { outline: none; border-color: var(--primary-soft, #2E63B8); background: #fff; }
.ielts-wfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 12px; flex-wrap: wrap; }
.ielts-wc { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.ielts-wc.is-ok { color: #15803D; }
.ielts-pro-btn { opacity: 0.72; cursor: not-allowed; }

/* Speaking */
.ielts-spart { background: var(--surface); border: 1px solid var(--line-cool); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.ielts-spart h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.ielts-spart h3 span { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.ielts-sp-topic { font-size: 0.86rem; font-weight: 600; color: var(--primary, #14387A); margin-bottom: 8px; }
.ielts-spart ul { padding-left: 20px; }
.ielts-spart li { font-size: 0.94rem; line-height: 1.7; color: var(--text); }
.ielts-cuecard { background: #FBF7EC; border: 1px solid #EBDBB4; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.ielts-cue-task { font-size: 1.02rem; font-weight: 700; color: #6B5A2E; margin-bottom: 8px; }
.ielts-cue-lead { font-size: 0.9rem; font-weight: 600; color: #6B5A2E; }
.ielts-cue-note { font-size: 0.85rem; color: #8A7A4E; margin-top: 8px; }
@media (max-width: 560px) { .ielts-score { flex-direction: column; gap: 8px; align-items: flex-start; } }

/* ════════════════════════════════════════════════════════════════
   WHAT'S-NEW floating widget (homepage) — gold pill bottom-right,
   pulse ring + red dot until opened once, then quiet.
   ════════════════════════════════════════════════════════════════ */
.whatsnew { position: fixed; right: 18px; bottom: 18px; z-index: 950; transition: opacity .3s ease, transform .3s ease; }
.whatsnew.is-gone { opacity: 0; transform: translateY(12px); pointer-events: none; }
.whatsnew-btn {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--primary-deep, #0A2350);
  background: linear-gradient(135deg, #FFE9B3 0%, #F4B83C 100%);
  border: none; border-radius: 999px; padding: 11px 18px; cursor: pointer;
  box-shadow: 0 6px 22px rgba(10, 35, 80, 0.25);
  transition: transform .18s, box-shadow .18s;
}
.whatsnew-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(10, 35, 80, 0.3); }
.whatsnew-dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: #DC2626; border: 2px solid #fff; }
.whatsnew.is-seen .whatsnew-dot { display: none; }
.whatsnew:not(.is-seen) .whatsnew-btn::after {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  border: 2px solid rgba(244, 184, 60, 0.8);
  animation: wn-pulse 2s ease-out infinite; pointer-events: none;
}
@keyframes wn-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  70%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}
.whatsnew-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: 330px; max-width: calc(100vw - 36px);
  background: var(--surface, #fff); border: 1px solid var(--line-cool, #E2E8F0);
  border-radius: 16px; box-shadow: 0 18px 48px rgba(10, 35, 80, 0.2);
  padding: 6px 6px 8px;
}
.whatsnew-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; font-size: 0.95rem; color: var(--text); }
.whatsnew-close { font-size: 1.35rem; line-height: 1; background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 2px 8px; border-radius: 8px; }
.whatsnew-close:hover { background: var(--bg); color: var(--text); }
.whatsnew-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text); }
.whatsnew-item:hover { background: var(--bg); }
.whatsnew-item-ic { font-size: 1.25rem; line-height: 1.3; flex: none; }
.whatsnew-item strong { display: block; font-size: 0.92rem; }
.whatsnew-item em { display: block; font-style: normal; font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; margin-top: 1px; }
@media (prefers-reduced-motion: reduce) { .whatsnew:not(.is-seen) .whatsnew-btn::after { animation: none; display: none; } }
@media print { .whatsnew { display: none !important; } }

/* ════════════════════════════════════════════════════════════════
   QUIET NAV RIBBON — program pills muted to soft tints of their own
   hue so attention goes to the page content. Full colour is reserved
   for the Sign-in button and the CURRENT page's pill (solid).
   (Appended last: overrides the earlier solid-gradient pill rules.)
   ════════════════════════════════════════════════════════════════ */
.top-nav-links a[href="msn.html"],
.top-nav-links a[href="post-basic.html"],
.top-nav-links a[href="rn.html"],
.top-nav-links a[href="nclex.html"],
.top-nav-links a[href="books.html"],
.top-nav-links a[href="jobs.html"],
.top-nav-links a[href="ielts.html"],
.top-nav-links a[href="academic.html"] { box-shadow: none; font-weight: 600; }
.top-nav-links a[href="msn.html"]        { background: #E9EDF8; color: #1E3A8A; }
.top-nav-links a[href="post-basic.html"] { background: #E6F0F9; color: #175A94; }
.top-nav-links a[href="rn.html"]         { background: #E5F5EC; color: #0F7A38; }
.top-nav-links a[href="ielts.html"]      { background: #F0EAFB; color: #6D28D9; }
.top-nav-links a[href="nclex.html"]      { background: #ECEAFA; color: #5749B8; }
.top-nav-links a[href="books.html"]      { background: #F5EEE0; color: #8A6527; }
.top-nav-links a[href="jobs.html"]       { background: #F9ECE3; color: #A34A18; }
.top-nav-links a[href="academic.html"]   { background: #E4F2F5; color: #0E7490; }
/* hover: same hue, one shade deeper — still calm */
.top-nav-links a[href="msn.html"]:hover        { background: #DCE3F4; color: #1E3A8A; transform: translateY(-1px); box-shadow: none; filter: none; }
.top-nav-links a[href="post-basic.html"]:hover { background: #D8E8F6; color: #175A94; transform: translateY(-1px); box-shadow: none; filter: none; }
.top-nav-links a[href="rn.html"]:hover         { background: #D6EFE1; color: #0F7A38; transform: translateY(-1px); box-shadow: none; filter: none; }
.top-nav-links a[href="ielts.html"]:hover      { background: #E6DCF8; color: #6D28D9; transform: translateY(-1px); box-shadow: none; filter: none; }
.top-nav-links a[href="nclex.html"]:hover      { background: #E0DCF6; color: #5749B8; transform: translateY(-1px); box-shadow: none; filter: none; }
.top-nav-links a[href="books.html"]:hover      { background: #EFE4CE; color: #8A6527; transform: translateY(-1px); box-shadow: none; filter: none; }
.top-nav-links a[href="jobs.html"]:hover       { background: #F4E0D2; color: #A34A18; transform: translateY(-1px); box-shadow: none; filter: none; }
.top-nav-links a[href="academic.html"]:hover   { background: #D5EAEF; color: #0E7490; transform: translateY(-1px); box-shadow: none; filter: none; }
/* current page: its pill goes solid — one clear "you are here" accent */
.top-nav-links a[href="msn.html"].is-active        { background: #1E3A8A; color: #fff; box-shadow: none; }
.top-nav-links a[href="post-basic.html"].is-active { background: #1E5F9C; color: #fff; box-shadow: none; }
.top-nav-links a[href="rn.html"].is-active         { background: #16A34A; color: #fff; box-shadow: none; }
.top-nav-links a[href="ielts.html"].is-active      { background: #6D28D9; color: #fff; box-shadow: none; }
.top-nav-links a[href="nclex.html"].is-active      { background: #6C5FD0; color: #fff; box-shadow: none; }
.top-nav-links a[href="books.html"].is-active      { background: #A47B36; color: #fff; box-shadow: none; }
.top-nav-links a[href="jobs.html"].is-active       { background: #B4541E; color: #fff; box-shadow: none; }
.top-nav-links a[href="academic.html"].is-active   { background: #0E7490; color: #fff; box-shadow: none; }

/* ════════════════════════════════════════════════════════════════
   COLOURFUL SECTION SUBNAV — the in-page section buttons on program
   pages (Topic Discussions / Model Tests / Books / Premium …) become
   vivid gradient pills. Colour is positional so it works on every
   page regardless of the labels.
   ════════════════════════════════════════════════════════════════ */
.subnav a {
  color: #fff; font-weight: 600; border: none;
  box-shadow: 0 2px 8px rgba(10, 35, 80, 0.15);
}
.subnav-inner a:nth-child(6n+1) { background: linear-gradient(135deg, #1E3A8A, #2E63B8); }
.subnav-inner a:nth-child(6n+2) { background: linear-gradient(135deg, #16A34A, #34C56A); }
.subnav-inner a:nth-child(6n+3) { background: linear-gradient(135deg, #6D28D9, #8B5CF6); }
.subnav-inner a:nth-child(6n+4) { background: linear-gradient(135deg, #A47B36, #C99A50); }
.subnav-inner a:nth-child(6n+5) { background: linear-gradient(135deg, #B4541E, #E2784A); }
.subnav-inner a:nth-child(6n+6) { background: linear-gradient(135deg, #0E7490, #16A6B6); }
.subnav a:hover {
  color: #fff; border-color: transparent;
  filter: brightness(1.1); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 35, 80, 0.22);
}

/* ════════════════════════════════════════════════════════════════
   IELTS — free AI band-estimate result card (Writing module)
   ════════════════════════════════════════════════════════════════ */
.ielts-eval-out { margin-top: 12px; background: var(--surface); border: 1px solid var(--line-cool); border-left: 4px solid #6D28D9; border-radius: 12px; padding: 14px 16px; }
.ielts-eval-msg { font-size: 0.92rem; color: var(--text-soft); margin: 2px 0; }
.ielts-eval-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ielts-eval-overall { font-family: 'Fraunces', Georgia, serif; font-size: 2.3rem; font-weight: 700; color: #6D28D9; background: #F0EAFB; border-radius: 14px; padding: 4px 16px; line-height: 1.2; }
.ielts-eval-meta { font-size: 0.8rem; color: var(--text-muted); }
.ielts-eval-row { display: grid; grid-template-columns: minmax(150px, 220px) 44px 1fr; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px dashed var(--line-cool); }
.ielts-eval-crit { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.ielts-eval-band { font-weight: 800; color: #6D28D9; font-size: 0.95rem; }
.ielts-eval-note2 { font-size: 0.82rem; color: var(--text-soft); line-height: 1.45; }
.ielts-eval-sub { font-size: 0.88rem; font-weight: 700; color: var(--text); margin: 12px 0 4px; }
.ielts-eval-list { margin: 0; padding-left: 20px; }
.ielts-eval-list li { font-size: 0.86rem; color: var(--text-soft); line-height: 1.5; margin: 3px 0; }
.ielts-eval-disc { font-size: 0.75rem; color: var(--text-muted); margin: 12px 0 0; border-top: 1px dashed var(--line-cool); padding-top: 8px; }
.ielts-eval-prev { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); margin: 0 0 8px; }
@media (max-width: 640px) { .ielts-eval-row { grid-template-columns: 1fr 44px; } .ielts-eval-note2 { grid-column: 1 / -1; } }

/* ---- Speaking recorder + AI result extras ---- */
.ielts-rec { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.ielts-rec-btn.is-rec { background: #B3123E; color: #fff; border-color: #B3123E; animation: ielts-rec-pulse 1.2s ease-in-out infinite; }
@keyframes ielts-rec-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(179,18,62,0.45); } 50% { box-shadow: 0 0 0 7px rgba(179,18,62,0); } }
.ielts-rec-status { font-size: 0.88rem; color: var(--text-soft); }
.ielts-rec-target { font-size: 0.82rem; font-weight: 600; color: #9A3412; background: #FEF3C7; border: 1px solid #FDE68A; border-radius: 999px; padding: 2px 10px; }
.ielts-rec-audio { height: 34px; max-width: 240px; }
.ielts-spk-evalbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 4px; }
.ielts-spk-hint { font-size: 0.88rem; color: var(--text-soft); }
.ielts-eval-comment { margin: 2px 0 10px; font-size: 0.96rem; color: var(--text); line-height: 1.55; }
.ielts-spk-tr { border: 1px solid var(--line-cool); border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.ielts-spk-tr > summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--primary, #14387A); }
.ielts-spk-tr > p { margin: 8px 0 2px; font-size: 0.92rem; color: var(--text-soft); line-height: 1.6; }
/* Writing action buttons (Save / Try again) + sign-in prompt */
.ielts-wactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ielts-save-btn, .ielts-retry-btn { font: inherit; font-size: 0.85rem; font-weight: 600; padding: 8px 15px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--line-cool); background: var(--surface); color: var(--text-soft); transition: border-color .2s, color .2s, background .2s; }
.ielts-save-btn:hover, .ielts-retry-btn:hover { border-color: var(--primary-soft, #2E63B8); color: var(--primary, #14387A); }
.ielts-save-btn.is-saved { border-color: #16A34A; color: #16A34A; background: #ECFDF3; }
.ielts-eval-signin { text-align: center; padding: 8px 4px; }
.ielts-eval-signin p { margin: 0 0 12px; font-size: 0.96rem; color: var(--text); line-height: 1.55; }
.ielts-eval-signin p span { font-size: 0.85rem; color: var(--text-soft); }

/* ════════════════════════════════════════════════════════════════
   SMART REVIEW — spaced-repetition flashcards (review.html)
   ════════════════════════════════════════════════════════════════ */
.review-page { max-width: 760px; }
.rev-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rev-back { font-size: 0.85rem; font-weight: 600; color: var(--text-soft, #475569); text-decoration: none; }
.rev-back:hover { color: var(--primary, #14387A); }
.rev-count { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.rev-newtag { color: #6D28D9; font-weight: 700; }
.rev-progress { height: 6px; border-radius: 999px; background: var(--line-cool, #E2E8F0); overflow: hidden; margin-bottom: 18px; }
.rev-progress span { display: block; height: 100%; background: linear-gradient(90deg, #14387A, #2E63B8); transition: width .25s ease; }
.rev-card { background: var(--surface, #fff); border: 1px solid var(--line-cool, #E2E8F0); border-top: 3px solid var(--primary, #14387A); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.rev-subj { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary, #14387A); background: var(--bg, #F5F7FB); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.rev-q { font-size: 1.12rem; line-height: 1.5; color: var(--text); font-weight: 600; margin: 0 0 16px; }
.rev-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rev-opt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--line-cool, #E2E8F0); border-radius: 10px; font-size: 0.95rem; color: var(--text); background: var(--bg, #F8FAFC); }
.rev-opt-key { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface, #fff); border: 1.5px solid var(--line-cool); display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; color: var(--text-soft); }
.rev-opt.is-correct { border-color: #16A34A; background: #E9F9EF; }
.rev-opt.is-correct .rev-opt-key { background: #16A34A; border-color: #16A34A; color: #fff; }
.rev-answer { margin-top: 16px; border-top: 1px dashed var(--line-cool); padding-top: 14px; }
.rev-ans-line { font-size: 0.95rem; color: var(--text); margin: 0 0 8px; }
.rev-expl { font-size: 0.9rem; line-height: 1.55; color: var(--text-soft, #475569); background: var(--bg); border-radius: 10px; padding: 11px 14px; margin: 0; }
.rev-actions { margin-top: 18px; }
.rev-show { width: 100%; }
.rev-kbd { font-size: 0.72rem; opacity: 0.7; border: 1px solid currentColor; border-radius: 5px; padding: 1px 6px; margin-left: 8px; }
.rev-grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rev-grade { display: flex; flex-direction: column; align-items: center; gap: 3px; font: inherit; font-weight: 700; font-size: 0.92rem; color: #fff; border: none; border-radius: 11px; padding: 10px 6px; cursor: pointer; transition: transform .12s, filter .15s; }
.rev-grade:hover { transform: translateY(-1px); filter: brightness(1.06); }
.rev-int { font-size: 0.7rem; font-weight: 600; opacity: 0.9; }
.rev-g0 { background: #DC2626; } .rev-g1 { background: #D97706; } .rev-g2 { background: #16A34A; } .rev-g3 { background: #2563EB; }
@media (max-width: 520px) { .rev-q { font-size: 1.04rem; } .rev-grade { font-size: 0.82rem; padding: 9px 4px; } }

/* Empty / done states */
.rev-done { text-align: center; background: var(--surface, #fff); border: 1px solid var(--line-cool); border-radius: 16px; padding: 34px 24px; box-shadow: var(--shadow-sm); }
.rev-done-ic { font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.rev-done h2 { font-size: 1.4rem; color: var(--text); margin: 0 0 8px; }
.rev-done p { color: var(--text-soft, #475569); line-height: 1.55; max-width: 460px; margin: 0 auto 12px; }
.rev-how { list-style: none; padding: 0; max-width: 440px; margin: 0 auto 8px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.rev-how li { font-size: 0.92rem; color: var(--text-soft); line-height: 1.5; background: var(--bg); border-radius: 10px; padding: 10px 14px; }
.rev-done-stats { display: flex; justify-content: center; gap: 22px; margin: 14px 0 18px; font-size: 0.85rem; color: var(--text-muted); }
.rev-done-stats strong { color: var(--primary, #14387A); font-size: 1.05rem; }
.rev-add { margin: 18px auto; max-width: 480px; }
.rev-add-h { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin: 0 0 10px; }
.rev-decks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.rev-deck { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text); background: var(--bg); border: 1.5px solid var(--line-cool); border-radius: 11px; padding: 11px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.rev-deck:hover:not(:disabled) { border-color: var(--primary, #14387A); background: var(--surface); }
.rev-deck:disabled { opacity: 0.55; cursor: default; }
.rev-deck-n { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); margin-top: 2px; }

/* Dashboard Smart Review banner */
.dash-review-banner { display: flex; align-items: center; gap: 16px; text-decoration: none; background: linear-gradient(135deg, #0E2A5E, #14387A); color: #fff; border-radius: 16px; padding: 16px 20px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(10, 35, 80, 0.18); transition: transform .15s, box-shadow .15s; }
.dash-review-banner:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(10, 35, 80, 0.26); }
.dash-review-banner.is-due { background: linear-gradient(135deg, #4C1D95, #6D28D9); }
.dash-review-ic { font-size: 2rem; flex: none; }
.dash-review-body { flex: 1 1 auto; min-width: 0; }
.dash-review-title { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; font-weight: 700; }
.dash-review-badge { font-size: 0.75rem; font-weight: 800; background: #F4B83C; color: #4C1D95; border-radius: 999px; padding: 2px 9px; }
.dash-review-line { display: block; font-size: 0.86rem; opacity: 0.92; line-height: 1.4; margin-top: 3px; }
.dash-review-line strong { color: #FFE9A6; }
.dash-review-cta { flex: none; font-size: 0.86rem; font-weight: 700; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 8px 15px; white-space: nowrap; }
@media (max-width: 560px) { .dash-review-banner { flex-wrap: wrap; } .dash-review-cta { width: 100%; text-align: center; } }

/* "new" chip on hero service chips */
.chip-new { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #16A34A; color: #fff; margin-left: 4px; }

/* ════════════════════════════════════════════════════════════════
   ASK PULSE — AI nursing tutor chat (ask.html)
   ════════════════════════════════════════════════════════════════ */
.ask-page { max-width: 780px; }
.ask-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ask-new { font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--primary, #14387A); background: var(--surface, #fff); border: 1.5px solid var(--line-cool, #E2E8F0); border-radius: 999px; padding: 8px 15px; cursor: pointer; white-space: nowrap; }
.ask-new:hover { border-color: var(--primary, #14387A); }
.ask-wrap { display: flex; flex-direction: column; background: var(--surface, #fff); border: 1px solid var(--line-cool, #E2E8F0); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.ask-stream { min-height: 340px; max-height: 60vh; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ask-msg { display: flex; gap: 10px; max-width: 100%; }
.ask-user { justify-content: flex-end; }
.ask-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg, #EAF1F7); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.ask-bubble { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.48; letter-spacing: 0.005em; }
.ask-user .ask-bubble { background: linear-gradient(135deg, #14387A, #2E63B8); color: #fff; border-bottom-right-radius: 5px; }
.ask-model .ask-bubble { background: var(--bg, #F5F7FB); color: var(--text); border: 1px solid var(--line-cool, #E8EDF3); border-bottom-left-radius: 5px; max-width: 100%; }
.ask-bubble p { margin: 0 0 6px; } .ask-bubble p:last-child { margin-bottom: 0; }
.ask-bubble ul, .ask-bubble ol { margin: 4px 0 6px; padding-left: 18px; } .ask-bubble ul:last-child, .ask-bubble ol:last-child { margin-bottom: 0; }
.ask-bubble li { margin: 1px 0; padding-left: 2px; } .ask-bubble li::marker { color: var(--primary-soft, #2E63B8); }
.ask-bubble strong { font-weight: 700; }
.ask-bubble code { background: rgba(20,56,122,0.08); border-radius: 5px; padding: 1px 5px; font-size: 0.9em; }
.ask-note .ask-bubble { background: #FEF6E7; border-color: #F3D18B; color: #7A5A18; }
.ask-gate .ask-bubble { background: #F1ECFB; border-color: #C9BEEC; }
/* typing indicator */
.ask-typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.ask-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted, #94A3B8); animation: ask-blink 1.2s infinite both; }
.ask-typing span:nth-child(2) { animation-delay: 0.2s; } .ask-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ask-blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ask-typing span { animation: none; opacity: 0.6; } }
/* welcome / starters */
.ask-welcome { text-align: center; padding: 26px 10px; }
.ask-welcome-ic { font-size: 2.6rem; line-height: 1; }
.ask-welcome h2 { font-size: 1.3rem; color: var(--text); margin: 8px 0 6px; }
.ask-welcome p { color: var(--text-soft, #475569); max-width: 420px; margin: 0 auto 16px; line-height: 1.5; font-size: 0.95rem; }
.ask-starters { display: flex; flex-direction: column; gap: 8px; max-width: 460px; margin: 0 auto; }
.ask-starter { font: inherit; font-size: 0.9rem; text-align: left; color: var(--text); background: var(--bg, #F5F7FB); border: 1px solid var(--line-cool, #E2E8F0); border-radius: 11px; padding: 11px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.ask-starter:hover { border-color: var(--primary, #14387A); background: var(--surface, #fff); }
/* input row */
.ask-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line-cool, #E2E8F0); background: var(--surface, #fff); }
.ask-input { flex: 1; resize: none; font: inherit; font-size: 0.95rem; line-height: 1.5; padding: 10px 14px; border: 1.5px solid var(--line-cool, #E2E8F0); border-radius: 12px; background: var(--bg, #F8FAFC); max-height: 140px; }
.ask-input:focus { outline: none; border-color: var(--primary-soft, #2E63B8); background: #fff; }
.ask-send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: none; background: linear-gradient(135deg, #14387A, #2E63B8); color: #fff; font-size: 1.1rem; cursor: pointer; transition: filter .15s, transform .12s; }
.ask-send:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.ask-send:disabled { opacity: 0.5; cursor: default; }
.ask-disc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin: 12px 4px 0; }
@media (max-width: 520px) { .ask-bubble { max-width: 88%; } .ask-stream { padding: 14px; } }

/* ════════════════════════════════════════════════════════════════
   ASK PULSE — floating launcher + compact chat (site-wide)
   ════════════════════════════════════════════════════════════════ */
.pulse-askbot { position: fixed; right: 20px; bottom: 20px; z-index: 960; }
/* bobbing robot pill launcher */
.askbot-fab {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-size: 0.92rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #14387A 0%, #2E63B8 100%);
  border: none; border-radius: 999px; padding: 11px 18px 11px 13px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(10, 35, 80, 0.32);
  animation: askbot-bob 2.6s ease-in-out infinite;
  transition: filter .15s;
}
.askbot-fab:hover { filter: brightness(1.08); animation-play-state: paused; }
.askbot-fab-face { display: inline-flex; }
@keyframes askbot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .askbot-fab { animation: none; } }
.pulse-askbot.is-open .askbot-fab { display: none; }
/* greeting nudge */
.askbot-greet {
  position: absolute; right: 4px; bottom: 66px; max-width: 210px;
  background: #fff; color: var(--text, #1F2937); border: 1px solid var(--line-cool, #E2E8F0);
  border-radius: 14px; border-bottom-right-radius: 4px; padding: 10px 14px; font-size: 0.86rem; font-weight: 600;
  box-shadow: 0 8px 22px rgba(10, 35, 80, 0.18); cursor: pointer; line-height: 1.35;
}
/* compact chat panel */
.askbot-panel {
  position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column;
  width: 374px; max-width: calc(100vw - 32px); height: min(564px, 74vh);
  background: var(--surface, #fff); border: 1px solid var(--line-cool, #E2E8F0);
  border-radius: 18px; box-shadow: 0 20px 54px rgba(10, 35, 80, 0.30); overflow: hidden;
}
.askbot-panel[hidden] { display: none; }   /* let the hidden attribute win over display:flex */
.askbot-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; color: #fff; background: linear-gradient(135deg, #14387A 0%, #2E63B8 100%);
}
.askbot-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; }
.askbot-head-actions { display: inline-flex; align-items: center; gap: 4px; }
.askbot-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 8px; border: none; background: rgba(255,255,255,0.14); color: #fff;
  font-size: 1.15rem; line-height: 1; text-decoration: none; cursor: pointer;
}
.askbot-icon-btn:hover { background: rgba(255,255,255,0.28); }
.askbot-mount { flex: 1; min-height: 0; display: flex; }
.askbot-mount .ask-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; border: none; border-radius: 0; box-shadow: none; }
.askbot-mount .ask-stream { flex: 1; min-height: 0; max-height: none; padding: 14px 14px 8px; gap: 11px; }
.askbot-mount .ask-bubble { font-size: 0.855rem; line-height: 1.45; padding: 9px 12px; }
.askbot-mount .ask-bubble p { margin: 0 0 5px; }
.askbot-mount .ask-bubble ul, .askbot-mount .ask-bubble ol { margin: 3px 0 5px; }
.askbot-mount .ask-ava { width: 26px; height: 26px; font-size: 0.9rem; }
.askbot-mount .ask-form { padding: 10px; }
.askbot-mount .ask-input { font-size: 0.88rem; padding: 9px 12px; }
.askbot-mount .ask-disc { display: none; }
.askbot-mount .ask-welcome { padding: 16px 6px; }
.askbot-mount .ask-welcome-ic { font-size: 2.1rem; }
.askbot-mount .ask-welcome h2 { font-size: 1.12rem; }
.askbot-mount .ask-starters { gap: 7px; }
.askbot-mount .ask-starter { font-size: 0.85rem; padding: 9px 12px; }
@media (max-width: 480px) {
  .pulse-askbot { right: 14px; bottom: 14px; }
  .askbot-panel { width: calc(100vw - 24px); height: 76vh; }
  .askbot-fab-text { display: none; }
  .askbot-fab { padding: 13px; }
}
@media print { .pulse-askbot { display: none !important; } }

/* Stack the What's-new widget just ABOVE the Ask Pulse launcher (both bottom-right) */
.whatsnew { right: 20px; left: auto; bottom: 86px; }
.whatsnew-panel { right: 0; left: auto; }

/* ════════════════════════════════════════════════════════════════
   NURSE CV BUILDER (cv.html)
   ════════════════════════════════════════════════════════════════ */
.cv-page { max-width: 1240px; }
.cv-app { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 8px; }
.cv-editor { display: flex; flex-direction: column; gap: 14px; }
.cv-card { background: var(--surface, #fff); border: 1px solid var(--line-cool, #E2E8F0); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.cv-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; background: var(--bg, #F5F7FB); border-bottom: 1px solid var(--line-cool, #E2E8F0); }
.cv-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.cv-card-req { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #B4541E; background: #F9ECE3; padding: 2px 8px; border-radius: 999px; }
.cv-card-actions { display: inline-flex; gap: 4px; }
.cv-ic-btn { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line-cool, #E2E8F0); background: var(--surface, #fff); cursor: pointer; font-size: 0.8rem; color: var(--text-soft, #475569); }
.cv-ic-btn:hover:not(:disabled) { border-color: var(--primary, #14387A); color: var(--primary, #14387A); }
.cv-ic-btn:disabled { opacity: 0.35; cursor: default; }
.cv-ic-del:hover { border-color: #DC2626 !important; color: #DC2626 !important; }
.cv-card-body { padding: 14px 15px; display: flex; flex-direction: column; gap: 11px; }
.cv-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.cv-grid1 { display: grid; gap: 10px; }
.cv-f { display: flex; flex-direction: column; gap: 4px; position: relative; }
.cv-f-wide { grid-column: 1 / -1; }
.cv-f-lab { font-size: 0.76rem; font-weight: 600; color: var(--text-soft, #475569); }
.cv-in { width: 100%; font: inherit; font-size: 0.88rem; padding: 8px 11px; border: 1.5px solid var(--line-cool, #E2E8F0); border-radius: 9px; background: var(--bg, #F8FAFC); color: var(--text); }
.cv-in:focus { outline: none; border-color: var(--primary-soft, #2E63B8); background: #fff; }
.cv-ta { resize: vertical; min-height: 46px; }
select.cv-in { cursor: pointer; }
.cv-check, .cv-cur, .cv-switch { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--text-soft, #475569); cursor: pointer; }
.cv-cur { position: absolute; right: 0; top: 0; font-size: 0.72rem; }
.cv-item { border: 1px dashed var(--line-cool, #E2E8F0); border-radius: 11px; padding: 12px; }
.cv-item + .cv-item { margin-top: 4px; }
.cv-item-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cv-item-n { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
.cv-x { font: inherit; font-size: 0.76rem; font-weight: 600; color: #B4541E; background: none; border: none; cursor: pointer; padding: 2px 4px; }
.cv-x:hover { text-decoration: underline; }
.cv-add, .cv-add-mini { align-self: flex-start; font: inherit; font-weight: 700; color: var(--primary, #14387A); background: var(--bg, #F1F5FB); border: 1px dashed var(--primary-soft, #93A9D0); border-radius: 9px; cursor: pointer; }
.cv-add { font-size: 0.85rem; padding: 8px 14px; margin-top: 4px; }
.cv-add-mini { font-size: 0.78rem; padding: 5px 10px; }
.cv-add:hover, .cv-add-mini:hover { background: #E7EFFA; }
.cv-links { display: flex; flex-direction: column; gap: 7px; }
.cv-link-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 7px; align-items: center; }
.cv-addsec { padding: 2px; }
.cv-addsec .cv-in { font-weight: 600; color: var(--primary, #14387A); }
.cv-addsec-none { font-size: 0.82rem; color: var(--text-muted); }
.cv-preview-col { position: sticky; top: 76px; align-self: start; }
.cv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cv-tpls { display: inline-flex; gap: 6px; background: var(--bg, #EEF2F8); padding: 4px; border-radius: 999px; }
.cv-tpl { font: inherit; font-size: 0.82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: none; background: transparent; color: var(--text-soft, #475569); cursor: pointer; }
.cv-tpl.is-on { background: var(--primary, #14387A); color: #fff; }
.cv-tools { display: inline-flex; gap: 7px; flex-wrap: wrap; }
.cv-tool { font: inherit; font-size: 0.82rem; font-weight: 700; padding: 8px 13px; border-radius: 9px; border: 1.5px solid var(--line-cool, #E2E8F0); background: var(--surface, #fff); color: var(--text); cursor: pointer; }
.cv-tool.cv-print { background: linear-gradient(135deg, #14387A, #2E63B8); color: #fff; border: none; }
.cv-tool:hover { filter: brightness(1.04); border-color: var(--primary-soft, #2E63B8); }
.cv-load { display: inline-flex; align-items: center; }
.cv-preview { background: #E7EBF1; border-radius: 14px; padding: 20px; overflow: auto; max-height: calc(100vh - 130px); }
.cv-paper { width: 100%; max-width: 780px; margin: 0 auto; background: #fff; color: #1b2330; padding: 40px 44px; box-shadow: 0 6px 26px rgba(10,35,80,0.14); border-radius: 3px; font-size: 13.5px; line-height: 1.5; }
.cv-ph { color: #B9C2CF; }
.cv-h { margin-bottom: 16px; }
.cv-name { font-size: 26px; font-weight: 800; margin: 0; color: #12203c; letter-spacing: -0.2px; }
.cv-title { margin: 3px 0 0; font-size: 13.5px; color: #4a5568; font-weight: 600; }
.cv-contact { margin: 8px 0 0; font-size: 12px; color: #3a4658; display: flex; flex-wrap: wrap; gap: 4px 2px; }
.cv-contact a { color: #14387A; text-decoration: none; }
.cv-sep { margin: 0 7px; color: #C0C8D4; }
.cv-s { margin-top: 15px; }
.cv-s-h { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: #12203c; margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1.5px solid #d8dee8; }
.cv-e { margin-bottom: 10px; }
.cv-e:last-child { margin-bottom: 0; }
.cv-e-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cv-e-title { font-weight: 700; color: #1b2330; }
.cv-e-date { font-size: 11.5px; color: #5a6474; white-space: nowrap; font-weight: 600; }
.cv-e-sub { font-size: 12.5px; color: #3a4658; font-style: italic; }
.cv-e-meta { font-size: 11.5px; color: #5a6474; margin-top: 2px; }
.cv-e-extra { font-size: 12px; color: #3a4658; margin-top: 3px; }
.cv-e-extra a, .cv-interests a { color: #14387A; }
.cv-interests { margin: 0; font-size: 12.5px; }
.cv-langs { margin: 0; padding-left: 18px; }
.cv-langs li { margin: 2px 0; font-size: 12.5px; }
.cv-mut { color: #5a6474; font-weight: 400; }
.cv-refs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.cv-ref { font-size: 12px; line-height: 1.45; }
.cv-decl p { font-size: 12px; color: #3a4658; margin: 0; }
.cv-sign { display: flex; gap: 40px; margin-top: 26px; font-size: 12px; color: #5a6474; }
.cv-sign-line { display: block; width: 150px; border-top: 1px solid #97a1b0; margin-bottom: 4px; }
.tpl-classic { font-family: Georgia, "Times New Roman", serif; }
.tpl-classic .cv-h { text-align: center; border-bottom: 2px solid #12203c; padding-bottom: 12px; }
.tpl-classic .cv-name { font-family: 'Playfair Display', Georgia, serif; letter-spacing: 0; }
.tpl-classic .cv-contact { justify-content: center; }
.tpl-classic .cv-s-h { text-align: left; }
.tpl-modern { font-family: 'Inter', system-ui, sans-serif; }
.tpl-modern .cv-name { color: #14387A; }
.tpl-modern .cv-s-h { color: #14387A; border-bottom: none; padding-left: 11px; position: relative; }
.tpl-modern .cv-s-h::before { content: ""; position: absolute; left: 0; top: 1px; bottom: 3px; width: 4px; border-radius: 2px; background: linear-gradient(#14387A, #2E63B8); }
.tpl-modern .cv-e-title { color: #14387A; }
.tpl-compact { font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; padding: 30px 34px; }
.tpl-compact .cv-name { font-size: 22px; }
.tpl-compact .cv-s { margin-top: 11px; }
.tpl-compact .cv-s-h { font-size: 11px; margin-bottom: 5px; padding-bottom: 2px; border-bottom: 1px solid #dbe1ea; }
.tpl-compact .cv-e { margin-bottom: 7px; }
.tpl-compact .cv-contact { font-size: 11px; }
@media (max-width: 980px) {
  .cv-app { grid-template-columns: 1fr; }
  .cv-preview-col { position: static; max-height: none; }
  .cv-preview { max-height: none; }
}
@media (max-width: 560px) {
  .cv-grid2 { grid-template-columns: 1fr; }
  .cv-paper { padding: 26px 22px; }
}
@media print {
  body { background: #fff !important; }
  .top-nav, .cv-editor, .cv-toolbar, .cv-noprint, .nav-drawer, .nav-drawer-backdrop, .pulse-askbot, .whatsnew, .section-eyebrow, .section-title, .section-lead, footer, .visitor-chip, .nav-toggle { display: none !important; }
  main, .block, .cv-page, .cv-app, .cv-preview-col, .cv-preview { margin: 0 !important; padding: 0 !important; background: #fff !important; max-width: none !important; box-shadow: none !important; overflow: visible !important; }
  .cv-app { display: block !important; }
  .cv-paper { box-shadow: none !important; max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; }
  @page { size: A4; margin: 14mm; }
}

/* ── CV Builder v2: welcome screen, section manager, collapse, photo, new sections ── */
.cv-welcome { max-width: 680px; margin: 8px auto; background: var(--surface, #fff); border: 1px solid var(--line-cool, #E2E8F0); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 34px 30px; text-align: center; }
.cv-welcome-ic { font-size: 3rem; line-height: 1; }
.cv-welcome h2 { font-size: 1.5rem; color: var(--text); margin: 10px 0 8px; }
.cv-welcome > p { color: var(--text-soft, #475569); line-height: 1.6; max-width: 540px; margin: 0 auto 20px; }
.cv-welcome-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 24px; }
.cv-feat { display: flex; flex-direction: column; gap: 3px; padding: 14px 10px; background: var(--bg, #F5F7FB); border: 1px solid var(--line-cool, #E2E8F0); border-radius: 12px; }
.cv-feat-ic { font-size: 1.5rem; }
.cv-feat strong { font-size: 0.86rem; color: var(--text); }
.cv-feat span { font-size: 0.75rem; color: var(--text-muted); line-height: 1.35; }
.cv-welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.cv-welcome-actions .btn-primary { font-size: 1rem; padding: 12px 26px; }
.cv-load-w { cursor: pointer; display: inline-flex; align-items: center; }
.cv-welcome-note { font-size: 0.78rem; color: var(--text-muted); margin: 20px auto 0; max-width: 560px; line-height: 1.5; }
@media (max-width: 560px) { .cv-welcome-feats { grid-template-columns: 1fr 1fr; } }

.cv-ebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.cv-back-btn { font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--primary, #14387A); background: none; border: none; cursor: pointer; padding: 4px 0; }
.cv-back-btn:hover { text-decoration: underline; }
.cv-ebar-hint { font-size: 0.78rem; color: var(--text-muted); }

.cv-manage .cv-card-head { cursor: default; }
.cv-manage-toggle { font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--primary, #14387A); background: var(--surface, #fff); border: 1.5px solid var(--line-cool, #E2E8F0); border-radius: 8px; padding: 5px 12px; cursor: pointer; }
.cv-manage-body { padding: 12px 15px 15px; }
.cv-manage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.cv-manage-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text); padding: 7px 10px; border: 1px solid var(--line-cool, #E2E8F0); border-radius: 9px; cursor: pointer; }
.cv-manage-item.is-on { background: #EAF1FB; border-color: #C3D6F0; }
.cv-note { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin: 0 0 4px; }

.cv-collapse { font-size: 0.7rem !important; }
.cv-card.is-collapsed .cv-card-body { display: none; }

.cv-photo-row { display: flex; flex-direction: column; gap: 6px; }
.cv-photo-ctrl { display: flex; align-items: center; gap: 10px; }
.cv-photo-thumb { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--line-cool, #E2E8F0); }
.cv-cefr-sel { min-width: 0; }

/* preview: photo header, summary, skills, cefr */
.cv-h { display: flex; align-items: center; gap: 20px; }
.cv-h-text { flex: 1; min-width: 0; }
.cv-photo { width: 82px; height: 82px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #d8dee8; }
.tpl-classic .cv-h { flex-direction: column; }
.tpl-classic .cv-photo { margin-bottom: 6px; }
.cv-summary { margin: 0; font-size: 12.5px; color: #3a4658; line-height: 1.5; }
.cv-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-skill { font-size: 11.5px; background: #eef2f8; border: 1px solid #dbe1ea; border-radius: 999px; padding: 2px 11px; color: #2a3448; }
.tpl-modern .cv-skill { background: #e9eff9; border-color: #cfe0f5; color: #14387A; }
.cv-cefr b { color: #12203c; font-weight: 700; }

/* CV Builder — visual template chooser on the welcome screen */
.cv-tplpick-h { font-size: 0.82rem; font-weight: 700; color: var(--text-soft, #475569); margin: 6px 0 10px; }
.cv-tplpick { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.cv-tplcard { background: none; border: none; cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cvt { width: 122px; height: 158px; background: #fff; border: 2px solid var(--line-cool, #E2E8F0); border-radius: 8px; padding: 12px 11px; box-shadow: 0 3px 12px rgba(10,35,80,0.10); transition: border-color .15s, transform .15s; overflow: hidden; }
.cv-tplcard:hover .cvt { transform: translateY(-2px); }
.cv-tplcard.is-on .cvt { border-color: var(--primary, #14387A); box-shadow: 0 0 0 3px rgba(20,56,122,0.15); }
.cvt-h { margin-bottom: 9px; }
.cvt-name { display: block; height: 8px; width: 66%; background: #12203c; border-radius: 2px; margin-bottom: 4px; }
.cvt-sub { display: block; height: 4px; width: 42%; background: #9aa6b6; border-radius: 2px; }
.cvt-sh { height: 5px; width: 40%; background: #14387A; border-radius: 2px; margin: 8px 0 5px; }
.cvt-ln { height: 3px; width: 100%; background: #d6dde7; border-radius: 2px; margin-bottom: 4px; }
.cvt-ln.short { width: 62%; }
/* classic: centered header, serif feel (bar centered) */
.cvt-classic { text-align: center; }
.cvt-classic .cvt-h { border-bottom: 2px solid #12203c; padding-bottom: 6px; }
.cvt-classic .cvt-name { margin-left: auto; margin-right: auto; }
.cvt-classic .cvt-sub { margin-left: auto; margin-right: auto; }
.cvt-classic .cvt-sh { margin-left: auto; margin-right: auto; }
/* modern: blue accent bars on section heads */
.cvt-modern .cvt-name { background: #14387A; }
.cvt-modern .cvt-sh { position: relative; padding-left: 6px; background: #14387A; }
/* compact: denser lines */
.cvt-compact .cvt-h { margin-bottom: 6px; }
.cvt-compact .cvt-sh { height: 4px; margin: 5px 0 3px; }
.cvt-compact .cvt-ln { margin-bottom: 3px; }
.cv-tplcard-name { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 700; color: var(--text-soft, #475569); }
.cv-tplcard.is-on .cv-tplcard-name { color: var(--primary, #14387A); }
.cv-tplcard-tick { display: none; }
.cv-tplcard.is-on .cv-tplcard-tick { display: inline; color: #16A34A; }
/* editor toolbar "Template:" label */
.cv-tpls-wrap { display: inline-flex; align-items: center; gap: 8px; }
.cv-tpls-lab { font-size: 0.8rem; font-weight: 700; color: var(--text-soft, #475569); }

/* CV Builder — real scaled mini-CV thumbnails in the template chooser */
.cv-thumb { width: 176px; height: 234px; overflow: hidden; border: 2px solid var(--line-cool, #E2E8F0); border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(10,35,80,0.10); transition: border-color .15s, transform .15s, box-shadow .15s; pointer-events: none; }
.cv-tplcard:hover .cv-thumb { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,35,80,0.16); }
.cv-tplcard.is-on .cv-thumb { border-color: var(--primary, #14387A); box-shadow: 0 0 0 3px rgba(20,56,122,0.18); }
.cv-thumb-inner { width: 800px; transform: scale(0.22); transform-origin: top left; }
.cv-thumb-inner .cv-paper { box-shadow: none; border-radius: 0; max-width: none; width: 800px; padding: 34px 38px; }

/* ════════════════════════════════════════════════════════════════
   PREMIUM CV TEMPLATES — professional-grade output (overrides earlier)
   ════════════════════════════════════════════════════════════════ */
.cv-paper { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #2a3444; font-size: 13.2px; line-height: 1.58; padding: 48px 52px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cv-paper * { box-sizing: border-box; }

/* header */
.cv-h { display: flex; align-items: center; gap: 22px; margin: 0; }
.cv-h-text { flex: 1; min-width: 0; }
.cv-name { font-size: 27px; font-weight: 800; letter-spacing: -0.3px; color: #1a2230; margin: 0; line-height: 1.12; }
.cv-title { font-size: 13.5px; font-weight: 600; color: var(--cv-accent, #14387A); margin: 4px 0 0; }
.cv-ph { color: #b8c0cc; }
.cv-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--cv-accent, #14387A); }

/* contact banner */
.cv-contact { display: flex; flex-wrap: wrap; align-items: center; margin: 13px 0 0; font-size: 11.5px; color: #3f4b5c; background: #f3f6fb; border-radius: 9px; padding: 10px 15px; }
.cv-contact > span { display: inline-flex; align-items: center; }
.cv-contact a { color: var(--cv-accent, #14387A); text-decoration: none; }
.cv-sep { margin: 0 9px; color: #c6cdd9; }

/* section headers */
.cv-s { margin-top: 22px; }
.cv-s-h { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.055em; color: var(--cv-accent, #14387A); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1.5px solid var(--cv-accent, #14387A); }

/* entries: date gutter | body */
.cv-e { display: grid; grid-template-columns: 96px 1fr; column-gap: 18px; margin-bottom: 15px; }
.cv-e:last-child { margin-bottom: 0; }
.cv-e-date { font-size: 10.5px; font-weight: 700; color: #7c8898; text-align: right; padding-top: 2px; white-space: nowrap; letter-spacing: 0.02em; }
.cv-e-body { min-width: 0; }
.cv-e-title { font-weight: 700; font-size: 13.5px; color: #1a2230; line-height: 1.3; }
.cv-e-sub { font-size: 12.5px; color: #3f4b5c; font-style: italic; margin-top: 1px; }
.cv-e-meta { font-size: 11.5px; color: #7c8898; margin-top: 2px; }
.cv-e-extra { font-size: 12px; color: #3f4b5c; margin-top: 3px; line-height: 1.45; }
.cv-e-extra a { color: var(--cv-accent, #14387A); }

/* simple lists / blocks */
.cv-summary { font-size: 12.5px; color: #3f4b5c; margin: 0; line-height: 1.55; }
.cv-interests { font-size: 12.5px; margin: 0; color: #3f4b5c; }
.cv-langs { list-style: none; margin: 0; padding: 0; }
.cv-langs li { font-size: 12.5px; margin: 4px 0; }
.cv-cefr { color: #5a6474; } .cv-cefr b { color: var(--cv-accent, #14387A); font-weight: 700; }
.cv-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-skill { font-size: 11px; background: #f2f5fa; border: 1px solid #e6ecf4; color: #33415a; border-radius: 6px; padding: 4px 11px; }
.cv-refs { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 20px; }
.cv-ref { font-size: 11.5px; line-height: 1.45; }
.cv-mut { color: #7c8898; font-weight: 400; }
.cv-decl p { font-size: 11.5px; color: #3f4b5c; margin: 0; }
.cv-sign { display: flex; gap: 44px; margin-top: 26px; font-size: 11.5px; color: #7c8898; }
.cv-sign-line { display: block; width: 150px; border-top: 1px solid #9aa4b2; margin-bottom: 4px; }

/* ── CLASSIC — serif, centred name & contact, accent rules ── */
.tpl-classic { font-family: Georgia, "Times New Roman", serif; }
.tpl-classic .cv-h { flex-direction: column; text-align: center; gap: 12px; }
.tpl-classic .cv-name { font-family: "Playfair Display", Georgia, serif; font-size: 31px; letter-spacing: 0; }
.tpl-classic .cv-contact { justify-content: center; background: transparent; border-top: 1px solid #e2e7ee; border-bottom: 1px solid #e2e7ee; border-radius: 0; padding: 8px 0; }
.tpl-classic .cv-s-h { border-bottom-width: 1px; }

/* ── MODERN — sans, accent name, timeline dots ── */
.tpl-modern { font-family: "Inter", system-ui, sans-serif; }
.tpl-modern .cv-name { color: var(--cv-accent, #14387A); }
.tpl-modern .cv-s-h { border-bottom: none; padding-left: 13px; position: relative; }
.tpl-modern .cv-s-h::before { content: ""; position: absolute; left: 0; top: 0; bottom: 4px; width: 4px; border-radius: 2px; background: var(--cv-accent, #14387A); }
.tpl-modern .cv-e-body { border-left: 2px solid #e5e9f0; padding-left: 17px; position: relative; padding-bottom: 2px; }
.tpl-modern .cv-e-body::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--cv-accent, #14387A); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--cv-accent, #14387A); }

/* ── SIDEBAR — tinted left column with photo + contact + skills/languages ── */
.tpl-sidebar { display: grid; grid-template-columns: 33% 1fr; padding: 0; overflow: hidden; }
.tpl-sidebar .cv-side { background: linear-gradient(rgba(255,255,255,0.90), rgba(255,255,255,0.90)), var(--cv-accent, #14387A); padding: 30px 22px; }
.tpl-sidebar .cv-side .cv-photo { display: block; margin: 0 auto 16px; width: 104px; height: 104px; }
.tpl-sidebar .cv-side .cv-s-h { color: var(--cv-accent, #14387A); border-bottom: 1px solid rgba(20,56,122,0.18); }
.tpl-sidebar .cv-side-contact { font-size: 11.5px; color: #3a4656; line-height: 1.5; }
.tpl-sidebar .cv-side-contact > div { margin-bottom: 5px; word-break: break-word; }
.tpl-sidebar .cv-side-contact a { color: var(--cv-accent, #14387A); text-decoration: none; }
.tpl-sidebar .cv-side .cv-langs li, .tpl-sidebar .cv-side .cv-summary { font-size: 11.5px; }
.tpl-sidebar .cv-side .cv-skills { gap: 5px; }
.tpl-sidebar .cv-side .cv-skill { font-size: 10.5px; background: #fff; }
.tpl-sidebar .cv-main { padding: 30px 28px; min-width: 0; }
.tpl-sidebar .cv-main .cv-h { margin-bottom: 4px; }
.tpl-sidebar .cv-main .cv-name { color: var(--cv-accent, #14387A); }
.tpl-sidebar .cv-main .cv-s:first-of-type { margin-top: 8px; }
.tpl-sidebar .cv-e { grid-template-columns: 86px 1fr; }

/* ── COMPACT — dense, small, one-page friendly ── */
.tpl-compact { font-family: "Inter", system-ui, sans-serif; font-size: 12px; padding: 32px 36px; }
.tpl-compact .cv-name { font-size: 23px; }
.tpl-compact .cv-s { margin-top: 12px; }
.tpl-compact .cv-s-h { font-size: 10.5px; margin-bottom: 6px; padding-bottom: 3px; border-bottom-width: 1px; }
.tpl-compact .cv-e { margin-bottom: 8px; grid-template-columns: 80px 1fr; }
.tpl-compact .cv-e-title { font-size: 12.5px; }
.tpl-compact .cv-contact { padding: 8px 12px; font-size: 11px; }

/* thumbnails should reflect the premium look too (already scaled via .cv-thumb-inner) */
.cv-thumb-inner .tpl-sidebar { min-height: 1010px; }

/* CV headings must follow the template font, not the global Playfair h1-h4 rule */
.cv-name, .cv-s-h { font-family: inherit; }
.tpl-classic .cv-name { font-family: "Playfair Display", Georgia, serif; }

/* ════════════════════════════════════════════════════════════════
   CALCULATORS — two flanking nav columns with the display centred
   (left list · calculator · right list). Scoped to .calc-page so the
   Reference page's single-nav layout is untouched.
   ════════════════════════════════════════════════════════════════ */
.calc-page .calc-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 470px) 236px;
  grid-template-areas: "navA stage navB";
  gap: 22px; justify-content: center; align-items: start; max-width: none; margin: 0;
}
.calc-page .calc-nav-a { grid-area: navA; }
.calc-page .calc-stage { grid-area: stage; }
.calc-page .calc-nav-b { grid-area: navB; position: sticky; top: 82px; }
@media (max-width: 1040px) {
  .calc-page .calc-layout {
    grid-template-columns: 236px minmax(0, 1fr);
    grid-template-areas: "navA stage" "navB stage";
  }
  .calc-page .calc-nav-b { position: static; }
}
@media (max-width: 760px) {
  .calc-page .calc-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "navA" "navB" "stage";
    gap: 10px;
  }
  .calc-page .calc-nav-a, .calc-page .calc-nav-b { position: static; }
}

/* ════════════════════════════════════════════════════════════════
   QUICK REFERENCE — vibrant colour-coded section headers
   ════════════════════════════════════════════════════════════════ */
.ref-table .ref-group td { border-left: 4px solid var(--primary, #14387A); padding-left: 10px; }
.ref-table .ref-g-red td    { background: #FBECEF; color: #B3123E; border-left-color: #B3123E; }
.ref-table .ref-g-blue td   { background: #EAF0FA; color: #14387A; border-left-color: #14387A; }
.ref-table .ref-g-teal td   { background: #E3F1F4; color: #0E7490; border-left-color: #0E7490; }
.ref-table .ref-g-amber td  { background: #FBF0DD; color: #8A5A12; border-left-color: #C99A50; }
.ref-table .ref-g-purple td { background: #F1ECFB; color: #6D28D9; border-left-color: #6D28D9; }
.ref-note-inline { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: 0.82; font-size: 0.9em; }
.ref-table tr:not(.ref-group):not(:first-child):hover td { background: var(--bg, #F6F9FC); }

/* ════════════════════════════════════════════════════════════════
   CREDENTIAL EVALUATION page + homepage section
   ════════════════════════════════════════════════════════════════ */
.cred-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.cred-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; height: 58px; padding: 0 12px; border-radius: 14px;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.02rem;
  color: #fff; letter-spacing: 0.4px; box-shadow: 0 8px 20px rgba(20,56,122,0.20);
}
.cred-badge-overview { background: linear-gradient(135deg,#16A34A,#4ADE80); }
.cred-badge-cgfns    { background: linear-gradient(135deg,#0E7490,#22B8CF); }
.cred-badge-wes      { background: linear-gradient(135deg,#14387A,#3B6FD4); }
.cred-badge-ece      { background: linear-gradient(135deg,#6D28D9,#9B6BF0); }
.cred-badge-spantran { background: linear-gradient(135deg,#B4541E,#E2784A); }
.cred-badge-choose   { background: linear-gradient(135deg,#8A5A12,#C99A50); }
.cred-head-text { min-width: 0; }
.cred-head-text h2 { margin: 0 0 2px; }
.cred-site { font-size: 0.9rem; font-weight: 700; color: var(--primary); text-decoration: none; word-break: break-word; }
.cred-site:hover { text-decoration: underline; }
.cred-block { margin-top: 15px; }
.cred-h {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-soft); margin: 0 0 5px;
}
.cred-block > p { margin: 0; color: var(--lead-ink); line-height: 1.6; }
.cred-block ul { margin: 4px 0 0; padding-left: 20px; }
.cred-block li { margin: 5px 0; color: var(--lead-ink); line-height: 1.5; }
.cred-block strong { color: var(--primary); }
.cred-links { list-style: none; padding-left: 0; margin: 4px 0 0; }
.cred-links li { position: relative; padding-left: 22px; margin: 6px 0; }
.cred-links li::before { content: "🔗"; position: absolute; left: 0; font-size: 0.82em; top: 1px; }
.cred-links a { color: var(--primary); font-weight: 600; text-decoration: none; }
.cred-links a:hover { text-decoration: underline; }
.cred-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0 0; }
.cred-pill { font-size: 0.76rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary); }
.cred-pill-gold { background: #F7ECD6; color: #8A5A12; }
/* video "coming soon" placeholder */
.cred-video {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; min-height: 148px; border-radius: 16px; text-align: center; padding: 22px 18px;
  background: linear-gradient(150deg, var(--primary-tint), #ffffff);
  border: 1.5px dashed var(--primary-soft); color: var(--primary);
}
.cred-video-play {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 1.15rem; box-shadow: 0 6px 16px rgba(20,56,122,0.30);
}
.cred-video-soon {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  background: var(--accent); color: #3a2a08; padding: 3px 11px; border-radius: 999px;
}
.cred-video-note { font-size: 0.88rem; color: var(--text-soft); max-width: 400px; line-height: 1.5; }
.cred-cta { margin-top: 18px; }
.cred-callout {
  margin-top: 15px; padding: 13px 15px; border-radius: 12px;
  background: rgba(201,154,80,0.10); border: 1px solid rgba(201,154,80,0.38);
  font-size: 0.92rem; color: var(--lead-ink); line-height: 1.55;
}
/* percentage → GPA conversion visual */
.cred-convert { display: flex; align-items: stretch; gap: 10px; margin: 12px 0 4px; }
.cred-convert-box {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px;
  padding: 11px 14px; border-radius: 12px;
  background: var(--primary-tint); border: 1px solid var(--line-cool);
}
.cred-convert-box-alt { background: #F7ECD6; border-color: rgba(201,154,80,0.42); }
.cred-convert-k { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-soft); }
.cred-convert-v { font-size: 0.95rem; font-weight: 700; color: var(--primary); }
.cred-convert-box-alt .cred-convert-v { color: #8A5A12; }
.cred-convert-arrow { align-self: center; flex: 0 0 auto; font-size: 1.35rem; font-weight: 800; color: var(--text-soft); }
.cred-convert-note { font-size: 0.85rem; color: var(--text-soft); margin: 8px 0 0; line-height: 1.5; }
@media (max-width: 480px) {
  .cred-convert { flex-direction: column; }
  .cred-convert-arrow { transform: rotate(90deg); }
}
/* wider stage for the richer credential cards */
@media (min-width: 761px) {
  .cred-page .calc-layout { grid-template-columns: 236px minmax(0, 660px); }
  .cred-page .calc-stage .calc-card { max-width: 660px; }
}

/* Homepage — Credential Evaluation feature section */
.cred-home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 6px 0 22px; }
.cred-home-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 15px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line-cool); text-decoration: none; color: inherit;
  box-shadow: 0 8px 22px rgba(20,56,122,0.07); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cred-home-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,56,122,0.13); border-color: var(--primary-soft); }
.cred-home-badge {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
  height: 42px; min-width: 52px; padding: 0 12px; border-radius: 11px;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 0.92rem; color: #fff;
}
.cred-home-card h3 { margin: 0; font-size: 1rem; }
.cred-home-card p { margin: 0; font-size: 0.86rem; color: var(--text-soft); line-height: 1.45; }
.cred-home-card .arrow { margin-top: auto; font-weight: 700; color: var(--primary); font-size: 0.85rem; }
@media (max-width: 760px) {
  .cred-home-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .cred-head { gap: 11px; }
  .cred-badge { min-width: 60px; height: 52px; font-size: 0.92rem; }
}
