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

:root {
  --bg:           #FFFFFF;
  --primary:      #1464F0;
  --primary-dark: #0F4DC4;
  --primary-light:#E8F1FE;
  --dark-header:  #1c232d;
  --heading:      #1c1d1f;
  --body:         #4a4d52;
  --muted:        #6a6f73;
  --border:       #d1d7dc;
  --border-light: #e8ebed;
  --sidebar-bg:   #f7f8f9;
  --white:        #FFFFFF;
  --green:        #1A8A4A;
  --green-light:  #F0F9F4;
  --accent:       #f97316;
  --accent-light: #fff7ed;
  --teal:         #0D9488;
  --teal-light:   #F0FDFA;
  --radius:       8px;
  --font:         'Inter', -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  font-family: var(--font);
  font-size: 18px; line-height: 1.6;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden; height: 100vh;
}

/* ─── TOP NAV ────────────────────────────── */
.course-nav {
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  z-index: 50;
}
.course-nav-logo {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px;
  color: var(--heading); text-decoration: none;
}
.course-nav-logo-img {
  width: 24px; height: 24px;
  background: var(--primary);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 15px;
}
.course-nav-links { display: flex; gap: 16px; font-size: 17px; }
.course-nav-links a { color: var(--muted); text-decoration: none; }
.course-nav-links a:hover { color: var(--heading); }

/* ─── SLIDE DECK ─────────────────────────── */
.slide-deck {
  height: calc(100vh - 52px - 56px);
  overflow: hidden; position: relative;
  background: #f0f2f5;
}
.slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  padding: 48px 56px;
  opacity: 0; transform: translateX(40px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none; overflow-y: auto;
  display: flex; flex-direction: column;
  background: var(--white);
}
.slide.active { opacity: 1; transform: translateX(0); pointer-events: all; }

/* Cover */
.slide-cover {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(160deg, #0a1628 0%, #152238 40%, #1c3a5c 100%);
  color: var(--white);
}
.slide-cover .cover-badge {
  display: inline-block;
  background: rgba(20,100,240,.25);
  border: 1px solid rgba(20,100,240,.4);
  color: #8bb8ff;
  padding: 6px 18px; border-radius: 100px;
  font-size: 17px; font-weight: 600; letter-spacing: .5px;
  margin-bottom: 24px;
}
.slide-cover .cover-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800; color: #f0f4f8;
  line-height: 1.2; margin-bottom: 14px; max-width: 700px;
}
.slide-cover .cover-subtitle {
  font-size: 17px; color: rgba(255,255,255,.65);
  max-width: 550px; line-height: 1.6; margin-bottom: 32px;
}
.slide-cover .cover-meta {
  display: flex; gap: 24px; font-size: 17px; color: rgba(255,255,255,.5);
}

/* Section divider */
.slide-section {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: var(--white);
}
.slide-section .section-num {
  font-family: var(--font-display);
  font-size: 72px; font-weight: 800;
  color: var(--primary); opacity: .15; line-height: 1;
  margin-bottom: -20px;
}
.slide-section .section-label {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--heading); margin-bottom: 10px;
}
.slide-section .section-desc {
  font-size: 18px; color: var(--muted); max-width: 500px;
}

/* Content slide */
.slide-content {
  padding: 44px 64px; justify-content: flex-start;
}
.slide-content .slide-heading {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700; color: var(--heading);
  margin-bottom: 8px; line-height: 1.3;
}
.slide-content .slide-tag {
  display: inline-block;
  font-size: 15px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .8px; color: var(--primary); margin-bottom: 20px;
}

/* Layout */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 12px; }

.card {
  background: var(--sidebar-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 20px;
}
.card .card-emoji { font-size: 28px; margin-bottom: 8px; }
.card h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.card p { font-size: 17px; color: var(--body); line-height: 1.6; }

.card-blue { border-left: 4px solid var(--primary); }
.card-green { border-left: 4px solid var(--green); }
.card-teal { border-left: 4px solid var(--teal); }

/* Callout */
.callout {
  background: var(--primary-light);
  border-radius: var(--radius); padding: 16px 20px; margin-top: 16px;
  font-size: 18px; color: var(--heading);
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.6;
}
.callout .callout-icon { font-size: 18px; flex-shrink: 0; }

/* Formula box */
.formula-box {
  background: var(--primary-light);
  border: 2px dashed var(--primary);
  border-radius: var(--radius); padding: 18px 24px; margin-top: 14px;
  text-align: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--heading);
}

