/* ============================================================
   SterilePro CSSD Academy — Global Stylesheet
   Mobile-first • Fast • AdSense & SEO friendly
   ============================================================ */

:root {
  --c-teal-900: #134e4a;
  --c-teal-700: #0f766e;
  --c-teal-600: #0d9488;
  --c-cyan-700: #0e7490;
  --c-cyan-600: #0891b2;
  --c-cyan-500: #06b6d4;
  --c-cyan-100: #cffafe;
  --c-cyan-50: #ecfeff;
  --c-sky-100: #e0f2fe;
  --c-blue-600: #2563eb;
  --c-green-600: #059669;
  --c-green-100: #d1fae5;
  --c-red-600: #dc2626;
  --c-red-100: #fee2e2;
  --c-amber-500: #f59e0b;
  --c-amber-100: #fef3c7;
  --c-slate-900: #0f172a;
  --c-slate-700: #334155;
  --c-slate-600: #475569;
  --c-slate-500: #64748b;
  --c-slate-200: #e2e8f0;
  --c-slate-100: #f1f5f9;
  --c-slate-50: #f8fafc;
  --c-white: #ffffff;

  --grad-brand: linear-gradient(135deg, #0e7490 0%, #0d9488 60%, #14b8a6 100%);
  --grad-hero: radial-gradient(1100px 520px at 15% -10%, rgba(34,211,238,.35), transparent 60%),
               radial-gradient(900px 480px at 90% 10%, rgba(20,184,166,.28), transparent 55%),
               linear-gradient(160deg, #0b3b4d 0%, #0e7490 55%, #0d9488 100%);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 6px 18px -6px rgba(15, 23, 42, .16), 0 3px 8px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .28);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--c-slate-700);
  background: var(--c-slate-50);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; display: block; }
a { color: var(--c-cyan-700); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--c-slate-900); line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; }

.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 2rem); margin-inline: auto; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--c-slate-500); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; gap: .75rem; align-items: center; }
.flex-between { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; cursor: pointer; border: none; border-radius: var(--radius-md);
  padding: .8rem 1.5rem; min-height: 46px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s;
  background: var(--c-cyan-600); color: #fff;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(6,182,212,.5); outline-offset: 2px; }
.btn-primary { background: var(--grad-brand); color: #fff; }
.btn-outline { background: transparent; color: var(--c-cyan-700); box-shadow: inset 0 0 0 2px var(--c-cyan-500); }
.btn-outline:hover { background: var(--c-cyan-50); }
.btn-ghost { background: var(--c-slate-100); color: var(--c-slate-700); }
.btn-ghost:hover { background: var(--c-slate-200); }
.btn-success { background: var(--c-green-600); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem 1rem; min-height: 38px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-slate-200);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--c-cyan-700); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand small { display: block; font-size: .58rem; font-weight: 600; color: var(--c-slate-500); letter-spacing: .1em; text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; background: none; border: none; cursor: pointer; padding: .5rem;
  color: var(--c-slate-700);
}
.nav-toggle svg { width: 26px; height: 26px; }

.main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--c-slate-200); box-shadow: var(--shadow-md); }
.main-nav.open { display: block; }
.main-nav ul { padding: .5rem 1rem 1rem; }
.main-nav a {
  display: block; padding: .7rem .75rem; border-radius: var(--radius-sm);
  color: var(--c-slate-700); font-weight: 600; transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--c-cyan-50); color: var(--c-cyan-700); text-decoration: none; }
.main-nav .active { color: var(--c-cyan-700); background: var(--c-cyan-50); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; position: static; background: none; border: none; box-shadow: none; }
  .main-nav ul { display: flex; gap: 0.1rem; padding: 0; align-items: center; }
  .main-nav a { padding: .4rem .45rem; font-size: 0.82rem; white-space: nowrap; }

  /* Desktop Dropdown Styling */
  .main-nav .dropdown:hover .dropdown-menu {
    display: block !important;
  }
  .main-nav .dropdown-menu a:hover {
    background: var(--c-cyan-50);
    color: var(--c-cyan-700);
    text-decoration: none;
  }
}

