/* =================================================================
   MEDIA PEMBELAJARAN INTERAKTIF PAI & BUDI PEKERTI - KELAS XI NKPI
   SMK NEGERI 1 MUNDU CIREBON
   CSS Stylesheet - Modern Maritime Islamic Scholar Theme
   ================================================================= */

:root {
  --primary-navy: #071e3d;
  --navy-dark: #051329;
  --ocean-blue: #0f4c81;
  --maritime-blue: #1e5f8a;
  --accent-cyan: #0ea5e9;
  --accent-teal: #0d9488;
  --gold-warm: #d97706;
  --gold-light: #f59e0b;
  --emerald-green: #10b981;
  --crimson-red: #ef4444;
  
  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-alt: #f8fafc;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-light: #e2e8f0;
  --border-active: #38bdf8;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(7, 30, 61, 0.12);
  --shadow-xl: 0 20px 35px rgba(7, 30, 61, 0.18);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif;
  --font-title: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s ease;
}

/* =================================================================
   HEADER & NAVBAR
   ================================================================= */
.app-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--primary-navy) 100%);
  color: var(--text-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(5, 19, 41, 0.25);
  border-bottom: 2px solid rgba(14, 165, 233, 0.3);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.school-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-school {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.78rem;
  color: #38bdf8;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.nav-item.active {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--ocean-blue) 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.4);
}

.nav-icon {
  font-size: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-sound {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-sound:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.student-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.student-badge:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
}

.badge-avatar {
  font-size: 1.1rem;
}

.badge-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
}

.badge-name {
  font-size: 0.82rem;
  color: #ffffff;
  font-weight: 700;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
}

/* Global Progress Bar */
.global-progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(15, 23, 42, 0.2);
}

.global-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981, #f59e0b);
  transition: width 0.4s ease;
}

/* =================================================================
   MAIN CONTAINER & SECTIONS
   ================================================================= */
.main-content {
  flex: 1;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3.5rem;
}

.page-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Header Common */
.page-header {
  margin-bottom: 2rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.breadcrumb span:first-child {
  color: var(--accent-cyan);
  cursor: pointer;
  font-weight: 600;
}

.page-title {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
}

.page-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 820px;
}

/* =================================================================
   BUTTONS & COMMON UI
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--accent-cyan) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
  background: var(--navy-dark);
  color: white;
  box-shadow: 0 4px 12px rgba(5, 19, 41, 0.2);
}

.btn-secondary:hover {
  background: var(--primary-navy);
  transform: translateY(-2px);
}

.btn-outline {
  background: white;
  color: var(--ocean-blue);
  border: 1.5px solid var(--ocean-blue);
}

.btn-outline:hover {
  background: #f0f9ff;
}

.btn-teal {
  background: var(--accent-teal);
  color: white;
}

.btn-indigo {
  background: #4f46e5;
  color: white;
}

.btn-amber {
  background: var(--gold-warm);
  color: white;
}

.btn-success {
  background: var(--emerald-green);
  color: white;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-mini {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-mini:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* =================================================================
   HALAMAN 1: BERANDA
   ================================================================= */
.hero-card {
  position: relative;
  background: linear-gradient(135deg, #061930 0%, #0e3b66 60%, #1e5f8a 100%);
  border-radius: var(--radius-lg);
  color: white;
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-bottom: 2rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-title);
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.02rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-description strong {
  color: #38bdf8;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-teacher-box {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.teacher-image-wrapper {
  position: relative;
  width: 170px;
  height: 220px;
  margin-bottom: 1.25rem;
}

.teacher-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border: 3px solid rgba(56, 189, 248, 0.6);
}

.teacher-badge-chip {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-warm);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.teacher-speech-bubble {
  position: relative;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.speech-quote {
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(56, 189, 248, 0.4);
  font-family: serif;
  margin-bottom: -10px;
}

.speech-author {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  color: #38bdf8;
}

.speech-author strong {
  color: #ffffff;
}

/* Quick Status Card */
.quick-status-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.status-col {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.status-icon {
  font-size: 1.8rem;
  background: #f0f9ff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid #bae6fd;
}

.status-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.status-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-navy);
}