/* Checklist */
.check-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px; margin-top: 14px;
}
.check-list li {
  font-size: 18px; color: var(--body);
  padding-left: 22px; position: relative; line-height: 1.5;
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}

/* Tags */
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  background: var(--sidebar-bg);
  border: 1px solid var(--border-light);
  border-radius: 100px; padding: 6px 14px;
  font-size: 18px; font-weight: 600; color: var(--heading);
}
.tag-blue { background: var(--primary-light); border-color: rgba(20,100,240,.2); color: var(--primary); }
.tag-green { background: var(--green-light); border-color: rgba(26,138,74,.2); color: var(--green); }

/* Table */
.table-wrap {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.table-row {
  display: grid; grid-template-columns: 1fr 2fr;
  padding: 11px 16px; font-size: 17px; color: var(--body);
  border-bottom: 1px solid var(--border-light); align-items: center;
}
.table-row:last-child { border-bottom: none; }
.table-row.header {
  background: var(--sidebar-bg); font-weight: 600;
  color: var(--heading); font-size: 18px; text-transform: uppercase; letter-spacing: .5px;
}
.table-row .col:first-child { font-weight: 600; color: var(--heading); }

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.tool-card {
  background: var(--sidebar-bg); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 18px; text-align: center;
}
.tool-card .tool-icon { font-size: 32px; margin-bottom: 6px; }
.tool-card h5 { font-size: 16px; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.tool-card p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ─── INTERACTIVE CHECKLIST ──────────────── */
.icl-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; margin-bottom: 6px;
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
  font-size: 16px; color: var(--body);
  line-height: 1.6;
  user-select: none;
}
.icl-item:hover { border-color: var(--primary); background: #fafcff; }
.icl-check {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
  margin-top: 1px;
}
.icl-check svg { width: 14px; height: 14px; opacity: 0; transition: opacity .1s; }
.icl-item.checked .icl-check {
  background: var(--green); border-color: var(--green);
}
.icl-item.checked .icl-check svg { opacity: 1; }
.icl-item.checked {
  border-color: var(--green);
  background: var(--green-light);
}
.icl-item.checked .icl-text { color: var(--green); }
.icl-text { transition: color .15s; flex: 1; }
.icl-counter {
  text-align: center;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--muted);
  margin-top: 8px;
}
.icl-counter strong { color: var(--green); font-size: 18px; }
.icl-confetti {
  text-align: center;
  padding: 10px;
  font-size: 16px; font-weight: 700;
  color: var(--green);
  display: none;
  animation: popIn .4s ease;
}
@keyframes popIn { 0% { transform: scale(.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* QUIZ STYLES */
.quiz-intro {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.quiz-intro-icon { font-size: 64px; margin-bottom: 16px; }
.quiz-intro h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--heading); margin-bottom: 10px;
}
.quiz-intro p {
  font-size: 16px; color: var(--muted);
  max-width: 500px; line-height: 1.7; margin-bottom: 20px;
}

.quiz-question {
  max-width: 700px; margin: 0 auto;
  padding-top: 20px;
}
.quiz-q-num {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--primary);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}
.quiz-q-text {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--heading);
  line-height: 1.4; margin-bottom: 24px;
}
.quiz-options {
  display: flex; flex-direction: column; gap: 10px;
}
.quiz-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: all .15s ease;
  font-size: 16px; color: var(--body);
  line-height: 1.4;
}
.quiz-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.quiz-option .opt-letter {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sidebar-bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  color: var(--heading);
  flex-shrink: 0;
  transition: all .15s ease;
}
.quiz-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.quiz-option.selected .opt-letter {
  background: var(--primary); color: var(--white);
}
.quiz-option.correct {
  border-color: var(--green) !important;
  background: var(--green-light) !important;
}
.quiz-option.correct .opt-letter {
  background: var(--green); color: var(--white);
}
.quiz-option.wrong {
  border-color: #e03131 !important;
  background: #fff5f5 !important;
}
.quiz-option.wrong .opt-letter {
  background: #e03131; color: var(--white);
}
.quiz-option.locked { pointer-events: none; }

