/* ====== Bravo Academy — green water glass theme ====== */

:root {
  --bg-1: #eef7f4;
  --bg-2: #dcefe8;
  --bg-3: #c9e6db;
  --glass: rgba(255, 255, 255, 0.48);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-edge: rgba(110, 165, 148, 0.28);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --aqua-500: #17a884;
  --aqua-400: #3ec9a7;
  --aqua-700: #0e7a60;
  --accent: #29473f;
  --text: #1c3630;
  --text-soft: rgba(28, 54, 48, 0.62);
  --danger: #c0392b;
  --radius: 18px;
  --blur: 18px;
  --shadow: 0 14px 38px rgba(28, 54, 48, 0.13);
  --font-body: "Hind Siliguri", "Segoe UI", sans-serif;
  --font-display: "Oswald", "Hind Siliguri", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Soft light refractions drifting behind the glass — like sun through water */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}
body::before {
  width: 560px; height: 560px;
  left: -160px; top: 6%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
body::after {
  width: 640px; height: 640px;
  right: -200px; top: 50%;
  background: radial-gradient(circle, rgba(95, 185, 160, 0.32), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -50px) scale(1.15); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ====== Glass primitives — clear as water ====== */
.glass,
.course-card, .branch-card, .quiz-card, .testimonial-card,
.paper-item, .question-block, .result-card, .auth-card,
.buy-box, .wa-card, .countdown div, .flash {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  outline: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-highlight);
}

/* ====== Buttons — droplets ====== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn::after {
  /* water-sheen sweep */
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
}
.btn:hover::after { left: 120%; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(28, 54, 48, 0.2); }
.btn-gold {
  background: linear-gradient(135deg, rgba(62, 201, 167, 0.95), rgba(23, 168, 132, 0.95));
  color: #052e24;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(23, 168, 132, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-green {
  background: var(--glass);
  color: var(--accent);
  border-color: var(--glass-border);
  outline: 1px solid var(--glass-edge);
  box-shadow: 0 8px 22px rgba(28, 54, 48, 0.10), inset 0 1px 0 var(--glass-highlight);
}
.btn-green:hover { background: var(--glass-strong); }
.btn-outline { background: rgba(255, 255, 255, 0.25); color: var(--text); outline: 1px solid var(--glass-edge); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 10px; }
.btn-sm { padding: 8px 20px; font-size: 0.88rem; }
.btn-lg { padding: 15px 42px; font-size: 1.05rem; }
.float { animation: floaty 4s ease-in-out infinite; }

/* ====== Navbar — clear frosted bar ====== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(28, 54, 48, 0.07);
}
/* Blur lives on a pseudo-layer so the navbar itself does NOT become the
   containing block for the fixed mobile drawer (backdrop-filter would). */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  width: 46px; height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(28, 54, 48, 0.28));
}
.brand-name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 500; }
.nav-links a { opacity: 0.8; transition: opacity 0.15s, color 0.15s; }
.nav-links a:hover { opacity: 1; color: var(--aqua-700); }
.nav-cta {
  background: linear-gradient(135deg, var(--aqua-400), var(--aqua-500));
  color: #052e24 !important;
  padding: 8px 20px;
  border-radius: 999px;
  opacity: 1 !important;
  box-shadow: 0 4px 16px rgba(23, 168, 132, 0.4);
}
.inline-form { display: inline; }
.nav-link-btn {
  background: none; border: none; color: var(--text);
  font: inherit; font-weight: 500; cursor: pointer; opacity: 0.8;
}
.nav-link-btn:hover { color: var(--aqua-700); opacity: 1; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }
.nav-controls { display: flex; align-items: center; gap: 14px; }
.drawer-close { display: none; }

/* Dimmed page behind the mobile drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 28, 23, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 110;
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }
body.nav-locked { overflow: hidden; }

/* ====== Hero ====== */
.hero { padding: 96px 0 90px; text-align: center; position: relative; }
.hero-motto { color: var(--aqua-700); font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8);
}
.hero-sub { max-width: 640px; margin: 0 auto 30px; color: var(--text-soft); font-size: 1.06rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-actions .btn-gold { animation: floaty 4s ease-in-out infinite; }
.hero-actions .btn-outline { animation: floaty 4s ease-in-out 0.6s infinite; }

.countdown-box { margin: 30px auto 0; }
.countdown-title { color: var(--text-soft); margin-bottom: 14px; font-weight: 500; }
.countdown { display: flex; gap: 14px; justify-content: center; }
.countdown div { padding: 14px 0; width: 88px; animation: floaty 5s ease-in-out infinite; }
.countdown div:nth-child(2) { animation-delay: 0.4s; }
.countdown div:nth-child(3) { animation-delay: 0.8s; }
.countdown div:nth-child(4) { animation-delay: 1.2s; }
.countdown span { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--aqua-700); display: block; }
.countdown small { color: var(--text-soft); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; }

/* ====== Stats strip ====== */
.stats-strip { padding: 10px 0 30px; }
.stats-inner { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.stat { padding: 20px 34px; text-align: center; min-width: 170px; }
.stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--aqua-700); display: block; }
.stat small { color: var(--text-soft); text-transform: uppercase; letter-spacing: 1px; font-size: 0.74rem; }

/* ====== Sections ====== */
.section { padding: 66px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.section-sub { text-align: center; color: var(--text-soft); margin-bottom: 42px; }
.sub-heading { font-family: var(--font-display); font-size: 1.3rem; margin: 34px 0 18px; letter-spacing: 1px; }

.card-row { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }

/* ====== Community ====== */
.community { padding: 46px 0; }
.community .section-title { margin-bottom: 26px; }
.wa-card {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  font-weight: 600;
  transition: transform 0.18s, background 0.18s;
}
.wa-card:hover { background: var(--glass-strong); transform: translateY(-4px); }
.wa-icon { font-size: 1.3rem; display: inline-flex; }
.wa-name { flex: 1; }
.wa-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(23, 168, 132, 0.14); color: var(--aqua-700); border: 1px solid rgba(23, 168, 132, 0.4);
}
.wa-tag.members {
  background: rgba(214, 158, 46, 0.16); color: #b7791f; border-color: rgba(214, 158, 46, 0.45);
}

/* ====== Branch cards ====== */
.branch-card {
  width: 240px;
  padding: 32px 20px;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}
.branch-card:hover { transform: translateY(-6px); background: var(--glass-strong); }
.branch-card img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 14px; }
.branch-emblem {
  display: grid; place-items: center;
  width: 72px; height: 72px; margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(23, 168, 132, 0.14);
  border: 1px solid rgba(23, 168, 132, 0.45);
  color: var(--aqua-700);
  font-size: 1.9rem;
}
.branch-name { display: block; font-size: 1.2rem; font-weight: 700; }
.branch-en { color: var(--text-soft); font-size: 0.9rem; }

