/* ==========================================================================
   LMS IPAS KELAS X - SISTEM GAYA & TEMA ALAM (NATURE VIBES)
   Nuansa Lingkungan Alam:
   - Hijau Daun Tunas Baru & Rimbun: #22c55e, #16a34a, #15803d, #86efac, #a3e635, #ecfdf5
   - Aksen Bunga/Kuntum Pink Lembut: #f472b6, #ec4899, #fdf2f8, #fbcfe8
   - Latar Bersih Hangat: #ffffff, #f7fee7, #f0fdf4
   ========================================================================== */

:root {
  /* Nuansa Hijau Alam */
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-300: #86efac; /* Daun tunas muda */
  --primary-400: #4ade80;
  --primary-500: #22c55e; /* Hijau daun segar */
  --primary-600: #16a34a;
  --primary-700: #15803d; /* Hijau hutan */
  --primary-800: #166534;
  --primary-900: #14532d;

  /* Tunas Muda Lime */
  --sprout-lime-300: #bef264;
  --sprout-lime-400: #a3e635;
  --sprout-lime-500: #84cc16;

  /* Aksen Bunga Pink Lembut */
  --accent-pink-50: #fdf2f8;
  --accent-pink-100: #fce7f3;
  --accent-pink-200: #fbcfe8;
  --accent-pink-400: #f472b6;
  --accent-pink-500: #ec4899;
  --accent-pink-600: #db2777;

  /* Gradien Alam */
  --bg-nature-gradient: radial-gradient(circle at 10% 20%, #f0fdf4 0%, #ffffff 45%, #f7fee7 75%, #fdf2f8 100%);
  --card-bg: #ffffff;
  --text-dark: #0f2416;
  --text-muted: #52796f;
  --border-light: #e2f1e7;
  --border-primary: #86efac;

  --shadow-sm: 0 2px 6px rgba(22, 101, 52, 0.05);
  --shadow-md: 0 6px 18px rgba(22, 101, 52, 0.08), 0 2px 6px rgba(15, 36, 22, 0.04);
  --shadow-lg: 0 14px 30px rgba(22, 101, 52, 0.12), 0 4px 12px rgba(15, 36, 22, 0.05);
  --shadow-pink: 0 6px 16px rgba(236, 72, 153, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-leaf: 24px 8px 24px 8px; /* Sudut asimetris bentuk daun */
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font-main);
  background: var(--bg-nature-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* PATTERN DAUN ALAM WATERMARK */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#86efac 0.75px, transparent 0.75px), radial-gradient(#f472b6 0.75px, transparent 0.75px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

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

/* TOP NAVBAR */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--primary-200);
  padding: 0.65rem 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.brand-badge {
  background: linear-gradient(135deg, var(--sprout-lime-400), var(--primary-600));
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-800);
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--accent-pink-600);
  font-weight: 700;
  letter-spacing: 0.5px;
  display: block;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary-50);
  color: var(--primary-800);
  border: 1.5px solid var(--primary-200);
}

.btn-secondary:hover {
  background: var(--primary-100);
  border-color: var(--primary-400);
  transform: translateY(-1px);
}

.btn-pink {
  background: linear-gradient(135deg, var(--accent-pink-400), var(--accent-pink-500));
  color: #ffffff;
  box-shadow: var(--shadow-pink);
}

.btn-pink:hover {
  background: linear-gradient(135deg, var(--accent-pink-500), var(--accent-pink-600));
  transform: translateY(-2px);
}

.btn-pink-outline {
  background: #ffffff;
  color: var(--accent-pink-600);
  border: 1.5px solid var(--accent-pink-200);
}

.btn-pink-outline:hover {
  background: var(--accent-pink-50);
  border-color: var(--accent-pink-400);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
}

/* SESSION TIMER BADGE */
.session-timer-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-100);
  color: var(--primary-900);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  border: 1.5px solid var(--primary-300);
}

