@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-rP2Hp2ywxg089UriCZOIHQ.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-rP2Hp2ywxg089UriCZOIHQ.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-rP2Hp2ywxg089UriCZOIHQ.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-rP2Hp2ywxg089UriCZOIHQ.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --brand: #036ee6;
  --brand-mid: #2585eb;
  --brand-deep: #024ea8;
  --brand-pale: #e8f3fe;
  --accent: var(--brand);
  --accent-pale: var(--brand-pale);
  --success: #024ea8;
  --success-pale: var(--brand-pale);
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(3, 110, 230, 0.06);
  --shadow-md: 0 6px 20px rgba(3, 110, 230, 0.1);
  --shadow-brand: 0 2px 10px rgba(3, 110, 230, 0.25);
  --shadow-brand-lg: 0 6px 22px rgba(3, 110, 230, 0.4);
  --shadow-brand-xl: 0 24px 48px rgba(3, 110, 230, 0.35);
  --radius: 10px;
  --radius-lg: 14px;
  --wrap-max: 1120px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --section-gap: 48px;
  --card-gap: 16px;
  --font-display: "DM Sans", Arial, system-ui, sans-serif;
  --font-body: "DM Sans", Arial, system-ui, sans-serif;
  --font-secondary: Arial, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  color: var(--brand-deep);
}

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

@media (max-width: 540px) {
  .wrap {
    padding: 0 var(--space-2);
  }
}

/* ── NAV ── */
.nav,
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: var(--space-2) 0;
}