/* 4 Pilar Grid */
.section-heading {
  margin-bottom: 1.75rem;
}

.section-heading.text-center {
  text-align: center;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.section-subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-active);
}

.card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.bg-blue { background: #e0f2fe; color: #0369a1; }
.bg-teal { background: #ccfbf1; color: #0f766e; }
.bg-indigo { background: #e0e7ff; color: #4338ca; }
.bg-amber { background: #fef3c7; color: #b45309; }

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ocean-blue);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Context Banner */
.context-banner {
  background: linear-gradient(135deg, #042444 0%, #0c4a6e 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--accent-cyan);
}

.pill-badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.25);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.context-content h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.context-content p {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.context-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* =================================================================
   HALAMAN 2: TUJUAN PEMBELAJARAN
   ================================================================= */
.objectives-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.objective-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.75rem;
  transition: all 0.2s ease;
}

.objective-item:hover {
  border-color: #bae6fd;
  box-shadow: var(--shadow-md);
}

.objective-item.checked {
  border-color: #10b981;
  background: #f0fdf4;
}

.objective-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.obj-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ocean-blue);
  color: white;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.objective-item.checked .obj-number {
  background: var(--emerald-green);
}

.obj-title-wrap {
  flex: 1;
}

.obj-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.obj-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.btn-check-obj {
  font-size: 1.5rem;
  padding: 0.4rem;
  transition: transform 0.2s ease;
}

.btn-check-obj:hover {
  transform: scale(1.15);
}

.obj-body {
  padding-left: 4rem;
}

.obj-text {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.obj-indicators {
  background: #f8fafc;
  border-left: 3px solid var(--ocean-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1rem;
}

.ind-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
}

.obj-indicators ul {
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.obj-indicators li {
  margin-bottom: 0.25rem;
}

.obj-action {
  display: flex;
  justify-content: flex-end;
}

/* Learning Path */
.learning-path-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.learning-path-box h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.step-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.step-card:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  transform: translateY(-3px);
}

.step-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.step-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.step-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =================================================================
   HALAMAN 3: MATERI PEMBELAJARAN
   ================================================================= */
.sub-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.sub-tab-btn {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: white;
  border: 1px solid var(--border-light);
}

.sub-tab-btn:hover {
  color: var(--primary-navy);
  border-color: #94a3b8;
}

.sub-tab-btn.active {
  background: var(--ocean-blue);
  color: white;
  border-color: var(--ocean-blue);
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.25);
}

.materi-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.materi-tab-content.active {
  display: block;
}

/* Quran Audio Player */
.quran-audio-player {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--ocean-blue) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-play-audio {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.btn-play-audio:hover {
  transform: scale(1.08);
}

.audio-info {
  display: flex;
  flex-direction: column;
}

.audio-surah {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.audio-qari {
  font-size: 0.78rem;
  color: #bae6fd;
}

.player-controls {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
}

.audio-seeker {
  flex: 1;
  accent-color: #38bdf8;
  height: 6px;
  cursor: pointer;
}

.time-display {
  font-size: 0.75rem;
  font-family: monospace;
  color: #cbd5e1;
}

.player-options {
  display: flex;
  gap: 0.5rem;
}

/* Ayat Cards */
.ayat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  position: relative;
}

.ayat-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ocean-blue);
  background: #f0f9ff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
  border: 1px solid #bae6fd;
}

.ayat-topic {
  color: var(--text-muted);
  font-weight: 600;
}

.arabic-display {
  font-family: var(--font-arabic);
  font-size: 2.25rem;
  line-height: 2.3;
  color: #0f172a;
  text-align: right;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  word-spacing: 4px;
}

.tajwid-word {
  display: inline-block;
  padding: 0 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tajwid-word:hover {
  background: #fef08a;
  color: #854d0e;
  transform: translateY(-2px);
}

.ayat-number-symbol {
  font-family: var(--font-arabic);
  color: var(--gold-warm);
  font-size: 2rem;
  margin-right: 0.5rem;
}

.latin-transliteration {
  background: #f8fafc;
  border-left: 4px solid var(--accent-cyan);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: #334155;
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.translation-box {
  background: #fffbeb;
  border-left: 4px solid var(--gold-warm);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.96rem;
  color: #451a03;
  line-height: 1.6;
}

.tip-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.tip-icon {
  font-size: 1.8rem;
}

.tip-content strong {
  color: #1d4ed8;
  font-size: 0.9rem;
}

.tip-content p {
  color: #1e40af;
  font-size: 0.86rem;
}

/* Tajwid Filter & Cards */
.tajwid-explorer-header {
  margin-bottom: 1.25rem;
}

.tajwid-explorer-header h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--primary-navy);
}

.tajwid-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pill-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.pill-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--ocean-blue);
}

