/* ExamVitals — shared stylesheet
   Palette: ink navy / clinical paper / teal accent / amber highlight
   Type: Fraunces (display) + IBM Plex Sans (body) + IBM Plex Mono (data/scores)
*/

:root{
  --ink:        #102A43;
  --ink-soft:   #33506e;
  --paper:      #F3F6F5;
  --paper-dim:  #E7ECEA;
  --card:       #FFFFFF;
  --teal:       #1B7F79;
  --teal-deep:  #10534F;
  --amber:      #E2A33B;
  --line:       rgba(16,42,67,0.14);
  --radius-card: 14px;
  --shadow: 0 12px 30px rgba(16,42,67,0.10);
  --maxw: 1120px;
  --nav-bg:     #0B2447;
  --nav-bg-soft: #12305e;
  --nav-text:   #F3F6F5;
  --nav-text-dim: #B9C7DA;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  line-height:1.55;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,.display{
  font-family:"Fraunces", Georgia, serif;
  color: var(--ink);
  margin:0 0 .4em 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height:1.06; font-weight:560; }
h2{ font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3{ font-size: 1.15rem; }

p{ margin:0 0 1em 0; color: var(--ink-soft); }
a{ color: var(--teal-deep); text-decoration: none; }
a:hover{ text-decoration: underline; }

.mono{ font-family:"IBM Plex Mono", ui-monospace, monospace; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.site-nav{
  position: sticky; top:0; z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 28px; max-width: var(--maxw); margin:0 auto;
}
.logo{
  font-family:"Fraunces", serif; font-weight:650; font-size:1.28rem; color:var(--nav-text);
  display:flex; align-items:center; gap:9px;
}
.logo .dot{ width:9px; height:9px; border-radius:2px; background: var(--teal); display:inline-block; transform: rotate(45deg); }
.logo:hover{ text-decoration:none; }
.logo-icon{ height:38px; width:auto; display:block; }

.nav-links{ display:flex; align-items:center; gap: 26px; list-style:none; margin:0; padding:0; }
.nav-links > li{ position:relative; }
.nav-links a{ color: var(--nav-text); font-size: .96rem; font-weight:500; }
.nav-links a:hover{ color: var(--amber); text-decoration:none; }

.nav-links .current > a{ color: var(--amber); }

.dropdown-toggle{
  background:none; border:none; cursor:pointer; font: inherit; color:var(--nav-text);
  font-size:.96rem; font-weight:500; display:flex; align-items:center; gap:5px; padding:0;
}
.dropdown-toggle:hover{ color: var(--amber); }
.caret{ width:8px; height:8px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform: rotate(45deg); margin-top:-4px; transition: transform .15s ease; }
.dropdown.open .caret{ transform: rotate(-135deg); margin-top:2px; }

.dropdown-menu{
  position:absolute; top: calc(100% + 14px); left:50%; transform: translateX(-50%);
  background: var(--card); border:1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 8px; min-width: 220px;
  display:none; flex-direction:column;
}
.dropdown.open .dropdown-menu{ display:flex; }
.dropdown-menu a{
  padding: 9px 12px; border-radius:7px; color: var(--ink); font-size:.94rem;
}
.dropdown-menu a:hover{ background: var(--paper-dim); text-decoration:none; color:var(--teal-deep); }

.nav-cta{ font-size:.9rem; color: var(--nav-text-dim); }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; align-items:center;
  gap:5px; width:40px; height:40px; border:none; background:none; cursor:pointer; padding:0; flex:none;
}
.nav-toggle span{ display:block; width:22px; height:2px; background:var(--nav-text); border-radius:2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px){
  .nav-row{ position:relative; }
  .nav-toggle{ display:flex; }
  .nav-links{
    display:flex; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background: var(--card); border-bottom:1px solid var(--line);
    box-shadow: var(--shadow); padding: 6px 28px 18px; max-height: calc(100vh - 64px); overflow-y:auto;
    opacity:0; transform: translateY(-8px); visibility:hidden; pointer-events:none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .nav-links.open{
    opacity:1; transform:translateY(0); visibility:visible; pointer-events:auto;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
  }
  .nav-links > li{ width:100%; }
  .nav-links a{ display:block; padding:13px 2px; border-bottom:1px solid var(--paper-dim); color: var(--ink); }
  .nav-links a:hover{ color: var(--teal-deep); }
  .nav-links .current > a{ color: var(--teal-deep); }
  .nav-links .dropdown-toggle{ width:100%; justify-content:space-between; padding:13px 2px; border-bottom:1px solid var(--paper-dim); color: var(--ink); }
  .dropdown-menu{
    position:static; transform:none; box-shadow:none; border:none; min-width:0;
    background:transparent; padding: 0 0 6px 14px; display:none;
  }
  .dropdown.open .dropdown-menu{ display:flex; }
  .dropdown-menu a{ padding:11px 2px; border-bottom:none; }
}

/* ---------- Hero ---------- */
.hero{ padding: 64px 0 40px; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items:center; }
.eyebrow{
  font-family:"IBM Plex Mono", monospace; text-transform:uppercase; letter-spacing:.12em;
  font-size:.72rem; color: var(--teal-deep); font-weight:600; margin-bottom: 14px; display:block;
}
.hero-sub{ font-size:1.08rem; max-width: 46ch; }
.btn-row{ display:flex; gap:14px; margin-top: 26px; flex-wrap:wrap; }
.btn{
  display:inline-block; padding: 12px 22px; border-radius: 8px; font-weight:600; font-size:.95rem;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover{ text-decoration:none; }
.btn-primary{ background: var(--ink); color:#fff; }
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16,42,67,0.25); }
.btn-ghost{ background: transparent; color: var(--ink); border:1.4px solid var(--line); }
.btn-ghost:hover{ border-color: var(--teal); color:var(--teal-deep); }

/* ---------- Finder hero (homepage) ---------- */
.hero-finder{ padding: 56px 0 0; overflow:hidden; background:#fff; }
.finder-top{
  display:grid; grid-template-columns: 1.15fr auto .85fr; align-items:start; gap: 24px;
  max-width: var(--maxw); margin:0 auto; padding: 0 28px;
}
.finder-copy h1{ margin-bottom: 18px; }
.finder-copy .hero-sub{ font-size:1.06rem; }
.finder-copy .hero-sub strong{ background: rgba(226,163,59,0.28); padding: 0 3px; border-radius:3px; }

.hero-badge{ margin-top: 18px; }

/* "Ace Your Board Exam" section */
.eyebrow-underline{ position:relative; padding-bottom:12px; }
.eyebrow-underline::after{
  content:""; position:absolute; left:0; bottom:0; width:56px; height:3px;
  background: var(--amber); border-radius:2px;
}
.ace-copy h2{ margin: 4px 0 16px; }
.ace-copy > p{ font-size:1.05rem; }
.ace-prompt{ margin: 18px 0 10px !important; font-size:1rem; }
.ace-prompt strong{ color: var(--ink); }
.ace-search{ position:relative; max-width:420px; }
.ace-search input{
  width:100%; padding:13px 46px 13px 16px; border:1px solid var(--line); border-radius:8px;
  font-family:"IBM Plex Sans", sans-serif; font-size:.96rem; color: var(--ink); background: var(--card);
}
.ace-search input:focus{ outline:2px solid var(--teal); outline-offset:1px; }
.ace-search-btn{
  position:absolute; right:6px; top:50%; transform:translateY(-50%); width:32px; height:32px;
  border:none; background:none; color: var(--ink-soft); cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.ace-search-btn:hover{ color: var(--teal-deep); }
.ace-suggestions{
  display:none; position:absolute; left:0; right:0; top:calc(100% + 6px); margin:0; padding:6px;
  list-style:none; background: var(--card); border:1px solid var(--line); border-radius:10px;
  box-shadow: var(--shadow); max-height:260px; overflow-y:auto; z-index:20;
}
.ace-suggestions.open{ display:block; }
.ace-suggestions li{ padding:9px 10px; border-radius:6px; cursor:pointer; font-size:.92rem; color: var(--ink); }
.ace-suggestions li:hover, .ace-suggestions li.active{ background: var(--paper-dim); color: var(--teal-deep); }
.ace-suggestions li.no-match{ color: var(--ink-soft); cursor:default; }
.ace-suggestions li.no-match:hover{ background:none; color: var(--ink-soft); }

.ace-visual{ position:relative; }
.ace-badge{ position:absolute; top:-18px; left:-10px; z-index:5; }
.ace-laptop{ display:block; width:100%; max-width:480px; height:auto; margin-left:auto; }
@media (max-width: 860px){
  .ace-badge{ top:-10px; left:0; }
  .ace-badge svg{ width:96px; height:96px; }
  .ace-laptop{ max-width:340px; margin: 0 auto; }
  .ace-visual{ display:flex; justify-content:center; margin-top:36px; }
}
.hero-badge svg{ display:block; }
.hero-badge .badge-ring-text{ font-family:"IBM Plex Mono",monospace; font-size:10.5px; letter-spacing:2.5px; fill: var(--ink-soft); text-transform:uppercase; }

.hero-photo{ position:relative; align-self:end; }
.hero-photo img{
  display:block; width:100%; max-width:400px; height:280px; object-fit:cover;
  border-radius: 18px; box-shadow: var(--shadow); margin-left:auto;
}

.finder-card{
  max-width: var(--maxw); margin: 34px auto 0; padding: 30px 32px 28px;
  background: var(--card); border:1px solid var(--line); border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow); position:relative;
}
.finder-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom: 18px; }
.finder-head h3{ margin:0 0 2px; font-size:1.15rem; }
.finder-head p{ margin:0; font-size:.88rem; color: var(--ink-soft); }
.institutional-link{ font-size:.9rem; font-weight:600; text-decoration:underline; white-space:nowrap; }

.finder-label{ font-size:.84rem; color: var(--ink-soft); font-weight:600; margin: 0 0 8px; }

.finder-tabs{ display:flex; gap:10px; }
.tab-btn{
  flex:1; padding: 13px 16px; border-radius:9px; border:1.6px solid var(--line); background: var(--paper);
  font-weight:700; font-size:.92rem; cursor:pointer; color: var(--ink-soft); font-family:"IBM Plex Sans",sans-serif;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.tab-btn.active{ border-color: #34C759; background: rgba(52,199,89,0.14); color: var(--ink); }
.tab-btn:hover{ color: var(--ink); }

.finder-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.finder-col{ display:flex; flex-direction:column; gap: 14px; }

.select-field{
  width:100%; padding: 13px 16px; border-radius:9px; border:1.4px solid var(--line);
  background: var(--paper); color: var(--ink); font-family:"IBM Plex Sans",sans-serif; font-size:.95rem;
  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'><path d='M1 1l5 5 5-5' stroke='%2333506e' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat; background-position: right 16px center;
  cursor:pointer;
}
.select-field:disabled{ opacity:.55; cursor:not-allowed; }

.btn-finder{
  width:100%; padding: 15px 18px; border-radius:9px; border:none; background: var(--teal-deep); color:#fff;
  font-weight:700; font-size:.98rem; cursor:pointer; font-family:"IBM Plex Sans",sans-serif;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-finder:hover{ transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16,83,79,0.28); }

@media (max-width: 980px){
  .hero-finder{ padding-top:0; }
  .finder-top{
    display:flex; flex-direction:column; padding:0; gap:0; position:relative;
  }
  .finder-top .finder-copy{ order:2; padding: 24px 28px 0; }
  .finder-top .hero-photo{
    order:1; display:block; align-self:stretch; margin:0;
  }
  .finder-top .hero-photo img{
    width:100%; max-width:none; height:230px; border-radius:0; box-shadow:none; margin:0;
  }
  .finder-top .hero-badge{
    order:1; display:block; position:absolute; top:16px; left:16px; margin:0; z-index:2;
    background:#fff; border-radius:50%; padding:8px; box-shadow:0 6px 16px rgba(16,42,67,0.22); line-height:0;
  }
  .finder-top .hero-badge svg{ width:92px; height:92px; display:block; }
}
@media (max-width: 720px){
  .finder-grid{ grid-template-columns: 1fr; }
  .finder-head{ flex-direction:column; }
}

/* ---------- Signature: flip question card ---------- */
.qcard-stage{ perspective: 1400px; }
.qcard{
  position:relative; width:100%; max-width:380px; height: 300px;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1);
  margin-left:auto;
}
.qcard.flipped{ transform: rotateY(180deg); }
.qcard-face{
  position:absolute; inset:0; backface-visibility:hidden;
  background: var(--card); border-radius: var(--radius-card); border:1px solid var(--line);
  box-shadow: var(--shadow); padding: 22px 24px;
}
.qcard-face.back{ transform: rotateY(180deg); background: var(--ink); color:#fff; }
.qcard-face.back p, .qcard-face.back .qtag{ color: rgba(255,255,255,0.78); }
.qtag{ font-family:"IBM Plex Mono",monospace; font-size:.68rem; text-transform:uppercase; letter-spacing:.1em; color: var(--teal-deep); }
.qstem{ font-size:.98rem; margin: 10px 0 14px; color: var(--ink); font-weight:500; }
.qchoice{
  display:flex; gap:10px; align-items:flex-start; font-size:.87rem; padding:7px 0; color: var(--ink-soft);
  border-top:1px solid var(--paper-dim);
}
.qchoice:first-of-type{ border-top:none; }
.qletter{ font-family:"IBM Plex Mono",monospace; font-weight:600; color: var(--teal-deep); }
.qcard-hint{ position:absolute; bottom:14px; right:18px; font-size:.72rem; color:var(--ink-soft); font-family:"IBM Plex Mono",monospace; }
.qcard-face.back .qcard-hint{ color: rgba(255,255,255,0.6); }
.ring{ display:flex; align-items:center; gap:12px; margin-top:16px; }
.ring svg{ transform: rotate(-90deg); }
.ring-label{ font-family:"IBM Plex Mono",monospace; font-size:.8rem; color: rgba(255,255,255,0.85); }

/* ---------- Sections ---------- */
section{ padding: 56px 0; }
.section-head{ max-width: 60ch; margin-bottom: 36px; }
.section-head p{ font-size:1.02rem; }

.product-shot{ margin: 0 0 36px; }
.product-shot img{
  display:block; width:100%; max-width:820px; height:auto; margin:0 auto;
  border-radius: var(--radius-card); border:1px solid var(--line); box-shadow: var(--shadow);
}

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

.photo-feature{ display:flex; flex-direction:column; gap:18px; }
.photo-feature .photo-frame{
  border-radius: var(--radius-card); overflow:hidden; box-shadow: var(--shadow); border:1px solid var(--line);
}
.photo-feature img{ width:100%; height:340px; object-fit:cover; display:block; }

.chart-frame{
  border-radius: var(--radius-card); overflow:hidden; box-shadow: var(--shadow); border:1px solid var(--line);
  background:#fff;
}
.chart-frame img{ width:100%; height:auto; display:block; }
.photo-caption{ font-weight:700; font-size:20px; line-height:1.45; color: var(--ink); margin:0; }
.photo-credit{ font-size:.72rem; color: var(--ink-soft); margin:-10px 0 0; }
@media (max-width: 760px){
  .photo-feature img{ height:240px; }
}
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

.stats-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; text-align:center; }
.stat-icon{ width:52px; height:52px; display:block; margin:0 auto 14px; }
.stat-value{ font-family:"Fraunces", Georgia, serif; font-weight:650; font-size: clamp(1.7rem, 2.6vw, 2.15rem); color: var(--ink); line-height:1; }
.stat-label{ margin: 8px 0 0; color: var(--ink-soft); font-size:.98rem; }
@media (max-width: 720px){
  .stats-grid{ grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 860px){
  .hero-grid, .grid-3, .grid-4, .grid-2{ grid-template-columns: 1fr; }
  .qcard{ margin: 0 auto; }
}

.card{
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius-card);
  padding: 24px; box-shadow: 0 4px 14px rgba(16,42,67,0.05);
}
.card h3{ margin-bottom:.35em; }
.card p{ font-size:.94rem; margin-bottom:0; }
.card .icon{ width:34px; height:34px; margin-bottom:14px; }

/* Specialty index-card tile (flash-card motif) */
.tile{
  position:relative; background: var(--card); border:1px solid var(--line);
  border-radius: 10px; padding: 20px 20px 18px; display:flex; flex-direction:column;
  gap:6px; overflow:hidden;
}
.tile::before{
  content:""; position:absolute; top:0; right:0; width:0; height:0;
  border-style:solid; border-width: 0 22px 22px 0; border-color: transparent var(--paper-dim) transparent transparent;
}
.tile-img{
  display:block; width:calc(100% + 40px); margin: -20px -20px 14px; height:110px;
  object-fit:cover; border-radius:10px 10px 0 0;
}
.tile:hover{ border-color: var(--teal); }
.tile .tag{ font-family:"IBM Plex Mono",monospace; font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; color: var(--teal-deep); }
.tile h3{ margin: 2px 0 2px; font-size:1.05rem; }
.tile p{ font-size:.88rem; margin-bottom:6px; }
.tile .go{ font-size:.85rem; font-weight:600; color: var(--ink); }
.tile:hover .go{ color: var(--teal-deep); }

/* How it works — genuine sequence, numbering earned */
.steps{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; counter-reset: step; }
.step{ position:relative; padding-left: 46px; }
.step::before{
  counter-increment: step; content: counter(step);
  position:absolute; left:0; top:0; width:32px; height:32px; border-radius:50%;
  background: var(--ink); color:#fff; font-family:"IBM Plex Mono",monospace; font-size:.85rem;
  display:flex; align-items:center; justify-content:center;
}
@media (max-width: 860px){
  .steps{ grid-template-columns: 1fr; gap: 24px; }
}

/* CME specialty jump-to selector */
.specialty-jump{
  margin-top: 34px; display:flex; align-items:center; gap:14px;
  background: var(--card); border:1.4px solid var(--amber); border-radius: 10px;
  padding: 18px 22px; box-shadow: 0 4px 14px rgba(16,42,67,0.05);
}
.specialty-jump::before{
  content:""; flex:none; width:0; height:0;
  border-style:solid; border-width:7px 0 7px 11px; border-color: transparent transparent transparent var(--amber);
}
.specialty-jump .select-field{ flex:1; }
@media (max-width: 720px){
  .specialty-jump{ flex-direction:column; align-items:stretch; }
  .specialty-jump::before{ display:none; }
}

/* Quotes */
.quote{ background: var(--card); border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; padding: 20px 24px; }
.quote p{ font-size:1rem; color: var(--ink); font-style:italic; }
.quote cite{ font-style:normal; font-family:"IBM Plex Mono",monospace; font-size:.78rem; color: var(--ink-soft); }

/* Page hero (interior pages) */
.page-hero{ background:#fff; color: var(--ink); padding: 58px 0 46px; border-bottom: 1px solid var(--line); }
.page-hero h1{ color: var(--ink); }
.page-hero p{ color: var(--ink-soft); max-width: 60ch; }

.page-hero-flex{ display:flex; align-items:center; justify-content:space-between; gap:40px; }
.page-hero-flex .page-hero-copy{ flex:1; min-width:280px; }
.page-hero-art{
  flex:none; width:172px; height:172px; background: var(--ink); border-radius: 50%;
  display:flex; align-items:center; justify-content:center; padding:24px;
}
.page-hero-art svg{ display:block; width:100%; height:100%; }
@media (max-width: 860px){
  .page-hero-flex{ flex-direction:column-reverse; align-items:flex-start; gap:22px; }
  .page-hero-art{ width:104px; height:104px; align-self:flex-end; }
}

.stat-row{ display:flex; gap:36px; margin-top:26px; flex-wrap:wrap; }
.stat b{ display:block; font-family:"IBM Plex Mono",monospace; font-size:1.5rem; color: var(--ink); }
.stat span{ font-size:.82rem; color: var(--ink-soft); }

.list-check{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.list-check li{ display:flex; gap:10px; align-items:flex-start; color:var(--ink-soft); font-size:.96rem; }
.list-check li::before{ content:"✓"; color: var(--teal-deep); font-weight:700; flex:none; }

.cta-band{ background: var(--teal-deep); color:#fff; border-radius: 16px; padding: 40px; text-align:center; }
.cta-band h2{ color:#fff; }
.cta-band p{ color: rgba(255,255,255,0.85); }
.cta-band .btn-primary{ background:#fff; color: var(--teal-deep); }
.cta-band .btn-primary:hover{ box-shadow: 0 8px 18px rgba(0,0,0,0.2); }

/* Blog */
.post-card{
  display:flex; flex-direction:column; gap:6px;
  text-decoration:none; color: var(--ink);
}
.post-card-img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 4px;
}
.post-card h3{ margin: 0; font-size: 1.05rem; line-height:1.3; color: var(--ink); }
.post-card:hover h3{ color: var(--teal-deep); }
.post-card .post-byline{
  margin-top: 2px;
  font-size: .85rem;
  color: var(--ink-soft);
  font-style: normal;
}
.post-meta{ font-family:"IBM Plex Mono",monospace; font-size:.72rem; color: var(--teal-deep); text-transform:uppercase; letter-spacing:.06em; }
.post-card h3{ font-size:1.2rem; }
article.post{ max-width: 68ch; margin: 0 auto; }
article.post h2{ margin-top:1.4em; }
article.post p{ font-size:1.02rem; color: var(--ink-soft); }

/* Pricing plans (exam detail pages) */
.plan-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:18px; align-items:stretch; }
.plan{
  position:relative; background:var(--card); border:1px solid var(--line); border-radius: var(--radius-card);
  padding:28px 22px 22px; display:flex; flex-direction:column;
}
.plan.featured{ border-color: var(--teal); box-shadow: var(--shadow); }
.plan-badge{
  position:absolute; top:-12px; left:50%; transform:translateX(-50%); background: var(--amber); color:var(--ink);
  font-family:"IBM Plex Mono",monospace; font-size:.66rem; text-transform:uppercase; letter-spacing:.06em;
  padding:4px 12px; border-radius:20px; white-space:nowrap;
}
.plan h3{ margin-bottom:2px; }
.plan-duration{ font-size:.84rem; color: var(--ink-soft); margin-bottom:14px; }
.plan-price{ font-family:"IBM Plex Mono",monospace; font-size:1.85rem; color:var(--ink); margin:0 0 2px; }
.plan-price .save{ font-size:.78rem; color: var(--teal-deep); font-weight:600; margin-left:8px; }
.plan-qcount{ font-size:.8rem; color: var(--ink-soft); margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid var(--paper-dim); }
.plan ul{ list-style:none; margin:0 0 22px; padding:0; display:grid; gap:8px; flex:1; }
.plan ul li{ font-size:.83rem; color: var(--ink-soft); display:flex; gap:8px; align-items:flex-start; }
.plan ul li::before{ content:"✓"; color: var(--teal-deep); font-weight:700; flex:none; }
.plan .btn{ text-align:center; width:100%; }

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

/* Topic chips */
.topic-chips{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{ background: var(--paper-dim); border:1px solid var(--line); border-radius:20px; padding:6px 14px; font-size:.83rem; color: var(--ink-soft); }

/* Breadcrumb (exam detail pages) */
.crumbs{ font-family:"IBM Plex Mono",monospace; font-size:.74rem; color: var(--ink-soft); margin-bottom:14px; }
.crumbs a{ color: var(--teal-deep); }
.crumbs a:hover{ color: var(--ink); }

/* Footer */
footer{ background: var(--nav-bg); border-top: 1px solid rgba(255,255,255,0.08); padding: 44px 0 60px; margin-top: 40px; }
footer p{ color: var(--nav-text-dim); }
.social-links{ display:flex; gap:10px; margin-top:18px; }
.social-links a{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,0.22);
  display:flex; align-items:center; justify-content:center; color: var(--nav-text-dim); flex:none;
}
.social-links a:hover{ border-color: var(--amber); color: var(--amber); background: rgba(255,255,255,0.06); }
.social-links svg{ width:17px; height:17px; display:block; }
.foot-grid{ display:grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-grid h4{ font-family:"IBM Plex Mono",monospace; font-size:.74rem; text-transform:uppercase; letter-spacing:.08em; color: var(--nav-text-dim); margin: 0 0 12px; }
.foot-grid ul{ list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.foot-grid a{ color: var(--nav-text); font-size:.9rem; }
.foot-grid a:hover{ color: var(--amber); }
.foot-bottom{ margin-top: 34px; padding-top: 20px; border-top:1px solid rgba(255,255,255,0.14); font-size:.82rem; color: var(--nav-text-dim); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
@media (max-width: 860px){ .foot-grid{ grid-template-columns: 1fr 1fr; } }

/* Participate modal */
.modal-overlay{
  position: fixed; inset: 0; background: rgba(16,42,67,0.6);
  display: none; align-items: center; justify-content: center;
  padding: 16px; z-index: 300;
  overflow-y: auto; /* lets the whole overlay scroll if the box is taller than the screen */
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.open{ display: flex; }
.modal-box{
  background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow);
  padding: 24px 22px 20px; max-width: 380px; width: 100%; position: relative;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px); /* dynamic viewport height: accounts for mobile browser UI (address bar, etc.) */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: auto 0; /* keeps the box from being clipped when it's taller than the overlay's centered space */
  /* Visible, slim scrollbar so it's obvious the popup can scroll, on any device that supports it */
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.modal-box::-webkit-scrollbar{ width: 6px; }
.modal-box::-webkit-scrollbar-track{ background: transparent; }
.modal-box::-webkit-scrollbar-thumb{ background: var(--line); border-radius: 999px; }
.modal-box::-webkit-scrollbar-thumb:hover{ background: var(--ink-soft); }
.modal-close{
  position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border-radius: 50%;
  background: none; border: none; font-size: 1.2rem; line-height: 1; color: var(--ink-soft); cursor: pointer;
}
.modal-close:hover{ background: var(--paper-dim); color: var(--ink); }
.modal-box h3{ margin: 0 0 8px; padding-right: 20px; font-size: 1.15rem; }
.modal-box p{ color: var(--ink-soft); font-size: .88rem; margin: 0 0 16px; }
.modal-box p b{ color: var(--ink); }
.modal-actions{ display: flex; gap: 10px; }
.modal-actions .btn{ flex: 1; text-align: center; }

.form-group{ margin-bottom: 12px; text-align:left; }
.form-group label{ display:block; font-size:.85rem; font-weight:600; color: var(--ink); margin-bottom:5px; }
.form-group input, .form-group select, .form-group textarea{
  width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:8px;
  font-family:"IBM Plex Sans", sans-serif; font-size:.95rem; color: var(--ink); background: var(--paper);
}
.form-group textarea{ resize: vertical; min-height: 96px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ outline:2px solid var(--teal); outline-offset:1px; }
.form-group input:disabled{ background: var(--paper-dim); color: var(--ink-soft); cursor: not-allowed; }
.form-check{ display:flex; align-items:center; }
.form-check .check-label{ display:flex; align-items:center; gap:8px; font-size:.9rem; font-weight:500; color: var(--ink); margin:0; cursor:pointer; }
.form-check input[type="checkbox"]{ width:16px; height:16px; margin:0; accent-color: var(--teal); cursor:pointer; }
.form-note{ font-size:.8rem; color: var(--ink-soft); margin: -4px 0 16px; }
.confirm-summary{
  background: var(--paper-dim); border-radius: 10px; padding:14px 16px; margin:0 0 20px; font-size:.92rem; color: var(--ink);
}
.confirm-summary div{ margin-bottom:4px; }
.confirm-summary div:last-child{ margin-bottom:0; }

/* ---------- Cookie / privacy consent banner ---------- */
.consent-banner{
  position: fixed; left:0; right:0; bottom:0; z-index: 999;
  background: var(--paper-dim); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(16,42,67,0.12);
  padding: 20px 28px;
  transform: translateY(100%);
  transition: transform .35s ease;
}
.consent-banner.open{ transform: translateY(0); }
.consent-inner{
  max-width: var(--maxw); margin: 0 auto;
  display:flex; align-items:center; gap:28px; flex-wrap:wrap;
}
.consent-text{ flex:1 1 420px; font-size:.88rem; color: var(--ink-soft); margin:0; }
.consent-text a{ color: var(--teal-deep); font-weight:600; }
.consent-actions{ display:flex; gap:12px; flex:0 0 auto; margin-left:auto; }
.consent-actions .btn{ padding:11px 26px; font-size:.9rem; }
.consent-btn-ok{ background: var(--nav-bg); color:#fff; border:none; }
.consent-btn-ok:hover{ transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16,42,67,0.25); }
.consent-btn-cancel{ background: #fff; color: var(--ink); border:1.4px solid var(--line); }
.consent-btn-cancel:hover{ background: var(--paper); }

@media (max-width: 640px){
  .consent-banner{ padding: 18px 18px 22px; }
  .consent-inner{ gap:16px; }
  .consent-actions{ width:100%; margin-left:0; }
  .consent-actions .btn{ flex:1; text-align:center; }
}

/* ---------- Testimonials: student contact links ---------- */
.contact-links{
  columns: 2;
  column-gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .92rem;
}
.contact-links li{
  margin-bottom: 8px;
  break-inside: avoid;
}
.contact-links a{
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 480px){
  .contact-links{ columns: 1; }
}

@media (max-width: 600px){
  .modal-overlay{
    align-items: flex-start;
    padding: 8px;
  }
  .modal-box{
    max-width: 100%;
    width: 100%;
    padding: 20px 16px 16px;
    border-radius: 16px;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    margin-top: 8px;
  }
  .modal-box h3{ font-size: 1.08rem; padding-right: 26px; }
  .modal-box p{ font-size: .86rem; }
  .modal-close{ top: 8px; right: 8px; }
  .modal-actions{ flex-direction: column; }
  .form-group input, .form-group select, .form-group textarea{
    font-size: 16px; /* prevents iOS Safari from auto-zooming in on focus */
  }
}

/* ---------- Testimonials: star ratings ---------- */
.stars{
  display: inline-flex;
  gap: 1px;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1;
}
.stars .filled{ color: var(--amber); }
.stars .empty{ color: var(--line); }

.post-byline{
  margin-top: 6px;
  font-size: .9rem;
  color: var(--ink-soft);
  font-style: italic;
}

.post-hero-img{
  width: 100%;
  max-width: 68ch;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 22px auto 6px;
}

/* Page loader — shown on first load and while navigating to another page */
.page-loader{
  position: fixed; inset: 0; z-index: 9999;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .35s ease, visibility .35s ease;
}
.page-loader.loader-hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo-wrap{ position: relative; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; }
.loader-logo{ width: 38px; height: 38px; object-fit: contain; animation: loaderPulse 1.1s ease-in-out infinite; }
.loader-ring{
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--paper-dim); border-top-color: var(--teal);
  animation: loaderSpin .8s linear infinite;
}
@keyframes loaderSpin{ to{ transform: rotate(360deg); } }
@keyframes loaderPulse{ 0%, 100%{ transform: scale(1); opacity: 1; } 50%{ transform: scale(.86); opacity: .7; } }
@media (prefers-reduced-motion: reduce){
  .loader-logo, .loader-ring{ animation: none; }
}