@media (min-width: 1200px) {
  .main-nav ul { gap: 0.25rem; }
  .main-nav a { padding: .4rem .6rem; font-size: 0.88rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--grad-hero); color: #fff; padding: 3.5rem 0 3rem; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero p.lead { font-size: 1.08rem; opacity: .92; max-width: 60ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .82rem; font-weight: 600;
  padding: .35rem .8rem; border-radius: 999px; backdrop-filter: blur(4px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 2rem; }
@media (min-width: 760px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md); padding: .9rem 1rem; text-align: center; backdrop-filter: blur(4px); }
.stat-card b { display: block; font-size: 1.5rem; color: #fff; }
.stat-card span { font-size: .78rem; opacity: .85; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--c-slate-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.5rem; transition: transform .18s ease, box-shadow .18s ease;
}
.card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-title { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.card-title svg { flex: none; }
.topic-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md); display: inline-flex;
  align-items: center; justify-content: center; background: var(--c-cyan-50); color: var(--c-cyan-700); flex: none;
}
.topic-icon svg { width: 24px; height: 24px; }

/* ---------- Section headers ---------- */
.section { padding: 3rem 0; }
.section-head { margin-bottom: 1.75rem; }
.section-head .kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-cyan-700); background: var(--c-cyan-50);
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: .6rem; }

/* ---------- Ad slots & Banners ---------- */
.ad-slot {
  margin: 1.5rem auto; max-width: 728px; text-align: center;
}
.ad-slot .ad-label { display: block; font-size: .65rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-slate-400); margin-bottom: .35rem; }
.ad-box {
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--c-slate-300); border-radius: var(--radius-md);
  background: repeating-linear-gradient(45deg, #fff, #fff 12px, var(--c-slate-100) 12px, var(--c-slate-100) 24px);
  color: var(--c-slate-400); font-size: .8rem; padding: .75rem;
  overflow: hidden; width: 100%;
}
.ad-banner-top, .ad-banner-bottom {
  width: 100%; display: flex; justify-content: center; margin: 1rem 0;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.form-group label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; color: var(--c-slate-700); }
.form-group .hint { font-size: .78rem; color: var(--c-slate-500); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font: inherit; color: var(--c-slate-900);
  padding: .7rem .9rem; border: 1.5px solid var(--c-slate-200); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--c-cyan-500); box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.field-error { font-size: .78rem; color: var(--c-red-600); font-weight: 600; }
.form-note { font-size: .82rem; color: var(--c-slate-500); margin-top: .6rem; }

/* ---------- Alert / notice ---------- */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-md); font-weight: 600; font-size: .95rem;
  display: flex; gap: .6rem; align-items: flex-start; }