.session-timer-badge .pulse-dot {
  width: 9px;
  height: 9px;
  background: var(--primary-500);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* SLIDE NAVIGATION BAR (DITAMPILKAN MULAI SLIDE 2 KUMPULAN IKON) */
.slide-nav-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--primary-200);
  padding: 0.55rem 0;
  position: sticky;
  top: 62px;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.slide-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.slide-breadcrumbs {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* MAIN CONTENT SLIDES */
.main-wrapper {
  flex: 1;
  padding: 1.75rem 0 3.5rem;
}

.slide-section {
  display: none;
  animation: fadeInSlide 0.35s ease-out;
}

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

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

/* ==========================================================================
   HERO BANNER SECTION (LAYAR DEPAN GAMBAR RESMI DENGAN TOMBOL MULAI BELAJAR)
   ========================================================================== */
.hero-banner-wrapper {
  max-width: 1040px;
  margin: 1.5rem auto 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-banner-box {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(22, 101, 52, 0.2), 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 3px solid var(--primary-300);
  background: #ffffff;
  aspect-ratio: 1024 / 514;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-banner-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px rgba(22, 101, 52, 0.26), 0 8px 18px rgba(0, 0, 0, 0.1);
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hotspot / Overlay Button tepat di posisi tombol 'Mulai Belajar' pada gambar */
@keyframes btnMulaiBelajarPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 26px rgba(74, 222, 128, 0.85), inset 0 0 16px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.85);
  }
}

.hero-btn-overlay {
  position: absolute;
  top: 51.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: 14%;
  min-width: 180px;
  min-height: 44px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.01);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  z-index: 10;
  text-decoration: none;
  animation: btnMulaiBelajarPulse 2.4s infinite ease-in-out;
}

.hero-btn-overlay:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 32px rgba(74, 222, 128, 0.9), inset 0 0 16px rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%) scale(1.05);
}

.hero-btn-overlay:active {
  transform: translate(-50%, -50%) scale(0.97);
}

.hero-btn-overlay-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-banner-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
}

/* HERO SECTION (LAYAR DEPAN TEMA ALAM) */
.hero-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(240, 253, 244, 0.94) 50%, rgba(253, 242, 248, 0.92) 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.25rem;
  text-align: center;
  border: 2px solid var(--primary-300);
  box-shadow: 0 20px 45px rgba(22, 101, 52, 0.12);
  position: relative;
  overflow: hidden;
  margin: 1.5rem auto 2.5rem;
  max-width: 980px;
}

/* Ornamen Daun Alami */
.hero-card::before {
  content: '🌿';
  position: absolute;
  top: -25px;
  right: -25px;
  font-size: 7.5rem;
  opacity: 0.14;
  pointer-events: none;
  transform: rotate(25deg);
}

.hero-card::after {
  content: '🌱';
  position: absolute;
  bottom: -20px;
  left: -20px;
  font-size: 6rem;
  opacity: 0.12;
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--primary-100), var(--accent-pink-100));
  color: var(--primary-800);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  border: 1.5px solid var(--primary-200);
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 1.1rem;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-start {
  padding: 1.1rem 3.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--sprout-lime-400), var(--primary-600));
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
}

.btn-hero-start:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.55);
}

/* MENU GRID (KUMPULAN IKON MENU UTAMA DI SLIDE 2) */
.menu-grid-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.35rem;
}

.menu-grid-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.menu-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
}

.menu-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px solid var(--primary-200);
  border-radius: var(--radius-leaf);
  padding: 1.6rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.menu-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-500);
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.22);
  background: #ffffff;
}

.menu-card.highlight {
  border-color: var(--accent-pink-300);
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-pink-50) 100%);
}

.menu-card.highlight:hover {
  border-color: var(--accent-pink-500);
  box-shadow: var(--shadow-pink);
  background: #ffffff;
}

.menu-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-leaf);
  background: var(--primary-100);
  color: var(--primary-700);
  border: 1.5px solid var(--primary-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1rem;
  transition: transform 0.25s ease;
}

.menu-card:hover .menu-icon-box {
  transform: scale(1.12) rotate(4deg);
  background: var(--primary-200);
}

.menu-card.highlight .menu-icon-box {
  background: var(--accent-pink-100);
  color: var(--accent-pink-600);
  border-color: var(--accent-pink-300);
}

.menu-card.highlight:hover .menu-icon-box {
  background: var(--accent-pink-200);
}