/* ====== Courses ====== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 24px;
}
.course-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, background 0.2s;
}
.course-card:hover { transform: translateY(-6px); background: var(--glass-strong); }
.course-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.7), rgba(185, 220, 208, 0.55));
  color: var(--aqua-700);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.discount-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(192, 57, 43, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.course-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-body h3 { font-size: 1.05rem; line-height: 1.45; }
.course-body h3 a:hover { color: var(--aqua-700); }
.course-desc { color: var(--text-soft); font-size: 0.92rem; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--text-soft); font-size: 0.85rem; }
.course-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--glass-edge); padding-top: 12px; }
.price { font-weight: 700; font-size: 1.18rem; color: var(--aqua-700); }
.price del { color: var(--text-soft); font-weight: 400; font-size: 0.9rem; margin-left: 6px; }
.price.big { font-size: 1.9rem; }

/* ====== Why us / features ====== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.feature-card { padding: 28px 22px; text-align: center; transition: transform 0.2s, background 0.2s; }
.feature-card:hover { transform: translateY(-6px); background: var(--glass-strong); }
.feature-icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); font-size: 0.92rem; }

/* ====== Testimonials ====== */
.testimonial-card { width: 262px; padding: 30px 22px; text-align: center; transition: transform 0.2s; }
.testimonial-card:hover { transform: translateY(-6px); }
.testimonial-photo {
  width: 86px; height: 86px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--aqua-500);
  box-shadow: 0 6px 20px rgba(23, 168, 132, 0.35);
}
.testimonial-photo.placeholder { display: grid; place-items: center; font-size: 2rem; background: rgba(23, 168, 132, 0.12); }
.achievement { color: var(--aqua-700); font-size: 0.92rem; margin-top: 4px; }
.quote { color: var(--text-soft); font-size: 0.9rem; margin-top: 10px; font-style: italic; }

/* ====== FAQ ====== */
.faq-container { max-width: 760px; }
.faq-item { margin-bottom: 14px; overflow: hidden; transition: background 0.18s; }
.faq-item[open] { background: var(--glass-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--aqua-700);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 22px 18px; color: var(--text-soft); }

/* ====== Past papers ====== */
.paper-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.paper-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  transition: transform 0.18s, background 0.18s;
}
.paper-item:hover { transform: translateX(6px); background: var(--glass-strong); }
.paper-icon { font-size: 1.4rem; }
.paper-title { flex: 1; font-weight: 600; }
.paper-year { color: var(--text-soft); }
.paper-dl { color: var(--aqua-700); font-weight: 600; }

/* ====== Quiz ====== */
.quiz-card { width: 300px; padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.2s, background 0.2s; }
.quiz-card:hover { transform: translateY(-5px); background: var(--glass-strong); }
.quiz-card .btn { align-self: flex-start; }
.quiz-meta { color: var(--text-soft); font-size: 0.88rem; }
.login-hint { text-align: center; margin-top: 40px; color: var(--text-soft); }
.login-hint a { color: var(--aqua-700); font-weight: 600; }

.quiz-container { max-width: 780px; }
.quiz-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px; gap: 16px; flex-wrap: wrap;
}
.quiz-header h1 { font-family: var(--font-display); font-size: 1.6rem; }
.quiz-timer {
  font-family: var(--font-display);
  font-size: 1.5rem;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  outline: 1px solid var(--glass-edge);
  color: var(--aqua-700);
  padding: 8px 24px;
  border-radius: 14px;
}
.quiz-timer.danger { background: rgba(192, 57, 43, 0.15); color: var(--danger); border-color: rgba(192, 57, 43, 0.4); }
.question-block { padding: 24px; margin-bottom: 18px; }
.question-block legend { font-weight: 600; font-size: 1.02rem; padding: 0 6px; float: left; margin-bottom: 12px; }
.question-block legend + * { clear: both; }
.q-num { color: var(--aqua-700); margin-right: 4px; }
.question-image { margin: 12px 0; border-radius: 10px; max-height: 300px; }
.choices { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.choice {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--glass-edge);
  border-radius: 12px;
  padding: 12px 15px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.13s, border-color 0.13s;
}
.choice:hover { background: var(--glass-strong); border-color: rgba(23, 168, 132, 0.6); }
.choice input { accent-color: var(--aqua-500); width: 17px; height: 17px; }

/* ====== Result ====== */
.result-container { max-width: 520px; }
.result-card { text-align: center; padding: 46px 34px; }
.result-card h1 { font-family: var(--font-display); margin-bottom: 4px; }
.result-quiz { color: var(--text-soft); margin-bottom: 22px; }
.result-score { font-family: var(--font-display); font-size: 3.2rem; color: var(--aqua-700); font-weight: 700; }
.result-bar { height: 12px; background: rgba(28, 54, 48, 0.10); border-radius: 999px; margin: 18px 0 8px; overflow: hidden; }
.result-fill { height: 100%; background: linear-gradient(90deg, var(--aqua-400), var(--aqua-500)); border-radius: 999px; }
.result-percent { color: var(--text-soft); margin-bottom: 24px; }

/* ====== Course detail ====== */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.detail-main h1 { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 12px; letter-spacing: 0.5px; }
.detail-meta { margin-bottom: 20px; }
.tag {
  background: rgba(23, 168, 132, 0.14);
  border: 1px solid rgba(23, 168, 132, 0.45);
  color: var(--aqua-700);
  padding: 3px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
}
.detail-thumb { border-radius: var(--radius); margin-bottom: 20px; }
.detail-description { color: var(--text); }
.detail-description p { margin-bottom: 12px; }
.detail-side { position: sticky; top: 88px; }
.buy-box { padding: 28px; text-align: center; }
.save-note { color: var(--danger); font-weight: 600; font-size: 0.9rem; margin: 4px 0 8px; }

/* ====== Auth ====== */
.auth-container { max-width: 460px; }
.auth-card { padding: 42px 34px; }
.auth-card h1 { font-family: var(--font-display); font-size: 1.6rem; }
.auth-sub { color: var(--text-soft); margin-bottom: 22px; }
.auth-card label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 0.92rem; }
.auth-card input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--glass-edge);
  border-radius: 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
}
.auth-card input::placeholder { color: rgba(28, 54, 48, 0.38); }
.auth-card input:focus { outline: 2px solid var(--aqua-500); border-color: transparent; background: rgba(255, 255, 255, 0.8); }
.auth-card .btn { margin-top: 24px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--text-soft); }
.auth-switch a { color: var(--aqua-700); font-weight: 600; }
.auth-forgot { text-align: right; margin: -4px 0 14px; font-size: 0.9rem; }
.auth-forgot a { color: var(--aqua-700); font-weight: 600; }
.field-help { color: var(--text-soft); font-size: 0.8rem; display: block; margin-top: 3px; }
.field-error { color: var(--danger); font-size: 0.83rem; display: block; margin-top: 3px; }

