/* ==========================================================================
   PANCASILA CIVIC LAB 🇮🇩
   Virtual Interactive Learning & Awareness Campaign for SMA Kelas X
   Design System & Comprehensive Stylesheet
   ========================================================================== */

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

/* --- CSS ROOT VARIABLES --- */
:root {
  /* Brand Palette */
  --primary-maroon: #881337;
  --primary-red: #B91C1C;
  --flag-red: #DC2626;
  --bright-red: #EF4444;
  --gold-warm: #F59E0B;
  --gold-rich: #D97706;
  --gold-light: #FEF08A;
  --baby-blue: #E0F2FE;
  --baby-blue-dark: #38BDF8;
  --blue-primary: #0284C7;
  --soft-cream: #FEF3C7;
  --cream-light: #FFFBEB;
  --ivory-white: #FFFDF7;
  --pastel-pink: #FCE7F3;
  --pastel-pink-accent: #FB7185;

  /* Neutrals & Text */
  --text-dark: #1E293B;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-light: rgba(148, 163, 184, 0.25);
  --border-card: #FED7AA;
  --card-bg: rgba(255, 255, 255, 0.94);
  --glass-bg: rgba(255, 253, 247, 0.88);
  --glass-border: rgba(245, 158, 11, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(136, 19, 55, 0.06);
  --shadow-md: 0 8px 24px rgba(136, 19, 55, 0.1);
  --shadow-lg: 0 16px 36px rgba(136, 19, 55, 0.14);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.35);

  /* Typography */
  --font-heading: 'Fredoka', 'Quicksand', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Nunito', -apple-system, sans-serif;

  /* Borders & Radius */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & GLOBAL BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: #FFFDF7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==========================================================================
   MULTI-LAYERED BACKGROUND & INDONESIAN ORNAMENTS
   ========================================================================== */
.lab-ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Layer 1: Sky gradient with warm sun rays */
.bg-layer-sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 15% 10%, #FEF08A 0%, #FEF3C7 20%, #E0F2FE 55%, #FFFDF7 90%);
  opacity: 0.85;
}

/* Layer 2: Subtle Indonesian Batik Kawung & Geometric Watermark */
.bg-layer-batik {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.035) 2px, transparent 2px),
    radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.03) 2px, transparent 2px);
  background-size: 40px 40px;
  opacity: 0.9;
}

/* Layer 3: Vector Schoolyard Silhouette (Gedung Sekolah, Tiang Bendera, Taman) */
.bg-layer-school {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;
  opacity: 0.22;
}

/* Layer 4: Floating School Doodles (Buku, Pensil, Atom, Bintang) */
.floating-doodle {
  position: absolute;
  user-select: none;
  pointer-events: none;
  animation: floatDoodle 7s ease-in-out infinite alternate;
}

.doodle-1 { top: 12%; left: 4%; font-size: 2.2rem; animation-delay: 0s; }
.doodle-2 { top: 22%; right: 5%; font-size: 2rem; animation-delay: 1.5s; }
.doodle-3 { top: 48%; left: 2%; font-size: 1.8rem; animation-delay: 3s; }
.doodle-4 { top: 65%; right: 4%; font-size: 2.3rem; animation-delay: 0.8s; }
.doodle-5 { top: 8%; right: 28%; font-size: 1.5rem; animation-delay: 2.2s; }
.doodle-6 { top: 82%; left: 8%; font-size: 2.4rem; animation-delay: 4s; }

@keyframes floatDoodle {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
  100% { transform: translateY(-8px) rotate(-4deg); }
}

/* ==========================================================================
   APP HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(220, 38, 38, 0.15);
  box-shadow: 0 4px 18px rgba(136, 19, 55, 0.06);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--flag-red), var(--primary-maroon));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
  border: 2px solid var(--gold-warm);
  transform: rotate(-3deg);
  transition: transform var(--transition-fast);
}

.brand-wrapper:hover .brand-logo-icon {
  transform: rotate(3deg) scale(1.05);
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-maroon);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: var(--gold-warm);
  color: #78350F;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Nav Tabs: EXACTLY 3 FEATURES */
.main-nav-tabs {
  display: flex;
  align-items: center;
  background: rgba(254, 243, 199, 0.6);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--primary-red);
  background: rgba(255, 255, 255, 0.6);
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, var(--flag-red), var(--primary-maroon));
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.nav-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: 2px;
}