.nav-inner {
  position: relative;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 901px) {
  .nav-actions .nav-btn {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-actions .nav-auth-link {
    display: none;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}

.logo-icon:not(img) {
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img.logo-icon {
  display: block;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.nav-links a:not(.nav-btn) {
  padding: 7px 11px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.nav-links a:not(.nav-btn):hover {
  color: var(--text);
  background: var(--brand-pale);
}

.nav-btn {
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.nav-btn:hover {
  transform: translateY(-1px);
}

.nav-btn-outline {
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--border);
}

.nav-btn-fill {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 760px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav,
  header.site-nav {
    position: relative;
  }
}

/* ── PAGE ── */
main {
  padding: 40px 0 56px;
}

main.home-main {
  padding: 0;
}

main.page {
  padding: 40px 0 56px;
}

.page-hero {
  margin-bottom: 8px;
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero .lead {
  margin-bottom: 20px;
}

.page-section {
  margin-bottom: 24px;
}

.page-section:last-child {
  margin-bottom: 0;
}

.stack-sm {
  margin-top: 12px;
}

.stack-md {
  margin-top: 20px;
}

.link-row {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

.link-row a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Links inside muted body text */
.card p a,
.lead a,
.sec-lead a,
.faq-item p a,
.faq-inner a,
.breadcrumb a,
.link-row a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card p a:hover,
.lead a:hover,
.sec-lead a:hover,
.faq-item p a:hover,
.faq-inner a:hover,
.breadcrumb a:hover {
  color: var(--brand-deep);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 52ch;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.pill {
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--brand-pale);
  color: var(--brand);
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-bottom: var(--card-gap);
  box-shadow: var(--shadow-sm);
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

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

.card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.card ul li + li {
  margin-top: 6px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 3px 14px rgba(61, 75, 138, 0.3);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
  box-shadow: var(--shadow-brand-lg);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--brand-mid);
  color: var(--brand);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: var(--space-4) 0;
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.45;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.faq-chev {
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.open .faq-chev {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-inner {
  padding: 0 18px 14px;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── RELATED / CHIPS ── */
.related,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related a,
.chip {
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.related a:hover,
a.chip:hover {
  border-color: var(--brand-mid);
  background: var(--brand-pale);
  color: var(--brand);
}

.chip-group {
  margin-bottom: 28px;
}

.chip-group-label {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── HUB GRID ── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--card-gap);
  margin-bottom: var(--card-gap);
}

.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.hub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.hub-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.hub-card h3 a {
  color: var(--brand);
  text-decoration: none;
}

.hub-card h3 a:hover {
  color: var(--brand-deep);
}

.hub-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── SAMPLE QUESTIONS ── */
.sample-questions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sample-question {
  background: var(--brand-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.sample-question .q-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sample-question .q-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.sample-question ol {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--muted);
}

.sample-question ol li {
  margin-bottom: 4px;
}

.sample-question details {
  font-size: 0.85rem;
}

.sample-question summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
  padding: 4px 0;
}

.sample-question .answer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  line-height: 1.6;
}

.sample-question .answer strong {
  color: var(--success);
}

/* ── HOMEPAGE SECTIONS ── */
section {
  padding: var(--section-gap) 0;
}

.sec-label {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.sec-lead {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 48ch;
  line-height: 1.65;
  margin-bottom: 36px;
}

.sec-head {
  margin-bottom: 36px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* hero */
.hero {
  padding: var(--space-6) 0 var(--space-5);
}

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

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

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

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

.hero-brand {
  color: var(--brand);
}

@media (max-width: 760px) {
  .hero-inner {
    text-align: center;
  }

  .hero-badge,
  .hero-cta,
  .stats {
    justify-content: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-pale);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: var(--space-3);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-4);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
}

/* topic cards */
.feat-grid,
.guide-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--card-gap);
}

.topic-card,
.feat,
.guide {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}

a.topic-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.topic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.topic-card h3 {
  color: var(--brand);
}

.t-icon,
.feat-ico {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.topic-card h3,
.feat h3,
.guide h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.guide h3 a {
  color: var(--brand);
  text-decoration: none;
}

.guide h3 a:hover {
  color: var(--brand-deep);
}

.topic-card p,
.feat p,
.guide p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  counter-reset: step;
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.step-num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand-pale);
  position: absolute;
  top: 8px;
  right: 14px;
  line-height: 1;
  pointer-events: none;
}

.step h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.step p {
  font-size: 0.82rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.faq-section .card {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.faq-section .sec-head {
  text-align: center;
}

/* cta banner */
.cta {
  background: var(--brand);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  margin-bottom: 64px;
  color: #fff;
}

.cta h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #fff;
  margin-bottom: 10px;
}

.cta p {
  opacity: 0.85;
  font-size: 0.95rem;
  max-width: 36ch;
  margin: 0 auto 28px;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cta .btn-primary {
  background: #fff;
  color: var(--brand);
}

.cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
  font-size: 0.82rem;
  color: var(--muted);
}

footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

footer a {
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
}

footer a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
  text-align: left;
}

.sitemap-col h3 {
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sitemap-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-col li {
  margin-bottom: 6px;
}

.sitemap-col a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand);
}

.footer-copy {
  text-align: center;
  margin-top: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── STATS BAR ── */
.stats-bar {
  padding: 28px 0;
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-bar-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-bar-val {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.stats-bar-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── EXAM CARDS ── */
.exam-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--card-gap);
}

.exam-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.exam-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.exam-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-pale);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.exam-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.exam-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exam-card-list li + li {
  margin-top: 2px;
}

.exam-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s;
}

.exam-card-link:hover {
  background: var(--brand-pale);
  color: var(--brand);
}

.exam-card-chev {
  color: var(--muted);
  font-size: 0.85rem;
}

.exam-card-count {
  font-size: 0.78rem;
  color: var(--muted);
  margin-right: auto;
  margin-left: 8px;
}

/* ── GUIDE HORIZONTAL CARDS ── */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.guide-card-h {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.guide-card-h:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

@media (max-width: 540px) {
  .guide-card-h {
    grid-template-columns: 1fr;
  }
}

.guide-card-h-img {
  width: 100%;
  height: 88px;
  border-radius: var(--radius);
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand-pale) 0%, var(--border) 100%);
}

.guide-card-h-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.guide-card-h-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.guide-card-h-body h3 a:hover {
  color: var(--brand);
}

.guide-card-h-body p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.guide-card-h-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
}

/* ── SUBJECT ICON GRID ── */
.subject-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--card-gap);
}

.subject-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.subject-icon-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.subject-icon-square {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.subject-icon-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* ── PHONE MOCKUP ── */
.hero-phone {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(280px, 100%);
  padding: 12px;
  background: var(--brand-deep);
  border-radius: 32px;
  box-shadow: var(--shadow-brand-xl);
}

.phone-screen {
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 9 / 19;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.hero-store-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--brand);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #fff;
  margin-bottom: 10px;
}

.cta-banner p {
  opacity: 0.85;
  font-size: 0.95rem;
  max-width: 42ch;
  margin: 0 auto 20px;
}

.cta-progress {
  max-width: 320px;
  height: 6px;
  margin: 0 auto 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.cta-progress-fill {
  width: 72%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
}

.cta-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand);
}

.cta-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.cta-banner-link {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-banner-link:hover {
  color: #fff;
}

/* ── PAGE HERO BAND ── */
.page-hero-band {
  background: var(--bg);
  padding: 32px 0 40px;
  margin: -40px 0 32px;
  border-bottom: 1px solid var(--border);
}

.page-hero-band .breadcrumb {
  margin-bottom: 16px;
}

/* ── FOOTER BRAND ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .footer-brand {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
  }
}

.footer-brand-info {
  max-width: 360px;
}

.footer-brand-info .logo {
  margin-bottom: 12px;
}

.footer-mission {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--brand);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--brand-pale);
}

.sitemap-grid {
  grid-template-columns: repeat(3, 1fr);
}

.sec-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
}

.sec-head-row .sec-head {
  margin-bottom: 0;
}

.sec-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.nav-auth-link {
  font-weight: 600;
  color: var(--brand) !important;
}

.faq-accordion .card {
  border: none;
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
}

.faq-accordion .faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-accordion .faq-item.open {
  background: var(--brand-pale);
}

.faq-accordion .faq-q {
  padding: 18px 22px;
}

.not-found-card {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 32px;
  padding: 40px 32px;
}

/* ── PHONE UI PREVIEW ── */
.phone-ui {
  width: 100%;
  height: 100%;
  padding: 16px 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-ui-header {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.phone-ui-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-ui-item {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 12px;
  background: var(--brand-pale);
  border-radius: 8px;
}

/* ── SUBJECT LIBRARY ── */
.subject-library {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.subject-library-lead {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 4px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.search-field-icon {
  font-size: 1rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.search-field input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: transparent;
}

.search-field input::placeholder {
  color: var(--muted);
}

.recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-pale);
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
  font-family: inherit;
}

.recent-chip:hover {
  background: var(--border);
  color: var(--brand-deep);
}

.recent-chip--active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.recent-chip--active:hover {
  background: var(--brand-deep);
  color: #fff;
}

.subject-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--card-gap);
}

.subject-progress-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.subject-progress-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.subject-progress-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.subject-progress-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-pale);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.subject-progress-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.subject-progress-board {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.subject-progress-count {
  font-size: 0.78rem;
  color: var(--muted);
}

.subject-progress-app-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin-top: auto;
}

.subject-library-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.promo-banner {
  position: relative;
  padding: 28px 24px;
  background: var(--brand);
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.promo-banner-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  margin-bottom: 12px;
}

.promo-banner-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.promo-banner-text {
  font-size: 0.88rem;
  opacity: 0.9;
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 36ch;
}

.promo-banner-btn {
  background: #fff !important;
  color: var(--brand) !important;
}

.hub-card--compact {
  padding: 16px;
}

.hub-card--compact h3 {
  font-size: 0.9rem;
}

.hub-card--compact p {
  font-size: 0.78rem;
}

/* ── Question paper PDF hub (pscpdfbanks-inspired) ── */
.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;
}

