/*
Theme Name: BankerNP Practice Hub
Theme URI: https://bankernp.com/
Author: BankerNP
Author URI: https://bankernp.com/
Description: A modern, bilingual-ready WordPress practice hub for Nepal banking exam aspirants.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: bankernp
*/

:root {
  --ink: #102a43;
  --ink-2: #243b53;
  --muted: #627d98;
  --line: #dfe7ef;
  --paper: #ffffff;
  --canvas: #f5f8fb;
  --brand: #d9273c;
  --brand-dark: #b7192d;
  --teal: #117a72;
  --teal-soft: #e7f5f2;
  --navy-soft: #eaf0f6;
  --gold: #f4b740;
  --success: #23815a;
  --danger: #bb2d3b;
  --shadow-sm: 0 6px 18px rgba(16, 42, 67, .07);
  --shadow: 0 22px 60px rgba(16, 42, 67, .12);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(17, 122, 114, .32); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 10px; left: 10px; width: auto; height: auto; clip: auto; padding: 10px 15px; background: var(--paper); }
.site-container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-soft { background: var(--canvas); }
.section-dark { color: #fff; background: var(--ink); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head > div { max-width: 700px; }
.section-head.center { display: block; text-align: center; max-width: 760px; margin-inline: auto; margin-bottom: 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 13px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 23px; height: 2px; background: currentColor; }
.section-dark .eyebrow { color: #76d5c7; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.16; letter-spacing: -.03em; }
h1 { font-size: clamp(42px, 6vw, 76px); margin-bottom: 24px; }
h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 16px; }
h3 { font-size: 22px; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }
.section-dark .lead { color: #c8d7e5; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(217, 39, 60, .24); }
.btn-secondary { background: var(--ink); }
.btn-secondary:hover { background: #071b2d; box-shadow: 0 10px 26px rgba(16, 42, 67, .22); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: #b9c8d6; background: #fff; box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f5f8fb; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 800; }
.text-link:hover { gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-size: 12px; font-weight: 800; }
.pill-free { background: #e9f7ee; color: var(--success); }
.pill-soon { background: #fff4da; color: #8a5d00; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* Header */
.topbar { background: var(--ink); color: #d8e5f0; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; }
.topbar strong { color: #fff; }
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(223, 231, 239, .8); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--brand); color: white; box-shadow: 0 7px 18px rgba(217,39,60,.22); }
.brand-mark svg { width: 25px; height: 25px; }
.brand span span { color: var(--brand); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--ink-2); font-size: 14px; font-weight: 750; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-login { padding: 10px 8px; font-size: 14px; font-weight: 800; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 92px 0 84px; background: linear-gradient(138deg,#fff 0%,#f6f9fc 48%,#eef6f5 100%); }
.hero::before { content: ""; position: absolute; top: -160px; right: -130px; width: 540px; height: 540px; border: 1px solid rgba(17,122,114,.12); border-radius: 50%; box-shadow: 0 0 0 80px rgba(17,122,114,.025), 0 0 0 160px rgba(17,122,114,.018); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 75px; }
.hero-copy { max-width: 650px; }
.hero h1 span { color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 30px; }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; font-weight: 700; }
.avatar-stack { display: flex; }
.avatar-stack span { display: grid; width: 32px; height: 32px; margin-left: -8px; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--navy-soft); color: var(--ink); font-size: 11px; font-weight: 900; }
.avatar-stack span:first-child { margin-left: 0; background: var(--teal); color: #fff; }
.dashboard-preview { position: relative; padding: 16px; border: 1px solid rgba(223,231,239,.9); border-radius: 28px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.preview-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 18px; }
.preview-greeting { font-weight: 900; }
.preview-greeting small { display: block; color: var(--muted); font-weight: 600; }
.streak { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 999px; background: #fff4da; color: #855b00; font-size: 12px; font-weight: 900; }
.today-card { padding: 24px; border-radius: 21px; background: var(--ink); color: #fff; }
.today-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.today-card p { margin-bottom: 6px; color: #b7cbda; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.today-card h3 { margin-bottom: 0; }
.progress-ring { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: conic-gradient(var(--gold) 0 68%, rgba(255,255,255,.12) 68% 100%); }
.progress-ring::after { content: "68%"; display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--ink); font-size: 11px; font-weight: 900; }
.task-list { display: grid; gap: 10px; margin-top: 20px; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; background: rgba(255,255,255,.08); font-size: 13px; }
.task-check { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; }
.task.done .task-check { border-color: var(--teal); background: var(--teal); }
.task span:last-child { margin-left: auto; color: #b7cbda; font-size: 11px; }
.preview-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 10px; }
.preview-stat { padding: 15px 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.preview-stat strong { display: block; font-size: 19px; }
.preview-stat span { color: var(--muted); font-size: 11px; }
.floating-note { position: absolute; right: -28px; bottom: 52px; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 800; }
.floating-note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(35,129,90,.12); }

/* Trust and cards */
.trust-strip { border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1.25fr repeat(4,1fr); align-items: center; }
.trust-grid > div { padding: 27px 24px; border-left: 1px solid var(--line); }
.trust-grid > div:first-child { padding-left: 0; border-left: 0; }
.trust-label { color: var(--muted); font-size: 13px; font-weight: 750; }
.trust-stat strong { display: block; font-size: 22px; letter-spacing: -.03em; }
.trust-stat span { color: var(--muted); font-size: 12px; }
.exam-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.exam-card { position: relative; display: flex; min-height: 310px; flex-direction: column; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.exam-card:hover { transform: translateY(-5px); border-color: #becddb; box-shadow: var(--shadow-sm); }
.exam-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.exam-badge { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; background: var(--navy-soft); color: var(--ink); font-weight: 900; }
.exam-card:nth-child(2) .exam-badge, .exam-card:nth-child(5) .exam-badge { background: var(--teal-soft); color: var(--teal); }
.exam-card:nth-child(3) .exam-badge { background: #fff0f2; color: var(--brand); }
.exam-card h3 { margin: 24px 0 9px; }
.exam-card p { color: var(--muted); font-size: 14px; }
.exam-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: auto 0 19px; color: var(--muted); font-size: 12px; font-weight: 700; }
.exam-meta span { display: flex; align-items: center; gap: 5px; }
.exam-card .text-link { justify-content: space-between; padding-top: 17px; border-top: 1px solid var(--line); }

/* Study loop */
.loop-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 80px; }
.loop-visual { position: relative; min-height: 530px; padding: 30px; border-radius: var(--radius-lg); background: var(--ink); color: white; }
.loop-score { display: flex; align-items: center; justify-content: space-between; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,.12); }
.score-big { font-size: 54px; font-weight: 900; letter-spacing: -.06em; }
.score-big span { color: #98adbd; font-size: 23px; }
.score-note { color: #88ded0; font-size: 13px; font-weight: 800; }
.bar-list { display: grid; gap: 20px; margin-top: 29px; }
.bar-head { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.bar-fill { height: 100%; border-radius: inherit; background: var(--teal); }
.bar-row.weak .bar-fill { background: var(--brand); }
.recommend-card { position: absolute; right: -24px; bottom: 30px; width: min(330px, 80%); padding: 20px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.recommend-card small { color: var(--brand); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.recommend-card p { margin: 8px 0 13px; color: var(--muted); font-size: 13px; }
.step-list { display: grid; gap: 7px; margin-top: 31px; }
.step-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.step-number { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--navy-soft); font-weight: 900; }
.step-item h3 { margin-bottom: 7px; font-size: 18px; }
.step-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* Diagnostic */
.diagnostic-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; padding: 50px; overflow: hidden; border-radius: var(--radius-lg); background: var(--brand); color: white; }
.diagnostic-wrap .eyebrow { color: #ffd8dd; }
.diagnostic-wrap .lead { color: #ffe7ea; }
.diagnostic-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.diagnostic-points span { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 750; }
.diagnostic-card { align-self: center; padding: 25px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 22px 50px rgba(99,8,23,.22); }
.diagnostic-card-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.diagnostic-card h3 { margin-bottom: 3px; }
.diagnostic-card p { margin: 0; color: var(--muted); font-size: 13px; }
.question-preview { margin: 22px 0; }
.question-preview small { color: var(--muted); font-weight: 800; }
.question-preview strong { display: block; margin-top: 6px; }
.option-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.option-preview span { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.diagnostic-card .btn { width: 100%; margin-top: 19px; }

/* Feature rows */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature-icon { display: grid; width: 48px; height: 48px; margin-bottom: 24px; place-items: center; border-radius: 15px; background: var(--teal-soft); color: var(--teal); }
.feature-card h3 { margin-bottom: 9px; font-size: 19px; }
.feature-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.news-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.news-feature { min-height: 410px; padding: 38px; border-radius: var(--radius-lg); background: linear-gradient(145deg,var(--ink),#1e4a65); color: white; }
.news-feature .pill { background: rgba(255,255,255,.1); color: #fff; }
.news-feature h3 { max-width: 550px; margin-top: 110px; font-size: 31px; }
.news-feature p { color: #bfd0dc; }
.news-list { display: grid; gap: 12px; }
.news-item { display: grid; grid-template-columns: 48px 1fr; gap: 15px; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.news-date { padding: 7px 5px; border-radius: 11px; background: var(--navy-soft); text-align: center; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.news-date strong { display: block; font-size: 17px; }
.news-item h4 { margin-bottom: 5px; font-size: 15px; }
.news-item p { margin: 0; color: var(--muted); font-size: 12px; }

/* Pricing and FAQ */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); align-items: stretch; gap: 18px; }
.price-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.price-card.featured { position: relative; border: 2px solid var(--teal); box-shadow: var(--shadow); }
.price-card.featured::before { content: "BEST FOR SERIOUS PREP"; position: absolute; top: -13px; left: 25px; padding: 5px 10px; border-radius: 999px; background: var(--teal); color: white; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.price { margin: 17px 0; font-size: 40px; font-weight: 900; letter-spacing: -.06em; }
.price small { color: var(--muted); font-size: 13px; letter-spacing: 0; }
.price-features { display: grid; gap: 12px; min-height: 190px; margin: 23px 0; padding: 0; list-style: none; }
.price-features li { display: flex; gap: 9px; color: var(--ink-2); font-size: 13px; }
.price-features li::before { content: "✓"; color: var(--success); font-weight: 900; }
.price-card .btn { width: 100%; }
.faq-list { max-width: 850px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; border: 0; background: transparent; text-align: left; font-weight: 850; cursor: pointer; }
.faq-answer { display: none; padding: 0 45px 22px 0; color: var(--muted); font-size: 14px; }
.faq-item.open .faq-answer { display: block; }
.faq-icon { transition: transform .2s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Catalog */
.page-hero { padding: 70px 0 50px; background: var(--canvas); }
.page-hero h1 { max-width: 760px; font-size: clamp(38px,5vw,60px); }
.page-hero .lead { max-width: 720px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.catalog-search { position: relative; flex: 1; max-width: 440px; }
.catalog-search input { width: 100%; min-height: 50px; padding: 10px 16px 10px 44px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); }
.catalog-search svg { position: absolute; top: 15px; left: 15px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.filter-btn.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.package-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.package-card { display: flex; min-height: 350px; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: .2s ease; }
.package-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.package-card[hidden] { display: none; }
.package-brand { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.package-logo { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--navy-soft); font-size: 13px; font-weight: 900; }
.package-card h3 { margin: 22px 0 10px; }
.package-card > p { color: var(--muted); font-size: 13px; }
.package-data { display: grid; grid-template-columns: repeat(3,1fr); margin: auto 0 21px; padding: 16px 0; border-block: 1px solid var(--line); }
.package-data div { border-left: 1px solid var(--line); text-align: center; }
.package-data div:first-child { border-left: 0; }
.package-data strong { display: block; font-size: 16px; }
.package-data span { color: var(--muted); font-size: 10px; }
.package-actions { display: flex; gap: 8px; }
.package-actions .btn { flex: 1; min-height: 44px; padding: 10px 14px; }

/* Exam player */
.exam-page { min-height: 100vh; background: var(--canvas); }
.exam-shell { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 22px; padding: 35px 0 70px; }
.exam-main, .exam-sidebar-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.exam-player-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 25px; border-bottom: 1px solid var(--line); }
.exam-player-head h1 { margin: 0; font-size: 18px; }
.timer { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--navy-soft); font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }
.timer.warning { background: #fff0f2; color: var(--brand); }
.exam-progress { height: 5px; background: var(--line); }
.exam-progress span { display: block; height: 100%; width: 10%; background: var(--teal); transition: width .2s ease; }
.question-area { padding: 35px; }
.question-kicker { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; font-weight: 800; }
.question-text { margin: 20px 0 25px; font-size: clamp(19px,2vw,24px); line-height: 1.45; }
.option-list { display: grid; gap: 11px; }
.answer-option { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 13px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; text-align: left; cursor: pointer; transition: .15s ease; }
.answer-option:hover { border-color: #9db1c2; background: #f9fbfd; }
.answer-option.selected { border-color: var(--teal); background: var(--teal-soft); }
.answer-option.correct { border-color: var(--success); background: #e9f7ee; }
.answer-option.wrong { border-color: var(--danger); background: #fff0f2; }
.option-letter { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: var(--navy-soft); font-size: 12px; font-weight: 900; }
.answer-option.selected .option-letter { background: var(--teal); color: #fff; }
.exam-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 35px; border-top: 1px solid var(--line); }
.exam-sidebar { display: grid; align-content: start; gap: 14px; }
.exam-sidebar-card { padding: 22px; }
.exam-sidebar-card h3 { font-size: 15px; }
.question-palette { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
.palette-btn { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 11px; font-weight: 850; cursor: pointer; }
.palette-btn.active { border-color: var(--ink); background: var(--ink); color: white; }
.palette-btn.answered { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.palette-btn.flagged { box-shadow: inset 0 -3px var(--gold); }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; color: var(--muted); font-size: 10px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--line); }
.legend i.answered { background: var(--teal); }
.legend i.flagged { background: var(--gold); }
.submit-exam { width: 100%; margin-top: 18px; }
.result-panel { display: none; padding: 35px; text-align: center; }
.result-panel.visible { display: block; }
.exam-question-view.hidden, .exam-controls.hidden { display: none; }
.result-score { display: grid; width: 150px; height: 150px; margin: 12px auto 24px; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal) 0 var(--score,0%),var(--navy-soft) var(--score,0%) 100%); }
.result-score::after { content: attr(data-score); display: grid; width: 122px; height: 122px; place-items: center; border-radius: 50%; background: white; font-size: 35px; font-weight: 900; }
.result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 25px 0; }
.result-stat { padding: 15px; border-radius: 13px; background: var(--canvas); }
.result-stat strong { display: block; font-size: 21px; }
.result-stat span { color: var(--muted); font-size: 11px; }
.result-actions { display: flex; justify-content: center; gap: 10px; }
.explanation { display: none; margin-top: 18px; padding: 16px; border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; background: var(--teal-soft); color: var(--ink-2); font-size: 13px; }
.review-mode .explanation { display: block; }

/* Single exam intro */
.single-exam-hero { padding: 65px 0; background: var(--canvas); }
.single-exam-grid { display: grid; grid-template-columns: 1fr 340px; gap: 50px; }
.single-exam-hero h1 { max-width: 800px; font-size: clamp(36px,5vw,58px); }
.single-exam-panel { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.single-exam-panel .btn { width: 100%; }
.detail-list { display: grid; gap: 12px; margin: 18px 0; }
.detail-row { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.detail-row strong { color: var(--ink); }

/* Footer */
.site-footer { padding: 70px 0 24px; background: #091e31; color: #c5d5e2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 45px; padding-bottom: 50px; }
.site-footer .brand { color: #fff; }
.footer-about { max-width: 340px; margin-top: 18px; font-size: 13px; }
.site-footer h3 { color: white; font-size: 14px; letter-spacing: 0; }
.footer-links { display: grid; gap: 10px; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.footer-disclaimer { max-width: 720px; }
.empty-state { grid-column: 1/-1; padding: 60px 20px; border: 1px dashed #b9c8d6; border-radius: var(--radius); text-align: center; color: var(--muted); }
.content-page { max-width: 820px; padding: 70px 0; }
.content-page a { color: var(--brand); text-decoration: underline; }

@media (max-width: 1020px) {
  .main-nav { gap: 18px; }
  .hero-grid, .loop-grid { gap: 40px; }
  .package-grid, .exam-grid { grid-template-columns: repeat(2,1fr); }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .exam-shell { grid-template-columns: 1fr 260px; }
}

@media (max-width: 820px) {
  .section { padding: 70px 0; }
  .topbar-inner span:last-child { display: none; }
  .main-nav { position: absolute; top: calc(100% + 8px); right: 16px; left: 16px; display: none; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .main-nav ul { display: grid; gap: 16px; }
  .menu-toggle { display: grid; place-items: center; }
  .header-login { display: none; }
  .header-actions .btn { min-height: 44px; padding: 9px 15px; }
  .hero-grid, .loop-grid, .diagnostic-wrap, .news-grid, .single-exam-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  .dashboard-preview { max-width: 610px; }
  .floating-note { right: 12px; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid > div { border-bottom: 1px solid var(--line); }
  .trust-grid > div:first-child { grid-column: 1/-1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-features { min-height: 0; }
  .exam-shell { grid-template-columns: 1fr; }
  .exam-sidebar { grid-row: 1; }
  .exam-sidebar-card:first-child { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1/-1; }
}

@media (max-width: 580px) {
  .site-container { width: min(calc(100% - 28px), var(--container)); }
  .topbar { text-align: center; }
  .topbar-inner { justify-content: center; }
  .brand { font-size: 20px; }
  .header-actions .btn { display: none; }
  h1 { font-size: 42px; }
  .hero { padding: 55px 0; }
  .hero-actions .btn { width: 100%; }
  .preview-stats { grid-template-columns: 1fr; }
  .floating-note { display: none; }
  .trust-grid, .exam-grid, .package-grid, .feature-grid, .diagnostic-points { grid-template-columns: 1fr; }
  .trust-grid > div { border-left: 0; }
  .section-head, .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .loop-visual { min-height: 570px; padding: 22px; }
  .recommend-card { right: 14px; }
  .diagnostic-wrap { padding: 30px 22px; }
  .option-preview { grid-template-columns: 1fr; }
  .news-feature { min-height: 370px; padding: 26px; }
  .news-feature h3 { margin-top: 75px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; }
  .question-area, .result-panel { padding: 25px 20px; }
  .exam-controls { padding: 17px 20px; }
  .exam-controls .btn { padding-inline: 15px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
  .question-palette { grid-template-columns: repeat(5,1fr); }
  .exam-sidebar-card { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
