@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Syne:wght@600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ══════════════════════════════════════════
   VARIABLES — WHITE / ISIL STYLE
══════════════════════════════════════════ */
:root {
  --navy:        #1e1b4b;
  --navy-dark:   #0f0e2a;
  --navy-mid:    #312e81;
  --blue:        #4f46e5;
  --blue-mid:    #6366f1;
  --blue-light:  #818cf8;
  --sky:         #38bdf8;
  --cyan:        #a78bfa;
  --teal:        #7c3aed;
  --amber:       #f59e0b;
  --amber-light: #fef3c7;
  --green:       #10b981;
  --green-light: #d1fae5;
  --rose:        #f43f5e;
  --rose-light:  #ffe4e6;
  --purple:      #8b5cf6;
  --purple-light:#ede9fe;
  --orange:      #f97316;

  /* White theme surfaces */
  --bg:          #f8fafc;
  --surface:     #ffffff;
  --surface-2:   #f1f5f9;
  --border:      #e2e8f0;
  --border-soft: #f1f5f9;
  --text-main:   #0f172a;
  --text-body:   #334155;
  --text-muted:  #64748b;
  --text-faint:  #94a3b8;

  /* Shadows */
  --s-xs: 0 1px 2px rgba(0,0,0,.05);
  --s-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --s-md: 0 4px 16px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
  --s-lg: 0 10px 32px rgba(0,0,0,.09), 0 4px 12px rgba(0,0,0,.05);

  --r:    14px;
  --r-sm: 8px;
  --r-xs: 6px;
  --r-lg: 20px;

  /* ISIL accent */
  --isil: #00205d;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; line-height: 1.25; }
code, .mono { font-family: 'JetBrains Mono', monospace; }

/* ══════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════ */
#global-prog {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 3px; background: var(--border);
}
#global-prog-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--navy), var(--blue-light), var(--cyan));
  transition: width .6s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(37,99,235,.4);
}

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
#sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 268px; z-index: 200;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; overflow-x: hidden;
  box-shadow: var(--s-md);
}
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.sidebar-logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-family: 'Syne',sans-serif; font-weight: 800; color: white;
  flex-shrink: 0;
}
.sidebar-brand-text { flex: 1; min-width: 0; }
.sidebar-course-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 2px;
}
.sidebar-title-text {
  font-family: 'Syne',sans-serif; font-weight: 800; font-size: .88rem;
  color: var(--text-main); line-height: 1.2;
}

.sidebar-nav { flex: 1; padding: 12px 10px; }
.nav-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-faint); padding: 8px 10px 4px; font-family: 'Syne',sans-serif;
}
.nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; cursor: pointer;
  font-size: .83rem; color: var(--text-muted);
  transition: all .18s; border: none; background: none;
  width: 100%; text-align: left; font-family: 'DM Sans',sans-serif;
  font-weight: 400; position: relative; margin-bottom: 1px;
}
.nav-btn:hover { background: var(--surface-2); color: var(--text-main); }
.nav-btn.active {
  background: linear-gradient(135deg, rgba(0,32,93,.06), rgba(37,99,235,.06));
  color: var(--navy); font-weight: 600;
  border: 1px solid rgba(37,99,235,.12);
}
.nav-btn.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--navy), var(--blue-mid));
}
.nav-num {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: 'Syne',sans-serif; font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transition: all .18s;
}
.nav-btn.active .nav-num {
  background: var(--navy); color: white; border-color: var(--navy);
}
.nav-btn.done .nav-num {
  background: var(--green-light); color: var(--teal); border-color: rgba(16,185,129,.25);
}
.nav-btn.done { color: var(--text-muted); }

.sidebar-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border-soft); flex-shrink: 0;
}
.prog-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.prog-row span { font-size: 11px; color: var(--text-faint); font-family: 'Syne',sans-serif; font-weight: 600; }
.prog-track { height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--blue-mid)); border-radius: 3px; transition: width .5s; }

#menu-toggle {
  display: none; position: fixed; top: 12px; left: 12px; z-index: 300;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-main); font-size: 1rem; cursor: pointer;
  box-shadow: var(--s-sm);
}
#overlay {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,.2); backdrop-filter: blur(2px);
}

/* ══════════════════════════════════════════
   CONTENT AREA
══════════════════════════════════════════ */
#content-wrap { margin-left: 268px; min-height: 100vh; display: flex; flex-direction: column; }