.menu-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.menu-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.1rem;
  flex: 1;
}

.menu-card-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1.5px dashed var(--primary-200);
  padding-top: 0.85rem;
}

.menu-card-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--primary-100);
  color: var(--primary-800);
}

.menu-card.highlight .menu-card-badge {
  background: var(--accent-pink-100);
  color: var(--accent-pink-600);
}

.menu-card-arrow {
  color: var(--primary-600);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.menu-card:hover .menu-card-arrow {
  transform: translateX(5px);
  color: var(--primary-700);
}

/* AUDIO NARRATOR BAR */
.audio-narrator-bar {
  background: linear-gradient(135deg, var(--primary-50), #ffffff);
  border: 1.5px solid var(--primary-300);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.audio-narrator-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.audio-icon-pulse {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-pink-100);
  color: var(--accent-pink-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
}

.audio-narrator-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-900);
}

.audio-narrator-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* SLIDE CONTENT CARDS */
.content-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary-200);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
}

.content-header {
  border-bottom: 2px solid var(--primary-100);
  padding-bottom: 1.35rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.content-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.content-title-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-leaf);
  background: var(--primary-100);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1.5px solid var(--primary-300);
}

.content-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary-900);
}

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

/* KARTU KHUSUS UNDUH MODUL DI RUANG MULTI FORMAT */
.module-download-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #fdf2f8 100%);
  border: 2px solid var(--primary-400);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.module-download-banner::after {
  content: '🌿';
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 5rem;
  opacity: 0.12;
  pointer-events: none;
}

.download-banner-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 280px;
}

.download-icon-leaf {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-leaf);
  background: linear-gradient(135deg, var(--sprout-lime-400), var(--primary-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  flex-shrink: 0;
}

.download-banner-text h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.3rem;
}