/* ====== Flash messages ====== */
.flash { padding: 13px 18px; margin: 16px 0; font-weight: 500; border-radius: 14px; }
.flash-success { color: #1d6b3a; }
.flash-error, .flash-danger { color: var(--danger); }
.flash-info { color: #2c5c94; }

/* ====== Footer ====== */
.footer {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--glass-border);
  padding: 46px 0 30px;
  margin-top: 50px;
}
.footer-inner { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.footer-tag { color: var(--text-soft); font-size: 0.92rem; margin-top: 10px; max-width: 420px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { opacity: 0.85; font-weight: 500; }
.footer-links a:hover { color: var(--aqua-700); }
.copyright { color: var(--text-soft); opacity: 0.8; font-size: 0.85rem; }

/* ====== WhatsApp bubble — floats like it's on water ====== */
.wa-bubble {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(28, 54, 48, 0.3);
  z-index: 90;
  animation: floaty 3.6s ease-in-out infinite;
  transition: transform 0.15s;
}
.wa-bubble:hover { transform: scale(1.1); animation-play-state: paused; }

/* ====== Responsive ====== */
@media (max-width: 820px) {
  .nav-toggle { display: block; }

  /* Compact right-side drawer instead of a page-covering dropdown */
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(76vw, 300px);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(26px) saturate(1.4);
    backdrop-filter: blur(26px) saturate(1.4);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 64px 16px 20px;
    border-left: 1px solid var(--glass-border);
    box-shadow: -16px 0 44px rgba(28, 54, 48, 0.22);
    transform: translateX(105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    z-index: 120;
  }
  .nav-links.open { transform: translateX(0); }

  .drawer-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-edge);
    border-radius: 50%;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
  }

  .nav-links > a,
  .nav-links .nav-link-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.98rem;
  }
  .nav-links > a:hover,
  .nav-links .nav-link-btn:hover { background: var(--glass-strong); }
  .nav-links .nav-cta {
    text-align: center;
    margin-top: 8px;
    padding: 11px 14px;
  }
  .nav-links .inline-form { display: block; }

  /* Language + theme pinned to the bottom of the drawer */
  .nav-links .nav-controls {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--glass-edge);
    justify-content: space-between;
  }
  .nav-links .nav-controls .inline-form { flex: 1; }
  .nav-links .lang-btn { width: 100%; }

  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .countdown div { width: 70px; }
  .hero { padding: 64px 0 60px; }
  .stat { min-width: 140px; padding: 16px 22px; }
}

@media (min-width: 821px) {
  /* Safety: if the drawer was open and the viewport grows, clean up */
  .nav-backdrop { display: none; }
  body.nav-locked { overflow: auto; }
}

