/*
 * ik-slides.css — Shared stylesheet for all Pre-IELTS slide decks
 * IELTS Kishoreganj LMS
 * ─────────────────────────────────────────────────────────────────────
 * CLAUDE CODE INSTRUCTIONS:
 *   - This file lives at: public/Pre-IELTS Class Contents/ik-slides.css
 *   - Every slide deck must link to it: <link rel="stylesheet" href="ik-slides.css">
 *   - Do NOT copy styles inline into individual deck files
 *   - Set --accent, --accent-l, --accent-d in a <style> block in each deck
 *     to match the primary topic colour:
 *       Reading/Vocab:  --accent:#16a34a; --accent-l:#dcfce7; --accent-d:#14532d;
 *       Grammar:        --accent:#4f46e5; --accent-l:#eef2ff; --accent-d:#3730a3;
 *       Speaking:       --accent:#e11d48; --accent-l:#fff1f2; --accent-d:#9f1239;
 *       Listening:      --accent:#0d9488; --accent-l:#e6f7f5; --accent-d:#0a6b62;
 *       Mixed/Intro:    --accent:#0d9488; --accent-l:#e6f7f5; --accent-d:#0a6b62;
 * ─────────────────────────────────────────────────────────────────────
 */

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ik:   #C8102E;
  --gold: #b08d57;

  /* Per-deck accent — override with <style> block in each HTML file */
  --accent:   #0d9488;
  --accent-l: #e6f7f5;
  --accent-d: #0a6b62;

  /* Full palette */
  --l: #16a34a;  --ll: #dcfce7; --ld: #14532d;
  --t: #0d9488;  --tl: #e6f7f5; --td: #0a6b62;
  --b: #2563b0;  --bl: #dbeafe; --bd: #1a3d7a;
  --i: #4f46e5;  --il: #eef2ff; --id: #3730a3;
  --r: #e11d48;  --rl: #fff1f2; --rd: #9f1239;
  --a: #d97706;  --al: #fffbeb; --ad: #92400e;
  --p: #7c3aed;  --pl: #f0ebff; --pd: #4c1d95;

  --tx: #1a1a2e;
  --mu: #6b7280;
  --br: #e5e7eb;
  --bg: #f8fafc;
  --wh: #fff;
}