.nav-tab-btn.active .nav-tab-badge {
  background: var(--gold-warm);
  color: #78350F;
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.action-icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-warm);
  box-shadow: var(--shadow-md);
}

.action-icon-btn.active {
  background: var(--soft-cream);
  border-color: var(--gold-rich);
}

/* ==========================================================================
   HERO / BANNER SECTION
   ========================================================================== */
.hero-banner {
  max-width: 1240px;
  margin: 24px auto 16px;
  padding: 0 20px;
}

.hero-card {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 50%, #E0F2FE 100%);
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(220, 38, 38, 0.05));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-maroon);
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-title .highlight {
  color: var(--flag-red);
  position: relative;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(245, 158, 11, 0.35);
  border-radius: 4px;
  z-index: -1;
}

.hero-slogan {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 600;
  color: var(--gold-rich);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  max-width: 680px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--flag-red), var(--primary-maroon));
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
  transition: all var(--transition-fast);
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.45);
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--text-dark);
  border: 1.5px solid var(--border-card);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.cta-btn-secondary:hover {
  background: var(--cream-light);
  border-color: var(--gold-warm);
}

.hero-students-art {
  width: 260px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   INTERACTIVE MASCOT — GARUDA PINTAR & SPEECH BUBBLE
   ========================================================================== */
.mascot-floating-container {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.garuda-mascot-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
  position: relative;
}

/* Contextual Speech Bubble */
.garuda-speech-bubble {
  background: #FFFFFF;
  border: 2.5px solid var(--gold-warm);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 290px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 12px;
  position: relative;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
  animation: popInBubble 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.garuda-speech-bubble.pop-in {
  animation: popInBubble 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.garuda-speech-bubble.pop-out {
  animation: popOutBubble 0.2s ease forwards;
}

@keyframes popInBubble {
  0% { transform: scale(0.6) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes popOutBubble {
  0% { transform: scale(1) translateY(0); opacity: 1; }
  100% { transform: scale(0.7) translateY(15px); opacity: 0; }
}

.bubble-close-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--pastel-pink);
  color: var(--primary-maroon);
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.bubble-close-btn:hover {
  background: var(--flag-red);
  color: #FFFFFF;
}

.bubble-tail {
  position: absolute;
  bottom: -11px;
  right: 48px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 11px solid var(--gold-warm);
}

.bubble-tail::after {
  content: "";
  position: absolute;
  bottom: 2.5px;
  left: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid #FFFFFF;
}

/* Mascot Body / Graphic */
.garuda-character-body {
  width: 110px;
  height: 125px;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast);
  animation: mascotBobbing 3.5s ease-in-out infinite;
}

.garuda-character-body:hover {
  transform: scale(1.08) translateY(-4px);
}

@keyframes mascotBobbing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.garuda-svg {
  filter: drop-shadow(0 6px 12px rgba(136, 19, 55, 0.15));
}

/* Wing Flapping Animation */
.garuda-character-body.flapping .garuda-wing-left {
  animation: flapLeft 0.18s ease-in-out infinite alternate;
  transform-origin: 55px 135px;
}

.garuda-character-body.flapping .garuda-wing-right {
  animation: flapRight 0.18s ease-in-out infinite alternate;
  transform-origin: 145px 135px;
}

@keyframes flapLeft {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-25deg) translateY(-8px); }
}

@keyframes flapRight {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(25deg) translateY(-8px); }
}

.mascot-badge-tag {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-maroon);
  color: var(--gold-warm);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gold-warm);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  white-space: nowrap;
}

/* ==========================================================================
   APP CONTENT CONTAINER & TABS (3 MAIN FEATURES)
   ========================================================================== */
.main-app-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.tab-pane {
  display: none;
  animation: fadeInPane 0.3s ease;
}

.tab-pane.active {
  display: block;
}

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

.section-lead-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.section-tag {
  display: inline-block;
  background: rgba(220, 38, 38, 0.1);
  color: var(--flag-red);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-maroon);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

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

/* ==========================================================================
   FEATURE A: KNOWLEDGE CORNER 📚
   ========================================================================== */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.knowledge-card {
  background: var(--card-bg);
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.knowledge-card:hover {
  transform: translateY(-6px);
  border-color: var(--flag-red);
  box-shadow: var(--shadow-lg);
}

.kc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.kc-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.kc-read-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.kc-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.kc-card-meta {
  margin-bottom: 10px;
}

.kc-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--flag-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kc-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-maroon);
  line-height: 1.3;
  margin: 4px 0;
}

