/* ==========================================================================
   Media Pembelajaran Interaktif: Eksponensial dan Sifat-Sifat Eksponensial
   SMK Negeri 1 Mundu - Agribisnis Pengolahan Hasil Perikanan (APHPi)
   Guru Pengampu: Futichatur Rizqi, S.Pd
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --primary-rgb: 2, 132, 199;
  
  --secondary: #0d9488;
  --secondary-dark: #0f766e;
  --secondary-light: #ccfbf1;
  
  --accent: #ea580c;
  --accent-light: #ffedd5;
  --accent-hover: #c2410c;
  
  --gold: #d97706;
  --gold-light: #fef3c7;
  
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-400: #94a3b8;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  
  --success: #16a34a;
  --success-light: #dcfce7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--dark-soft);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 35%, #f8fafc 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(2, 132, 199, 0.15);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.school-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--dark);
}

.brand-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.brand-text h1 span {
  color: var(--primary);
}

.brand-text p {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Nav Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.25rem 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.nav-link svg {
  width: 17px;
  height: 17px;
}

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

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.sound-badge {
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  font-weight: 700;
}

/* ==========================================================================
   Page View Handling (SPA)
   ========================================================================== */
.page-section {
  display: none;
  animation: fadeIn 0.35s ease-out forwards;
  padding: 2rem 0 3.5rem;
}

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

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

/* ==========================================================================
   Components: Badges, Buttons, Cards
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-marine {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-coral {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-teal {
  background: #ccfbf1;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.badge-gold {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

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

.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
}

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

.btn-coral {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300, #cbd5e1);
}

.btn-outline:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

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

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Card Styles */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

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

/* Section Header Typography */
.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.section-title-wrap .badge {
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ==========================================================================
   Page 1: Beranda (Home)
   ========================================================================== */
.hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--dark);
  margin: 0.8rem 0 1rem;
}

.hero-content h2 .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-teacher-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid #bae6fd;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.teacher-avatar-sm {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.teacher-meta h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--dark);
}

.teacher-meta p {
  font-size: 0.82rem;
  color: var(--gray-600);
}

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

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.2);
  border: 3px solid var(--white);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-banner-img {
  transform: scale(1.02);
}

.hero-floating-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Apersepsi Section */
.apersepsi-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

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

.apersepsi-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1.5px dashed #cbd5e1;
  transition: var(--transition);
}

.apersepsi-card:hover {
  border-color: var(--primary);
  background: #f0f9ff;
}

.apersepsi-card.salmon:hover {
  border-color: var(--accent);
  background: #fff7ed;
}

.apersepsi-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.apersepsi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.apersepsi-icon.blue {
  background: #e0f2fe;
  color: var(--primary);
}

.apersepsi-icon.orange {
  background: #ffedd5;
  color: var(--accent);
}

/* Interactive Growth Sequence Visualizer */
.sequence-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-inner);
}

.step-node {
  text-align: center;
  position: relative;
}

.step-node .node-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 0.4rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
  transition: transform 0.3s ease;
}

.step-node:hover .node-bubble {
  transform: scale(1.15);
}

.step-node.orange .node-bubble {
  background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

.step-node .node-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-600);
}

.flow-arrow {
  color: var(--gray-400);
  font-weight: bold;
}

/* 4 Quick Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.highlight-box {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.highlight-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.highlight-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.highlight-box h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.highlight-box p {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ==========================================================================
   Page 2: Tujuan Pembelajaran
   ========================================================================== */
.tujuan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.tujuan-card {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
}

.tujuan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.tujuan-num {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}

.tujuan-num.num-1 { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.tujuan-num.num-2 { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); }
.tujuan-num.num-3 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.tujuan-num.num-4 { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }

.tujuan-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.tujuan-body p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.tujuan-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Learning Journey & Vocation Relevance */
.journey-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  border: 1px solid #99f6e4;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
}

.journey-step {
  text-align: center;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.journey-step:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.journey-step h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--dark);
}

.journey-step p {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* Teacher & School Profile Box */
.profile-box {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  align-items: center;
}

.profile-avatar-wrap {
  text-align: center;
}

.profile-avatar-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.25);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Page 3: Materi (Interactive Lessons)
   ========================================================================== */
.materi-subnav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.subnav-btn {
  padding: 0.75rem 1.4rem;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gray-600);
  cursor: pointer;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subnav-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.subnav-btn.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  background: var(--white);
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.04);
}

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

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

/* Concept Cards */
.concept-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.math-definition-banner {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0;
  text-align: center;
  box-shadow: 0 10px 25px rgba(3, 105, 161, 0.3);
}

.math-definition-banner .formula {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'Cambria Math', Georgia, serif;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.math-definition-banner .explanation {
  font-size: 0.98rem;
  opacity: 0.92;
}

/* Interactive Exponent Calculator */
.interactive-calc-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
  border: 1.5px solid #99f6e4;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.calc-inputs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.calc-input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700);
}

.calc-input {
  width: 90px;
  height: 52px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--dark);
  transition: var(--transition);
}

.calc-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.calc-result-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.calc-result-formula {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.calc-visual-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  max-height: 180px;
  overflow-y: auto;
  padding: 0.5rem;
}

.visual-fish-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Packaging Doubling Simulator */
.packaging-sim-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.slider-control-group {
  max-width: 600px;
  margin: 1.5rem auto;
  text-align: center;
}

.custom-range {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #cbd5e1;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.4);
  cursor: pointer;
  border: 3px solid var(--white);
  transition: transform 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-600);
}

.packaging-visual-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.packaging-stage-card {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.packaging-stage-card.current {
  border-color: var(--accent);
  background: #fff7ed;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.15);
}

.packaging-stage-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

/* Sifat-Sifat Cards Grid */
.sifat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.sifat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.sifat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.sifat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sifat-tag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.sifat-formula-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
  border: 1px solid var(--gray-200);
}

