/* Cyber Safety Simulation — styles
 * Self-contained: hero, persona grid, scenario card, chat phone, decision,
 * SAFE/TRAPPED screens, justice playbook, certificate modal, mobile.
 */

:root {
  --cs-bg: #f8fafc;
  --cs-text: #0f172a;
  --cs-text-soft: #475569;
  --cs-border: #e2e8f0;
  --cs-radius: 12px;
  --cs-radius-lg: 18px;
  --cs-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --cs-shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
}

/* ===== Hero =====
   Site-wide style.css colours h1/h2/p/a — be explicit on every descendant
   so text always reads white on the dark gradient. */
.cs-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0d9488 140%);
  color: #fff;
  padding: 56px 0 40px;
}
.cs-hero, .cs-hero * { color: #fff; }
.cs-hero h1, .cs-hero h2, .cs-hero h3 {
  color: #fff !important;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  margin: 8px 0 6px; line-height: 1.2; font-weight: 800;
}
.cs-hero p, .cs-hero span, .cs-hero a { color: #fff; }
.cs-hero-sub { font-size: clamp(1rem, 2vw, 1.15rem); opacity: 0.92; max-width: 720px; }
.cs-cat-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.32);
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 8px; color: #fff !important;
}
.cs-persona-hero, .cs-scenario-hero {
  background: linear-gradient(135deg, var(--p-dark, #1e293b) 0%, var(--p-color, #2563eb) 100%);
}
.cs-persona-hero-inner { display: flex; gap: 18px; align-items: center; margin-top: 10px; }
.cs-persona-hero-icon { font-size: 3.6rem; line-height: 1; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2)); }