.download-banner-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.download-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* TABS NAVIGATION */
.nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--primary-100);
  padding-bottom: 0.5rem;
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.nav-tab-btn {
  padding: 0.65rem 1.35rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-tab-btn:hover {
  background: var(--primary-50);
  color: var(--primary-800);
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeInSlide 0.3s ease;
}

/* INFOGRAPHICS GALLERY */
.infographic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.infographic-card {
  border: 2px solid var(--primary-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.infographic-preview {
  position: relative;
  background: #f1f5f9;
  height: 380px;
  overflow: hidden;
  cursor: pointer;
}

.infographic-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.infographic-preview:hover img {
  transform: scale(1.04);
}

.infographic-badge-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 36, 22, 0.8);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.infographic-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.infographic-body h3 {
  font-size: 1.15rem;
  color: var(--primary-900);
  margin-bottom: 0.4rem;
}

.infographic-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

/* VIDEO CARDS */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.video-container {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-container video,
.video-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-body {
  padding: 1.35rem;
}

.video-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.4rem;
}

.video-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* READING CONTENT / ACCORDION */
.reading-item {
  border: 1.5px solid var(--primary-200);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  background: #ffffff;
}

.reading-header {
  padding: 1.1rem 1.35rem;
  background: var(--primary-50);
  font-weight: 800;
  color: var(--primary-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.reading-header:hover {
  background: var(--primary-100);
}

.reading-content {
  padding: 1.35rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dark);
  border-top: 1px solid var(--primary-200);
}

/* CHAIN FLOW DIAGRAM (RANTAI MAKANAN VISUAL) */
.chain-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-50), #ffffff);
  border-radius: var(--radius-md);
  border: 2px dashed var(--primary-300);
  margin: 1.5rem 0;
}

.chain-node {
  background: #ffffff;
  border: 2px solid var(--primary-400);
  border-radius: var(--radius-leaf);
  padding: 0.85rem 1.35rem;
  text-align: center;
  min-width: 125px;
  box-shadow: var(--shadow-sm);
}

.chain-node.producer { border-color: #22c55e; background: #f0fdf4; }
.chain-node.consumer-1 { border-color: #3b82f6; background: #eff6ff; }
.chain-node.consumer-2 { border-color: #f59e0b; background: #fffbeb; }
.chain-node.consumer-3 { border-color: #ef4444; background: #fef2f2; }
.chain-node.decomposer { border-color: #8b5cf6; background: #f5f3ff; }

.chain-node .node-role {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.chain-node .node-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}

.chain-arrow {
  font-size: 1.5rem;
  color: var(--accent-pink-500);
  font-weight: 900;
}

/* LKPD SECTION SPECIFICS */
.lkpd-timer-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.lkpd-timer-box.warning {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: #f87171;
  animation: timerWarning 1s infinite alternate;
}

@keyframes timerWarning {
  from { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  to { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.lkpd-timer-time {
  font-size: 2.3rem;
  font-weight: 800;
  font-family: monospace;
  color: #b45309;
}

.lkpd-timer-box.warning .lkpd-timer-time {
  color: #b91c1c;
}

.progress-container {
  margin-bottom: 1.75rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-800);
  margin-bottom: 0.45rem;
}

.progress-bar-bg {
  width: 100%;
  height: 14px;
  background: var(--primary-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--primary-200);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sprout-lime-400), var(--primary-500), var(--accent-pink-500));
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.4s ease;
}

/* SUPERVISION / PENGAWASAN LAPANGAN PANEL */
.field-supervision-panel {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid var(--primary-400);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

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

.supervision-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-900);
}

.supervision-status-chip {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  background: #ffffff;
  border: 1.5px solid var(--primary-300);
  color: var(--primary-800);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.supervision-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* OBSERVATION TABLE IN LKPD */
.table-responsive {
  overflow-x: auto;
  margin: 1.35rem 0;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
}

.table-lms {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  background: #ffffff;
}

.table-lms th {
  background: var(--primary-100);
  color: var(--primary-900);
  font-weight: 800;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--primary-300);
}

.table-lms td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table-lms tr:hover {
  background: #f8fafc;
}

/* TABLE SCROLL HINT (MOBILE FRIENDLY) */
.table-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid #93c5fd;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
  font-size: 0.82rem;
  color: #1e40af;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.08);
}

.table-scroll-hint .hint-icon {
  font-size: 1.15rem;
  animation: bounceHorizontal 1.5s infinite;
}

@keyframes bounceHorizontal {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* CHAIN INPUT GRID (LKPD DIAGRAM ALIR) */
.chain-input-grid {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.chain-input-box {
  flex: 1;
  min-width: 165px;
  background: var(--primary-50);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary-300);
  transition: border-color 0.2s ease;
}

.chain-input-box:focus-within {
  border-color: var(--primary-500);
  background: #ffffff;
}

.chain-input-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary-800);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.chain-input-box .form-control {
  background: #ffffff;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
}

.chain-input-arrow {
  font-size: 1.4rem;
  color: var(--accent-pink-500);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* QUIZ STYLES */
.quiz-question-box {
  background: #ffffff;
  border: 1.5px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.quiz-q-num {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--primary-100);
  color: var(--primary-800);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.quiz-q-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quiz-option-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
}

.quiz-option-label:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
}

.quiz-option-label input[type="radio"] {
  accent-color: var(--primary-600);
  width: 18px;
  height: 18px;
}

.quiz-option-label.selected {
  background: var(--primary-100);
  border-color: var(--primary-500);
  font-weight: 700;
}

/* DIFFERENTIATED ASSESSMENT CARDS */
.need-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.need-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-leaf);
  padding: 1.35rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.need-card:hover {
  border-color: var(--accent-pink-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.need-card.active {
  border-color: var(--accent-pink-500);
  background: var(--accent-pink-50);
}

.need-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent-pink-100);
  color: var(--accent-pink-600);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

/* RUBRIC TABLE */
.rubric-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.rubric-row {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}

.rubric-row-header {
  background: var(--primary-50);
  padding: 0.85rem 1.15rem;
  font-weight: 800;
  color: var(--primary-900);
  border-bottom: 1px solid var(--border-light);
}

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

.rubric-scale-box {
  padding: 0.85rem 1.15rem;
  border-right: 1px solid var(--border-light);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.rubric-scale-box:last-child {
  border-right: none;
}

.rubric-scale-box:hover {
  background: #f8fafc;
}

.rubric-scale-box.active {
  background: var(--primary-100);
  border-color: var(--primary-400);
}

.scale-score-badge {
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
  display: inline-block;
}

.scale-4 { background: #dcfce7; color: #15803d; }
.scale-3 { background: #dbeafe; color: #1d4ed8; }
.scale-2 { background: #fef3c7; color: #b45309; }
.scale-1 { background: #fee2e2; color: #b91c1c; }

/* REFLECTION SECTION */
.emoticon-picker {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.emoticon-btn {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-leaf);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 115px;
}

.emoticon-btn .emo-icon {
  font-size: 2.6rem;
  transition: transform 0.2s ease;
}

.emoticon-btn .emo-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
}

.emoticon-btn:hover {
  transform: translateY(-4px);
  border-color: var(--accent-pink-400);
}

.emoticon-btn:hover .emo-icon {
  transform: scale(1.2);
}

.emoticon-btn.selected {
  border-color: var(--accent-pink-500);
  background: var(--accent-pink-50);
  box-shadow: var(--shadow-pink);
}

/* TEACHER DASHBOARD SPECIFICS */
.teacher-banner {
  background: linear-gradient(135deg, #14532d, #064e3b);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.teacher-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-leaf);
  background: var(--primary-100);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.stat-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
}

.stat-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid var(--primary-300);
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.1rem 1.6rem;
  background: var(--primary-50);
  border-bottom: 1.5px solid var(--primary-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.2rem;
  color: var(--primary-900);
  font-weight: 800;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-body {
  padding: 1.6rem;
  overflow-y: auto;
  flex: 1;
}

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

/* ==========================================================================
   CATATAN KAKI (FOOTER) RESMI LMS - BOTANICAL & RESPONSIVE
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-top: 3px solid var(--primary-300);
  padding: 3rem 0 1.5rem;
  margin-top: 3.5rem;
  position: relative;
  box-shadow: 0 -4px 20px rgba(22, 101, 52, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

/* Footer Brand & Info */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-leaf);
  background: linear-gradient(135deg, var(--sprout-lime-400), var(--primary-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.2;
}

.footer-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-pink-600);
  margin-top: 0.15rem;
}

.footer-desc {
  font-size: 0.86rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

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

/* Footer Credits Card (Dosen Pengampu & Anggota Kelompok) */
.footer-credits-card {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.credit-block {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  border: 1.5px solid var(--border-light);
}

.lecturer-block {
  border-color: var(--primary-400);
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.team-block {
  border-color: var(--accent-pink-200);
  background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 100%);
}

.credit-badge-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

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

.badge-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--primary-800);
  text-transform: uppercase;
}

.team-block .badge-title {
  color: var(--accent-pink-600);
}

/* Person Card (Dosen Pengampu) */
.person-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.person-avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border: 2px solid var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.person-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.25;
}

.person-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Team Members Grid (Anggota Kelompok) */
.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
}

.team-member-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary-200);
  transition: all 0.2s ease;
}

.team-member-pill:hover {
  border-color: var(--accent-pink-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.12);
}

.member-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.member-meta {
  display: flex;
  flex-direction: column;
}

.member-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.member-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1.5px dashed var(--primary-200);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-bottom-shortcuts {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-shortcut-btn {
  background: #ffffff;
  border: 1.5px solid var(--primary-300);
  color: var(--primary-800);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.footer-shortcut-btn:hover {
  background: var(--primary-100);
  border-color: var(--primary-500);
  transform: translateY(-1px);
}

/* TOAST NOTIFICATION */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #064e3b;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  border: 1px solid var(--primary-400);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN (LAPTOP & SMARTPHONE HP RAMAH SISWA)
   ========================================================================== */

/* LAPTOP KECIL & TABLET LANDSCAPE (<= 992px) */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .menu-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* TABLET PORTRAIT & SMARTPHONE HP (<= 768px) */
@media (max-width: 768px) {
  /* Mencegah auto-zoom di iOS dan browser mobile HP */
  .form-control, input, select, textarea {
    font-size: 16px !important;
  }

  /* Target sentuh ergonomis jari siswa pada HP (min 44px) */
  .btn, .nav-tab-btn, .footer-shortcut-btn, .quiz-option-label {
    min-height: 44px;
  }

  /* Top Navbar di HP */
  .top-navbar {
    padding: 0.5rem 0;
  }
  .nav-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .brand {
    justify-content: flex-start;
  }
  .brand-badge {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }
  .brand-text h1 {
    font-size: 1.05rem;
  }
  .brand-text span {
    font-size: 0.7rem;
  }
  .nav-controls {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
  }
  .nav-controls .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }
  .session-timer-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }

  /* Slide Nav Bar di HP */
  .slide-nav-bar {
    top: 0;
    padding: 0.45rem 0;
  }
  .slide-nav-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .slide-breadcrumbs {
    font-size: 0.8rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .slide-nav-actions {
    gap: 0.35rem;
  }
  .slide-nav-actions .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }

  /* Hero Layar Depan di HP */
  .hero-banner-wrapper {
    margin: 0.75rem auto 1.5rem;
  }
  .hero-banner-box {
    border-radius: var(--radius-md);
    border-width: 2px;
  }
  .hero-banner-footer {
    margin-top: 0.75rem;
    width: 100%;
  }
  .hero-card {
    padding: 2.25rem 1.25rem;
    margin: 1rem 0 1.75rem;
  }
  .hero-title {
    font-size: 1.55rem;
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 0.92rem;
  }
  .btn-hero-start {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1.15rem;
  }

  /* Menu Grid Kumpulan Ikon di HP */
  .menu-icon-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .menu-card {
    padding: 1.25rem;
  }

  /* Diagram Rantai Makanan & Input Flow di HP */
  .chain-flow {
    flex-direction: column;
    padding: 1.25rem 1rem;
  }
  .chain-arrow {
    transform: rotate(90deg);
    margin: 0.2rem 0;
  }
  .chain-input-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .chain-input-box {
    width: 100%;
    min-width: 100%;
  }
  .chain-input-arrow {
    transform: rotate(90deg);
    padding: 0.2rem 0;
  }

  /* Audio Narrator Bar di HP */
  .audio-narrator-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  .audio-narrator-bar .btn {
    width: 100%;
  }

  /* Ruang Multi Format di HP */
  .module-download-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }
  .download-banner-info {
    min-width: unset;
  }
  .download-banner-actions {
    width: 100%;
  }
  .download-banner-actions .btn {
    width: 100%;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .infographic-grid {
    grid-template-columns: 1fr;
  }

  /* LKPD di HP */
  .lkpd-timer-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1rem;
  }
  .lkpd-timer-time {
    font-size: 2rem;
  }
  .supervision-inputs {
    grid-template-columns: 1fr;
  }

  /* Refleksi Emoticon di HP */
  .emoticon-picker {
    gap: 0.75rem;
  }
  .emoticon-btn {
    min-width: 85px;
    padding: 0.85rem 0.65rem;
  }
  .emoticon-btn .emo-icon {
    font-size: 2.2rem;
  }
  .emoticon-btn .emo-label {
    font-size: 0.75rem;
  }

  /* Footer di HP */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .team-members-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-bottom-shortcuts {
    width: 100%;
    justify-content: center;
  }
}

/* SMARTPHONE COMPACT (<= 480px, e.g. layar HP 360px - 412px) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.85rem;
  }
  .content-card {
    padding: 1.25rem 0.95rem;
    border-radius: var(--radius-md);
  }
  .content-header {
    margin-bottom: 1.25rem;
  }
  .content-title {
    font-size: 1.25rem;
  }
  .hero-title {
    font-size: 1.35rem;
  }
  .brand-text span {
    display: none;
  }
  .slide-breadcrumbs {
    display: none;
  }
  .slide-nav-inner {
    justify-content: center;
  }
  .person-card {
    flex-direction: column;
    text-align: center;
  }
  .person-name {
    font-size: 1.05rem;
  }
}

/* PRINT STYLESHEET */
@media print {
  .top-navbar, .slide-nav-bar, .site-footer, .nav-controls, .btn, .audio-narrator-bar {
    display: none !important;
  }
  .slide-section {
    display: block !important;
    page-break-after: always;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}