/* ====== Navbar controls: language + theme toggles ====== */
.lang-btn {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  padding: 6px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-btn:hover { background: var(--glass-strong); color: var(--aqua-700); }
.theme-btn {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.theme-btn:hover { background: var(--glass-strong); transform: rotate(15deg); }

/* ====== Dark mode — same clear glass, night water ====== */
:root[data-theme="dark"] {
  --bg-1: #0a1512;
  --bg-2: #0e1c17;
  --bg-3: #13261f;
  --glass: rgba(255, 255, 255, 0.065);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-edge: rgba(255, 255, 255, 0.07);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --aqua-700: #4fd8b4;
  --accent: #cde0d9;
  --text: #eaf4f0;
  --text-soft: rgba(234, 244, 240, 0.64);
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
}
:root[data-theme="dark"] body::before {
  background: radial-gradient(circle, rgba(23, 168, 132, 0.16), transparent 65%);
}
:root[data-theme="dark"] body::after {
  background: radial-gradient(circle, rgba(70, 155, 130, 0.16), transparent 65%);
}
:root[data-theme="dark"] .navbar {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
:root[data-theme="dark"] .navbar::before {
  background: rgba(8, 20, 16, 0.65);
}
:root[data-theme="dark"] .hero-headline { text-shadow: 0 4px 28px rgba(0, 0, 0, 0.5); }
:root[data-theme="dark"] .thumb-placeholder {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
}
:root[data-theme="dark"] .choice { background: rgba(255, 255, 255, 0.04); }
:root[data-theme="dark"] .auth-card input {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}
:root[data-theme="dark"] .auth-card input::placeholder { color: rgba(237, 240, 244, 0.35); }
:root[data-theme="dark"] .auth-card input:focus { background: rgba(255, 255, 255, 0.11); }
:root[data-theme="dark"] .result-bar { background: rgba(255, 255, 255, 0.10); }
:root[data-theme="dark"] .btn-outline { background: var(--glass); }
:root[data-theme="dark"] .footer { background: rgba(8, 20, 16, 0.6); }
:root[data-theme="dark"] .nav-links { }
:root[data-theme="dark"] .flash-success { color: #8ed6a8; }
:root[data-theme="dark"] .flash-error, :root[data-theme="dark"] .flash-danger { color: #f0a49a; }
:root[data-theme="dark"] .flash-info { color: #a9c6ef; }
:root[data-theme="dark"] .quiz-timer.danger { background: rgba(226, 99, 85, 0.25); color: #f2a49b; }

@media (max-width: 820px) {
  :root[data-theme="dark"] .nav-links {
    background: rgba(8, 20, 16, 0.94);
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after,
  .hero-actions .btn, .countdown div, .wa-bubble { animation: none; }
  .nav-links, .nav-backdrop { transition: none; }
}

/* ====== Answer review ====== */
.review-question { font-weight: 600; font-size: 1.02rem; margin-bottom: 12px; }
.choice.correct { border-color: rgba(23, 168, 132, 0.65); background: rgba(23, 168, 132, 0.12); }
.choice.wrong { border-color: rgba(192, 57, 43, 0.55); background: rgba(192, 57, 43, 0.10); }
.choice-flag { margin-left: auto; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.choice-flag.ok { color: var(--aqua-700); }
.choice-flag.bad { color: var(--danger); }
.skip-badge {
  display: inline-block;
  background: rgba(192, 57, 43, 0.12);
  border: 1px solid rgba(192, 57, 43, 0.4);
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.explanation {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--aqua-500);
  border-radius: 0 12px 12px 0;
  background: rgba(23, 168, 132, 0.08);
  color: var(--text-soft);
  font-size: 0.95rem;
}
:root[data-theme="dark"] .choice.wrong { background: rgba(226, 99, 85, 0.14); }
:root[data-theme="dark"] .choice-flag.bad { color: #f0a49a; }
:root[data-theme="dark"] .skip-badge {
  color: #f0a49a;
  border-color: rgba(240, 164, 154, 0.4);
  background: rgba(226, 99, 85, 0.16);
}

/* Error pages (404) */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-page .error-code {
  font-family: var(--font-display, "Oswald", sans-serif);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: var(--aqua-500, #17a884);
}
.error-page h1 { margin: 0.5rem 0 0.75rem; }
.error-page .hero-actions { justify-content: center; margin-top: 1.5rem; }

/* ====== Account flows, learning access & notifications ======
   These classes also support the richer registration/login templates while
   keeping the original one-column auth cards comfortable on narrow screens. */
.auth-container {
  width: 100%;
  max-width: 1120px;
}
.auth-card {
  width: min(100%, 520px);
  margin-inline: auto;
  padding: clamp(1.25rem, 4.5vw, 2.625rem) clamp(1rem, 4vw, 2.125rem);
}
.auth-card h1 {
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.auth-card form { width: 100%; }
.auth-card input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 48px;
  padding: 11px 14px;
}
.auth-card .btn { min-height: 48px; margin-top: clamp(1rem, 3vw, 1.5rem); }
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1rem, 4vw, 3.5rem);
  align-items: stretch;
  max-width: 980px;
  margin-inline: auto;
}
.auth-layout .auth-card { width: 100%; max-width: none; margin: 0; }
.auth-main { min-width: 0; }
.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(23, 168, 132, 0.2), rgba(255, 255, 255, 0.32));
  border: 1px solid var(--glass-border);
  outline: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-highlight);
}
.auth-aside h2 { font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.22; }
.auth-aside p, .auth-aside li { color: var(--text-soft); }
.auth-aside ul { padding-left: 1.2rem; display: grid; gap: 8px; }
.password-field { position: relative; display: flex; align-items: center; }
.password-field input { padding-right: 4.5rem !important; }
.password-toggle {
  position: absolute;
  right: 7px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--aqua-700);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.password-toggle:hover, .password-toggle:focus-visible { background: rgba(23, 168, 132, 0.12); }
.password-toggle:focus-visible, .notification-link:focus-visible, .text-link:focus-visible,
.notification-action:focus-visible { outline: 2px solid var(--aqua-500); outline-offset: 3px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--glass-edge); }
.auth-provider, .google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.auth-provider:hover, .google-login-btn:hover { transform: translateY(-2px); background: var(--glass-strong); }
.auth-provider-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.auth-note { margin-top: 14px; color: var(--text-soft); font-size: 0.86rem; text-align: center; }

/* Navbar notification hook */
.notification-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  opacity: 0.9 !important;
}
.notification-link:hover { opacity: 1 !important; }
.notification-bell { font-size: 1.08rem; line-height: 1; }
.notification-label { font-size: 0.92rem; }
.notification-badge {
  position: absolute;
  top: -7px;
  right: -10px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

/* Course access state and secure player presentation */
.course-access-card { text-align: left; }
.course-access-card h2 { margin: 12px 0 6px; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.25; }
.course-access-copy, .course-access-note { color: var(--text-soft); }
.course-access-cta { margin-top: 20px !important; }
.course-security-note {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}
.access-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  padding: 3px 10px;
  border: 1px solid rgba(23, 168, 132, 0.42);
  border-radius: 999px;
  background: rgba(23, 168, 132, 0.12);
  color: var(--aqua-700);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.access-state-active::before { content: ""; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.access-state-blocked {
  border-color: rgba(192, 57, 43, 0.45);
  background: rgba(192, 57, 43, 0.1);
  color: var(--danger);
}
.learning-page { padding-top: clamp(2rem, 5vw, 4.125rem); }
.learn-header, .notifications-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.eyebrow {
  color: var(--aqua-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.learn-header h1, .notifications-header h1, .course-access-state h1 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
}
.learn-lesson-title, .notifications-header p { color: var(--text-soft); margin-top: 6px; }
.text-link, .notification-action { color: var(--aqua-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.learn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}
.learn-player-column { min-width: 0; }
.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: #061b16;
  box-shadow: var(--shadow);
}
.secure-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #061b16;
}
.player-watermark {
  position: absolute;
  top: 13%;
  right: 5%;
  max-width: 46%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: clamp(0.72rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  user-select: none;
}
.player-protection-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 168, 132, 0.22);
  border-radius: 12px;
  background: rgba(23, 168, 132, 0.08);
  color: var(--text-soft);
  font-size: 0.88rem;
}
.player-protection-note p { margin: 0; }
.learn-sidebar, .course-access-state, .notification-empty {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  outline: 1px solid var(--glass-edge);
  background: var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-highlight);
}
.learn-sidebar { position: sticky; top: 88px; }
.learn-sidebar h2 { margin: 12px 0 6px; font-family: var(--font-display); font-size: 1.35rem; }
.learn-sidebar > p { color: var(--text-soft); }
.secure-learning-list { display: grid; gap: 9px; margin: 18px 0; padding-left: 1.2rem; color: var(--text-soft); font-size: 0.9rem; }
.course-access-state { max-width: 720px; margin-inline: auto; text-align: center; }
.course-access-state h2 { margin: 12px 0 7px; font-family: var(--font-display); font-size: 1.55rem; }
.course-access-state p { color: var(--text-soft); margin-bottom: 20px; }
.course-access-state-blocked { margin-top: clamp(1rem, 5vw, 3rem); }

/* End-user notification inbox */
.notification-container { max-width: 880px; }
.notifications-header { margin-bottom: 24px; }
.unread-summary {
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.1);
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 700;
}
.notification-list { display: grid; gap: 12px; }
.notification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  outline: 1px solid var(--glass-edge);
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.notification-item.is-unread { background: var(--glass-strong); box-shadow: var(--shadow), inset 3px 0 0 var(--aqua-500), inset 0 1px 0 var(--glass-highlight); }
.notification-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(23, 168, 132, 0.13);
  color: var(--aqua-700);
  font-family: Georgia, serif;
  font-weight: 700;
}
.notification-item--alert .notification-marker, .notification-item--warning .notification-marker {
  background: rgba(192, 57, 43, 0.13);
  color: var(--danger);
}
.notification-item--success .notification-marker { background: rgba(23, 168, 132, 0.18); }
.notification-content { min-width: 0; }
.notification-title-row { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.notification-title-row h2 { font-size: 1.05rem; line-height: 1.4; }
.notification-unread-label {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(23, 168, 132, 0.13);
  color: var(--aqua-700);
  font-size: 0.72rem;
  font-weight: 700;
}
.notification-message { margin-top: 4px; color: var(--text-soft); overflow-wrap: anywhere; }
.notification-meta { margin-top: 8px; color: var(--text-soft); font-size: 0.8rem; }
.notification-action { display: inline-block; margin-top: 10px; font-size: 0.88rem; }
.notification-empty { max-width: 540px; margin: 22px auto 0; text-align: center; }
.notification-empty > span { display: block; margin-bottom: 8px; font-size: 2rem; }
.notification-empty h2 { font-family: var(--font-display); font-size: 1.45rem; }
.notification-empty p { margin-top: 5px; color: var(--text-soft); }

:root[data-theme="dark"] .auth-aside { background: linear-gradient(145deg, rgba(23, 168, 132, 0.18), rgba(255, 255, 255, 0.05)); }
:root[data-theme="dark"] .auth-provider, :root[data-theme="dark"] .google-login-btn { background: rgba(255, 255, 255, 0.07); color: var(--text); }
:root[data-theme="dark"] .player-protection-note { background: rgba(23, 168, 132, 0.12); }
:root[data-theme="dark"] .notification-item.is-unread { background: rgba(255, 255, 255, 0.11); }

@media (min-width: 821px) and (max-width: 1400px) {
  .nav-links { gap: 12px; font-size: 0.9rem; }
  .nav-controls { gap: 8px; }
  .notification-label { display: none; }
  .notification-link { width: 28px; justify-content: center; }
}

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; max-width: 560px; }
  .auth-aside { order: 2; }
  .learn-layout { grid-template-columns: 1fr; }
  .learn-sidebar { position: static; }
}

@media (max-width: 820px) {
  .nav-links .notification-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
  }
  .nav-links .notification-label { display: inline; }
  .nav-links .notification-badge { top: 4px; right: 9px; }
  .auth-container { max-width: 560px; }
  .detail-main h1 { font-size: clamp(1.55rem, 7vw, 1.9rem); }
}