.quiz-feedback {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 15px; font-weight: 600;
  display: none;
  line-height: 1.5;
}
.quiz-feedback.show { display: block; }
.quiz-feedback.correct-fb {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(26,138,74,.2);
}
.quiz-feedback.wrong-fb {
  background: #fff5f5;
  color: #c92a2a;
  border: 1px solid rgba(224,49,49,.2);
}

.quiz-result {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  height: 100%;
}
.quiz-result .result-emoji {
  font-size: 72px; margin-bottom: 12px;
}
.quiz-result .result-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800;
  color: var(--heading); margin-bottom: 8px;
}
.quiz-result .result-score {
  font-size: 48px; font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.quiz-result .result-msg {
  font-size: 16px; color: var(--muted);
  max-width: 480px; line-height: 1.7; margin-bottom: 20px;
}
.quiz-result .result-detail {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 24px;
}
.quiz-result .result-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.result-dot.correct-dot { background: var(--green-light); color: var(--green); border: 2px solid var(--green); }
.result-dot.wrong-dot { background: #fff5f5; color: #e03131; border: 2px solid #e03131; }

/* Bottom bar */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 56px;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; z-index: 100;
}
.bottom-bar-info {
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; color: var(--muted);
}
#slide-counter { font-weight: 600; color: var(--heading); }
.progress-track {
  width: 180px; height: 4px;
  background: var(--border-light); border-radius: 2px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--primary);
  border-radius: 2px; transition: width .3s ease;
}
.bottom-bar-btns { display: flex; gap: 8px; }
.bar-btn {
  padding: 8px 20px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--white);
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--heading); cursor: pointer; transition: all .2s;
}
.bar-btn:hover { background: var(--sidebar-bg); }
.bar-btn.primary {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.bar-btn.primary:hover { background: var(--primary-dark); }
.bar-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }

/* CTA slide */
.slide-cta {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(160deg, #1c3a5c 0%, #0a1628 100%);
  color: var(--white);
}
.slide-cta h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700; color: #f0f4f8;
  margin-bottom: 12px; max-width: 600px; line-height: 1.3;
}
.slide-cta p {
  font-size: 18px; color: rgba(255,255,255,.7);
  max-width: 500px; line-height: 1.6; margin-bottom: 24px;
}
.slide-cta .cta-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  padding: 14px 36px; border-radius: 8px;
  text-decoration: none; transition: all .2s;
}
.slide-cta .cta-btn:hover { background: var(--primary-dark); transform: scale(1.03); }
.slide-cta .cta-sub {
  font-size: 17px; color: rgba(255,255,255,.4); margin-top: 12px;
}

@media (max-width: 900px) {
  .slide-content { padding: 36px 28px; }
  .grid-2, .grid-3, .tool-grid { grid-template-columns: 1fr; }
  .slide-cover .cover-title { font-size: 28px; }
  .slide-content .slide-heading { font-size: 24px; }
}
@media (max-width: 600px) {
  .slide-content { padding: 28px 18px; }
  .course-nav-links { display: none; }
  .progress-track { width: 100px; }
}

/* ─── PRINT / PDF (untuk download slide) ─────────────── */
@page {
  size: A4 landscape;
  margin: 12mm;
}
@media print {
  body { overflow: visible !important; height: auto !important; background: #fff !important; font-size: 12pt; }
  .course-nav, .bottom-bar { display: none !important; }
  .slide-deck { height: auto !important; overflow: visible !important; background: #fff !important; position: static !important; }
  .slide {
    position: relative !important;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    page-break-after: always;
    padding: 16px 8px !important;
  }
  .slide:last-child { page-break-after: auto; }
  .slide-cover, .slide-cta { color: #fff !important; }
  .slide-cover .cover-subtitle, .slide-cta p, .slide-cover .cover-meta { color: rgba(255,255,255,.8) !important; }

  /* quiz: tandai jawaban benar + sembunyikan feedback interaktif */
  .quiz-feedback { display: none !important; }
  .quiz-option { cursor: default; }
  .quiz-option[data-correct] .opt-letter { background: var(--green) !important; color: #fff !important; }
  .quiz-option[data-correct]::after { content: "  ✓ Jawaban benar"; color: var(--green); font-weight: 700; font-size: 11px; }

  /* checklist: render statis */
  .icl-item { cursor: default; }
  .icl-counter, .icl-confetti { display: none !important; }
  .quiz-intro, .quiz-result { height: auto !important; }
}