.pill-btn.active {
  background: var(--ocean-blue);
  color: white;
  border-color: var(--ocean-blue);
}

.tajwid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.tajwid-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.tajwid-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.tajwid-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.tajwid-badge.ghunnah { background: #fee2e2; color: #b91c1c; }
.tajwid-badge.syamsiyah { background: #ffedd5; color: #c2410c; }
.tajwid-badge.qamariyah { background: #e0f2fe; color: #0369a1; }
.tajwid-badge.idgham { background: #fef3c7; color: #b45309; }
.tajwid-badge.ikhfa { background: #f3e8ff; color: #7e22ce; }
.tajwid-badge.mad { background: #ecfdf5; color: #047857; }
.tajwid-badge.qalqalah { background: #fce7f3; color: #be185d; }

.arabic-sample {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  color: #0f172a;
  direction: rtl;
  margin-bottom: 0.75rem;
}

.tajwid-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Asbabun Nuzul & Makna */
.materi-article {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.materi-article h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--primary-navy);
  margin-bottom: 0.85rem;
}

.materi-article p {
  font-size: 0.96rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.quote-box {
  background: #f8fafc;
  border-left: 4px solid var(--ocean-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.75rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.duo-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pillar-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.pillar-card.dzikir {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.pillar-card.pikir {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #7dd3fc;
}

.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.pillar-card h4 {
  font-size: 1.15rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: #1e293b;
  line-height: 1.6;
}

/* Hadis Section */
.hadis-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.hadis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.hadis-badge {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ocean-blue);
}

.hadis-rawi {
  font-size: 0.78rem;
  background: #f1f5f9;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.hadis-arabic {
  font-family: var(--font-arabic);
  font-size: 1.85rem;
  line-height: 2.2;
  text-align: right;
  color: #0f172a;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0;
}

.hadis-trans {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.65;
  background: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.hadis-notes {
  background: #f0fdf4;
  border-left: 3px solid var(--emerald-green);
  padding: 0.75rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: #065f46;
}

/* Panduan Presentasi Murid */
.presentation-guide-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.badge-role {
  font-size: 0.78rem;
  font-weight: 700;
  background: #e0e7ff;
  color: #4338ca;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.guide-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.timeline-step {
  display: flex;
  gap: 1.25rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
}

.step-marker {
  width: 36px;
  height: 36px;
  background: var(--ocean-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.05rem;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.rubric-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.rubric-box h4 {
  font-size: 0.98rem;
  color: #92400e;
  margin-bottom: 0.85rem;
}

.rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.rubric-item {
  font-size: 0.84rem;
  color: #78350f;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
}

/* Integrasi Maritim NKPI */
.maritime-integration-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.maritime-header h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.maritime-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.maritime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.mar-item {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.mar-item:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  background: #f0f9ff;
}

.mar-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.mar-item h4 {
  font-size: 1.1rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.mar-item p {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
}

/* =================================================================
   HALAMAN 4: SIMULASI BERFIKIR KRITIS & IPTEK
   ================================================================= */
.simulation-container {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.sim-toolbar {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--primary-navy) 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.sim-toolbar.bg-emerald {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
}

.sim-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-title span {
  color: #38bdf8;
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.25);
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  background: #020617;
  overflow: hidden;
}

#skySimCanvas {
  display: block;
  width: 100%;
  height: 420px;
}

.canvas-hud {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  pointer-events: none;
}

.hud-item {
  background: rgba(5, 19, 41, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  color: #e2e8f0;
}

.hud-label {
  color: #38bdf8;
  font-weight: 600;
  margin-right: 0.3rem;
}

.hud-val {
  font-weight: 700;
  color: #ffffff;
}

/* Simulator Controls Panel */
.sim-controls-panel {
  padding: 1.75rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
}

.slider-row {
  margin-bottom: 1.25rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--primary-navy);
  margin-bottom: 0.6rem;
}

.time-badge {
  background: var(--ocean-blue);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.sim-range {
  width: 100%;
  height: 8px;
  accent-color: var(--ocean-blue);
  cursor: pointer;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.btn-preset {
  background: white;
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-preset:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: var(--ocean-blue);
}

.sim-explanation-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 4px solid var(--accent-cyan);
  box-shadow: var(--shadow-sm);
}

.exp-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.sim-explanation-card h4 {
  font-size: 1.15rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.sim-explanation-card p {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.exp-scientific {
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #475569;
}

/* Simulator 2: Case Studies */
.case-study-container {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.score-chip {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.case-study-body {
  padding: 1.75rem;
}

.case-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.case-scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.case-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-muted);
}

.case-tab.active {
  background: #047857;
  color: white;
}

.scenario-content {
  display: none;
}

.scenario-content.active {
  display: block;
}

.scenario-problem {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 4px solid #047857;
  margin-bottom: 1.5rem;
}

.scenario-problem h4 {
  font-size: 1.15rem;
  color: var(--primary-navy);
  margin-bottom: 0.65rem;
}

.scenario-problem p {
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.scenario-question {
  background: white;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed #cbd5e1;
  font-size: 0.92rem;
  color: #0f172a;
}

.scenario-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.opt-btn {
  text-align: left;
  padding: 1rem 1.25rem;
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.opt-btn:hover {
  background: #f0fdf4;
  border-color: #34d399;
}

.opt-btn span {
  font-weight: 700;
  color: #047857;
  margin-right: 0.4rem;
}

.scenario-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.6;
  display: none;
}

.scenario-feedback.correct {
  display: block;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #065f46;
}

.scenario-feedback.wrong {
  display: block;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #991b1b;
}

/* =================================================================
   HALAMAN 5: KUIS EVALUASI (HOTS)
   ================================================================= */
.quiz-container {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quiz-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quiz-badge {
  background: var(--ocean-blue);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.quiz-category {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quiz-timer-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fef2f2;
  color: #dc2626;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid #fecaca;
}

.quiz-nav-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.nav-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-dot:hover {
  border-color: var(--accent-cyan);
  color: var(--ocean-blue);
}

.nav-dot.active {
  background: var(--ocean-blue);
  color: white;
  border-color: var(--ocean-blue);
}

.nav-dot.answered {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.question-box {
  margin-bottom: 2.25rem;
}

.question-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.question-arabic-quote {
  font-family: var(--font-arabic);
  font-size: 1.65rem;
  direction: rtl;
  text-align: right;
  line-height: 2.1;
  background: #f8fafc;
  border-right: 4px solid var(--accent-cyan);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  margin-bottom: 1.25rem;
  color: #0f172a;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-item:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
}

.option-item.selected {
  background: #e0f2fe;
  border-color: var(--accent-cyan);
}

.opt-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.option-item.selected .opt-radio-circle {
  border-color: var(--ocean-blue);
  background: var(--ocean-blue);
}

.opt-radio-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0;
}

.option-item.selected .opt-radio-circle::after {
  opacity: 1;
}

.opt-letter {
  font-weight: 800;
  color: var(--ocean-blue);
  min-width: 20px;
}

.opt-text {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.55;
  flex: 1;
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.quiz-summary-state {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =================================================================
   HALAMAN 6: HASIL & SERTIFIKAT
   ================================================================= */
.result-summary-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.result-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.score-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--ocean-blue) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 6px solid #bae6fd;
  margin-bottom: 1.25rem;
}

.score-number {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.score-scale {
  font-size: 0.9rem;
  color: #7dd3fc;
}

.predicate-badge {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.predicate-badge.mumtaz { background: #dcfce7; color: #15803d; }
.predicate-badge.jayyid-jiddan { background: #e0f2fe; color: #0369a1; }
.predicate-badge.jayyid { background: #fef3c7; color: #b45309; }
.predicate-badge.perlu-bimbingan { background: #fee2e2; color: #b91c1c; }

.result-right h2 {
  font-family: var(--font-title);
  font-size: 1.7rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.result-right p {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.competency-bars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.comp-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.comp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.comp-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.comp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* =================================================================
   PIAGAM / SERTIFIKAT PRINTABLE
   ================================================================= */
.certificate-wrap {
  margin-bottom: 2.5rem;
}

.certificate-frame {
  background: #ffffff;
  border: 12px solid #0f4c81;
  padding: 14px;
  box-shadow: var(--shadow-xl);
  border-radius: 4px;
  position: relative;
}

.cert-inner-border {
  border: 2px dashed #d97706;
  padding: 2.5rem 3rem;
  position: relative;
  background: radial-gradient(circle at center, #ffffff 60%, #fafcfd 100%);
}

.cert-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.cert-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.cert-title-group h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 1px;
}

.cert-title-group h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.5px;
}

.cert-title-group h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 1px;
}

.cert-title-group p {
  font-size: 0.75rem;
  color: #64748b;
}

.cert-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, #0f4c81, #d97706, #0f4c81, transparent);
  margin-bottom: 1.75rem;
}

.cert-body {
  text-align: center;
}

.cert-main-title {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #071e3d;
  margin-bottom: 0.25rem;
}

.cert-sub-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #d97706;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.cert-statement {
  font-size: 0.95rem;
  color: #64748b;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.cert-student-name {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f4c81;
  text-decoration: underline;
  text-underline-offset: 6px;
  margin-bottom: 0.35rem;
}

.cert-student-meta {
  font-size: 0.92rem;
  color: #475569;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.cert-desc {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 1.5rem;
}

.cert-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  margin-bottom: 2.5rem;
}

.cert-score-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #166534;
}

.cert-score-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #15803d;
}

.cert-score-pred {
  font-size: 0.9rem;
  font-weight: 700;
  color: #166534;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 2rem;
  margin-top: 1rem;
}

.cert-sign-col {
  text-align: center;
  width: 280px;
}

.sign-title {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.sign-signature-space {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

.cert-guru-avatar {
  height: 70px;
  width: 70px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #0f4c81;
}

.digital-verified-stamp {
  font-size: 0.65rem;
  font-weight: 800;
  color: #0369a1;
  border: 1.5px solid #0284c7;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transform: rotate(-8deg);
  background: rgba(224, 242, 254, 0.7);
}

.sign-name {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
}

.sign-nip {
  font-size: 0.75rem;
  color: #64748b;
}

.cert-seal-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-seal-box {
  width: 100px;
  height: 100px;
  border: 2.5px double #0f4c81;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #0f4c81;
  transform: rotate(12deg);
}

.seal-icon {
  font-size: 1.6rem;
}

.seal-text {
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 2px;
}

/* Pembahasan Soal */
.review-box-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.review-item {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.review-item.is-correct {
  border-left: 5px solid #10b981;
}

.review-item.is-wrong {
  border-left: 5px solid #ef4444;
}

.rev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.rev-num {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-navy);
}

.rev-status {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.rev-status.correct { background: #dcfce7; color: #15803d; }
.rev-status.wrong { background: #fee2e2; color: #b91c1c; }

.rev-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.rev-ans-row {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.rev-ans-row strong {
  color: #475569;
}

.rev-explanation {
  background: white;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  font-size: 0.86rem;
  color: #334155;
  margin-top: 0.65rem;
  line-height: 1.6;
}

/* =================================================================
   HALAMAN 7: REFLEKSI DIRI & KOMITMEN MURID
   ================================================================= */
.reflection-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.reflect-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.reflect-card-header {
  margin-bottom: 1.5rem;
}

.part-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.35rem;
}

.reflect-card-header h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--primary-navy);
}

.reflect-card-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.attitude-table-wrap {
  overflow-x: auto;
}

.attitude-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.88rem;
}

.attitude-table th, .attitude-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
}

.attitude-table th {
  background: #f8fafc;
  color: var(--primary-navy);
  font-weight: 700;
}

.attitude-table td:nth-child(2) {
  text-align: left;
  font-weight: 500;
  color: #1e293b;
}

.attitude-table input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ocean-blue);
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  background: #f8fafc;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: white;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.reflect-btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.save-notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: #dcfce7;
  color: #15803d;
  font-size: 0.88rem;
  font-weight: 600;
}

.doa-card {
  background: linear-gradient(135deg, #071e3d 0%, #0f3460 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.doa-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.doa-content h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: #38bdf8;
  margin-bottom: 0.75rem;
}

.doa-arabic {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  line-height: 2;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.doa-trans {
  font-size: 0.88rem;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.5;
}

/* =================================================================
   MODALS
   ================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 19, 41, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalScale 0.25s ease;
}

@keyframes modalScale {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--primary-navy) 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  color: #94a3b8;
  font-size: 1.25rem;
  padding: 0.2rem;
}

.modal-close:hover {
  color: white;
}

.modal-body {
  padding: 1.75rem;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.75rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Modal Tajwid Detail */
.tajwid-modal-arabic {
  font-family: var(--font-arabic);
  font-size: 3rem;
  text-align: center;
  color: var(--ocean-blue);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.tajwid-modal-rule {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold-warm);
  margin-bottom: 1rem;
}

.tajwid-modal-explanation {
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.65;
  border: 1px solid var(--border-light);
}

/* =================================================================
   FOOTER
   ================================================================= */
.app-footer {
  background: var(--navy-dark);
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-school {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: white;
  border-radius: 6px;
  padding: 2px;
}

.footer-school h4 {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.footer-school p {
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-copy {
  text-align: right;
  font-size: 0.8rem;
  color: #64748b;
}

/* =================================================================
   PRINT STYLES (@media print)
   ================================================================= */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  
  .app-header,
  .global-progress-bar-wrap,
  .app-footer,
  .modal-backdrop,
  .result-summary-card,
  .review-box-container,
  .result-actions,
  .breadcrumb,
  .page-header {
    display: none !important;
  }
  
  .main-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  
  #page-hasil {
    display: block !important;
  }
  
  .certificate-wrap {
    margin: 0 !important;
    box-shadow: none !important;
  }
  
  .certificate-frame {
    border: 8px solid #0f4c81 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  
  .cert-inner-border {
    padding: 1.5rem !important;
  }
}

/* =================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ================================================================= */
@media (max-width: 1024px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.75rem;
  }
  
  .hero-teacher-box {
    margin-top: 1rem;
  }
  
  .result-summary-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .duo-pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.6rem 1rem;
  }
  
  .brand-school {
    font-size: 0.92rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 1rem;
    border-radius: 0;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 1.65rem;
  }
  
  .arabic-display {
    font-size: 1.75rem;
    line-height: 2.1;
  }
  
  .hadis-arabic {
    font-size: 1.4rem;
  }
  
  .cert-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cert-footer {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .student-badge .badge-label {
    display: none;
  }
}