.qp-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.qp-quick-grid-home {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .qp-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qp-quick-grid-home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.qp-quick-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.qp-quick-tile:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.qp-quick-tile-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.qp-quick-tile-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.qp-quick-tile-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.qp-collection-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .qp-collection-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .qp-collection-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.qp-collection-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.qp-collection-card:hover {
  border-color: var(--brand);
}

.qp-collection-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.qp-collection-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.qp-collection-card-body strong {
  font-size: 0.92rem;
  color: var(--text);
}

.qp-collection-card-body span {
  font-size: 0.8rem;
  color: var(--muted);
}

.qp-advantage-banner {
  border-left: 4px solid var(--brand);
  margin-bottom: 20px;
}

.qp-advantage-banner h2 {
  margin-top: 0;
}

.qp-browse-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .qp-browse-filters {
    flex-direction: row;
    align-items: stretch;
  }

  .qp-browse-search {
    flex: 1;
  }
}

.qp-collection-select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--text);
  min-width: 180px;
}

.qp-inline-collection {
  font-size: 0.85em;
}

.qp-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.qp-pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.qp-pdf-table th,
.qp-pdf-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.qp-pdf-table th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--surface-alt, #f8f9fb);
}

.qp-table-paper-link {
  font-weight: 600;
  color: var(--text);
}

.qp-table-action {
  font-size: 0.85rem;
  white-space: nowrap;
}

.qp-table-sep {
  margin: 0 4px;
  color: var(--muted);
}

.qp-table-practice {
  font-weight: 600;
  color: var(--brand);
}

@media (max-width: 720px) {
  .qp-pdf-table thead {
    display: none;
  }

  .qp-pdf-table tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 0;
  }

  .qp-pdf-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: none;
    padding: 8px 12px;
  }

  .qp-pdf-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    flex-shrink: 0;
  }

  .qp-pdf-table td:first-child {
    font-weight: 600;
    border-bottom: 1px solid var(--border);
  }

  .qp-pdf-table td:first-child::before {
    display: none;
  }
}