@media (max-width: 480px) {
  .auth-card { border-radius: 15px; }
  .auth-sub { margin-bottom: 16px; }
  .auth-card label { margin-top: 12px; }
  .password-toggle { right: 5px; padding-inline: 8px; }
  .auth-aside { padding: 1.25rem; }
  .learn-header, .notifications-header { flex-direction: column; }
  .learn-header .text-link { align-self: flex-start; }
  .player-watermark { top: 11%; right: 4%; max-width: 58%; }
  .player-protection-note, .notification-item { padding: 14px; }
  .notification-title-row { gap: 7px; }
  .notification-title-row h2 { font-size: 1rem; }
  .notification-marker { width: 27px; height: 27px; }
}

/* Secure video: iframe embeds + lesson playlist + OTP resend */
iframe.secure-player { border: 0; }
.lesson-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lesson-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--glass-edge);
  border-radius: 12px;
  background: var(--glass);
  color: var(--text);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.lesson-item a:hover { background: var(--glass-strong); }
.lesson-item.is-current a {
  border-color: rgba(23, 168, 132, 0.5);
  background: rgba(23, 168, 132, 0.12);
}
.lesson-index {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(23, 168, 132, 0.16);
  color: var(--aqua-700);
  font-size: 0.82rem;
  font-weight: 700;
}
.lesson-name { flex: 1; min-width: 0; }
.lesson-flag {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}
.otp-resend-form { margin-top: 14px; text-align: center; }
.otp-resend-btn { background: none; border: 0; cursor: pointer; font: inherit; }

/* ---------------------------------------------------------------------------
   Student dashboard / profile
--------------------------------------------------------------------------- */
.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.dashboard-header h1 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
}
.dashboard-sub { color: var(--text-soft); margin-top: 6px; }
.verified-badge {
  color: var(--aqua-700);
  font-weight: 700;
  font-size: 0.85em;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 2vw, 1rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(0.9rem, 2.5vw, 1.4rem);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-highlight);
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1;
  color: var(--aqua-700);
}
.stat-label { color: var(--text-soft); font-size: 0.82rem; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}
.dashboard-main { min-width: 0; display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.dashboard-section {
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
}
.section-head { margin-bottom: 14px; }
.section-head h2 { font-family: var(--font-display); font-size: 1.2rem; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.dash-course-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  background: var(--glass-strong);
}
.dash-course-card h3 { font-size: 1.02rem; line-height: 1.3; }
.dash-course-card .btn { margin-top: auto; }
.muted { color: var(--text-soft); }
.small { font-size: 0.8rem; }
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pill-ok { background: rgba(23, 168, 132, 0.14); color: var(--aqua-700); }
.pill-off { background: rgba(192, 57, 43, 0.12); color: var(--danger); }
.empty-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
}
.table-wrap { overflow-x: auto; }
.result-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.result-table th, .result-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--glass-edge);
  white-space: nowrap;
}
.result-table th { color: var(--text-soft); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.result-table tbody tr:last-child td { border-bottom: 0; }
.score-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}
.score-badge.good { background: rgba(23, 168, 132, 0.16); color: var(--aqua-700); }
.score-badge.mid { background: rgba(214, 158, 46, 0.18); color: #b7791f; }
.score-badge.low { background: rgba(192, 57, 43, 0.14); color: var(--danger); }
.activity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.activity-item { display: flex; gap: 12px; }
.activity-item p { line-height: 1.4; }
.activity-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--aqua-500);
}
.activity-item.activity-quiz .activity-dot { background: var(--aqua-500); }
.activity-item.activity-device .activity-dot { background: #d69e2e; }
.activity-item.activity-login .activity-dot { background: var(--text-soft); }
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ====== Practice progression ====== */
.quiz-track { display: flex; flex-wrap: wrap; gap: 22px; }
.quiz-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(23, 168, 132, 0.16); color: var(--aqua-700);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}
.quiz-desc { color: var(--text-soft); font-size: 0.9rem; }
.quiz-best { font-size: 0.9rem; }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lock-badge, .done-badge {
  font-size: 0.78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.done-badge {
  color: var(--aqua-700);
  background: rgba(23, 168, 132, 0.14);
  border: 1px solid rgba(23, 168, 132, 0.4);
}
.lock-badge {
  color: var(--text-soft);
  background: rgba(28, 54, 48, 0.08);
  border: 1px solid var(--glass-edge);
}
.quiz-card.locked { opacity: 0.72; }
.quiz-card.completed { border-color: rgba(23, 168, 132, 0.5); }
.btn.disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; align-self: flex-start; }
.lock-hint { font-size: 0.82rem; color: var(--text-soft); }
.free-badge {
  font-size: 0.72rem; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  color: #b7791f; background: rgba(214, 158, 46, 0.16); border: 1px solid rgba(214, 158, 46, 0.45);
}
.quiz-card:has(.free-badge) { border-color: rgba(214, 158, 46, 0.5); }