.kc-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-rich);
}

.kc-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.kc-card-footer {
  padding-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kc-read-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-red);
  transition: transform var(--transition-fast);
}

.knowledge-card:hover .kc-read-link {
  transform: translateX(4px);
}

/* Modal for Chapter Full Content */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #FFFDF7;
  border: 2px solid var(--gold-warm);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-window {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #FEF3C7, #FFFBEB);
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-header-text {
  flex-grow: 1;
}

.modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-maroon);
  font-weight: 700;
  line-height: 1.25;
}

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

.modal-close-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: #FFFFFF;
  color: var(--text-dark);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.modal-close-icon:hover {
  background: var(--flag-red);
  color: #FFFFFF;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Concept Cards in Chapter 1 & 4 */
.concept-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.note-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  font-size: 0.88rem;
}

.note-box.info {
  background: var(--baby-blue);
  border-left: 4px solid var(--blue-primary);
  color: #0369A1;
}

.note-box.warning {
  background: var(--soft-cream);
  border-left: 4px solid var(--gold-warm);
  color: #92400E;
}

.civic-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.civic-comparison-table th {
  background: var(--primary-maroon);
  color: #FFFFFF;
  font-family: var(--font-heading);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
}

.civic-comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.88rem;
}

.civic-comparison-table tr:last-child td {
  border-bottom: none;
}

.relation-box {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 2px solid var(--gold-warm);
  border-radius: var(--radius-md);
  padding: 20px;
}

.relation-lead {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary-maroon);
  margin-bottom: 8px;
}

.civic-bullet-list {
  padding-left: 20px;
  margin-top: 8px;
}

.civic-bullet-list li {
  margin-bottom: 6px;
}

/* Chapter 2: Laws Cards */
.law-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.law-filter-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.law-filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.law-filter-btn.active {
  background: var(--primary-maroon);
  color: #FFFFFF;
  border-color: var(--primary-maroon);
}

.law-cards-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.law-item-card {
  background: #FFFFFF;
  border: 2px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.law-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.law-number-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--flag-red);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.law-ref {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--primary-maroon);
}

.law-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-rich);
}

.law-quote-box {
  background: #FEF2F2;
  border-left: 4px solid var(--flag-red);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.law-quote-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.official-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: #7F1D1D;
  line-height: 1.5;
}

.law-source-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

.law-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.law-detail-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.law-detail-box.simple {
  background: var(--baby-blue);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.law-detail-box.example {
  background: var(--soft-cream);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.ld-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

/* Chapter 3: Pancasila Sila Cards */
.sila-cards-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.sila-card {
  background: #FFFFFF;
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sila-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.sila-symbol {
  font-size: 32px;
}

.sila-number-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--flag-red);
  letter-spacing: 0.05em;
}

.sila-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary-maroon);
}

.sila-core-tag {
  background: var(--soft-cream);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #78350F;
  margin-bottom: 14px;
}

.sila-body-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sila-box {
  background: #F8FAFC;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.sila-box.highlight {
  background: #FEF3C7;
  border: 1px dashed var(--gold-warm);
}

.sb-label {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

/* ==========================================================================
   FEATURE B: CIVIC AWARENESS SURVEY 📝
   ========================================================================== */
.survey-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.survey-lead-banner {
  background: linear-gradient(135deg, #FEF2F2, #FFFBEB);
  border: 2px dashed rgba(220, 38, 38, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.slb-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.slb-text h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary-maroon);
  margin-bottom: 4px;
}

.slb-text p {
  font-size: 0.88rem;
  color: var(--text-body);
}

.survey-progress-widget {
  margin-bottom: 20px;
}

.spw-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-maroon);
}

.spw-track {
  width: 100%;
  height: 12px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.spw-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-warm), var(--flag-red));
  border-radius: var(--radius-full);
  transition: width 0.35s ease;
}

/* Question Active Card */
.survey-question-card {
  background: #FFFFFF;
  border: 2.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
}