.alert-success { background: var(--c-green-100); color: #065f46; }
.alert-error { background: var(--c-red-100); color: #991b1b; }
.alert-info { background: var(--c-sky-100); color: #1e40af; }
.alert-warn { background: var(--c-amber-100); color: #92400e; }

/* ---------- Quiz ---------- */
.quiz-shell { max-width: 760px; margin-inline: auto; }
.quiz-topbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: wrap; margin-bottom: 1rem; }
.quiz-meta { display: flex; gap: .5rem; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px; }
.badge-cyan { background: var(--c-cyan-50); color: var(--c-cyan-700); }
.badge-amber { background: var(--c-amber-100); color: #92400e; }
.badge-green { background: var(--c-green-100); color: #065f46; }
.badge-red { background: var(--c-red-100); color: #991b1b; }
.badge-slate { background: var(--c-slate-100); color: var(--c-slate-600); }

.timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--c-slate-900); }
.timer.warning { color: var(--c-red-600); animation: pulse 1s infinite; }

.progress-track { height: 10px; background: var(--c-slate-200); border-radius: 999px; overflow: hidden; margin: .5rem 0 1.25rem; }
.progress-fill { height: 100%; background: var(--grad-brand); border-radius: 999px; transition: width .35s ease; }

.question-card .q-num { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-cyan-700); margin-bottom: .35rem; }
.question-card .q-text { font-size: 1.12rem; font-weight: 700; color: var(--c-slate-900); margin-bottom: 1.1rem; }

.option {
  display: flex; align-items: flex-start; gap: .75rem; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid var(--c-slate-200); border-radius: var(--radius-md);
  padding: .85rem 1rem; margin-bottom: .7rem; font: inherit; font-weight: 600; color: var(--c-slate-800);
  transition: border-color .15s, background .15s, transform .12s;
}
.option:hover:not(:disabled) { border-color: var(--c-cyan-500); background: var(--c-cyan-50); transform: translateX(4px); }
.option .opt-letter {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; background: var(--c-slate-100); color: var(--c-slate-600); font-size: .85rem; font-weight: 800;
}
.option.correct { border-color: var(--c-green-600); background: var(--c-green-100); color: #065f46; }
.option.correct .opt-letter { background: var(--c-green-600); color: #fff; }
.option.incorrect { border-color: var(--c-red-600); background: var(--c-red-100); color: #991b1b; }
.option.incorrect .opt-letter { background: var(--c-red-600); color: #fff; }
.option:disabled { cursor: default; }

.explanation {
  margin-top: .25rem; padding: 1rem 1.15rem; border-left: 4px solid var(--c-cyan-500);
  background: var(--c-cyan-50); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: .95rem;
}
.explanation b { color: var(--c-cyan-700); }

.quiz-controls { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.1rem; flex-wrap: wrap; }

/* ---------- Result / score ---------- */
.score-ring {
  width: 150px; height: 150px; border-radius: 50%; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: conic-gradient(var(--c-cyan-600) calc(var(--score) * 1%), var(--c-slate-200) 0);
  position: relative;
}
.score-ring::before { content: ""; position: absolute; inset: 12px; background: #fff; border-radius: 50%; }
.score-ring b, .score-ring span { position: relative; z-index: 1; }
.score-ring b { font-size: 2rem; color: var(--c-slate-900); line-height: 1; }
.score-ring span { font-size: .8rem; color: var(--c-slate-500); font-weight: 700; }

.result-verdict { text-align: center; }
.result-verdict .big { font-size: 1.35rem; font-weight: 800; }
.result-verdict .pass { color: var(--c-green-600); }
.result-verdict .fail { color: var(--c-red-600); }

/* ---------- Certificate ---------- */
.cert-page { padding: 2.5rem 0 4rem; }
.cert-toolbar { text-align: center; margin-bottom: 1.5rem; }
.cert {
  --border: 10px solid var(--c-cyan-700);
  background: #fff url("../assets/watermark.svg") center / cover repeat;
  border: var(--border); outline: 2px solid #fff; outline-offset: -14px;
  border-radius: var(--radius-lg); padding: 2.25rem 1.75rem; text-align: center;
  box-shadow: var(--shadow-lg); position: relative; max-width: 820px; margin-inline: auto;
}
.cert-inner { border: 2px solid rgba(14,116,144,.35); border-radius: var(--radius-md); padding: 2rem 1.5rem; }
.cert-logo { width: 74px; margin-inline: auto; }
.cert .org { letter-spacing: .28em; text-transform: uppercase; font-size: .75rem; font-weight: 800; color: var(--c-cyan-700); margin-top: .5rem; }
.cert h1 { font-family: var(--font-serif); font-size: clamp(1.6rem, 5vw, 2.4rem); margin: .4rem 0; color: var(--c-cyan-700); }
.cert .award-line { font-size: .98rem; color: var(--c-slate-600); }
.cert .name {
  font-family: var(--font-serif); font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 700; color: var(--c-slate-900);
  border-bottom: 2px solid var(--c-slate-300); display: inline-block; padding: 0 1.5rem .35rem; margin: 1rem 0;
}
.cert .detail { font-size: .95rem; margin-top: .35rem; }
.cert .detail b { color: var(--c-slate-900); }
.cert-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; text-align: left; }
.cert-row .col { flex: 1; min-width: 150px; font-size: .82rem; color: var(--c-slate-600); }
.cert-row .col b { display: block; font-size: .95rem; color: var(--c-slate-900); }
.seal {
  width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #cffafe, #0891b2);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
  border: 3px double #fff; box-shadow: 0 0 0 3px #0891b2, var(--shadow-md); margin-inline: auto;
}
.cert-footer { text-align: center; margin-top: 1.5rem; }
.verify-note { font-size: .8rem; color: var(--c-slate-500); }

/* ---------- Vendor cards ---------- */
.vendor-card .vendor-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.vendor-avatar {
  width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--grad-brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; flex: none;
}
.verified-badge { color: var(--c-green-600); background: var(--c-green-100); }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; background: var(--c-slate-100);
  color: var(--c-slate-600); padding: .25rem .6rem; border-radius: 999px; margin: .15rem .15rem 0 0; }

/* ---------- Steps ---------- */
.steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.step { flex: 1; min-width: 120px; text-align: center; padding: .6rem .4rem; border-radius: var(--radius-md);
  background: var(--c-slate-100); color: var(--c-slate-500); font-size: .8rem; font-weight: 700; position: relative; }
.step b { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .15rem; }
.step.active { background: var(--grad-brand); color: #fff; }
.step.done { background: var(--c-green-100); color: #065f46; }

/* ---------- FAQ / interview ---------- */
.faq-item { border: 1px solid var(--c-slate-200); border-radius: var(--radius-md); background: #fff;
  margin-bottom: .9rem; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; font: inherit; font-weight: 700;
  color: var(--c-slate-900); padding: 1rem 1.15rem; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; }
.faq-q svg { flex: none; transition: transform .25s ease; color: var(--c-cyan-600); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 1.15rem 1.15rem; font-size: .95rem; }
.faq-item.open .faq-a { display: block; animation: fadeIn .25s ease; }

/* ---------- Table ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--c-slate-200); }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; min-width: 560px; }
.tbl th, .tbl td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--c-slate-200); }
.tbl th { background: var(--c-slate-50); color: var(--c-slate-600); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.tbl tr:last-child td { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0b2b38; color: #cbd5e1; margin-top: 3rem; font-size: .9rem; }
.footer-grid { display: grid; gap: 2rem; padding: 2.75rem 0 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .85rem; }
.site-footer a { color: #cbd5e1; display: block; padding: .22rem 0; }
.site-footer a:hover { color: #67e8f9; text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: #fff; margin-bottom: .6rem; }
.footer-brand img { width: 36px; height: 36px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0; font-size: .78rem;
  color: #94a3b8; text-align: center; }
.footer-bottom a { display: inline; color: #94a3b8; text-decoration: underline; }

/* ---------- Modals ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 90; animation: fadeIn .2s ease; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 480px; width: 100%;
  padding: 1.75rem; box-shadow: var(--shadow-lg); animation: popIn .25s ease; max-height: 90vh; overflow-y: auto; }
.modal h3 { margin-bottom: .5rem; }
.modal-close { position: absolute; }
.qr-box { width: 180px; margin-inline: auto; padding: .6rem; border: 1.5px solid var(--c-slate-200);
  border-radius: var(--radius-md); background: #fff; }

/* ---------- Skeleton / spinner ---------- */
.spinner { width: 38px; height: 38px; border: 4px solid var(--c-slate-200); border-top-color: var(--c-cyan-600);
  border-radius: 50%; margin: 2rem auto; animation: spin .8s linear infinite; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--c-slate-500); }

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.shake { animation: shake .3s ease; }
.reveal { animation: fadeIn .4s ease; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .no-print, .site-header, .site-footer, .ad-slot { display: none !important; }
  body { background: #fff; }
  .cert { box-shadow: none; border-width: 6px; }
}

/* ============================================================
   Mobile Responsive Fixes: Hide Question Palette & Fix Layout
   ============================================================ */
@media (max-width: 1024px) {
  /* Hide Question Palette completely on mobile and tablet preview screens */
  #question-palette-container, 
  .question-palette, 
  aside.palette, 
  .palette,
  [class*="palette"],
  [id*="palette"] {
    display: none !important;
  }

  /* Make sure flex/grid layouts stack vertically */
  .container.exam-layout, 
  .exam-shell, 
  div[style*="display: flex"], 
  div[style*="display:grid"] {
    flex-direction: column !important;
    display: flex !important;
  }

  /* Force question card and areas to take 100% full width */
  .question-card, 
  #question-area, 
  .quiz-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* Make option buttons fully responsive and prevent text clipping */
  .option {
    display: flex !important;
    align-items: flex-start !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}