/* Guest (no-login) free-test messaging */
.free-inline { color: #b7791f; font-weight: 700; }
.guest-note {
  margin: 4px auto 18px; max-width: 440px; font-size: 0.86rem;
  color: var(--text-soft); background: rgba(214, 158, 46, 0.1);
  border: 1px solid rgba(214, 158, 46, 0.3); border-radius: 12px; padding: 10px 14px;
}
.guest-note a { color: var(--aqua-700); font-weight: 600; }
.guest-cta {
  margin-top: 18px; padding: 14px 18px; border-radius: 12px; text-align: center;
  background: rgba(23, 168, 132, 0.1); border: 1px solid rgba(23, 168, 132, 0.28);
  font-size: 0.92rem;
}
.guest-cta a { color: var(--aqua-700); font-weight: 700; }

/* ====== Merit list ====== */
.merit-card { margin-top: 24px; padding: 26px 22px; text-align: left; }
.merit-title { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.5px; }
.merit-sub { color: var(--text-soft); font-size: 0.88rem; margin-bottom: 14px; }
.merit-scroll { overflow-x: auto; }
.merit-table { width: 100%; border-collapse: collapse; }
.merit-table th {
  text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-soft); padding: 6px 10px; border-bottom: 1px solid var(--glass-edge);
}
.merit-table td { padding: 10px; border-bottom: 1px solid rgba(110, 165, 148, 0.16); }
.merit-score-col { text-align: right; white-space: nowrap; }
.merit-rank { font-family: var(--font-display); font-weight: 700; width: 56px; }
.merit-row.me { background: rgba(23, 168, 132, 0.12); }
.merit-row.me td:first-child { border-radius: 10px 0 0 10px; }
.merit-row.me td:last-child { border-radius: 0 10px 10px 0; }
.you-tag {
  font-size: 0.7rem; font-weight: 700; color: var(--aqua-700);
  background: rgba(23, 168, 132, 0.16); padding: 1px 8px; border-radius: 999px;
}
.merit-sep td { text-align: center; color: var(--text-soft); border-bottom: none; padding: 4px; }
:root[data-theme="dark"] .step-num { background: rgba(62, 201, 167, 0.18); color: var(--aqua-400); }
:root[data-theme="dark"] .lock-badge { background: rgba(255, 255, 255, 0.06); }
:root[data-theme="dark"] .merit-row.me { background: rgba(62, 201, 167, 0.16); }

/* ====== Founder / main instructor ====== */
.founder-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
}
.founder-photo-wrap { display: flex; justify-content: center; }
.founder-photo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid var(--glass-border);
}
.founder-info { padding: 30px 34px; }
.founder-tag {
  display: inline-block;
  background: rgba(23, 168, 132, 0.14);
  border: 1px solid rgba(23, 168, 132, 0.45);
  color: var(--aqua-700);
  padding: 4px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase;
}
.founder-name {
  font-family: var(--font-display);
  font-size: 2rem; margin: 14px 0 2px; letter-spacing: 0.5px;
}
.founder-role { color: var(--aqua-700); font-weight: 600; margin-bottom: 14px; }
.founder-bio { color: var(--text-soft); line-height: 1.75; }
@media (max-width: 760px) {
  .founder-inner { grid-template-columns: 1fr; gap: 22px; justify-items: center; text-align: center; }
  .founder-photo { max-width: 240px; }
}

/* ====== Practice view toggle + layouts ====== */
.practice-toolbar { display: flex; align-items: center; gap: 10px; margin: 4px 0 22px; }
.view-label { color: var(--text-soft); font-size: 0.9rem; font-weight: 600; }
.view-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 12px;
}
.view-btn {
  border: none; background: transparent; cursor: pointer; color: var(--text-soft);
  width: 34px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.view-btn:hover { color: var(--text); background: var(--glass-strong); }
.view-btn.is-active { background: var(--aqua-500); color: #fff; }

.quiz-card-body { display: flex; flex-direction: column; gap: 6px; }
.quiz-card-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto;
}
.quiz-card-actions .lock-hint { flex-basis: 100%; margin: 0; }

/* Column view — one full-width card per row */
#practiceView[data-view="column"] .quiz-track { flex-direction: column; }
#practiceView[data-view="column"] .quiz-card { width: 100%; }

/* List view — compact full-width rows */
#practiceView[data-view="list"] .quiz-track { flex-direction: column; gap: 12px; }
#practiceView[data-view="list"] .quiz-card {
  width: 100%; flex-direction: row; align-items: center; gap: 18px; padding: 14px 22px;
}
#practiceView[data-view="list"] .quiz-card:hover { transform: none; }
#practiceView[data-view="list"] .quiz-card-top { flex: 0 0 auto; }
#practiceView[data-view="list"] .quiz-card-body { flex: 1 1 auto; }
#practiceView[data-view="list"] .quiz-card-body .quiz-desc { display: none; }
#practiceView[data-view="list"] .quiz-card-actions { flex: 0 0 auto; flex-wrap: nowrap; margin: 0 0 0 auto; }
#practiceView[data-view="list"] .quiz-card-actions .lock-hint { display: none; }
@media (max-width: 600px) {
  #practiceView[data-view="list"] .quiz-card { flex-wrap: wrap; }
  #practiceView[data-view="list"] .quiz-card-actions { margin-left: 0; }
}

/* ====== Exam interface ====== */
.exam { padding: 20px 0 60px; }
.exam-topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding: 16px 22px; margin: 8px 0 22px;
}
.exam-candidate { display: flex; gap: 28px; flex-wrap: wrap; }
.ec-item { display: flex; flex-direction: column; }
.ec-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-soft); }
.ec-val { font-weight: 600; }
/* Floating timer — pinned to the viewport so it never scrolls away (mobile + desktop) */
.exam-timer-dock {
  position: fixed; top: 76px; right: 18px; z-index: 95;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 18px; border-radius: 14px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge);
  box-shadow: 0 10px 30px rgba(28, 54, 48, 0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.etd-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-soft); }
