/* ==========================================================================
   ExamKits — main stylesheet
   Mobile-first · design tokens · no framework
   ========================================================================== */

:root {
  --navy-900: #06285f;
  --navy: #0b3b8c;
  --navy-700: #0d47a1;
  --blue: #1565c0;
  --blue-50: #eef5ff;
  --green: #1fa54a;
  --green-600: #178a3c;
  --green-50: #eaf7ef;
  --gold: #f4a51c;
  --gold-50: #fff6e5;
  --ink: #0f1f3d;
  --text: #3a4659;
  --muted: #667085;
  --line: #e3e9f2;
  --bg: #ffffff;
  --soft: #f5f9ff;
  --danger: #d92d20;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 90, .06), 0 1px 3px rgba(16, 40, 90, .06);
  --shadow: 0 6px 24px -8px rgba(16, 40, 90, .18), 0 2px 6px rgba(16, 40, 90, .05);
  --shadow-lg: 0 24px 48px -16px rgba(16, 40, 90, .28);
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw + .5rem, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2vw + .8rem, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--green); color: #fff; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 6vw, 80px); }
.section-sm { padding-block: clamp(32px, 4vw, 48px); }
.bg-soft { background: var(--soft); }
.text-center { text-align: center; }
.text-green { color: var(--green); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .2s, background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 16px; font-size: .9rem; border-radius: 9px; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(180deg, #25b553, var(--green-600)); color: #fff; box-shadow: 0 6px 16px -6px rgba(31, 165, 74, .6); }
.btn-primary:hover { color: #fff; background: linear-gradient(180deg, #22a84d, #137a34); box-shadow: 0 10px 22px -8px rgba(31, 165, 74, .7); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; color: var(--green-600); text-decoration: none; font-size: .95rem; }
.link-arrow:hover { color: var(--navy); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 20px -10px rgba(16, 40, 90, .25); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.75rem; color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.brand-name span { color: var(--green); }
.brand-tag { font-size: .66rem; color: var(--navy-900); font-weight: 600; margin-top: 5px; white-space: nowrap; }
.main-nav { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--blue-50); color: var(--navy); }
.nav-actions { display: none; gap: 10px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

/* mobile nav panel */
@media (max-width: 1023.98px) {
  .main-nav.is-open { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 12px 20px 40px; border-top: 1px solid var(--line); animation: slideDown .25s var(--ease); }
  .nav-list > li { border-bottom: 1px solid var(--line); position: relative; }
  .nav-list > li > a { display: block; padding: 16px 0; font-size: 1.05rem; font-family: var(--font-head); font-weight: 600; }
  .nav-list a[aria-current="page"] { color: var(--green-600); }
  .dropdown-toggle { position: absolute; right: 0; top: 8px; width: 44px; height: 44px; border: 0; background: var(--soft); border-radius: 10px; display: grid; place-items: center; color: var(--navy); }
  .dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .dropdown { display: none; padding: 0 0 16px; }
  .dropdown.is-open { display: grid; gap: 16px; }
  .nav-actions-mobile { display: flex; margin-top: 24px; }
  .nav-actions-mobile .btn { flex: 1; }
  body.nav-open { overflow: hidden; }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .nav-actions { display: flex; }
  .nav-actions-mobile, .nav-toggle { display: none !important; }
  .nav-list { display: flex; align-items: center; gap: 6px; }
  .nav-list > li { position: relative; display: flex; align-items: center; }
  .nav-list > li > a { padding: 10px 12px; position: relative; }
  .nav-list > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--green); border-radius: 2px; transform: scaleX(0); transition: transform .2s var(--ease); }
  .nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-list > li > a[aria-current="page"] { color: var(--green-600); font-weight: 600; }
  .has-dropdown > a { padding-right: 2px !important; }
  .has-dropdown > a::after { right: 2px !important; }
  .dropdown-toggle { border: 0; background: transparent; padding: 4px; color: var(--ink); display: grid; place-items: center; border-radius: 6px; }
  .dropdown { position: absolute; top: calc(100% + 10px); left: -120px; width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
  .dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
}
.dropdown-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: .92rem; }
.dropdown li a .icon { color: var(--green); }
.dropdown li a small { color: var(--muted); }
.dropdown li a:hover { background: var(--soft); color: var(--navy); }
.dropdown-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding-left: 10px; font-weight: 600; font-size: .9rem; color: var(--green-600); text-decoration: none; }

.site-search { border-top: 1px solid var(--line); background: #fff; padding: 14px 0; }
.search-form { display: flex; align-items: center; gap: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; color: var(--muted); }
.search-form input { flex: 1; border: 0; background: transparent; padding: 8px 4px; min-width: 0; color: var(--ink); }
.search-form input:focus { outline: none; }
.search-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 101, 192, .12); }