/* ══════════════════════════════════════════
   PAGES
══════════════════════════════════════════ */
.page { display: none; flex-direction: column; min-height: 100vh; animation: pgIn .35s ease both; }
.page.active { display: flex; }
@keyframes pgIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ── HERO BAND ── */
.page-hero {
  padding: 52px 48px 42px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 90% -20%, rgba(56,189,248,.12) 0%, transparent 65%),
    radial-gradient(ellipse 400px 280px at -5% 110%, rgba(6,182,212,.09) 0%, transparent 65%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner { position: relative; z-index: 1; max-width: 840px; }
.hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px; font-family: 'Syne',sans-serif;
  display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow span { color: rgba(255,255,255,.3); }
.hero-badge {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne',sans-serif; font-weight: 800; font-size: 1.1rem; color: white;
  margin-bottom: 16px; flex-shrink: 0;
}
.page-title {
  font-size: clamp(1.8rem,3.5vw,2.7rem); font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #bfdbfe 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 12px;
}
.page-subtitle { font-size: 1rem; color: rgba(255,255,255,.65); font-weight: 300; max-width: 640px; line-height: 1.7; }
.page-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.chip {
  padding: 5px 14px; border-radius: 20px; font-size: 11.5px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7); font-family: 'Syne',sans-serif;
}

/* ── PAGE BODY ── */
.page-body { flex: 1; padding: 44px 48px 60px; }
.page-body-inner { max-width: 960px; }

/* ── PAGE FOOTER NAV ── */
.page-foot {
  padding: 22px 48px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); flex-shrink: 0;
  box-shadow: 0 -1px 3px rgba(0,0,0,.04);
}
.foot-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-body); cursor: pointer;
  font-family: 'DM Sans',sans-serif; font-size: .88rem; font-weight: 500;
  transition: all .18s;
}
.foot-btn:hover { background: var(--surface); border-color: var(--blue-light); color: var(--navy); }
.foot-btn.primary {
  background: var(--navy); border-color: var(--navy); color: white; font-weight: 600;
  box-shadow: 0 3px 12px rgba(0,32,93,.25);
}
.foot-btn.primary:hover { background: var(--navy-mid); box-shadow: 0 5px 16px rgba(0,32,93,.3); }
.foot-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
.foot-pos { font-size: .8rem; color: var(--text-faint); font-family: 'Syne',sans-serif; font-weight: 700; }

/* ══════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════ */
.sec-title {
  font-size: 1.15rem; font-weight: 800; color: var(--text-main);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px; margin-top: 38px; font-family: 'Syne',sans-serif;
}
.sec-title:first-child { margin-top: 0; }
.sec-title .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dot-color, var(--blue)); flex-shrink: 0;
}
.sec-sub { font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; margin-left: 19px; }
.divider { height: 1px; background: var(--border); margin: 34px 0; }

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.cards-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); }
.cards-3 { grid-template-columns: repeat(3,1fr); }
.cards-2 { grid-template-columns: repeat(2,1fr); }

.card {
  background: var(--surface); border-radius: var(--r);
  border: 1px solid var(--border); padding: 22px 20px;
  position: relative; overflow: hidden;
  box-shadow: var(--s-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-top, linear-gradient(90deg, var(--navy), var(--blue-mid)));
}
.card:hover { transform: translateY(-3px); box-shadow: var(--s-lg); border-color: rgba(37,99,235,.2); }
.card h3 { font-size: .98rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.card p  { font-size: .855rem; color: var(--text-body); line-height: 1.7; }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--icon-bg, var(--surface-2)); display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; margin-bottom: 14px;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════
   HIGHLIGHT / CALLOUT BOXES