.sq-part-tag {
  display: inline-block;
  background: var(--baby-blue);
  color: var(--blue-primary);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.sq-case-badge {
  display: inline-block;
  background: #FEF2F2;
  color: var(--flag-red);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.sq-question-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.sq-instruction {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Multiple Choice Cards */
.sq-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sq-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #FFFFFF;
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.sq-option-card:hover {
  border-color: var(--gold-warm);
  background: #FFFDF7;
  transform: translateX(4px);
}

.sq-opt-letter {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #F1F5F9;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.sq-opt-text {
  flex-grow: 1;
  font-weight: 500;
}

.sq-option-card.selected {
  border-color: var(--gold-rich);
  background: #FEF3C7;
}

.sq-option-card.selected .sq-opt-letter {
  background: var(--gold-warm);
  color: #78350F;
}

.sq-option-card.opt-correct {
  border-color: #10B981;
  background: #ECFDF5;
}

.sq-option-card.opt-correct .sq-opt-letter {
  background: #10B981;
  color: #FFFFFF;
}

.sq-option-card.opt-wrong {
  border-color: #EF4444;
  background: #FEF2F2;
}

.sq-option-card.opt-wrong .sq-opt-letter {
  background: #EF4444;
  color: #FFFFFF;
}

.sq-option-card.opt-muted {
  opacity: 0.6;
}

/* Feedback panel below options */
.sq-feedback-panel {
  margin-top: 20px;
}

.sq-feedback-box {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sq-feedback-box.success {
  background: #ECFDF5;
  border: 2px solid #10B981;
  color: #065F46;
}

.sq-feedback-box.notice {
  background: #FFFBEB;
  border: 2px solid var(--gold-warm);
  color: #92400E;
}

.fb-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 6px;
}

/* Likert Scale Cards */
.sq-likert-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.sq-likert-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  background: #FFFFFF;
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.sq-likert-option:hover {
  border-color: var(--gold-warm);
  transform: translateY(-3px);
}

.sq-likert-option.selected {
  background: linear-gradient(135deg, #FEF3C7, #FFFBEB);
  border-color: var(--flag-red);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.15);
}

.sq-likert-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.sq-likert-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-maroon);
}

.sq-likert-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 4px;
}

.sq-likert-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 4px;
}

/* Reflection Textarea */
.sq-reflection-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sq-textarea {
  width: 100%;
  border: 2px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast);
}

.sq-textarea:focus {
  border-color: var(--flag-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.sq-char-count {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Survey Navigation Actions */
.survey-nav-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.survey-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.survey-nav-btn.prev {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  color: var(--text-muted);
}

.survey-nav-btn.prev:hover:not(:disabled) {
  background: var(--cream-light);
  color: var(--text-dark);
}

.survey-nav-btn.next {
  background: linear-gradient(135deg, var(--flag-red), var(--primary-maroon));
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.3);
}

.survey-nav-btn.next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.4);
}

.survey-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.survey-nav-btn.pulse {
  animation: pulseBtn 1.8s infinite;
}

@keyframes pulseBtn {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Review Modal */
.review-group {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.3);
}

.review-group h4 {
  font-family: var(--font-heading);
  color: var(--primary-maroon);
  font-size: 1rem;
  margin-bottom: 8px;
}

.review-group ul {
  list-style: none;
  font-size: 0.88rem;
}

.review-group ul li {
  margin-bottom: 6px;
}

.review-ref-box p {
  font-size: 0.85rem;
  margin-bottom: 6px;
  background: #FFFBEB;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-warm);
}

/* ==========================================================================
   FEATURE C: CAMPAIGN RESULT 🇮🇩
   ========================================================================== */
.campaign-lead-box {
  background: linear-gradient(135deg, #881337 0%, #B91C1C 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.campaign-lead-box::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.clb-slogan-main {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.25;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.clb-slogan-sub {
  font-size: 1.1rem;
  font-style: italic;
  color: #FFFDF7;
  max-width: 600px;
  margin: 0 auto;
}

/* Stat Metrics Grid */
.campaign-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-metric-card {
  background: #FFFFFF;
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.smc-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--soft-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.smc-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-maroon);
  line-height: 1;
  margin-bottom: 4px;
}

.smc-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Charts Section */
.campaign-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.chart-card {
  background: #FFFFFF;
  border: 2px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.chart-card-header {
  margin-bottom: 18px;
}

.chart-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary-maroon);
  margin-bottom: 4px;
}

.chart-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Likert Bar Items */
.likert-bar-row {
  margin-bottom: 16px;
}

.lb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.lb-title {
  font-size: 0.88rem;
  color: var(--text-dark);
}