/* ---------- Section heading ---------- */
.section-head { margin-bottom: 32px; }
.section-head.center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--text); margin: 0; }
.title-bar { position: relative; display: inline-block; padding-bottom: 10px; }
.title-bar::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; border-radius: 4px; background: var(--green); transform: translateX(-50%); }
.title-bar.left::after { left: 0; transform: none; width: 48px; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head-row h2 { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--green-600); margin-bottom: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 10%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(135deg, #e7f1ff 0%, #f2f8ff 45%, #e6f6ee 100%); border-bottom-left-radius: 40px; border-bottom-right-radius: 40px; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -320px; top: -420px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 165, 74, .14), rgba(31, 165, 74, 0) 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 160px; background: linear-gradient(90deg, rgba(31, 165, 74, 0), rgba(31, 165, 74, .12), rgba(21, 101, 192, .08)); transform: rotate(-3deg); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; padding-block: 44px 40px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .text-green { display: inline; }
.hero-lead { font-size: 1.08rem; max-width: 540px; color: #22324d; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 26px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.hero-points .pt-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--green-600); box-shadow: var(--shadow-sm); }
.hero-visual { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }
.hero-visual > img { width: 100%; filter: drop-shadow(0 30px 40px rgba(11, 59, 140, .18)); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px 14px; font-size: .8rem; line-height: 1.25; color: var(--muted); animation: floaty 6s ease-in-out infinite; }
.float-card strong { display: block; font-family: var(--font-head); color: var(--navy-900); font-size: .95rem; }
.float-card .fc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.float-card.fc-1 { left: -6px; top: 14%; }
.float-card.fc-1 .fc-icon { background: var(--green-50); color: var(--green-600); }
.float-card.fc-2 { right: -4px; bottom: 16%; animation-delay: -3s; }
.float-card.fc-2 .fc-icon { background: var(--blue-50); color: var(--blue); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; padding-block: 64px 72px; gap: 24px; }
  .hero-visual { margin-right: -20px; }
}

/* ---------- Exam badge (icon in circle) ---------- */
.exam-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; position: relative; }
.exam-badge::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px dashed currentColor; opacity: .25; }
.theme-navy .exam-badge, .exam-badge.theme-navy { background: #e8effc; color: var(--navy); }
.theme-blue .exam-badge, .exam-badge.theme-blue { background: #e6f1ff; color: var(--blue); }
.theme-green .exam-badge, .exam-badge.theme-green { background: var(--green-50); color: var(--green-600); }
.theme-gold .exam-badge, .exam-badge.theme-gold { background: var(--gold-50); color: #c27c00; }

/* ---------- Explore grid ---------- */
.explore-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .explore-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .explore-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.explore-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.explore-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfdcf0; color: inherit; }
.explore-card h3 { margin: 0; font-size: 1.08rem; color: var(--ink); line-height: 1.25; }
.explore-card h3 span { display: block; }
.explore-card .chev { margin-left: auto; color: var(--ink); transition: transform .2s var(--ease); }
.explore-card:hover .chev { transform: translateX(4px); color: var(--green-600); }

/* ---------- Featured exam cards ---------- */
.featured-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .featured-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; display: flex; flex-direction: column; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fc-banner { position: relative; display: flex; align-items: center; gap: 16px; min-height: 160px; padding: 22px 24px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; }
.fc-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.fc-banner .fc-art { position: absolute; left: -18px; bottom: -26px; width: 170px; height: 170px; opacity: .22; z-index: -1; color: #fff; }
.fc-banner .fc-art .icon { width: 100%; height: 100%; stroke-width: 1.3; }
.fc-banner .fc-swoosh { position: absolute; right: -40px; bottom: -30px; width: 260px; height: 120px; border-radius: 50%; z-index: -1; opacity: .5; }
.fc-banner .fc-body { margin-left: 36%; }
.fc-banner h3 { color: inherit; font-size: 1.7rem; font-weight: 800; margin: 0 0 4px; letter-spacing: .01em; }
.fc-banner p { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.3; opacity: .95; }
.fc-go { position: absolute; right: 14px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); transition: transform .2s var(--ease); }
.feature-card:hover .fc-go { transform: translateX(3px); }
.fc-banner.theme-navy::before { background: linear-gradient(120deg, #0a3480 0%, #1559c7 70%, #1e88e5 100%); }
.fc-banner.theme-navy .fc-swoosh { background: radial-gradient(closest-side, #29b6f6, transparent); }
.fc-banner.theme-blue::before { background: linear-gradient(120deg, #0d3c91 0%, #1565c0 60%, #1fa54a 140%); }
.fc-banner.theme-blue .fc-swoosh { background: radial-gradient(closest-side, #4caf50, transparent); }
.fc-banner.theme-gold { color: var(--navy-900); }
.fc-banner.theme-gold::before { background: linear-gradient(120deg, #fff8e8 0%, #eef6ff 55%, #c8ebd3 100%); }
.fc-banner.theme-gold .fc-art { color: var(--gold); opacity: .55; }
.fc-banner.theme-gold .fc-swoosh { background: radial-gradient(closest-side, #1fa54a, transparent); opacity: .35; }
.fc-banner.theme-green::before { background: linear-gradient(120deg, #0f6b34 0%, #1fa54a 70%, #5cc87b 100%); }
.fc-links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: auto; }
.fc-links a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; font-size: .78rem; font-weight: 600; color: var(--ink); text-decoration: none; text-align: center; }
.fc-links a + a { border-left: 1px solid var(--line); }
.fc-links a:hover { background: var(--soft); color: var(--green-600); }

/* ---------- Why choose ---------- */
.why-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .why-grid { grid-template-columns: .85fr 1.15fr; gap: 48px; } }
.why-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-50); color: var(--green-600); flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(31, 165, 74, .15); }
.why-list h3 { font-size: 1rem; margin: 2px 0 2px; color: var(--ink); }
.why-list p { margin: 0; font-size: .92rem; color: var(--muted); }
.video-card { position: relative; display: block; width: 100%; border: 0; padding: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #dfe9f6; aspect-ratio: 16 / 9.4; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.video-card:hover img { transform: scale(1.03); }
.video-card .play { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--navy); box-shadow: 0 0 0 10px rgba(255, 255, 255, .35), var(--shadow-lg); transition: transform .2s var(--ease); }
.video-card .play .icon { margin-left: 4px; }
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-card .video-label { position: absolute; left: 18px; bottom: 16px; background: rgba(6, 40, 95, .85); color: #fff; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }

/* ---------- Popular tiles ---------- */
.popular-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .popular-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .popular-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.pop-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 10px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.pop-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(31, 165, 74, .35); color: inherit; }
.pop-tile .icon { color: var(--green-600); margin-bottom: 6px; }
.pop-tile strong { font-family: var(--font-head); color: var(--navy-900); font-size: 1rem; }
.pop-tile span { font-size: .82rem; color: var(--text); }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 24px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 700; box-shadow: 0 0 0 4px #fff; }
.step .icon { color: var(--navy); margin-bottom: 12px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: .95rem; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(100deg, var(--navy-900) 0%, var(--navy) 45%, #1559c7 75%); color: #fff; display: grid; gap: 20px; align-items: center; padding: 28px; isolation: isolate; box-shadow: var(--shadow-lg); }
.cta-banner::before { content: ""; position: absolute; right: -8%; top: -60%; width: 55%; height: 220%; background: linear-gradient(160deg, rgba(31, 165, 74, 0) 30%, rgba(31, 165, 74, .9) 55%, rgba(31, 165, 74, 0) 75%); transform: rotate(18deg); z-index: -1; opacity: .9; }
.cta-banner::after { content: ""; position: absolute; right: 6%; top: -40%; width: 30%; height: 200%; background: linear-gradient(160deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .25) 50%, rgba(255, 255, 255, 0) 70%); transform: rotate(18deg); z-index: -1; }
.cta-logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cta-logo .logo-mark path[fill="#0B3B8C"] { fill: #fff; }
.cta-logo .brand-name { color: #fff; font-size: 1.7rem; }
.cta-banner h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.3rem, 1.5vw + .8rem, 1.8rem); }
.cta-banner p { margin: 0 0 16px; color: rgba(255, 255, 255, .88); }
@media (min-width: 768px) { .cta-banner { grid-template-columns: 200px 1fr; padding: 28px 40px; } .cta-logo { border-right: 1px solid rgba(255, 255, 255, .15); padding-right: 24px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 22px; margin-top: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); padding: 20px 32px; } .stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; } }
.stat { display: flex; align-items: center; gap: 14px; }
.stat .icon { color: var(--green-600); }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy-900); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--text); }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: rgba(31, 165, 74, .45); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; color: var(--navy-900); font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--green-600); transition: transform .25s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--text); }
.faq-item .faq-a p:last-child { margin: 0; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-cover { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.post-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.post-cover .icon { width: 64px; height: 64px; stroke-width: 1.5; opacity: .95; }
.post-cover.theme-navy::before { background: linear-gradient(135deg, var(--navy-900), #1e7be0); }
.post-cover.theme-blue::before { background: linear-gradient(135deg, #0d3c91, #1fa54a); }
.post-cover.theme-green::before { background: linear-gradient(135deg, #0f6b34, #33b766); }
.post-cover.theme-gold::before { background: linear-gradient(135deg, #f4a51c, #ef7d00); }
.post-cover::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; bottom: -110px; border-radius: 50%; background: rgba(255, 255, 255, .14); z-index: -1; }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.post-meta .tag { background: var(--green-50); color: var(--green-600); font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.post-meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-card h3 { margin: 0; font-size: 1.1rem; }
.post-card h3 a { color: var(--navy-900); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card h3 a:hover { color: var(--green-600); }
.post-card p { margin: 0; font-size: .93rem; color: var(--text); }

/* ---------- Newsletter ---------- */
.newsletter { padding: 0 0 28px; margin-top: 8px; }
.page-default .newsletter, .page-home .newsletter { padding-top: 0; }
.newsletter-inner { position: relative; overflow: hidden; display: grid; gap: 18px; align-items: center; padding: 22px 26px; border-radius: var(--radius-lg); background: linear-gradient(100deg, var(--navy-900), var(--navy) 60%, #1356b8); color: #fff; }
.newsletter-inner::after { content: ""; position: absolute; right: -10%; top: -100%; width: 40%; height: 300%; background: linear-gradient(160deg, transparent 35%, rgba(255, 255, 255, .06) 50%, transparent 65%); transform: rotate(18deg); }
.newsletter-copy { display: flex; gap: 16px; align-items: center; }
.newsletter-icon { color: #fff; opacity: .95; }
.newsletter h2 { color: #fff; font-size: 1.15rem; margin: 0 0 2px; }
.newsletter p { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .85); }
.newsletter-form { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 12px 16px; border-radius: 10px; border: 0; background: #fff; color: var(--ink); }
.newsletter-form .form-msg { flex-basis: 100%; margin: 0; font-size: .85rem; min-height: 0; }
.newsletter-form .form-msg:empty { display: none; }
@media (min-width: 900px) { .newsletter-inner { grid-template-columns: 1fr 1.05fr; padding: 20px 32px; } }

/* ---------- Footer ---------- */
.site-footer { background: #fff; padding-top: 28px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { font-size: .9rem; color: var(--text); max-width: 300px; margin: 12px 0 16px; }
.footer-brand .brand-name { font-size: 1.6rem; }
.footer-title { font-size: 1rem; margin-bottom: 12px; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer nav a { color: var(--text); text-decoration: none; font-size: .92rem; }
.site-footer nav a:hover { color: var(--green-600); }
.social { display: flex !important; gap: 10px !important; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 28px; padding-block: 18px 24px; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 14px; }
.footer-legal a { color: var(--text); text-decoration: none; }
.footer-legal span { color: var(--line); }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 10px 24px -8px rgba(31, 165, 74, .8); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; background: var(--green-600); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #e9f2ff 0%, #f4f9ff 55%, #e9f7ef 100%); padding: 28px 0 44px; border-bottom-left-radius: 32px; border-bottom-right-radius: 32px; }
.page-hero::after { content: ""; position: absolute; right: -160px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 165, 74, .14), transparent 65%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.9rem, 3vw + .6rem, 2.8rem); margin: 12px 0 10px; }
.page-hero .lead { max-width: 720px; font-size: 1.05rem; margin: 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0; margin: 0; font-size: .85rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.breadcrumbs a { color: var(--navy); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--muted); }

/* ---------- Exams listing ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .88rem; font-weight: 500; text-decoration: none; transition: all .2s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active, .chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { opacity: .7; }
.filter-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.filter-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-search input { width: 100%; padding: 11px 14px 11px 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.filter-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 101, 192, .12); }
.cat-block + .cat-block { margin-top: 44px; }
.cat-block h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.cat-block h2 .icon { color: var(--green-600); }
.exam-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .exam-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .exam-grid { grid-template-columns: repeat(3, 1fr); } }
.exam-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.exam-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfdcf0; }
.exam-card-head { display: flex; gap: 14px; align-items: center; }
.exam-card-head .exam-badge { width: 54px; height: 54px; }
.exam-card h3 { margin: 0; font-size: 1.15rem; }
.exam-card h3 a { color: var(--navy-900); text-decoration: none; }
.exam-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.exam-card .exam-sub { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.35; }
.exam-card p.desc { margin: 0; font-size: .92rem; }
.exam-card .meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--soft); color: var(--navy); }
.pill.green { background: var(--green-50); color: var(--green-600); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }

/* ---------- Exam detail ---------- */
.exam-hero-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.exam-hero-head .exam-badge { width: 76px; height: 76px; background: #fff; box-shadow: var(--shadow); }
.exam-hero-head h1 { margin: 0 0 4px; }
.exam-hero-head .sub { margin: 0; color: var(--navy); font-weight: 600; font-family: var(--font-head); }
.exam-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.layout-sidebar { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.layout-sidebar > * { min-width: 0; }
@media (min-width: 1024px) { .layout-sidebar { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; } .sidebar { position: sticky; top: calc(var(--header-h) + 20px); } }
.answer-box { position: relative; background: linear-gradient(135deg, #f1f7ff, #effaf3); border: 1px solid #cfe3d6; border-left: 5px solid var(--green); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; }
.answer-box .label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); margin-bottom: 6px; }
.answer-box p { margin: 0; color: var(--ink); font-size: 1.02rem; }
.content-section + .content-section { margin-top: 40px; }
.content-section h2 { font-size: 1.5rem; }
.facts { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.facts th, .facts td { text-align: left; padding: 13px 16px; vertical-align: top; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 34%; background: var(--soft); color: var(--navy-900); font-family: var(--font-head); font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag-list li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .88rem; color: var(--ink); }
.sample-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: #fff; box-shadow: var(--shadow-sm); }
.sample-q + .sample-q { margin-top: 14px; }
.sample-q .q-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sample-q .q-text { font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.sample-q ol { list-style: upper-alpha; margin: 0 0 12px; padding-left: 1.6em; display: grid; gap: 4px; }
.sample-q details summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-600); font-size: .92rem; }
.sample-q details[open] summary { margin-bottom: 8px; }
.sample-q .sol { background: var(--green-50); border-radius: 10px; padding: 12px 14px; font-size: .94rem; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.side-card + .side-card { margin-top: 18px; }
.side-card h2, .side-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.side-card.highlight { background: linear-gradient(150deg, var(--navy-900), var(--navy) 60%, #1559c7); color: #fff; border: 0; }
.side-card.highlight h2, .side-card.highlight h3 { color: #fff; }
.side-card.highlight p { color: rgba(255, 255, 255, .85); font-size: .93rem; }
.res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.res-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.res-list a:hover { background: var(--soft); color: var(--navy); }
.res-list .icon { color: var(--green-600); }
.res-list .chev { margin-left: auto; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--green); margin-top: 3px; }

/* ---------- Article ---------- */
.prose { font-size: 1.05rem; line-height: 1.8; color: #2b3647; max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--green-600); font-weight: 600; }
.prose h2:first-of-type + p { font-size: 1.08rem; }
.article-head .post-meta { margin-top: 14px; font-size: .88rem; }
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .93rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--green-600); }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.share-row a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--ink); text-decoration: none; }
.share-row a:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Pricing ---------- */
.billing-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: -12px; margin-bottom: 32px; }
.plan-grid { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.is-featured { border: 2px solid var(--green); box-shadow: var(--shadow-lg); }
.plan .badge-top { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan h2 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .plan-desc { font-size: .9rem; color: var(--muted); min-height: 2.8em; }
.plan .price { font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; color: var(--navy-900); line-height: 1; margin: 10px 0 4px; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan .check-list { margin: 20px 0 26px; font-size: .93rem; }
.plan .btn { margin-top: auto; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 32px; color: var(--muted); font-size: .9rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .icon { color: var(--green-600); }
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .93rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; }
.compare .icon { margin-inline: auto; }
.compare .yes { color: var(--green); }
.compare .no { color: #c0c7d2; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

/* ---------- Features page ---------- */
.feature-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.feature-box:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-box .why-icon { margin-bottom: 16px; width: 54px; height: 54px; }
.feature-box p { margin: 0; font-size: .95rem; }

/* ---------- Forms / auth ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.auth-wrap { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; padding: 48px 20px; background: linear-gradient(135deg, #eef5ff, #f7fbff 55%, #edf8f1); }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid #cfd8e6; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 101, 192, .12); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .82rem; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 18px; }
.check input { margin-top: 4px; accent-color: var(--green); width: 16px; height: 16px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: .92rem; }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font-size: .8rem; font-weight: 600; padding: 6px 8px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .93rem; border: 1px solid; }
.alert-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.alert-error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.alert-info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }
.flash-wrap { padding-top: 16px; }
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 40px; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { display: block; color: var(--ink); font-family: var(--font-head); }
.contact-list a { color: var(--text); }

/* ---------- CBT practice ---------- */
.cbt { display: grid; gap: 22px; }
@media (min-width: 1024px) { .cbt { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.cbt-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 14px 20px; border-radius: var(--radius); margin-bottom: 18px; }
.cbt-top h1 { color: #fff; font-size: 1.15rem; margin: 0; }
.timer { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; background: rgba(255, 255, 255, .12); padding: 6px 14px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.timer.is-low { background: var(--danger); }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow-sm); }
.q-card .q-num { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.q-card .q-text { font-size: 1.12rem; font-weight: 600; color: var(--ink); margin-bottom: 20px; }
.options { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: #b9c8e0; background: var(--soft); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .letter { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--soft); color: var(--navy); font-weight: 700; font-family: var(--font-head); flex-shrink: 0; }
.option:has(input:checked) { border-color: var(--navy); background: var(--blue-50); }
.option:has(input:checked) .letter { background: var(--navy); color: #fff; }
.option:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.option.is-correct { border-color: var(--green); background: var(--green-50); }
.option.is-correct .letter { background: var(--green); color: #fff; }
.option.is-wrong { border-color: var(--danger); background: #fef3f2; }
.option.is-wrong .letter { background: var(--danger); color: #fff; }
.q-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; }
.palette button { aspect-ratio: 1; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-weight: 600; font-size: .88rem; color: var(--ink); }
.palette button.answered { background: var(--green); border-color: var(--green); color: #fff; }
.palette button.current { box-shadow: 0 0 0 3px var(--navy); }
.palette button.wrong { background: var(--danger); border-color: var(--danger); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--muted); margin-top: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; border: 1px solid var(--line); }
.result-card { text-align: center; padding: 32px 24px; background: linear-gradient(150deg, var(--navy-900), var(--navy) 60%, #1559c7); color: #fff; border-radius: var(--radius-lg); margin-bottom: 24px; }
.result-card h2 { color: #fff; margin-bottom: 4px; }
.score-ring { --p: 0; width: 140px; height: 140px; border-radius: 50%; margin: 16px auto; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--p) * 1%), rgba(255, 255, 255, .15) 0); }
.score-ring span { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: var(--navy); font-family: var(--font-head); font-size: 2rem; font-weight: 800; }
.review-item { margin-bottom: 16px; }
.review-item .sol { background: var(--soft); border-radius: 10px; padding: 12px 14px; margin-top: 12px; font-size: .94rem; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: repeat(3, 1fr); } }
.dash-stat { display: flex; gap: 14px; align-items: center; }
.dash-stat strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--navy-900); line-height: 1.1; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination [aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(960px, 94vw); background: #000; box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(6, 20, 50, .75); backdrop-filter: blur(3px); }
.modal .modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink); }
.modal .ratio { aspect-ratio: 16 / 9; }
.modal iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 20px; }
.notfound .big { font-family: var(--font-head); font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--navy), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .newsletter, .back-to-top, .sidebar, .share-row { display: none !important; }
  body { color: #000; }
}

/* Numbered study-guide steps (exam pages) */
.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps-list li { counter-increment: step; position: relative; padding: 16px 18px 16px 64px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps-list li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 700; }
.steps-list strong { color: var(--ink); }

/* Small phones: keep header and fact tables inside the viewport */
@media (max-width: 400px) {
  .brand-tag { font-size: .58rem; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 4px; }
  .facts th, .facts td { padding: 11px 12px; }
}
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
}
.table-wrap { max-width: 100%; position: relative; }
.table-wrap > table { min-width: 520px; }
.brand > svg, .brand .logo-mark { flex-shrink: 0; }
@media (max-width: 400px) {
  .brand { gap: 7px; }
  .brand > svg, .brand .logo-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.5rem; }
}
body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

/* =========================================================
   HOMEPAGE (matches the approved mockup)
   ========================================================= */
.page-home .reveal { opacity: 1 !important; transform: none !important; }
.home-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(115deg, #e8f1fd 0%, #f3f8fe 40%, #e3f4f1 100%); border-bottom-left-radius: 48px; }
.home-hero::before { content: ""; position: absolute; z-index: -1; left: 38%; top: -30%; width: 22%; height: 160%; background: linear-gradient(90deg, rgba(31,165,74,0), rgba(31,165,74,.16), rgba(129,212,250,.18), rgba(255,255,255,0)); transform: rotate(28deg); border-radius: 50%; }
.home-hero-inner { position: relative; z-index: 2; padding-block: 48px 40px; }
.home-hero-copy { max-width: 600px; }
.home-hero h1 { font-size: clamp(2.2rem, 3.6vw + .6rem, 3.5rem); line-height: 1.08; margin-bottom: 18px; letter-spacing: -.02em; }
.home-hero .hero-lead { font-size: 1.06rem; max-width: 500px; color: #1d2b45; margin: 0; }
.home-hero .hero-cta { margin: 26px 0 30px; }
.home-hero .hero-points { gap: 14px 26px; }
.home-hero .hero-points li { gap: 10px; font-size: .84rem; }
.home-hero .hero-points .icon { color: var(--green-600); }
.home-hero-photo { position: relative; }
.home-hero-photo img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) {
  .home-hero-photo { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 46%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
  .home-hero-photo img { height: 100%; object-fit: cover; object-position: 30% 20%; }
  .home-hero-inner { padding-block: 64px 54px; }
}
@media (max-width: 899px) { .home-hero { display: flex; flex-direction: column-reverse; } .home-hero-inner { padding-bottom: 8px; } }

.home-sec { padding-block: 28px; }
.home-head { text-align: center; margin-bottom: 26px; }
.home-head h2 { margin-bottom: 14px; }
.home-head p { margin: 0; color: var(--ink); }
.home-sec h2 { font-size: clamp(1.45rem, 1.4vw + .9rem, 2rem); font-weight: 800; }
.home-sec .section-head-row { margin-bottom: 18px; align-items: center; }
.home-sec .link-arrow { color: var(--green-600); font-weight: 600; font-size: .92rem; }

.page-home .explore-card { padding: 14px 16px; gap: 14px; min-height: 84px; box-shadow: 0 4px 16px -6px rgba(11, 59, 140, .18); }
.page-home .explore-card h3 { font-size: 1.05rem; font-weight: 700; }
.ex-logo { display: grid; place-items: center; width: 62px; height: 62px; flex-shrink: 0; }
.ex-logo img { width: 60px; height: 60px; object-fit: contain; }
.ex-glyph.ex-blue { color: #1559c7; }
.ex-glyph.ex-green { color: var(--green-600); }
.ex-glyph .icon { stroke-width: 1.8; }
.ex-mono { display: grid; place-items: center; width: 54px; height: 48px; border: 3px solid #1559c7; border-radius: 12px 12px 18px 18px; color: #1559c7; font: 800 1rem/1 var(--font-head); letter-spacing: -.02em; }

.featured-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .featured-grid { grid-template-columns: repeat(3, 1fr); } }
.fx-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px -8px rgba(11, 59, 140, .25); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s; }
.fx-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fx-banner { position: relative; display: flex; align-items: center; min-height: 128px; padding: 16px 18px 16px 44%; text-decoration: none; overflow: hidden; isolation: isolate; color: #fff; }
.fx-banner:hover { color: #fff; }
.fx-photo { position: absolute; z-index: -2; left: 0; top: 0; height: 100%; width: 44%; object-fit: cover; }
.fx-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.fx-banner::after { content: ""; position: absolute; z-index: -1; right: -20%; bottom: -55%; width: 75%; height: 90%; border-radius: 50%; background: radial-gradient(closest-side, rgba(92, 200, 123, .55), transparent); }
.fb-blue::before { background: linear-gradient(90deg, rgba(21, 101, 192, 0) 34%, #1565c0 50%, #0d47a1 100%); }
.fb-navy::before { background: linear-gradient(90deg, rgba(13, 71, 161, 0) 36%, #0d47a1 52%, #1559c7 100%); }
.fb-light, .fb-light:hover { color: var(--navy-900); }
.fb-light::before { background: linear-gradient(90deg, rgba(255, 255, 255, 0) 36%, #f3f8fe 52%, #e2f4e7 100%); }
.fb-light::after { background: radial-gradient(closest-side, rgba(31, 165, 74, .45), transparent); }
.fx-body h3 { color: inherit; font-size: 1.45rem; font-weight: 800; margin: 0 0 2px; letter-spacing: .01em; }
.fx-body > span { display: block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.25; opacity: .95; }
.fx-go { position: absolute; right: 12px; bottom: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 0 2px #fff; }
.fx-links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fx-links a { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 4px; font-size: .72rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.fx-links a + a { border-left: 1px solid var(--line); }
.fx-links a:hover { color: var(--green-600); background: var(--soft); }

.home-why { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .home-why { grid-template-columns: .62fr 1.38fr; gap: 36px; } }
.page-home .why-list { margin-top: 18px; gap: 14px; }
.page-home .why-list li { align-items: center; }
.page-home .why-icon { width: 46px; height: 46px; }
.page-home .why-list h3 { font-size: .95rem; margin: 0; }
.page-home .why-list p { font-size: .82rem; color: var(--text); }
.home-video { display: block; border: 0; padding: 0; background: none; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); cursor: pointer; }
.home-video img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.home-video:hover img { transform: scale(1.02); }

.page-home .pop-tile { padding: 18px 8px 14px; gap: 2px; box-shadow: 0 4px 14px -6px rgba(11, 59, 140, .18); }
.page-home .pop-tile .icon { margin-bottom: 8px; }
.page-home .pop-tile span { font-size: .78rem; }

.home-cta { padding-top: 32px; }
.page-home .cta-banner { padding: 22px 28px; border-radius: 18px; background: linear-gradient(100deg, #06285f 0%, #0b3b8c 40%, #1356b8 70%, #1565c0 100%); }
.page-home .cta-banner::before { right: -6%; top: -80%; width: 44%; height: 260%; background: linear-gradient(160deg, rgba(31, 165, 74, 0) 35%, rgba(46, 190, 90, .95) 52%, rgba(137, 220, 120, .8) 58%, rgba(31, 165, 74, 0) 70%); transform: rotate(30deg); }
.page-home .cta-logo { gap: 2px; }
.page-home .cta-logo .brand-name { color: #fff; font-size: 1.6rem; }
.page-home .cta-logo .brand-name span { color: #5cd07e; }
.page-home .cta-banner h2 { font-size: clamp(1.25rem, 1.3vw + .8rem, 1.6rem); margin-bottom: 4px; }
.page-home .cta-banner p { margin-bottom: 12px; font-size: .92rem; }
.page-home .cta-banner .btn { padding: 9px 18px; font-size: .9rem; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
@media (min-width: 768px) { .page-home .cta-banner { grid-template-columns: 190px 1fr; } .page-home .cta-logo { border-right: 0; } }
.page-home .stats { margin-top: 14px; padding: 16px 28px; box-shadow: 0 4px 16px -8px rgba(11, 59, 140, .2); }
.page-home .stat { justify-content: center; }
.page-home .stat strong { font-size: 1.35rem; }
.page-home .newsletter { margin-top: 18px; }
@media (min-width: 900px) { .home-why { grid-template-columns: minmax(300px, .72fr) 1.28fr; } .home-why h2 { white-space: nowrap; } }
.page-home .cta-banner::before { left: auto; right: -8%; top: 48%; width: 78%; height: 140%; border-radius: 50%; background: linear-gradient(95deg, rgba(31, 165, 74, 0) 0%, rgba(31, 165, 74, .85) 45%, #5fd27f 75%, #a6e58f 100%); transform: rotate(-9deg); opacity: 1; }
.page-home .cta-banner::after { left: auto; right: -4%; top: 40%; width: 70%; height: 140%; border-radius: 50%; background: none; border-top: 3px solid rgba(255, 255, 255, .35); transform: rotate(-9deg); }

/* =========================================================
   HOMEPAGE MOTION
   Entrance on load (hero), reveal on scroll ([data-anim]),
   hover micro-interactions. All off for reduced motion.
   ========================================================= */
@keyframes hmUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hmPhoto { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@keyframes hmSheen { 0%, 100% { transform: rotate(28deg) translateX(0); opacity: .9; } 50% { transform: rotate(31deg) translateX(-6%); opacity: 1; } }
@keyframes hmBar { from { width: 0; } to { width: 64px; } }
@keyframes hmPulse { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(31, 165, 74, .55); } 70% { box-shadow: 0 0 0 2px #fff, 0 0 0 11px rgba(31, 165, 74, 0); } 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 11px rgba(31, 165, 74, 0); } }
@keyframes hmSwoosh { 0%, 100% { transform: rotate(-9deg) translateX(0); } 50% { transform: rotate(-6deg) translateX(-4%); } }
@keyframes hmShine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(320%) skewX(-20deg); } }
@keyframes hmWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg) scale(1.08); } 60% { transform: rotate(8deg) scale(1.08); } }
@keyframes hmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: staggered entrance on load (pure CSS, ends visible even without JS) */
  .home-hero-copy > * { animation: hmUp .8s cubic-bezier(.2, .7, .2, 1) both; }
  .home-hero-copy > :nth-child(2) { animation-delay: .12s; }
  .home-hero-copy > :nth-child(3) { animation-delay: .24s; }
  .home-hero-copy > :nth-child(4) { animation-delay: .36s; }
  .home-hero .hero-points li { animation: hmUp .6s cubic-bezier(.2, .7, .2, 1) both; }
  .home-hero .hero-points li:nth-child(1) { animation-delay: .5s; }
  .home-hero .hero-points li:nth-child(2) { animation-delay: .58s; }
  .home-hero .hero-points li:nth-child(3) { animation-delay: .66s; }
  .home-hero .hero-points li:nth-child(4) { animation-delay: .74s; }
  .home-hero-photo img { animation: hmPhoto 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .home-hero::before { animation: hmSheen 9s ease-in-out infinite; }

  /* Scroll reveal (JS adds .in; html.no-js never hides anything) */
  html:not(.no-js) .page-home [data-anim] { opacity: 0; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
  html:not(.no-js) .page-home [data-anim="up"]:not(.in) { transform: translateY(28px); }
  html:not(.no-js) .page-home [data-anim="left"]:not(.in) { transform: translateX(-28px); }
  html:not(.no-js) .page-home [data-anim="right"]:not(.in) { transform: translateX(28px); }
  html:not(.no-js) .page-home [data-anim="zoom"]:not(.in) { transform: scale(.94); }
  html:not(.no-js) .page-home [data-anim].in { opacity: 1; }
  /* once revealed, hand transforms back to the hover styles */
  html:not(.no-js) .page-home [data-anim].done { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, color .2s; transition-delay: 0s; }

  /* Section title underline draws in */
  html:not(.no-js) .page-home .home-head[data-anim] .title-bar::after { width: 0; }
  html:not(.no-js) .page-home .home-head.in .title-bar::after { animation: hmBar .7s .25s cubic-bezier(.2, .7, .2, 1) forwards; }

  /* Featured "go" button: soft pulse ring */
  .fx-go { animation: hmPulse 2.6s ease-out infinite; }
  .fx-card:nth-child(2) .fx-go { animation-delay: .8s; }
  .fx-card:nth-child(3) .fx-go { animation-delay: 1.6s; }

  /* CTA: swoosh drifts, button shine sweeps */
  .page-home .cta-banner::before { animation: hmSwoosh 10s ease-in-out infinite; }
  .page-home .cta-logo svg { animation: hmFloat 4s ease-in-out infinite; }
  .page-home .cta-banner .btn { position: relative; overflow: hidden; }
  .page-home .cta-banner .btn::after { content: ""; position: absolute; top: 0; left: 0; width: 35%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: hmShine 3.2s 1s ease-in-out infinite; pointer-events: none; }

  /* Hover micro-interactions */
  .page-home .ex-logo { transition: transform .3s var(--ease); }
  .page-home .explore-card:hover .ex-logo { transform: scale(1.1) rotate(-3deg); }
  .page-home .explore-card:hover { border-color: rgba(31, 165, 74, .4); }
  .fx-photo { transition: transform .6s var(--ease); }
  .fx-card:hover .fx-photo { transform: scale(1.08); }
  .fx-go .icon { transition: transform .25s var(--ease); }
  .fx-card:hover .fx-go .icon { transform: translateX(3px); }
  .fx-links a .icon { transition: transform .2s var(--ease); }
  .fx-links a:hover .icon { transform: translateY(-2px); }
  .page-home .why-icon { transition: background .3s, color .3s, transform .3s var(--ease); }
  .page-home .why-list li:hover .why-icon { background: var(--green); color: #fff; transform: scale(1.08); }
  .home-video { position: relative; }
  .home-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); transform: translateX(-100%); transition: transform .9s var(--ease); pointer-events: none; }
  .home-video:hover::after { transform: translateX(100%); }
  .page-home .pop-tile:hover .icon { animation: hmWiggle .6s ease-in-out; }
  .page-home .stat .icon { transition: transform .3s var(--ease); }
  .page-home .stat:hover .icon { transform: translateY(-3px) scale(1.08); }
  .page-home .home-hero .btn .icon { transition: transform .25s var(--ease); }
  .page-home .home-hero .btn-primary:hover .icon { transform: translateX(4px); }
}

/* Header: tighten the desktop nav between 1024px and 1199px so the action buttons fit */
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-list { gap: 0; }
  .nav-list > li > a { padding: 10px 9px; font-size: .9rem; }
  .nav-list > li > a::after { left: 9px; right: 9px; }
  .header-actions, .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding-inline: 12px; }
}

/* =========================================================
   EXAMS PAGE (matches the approved mockup)
   ========================================================= */
.exams-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(112deg, #e6f0fd 0%, #f2f7fe 45%, #e4f3f3 100%); }
.exams-hero::before { content: ""; position: absolute; z-index: -1; left: 44%; top: -40%; width: 16%; height: 190%; background: linear-gradient(90deg, rgba(31, 165, 74, 0), rgba(31, 165, 74, .14), rgba(129, 212, 250, .2), rgba(255, 255, 255, 0)); transform: rotate(30deg); border-radius: 50%; }
.exams-hero-inner { position: relative; z-index: 2; padding-block: 40px 36px; }
.exams-hero h1 { font-size: clamp(2.2rem, 3.2vw + .9rem, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; margin-bottom: 16px; }
.exams-hero p { max-width: 470px; margin: 0; font-size: 1.05rem; line-height: 1.5; color: #14213d; }
.exams-hero-art img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) {
  .exams-hero-art { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
  .exams-hero-art img { height: 100%; object-fit: cover; object-position: 40% 50%; }
  .exams-hero-inner { min-height: 236px; display: flex; flex-direction: column; justify-content: center; padding-block: 44px; }
}
@media (max-width: 899px) { .exams-hero { display: flex; flex-direction: column-reverse; } .exams-hero-inner { padding-bottom: 4px; } .exams-hero-art { max-width: 560px; margin-inline: auto; } }

.exams-tools { padding-top: 30px; }
.exams-search { display: flex; align-items: center; gap: 12px; max-width: 820px; margin: 0 auto; padding: 6px 6px 6px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px -12px rgba(11, 59, 140, .28), 0 2px 6px rgba(11, 59, 140, .05); transition: box-shadow .2s, border-color .2s; }
.exams-search:focus-within { border-color: rgba(31, 165, 74, .55); box-shadow: 0 0 0 4px rgba(31, 165, 74, .12), 0 10px 28px -12px rgba(11, 59, 140, .28); }
.exams-search > .icon { color: var(--green-600); flex-shrink: 0; stroke-width: 2.4; }
.exams-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); }
.exams-search input::placeholder { color: #5b6577; }
.exams-search .btn { padding: 11px 34px; border-radius: 10px; font-size: 1rem; }

.exams-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px; padding: 4px; background: #f6f8fc; border: 1px solid #e8edf5; border-radius: 12px; box-shadow: 0 6px 18px -10px rgba(11, 59, 140, .25); }
.exams-tabs a { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 6px 10px; border-radius: 9px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--navy-900); text-decoration: none; letter-spacing: -.01em; transition: background .2s, color .2s; }
.exams-tabs a + a::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: #d5dce8; }
.exams-tabs a.is-active + a::before, .exams-tabs a.is-active::before { display: none; }
.exams-tabs a:hover { color: var(--green-600); background: #fff; }
.exams-tabs a.is-active { background: linear-gradient(180deg, #0d47a1, #0b3b8c); color: #fff; box-shadow: 0 6px 14px -6px rgba(11, 59, 140, .6); }
.exams-tabs .icon { flex-shrink: 0; }

.xsec { padding-top: 40px; }
.xsec .section-head-row { align-items: center; margin-bottom: 22px; }
.xsec h2 { font-size: clamp(1.45rem, 1.5vw + .9rem, 2rem); font-weight: 800; letter-spacing: -.02em; }
.xsec .title-bar { padding-bottom: 14px; }
.xsec .title-bar.left::after { width: 54px; height: 4px; }
.xsec .link-arrow { font-size: 1rem; }
.xgrid { display: grid; gap: 12px; }
.xgrid-acad { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.xgrid-pro, .xgrid-other { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (min-width: 1024px) {
  .xgrid-acad { grid-template-columns: repeat(8, 1fr); }
  .xgrid-pro, .xgrid-other { grid-template-columns: repeat(7, 1fr); gap: 14px; }
}
.xt { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px 8px 12px; background: #fff; border: 1px solid #edf1f7; border-radius: 14px; box-shadow: 0 6px 16px -8px rgba(11, 59, 140, .22); color: var(--navy-900); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.xt:hover { transform: translateY(-4px); border-color: rgba(31, 165, 74, .45); box-shadow: 0 14px 28px -12px rgba(11, 59, 140, .35); color: var(--navy-900); }
.xt-art { display: grid; place-items: center; height: 64px; margin-bottom: 8px; }
.xt-art img { width: 64px; height: 64px; object-fit: contain; transition: transform .3s var(--ease); }
.xt:hover .xt-art img, .xt:hover .ex-glyph { transform: scale(1.08); }
.xt .ex-glyph { display: grid; place-items: center; transition: transform .3s var(--ease); }
.xt strong { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.15; letter-spacing: -.015em; }
.xt-sub { margin-top: 3px; font-size: .86rem; line-height: 1.25; color: #26324a; }
.xt-lg { min-height: 142px; }
.xt-md { min-height: 128px; }
.xt-md .xt-art { height: 56px; }
.xt-md .xt-art img { width: 58px; height: 58px; }
.xt-more .xt-sub { font-size: .9rem; }
.xt-more .xt-sub b { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--navy-900); }
.xt-sm { min-height: 98px; padding: 14px 8px; gap: 8px; }
.xt-sm strong { font-size: .95rem; font-weight: 700; line-height: 1.2; max-width: 120px; }
.xt-sm .ex-glyph .icon { stroke-width: 1.7; }
.xnote { margin: 18px 0 0; color: var(--text); }

.xcta { padding-top: 44px; }
.page-exams .cta-banner { padding: 22px 28px; border-radius: 18px; background: linear-gradient(100deg, #06285f 0%, #0b3b8c 40%, #1356b8 70%, #1565c0 100%); }
.page-exams .cta-banner::before { right: -6%; top: -80%; width: 44%; height: 260%; background: linear-gradient(160deg, rgba(31, 165, 74, 0) 35%, rgba(46, 190, 90, .95) 52%, rgba(137, 220, 120, .8) 58%, rgba(31, 165, 74, 0) 70%); transform: rotate(30deg); }
.page-exams .cta-logo { gap: 4px; }
.page-exams .cta-logo .brand-name { color: #fff; font-size: 1.8rem; }
.page-exams .cta-logo .brand-name span { color: #5cd07e; }
.page-exams .cta-banner h2 { font-size: clamp(1.3rem, 1.4vw + .8rem, 1.75rem); margin-bottom: 4px; }
.page-exams .cta-banner p { margin-bottom: 12px; font-size: .95rem; }
.page-exams .cta-banner .btn { padding: 8px 18px; font-size: .95rem; box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); }
@media (min-width: 768px) { .page-exams .cta-banner { grid-template-columns: 220px 1fr; padding: 22px 40px 22px 28px; } .page-exams .cta-logo { border-right-color: rgba(255, 255, 255, .35); } }
.exams-body { padding-bottom: 36px; }
.exams-body .empty-state { padding-top: 30px; }

@media (max-width: 767px) {
  .exams-search { padding-left: 14px; gap: 8px; }
  .exams-search .btn { padding: 11px 16px; }
  .exams-tabs { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .exams-tabs a { gap: 8px; font-size: .88rem; }
  .exams-tabs a::before { display: none; }
  .xgrid-acad { grid-template-columns: repeat(2, 1fr); }
  .xgrid-pro, .xgrid-other { grid-template-columns: repeat(2, 1fr); }
  .xgrid-other .xt-sm:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (min-width: 480px) and (max-width: 767px) { .xgrid-acad, .xgrid-pro, .xgrid-other { grid-template-columns: repeat(3, 1fr); } .xgrid-other .xt-sm:last-child:nth-child(odd) { grid-column: auto; } }

/* Exams motion: hero entrance + scroll reveal (same system as the homepage) */
@media (prefers-reduced-motion: no-preference) {
  .exams-hero-inner > * { animation: hmUp .8s cubic-bezier(.2, .7, .2, 1) both; }
  .exams-hero-inner > :nth-child(2) { animation-delay: .12s; }
  .exams-hero-art img { animation: hmPhoto 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .exams-search { animation: hmUp .7s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .exams-tabs { animation: hmUp .7s .3s cubic-bezier(.2, .7, .2, 1) both; }
  .exams-hero::before { animation: hmSheen 9s ease-in-out infinite; }
  html:not(.no-js) .page-exams [data-anim] { opacity: 0; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 60ms); }
  html:not(.no-js) .page-exams [data-anim="up"]:not(.in) { transform: translateY(24px); }
  html:not(.no-js) .page-exams [data-anim].in { opacity: 1; }
  html:not(.no-js) .page-exams [data-anim].done { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, color .2s; transition-delay: 0s; }
  html:not(.no-js) .page-exams .section-head-row[data-anim] .title-bar::after { width: 0; }
  html:not(.no-js) .page-exams .section-head-row.in .title-bar::after { animation: xBar .7s .25s cubic-bezier(.2, .7, .2, 1) forwards; }
  .page-exams .cta-banner::before { animation: hmSwoosh 10s ease-in-out infinite; }
  .page-exams .cta-logo svg { animation: hmFloat 4s ease-in-out infinite; }
  .page-exams .cta-banner .btn { position: relative; overflow: hidden; }
  .page-exams .cta-banner .btn::after { content: ""; position: absolute; top: 0; left: 0; width: 35%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: hmShine 3.2s 1s ease-in-out infinite; pointer-events: none; }
  .xt-sm:hover .icon { animation: hmWiggle .6s ease-in-out; }
}
@keyframes xBar { from { width: 0; } to { width: 54px; } }
.exams-body .cat-block { margin-block: 0; }
.xsec { padding-top: 36px; }
.xcta + .xsec { padding-top: 26px; }
.xt-lg strong { font-size: 1.15rem; white-space: nowrap; }
.xt-lg .xt-art img { width: 70px; height: 70px; }
.xt-lg .xt-art { height: 70px; }
.page-exams .cta-banner::after { right: -18%; top: auto; bottom: -95%; width: 62%; height: 170%; border-radius: 50%; transform: rotate(-14deg); background: linear-gradient(105deg, rgba(31, 165, 74, 0) 8%, rgba(46, 190, 90, .9) 22%, #3cc55f 40%, #7fd860 75%); opacity: .95; }
@media (max-width: 767px) {
  .exams-hero-inner { padding-top: 28px; }
  .exams-hero p { font-size: .98rem; }
  .exams-hero-art img { max-height: 190px; object-fit: cover; }
  .exams-search input { font-size: .9rem; }
  .exams-search > .icon { width: 20px; height: 20px; }
  .exams-tabs a { gap: 6px; font-size: .8rem; white-space: nowrap; padding-inline: 6px; }
  .exams-tabs .icon { width: 18px; height: 18px; }
  .xsec .section-head-row { margin-bottom: 16px; }
}

/* =========================================================
   EXAM DETAIL PAGE (/exams/{slug}) — matches the approved mockup
   ========================================================= */
.xd-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(100deg, #06285f 0%, #0b3b8c 40%, #1356b8 62%, #e8f1fc 62.2%, #f3f8fe 100%); }
.xd-hero::before { content: ""; position: absolute; z-index: 0; left: 46%; top: -30%; width: 14%; height: 170%; background: linear-gradient(90deg, rgba(31, 165, 74, 0), rgba(31, 165, 74, .55), rgba(140, 220, 120, .35), rgba(255, 255, 255, 0)); transform: rotate(24deg); filter: blur(2px); pointer-events: none; }
.xd-hero-art img { display: block; width: 100%; height: auto; }
.xd-hero-inner { position: relative; z-index: 2; padding-block: 24px 56px; }
.xd-hero .breadcrumbs { margin-bottom: 14px; }
.xd-hero .breadcrumbs li, .xd-hero .breadcrumbs a { color: rgba(255, 255, 255, .78); }
.xd-hero .breadcrumbs a:hover { color: #fff; }
.xd-hero .breadcrumbs [aria-current] { color: #fff; }
.xd-hero h1 { color: #fff; margin: 0 0 14px; font-size: clamp(2.2rem, 3.4vw + .9rem, 3.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; }
.xd-variant { color: #6fdc55; }
.xd-hero p { max-width: 470px; margin: 0 0 24px; font-size: clamp(1rem, .4vw + .9rem, 1.2rem); line-height: 1.4; color: rgba(255, 255, 255, .94); }
.xd-hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.xd-hero-cta .btn { padding: 12px 24px; border-radius: 8px; font-size: 1rem; }
.xd-hero-cta .btn-primary { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 8px 20px -8px rgba(0, 0, 0, .5); }
.xd-btn-light { background: #fff; color: var(--navy-900); border: 2px solid #2a62c9; }
.xd-btn-light:hover { background: #f1f6ff; color: var(--navy-900); }
.xd-btn-light .icon { color: var(--navy-900); }
.xd-btn-navy { background: linear-gradient(180deg, #1256c4, #0b3b8c); color: #fff; }
.xd-btn-navy:hover { color: #fff; filter: brightness(1.1); }
@media (min-width: 900px) {
  .xd-hero-art { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 55%; -webkit-mask-image: linear-gradient(100deg, transparent 0, #000 14%); mask-image: linear-gradient(100deg, transparent 0, #000 14%); }
  .xd-hero-art img { height: 100%; object-fit: cover; object-position: 30% 50%; }
  .xd-hero-inner { min-height: 350px; display: flex; flex-direction: column; justify-content: center; padding-block: 22px 62px; }
  .xd-hero-inner > * { max-width: 520px; }
}
@media (max-width: 899px) {
  .xd-hero { background: linear-gradient(160deg, #06285f 0%, #0b3b8c 55%, #1356b8 100%); display: flex; flex-direction: column; }
  .xd-hero::before { display: none; }
  .xd-hero-art { order: 2; background: #eef5fd; }
  .xd-hero-art img { max-height: 260px; object-fit: cover; }
  .xd-hero-inner { padding-block: 20px 28px; }
}

/* Feature strip overlapping the hero */
.xd-features { position: relative; z-index: 3; list-style: none; margin: -30px 0 0; padding: 10px 14px; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border: 1px solid #edf1f7; border-radius: 14px; box-shadow: 0 14px 34px -14px rgba(11, 59, 140, .35); }
.xd-features li + li { border-left: 1px solid #e3e8f1; }
.xd-features a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 14px; border-radius: 10px; color: #26324a; text-decoration: none; font-size: .9rem; line-height: 1.3; transition: background .2s; }
.xd-features a:hover { background: #f4f9f5; }
.xd-features strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--navy-900); letter-spacing: -.01em; }
.xd-fi { flex-shrink: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #e9f7ee; color: var(--green); transition: transform .3s var(--ease); }
.xd-features a:hover .xd-fi { transform: scale(1.08) rotate(-4deg); }

/* Sections */
.xd-sec { padding-top: 44px; }
.xd-sec-tight { padding-top: 34px; }
.xd-head { margin-bottom: 26px; }
.xd-head h2, .xd-sec h2.title-bar { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; padding-bottom: 12px; }
.xd-sec .title-bar.left::after { width: 54px; }
.xd-head p { margin: 0; font-size: 1.05rem; color: #14213d; }
.xd-h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.xd-h3 { font-size: 1.15rem; margin: 26px 0 12px; scroll-margin-top: 100px; }

/* Prepare-your-way cards */
.xd-ways { display: grid; gap: 14px; }
.xd-way, .xd-video, .xd-resell { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid #e4ecf6; box-shadow: 0 10px 26px -16px rgba(11, 59, 140, .35); }
.page-exams .xd-way.done, .page-exams .xd-video.done, .page-exams .xd-resell.done, .no-js .xd-way { transition: transform .25s var(--ease), box-shadow .25s; }
.xd-way:hover, .xd-video:hover, .xd-resell:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(11, 59, 140, .4); }
.xd-green { background: linear-gradient(135deg, #f1faf3, #e6f5ea); }
.xd-blue { background: linear-gradient(135deg, #f1f6fe, #e4eefb); }
.xd-way { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px; padding: 20px; }
.xd-way h3, .xd-video h3, .xd-resell h3 { margin: 0 0 6px; font-size: clamp(1.25rem, .6vw + 1rem, 1.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); }
.xd-way p, .xd-video p, .xd-resell p { margin: 0; font-size: .98rem; line-height: 1.35; color: #26324a; }
.xd-dev { width: 150px; height: auto; transition: transform .4s var(--ease); }
.xd-dev-phone { width: 86px; justify-self: center; }
.xd-way:hover .xd-dev { transform: translateY(-3px) scale(1.03); }
.xd-way-btn { grid-column: 1 / -1; justify-self: center; margin-top: 12px; padding: 10px 24px; border-radius: 8px; font-size: .98rem; }
.xd-gplay { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 14px 6px 10px; background: #000; color: #fff; border-radius: 8px; text-decoration: none; line-height: 1; border: 1px solid #a6a6a6; transition: transform .2s; }
.xd-gplay:hover { color: #fff; transform: translateY(-2px); }
.xd-gplay span { display: flex; flex-direction: column; font-size: 1.2rem; letter-spacing: -.01em; }
.xd-gplay small { font-size: .58rem; letter-spacing: .04em; margin-bottom: 2px; }

.xd-duo { display: grid; gap: 14px; margin-top: 16px; }
.xd-video { display: grid; align-items: center; gap: 18px; padding: 18px; }
.xd-video-art { display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; overflow: hidden; }
.xd-video-art img { display: block; width: 100%; height: auto; transition: transform .4s var(--ease); }
.xd-video-art:hover img { transform: scale(1.03); }
.xd-video .btn { margin-top: 14px; padding: 9px 22px; border-radius: 8px; border-color: #cfd9e8; box-shadow: 0 4px 12px -6px rgba(11, 59, 140, .3); }
.xd-video .btn .icon { color: var(--green); }
.xd-resell { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px 26px; align-items: start; }
.xd-resell-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #2bbf5b, #178a3c); color: #fff; box-shadow: 0 8px 18px -8px rgba(23, 138, 60, .7); }
.xd-resell .btn { margin-top: 16px; padding: 11px 26px; border-radius: 8px; }
@media (min-width: 768px) {
  .xd-ways { grid-template-columns: repeat(3, 1fr); }
  .xd-way { grid-template-columns: 42% 1fr; }
  .xd-video { grid-template-columns: 52% 1fr; }
}
@media (min-width: 1024px) { .xd-duo { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { .xd-way { grid-template-columns: 1fr; text-align: center; } .xd-dev { margin-inline: auto; } .xd-way .xd-gplay { margin-inline: auto; } }

/* Subject tiles */
.xd-subjects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .xd-subjects { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .xd-subjects { grid-template-columns: repeat(8, 1fr); } }
.xd-subjects a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; height: 100%; padding: 12px 6px; text-align: center; background: #fff; border: 1px solid #edf1f7; border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(11, 59, 140, .25); font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.15; color: var(--navy-900); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.xd-subjects a:hover { transform: translateY(-4px); border-color: rgba(31, 165, 74, .45); box-shadow: 0 14px 26px -12px rgba(11, 59, 140, .35); color: var(--navy-900); }
.xd-subjects .icon { stroke-width: 1.7; transition: transform .3s var(--ease); }
.xd-subjects a:hover .icon { transform: scale(1.1); }
.xd-sub-green .icon { color: var(--green); }
.xd-sub-blue .icon { color: #1565c0; }

/* About + facts, samples, guide/FAQ */
.xd-about, .xd-guide { display: grid; gap: 30px; }
@media (min-width: 1024px) { .xd-about { grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; } .xd-guide { grid-template-columns: 1fr 1fr; gap: 44px; } }
.xd-about p { color: var(--text); }
.xd-caption { caption-side: top; text-align: left; font-family: var(--font-head); font-weight: 700; color: var(--navy-900); padding-bottom: 10px; font-size: 1.1rem; }
.xd-head-row { align-items: center; margin-bottom: 20px; }
.xd-head-row h2.title-bar { margin: 0; }
.xd-samples { display: grid; gap: 14px; }
@media (min-width: 900px) { .xd-samples { grid-template-columns: 1fr 1fr; } }
.xd-samples .sample-q + .sample-q { margin-top: 0; }
#past-questions, #study-guide, #faq, #subjects, #overview { scroll-margin-top: 90px; }
.xd-cta { padding-bottom: 40px; }

@media (max-width: 1023px) {
  .xd-features { grid-template-columns: repeat(3, 1fr); row-gap: 4px; }
  .xd-features li:nth-child(4) { border-left: 0; }
}
@media (max-width: 767px) {
  .xd-features { grid-template-columns: 1fr 1fr; margin-top: -18px; padding: 8px; }
  .xd-features li { border-left: 0 !important; }
  .xd-features li:last-child { grid-column: span 2; }
  .xd-features a { padding: 8px; gap: 10px; font-size: .8rem; }
  .xd-features strong { font-size: .9rem; }
  .xd-fi { width: 40px; height: 40px; }
  .xd-fi .icon { width: 24px; height: 24px; }
  .xd-way { grid-template-columns: 110px 1fr; }
  .xd-dev { width: 110px; }
  .xd-dev-phone { width: 70px; }
  .xd-resell { grid-template-columns: 1fr; padding: 20px; }
  .xd-hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* Exam page motion */
@media (prefers-reduced-motion: no-preference) {
  .xd-hero-inner > * { animation: hmUp .8s cubic-bezier(.2, .7, .2, 1) both; }
  .xd-hero-inner > :nth-child(2) { animation-delay: .08s; }
  .xd-hero-inner > :nth-child(3) { animation-delay: .16s; }
  .xd-hero-inner > :nth-child(4) { animation-delay: .24s; }
  .xd-hero-art img { animation: hmPhoto 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .xd-hero::before { animation: hmSheen 9s ease-in-out infinite; }
  .xd-features { animation: hmUp .8s .3s cubic-bezier(.2, .7, .2, 1) both; }
  .xd-hero-cta .btn-primary { position: relative; overflow: hidden; }
  .xd-hero-cta .btn-primary::after { content: ""; position: absolute; top: 0; left: 0; width: 35%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: hmShine 3.2s 1.2s ease-in-out infinite; pointer-events: none; }
  .xd-resell-icon { animation: hmFloat 4s ease-in-out infinite; }
  html:not(.no-js) .page-exams .xd-head[data-anim] .title-bar::after { width: 0; }
  html:not(.no-js) .page-exams .xd-head.in .title-bar::after { animation: xBar .7s .25s cubic-bezier(.2, .7, .2, 1) forwards; }
}
/* exam page tuning */
.xd-features a { gap: 10px; padding: 8px 10px; font-size: .84rem; }
.xd-features strong { white-space: nowrap; font-size: .95rem; }
.xd-fi { width: 44px; height: 44px; }
.xd-fi .icon { width: 26px; height: 26px; }
.xd-gplay span { white-space: nowrap; }
.xd-way { padding: 18px 16px; gap: 4px 12px; }
.xd-way h3, .xd-video h3, .xd-resell h3 { font-size: clamp(1.15rem, .5vw + .95rem, 1.5rem); white-space: nowrap; }
.xd-way p { font-size: .94rem; }
@media (min-width: 768px) { .xd-way { grid-template-columns: 40% 1fr; } .xd-video { grid-template-columns: 46% 1fr; } }
@media (min-width: 1024px) { .xd-features a > span:last-child { white-space: nowrap; } .xd-features a { gap: 9px; } .xd-fi { width: 42px; height: 42px; } }
@media (min-width: 900px) { .xd-hero-inner > h1 { max-width: none; white-space: nowrap; } }
@media (max-width:767px){.xd-features ul,.xd-features{grid-template-columns:repeat(2,minmax(0,1fr))}.xd-features strong,.xd-features a > span:last-child{white-space:normal}.xd-features a{min-width:0}}

/* Links to pages without an approved UI yet (see UI_READY_PAGES) */
a.is-off { cursor: default; }
/* .btn.is-off keeps its normal colours (no dimming) */

/* The hidden attribute always wins over component display rules (used by the exam filter) */
[hidden] { display: none !important; }

/* =========================================================
   DEVICE ACTIVATION PAGE (/activate)
   ========================================================= */
@media (min-width: 900px) { .act-hero .xd-hero-inner { min-height: 330px; padding-block: 30px 40px; } .act-hero h1 { white-space: nowrap; } }
.act-hero h1 { font-size: clamp(2.3rem, 3.6vw + .9rem, 3.75rem); }
.act-hero p { max-width: 500px; margin-bottom: 0; }
.act-sec { padding-block: 34px 10px; }
.act-card { display: grid; gap: 28px; padding: 28px 22px; background: #fff; border: 1px solid #e6ebf3; border-radius: 22px; box-shadow: 0 18px 44px -24px rgba(11, 59, 140, .35); }

.act-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.act-blob { position: absolute; inset: 8% 4% 6%; border-radius: 52% 48% 46% 54% / 56% 50% 50% 44%; background: radial-gradient(circle at 40% 45%, #e4effd 0%, #d7e7fb 60%, #e9f2fd 100%); }
.act-laptop, .act-phone { position: absolute; mix-blend-mode: multiply; }
.act-laptop { left: 2%; top: 22%; width: 72%; height: auto; }
.act-phone { right: 6%; top: 24%; width: 26%; height: auto; }
.act-check { position: absolute; left: 50%; top: 64%; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, #34c25c, #138a3a); border: 5px solid #fff; box-shadow: 0 10px 22px -8px rgba(19, 138, 58, .7); transform: translateX(-30%); }
.act-check .icon { stroke-width: 3.2; }

.act-form h2 { font-size: clamp(1.7rem, 1.6vw + 1rem, 2.25rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.act-form .title-bar { padding-bottom: 16px; }
.act-form .title-bar.left::after { width: 70px; height: 4px; }
.act-lead { margin: 0 0 18px; font-size: 1.06rem; line-height: 1.45; color: #14213d; }
.act-field { position: relative; margin-bottom: 16px; }
.act-field input { width: 100%; height: 52px; padding: 0 52px 0 54px; font: inherit; font-size: 1.02rem; color: var(--ink); background: #fff; border: 1px solid #cfd7e4; border-radius: 9px; box-shadow: 0 2px 6px -3px rgba(11, 59, 140, .18); transition: border-color .2s, box-shadow .2s; }
.act-field input::placeholder { color: #26324a; opacity: .9; }
.act-field input:focus { outline: 0; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(31, 165, 74, .14); }
.act-field .act-ic { position: absolute; left: 18px; top: 15px; color: var(--navy-900); stroke-width: 1.7; pointer-events: none; }
.act-tip { position: absolute; right: 14px; top: 11px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--navy-900); }
.act-tip:hover { color: var(--green-600); }
.act-field.has-error input { border-color: var(--danger); }
.act-field .err { display: block; margin-top: 6px; color: var(--danger); font-size: .84rem; }
.act-submit { width: 100%; height: 54px; margin-top: 4px; border-radius: 9px; font-size: 1.15rem; justify-content: center; gap: 12px; background: linear-gradient(180deg, #27a748, #0f7a2e); box-shadow: 0 10px 22px -12px rgba(15, 122, 46, .8); }

.act-where { display: flex; align-items: center; gap: 18px; padding: 16px 22px; background: #eaf2fd; border-radius: 12px; scroll-margin-top: 120px; }
.act-where:target { box-shadow: 0 0 0 3px rgba(19, 86, 184, .35); }
.act-where-ic { flex-shrink: 0; color: #1356b8; }
.act-where p { margin: 0; color: #14213d; font-size: .98rem; line-height: 1.4; }
.act-where strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--navy-900); }

.act-perks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
.act-perks li { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2; color: var(--navy-900); }
.act-perks .icon { flex-shrink: 0; color: var(--green-600); stroke-width: 1.8; }

.act-help { padding-block: 34px 8px; }
.act-btn-ghost { padding: 8px 20px; color: #fff; background: transparent; border: 2px solid rgba(255, 255, 255, .9); box-shadow: none !important; }
.act-btn-ghost:hover { color: var(--navy-900); background: #fff; }

@media (min-width: 900px) {
  .act-card { grid-template-columns: 41% 1fr; gap: 0 36px; padding: 32px 32px 30px; }
  .act-art { min-height: 0; }
  .act-form { padding: 6px 0 10px 36px; border-left: 1px solid #d9e0ea; }
  .act-where { grid-column: 1 / -1; margin-top: 18px; }
  .act-perks { grid-template-columns: repeat(4, 1fr); margin-top: 34px; gap: 0; }
  .act-perks li { justify-content: center; padding: 6px 12px; }
  .act-perks li + li { border-left: 1px solid #d9e0ea; }
}
@media (max-width: 899px) { .act-hero .xd-hero-art img { max-height: 220px; } }
@media (max-width: 479px) { .act-art { min-height: 220px; } .act-check { width: 60px; height: 60px; } .act-check .icon { width: 30px; height: 30px; } .act-perks li { font-size: .95rem; } .act-where { align-items: flex-start; padding: 14px 16px; gap: 12px; } }
@media (prefers-reduced-motion: no-preference) {
  .act-check { animation: actPop .6s .5s cubic-bezier(.3, 1.5, .5, 1) both; }
  .act-phone { animation: hmFloat 5s ease-in-out infinite; }
  .act-submit { position: relative; overflow: hidden; }
  .act-submit::after { content: ""; position: absolute; top: 0; left: 0; width: 35%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent); animation: hmShine 3.4s 1.2s ease-in-out infinite; pointer-events: none; }
}
@keyframes actPop { from { opacity: 0; transform: translateX(-30%) scale(.3); } to { opacity: 1; transform: translateX(-30%) scale(1); } }
/* the device crops sit on a pale blue (≈#eef6ff) backdrop: lift it to white so multiply blends it away */
.act-laptop, .act-phone { filter: brightness(1.075); }
.act-perks { align-items: center; }

/* =========================================================
   FLOATING WHATSAPP CHAT WIDGET (all pages)
   ========================================================= */
.back-to-top { bottom: 88px; right: 20px; width: 46px; height: 46px; border-radius: 12px; }
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-fab { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 14px; font: 700 .98rem/1 var(--font-head); white-space: nowrap; color: #fff; background: #25d366; box-shadow: 0 12px 26px -8px rgba(18, 140, 70, .75); cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.wa-fab:hover { background: #1ebe5b; transform: translateY(-2px); }
.wa-fab:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 3px; }
.wa-teaser { position: absolute; right: 70px; bottom: 12px; margin: 0; padding: 8px 14px; white-space: nowrap; font-size: .9rem; font-weight: 600; color: var(--navy-900); background: #fff; border-radius: 10px; box-shadow: 0 8px 24px -8px rgba(11, 59, 140, .35); }
.wa-teaser::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; background: #fff; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.wa-panel { width: min(340px, calc(100vw - 40px)); overflow: hidden; background: #fff; border-radius: 16px; box-shadow: 0 24px 50px -18px rgba(6, 40, 95, .45); transform-origin: bottom right; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 18px; color: #fff; background: linear-gradient(135deg, #075e54, #128c7e); }
.wa-head > div { flex: 1; min-width: 0; }
.wa-head strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.wa-status { display: flex; align-items: center; gap: 6px; font-size: .8rem; opacity: .9; }
.wa-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7cf29b; }
.wa-avatar { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: #fff; border: 2px solid rgba(255, 255, 255, .6); }
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wa-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: transparent; cursor: pointer; }
.wa-close:hover { background: rgba(255, 255, 255, .15); }
.wa-body { padding: 20px 18px; background: #efeae2; }
.wa-bubble { position: relative; max-width: 92%; margin: 0; padding: 10px 14px; font-size: .95rem; line-height: 1.45; color: #111b21; background: #fff; border-radius: 0 10px 10px 10px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-bubble::before { content: ""; position: absolute; left: -8px; top: 0; border: 8px solid transparent; border-top-color: #fff; border-right-color: #fff; border-width: 0 8px 10px 0; }
.wa-start { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px; padding: 12px; font-weight: 700; color: #fff; background: #25d366; border-radius: 999px; }
.wa-start:hover { color: #fff; background: #1ebe5b; }
@media (prefers-reduced-motion: no-preference) {
  .wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 14px; border: 2px solid #25d366; animation: waRing 2.4s ease-out infinite; }
  .wa-fab[aria-expanded="true"]::before { animation: none; }
  .wa-panel:not([hidden]) { animation: waIn .25s var(--ease) both; }
  .wa-teaser:not([hidden]) { animation: waIn .3s var(--ease) both; }
}
@keyframes waRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.12, 1.4); opacity: 0; } }
@keyframes waIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@media print { .wa-widget { display: none !important; } }
body:has(.wa-panel:not([hidden])) .back-to-top { opacity: 0; visibility: hidden; }
.wa-teaser { cursor: pointer; }
.xd-act-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; font-size: .95rem; color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(31, 165, 74, .35); }
.xd-act-link:hover { color: var(--navy-900); text-decoration-color: currentColor; }
.xd-gplay + .xd-act-link { display: flex; width: fit-content; }
.xd-act-link.xd-act-under { grid-column: 1 / -1; justify-self: center; margin-top: 8px; }

/* ===== Exam features list ===== */
.xd-feats { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .xd-feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) and (max-width: 1023px) { .xd-feats .xd-feat-cta:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }
@media (min-width: 1024px) { .xd-feats { grid-template-columns: repeat(3, 1fr); gap: 16px; } .xd-feats .xd-feat-cta:nth-child(3n+2) { grid-column: span 2; } .xd-feats .xd-feat-cta:nth-child(3n+1) { grid-column: 1 / -1; } .xd-feats .xd-feat-cta:not(:nth-child(3n)) { flex-direction: row; justify-content: space-between; align-items: center; } }
.xd-feat { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid #e4ecf6; box-shadow: 0 10px 26px -18px rgba(11, 59, 140, .35); overflow: hidden; }
.page-exams .xd-feat.done, .no-js .xd-feat { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.xd-feat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--green); opacity: 0; transition: opacity .25s; }
.xd-feat-blue::before { background: var(--blue); }
.xd-feat:hover { transform: translateY(-3px); border-color: #cfe0f5; box-shadow: 0 16px 30px -16px rgba(11, 59, 140, .38); }
.xd-feat:hover::before { opacity: 1; }
.xd-feat-ic { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--green-50); color: var(--green); transition: transform .25s var(--ease); }
.xd-feat-blue .xd-feat-ic { background: var(--blue-50); color: var(--blue); }
.xd-feat:hover .xd-feat-ic { transform: scale(1.06) rotate(-4deg); }
.xd-feat-copy { font-size: .95rem; line-height: 1.45; color: #26324a; }
.xd-feat-copy strong { display: block; margin-bottom: 3px; font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; color: var(--navy-900); }
.xd-feat-cta { flex-direction: column; justify-content: center; gap: 12px; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); border-color: transparent; }
.xd-feat-cta::before { display: none; }
.xd-feat-cta .xd-feat-copy, .xd-feat-cta .xd-feat-copy strong { color: #fff; }
.xd-feat-cta .xd-feat-copy { opacity: .92; }
.xd-feat-cta .btn { padding: 10px 22px; border-radius: 8px; }
.xd-variant.xd-break { display: block; }

/* Brand wordmark image */
.brand-logo { display: block; flex: none; align-self: flex-start; height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.site-header .brand-text { gap: 3px; }
.site-header .brand-tag { margin-top: 0; }
.footer-brand .brand-logo { height: 40px; }
.cta-logo .brand-logo { align-self: center; width: 100%; max-width: 235px; height: auto; }
@media (max-width: 480px) { .site-header .brand-logo { height: 34px; } .cta-logo .brand-logo { max-width: 205px; } }

/* JAMB hero: phone app mockup on mobile only, between the heading and the intro */
.xd-hero-phone { display: none; }
@media (max-width: 899px) {
  .xd-hero-art.has-phone { display: none; }
  .xd-hero-art.has-phone + .xd-hero-inner h1 { text-align: center; }
  .xd-hero-phone { display: block; margin: 6px 0 22px; text-align: center; }
  .xd-hero-phone img { display: inline-block; box-sizing: border-box; width: auto; height: 420px; max-width: 80%; padding: 14px 18px; object-fit: contain; background: #fff; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 20px 40px -12px rgba(0, 0, 0, .45); }
}
@media (max-width: 380px) { .xd-hero-phone img { height: 380px; } }
