/* ============================================================================
   Premium "study material" theme for the Loksewa guide. Scoped under
   .loksewa-page so it never affects other pages. Scholarly navy + gold (exam /
   achievement) palette, serif headings, auto-numbered sections, callouts,
   an exam-stage stepper, post-level cards, a syllabus chip board and a study
   checklist — designed to read like well-made exam-prep notes.
   ========================================================================== */

.loksewa-page {
  --lk-navy: #1e2a59;
  --lk-navy2: #2c3f7e;
  --lk-ink: #24272e;
  --lk-gold: #c0982a;
  --lk-gold2: #e8c766;
  --lk-teal: #0f766e;
  --lk-cream: #fbf9f3;
  --lk-line: #e8e2d2;
  --lk-muted: #6c6555;
  background:
    radial-gradient(circle at 8% -4%, rgba(192,152,42,.10), transparent 36%),
    radial-gradient(circle at 95% 0%, rgba(30,42,89,.08), transparent 42%),
    #fbf9f3;
  padding-bottom: 48px;
}
.lk-wrap { max-width: 880px; margin: 0 auto; padding: 8px 0 10px; }
.lk-wrap p, .lk-wrap li { color: var(--lk-ink); line-height: 1.75; }

.lk-crumbs { font-size: .8rem; color: var(--lk-muted); margin: 4px 0 14px; }
.lk-crumbs a { color: var(--lk-navy); text-decoration: none; }

/* ---- Hero ---- */
.lk-hero {
  position: relative; overflow: hidden; border-radius: 18px; color: #fff;
  padding: 34px 32px 38px;
  background: linear-gradient(135deg, #16204a 0%, var(--lk-navy) 45%, var(--lk-navy2) 100%);
  box-shadow: 0 16px 44px rgba(22,32,74,.32);
}
.lk-hero::before { /* faint ruled-paper / notebook lines */
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent 0 26px, #fff 26px 27px);
}
.lk-hero::after { /* gold rule */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--lk-gold), var(--lk-gold2), var(--lk-gold));
}
.lk-hero__kicker {
  position: relative; display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #11203f; background: linear-gradient(135deg, var(--lk-gold2), var(--lk-gold));
  padding: 5px 12px; border-radius: 20px; margin-bottom: 12px;
}
.lk-hero h1 {
  position: relative; font-family: Merriweather, Georgia, serif; font-weight: 900;
  font-size: 2.4rem; line-height: 1.12; margin: 0 0 10px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.lk-hero p { position: relative; color: #d8def2; max-width: 60ch; margin: 0; }
.lk-hero__meta { position: relative; display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: .82rem; color: #c7cfe6; }
.lk-hero__meta b { color: var(--lk-gold2); }

/* ---- Table of contents ---- */
.lk-toc {
  background: #fff; border: 1px solid var(--lk-line); border-radius: 14px; padding: 18px 22px;
  margin: 22px 0; box-shadow: 0 4px 16px rgba(22,32,74,.05);
}
.lk-toc h2 { font-family: Merriweather, Georgia, serif; font-size: 1rem; color: var(--lk-navy); margin: 0 0 10px; }
.lk-toc ol { margin: 0; padding-left: 0; list-style: none; counter-reset: toc; columns: 2; column-gap: 28px; }
.lk-toc li { counter-increment: toc; margin: 6px 0; break-inside: avoid; }
.lk-toc a { color: var(--lk-ink); text-decoration: none; font-weight: 500; font-size: .92rem; }
.lk-toc a::before { content: counter(toc) ". "; color: var(--lk-gold); font-weight: 700; }
.lk-toc a:hover { color: var(--lk-navy); }
@media (max-width: 560px) { .lk-toc ol { columns: 1; } }

/* ---- Auto-numbered sections ---- */
.lk-wrap { counter-reset: sec; }
.lk-section { margin-top: 30px; }
.lk-section > h2 {
  font-family: Merriweather, Georgia, serif; font-size: 1.4rem; color: var(--lk-navy);
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px; line-height: 1.3;
}
.lk-section > h2::before {
  counter-increment: sec; content: counter(sec);
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--lk-navy), var(--lk-navy2));
  box-shadow: 0 3px 8px rgba(30,42,89,.25);
}
.lk-section h3 { font-size: 1.05rem; color: var(--lk-navy); margin: 18px 0 4px; }
.lk-key { background: linear-gradient(transparent 60%, var(--lk-gold2) 60%); font-weight: 700; padding: 0 2px; }

/* ---- Cards (post levels) ---- */
.lk-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 8px; }
.lk-card {
  position: relative; background: #fff; border: 1px solid var(--lk-line); border-radius: 14px;
  padding: 16px 16px 16px 18px; box-shadow: 0 3px 12px rgba(22,32,74,.05);
}
.lk-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 14px 0 0 14px; background: linear-gradient(180deg, var(--lk-gold), var(--lk-navy)); }
.lk-card h4 { margin: 0 0 4px; color: var(--lk-navy); font-size: 1rem; }
.lk-card p { margin: 0; color: var(--lk-muted); font-size: .9rem; }