body {
  background: var(--bg);
  font-family: 'Lato', sans-serif;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

/* ─── PROGRESS BAR ─────────────────────────────────────────── */
.progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: #e5e7eb; z-index: 100; }
.progress-fill { height: 100%; background: var(--accent); transition: width .3s; }

/* ─── SLIDE ENGINE ─────────────────────────────────────────── */
.slides { width: 100vw; height: 100vh; display: flex; flex-direction: column; }
.slide  { display: none; flex: 1; overflow: hidden; flex-direction: column; }
.slide.active { display: flex; }

/* ─── TOP NAV ──────────────────────────────────────────────── */
.tn { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; background: var(--wh); border-bottom: 1px solid var(--br); flex-shrink: 0; }
.lm { display: flex; align-items: center; gap: 8px; }
.lmk { width: 32px; height: 32px; background: var(--ik); display: flex; align-items: center; justify-content: center; color: white; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 14px; }
.lmt { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 14px; color: var(--tx); }
.sc  { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 13px; color: var(--mu); }
.nb  { display: flex; gap: 8px; }
.btn { padding: 6px 16px; border: none; border-radius: 6px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn.pv { background: #f1f5f9; color: var(--mu); }
.btn.nx { background: var(--accent); color: white; }
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .3; cursor: not-allowed; }

/* ─── BANNERS ──────────────────────────────────────────────── */
.banner { padding: 14px 32px; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.bi { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; background: rgba(255,255,255,.2); }
.banner h1 { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: clamp(15px, 2.2vw, 24px); color: white; line-height: 1.2; }
.banner p  { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 2px; font-family: 'Hind Siliguri', sans-serif; }

.bnl { background: linear-gradient(135deg, #14532d, #16a34a); }
.bnb { background: linear-gradient(135deg, #1a3d7a, #2563b0); }
.bni { background: linear-gradient(135deg, #3730a3, #4f46e5); }
.bnt { background: linear-gradient(135deg, #0a6b62, #0d9488); }
.bna { background: linear-gradient(135deg, #92400e, #d97706); }
.bnr { background: linear-gradient(135deg, #9f1239, #e11d48); }
.bnp { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.bnd { background: linear-gradient(135deg, #1e293b, #334155); }

/* ─── CONTENT AREA ─────────────────────────────────────────── */
.ct { padding: 20px 28px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ─── CARDS ────────────────────────────────────────────────── */
.card   { background: var(--wh); border: 1px solid var(--br); border-radius: 10px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.cl,.cl2{ border-top: 4px solid var(--l); background: var(--ll); }
.cb,.cb2{ border-top: 4px solid var(--b); background: var(--bl); }
.ci     { border-top: 4px solid var(--i); background: var(--il); }
.ct2    { border-top: 4px solid var(--t); background: var(--tl); }
.ca     { border-top: 4px solid var(--a); background: var(--al); }
.cr     { border-top: 4px solid var(--r); background: var(--rl); }
.cp     { border-top: 4px solid var(--p); background: var(--pl); }

.ctitle { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 14px; color: var(--tx); margin-bottom: 8px; }
.cbody  { font-size: 13px; color: var(--tx); line-height: 1.7; }
.cbody li { margin-bottom: 5px; list-style: none; padding-left: 18px; position: relative; }
.cbody li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

/* ─── PITFALL BOX ──────────────────────────────────────────── */
.pitfall { background: #fffbeb; border: 1px solid #fcd34d; border-left: 4px solid #f59e0b; border-radius: 8px; padding: 12px 14px; }
.pt { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 13px; color: #92400e; margin-bottom: 5px; }
.pb { font-size: 13px; color: var(--tx); line-height: 1.6; }

/* ─── BENGALI CONTEXT BLOCK ────────────────────────────────── */
.bn-block  { background: #eff6ff; border: 1px solid #bfdbfe; border-left: 4px solid #3b82f6; border-radius: 6px; padding: 10px 14px; }
.bnt-text  { font-family: 'Hind Siliguri', sans-serif; font-size: 15px; color: #1e3a8a; line-height: 1.7; }

/* ─── CHECKLIST ────────────────────────────────────────────── */
.skill-item { display: flex; align-items: center; gap: 12px; padding: 11px; background: var(--wh); border: 1px solid var(--br); border-radius: 8px; cursor: pointer; transition: all .15s; margin-bottom: 7px; }
.skill-item:hover, .skill-item.checked { border-color: var(--accent); background: var(--accent-l); }
.sbox { width: 22px; height: 22px; border: 2px solid var(--br); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.skill-item.checked .sbox { background: var(--accent); border-color: var(--accent); color: white; font-size: 12px; }

/* ─── CORRECT / INCORRECT EXAMPLES ────────────────────────── */
.ex-ok { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; font-size: 13px; background: #dcfce7; border-left: 4px solid #22c55e; }
.ex-no { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; font-size: 13px; background: #fee2e2; border-left: 4px solid #ef4444; }
.tok   { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 11px; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; background: #22c55e; color: white; }
.tno   { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 11px; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; background: #ef4444; color: white; }

/* ─── PRACTICE QUESTIONS ───────────────────────────────────── */
.pq       { background: var(--wh); border: 2px solid var(--br); border-radius: 10px; padding: 16px; margin-bottom: 10px; }
.qn       { display: inline-block; background: var(--accent); color: white; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 12px; padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
.qnl      { display: inline-block; background: var(--l); color: white; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 12px; padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
.qnb      { display: inline-block; background: var(--b); color: white; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 12px; padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
.qt       { font-size: 13px; color: var(--tx); line-height: 1.7; margin-bottom: 8px; }
.statement{ font-size: 14px; font-weight: 700; color: var(--tx); margin-bottom: 10px; }
.passage  { background: #f8fafc; border: 1px solid var(--br); border-left: 4px solid var(--l); border-radius: 6px; padding: 12px 14px; font-size: 13px; color: var(--tx); line-height: 1.8; margin-bottom: 10px; font-style: italic; }
.blank    { display: inline-block; min-width: 60px; border-bottom: 2px solid var(--accent); color: var(--accent); font-weight: 700; text-align: center; padding: 0 4px; }
.rb       { background: var(--accent); color: white; border: none; border-radius: 6px; padding: 7px 18px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; }
.rb:hover { opacity: .85; }
.ab       { display: none; background: var(--accent-l); border: 2px solid var(--accent); border-radius: 8px; padding: 12px; margin-top: 8px; }
.ab.shown { display: block; }
.al-l     { font-size: 10px; font-weight: 700; color: var(--accent-d); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.at       { font-size: 14px; font-weight: 700; color: var(--accent-d); }
.aw       { font-size: 12px; color: var(--tx); margin-top: 3px; line-height: 1.6; }

/* ─── STEP ROWS ────────────────────────────────────────────── */
.step-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; background: var(--wh); border: 1px solid var(--br); border-radius: 8px; margin-bottom: 7px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: white; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-txt { font-size: 13px; color: var(--tx); line-height: 1.6; flex: 1; }

/* ─── HOMEWORK ITEMS ───────────────────────────────────────── */
.hw-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: var(--wh); border: 1px solid var(--br); border-radius: 8px; margin-bottom: 8px; }
.hwh     { width: 96px; flex-shrink: 0; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 11px; padding: 4px 6px; border-radius: 6px; text-align: center; }
.hwh.rd  { background: var(--ll); color: var(--ld); }
.hwh.vo  { background: #fef3e8; color: #92400e; }
.hwh.gr  { background: var(--il); color: var(--id); }
.hwh.sp  { background: var(--tl); color: var(--td); }
.hwh.ls  { background: #f0fdf4; color: #166534; }
.hwh.nt  { background: #f1f5f9; color: #334155; }
.hwd     { font-size: 13px; color: var(--tx); line-height: 1.5; }
.ltag    { display: inline-block; background: var(--ik); color: white; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-left: 3px; vertical-align: middle; }

/* ─── SPECIAL COMPONENTS ───────────────────────────────────── */
.svo-row  { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.svo-cell { padding: 10px 18px; border-radius: 8px; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 16px; text-align: center; min-width: 90px; }
.svo-s    { background: #dbeafe; color: #1a3d7a; border: 2px solid #93c5fd; }
.svo-v    { background: #dcfce7; color: #14532d; border: 2px solid #86efac; }
.svo-o    { background: #fef9c3; color: #854d0e; border: 2px solid #fde047; }
.svo-lbl  { font-size: 10px; font-weight: 700; opacity: .7; display: block; margin-top: 2px; }
.svo-arr  { font-size: 20px; color: var(--mu); }

.tfng-row   { display: flex; gap: 10px; margin-bottom: 10px; }
.tfng-badge { flex: 1; border-radius: 8px; padding: 14px; text-align: center; }
.tfng-t     { background: #dcfce7; border: 2px solid #22c55e; }
.tfng-f     { background: #fee2e2; border: 2px solid #ef4444; }
.tfng-ng    { background: #fef9c3; border: 2px solid #eab308; }
.tfng-label { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 18px; margin-bottom: 4px; }
.tfng-t  .tfng-label { color: #15803d; }
.tfng-f  .tfng-label { color: #dc2626; }
.tfng-ng .tfng-label { color: #a16207; }
.tfng-def   { font-size: 12px; line-height: 1.5; font-family: 'Hind Siliguri', sans-serif; }

.prep-badge { display: inline-block; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 16px; padding: 4px 12px; border-radius: 6px; margin-right: 4px; }
.pb-in { background: #dbeafe; color: #1a3d7a; }
.pb-on { background: #dcfce7; color: #14532d; }
.pb-at { background: #fef9c3; color: #854d0e; }

/* ─── TITLE & END SLIDES ───────────────────────────────────── */
.tsbody  { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px; text-align: center; }
.tstag   { color: white; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 12px; padding: 5px 16px; border-radius: 20px; display: inline-block; margin-bottom: 14px; letter-spacing: 1px; }
.tsmain  { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: clamp(24px, 4.5vw, 48px); color: var(--tx); line-height: 1.05; margin-bottom: 8px; }
.tsbn    { font-family: 'Hind Siliguri', sans-serif; font-size: 17px; margin-bottom: 6px; }
.tssub   { font-size: 14px; color: var(--mu); margin-bottom: 24px; }
.tschips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip    { background: var(--wh); border: 1px solid var(--br); border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 600; color: var(--tx); }
.esbody  { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px; background: linear-gradient(160deg, #1e293b, #334155); }
.kb-hint { position: fixed; bottom: 10px; right: 14px; font-size: 11px; color: #94a3b8; pointer-events: none; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 700px) {
  .g2, .g3, .tfng-row { grid-template-columns: 1fr; flex-direction: column; }
  .ct     { padding: 14px; }
  .banner { padding: 10px 14px; }
  .svo-row{ gap: 6px; }
}