.sifat-formula {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: 'Cambria Math', Georgia, serif;
}

.sifat-examples {
  background: #f0f9ff;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: auto;
  border-left: 4px solid var(--primary);
  font-size: 0.88rem;
}

.sifat-examples.aphpi {
  background: #fff7ed;
  border-left-color: var(--accent);
  margin-top: 0.75rem;
}

.example-title {
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.example-title.math { color: var(--primary); }
.example-title.aphpi { color: var(--accent); }

/* Sandbox / Laboratorium */
.sandbox-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #86efac;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.sandbox-select {
  width: 100%;
  max-width: 480px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.25rem;
}

.sandbox-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Page 4: Kuis (Interactive Quiz)
   ========================================================================== */
.quiz-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.quiz-intro-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.student-input-group {
  max-width: 420px;
  margin: 1.75rem auto;
  text-align: left;
}

.student-input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.student-input {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-300);
  font-weight: 600;
  transition: var(--transition);
}

.student-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

/* Quiz Active Panel */
.quiz-active-panel {
  display: none;
}

.quiz-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.quiz-progress-track {
  flex-grow: 1;
  height: 10px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: width 0.3s ease;
}

.quiz-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

/* Question Palette (Numbers) */
.question-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.palette-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.palette-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.palette-btn.current {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.palette-btn.answered {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #0284c7;
}

/* Question Card */
.question-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.question-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

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

.option-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  background: var(--gray-50);
  cursor: pointer;
  transition: var(--transition);
}

.option-item:hover {
  border-color: var(--primary);
  background: #f0f9ff;
  transform: translateX(4px);
}

.option-item.selected {
  border-color: var(--primary);
  background: #e0f2fe;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.option-letter {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gray-700);
  flex-shrink: 0;
  transition: var(--transition);
}

.option-item.selected .option-letter {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.option-content {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-soft);
}

.quiz-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   Page 5: Hasil (Results & Certificate)
   ========================================================================== */
.results-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.results-summary-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.score-circle-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 1.5rem;
}

.score-circle-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.score-circle-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 10;
}

.score-circle-val {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.5s ease-out;
}

.score-text-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-text-center .score-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--dark);
}

.score-text-center .score-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
}

.result-badge-predikat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

/* Competency Indicator Breakdown */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
  text-align: left;
}

.competency-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.competency-item h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.competency-bar-track {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.4rem 0;
}

.competency-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

.competency-stat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-600);
  display: flex;
  justify-content: space-between;
}

/* Review Answers Container */
.review-container {
  margin-top: 2.5rem;
  text-align: left;
}

.review-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.review-item.correct {
  border-left: 5px solid var(--success);
}

.review-item.incorrect {
  border-left: 5px solid var(--danger);
}

.review-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.review-status-pill.correct {
  background: var(--success-light);
  color: var(--success);
}

.review-status-pill.incorrect {
  background: var(--danger-light);
  color: var(--danger);
}

.review-explanation {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

/* ==========================================================================
   Page 6: Refleksi (Reflection Journal)
   ========================================================================== */
.refleksi-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.quote-banner {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 25px rgba(3, 105, 161, 0.25);
}

.quote-teacher-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  flex-shrink: 0;
}

.quote-content blockquote {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.quote-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: #bae6fd;
}

/* Emoji Rating Component */
.rating-group {
  margin: 1.5rem 0 2rem;
  text-align: center;
}

.rating-group h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.emoji-rating-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.emoji-btn {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.emoji-btn .emoji-icon {
  font-size: 2rem;
  transition: transform 0.2s ease;
}

.emoji-btn .emoji-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-600);
}

.emoji-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: #f0f9ff;
}

.emoji-btn.selected {
  border-color: var(--primary);
  background: #e0f2fe;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.emoji-btn.selected .emoji-icon {
  transform: scale(1.25);
}

/* Reflection Prompts Form */
.prompt-group {
  margin-bottom: 1.75rem;
}

.prompt-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.prompt-textarea {
  width: 100%;
  min-height: 90px;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  font-family: inherit;
  line-height: 1.6;
  transition: var(--transition);
}

.prompt-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

/* 4 Pillars of Marine Vocational Competency */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.pillar-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.pillar-card:hover {
  border-color: var(--secondary);
  background: var(--white);
  transform: translateY(-3px);
}

.pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.pillar-card h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.pillar-card p {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-soft);
  font-size: 0.82rem;
}

/* Exercise Bank Styles */
.exercise-bank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.exercise-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.exercise-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

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

.exercise-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.exercise-item-row {
  background: var(--gray-50);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exercise-solution-box {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: #166534;
  margin-top: 0.75rem;
  animation: fadeIn 0.3s ease;
}

.exercise-solution-box.open {
  display: block;
}

/* Print Styles (Certificate & Reflection) */

@media print {
  .main-header,
  .main-footer,
  .main-nav,
  .btn,
  .header-actions,
  .materi-subnav {
    display: none !important;
  }
  
  body {
    background: #ffffff;
    color: #000000;
  }
  
  .page-section {
    display: none !important;
  }
  
  .page-section.active {
    display: block !important;
    padding: 0;
  }
  
  .card, .hero-card, .results-summary-card, .refleksi-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .tujuan-grid {
    grid-template-columns: 1fr;
  }
  
  .journey-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .profile-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .sifat-grid {
    grid-template-columns: 1fr;
  }
  
  .competency-grid {
    grid-template-columns: 1fr;
  }
  
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  
  .hero-content h2 {
    font-size: 1.85rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .apersepsi-grid {
    grid-template-columns: 1fr;
  }
  
  .sequence-flow {
    overflow-x: auto;
  }
}