/* ---- Exam stepper ---- */
.lk-steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 8px; counter-reset: step; }
.lk-step {
  position: relative; background: #fff; border: 1px solid var(--lk-line); border-radius: 14px; padding: 18px 16px 16px;
  box-shadow: 0 3px 12px rgba(22,32,74,.05);
}
.lk-step::before {
  counter-increment: step; content: "STAGE " counter(step);
  font-size: .68rem; font-weight: 800; letter-spacing: 1px; color: var(--lk-gold);
}
.lk-step h4 { margin: 4px 0 6px; color: var(--lk-navy); font-size: 1.05rem; }
.lk-step p { margin: 0; color: var(--lk-muted); font-size: .9rem; }

/* ---- Syllabus chips ---- */
.lk-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.lk-chip {
  background: #fff; border: 1px solid var(--lk-line); border-left: 3px solid var(--lk-gold);
  border-radius: 8px; padding: 7px 13px; font-size: .9rem; font-weight: 600; color: var(--lk-navy);
}

/* ---- Study checklist ---- */
.lk-checklist { list-style: none; padding: 0; margin: 8px 0 0; }
.lk-checklist li {
  position: relative; padding: 10px 12px 10px 42px; margin-bottom: 8px;
  background: #fff; border: 1px solid var(--lk-line); border-radius: 10px; box-shadow: 0 2px 8px rgba(22,32,74,.04);
}
.lk-checklist li::before {
  content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--lk-teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700;
}
.lk-checklist li strong { color: var(--lk-navy); }

/* ---- Callout ---- */
.lk-callout {
  border-radius: 12px; padding: 16px 18px; margin-top: 18px;
  background: #fff; border: 1px solid var(--lk-line); border-left: 5px solid var(--lk-navy);
}
.lk-callout--official { border-left-color: var(--lk-gold); background: linear-gradient(180deg, #fffdf6, #fdf7e6); }
.lk-callout h4 { margin: 0 0 6px; color: var(--lk-navy); font-size: 1rem; }
.lk-callout p { margin: 0; color: var(--lk-ink); }
.lk-callout a { color: var(--lk-navy); font-weight: 700; }

/* ---- FAQ ---- */
.lk-faq { margin-top: 10px; }
.lk-qa {
  background: #fff; border: 1px solid var(--lk-line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(22,32,74,.04);
}
.lk-qa h3 { margin: 0 0 6px; color: var(--lk-navy); font-size: 1.02rem; }
.lk-qa p { margin: 0; color: var(--lk-ink); }

.lk-note { font-size: .82rem; color: var(--lk-muted); margin-top: 22px; border-top: 1px solid var(--lk-line); padding-top: 14px; }
.lk-cta { margin-top: 20px; }
.lk-cta a { color: var(--lk-navy); font-weight: 700; }

@media (max-width: 560px) { .lk-hero h1 { font-size: 1.8rem; } .lk-hero { padding: 24px 20px 30px; } }