.etd-total { font-size: 0.66rem; color: var(--text-soft); }
.exam-timer {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  color: var(--aqua-700); letter-spacing: 1px; line-height: 1.05;
}
.exam-timer.danger { color: var(--danger); }
.exam-timer-dock.danger { border-color: var(--danger); box-shadow: 0 10px 30px rgba(214, 63, 63, 0.25); }

/* Exam start screen — pick a time limit before beginning */
.exam-start { max-width: 560px; margin: 20px auto; padding: 36px 32px; text-align: center; }
.exam-start-title { font-family: var(--font-display); font-size: 1.9rem; margin: 6px 0 4px; }
.exam-start-meta { color: var(--text-soft); margin-bottom: 26px; }
.exam-start-label { font-weight: 600; margin-bottom: 14px; }
.duration-choices { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.duration-card {
  position: relative; cursor: pointer; flex: 0 1 150px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 20px 26px; border-radius: 16px;
  border: 2px solid var(--glass-edge); background: var(--glass);
  transition: border-color 0.15s, background 0.15s;
}
.duration-card:hover { border-color: rgba(23, 168, 132, 0.55); }
.duration-card input { position: absolute; opacity: 0; pointer-events: none; }
.duration-card:has(input:checked) { border-color: var(--aqua-500); background: rgba(23, 168, 132, 0.12); }
.duration-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dc-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--aqua-700); line-height: 1; }
.dc-unit { font-size: 0.8rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.exam-start-note { font-size: 0.85rem; color: var(--text-soft); margin: 0 auto 22px; max-width: 420px; }
.btn-lg { padding: 14px 40px; font-size: 1.05rem; }
.exam-start-back { display: inline-block; margin-top: 16px; }

.exam-body { display: block; }
.exam-main { padding: 26px 28px; }

.exam-summary { display: flex; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 22px; }
.sum-item {
  flex: 1 1 130px; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 16px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-edge);
}
.sum-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-soft); }
.sum-item strong { font-family: var(--font-display); font-size: 1.55rem; }
.sum-item.answered strong { color: var(--aqua-700); }
.sum-item.left strong { color: var(--danger); }