══════════════════════════════════════════ */
.callout {
  border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 14px;
  border-left: 3.5px solid var(--call-color, var(--blue));
  background: var(--call-bg, #eff6ff);
}
.callout-title {
  font-family: 'Syne',sans-serif; font-weight: 700; font-size: .84rem;
  color: var(--call-color, var(--blue)); margin-bottom: 5px;
  display: flex; align-items: center; gap: 6px;
}
.callout p { font-size: .855rem; color: var(--text-body); line-height: 1.7; margin: 0; }
.callout ul { padding-left: 16px; margin-top: 6px; }
.callout li { font-size: .845rem; color: var(--text-body); margin-bottom: 4px; line-height: 1.6; }

.info-box  { --call-color: var(--blue); --call-bg: #eff6ff; }
.warn-box  { --call-color: var(--amber); --call-bg: #fffbeb; }
.success-box { --call-color: var(--green); --call-bg: #f0fdf4; }
.danger-box  { --call-color: var(--rose); --call-bg: #fff1f2; }
.purple-box  { --call-color: var(--purple); --call-bg: #f5f3ff; }
.navy-box    { --call-color: var(--navy); --call-bg: #eff1f9; }

/* ══════════════════════════════════════════
   INFO PANEL
══════════════════════════════════════════ */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.info-panel {
  background: var(--surface); border-radius: var(--r);
  border: 1px solid var(--border); padding: 22px; box-shadow: var(--s-xs);
}
.info-panel h3 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.info-panel h4 { font-size: .88rem; font-weight: 700; color: var(--text-main); margin: 12px 0 6px; }
.info-panel p  { font-size: .86rem; color: var(--text-body); line-height: 1.72; margin-bottom: 8px; }
.info-panel ul { padding-left: 16px; }
.info-panel li { font-size: .855rem; color: var(--text-body); margin-bottom: 5px; line-height: 1.6; }

/* ══════════════════════════════════════════
   TABS
══════════════════════════════════════════ */
.tab-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tab-btn {
  padding: 8px 18px; border-radius: 8px; font-size: .82rem; font-weight: 700;
  font-family: 'Syne',sans-serif; cursor: pointer; transition: all .18s;
  border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text-muted);
}
.tab-btn:hover { border-color: var(--blue-light); color: var(--blue); background: var(--surface); }
.tab-btn.active {
  background: var(--navy); border-color: var(--navy); color: white;
  box-shadow: 0 2px 8px rgba(0,32,93,.2);
}
.tab-panel { display: none; animation: pgIn .28s ease; }
.tab-panel.active { display: block; }

/* ══════════════════════════════════════════
   ACCORDION
══════════════════════════════════════════ */
.acc-wrap { display: flex; flex-direction: column; gap: 8px; }
.acc-item {
  background: var(--surface); border-radius: var(--r-sm);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--s-xs);
}
.acc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; cursor: pointer; user-select: none; transition: background .15s;
}
.acc-head:hover { background: var(--surface-2); }
.acc-head.open  { background: #eff1f9; border-bottom: 1px solid var(--border); }
.acc-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne',sans-serif; font-weight: 700; font-size: .9rem; color: var(--text-main);
}
.acc-chevron { color: var(--text-faint); font-size: .75rem; transition: transform .28s; }
.acc-head.open .acc-chevron { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .38s ease; }
.acc-body.open { max-height: 900px; }
.acc-content { padding: 0 18px 16px; }
.acc-content p { font-size: .86rem; color: var(--text-body); line-height: 1.72; margin-top: 12px; }
.acc-content ul { padding-left: 16px; margin-top: 8px; }
.acc-content li { font-size: .85rem; color: var(--text-body); margin-bottom: 5px; line-height: 1.6; }

/* ══════════════════════════════════════════
   TABLE
══════════════════════════════════════════ */
.styled-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--s-sm); font-size: .85rem;
}
.styled-table th {
  background: var(--navy); color: white; padding: 11px 14px;
  font-family: 'Syne',sans-serif; font-size: .8rem; font-weight: 700; text-align: left;
}
.styled-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top;
  color: var(--text-body); line-height: 1.6;
}
.styled-table tr:last-child td { border-bottom: none; }
.styled-table tr:hover td { background: var(--surface-2); }
.styled-table td:first-child { font-weight: 600; color: var(--text-main); }
.styled-table td code { background: #eff6ff; color: var(--blue); border-radius: 4px; padding: 2px 7px; font-size: .78rem; }
.styled-table th.center, .styled-table td.center { text-align: center; }

/* ══════════════════════════════════════════
   BADGES
══════════════════════════════════════════ */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; font-family: 'Syne',sans-serif;
}
.badge-navy   { background: #eff1f9; color: var(--navy); border: 1px solid rgba(0,32,93,.18); }
.badge-blue   { background: #eff6ff; color: var(--blue); border: 1px solid rgba(37,99,235,.2); }
.badge-green  { background: #f0fdf4; color: var(--teal); border: 1px solid rgba(13,148,136,.2); }
.badge-amber  { background: #fffbeb; color: #92400e; border: 1px solid rgba(245,158,11,.25); }
.badge-rose   { background: #fff1f2; color: var(--rose); border: 1px solid rgba(244,63,94,.2); }
.badge-purple { background: #f5f3ff; color: var(--purple); border: 1px solid rgba(139,92,246,.2); }

/* ══════════════════════════════════════════
   QUIZ
══════════════════════════════════════════ */
.quiz-wrap {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 36px; box-shadow: var(--s-md);
}
.quiz-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.quiz-bar-bg { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; border: 1px solid var(--border); }
.quiz-bar-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--blue-mid)); border-radius: 3px; transition: width .4s ease; }
.quiz-counter { font-family: 'Syne',sans-serif; font-weight: 800; font-size: .9rem; color: var(--navy); white-space: nowrap; }
.quiz-q-lbl { font-size: .78rem; color: var(--text-muted); margin-bottom: 5px; }
.quiz-q-text { font-family: 'Syne',sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text-main); margin-bottom: 20px; line-height: 1.45; }
.quiz-opts { display: flex; flex-direction: column; gap: 9px; }
.quiz-opt {
  padding: 12px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--border);
  background: var(--surface); cursor: pointer; text-align: left;
  font-family: 'DM Sans',sans-serif; font-size: .9rem; color: var(--text-body);
  transition: all .18s; display: flex; align-items: flex-start; gap: 10px;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--blue-light); background: #eff6ff; color: var(--navy); }
.quiz-opt.correct { border-color: var(--green); background: #f0fdf4; color: #065f46; font-weight: 600; }
.quiz-opt.wrong   { border-color: var(--rose); background: #fff1f2; color: #9f1239; }
.quiz-opt:disabled { cursor: default; }
.quiz-fb {
  margin-top: 12px; padding: 11px 14px; border-radius: var(--r-sm);
  font-size: .855rem; display: none; line-height: 1.6;
}
.quiz-fb.correct { display: block; background: #f0fdf4; color: #065f46; border-left: 3px solid var(--green); }
.quiz-fb.wrong   { display: block; background: #fff1f2; color: #9f1239; border-left: 3px solid var(--rose); }
.quiz-next {
  margin-top: 16px; padding: 11px 26px; border-radius: 10px;
  background: var(--navy); color: white; border: none; cursor: pointer;
  font-family: 'Syne',sans-serif; font-weight: 700; font-size: .9rem;
  display: none; box-shadow: 0 3px 10px rgba(0,32,93,.25);
  transition: background .18s;
}
.quiz-next:hover { background: var(--navy-mid); }
.quiz-next.show { display: inline-block; }
.quiz-result { display: none; text-align: center; }
.quiz-result.show { display: block; animation: pgIn .4s ease; }
.score-big { font-family: 'Syne',sans-serif; font-size: 4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.score-sub { font-size: .95rem; color: var(--text-muted); margin: 6px 0 18px; }
.score-bar-bg { height: 10px; background: var(--surface-2); border-radius: 5px; max-width: 380px; margin: 0 auto 8px; overflow: hidden; border: 1px solid var(--border); }
.score-bar-fill { height: 100%; border-radius: 5px; transition: width 1.2s ease; }
.score-msg { font-family: 'Syne',sans-serif; font-weight: 700; font-size: .95rem; margin-bottom: 22px; }
.quiz-restart {
  padding: 12px 30px; border-radius: 10px; background: var(--navy);
  color: white; border: none; cursor: pointer; font-family: 'Syne',sans-serif;
  font-weight: 700; font-size: .95rem; box-shadow: 0 3px 12px rgba(0,32,93,.25);
  transition: background .18s;
}
.quiz-restart:hover { background: var(--navy-mid); }

/* ══════════════════════════════════════════
   EXERCISE / CASE STUDY
══════════════════════════════════════════ */
.exercise {
  border: 1.5px solid var(--border); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--s-xs); margin-bottom: 16px;
}
.exercise-header {
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none; background: var(--surface);
  transition: background .15s;
}
.exercise-header:hover { background: var(--surface-2); }
.exercise-header.open { background: #eff1f9; }
.ex-label {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne',sans-serif; font-weight: 700; font-size: .9rem; color: var(--text-main);
}
.ex-type { font-size: 10.5px; padding: 2px 9px; border-radius: 20px; font-weight: 700; font-family: 'Syne',sans-serif; }
.ex-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.ex-body.open { max-height: 1200px; }
.ex-content { padding: 20px 18px; border-top: 1px solid var(--border); }
.ex-content p { font-size: .87rem; color: var(--text-body); line-height: 1.72; margin-bottom: 8px; }
.ex-content ul { padding-left: 18px; margin-bottom: 10px; }
.ex-content li { font-size: .86rem; color: var(--text-body); margin-bottom: 5px; line-height: 1.6; }
.ex-content h4 { font-size: .9rem; font-weight: 700; color: var(--text-main); margin: 14px 0 6px; }
.solution-toggle {
  padding: 8px 16px; border-radius: 8px; border: 1.5px solid var(--green);
  background: #f0fdf4; color: var(--teal); cursor: pointer;
  font-family: 'Syne',sans-serif; font-weight: 700; font-size: .8rem;
  margin-top: 14px; transition: all .18s;
}
.solution-toggle:hover { background: #d1fae5; }
.solution-panel { display: none; margin-top: 14px; }
.solution-panel.open { display: block; animation: pgIn .3s ease; }
.solution-panel h5 { font-size: .88rem; color: var(--teal); font-family: 'Syne',sans-serif; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.solution-panel p { font-size: .86rem; color: var(--text-body); line-height: 1.7; margin-bottom: 6px; }
.solution-panel ul { padding-left: 18px; }
.solution-panel li { font-size: .85rem; color: var(--text-body); margin-bottom: 4px; }

/* ══════════════════════════════════════════
   PROCESS FLOW
══════════════════════════════════════════ */
.flow-wrap {
  display: flex; align-items: flex-start; gap: 0; flex-wrap: nowrap;
  overflow-x: auto; padding: 24px; background: var(--surface);
  border-radius: var(--r); border: 1px solid var(--border); box-shadow: var(--s-sm);
}
.flow-step { flex: 1; min-width: 120px; text-align: center; position: relative; }
.flow-circle {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  box-shadow: 0 3px 12px rgba(0,0,0,.1); cursor: pointer; transition: transform .2s; position: relative;
}
.flow-circle:hover { transform: scale(1.08); }
.flow-circle .step-n {
  position: absolute; top: -3px; right: -3px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--navy);
  color: white; font-size: 10px; font-family: 'Syne',sans-serif; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid white;
}
.flow-name { font-family: 'Syne',sans-serif; font-weight: 700; font-size: .82rem; color: var(--text-main); margin-bottom: 3px; }
.flow-desc { font-size: .74rem; color: var(--text-muted); max-width: 100px; margin: 0 auto; }
.flow-arrow { font-size: 1.2rem; color: var(--blue-light); padding: 0 6px; flex-shrink: 0; margin-bottom: 20px; align-self: center; }

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */
.faq-wrap { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface); border-radius: var(--r-sm);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--s-xs);
}
.faq-q {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 13px 18px; cursor: pointer; gap: 12px; user-select: none; transition: background .15s;
}
.faq-q:hover { background: var(--surface-2); }
.faq-q.open { background: #eff1f9; }
.faq-q-text { font-size: .88rem; font-weight: 600; color: var(--text-main); line-height: 1.45; flex: 1; }
.faq-chevron { color: var(--text-faint); font-size: .75rem; transition: transform .25s; flex-shrink: 0; margin-top: 2px; }
.faq-q.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a.open { max-height: 600px; }
.faq-a-content { padding: 0 18px 14px; font-size: .86rem; color: var(--text-body); line-height: 1.72; border-top: 1px solid var(--border); padding-top: 12px; }

/* ══════════════════════════════════════════
   STAT / METRIC CARDS
══════════════════════════════════════════ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; }
.stat-card {
  background: var(--surface); border-radius: var(--r); border: 1px solid var(--border);
  padding: 18px 16px; text-align: center; box-shadow: var(--s-xs);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--s-md); }
.stat-num { font-family: 'Syne',sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-lbl { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

/* ══════════════════════════════════════════
   CODE BLOCK
══════════════════════════════════════════ */
.code-block {
  background: #0f172a; border-radius: var(--r-sm); padding: 18px 20px;
  font-family: 'JetBrains Mono',monospace; font-size: .81rem; line-height: 1.75;
  color: #e2e8f0; overflow-x: auto; border: 1px solid #1e293b;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); box-shadow: var(--s-lg); }
  #overlay.open { display: block; }
  #content-wrap { margin-left: 0; }
  #menu-toggle { display: flex; align-items: center; justify-content: center; }
  .page-hero { padding: 56px 24px 36px; }
  .page-body { padding: 32px 24px 48px; }
  .page-foot { padding: 16px 24px; }
  .info-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 56px 18px 28px; }
  .page-body { padding: 24px 18px 36px; }
  .page-foot { padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
  .foot-pos { width: 100%; text-align: center; order: -1; }
  .quiz-wrap { padding: 24px 18px; }
  .flow-wrap { padding: 16px; }
}