.lb-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lb-score-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold-rich);
  font-weight: 700;
}

.lb-val {
  font-size: 1.05rem;
}

.lb-track {
  width: 100%;
  height: 10px;
  background: #F1F5F9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.lb-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-warm), var(--flag-red));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Violations Bar Chart */
.violation-bar-item {
  margin-bottom: 14px;
}

.vbi-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.vbi-name {
  flex-grow: 1;
  margin: 0 8px;
  color: var(--text-dark);
}

.vbi-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.vbi-track {
  width: 100%;
  height: 10px;
  background: #F1F5F9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.vbi-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #E11D48);
  border-radius: var(--radius-full);
}

/* Live Wall of Reflections */
.reflections-wall-section {
  margin-bottom: 40px;
}

.reflections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.reflection-quote-card {
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  border: 1.5px solid transparent;
}

.reflection-quote-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.reflection-quote-card.bg-blue { background: #F0F9FF; border-color: #BAE6FD; }
.reflection-quote-card.bg-pink { background: #FDF2F8; border-color: #FBCFE8; }
.reflection-quote-card.bg-gold { background: #FFFBEB; border-color: #FDE68A; }
.reflection-quote-card.bg-green { background: #ECFDF5; border-color: #A7F3D0; }
.reflection-quote-card.bg-purple { background: #FAF5FF; border-color: #E9D5FF; }
.reflection-quote-card.bg-orange { background: #FFF7ED; border-color: #FED7AA; }

.rqc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rqc-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-emoji {
  font-size: 24px;
}

.avatar-title {
  font-size: 0.85rem;
  color: var(--text-dark);
  display: block;
  line-height: 1.1;
}

.rqc-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.rqc-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.rqc-item {
  margin-bottom: 10px;
}

.rqc-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.rqc-concern, .rqc-action, .rqc-message {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.4;
}

.rqc-item.highlight {
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
}

.rqc-item.highlight .rqc-label {
  color: var(--primary-maroon);
}

/* Certificate Generator Box */
.certificate-section {
  background: #FFFFFF;
  border: 2px solid var(--gold-warm);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
}

.cert-input-row {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 580px;
  margin: 16px auto 24px;
}

.cert-input {
  flex-grow: 1;
  border: 2px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.cert-input:focus {
  border-color: var(--flag-red);
}

.cert-frame {
  max-width: 680px;
  margin: 0 auto;
  border: 8px double var(--primary-maroon);
  border-radius: var(--radius-md);
  padding: 32px;
  background: radial-gradient(circle, #FFFDF7 0%, #FEF3C7 100%);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  position: relative;
}

.cert-logo {
  font-size: 42px;
  margin-bottom: 6px;
}

.cert-header-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-maroon);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cert-header-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-rich);
  margin-bottom: 18px;
}

.cert-recipient-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cert-student-name-display {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--flag-red);
  margin: 8px 0;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.cert-desc-text {
  font-size: 0.88rem;
  color: var(--text-body);
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.cert-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(136, 19, 55, 0.2);
  padding-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Management & Tools Panel */
.campaign-tools-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
  background: var(--soft-cream);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   UTILITY & ANIMATION CLASSES
   ========================================================================== */
.animate-pop {
  animation: popKeyframe 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popKeyframe {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-students-art {
    margin: 0 auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .campaign-stats-grid {
    grid-template-columns: 1fr;
  }
  .campaign-charts-grid {
    grid-template-columns: 1fr;
  }
  .law-details-grid {
    grid-template-columns: 1fr;
  }
  .sila-body-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .main-nav-tabs {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  .nav-tab-btn {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .sq-likert-scale {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .sq-likert-option {
    padding: 10px 4px;
  }
  .sq-likert-icon {
    font-size: 18px;
  }
  .sq-likert-val {
    font-size: 0.95rem;
  }
  .sq-likert-label {
    display: none;
  }
  .mascot-floating-container {
    bottom: 14px;
    right: 14px;
  }
  .garuda-speech-bubble {
    max-width: 240px;
    font-size: 0.8rem;
  }
  .garuda-character-body {
    width: 85px;
    height: 95px;
  }
}

/* Print Styles for Certificate */
@media print {
  body * {
    visibility: hidden;
  }
  .cert-frame, .cert-frame * {
    visibility: visible;
  }
  .cert-frame {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    box-shadow: none;
    border: 6px double #881337;
  }
}