.eq-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.eq-number { font-family: var(--font-display); font-size: 1.15rem; }
.eq-number small { color: var(--text-soft); }
.flag-btn {
  border: 1px solid var(--glass-edge); background: var(--glass); color: var(--text-soft);
  border-radius: 999px; padding: 5px 14px; cursor: pointer; font-size: 0.85rem; white-space: nowrap;
}
.flag-btn.on { background: rgba(214, 158, 46, 0.16); border-color: #d69e2e; color: #b7791f; }
.eq-text { font-size: 1.06rem; line-height: 1.65; margin-bottom: 16px; }
.eq-image { max-width: 100%; border-radius: 12px; margin-bottom: 16px; }
.eq-options { display: flex; flex-direction: column; gap: 10px; }
.eq-option {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border: 1px solid var(--glass-edge); border-radius: 12px; cursor: pointer;
  background: var(--glass); transition: border-color 0.15s, background 0.15s;
}
.eq-option:hover { border-color: rgba(23, 168, 132, 0.6); }
.eq-option.selected { border-color: var(--aqua-500); background: rgba(23, 168, 132, 0.12); }
.eq-option input { position: absolute; opacity: 0; pointer-events: none; }
.opt-letter {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(23, 168, 132, 0.14); color: var(--aqua-700);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.eq-option.selected .opt-letter { background: var(--aqua-500); color: #fff; }
.opt-text { flex: 1; }

.exam-controls { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.exam-controls #submitBtn { margin-left: auto; }
.exam-controls .btn:disabled { opacity: 0.45; cursor: not-allowed; }

.exam-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 88px; }
.summary-card, .navigator-card { padding: 20px; }
.summary-card h3, .navigator-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(110, 165, 148, 0.16); }
.summary-row:last-child { border-bottom: none; }
.summary-row strong { font-family: var(--font-display); }
.summary-row.answered strong { color: var(--aqua-700); }
.summary-row.left strong { color: var(--danger); }

.exam-navigator { margin-bottom: 22px; }
.navigator-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 7px; margin-bottom: 14px;
}
.nav-cell {
  height: 34px; border: 1px solid var(--glass-edge); background: var(--glass-strong);
  color: var(--text); border-radius: 8px; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.12s, border-color 0.12s;
}
.nav-cell:hover { border-color: var(--aqua-500); }
.nav-cell.answered { background: var(--aqua-500); color: #fff; border-color: var(--aqua-500); }
.nav-cell.flagged { box-shadow: inset 0 0 0 2px #d69e2e; }
.nav-cell.current { outline: 2px solid var(--accent); outline-offset: 1px; }
.nav-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; color: var(--text-soft); }
.nav-legend span { display: flex; align-items: center; gap: 8px; }
.leg { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--glass-edge); background: var(--glass-strong); }
.leg.answered { background: var(--aqua-500); border-color: var(--aqua-500); }
.leg.flagged { box-shadow: inset 0 0 0 2px #d69e2e; }

.exam-modal-backdrop {
  position: fixed; inset: 0; background: rgba(20, 40, 35, 0.5);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.exam-modal { max-width: 420px; width: 100%; padding: 30px; text-align: center; }
.exam-modal h3 { font-family: var(--font-display); font-size: 1.4rem; }
.modal-stats { font-size: 1.1rem; margin: 12px 0 6px; }
.modal-stats strong { color: var(--aqua-700); }
.modal-note { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; align-items: center; }
.modal-actions form { margin: 0; }

.hidden { display: none !important; }

/* Result breakdown */
.result-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.rb {
  padding: 12px 8px; border-radius: 12px; background: var(--glass);
  border: 1px solid var(--glass-edge); display: flex; flex-direction: column; gap: 2px;
}
.rb-num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.rb-label { font-size: 0.72rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.rb.correct .rb-num { color: var(--aqua-700); }
.rb.incorrect .rb-num { color: var(--danger); }
.rb.skipped .rb-num { color: var(--text-soft); }
.rb.time .rb-num { color: var(--accent); }

/* Per-question doubt / report */
.eq-doubt { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--glass-edge); }
.doubt-toggle {
  background: none; border: none; color: var(--text-soft); cursor: pointer;
  font-size: 0.86rem; font-weight: 600; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px;
}
.doubt-toggle:hover { color: var(--danger); }
.doubt-toggle.sent { color: var(--aqua-700); cursor: default; }
.doubt-panel {
  margin-top: 10px; padding: 14px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-edge);
}
.doubt-hint { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 8px; }
.doubt-text {
  width: 100%; resize: vertical; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--glass-edge); background: var(--glass-strong);
  color: var(--text); font: inherit; font-size: 0.9rem;
}
.doubt-text:focus { outline: none; border-color: var(--aqua-500); }
.doubt-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.doubt-feedback { margin-top: 8px; font-size: 0.84rem; color: var(--danger); }
.doubt-log { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doubt-item {
  padding: 10px 12px; border-radius: 10px; font-size: 0.88rem;
  background: rgba(214, 158, 46, 0.1); border: 1px solid rgba(214, 158, 46, 0.28);
}
.doubt-item.replied { background: rgba(23, 168, 132, 0.1); border-color: rgba(23, 168, 132, 0.3); }
.di-you { margin: 0; }
.di-admin { margin: 6px 0 0; color: var(--aqua-700); }
.di-pending { margin: 6px 0 0; font-size: 0.8rem; color: var(--text-soft); font-style: italic; }

/* My Question Doubts page */
.doubt-page-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.doubt-page-item { padding: 20px; border-radius: var(--radius); }
.dp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.dp-quiz { font-family: var(--font-display); font-weight: 600; }
.dp-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 999px; }
.dp-badge.pending { background: rgba(214, 158, 46, 0.16); color: #b7791f; }
.dp-badge.resolved { background: rgba(23, 168, 132, 0.16); color: var(--aqua-700); }
.dp-question { font-weight: 500; margin-bottom: 12px; }
.dp-thread { padding: 12px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-edge); }
.dp-you { margin: 0; }
.dp-admin { margin: 8px 0 0; color: var(--aqua-700); }
.dp-waiting { margin: 8px 0 0; font-size: 0.84rem; color: var(--text-soft); font-style: italic; }
.dp-meta { margin: 10px 0 0; font-size: 0.78rem; color: var(--text-soft); }
.empty-state { padding: 40px 24px; text-align: center; border-radius: var(--radius); margin-top: 24px; }
.empty-state .empty-sub { color: var(--text-soft); font-size: 0.9rem; margin: 6px 0 18px; }

:root[data-theme="dark"] .nav-cell { background: rgba(255, 255, 255, 0.06); }
:root[data-theme="dark"] .eq-option { background: rgba(255, 255, 255, 0.04); }

@media (max-width: 860px) {
  .exam-body { grid-template-columns: 1fr; }
  .exam-side { position: static; }
}
@media (max-width: 520px) {
  .result-breakdown { grid-template-columns: repeat(2, 1fr); }
  .exam-controls #submitBtn { margin-left: 0; width: 100%; }
  .exam-timer-dock { top: 64px; right: 10px; padding: 6px 14px; }
  .exam-timer { font-size: 1.35rem; }
  .etd-total { display: none; }
  .duration-card { flex-basis: 130px; padding: 16px 20px; }
}

/* ====== Our Successful Candidates ====== */
.candidate-track {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.candidate-card {
  position: relative; overflow: hidden; aspect-ratio: 3 / 4;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--glass-strong);
  transition: transform 0.2s, box-shadow 0.2s; animation: candFade 0.5s ease both;
}
.candidate-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(28, 54, 48, 0.22); }
.cc-photo { position: absolute; inset: 0; }
.cc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.cc-initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: hsl(var(--hue, 160) 55% 45%); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 3rem; letter-spacing: 2px;
}
.cc-logo {
  position: absolute; top: 12px; left: 12px; z-index: 2; height: 30px; max-width: 96px;
  object-fit: contain; background: rgba(255, 255, 255, 0.92); padding: 4px 7px; border-radius: 7px;
}
.cc-linkedin {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 8px; color: #fff;
  background: rgba(10, 102, 194, 0.9); display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.cc-linkedin:hover { background: #0a66c2; }
.cc-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 16px 15px; z-index: 1;
  background: linear-gradient(to top, rgba(12, 28, 24, 0.92), rgba(12, 28, 24, 0.5) 55%, transparent);
  color: #fff;
}
.cc-name { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: 0.3px; color: #fff; }
.cc-achievement { color: rgba(255, 255, 255, 0.92); font-weight: 600; font-size: 0.86rem; margin-top: 2px; }
.cc-company { color: rgba(255, 255, 255, 0.78); font-size: 0.8rem; margin-top: 2px; }
@keyframes candFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.section-cta { text-align: center; margin-top: 30px; }
.candidates-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 22px 0 18px; flex-wrap: wrap;
}
.candidates-count { color: var(--text-soft); font-size: 0.9rem; font-weight: 600; }

/* List view (candidates page only) */
#candidatesView[data-view="list"] .candidate-track { grid-template-columns: 1fr; gap: 12px; }
#candidatesView[data-view="list"] .candidate-card { aspect-ratio: auto; display: flex; flex-direction: row; min-height: 96px; }
#candidatesView[data-view="list"] .candidate-card:hover { transform: none; }
#candidatesView[data-view="list"] .cc-photo { position: relative; inset: auto; flex: 0 0 96px; width: 96px; }
#candidatesView[data-view="list"] .cc-initials { font-size: 1.6rem; }
#candidatesView[data-view="list"] .cc-logo { top: 8px; left: 8px; height: 20px; }
#candidatesView[data-view="list"] .cc-overlay {
  position: relative; inset: auto; background: none; color: var(--text);
  padding: 12px 64px 12px 20px; display: flex; flex-direction: column; justify-content: center;
}
#candidatesView[data-view="list"] .cc-name { color: var(--text); }
#candidatesView[data-view="list"] .cc-achievement { color: var(--aqua-700); }
#candidatesView[data-view="list"] .cc-company { color: var(--text-soft); }
#candidatesView[data-view="list"] .cc-linkedin {
  top: 50%; right: 16px; transform: translateY(-50%);
  background: rgba(10, 102, 194, 0.12); color: #0a66c2;
}
#candidatesView[data-view="list"] .cc-linkedin:hover { background: rgba(10, 102, 194, 0.2); }

/* Featured carousel */
.featured-carousel { margin: 20px 0 6px; }
.fc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fc-title { font-family: var(--font-display); font-size: 1.25rem; }
.fc-arrows { display: flex; gap: 8px; }
.fc-arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-edge);
  background: var(--glass); color: var(--text); cursor: pointer; font-size: 1.3rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.fc-arrow:hover { background: var(--aqua-500); color: #fff; border-color: var(--aqua-500); }
.fc-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; }
.fc-slide { flex: 0 0 240px; scroll-snap-align: start; }

@media (max-width: 560px) {
  .candidate-track { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .fc-slide { flex-basis: 200px; }
}