.cs-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 24px;
}
.cs-toolbar .lang-toggle-wrap { background: rgba(255,255,255,0.12); border-radius: 999px; padding: 4px; display: inline-flex; }
.cs-toolbar .lang-btn {
  background: transparent; border: 0; color: #fff; padding: 6px 14px;
  border-radius: 999px; cursor: pointer; font-size: 0.88rem; font-weight: 600;
}
.cs-toolbar .lang-btn[aria-pressed="true"] { background: rgba(255,255,255,0.95); color: #0f172a; }

.cs-progress { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; }
.cs-progress-bar { flex: 1; height: 10px; background: rgba(255,255,255,0.2); border-radius: 999px; overflow: hidden; }
.cs-progress-fill { height: 100%; background: linear-gradient(90deg, #fbbf24, #f59e0b); border-radius: 999px; transition: width 0.6s ease; }
.cs-progress-text { font-size: 0.92rem; white-space: nowrap; }
.cs-progress-text strong { font-size: 1.05rem; }

.cs-cert-btn {
  background: #fbbf24; color: #78350f; border: 0;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
  transition: transform 0.15s;
}
.cs-cert-btn:hover { transform: translateY(-1px); }

.cs-reset-btn {
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  width: 36px; height: 36px; border-radius: 999px; cursor: pointer; font-size: 1rem;
}

.cs-breadcrumb { font-size: 0.88rem; opacity: 0.85; margin-bottom: 14px; }
.cs-breadcrumb a { color: #fff; text-decoration: none; opacity: 0.9; }
.cs-breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.cs-bc-sep { margin: 0 6px; opacity: 0.5; }

/* ===== Sections ===== */
.cs-section { padding: 48px 0; background: var(--cs-bg); color: var(--cs-text); }
.cs-section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 8px; color: var(--cs-text); }
.cs-section-sub { color: var(--cs-text-soft); margin: 0 0 24px; max-width: 720px; }

/* ===== Credit strip ===== */
.cs-credit-strip { background: #ecfdf5; padding: 28px 0; border-top: 3px solid #10b981; }
.cs-credit { display: flex; gap: 18px; align-items: center; max-width: 920px; margin: 0 auto; }
.cs-credit-icon { font-size: 2.5rem; flex-shrink: 0; }
.cs-credit-text { font-size: 0.96rem; line-height: 1.6; color: #065f46; }

/* ===== Persona grid ===== */
.cs-persona-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.cs-persona-card {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--cs-border); border-radius: var(--cs-radius-lg);
  padding: 22px 20px; text-decoration: none; color: var(--cs-text);
  box-shadow: var(--cs-shadow-sm); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  position: relative; overflow: hidden;
}
.cs-persona-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--p-color, #2563eb);
}
.cs-persona-card:hover { transform: translateY(-3px); box-shadow: var(--cs-shadow-md); border-color: var(--p-color); }
.cs-persona-card.cs-persona-progress { background: linear-gradient(180deg, #fff 0%, var(--p-soft, #f8fafc) 100%); }
.cs-persona-card.cs-persona-complete::after {
  content: "✓"; position: absolute; top: 14px; right: 16px;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--p-color); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
.cs-persona-icon { font-size: 2.5rem; line-height: 1; }
.cs-persona-meta h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--p-dark, var(--cs-text)); }
.cs-persona-meta p { margin: 0; color: var(--cs-text-soft); font-size: 0.9rem; line-height: 1.5; }
.cs-persona-stats {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--cs-border);
  font-size: 0.85rem; color: var(--cs-text-soft);
}
.cs-persona-medal { background: var(--p-soft, #f1f5f9); color: var(--p-dark); padding: 4px 10px; border-radius: 999px; font-weight: 700; }

.cs-persona-desc { font-size: 1.02rem; color: var(--cs-text-soft); max-width: 760px; line-height: 1.65; margin-bottom: 32px; }

/* ===== Scenario cards (in persona hub) ===== */
.cs-scenario-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.cs-scenario-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--cs-border); border-radius: var(--cs-radius);
  padding: 18px 16px; text-decoration: none; color: var(--cs-text);
  box-shadow: var(--cs-shadow-sm); transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  border-top: 3px solid var(--p-color, #2563eb);
}
.cs-scenario-card:hover { transform: translateY(-2px); box-shadow: var(--cs-shadow-md); border-color: var(--p-color); }
.cs-scenario-card.cs-cleared { background: linear-gradient(180deg, #fff 0%, #ecfdf5 100%); }
.cs-scenario-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; color: var(--p-dark, var(--cs-text)); }
.cs-scenario-card p { margin: 0; color: var(--cs-text-soft); font-size: 0.9rem; line-height: 1.55; }
.cs-scenario-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--cs-text-soft); margin-top: auto; padding-top: 10px; }
.cs-medal-marker { background: #d1fae5; color: #065f46; padding: 3px 9px; border-radius: 999px; font-weight: 700; }

.cs-scenario-channel { display: inline-block; font-size: 0.7rem; padding: 3px 9px; border-radius: 4px; letter-spacing: 0.1em; font-weight: 700; align-self: flex-start; }
.cs-channel-badge {
  display: inline-block; font-size: 0.72rem; padding: 4px 12px; border-radius: 4px;
  letter-spacing: 0.12em; font-weight: 800;
  background: rgba(255,255,255,0.18) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.35); margin-bottom: 8px;
}
/* In hero context the badge sits on the gradient — keep the white-on-glass look
   regardless of channel colour (which only applies on persona-card thumbnails) */
.cs-hero .cs-channel-badge { background: rgba(255,255,255,0.16) !important; color: #fff !important; }
.cs-breadcrumb, .cs-breadcrumb a { color: rgba(255,255,255,0.92) !important; }
.cs-breadcrumb a:hover { color: #fff !important; text-decoration: underline; }

.cs-ch-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b); color: #fff; }
.cs-ch-whatsapp { background: #25D366; color: #fff; }
.cs-ch-call, .cs-ch-video-call { background: #2563eb; color: #fff; }
.cs-ch-sms { background: #f59e0b; color: #fff; }
.cs-ch-email { background: #475569; color: #fff; }
.cs-ch-telegram { background: #0088cc; color: #fff; }
.cs-ch-in-person { background: #16a34a; color: #fff; }

/* ===== Stage / phone mockup ===== */
.cs-stage { padding-top: 36px; }
.cs-screen { animation: none; }
.cs-fade-in { animation: csFade 0.5s ease both; }
@keyframes csFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.cs-phone {
  max-width: 480px; margin: 0 auto 28px;
  background: #fff; border: 1px solid var(--cs-border); border-radius: 22px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.12);
  overflow: hidden;
}
.cs-phone-header {
  background: var(--p-color, #1e293b); color: #fff;
  padding: 14px 18px; font-size: 0.82rem; letter-spacing: 0.1em; font-weight: 700;
  text-transform: uppercase;
}
.cs-phone-body { padding: 18px 16px; background: #f1f5f9; min-height: 240px; display: flex; flex-direction: column; gap: 10px; }

.cs-phone-instagram .cs-phone-header { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.cs-phone-whatsapp .cs-phone-header { background: #075E54; }
.cs-phone-whatsapp .cs-phone-body { background: #ECE5DD; }
.cs-phone-call .cs-phone-header, .cs-phone-video-call .cs-phone-header { background: #1e293b; }
.cs-phone-call .cs-phone-body, .cs-phone-video-call .cs-phone-body { background: #f1f5f9; }
.cs-phone-sms .cs-phone-header { background: #f59e0b; }
.cs-phone-sms .cs-phone-body { background: #fef3c7; }
.cs-phone-email .cs-phone-header { background: #475569; }
.cs-phone-email .cs-phone-body { background: #f1f5f9; }
.cs-phone-telegram .cs-phone-header { background: #0088cc; }
.cs-phone-telegram .cs-phone-body { background: #e7f3fa; }
.cs-phone-in-person .cs-phone-header { background: #16a34a; }
.cs-phone-in-person .cs-phone-body { background: #f0fdf4; }

.cs-narration {
  background: #fff; border: 1px dashed #cbd5e1; border-radius: 10px;
  padding: 12px 14px; font-style: italic; color: #475569; font-size: 0.92rem; line-height: 1.55;
}
.cs-bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  background: #fff; border: 1px solid #e2e8f0; box-shadow: var(--cs-shadow-sm);
  font-size: 0.95rem; line-height: 1.5;
}
.cs-bubble-stranger { align-self: flex-start; border-bottom-left-radius: 4px; }
.cs-bubble-caller { align-self: flex-start; border-bottom-left-radius: 4px; background: #dbeafe; border-color: #bfdbfe; }
.cs-bubble-sms { align-self: flex-start; background: #fef3c7; border-color: #fcd34d; }
.cs-bubble-email { align-self: flex-start; background: #fff; border-color: #cbd5e1; font-family: ui-monospace, monospace; font-size: 0.88rem; }
.cs-bubble-telegram { align-self: flex-start; background: #dbeafe; border-color: #93c5fd; }
.cs-bubble-name { font-size: 0.78rem; font-weight: 700; color: #475569; margin-bottom: 4px; }

/* WhatsApp specific */
.cs-phone-whatsapp .cs-bubble-stranger { background: #fff; }

/* ===== Decision ===== */
.cs-decision { max-width: 620px; margin: 0 auto; padding: 24px 18px; background: #fff; border: 1px solid var(--cs-border); border-radius: var(--cs-radius); box-shadow: var(--cs-shadow-sm); }
.cs-decision-prompt { margin: 0 0 16px; font-size: 1.15rem; color: var(--cs-text); }
.cs-choices { display: flex; flex-direction: column; gap: 10px; }
.cs-choice {
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
  background: #f8fafc; border: 2px solid var(--cs-border); border-radius: 10px;
  padding: 14px 16px; font-size: 0.98rem; line-height: 1.5; color: var(--cs-text);
  cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s;
  width: 100%;
}
.cs-choice:hover:not(:disabled) { border-color: var(--p-color, #2563eb); background: #fff; transform: translateX(2px); }
.cs-choice:disabled { cursor: not-allowed; opacity: 0.6; }
.cs-choice-selected { border-color: var(--p-color, #2563eb) !important; background: var(--p-soft, #eff6ff) !important; opacity: 1 !important; }
.cs-choice-letter {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px;
  background: var(--p-color, #2563eb); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem;
}
.cs-choice-label { flex: 1; }

/* ===== SAFE outcome ===== */
.cs-screen-safe { max-width: 720px; margin: 0 auto; }
.cs-medal-wrap {
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
  border: 2px solid #10b981; border-radius: var(--cs-radius-lg);
  padding: 36px 24px; text-align: center;
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15);
}
.cs-medal { display: inline-block; filter: drop-shadow(0 8px 24px rgba(180, 83, 9, 0.35)); animation: csMedalPop 0.7s ease both; }
@keyframes csMedalPop { 0% { transform: scale(0.4) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.1) rotate(4deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.cs-safe-headline { color: #065f46; font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 16px 0 8px; }
.cs-safe-module { color: #047857; font-size: 1rem; margin: 0 0 18px; }
.cs-safe-explain { background: #fff; border: 1px solid #d1fae5; border-radius: 10px; padding: 16px 18px; text-align: left; color: #065f46; line-height: 1.65; }

/* ===== TRAPPED outcome ===== */
.cs-screen-trapped { max-width: 820px; margin: 0 auto; }
.cs-trap-banner {
  background: linear-gradient(135deg, #991b1b, #7f1d1d);
  color: #fff; border-radius: var(--cs-radius-lg) var(--cs-radius-lg) 0 0;
  padding: 24px 22px;
}
.cs-trap-headline { margin: 0; font-size: clamp(1.2rem, 3vw, 1.55rem); line-height: 1.35; }
.cs-trap-block { background: #fff; border: 1px solid #fecaca; border-top: 0; padding: 22px; }
.cs-trap-block:last-of-type { border-radius: 0 0 var(--cs-radius-lg) var(--cs-radius-lg); margin-bottom: 22px; }
.cs-trap-block h3 { margin: 0 0 12px; color: #7f1d1d; font-size: 1.15rem; }
.cs-trap-money { background: #fef2f2; }
.cs-trap-flags { background: #fff7ed; border-color: #fed7aa; }
.cs-trap-flags h3 { color: #9a3412; }
.cs-trap-shouldhave { background: #f0fdf4; border-color: #bbf7d0; }
.cs-trap-shouldhave h3 { color: #166534; }
.cs-trap-justice { background: #eff6ff; border-color: #bfdbfe; }
.cs-trap-justice h3 { color: #1e40af; }

.cs-anatomy, .cs-flags, .cs-shouldhave { padding-left: 0; list-style: none; margin: 0; }
.cs-anatomy { counter-reset: anat; }
.cs-anatomy li { counter-increment: anat; padding: 8px 0 8px 38px; position: relative; line-height: 1.6; border-bottom: 1px dashed #fecaca; }
.cs-anatomy li:last-child { border-bottom: 0; }
.cs-anatomy li::before {
  content: counter(anat); position: absolute; left: 0; top: 8px;
  width: 26px; height: 26px; border-radius: 999px; background: #991b1b; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.78rem;
}
.cs-flags li { padding: 6px 0; line-height: 1.55; color: #9a3412; }
.cs-shouldhave li { padding: 6px 0; line-height: 1.55; color: #166534; }
.cs-justice-mini { padding-left: 24px; margin: 0; }
.cs-justice-mini li { padding: 8px 0; line-height: 1.6; }
.cs-justice-intro { font-style: italic; color: #1e40af; margin: 0 0 12px; }

/* ===== Justice playbook section (landing) ===== */
.cs-justice { background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); }
.cs-justice-steps { padding-left: 0; list-style: none; margin: 0; counter-reset: jp; max-width: 880px; }
.cs-justice-step {
  counter-increment: jp;
  display: flex; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid #dbeafe;
}
.cs-justice-step:last-child { border-bottom: 0; }
.cs-justice-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px;
  background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.cs-justice-step::before { content: counter(jp); display: none; }
.cs-justice-step h4 { margin: 4px 0 6px; font-size: 1.05rem; color: #1e40af; }
.cs-justice-step p { margin: 0; color: #334155; line-height: 1.6; }
.cs-justice-outro { margin-top: 22px; padding: 16px 18px; background: #fef3c7; border-left: 4px solid #f59e0b; color: #78350f; font-weight: 600; border-radius: 6px; }

/* ===== Buttons & actions ===== */
.cs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; justify-content: center; }
.cs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-size: 0.96rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 0; min-height: 44px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.cs-btn-primary { background: var(--p-color, #2563eb); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.cs-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,99,235,0.4); }
.cs-btn-ghost { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.cs-btn-ghost:hover { background: #e2e8f0; }

.cs-already-cleared {
  background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46;
  padding: 12px 16px; border-radius: 10px; max-width: 620px; margin: 0 auto 18px; font-size: 0.92rem;
}

/* ===== Modal ===== */
.cs-modal {
  position: fixed; inset: 0; background: rgba(15,23,42,0.6); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cs-modal[hidden] { display: none !important; }   /* HTML `hidden` must beat the flex above */
.cs-modal-card {
  background: #fff; border-radius: var(--cs-radius-lg); padding: 28px;
  max-width: 440px; width: 100%; box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.cs-modal-card h3 { margin: 0 0 8px; color: #0f172a; }
.cs-modal-card p { margin: 0 0 16px; color: #475569; }
.cs-modal-card input {
  width: 100%; padding: 12px 14px; border: 2px solid #cbd5e1; border-radius: 8px;
  font-size: 1rem; font-family: inherit; box-sizing: border-box;
}
.cs-modal-card input:focus { outline: 0; border-color: #2563eb; }
.cs-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ===== Download buttons (handbook PDF + PPT + web printable) ===== */
.cs-downloads {
  display: grid; gap: 10px; margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  width: 100%;
}
.cs-dl-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.cs-dl-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
.cs-dl-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.cs-dl-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-dl-meta strong { font-size: 0.95rem; line-height: 1.2; }
.cs-dl-meta small { font-size: 0.78rem; opacity: 0.8; }

/* ===== Resources section (PDF + PPT) — refined ===== */
.cs-resources { background: #f8fafc; padding-bottom: 56px; }
.cs-res-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  margin-top: 8px;
}
.cs-res-card {
  display: grid; grid-template-columns: 220px 1fr;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  text-decoration: none; color: inherit; overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cs-res-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(15,23,42,0.06), 0 24px 48px rgba(15,23,42,0.1); border-color: #cbd5e1; }

/* ── Thumbnail rail (left) ── */
.cs-res-thumb {
  background: linear-gradient(160deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 18px;
  position: relative;
}
.cs-res-thumb::after {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px;
  width: 1px; background: linear-gradient(to bottom, transparent, rgba(15,23,42,0.08), transparent);
  right: 0; left: auto;
}

/* ── PDF: realistic book mockup with spine + cover ── */
.cs-res-book {
  display: flex; align-items: stretch;
  width: 170px; aspect-ratio: 1 / 1.414;
  filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.18));
  transform: rotate(-2deg);
  transition: transform 0.25s ease;
}
.cs-res-card:hover .cs-res-book { transform: rotate(0) translateY(-2px); }
.cs-res-book-spine {
  width: 8px; background: linear-gradient(to right, #4a0d0d, #6b1f1f);
  border-radius: 1px 0 0 1px;
}
.cs-res-book-cover {
  flex: 1; background: #fdfaf2;
  padding: 10px 8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 1px 1px 0;
  border: 1px solid rgba(107, 31, 31, 0.15);
  border-left: 0;
}
.cs-res-book-frame {
  width: 100%; height: 100%;
  border: 0.6px solid #6b1f1f;
  padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
  text-align: center;
}
.cs-res-book-mark {
  width: 22px; height: 22px;
  filter: grayscale(1) contrast(1.2) brightness(0.45);
  opacity: 0.85;
}
.cs-res-book-eyebrow {
  font-size: 5pt; letter-spacing: 0.14em; font-weight: 700;
  color: #6e5e4e; font-family: 'Inter', sans-serif;
}
.cs-res-book-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11pt; color: #2a1f15;
  line-height: 1.05; font-weight: 500;
}
.cs-res-book-amp {
  font-family: Georgia, serif; font-style: italic;
  font-size: 10pt; color: #6b1f1f;
}
.cs-res-book-rule { width: 30%; height: 0.5px; background: #6b1f1f; opacity: 0.5; margin: 2px 0; }
.cs-res-book-sub {
  font-size: 6pt; color: #6e5e4e;
  font-family: Georgia, serif; line-height: 1.3;
}

/* ── PPT: stacked-slides mockup ── */
.cs-res-thumb-ppt {
  background: linear-gradient(160deg, #f1f5f9 0%, #e2e8f0 100%);
}
.cs-res-slide-stack {
  position: relative; width: 200px; height: 113px;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.18));
}
.cs-res-slide-back, .cs-res-slide-mid, .cs-res-slide {
  position: absolute; inset: 0;
  border-radius: 3px;
  background: #1e293b;
}
.cs-res-slide-back { transform: translate(8px, 8px); background: #cbd5e1; opacity: 0.7; }
.cs-res-slide-mid  { transform: translate(4px, 4px); background: #94a3b8; opacity: 0.85; }
.cs-res-slide {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0d9488 140%);
  padding: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.cs-res-stripe-l { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #0d9488; }
.cs-res-stripe-r { position: absolute; right: 0; top: 0; bottom: 0; width: 4px; background: #f59e0b; }
.cs-res-slide-mark {
  width: 18px; height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.9; margin-bottom: 4px;
}
.cs-res-slide-eyebrow {
  font-size: 5pt; letter-spacing: 0.18em; font-weight: 700;
  color: #5eead4; font-family: 'Inter', sans-serif;
  margin-bottom: 4px;
}
.cs-res-slide-title {
  font-family: 'Inter', sans-serif;
  font-size: 12pt; font-weight: 800;
  color: #fff; line-height: 1.1; margin-bottom: 1px;
  letter-spacing: 0.01em;
}
.cs-res-slide-title-hi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 8pt; color: #5eead4;
  margin-bottom: 5px;
}
.cs-res-slide-foot {
  font-size: 5pt; letter-spacing: 0.14em; font-weight: 600;
  color: rgba(255,255,255,0.65);
  font-family: 'Inter', sans-serif;
}

/* ── Meta column (right) ── */
.cs-res-meta {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.cs-res-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #475569;
  padding: 4px 10px;
  background: #f1f5f9; border-radius: 999px;
  align-self: flex-start;
}
.cs-res-pdf .cs-res-eyebrow { background: #fef2f2; color: #7f1d1d; }
.cs-res-ppt .cs-res-eyebrow { background: #fef3c7; color: #78350f; }

.cs-res-meta h3 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem; color: #0f172a;
  line-height: 1.2; font-weight: 600;
  letter-spacing: -0.005em;
}
.cs-res-tagline { margin: 0; color: #64748b; line-height: 1.55; font-size: 0.92rem; }

/* Spec rows — compact two-column key/value list */
.cs-res-specs {
  margin: 4px 0 6px; padding: 12px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px;
}
.cs-res-specs > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; min-width: 0;
}
.cs-res-specs dt {
  font-size: 0.78rem; font-weight: 600;
  color: #94a3b8; letter-spacing: 0.04em;
  text-transform: uppercase; flex-shrink: 0;
  margin: 0;
}
.cs-res-specs dd {
  margin: 0; font-size: 0.88rem; font-weight: 600;
  color: #0f172a; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* CTA — full-width pill button */
.cs-res-cta {
  margin-top: auto; padding: 14px 22px;
  border-radius: 12px;
  background: #0f172a; color: #fff;
  font-weight: 700; font-size: 0.98rem;
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.18s ease, transform 0.15s ease;
}
.cs-res-cta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.18); font-size: 0.95rem; font-weight: 800;
  transition: transform 0.2s ease;
}
.cs-res-card:hover .cs-res-cta-icon { transform: translateY(2px); }
.cs-res-pdf .cs-res-cta { background: #6b1f1f; }
.cs-res-pdf:hover .cs-res-cta { background: #4a0d0d; }
.cs-res-ppt .cs-res-cta { background: #b45309; }
.cs-res-ppt:hover .cs-res-cta { background: #78350f; }

.cs-res-note {
  margin-top: 24px; padding: 14px 18px;
  background: #f1f5f9; border-left: 3px solid #475569;
  color: #334155; font-size: 0.92rem; line-height: 1.55; border-radius: 4px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .cs-res-grid { grid-template-columns: 1fr; gap: 16px; }
  .cs-res-card { grid-template-columns: 1fr; }
  .cs-res-thumb { padding: 28px; min-height: 220px; }
  .cs-res-thumb::after { display: none; }
  .cs-res-meta { padding: 20px; }
  .cs-res-specs { grid-template-columns: 1fr; gap: 4px; }
}

/* ===== QR — scan to visit on phone ===== */
.cs-qr-section { background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%); }
.cs-qr-card {
  display: grid; grid-template-columns: auto 1fr; gap: 28px;
  align-items: center;
  background: #fff; border: 2px solid #0d9488;
  border-radius: 18px; padding: 28px;
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.12);
  max-width: 1080px; margin: 0 auto;
}
.cs-qr-img {
  flex-shrink: 0; padding: 12px;
  background: #fff; border-radius: 12px;
  border: 1px solid #d1fae5;
}
.cs-qr-img img {
  display: block; width: 200px; height: 200px;
  image-rendering: pixelated;   /* keep QR squares crisp */
}
.cs-qr-meta { min-width: 0; }
.cs-qr-eyebrow {
  display: inline-block; padding: 4px 12px;
  border-radius: 999px; background: #d1fae5; color: #065f46;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 10px;
}
.cs-qr-card h3 { margin: 0 0 10px; color: #115e59; font-size: 1.4rem; line-height: 1.3; }
.cs-qr-card p { margin: 0 0 16px; color: #334155; line-height: 1.6; }
.cs-qr-url-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 10px 14px; background: #f0fdfa; border-radius: 8px;
  margin-bottom: 16px; border: 1px dashed #5eead4;
}
.cs-qr-url-label { font-size: 0.85rem; color: #115e59; font-weight: 600; }
.cs-qr-url {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: 1rem; color: #065f46; background: transparent;
  padding: 0; word-break: break-all;
}
.cs-qr-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.cs-qr-tip {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 8px 12px; background: #f0fdfa; border-radius: 8px;
  font-size: 0.85rem; color: #115e59; line-height: 1.4;
}
.cs-qr-tip strong { font-size: 1.1rem; flex-shrink: 0; }

@media (max-width: 768px) {
  .cs-qr-card { grid-template-columns: 1fr; padding: 20px; gap: 20px; text-align: center; }
  .cs-qr-img { margin: 0 auto; }
  .cs-qr-img img { width: 180px; height: 180px; }
  .cs-qr-card h3 { font-size: 1.2rem; }
  .cs-qr-tip { text-align: left; }
  .cs-qr-eyebrow { display: inline-block; }
  .cs-qr-url-row { justify-content: center; }
}

/* ===== DLSA Balotra contact card ===== */
.cs-dlsa-card { background: #fff; border: 2px solid #f59e0b; border-radius: 18px; padding: 24px; box-shadow: 0 8px 24px rgba(245, 158, 11, 0.18); max-width: 1080px; margin: 0 auto; }
.cs-dlsa-header { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.cs-dlsa-icon { font-size: 2.6rem; line-height: 1; flex-shrink: 0; }
.cs-dlsa-eyebrow { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: #92400e; margin-bottom: 4px; }
.cs-dlsa-card h3 { margin: 0 0 4px; color: #78350f; font-size: 1.25rem; }
.cs-dlsa-officer { margin: 0; color: #92400e; font-size: 0.95rem; }
.cs-dlsa-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cs-dlsa-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; text-decoration: none; color: #78350f; transition: transform 0.15s, border-color 0.15s; }
.cs-dlsa-item:hover { transform: translateY(-2px); border-color: #d97706; background: #fff; }
.cs-dlsa-label { font-size: 0.78rem; color: #92400e; }
.cs-dlsa-value { font-size: 1rem; color: #78350f; word-break: break-all; }
.cs-dlsa-note { margin: 18px 0 0; padding: 12px 16px; background: #fef9c3; border-left: 4px solid #ca8a04; color: #713f12; font-size: 0.9rem; line-height: 1.55; border-radius: 6px; }

/* ===== Helplines panel ===== */
.cs-helplines-title { margin: 36px 0 14px; font-size: 1.2rem; color: #1e40af; }
.cs-helplines-mini-title { margin: 22px 0 12px; font-size: 1rem; color: #1e40af; }
.cs-helplines-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1080px;
}
.cs-helplines-mini { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 0; }
.cs-helpline {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; background: #fff; border: 1px solid #bfdbfe; border-radius: 10px;
  text-decoration: none; color: #0f172a;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.cs-helpline:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30,64,175,0.15); border-color: #2563eb; }
.cs-helpline-num { font-weight: 800; color: #1e40af; font-size: 1.05rem; line-height: 1.2; word-break: break-all; }
.cs-helpline-label { font-size: 0.82rem; color: #475569; line-height: 1.4; }
.cs-helplines-note { margin-top: 18px; padding: 12px 16px; background: #f0fdf4; border-left: 4px solid #16a34a; color: #166534; font-size: 0.88rem; border-radius: 6px; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .cs-hero { padding: 36px 0 28px; }
  .cs-section { padding: 36px 0; }
  .cs-toolbar { gap: 8px; }
  .cs-progress { min-width: 0; flex-basis: 100%; order: 3; }
  .cs-cert-btn { font-size: 0.88rem; padding: 9px 14px; }
  .cs-persona-grid { grid-template-columns: 1fr; }
  .cs-scenario-grid { grid-template-columns: 1fr; }
  .cs-credit { flex-direction: column; text-align: center; gap: 10px; }
  .cs-justice-step { gap: 12px; padding: 14px 0; }
  .cs-justice-num { width: 36px; height: 36px; font-size: 0.95rem; }
  .cs-trap-block { padding: 16px 14px; }
  .cs-decision { padding: 18px 14px; }
}
@media (max-width: 480px) {
  .cs-phone { border-radius: 16px; }
  .cs-phone-body { padding: 14px 12px; min-height: 200px; }
  .cs-bubble { font-size: 0.92rem; padding: 9px 12px; max-width: 92%; }
  .cs-narration { font-size: 0.88rem; padding: 10px 12px; }
  .cs-choice { padding: 12px 14px; font-size: 0.94rem; }
  .cs-choice-letter { width: 28px; height: 28px; font-size: 0.82rem; }
  .cs-medal svg { width: 140px; height: 140px; }
  .cs-actions .cs-btn { width: 100%; justify-content: center; }
}
