/* ==========================================================================
   VUCA Axloq — Gamified EdTech Design System (Duolingo + Kahoot + Zehnly)
   Version: 2.0 (Modern Polish, LMS Layout, Kahoot Test, Dark Mode, Print Ready)
   ========================================================================== */

/* --- 1. DESIGN TOKENS & VARIABLES --- */
:root {
  /* Gamified Primary Palette */
  --green: #58cc02;
  --green-dark: #46a302;
  --green-soft: #ebfbee;
  --blue: #1cb0f6;
  --blue-dark: #1899d6;
  --blue-soft: #e9f7fe;
  --purple: #9333ea;
  --purple-dark: #7e22ce;
  --purple-soft: #f5f3ff;
  --kahoot: #46178f;
  --kahoot-dark: #320f66;
  --kahoot-soft: #ede9fe;
  --gold: #ffc800;
  --gold-dark: #e5a100;
  --gold-soft: #fef9c3;
  --red: #ff4b4b;
  --red-dark: #ea2b2b;
  --red-soft: #fee2e2;
  --orange: #ff9600;
  --orange-dark: #e08600;
  --orange-soft: #ffedd5;

  /* Kahoot Answer Colors */
  --kh-red: #e21b3c;
  --kh-red-dark: #b8142f;
  --kh-blue: #1368ce;
  --kh-blue-dark: #0f4ea3;
  --kh-yellow: #d89e00;
  --kh-yellow-dark: #b38300;
  --kh-green: #26890c;
  --kh-green-dark: #1e6e09;

  /* Neutrals & Surfaces (Light Mode) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-bold: #cbd5e1;

  /* Shadows & Radius */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 10px 25px -4px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-3d: 0 4px 0 var(--border-bold);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Typography Tokens */
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", "Fredoka", "Nunito", sans-serif;
  --font-hero: "Fredoka", "Plus Jakarta Sans", "Nunito", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark Theme Support --- */
[data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-surface: #151d30;
  --bg-surface-elevated: #1e293b;
  --bg-muted: #1e293b;
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-color: #243048;
  --border-bold: #334155;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.55);
  --shadow-3d: 0 4px 0 #1e293b;
  --green-soft: rgba(88, 204, 2, 0.15);
  --blue-soft: rgba(28, 176, 246, 0.15);
  --purple-soft: rgba(147, 51, 234, 0.15);
  --kahoot-soft: rgba(70, 23, 143, 0.25);
  --gold-soft: rgba(255, 200, 0, 0.15);
  --red-soft: rgba(255, 75, 75, 0.15);
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background-color: var(--bg-body);
  color: var(--text-body);
  min-height: 100vh;
  line-height: 1.68;
  font-size: 1rem;
  font-weight: 500;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle background accent glow */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(147, 51, 234, 0.07), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(88, 204, 2, 0.08), transparent 30%),
    radial-gradient(circle at 85% 85%, rgba(28, 176, 246, 0.08), transparent 35%);
}

.blob {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.25;
  animation: floaty 10s ease-in-out infinite;
}
.blob-a { width: 220px; height: 220px; background: var(--green); border-radius: 45% 55% 60% 40%; top: 60px; left: -60px; }
.blob-b { width: 180px; height: 180px; background: var(--purple); border-radius: 60% 40% 50% 50%; top: 45%; right: -50px; animation-delay: -3s; }
.blob-c { width: 150px; height: 150px; background: var(--gold); border-radius: 50% 60% 40% 50%; bottom: 40px; left: 10%; animation-delay: -6s; }

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

@keyframes pop-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

img { max-width: 100%; display: block; }
a { color: var(--blue-dark); text-decoration: none; font-weight: 700; transition: var(--transition); }
a:hover { color: var(--blue); text-decoration: none; }

h1, h2, h3, h4, h5, .display {
  font-family: var(--display);
  color: var(--text-main);
  margin: 0 0 0.45em;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h4, h5 {
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

/* Tabular figures for gamified counters and badges */
.stat-pill, .unit-score, .badge, .slider-count, .path-num, .result-score-circle {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}


.wrap {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- 3. TOPBAR & NAVIGATION --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
[data-theme="dark"] .topbar {
  background: rgba(21, 29, 48, 0.92);
  border-bottom-color: var(--border-color);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.22rem;
}
.brand:hover { text-decoration: none; color: var(--text-main); }

.brand-panda {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
  box-shadow: 0 3px 0 var(--green-dark);
  transition: transform 0.25s ease;
}
.brand:hover .brand-panda {
  transform: rotate(-8deg) scale(1.06);
}

.brand-badge {
  font-size: 0.65rem;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 800;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  transition: var(--transition);
}
.nav-link:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
  text-decoration: none;
}
.nav-link.is-active {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 900;
}

/* User stat badges */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-weight: 900;
  font-size: 0.86rem;
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
  user-select: none;
}
.stat-pill.xp { color: var(--gold-dark); background: var(--gold-soft); border-color: #fde047; }
.stat-pill {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  user-select: none;
}
.stat-pill:hover {
  transform: scale(1.08);
}
.stat-pill:active {
  transform: scale(0.95);
}

.stat-pill.xp {
  animation: duo-zap-pulse 3.5s ease-in-out infinite;
}
.stat-pill.streak {
  color: var(--red);
  background: var(--red-soft);
  border-color: #fca5a5;
  animation: duo-fire-flicker 2.6s ease-in-out infinite;
}
.stat-pill.streak:hover {
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.65));
}
.stat-pill.gem {
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-color: #bae6fd;
  animation: duo-gem-glint 4s ease-in-out infinite;
}

@keyframes duo-fire-flicker {
  0%, 100% { transform: rotate(-1.5deg) scale(1); }
  25% { transform: rotate(2deg) scale(1.04); }
  50% { transform: rotate(-2deg) scale(0.97); }
  75% { transform: rotate(1.5deg) scale(1.03); }
}

@keyframes duo-zap-pulse {
  0%, 82%, 100% { filter: none; }
  88% { filter: drop-shadow(0 0 7px rgba(255, 200, 0, 0.9)); transform: scale(1.06); }
  94% { filter: none; transform: scale(1); }
}

@keyframes duo-gem-glint {
  0%, 80%, 100% { filter: none; }
  85% { filter: drop-shadow(0 0 8px rgba(28, 176, 246, 0.95)); transform: scale(1.05); }
  92% { filter: none; transform: scale(1); }
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.theme-toggle:hover {
  color: var(--gold-dark);
  border-color: var(--gold);
  transform: scale(1.05);
}

/* Duolingo Sound Toggle Button */
.sound-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
}
.sound-toggle:hover {
  color: var(--green-dark);
  border-color: var(--green);
  transform: scale(1.05);
}
.sound-toggle.is-muted {
  color: var(--text-light);
  opacity: 0.55;
}

.mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: 12px;
  font-size: 1.3rem;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  padding: 12px 18px 20px;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border-color);
}
.nav-mobile.open {
  display: grid;
  gap: 8px;
}

/* Mobile Bottom Navigation Bar */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: var(--bg-surface);
  border-top: 2px solid var(--border-color);
  padding: 6px 12px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 10px;
}
.bottom-nav-item i { font-size: 1.15rem; }
.bottom-nav-item.is-active,
.bottom-nav-item:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
  text-decoration: none;
}

/* --- 4. TACTILE 3D BUTTONS (DUOLINGO STYLE) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 16px;
  padding: 12px 22px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-width 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease;
  user-select: none;
}
.btn:hover {
  text-decoration: none;
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-2px);
}
.btn:active,
.btn.is-pressed {
  transform: translateY(4px) !important;
  border-bottom-width: 0px !important;
  box-shadow: none !important;
}

.btn-green { background: var(--green); border-bottom: 4px solid var(--green-dark); }
.btn-blue { background: var(--blue); border-bottom: 4px solid var(--blue-dark); }
.btn-purple { background: var(--kahoot); border-bottom: 4px solid #2e0d63; }
.btn-gold { background: var(--gold); color: #1e293b; border-bottom: 4px solid var(--gold-dark); }
.btn-gold:hover { color: #1e293b; }
.btn-red { background: var(--red); border-bottom: 4px solid var(--red-dark); }
.btn-orange { background: var(--orange); border-bottom: 4px solid var(--orange-dark); }
.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 2px solid var(--border-color);
  border-bottom: 4px solid var(--border-bold);
}
.btn-ghost:hover { color: var(--text-main); background: var(--bg-muted); }
.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue);
  border-bottom: 4px solid var(--blue-dark);
}
.btn-sm { padding: 8px 14px; font-size: 0.8rem; border-radius: 12px; border-bottom-width: 3px; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: 18px; }
.btn-block { width: 100%; }

/* Duolingo Button Gleam Sweep */
.btn-green,
.btn-purple,
.btn-blue,
.btn-duo-shine {
  position: relative;
  overflow: hidden;
}
.btn-green::after,
.btn-purple::after,
.btn-blue::after,
.btn-duo-shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: duo-btn-gleam 4.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
@keyframes duo-btn-gleam {
  0%, 65% { left: -70%; }
  85%, 100% { left: 150%; }
}

/* --- 5. CARDS & GENERAL LAYOUT --- */
.card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
}
.card-body { padding: 22px; }

.page {
  position: relative;
  z-index: 1;
  padding: 24px 0 96px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 18px;
  flex-wrap: wrap;
}
.section-title h1,
.section-title h2 { margin: 0; font-size: 1.65rem; }

.meta {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-muted);
  color: var(--text-main);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 800;
}
.badge.ok { background: var(--green-soft); color: var(--green-dark); }
.badge.xp { background: var(--gold-soft); color: var(--gold-dark); }
.badge.purple { background: var(--purple-soft); color: var(--purple-dark); }

.progress {
  height: 12px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #84e82c);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.progress > span::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 50%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: duo-progress-stream 2.2s infinite ease-in-out;
}
@keyframes duo-progress-stream {
  0% { left: -70%; }
  60%, 100% { left: 160%; }
}

/* --- 6. HERO SECTION --- */
.hero {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 204, 2, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-copy { min-width: 0; z-index: 1; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--kahoot-soft);
  color: var(--kahoot);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
[data-theme="dark"] .hero-kicker { color: #c4b5fd; }

.hero h1 {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  margin: 10px 0 12px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-body);
  font-size: 1.06rem;
  max-width: 620px;
  margin-bottom: 20px;
}

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

/* Mascot Companion & Speech Bubble (Panda Maslahati) */
.mascot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Speech Bubble (Panda Maslahati) on Top */
.mascot-bubble {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 3px solid var(--text-main);
  border-radius: 22px;
  padding: 16px 20px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: bubble-float 3.5s ease-in-out infinite;
}
[data-theme="dark"] .mascot-bubble {
  border-color: var(--border-bold);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4);
}
.mascot-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.16);
}

/* Speech bubble downward pointer pointing to Panda */
.mascot-bubble::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 13px solid var(--text-main);
}
.mascot-bubble::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid var(--bg-surface);
  z-index: 1;
}
[data-theme="dark"] .mascot-bubble::after {
  border-top-color: var(--border-bold);
}

.bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.bubble-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--kahoot);
  background: var(--kahoot-soft);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
[data-theme="dark"] .bubble-tag { color: #c4b5fd; }

.bubble-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.bubble-next-btn:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-color: var(--blue);
}

.bubble-text {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bubble-text.fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

.bubble-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-color);
}

.bubble-dots {
  display: flex;
  gap: 5px;
}
.bubble-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-bold);
  transition: all 0.3s ease;
}
.bubble-dots span.is-active {
  background: var(--green);
  width: 16px;
  border-radius: var(--radius-full);
}

/* Mascot Box (Panda + Wave Badge) */
.mascot-box {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.mascot-panda {
  width: min(210px, 100%);
  height: auto;
  border-radius: 24px;
  animation: panda-hero 3.2s ease-in-out infinite;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.12));
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mascot-box:hover .mascot-panda {
  transform: scale(1.06) rotate(1.5deg);
}

/* Duolingo Mascot Squish & Stretch on Click */
.mascot-box.is-squished .mascot-panda {
  animation: duo-squish-stretch 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes duo-squish-stretch {
  0% { transform: scale(1, 1); }
  20% { transform: scale(1.22, 0.78) translateY(12px); }
  40% { transform: scale(0.85, 1.18) translateY(-18px); }
  60% { transform: scale(1.10, 0.92) translateY(4px); }
  80% { transform: scale(0.97, 1.03) translateY(-2px); }
  100% { transform: scale(1, 1) translateY(0); }
}

/* Speech Bubble Wobble on Quote Change */
.mascot-bubble.is-wobbling {
  animation: duo-bubble-wobble 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes duo-bubble-wobble {
  0% { transform: scale(0.92) rotate(-3deg); }
  50% { transform: scale(1.05) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.panda-wave-badge {
  position: absolute;
  bottom: 8px;
  right: -8px;
  background: var(--bg-surface);
  border: 2px solid var(--text-main);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
  user-select: none;
  animation: bounce 2.8s ease-in-out infinite;
}
[data-theme="dark"] .panda-wave-badge {
  border-color: var(--border-bold);
}

.panda-wave-badge .wave-icon {
  display: inline-block;
  font-size: 1.25rem;
  transform-origin: 70% 70%;
  animation: wave-hand 1.8s ease-in-out infinite;
}

@keyframes wave-hand {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(18deg) scale(1.15); }
  40%, 80% { transform: rotate(-14deg) scale(1.15); }
}

@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes panda-hero {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}


/* --- 7. VUCA TILES (INTERACTIVE) --- */
.vuca-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 34px;
}

.vuca-tile {
  color: #fff;
  border-radius: 20px;
  padding: 20px 18px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.vuca-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.16);
}

.vuca-tile b {
  font-family: var(--display);
  font-size: 2.8rem;
  line-height: 1;
}
.vuca-tile span {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
}
.vuca-tile small {
  font-size: 0.78rem;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
}

.vuca-v { background: linear-gradient(135deg, #ff4b4b, #e11d48); }
.vuca-u { background: linear-gradient(135deg, #1cb0f6, #0284c7); }
.vuca-c { background: linear-gradient(135deg, #ffc800, #d97706); color: #1e293b; }
.vuca-c b, .vuca-c span { color: #1e293b; }
.vuca-a { background: linear-gradient(135deg, #7c3aed, #46178f); }

/* --- 7.1 PROJECT OVERVIEW, LEADER & MISSION --- */
.project-overview-section {
  margin: 32px 0 45px;
  position: relative;
}

.leader-mission-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .leader-mission-grid {
    grid-template-columns: 1fr;
  }
}

/* Leader Card */
.leader-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-bottom: 5px solid var(--border-bold);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--purple);
}

.leader-card-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.16), transparent 70%);
  pointer-events: none;
}

.leader-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--kahoot-soft);
  color: var(--kahoot);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
[data-theme="dark"] .leader-badge-top {
  color: #c4b5fd;
}

.leader-avatar-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.leader-avatar-ring {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--kahoot), var(--purple), var(--blue));
  box-shadow: 0 8px 24px rgba(110, 31, 206, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.leader-card:hover .leader-avatar-ring {
  transform: scale(1.03) rotate(2deg);
}

.leader-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #f1f5f9;
  border: 3px solid var(--bg-surface);
}

.leader-status-chip {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  color: var(--green-dark);
  border: 2px solid var(--green);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 5px;
}

.leader-info {
  margin-top: 4px;
  width: 100%;
}

.leader-name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 6px 0 4px;
  line-height: 1.3;
}

.leader-role {
  color: var(--kahoot);
  font-weight: 800;
  font-size: 0.84rem;
  margin-bottom: 14px;
  line-height: 1.4;
}
[data-theme="dark"] .leader-role {
  color: #a78bfa;
}

.leader-quote {
  position: relative;
  background: var(--bg-muted);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  text-align: left;
  border-left: 4px solid var(--purple);
}

.leader-quote .quote-icon {
  font-size: 0.88rem;
  color: var(--purple);
  margin-bottom: 4px;
  display: block;
}

.leader-quote p {
  font-size: 0.82rem;
  color: var(--text-body);
  font-style: italic;
  line-height: 1.48;
  margin: 0;
}

.leader-competencies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.comp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-muted);
  color: var(--text-body);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
}
.comp-pill i {
  color: var(--purple);
}

.leader-actions {
  width: 100%;
  margin-top: auto;
}

/* Mission Card */
.mission-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-bottom: 5px solid var(--border-bold);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.mission-card:hover {
  border-color: var(--blue);
}

.mission-header {
  margin-bottom: 16px;
}

.mission-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
[data-theme="dark"] .mission-kicker {
  color: #7dd3fc;
}

.mission-header h3 {
  font-family: var(--font-hero);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.mission-main-text {
  margin-bottom: 20px;
}

.mission-main-text .lead-text {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text-main);
  margin-bottom: 12px;
  background: var(--bg-muted);
  padding: 14px 16px;
  border-radius: 14px;
  border-left: 4px solid var(--blue);
}

.mission-main-text .sub-text {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-body);
  margin: 0;
}

/* 4 Strategic Pillars */
.mission-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
  .mission-pillars {
    grid-template-columns: 1fr;
  }
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-muted);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.pillar-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  color: #fff;
}

.pillar-icon.bg-blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.pillar-icon.bg-green { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.pillar-icon.bg-purple { background: linear-gradient(135deg, var(--purple), var(--purple-dark)); }
.pillar-icon.bg-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #1e293b; }

.pillar-content h4 {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 3px;
}

.pillar-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Tasks Container */
.tasks-container {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.tasks-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.tasks-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-soft);
  color: #854d0e;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
[data-theme="dark"] .tasks-badge {
  color: #fef08a;
}

.tasks-title {
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 8px;
}

.tasks-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .tasks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tasks-grid {
    grid-template-columns: 1fr;
  }
}

.task-card {
  background: var(--bg-body);
  border: 2px solid var(--border-color);
  border-bottom: 4px solid var(--border-bold);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.task-card.task-v1:hover { border-color: var(--blue); }
.task-card.task-v2:hover { border-color: var(--purple); }
.task-card.task-v3:hover { border-color: var(--green); }
.task-card.task-v4:hover { border-color: var(--orange); }
.task-card.task-v5:hover { border-color: var(--red); }

.task-num-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 14px;
}

.task-v1 .task-icon-box { background: linear-gradient(135deg, #1cb0f6, #0284c7); }
.task-v2 .task-icon-box { background: linear-gradient(135deg, #9333ea, #6b21a8); }
.task-v3 .task-icon-box { background: linear-gradient(135deg, #58cc02, #3f9b02); }
.task-v4 .task-icon-box { background: linear-gradient(135deg, #ff9600, #d97706); }
.task-v5 .task-icon-box { background: linear-gradient(135deg, #ff4b4b, #dc2626); }

.task-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.task-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.task-body h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 10px;
  line-height: 1.35;
}

.task-body p {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.58;
  margin: 0 0 14px;
}

.task-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.task-chips span {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.task-chips span i {
  color: var(--green);
  font-size: 0.65rem;
}

/* Outcomes Strip */
.outcomes-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .outcomes-strip {
    grid-template-columns: 1fr;
  }
}

.outcome-box {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.outcome-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-bold);
}

.outcome-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--kahoot-soft);
  color: var(--kahoot);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
[data-theme="dark"] .outcome-icon {
  color: #c4b5fd;
}

.outcome-text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-body);
}

.outcome-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 2px;
  font-family: var(--display);
}

/* Footer Styling */
.footer {
  border-top: 2px solid var(--border-color);
  background: var(--bg-surface);
  padding: 26px 0;
  margin-top: 50px;
  text-align: center;
}
.footer-content p {
  margin: 4px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-sub {
  font-size: 0.84rem;
  color: var(--text-body);
}
.footer-sub strong {
  color: var(--kahoot);
}
[data-theme="dark"] .footer-sub strong {
  color: #c4b5fd;
}

/* --- 8. INFOGRAPHICS SLIDER (MODERNIZED & LIGHTBOX) --- */
.slider {
  margin: 16px 0 42px;
  position: relative;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.slider-head h2 { margin: 0; font-size: 1.6rem; }

.slider-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.slider-ctrl-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-soft);
}
.slider-ctrl-btn:active {
  transform: scale(0.96);
}

.slider-count {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-weight: 900;
  font-size: 0.88rem;
}

.slider-viewport {
  position: relative;
  overflow: hidden;
  padding: 12px 0 16px;
  border-radius: 26px;
}

.slider-track {
  display: flex;
  gap: 22px;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
}

.slider-card {
  flex: 0 0 min(84%, 780px);
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 3px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transform: scale(0.93);
  opacity: 0.45;
  transition: transform 0.45s ease, opacity 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
  background: #0f172a;
  cursor: pointer;
}

.slider-card.is-active {
  transform: scale(1);
  opacity: 1;
  border-color: var(--purple);
  box-shadow: 0 14px 34px rgba(147, 51, 234, 0.22);
}
.slider-card.is-side { transform: scale(0.95); opacity: 0.72; }

.slider-card-img-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #0f172a;
}

.slider-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.slider-card:hover img {
  transform: scale(1.03);
}

.slider-card-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.card-zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  transition: var(--transition);
}
.slider-card:hover .card-zoom-badge {
  background: var(--purple);
  border-color: var(--purple);
  transform: scale(1.05);
}

.slider-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 24px 20px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.94));
  color: #fff;
  z-index: 2;
}

.slider-caption h3 {
  margin: 6px 0 4px;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.slider-caption p {
  margin: 0;
  font-weight: 600;
  opacity: 0.92;
  font-size: 0.96rem;
  line-height: 1.4;
}

.slider-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #1e293b;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 54px;
  height: 54px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--border-bold);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  transition: transform 0.1s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.slider-btn:hover {
  background: var(--purple-soft);
  color: var(--purple);
  border-color: var(--purple);
}
.slider-btn:active { transform: translateY(calc(-50% + 3px)); box-shadow: none; }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.slider-timer {
  height: 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 12px 4px 14px;
}
.slider-timer span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--purple));
  border-radius: var(--radius-full);
}
.slider-timer span.is-run {
  animation: timer 5s linear forwards;
}

/* Thumbnails */
.slider-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scroll-behavior: smooth;
}
.thumb {
  flex: 0 0 80px;
  height: 54px;
  border: 3px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--bg-muted);
  opacity: 0.5;
  transition: var(--transition);
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active {
  border-color: var(--purple);
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
}

/* Lightbox Modal (Fullscreen Infographic Reader) */
.infographic-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: pop-in 0.25s ease;
}
.infographic-modal.is-open {
  display: flex;
}

.modal-content-box {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 26px;
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 2px solid var(--border-color);
}
.modal-head h3 { margin: 0; font-size: 1.25rem; }

.modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-muted);
  color: var(--text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}
.modal-close-btn:hover {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red);
}

.modal-body {
  padding: 20px 24px;
  text-align: center;
}
.modal-body img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  margin: 0 auto 16px;
  border-radius: 16px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-card);
}
.modal-caption {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-body);
  max-width: 750px;
  margin: 0 auto 16px;
}

.modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-top: 2px solid var(--border-color);
  background: var(--bg-muted);
  border-radius: 0 0 24px 24px;
  flex-wrap: wrap;
  gap: 12px;
}


/* --- 9. DOCUMENTS ROW & ENHANCED DOCUMENT GRID --- */
.doc-section {
  margin: 24px 0 42px;
}

.doc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.doc-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.doc-filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.doc-filter-btn.is-active {
  background: var(--blue);
  border-color: var(--blue-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}
.doc-filter-btn.is-active i {
  color: #fff !important;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-bottom: 4px solid var(--border-bold);
  border-radius: 20px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
}

.doc-card.is-word::before {
  background: #2563eb;
}

.doc-card.is-pdf::before {
  background: #ef4444;
}

.doc-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.doc-card.is-word:hover {
  border-color: #2563eb;
}

.doc-card.is-pdf:hover {
  border-color: #ef4444;
}

.doc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.doc-card-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

.doc-card-badge.type-badge {
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.doc-card-badge.ext-badge.word {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-weight: 900;
}

.doc-card-badge.ext-badge.pdf {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-weight: 900;
}

.doc-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-main);
}

.doc-card-title i {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.doc-card.is-word .doc-card-title i {
  color: #2563eb;
}

.doc-card.is-pdf .doc-card-title i {
  color: #ef4444;
}

.doc-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  margin-top: auto;
}

.doc-card-foot .doc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 800;
}

.doc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-bottom: 4px solid var(--border-bold);
  border-radius: 16px;
  padding: 12px 18px;
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.92rem;
  transition: var(--transition);
}

.doc-chip:hover {
  text-decoration: none;
  transform: translateY(-2px);
  color: var(--blue-dark);
  border-color: var(--blue);
}

.doc-chip i { font-size: 1.25rem; }
.doc-chip .fa-file-word { color: #2563eb; }
.doc-chip .fa-file-pdf { color: #dc2626; }

/* --- 10. LEARNING PATH (SNAKE / MILESTONE TRAIL) --- */
.unit {
  margin-bottom: 24px;
}

.unit-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #fff;
  border-radius: 22px;
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.14);
}
.unit-0 .unit-banner { background: linear-gradient(135deg, #10b981, #0284c7); }
.unit-1 .unit-banner { background: linear-gradient(135deg, #8b5cf6, #46178f); }
.unit-2 .unit-banner { background: linear-gradient(135deg, #f97316, #ef4444); }
.unit-3 .unit-banner { background: linear-gradient(135deg, #0284c7, #4f46e5); }

.unit-banner strong { font-size: 1.22rem; font-family: var(--display); letter-spacing: -0.01em; }
.unit-banner p { margin: 4px 0 0; opacity: 0.92; font-weight: 600; font-size: 0.92rem; }
.unit-score {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-weight: 900;
  white-space: nowrap;
}

/* Milestone Path Grid */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
  position: relative;
}

.path-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.path-card:hover {
  text-decoration: none;
  transform: translateY(-8px) scale(1.02);
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
}
.path-card:active {
  transform: translateY(2px) scale(0.99) !important;
}
.path-card.is-done {
  border-color: #86efac;
}

.path-rail {
  display: flex;
  justify-content: center;
  padding: 18px 14px 4px;
}

.path-num {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 900;
  border: 4px solid var(--bg-surface);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.path-card:hover .path-num {
  transform: scale(1.12) rotate(-6deg);
}

/* Duolingo Active Lesson Beacon Ripple Ring */
.path-card.is-active-lesson .path-num::before,
.path-card.is-active-lesson .path-num::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid var(--green);
  animation: duo-beacon-ring 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
  opacity: 0;
}
.path-card.is-active-lesson .path-num::after {
  animation-delay: 1.1s;
}

@keyframes duo-beacon-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  60% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Duolingo Completed Star Sparkle */
.path-card.is-done .path-num i.fa-star {
  animation: duo-star-twinkle 3.2s ease-in-out infinite;
  display: inline-block;
  color: #ffc800;
  filter: drop-shadow(0 0 6px rgba(255, 200, 0, 0.85));
}
@keyframes duo-star-twinkle {
  0%, 75%, 100% { transform: scale(1) rotate(0deg); }
  82% { transform: scale(1.3) rotate(18deg); filter: drop-shadow(0 0 14px rgba(255, 200, 0, 1)); }
  90% { transform: scale(0.92) rotate(-10deg); }
}

.path-body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.path-body h3 {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
  color: var(--text-main);
}

.path-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

/* Duolingo Unit Chest (Treasure Wiggle & Hop) */
.unit-chest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 14px 0 30px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.unit-chest:active {
  transform: scale(0.92);
}
.unit-chest span {
  font-size: 2.5rem;
  display: inline-block;
  transform-origin: bottom center;
  animation: duo-chest-wiggle 3.4s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.unit-chest:hover span {
  transform: scale(1.25) translateY(-6px);
  filter: drop-shadow(0 8px 16px rgba(255, 200, 0, 0.45));
}
.unit-chest.is-open span {
  animation: pulse-subtle 1.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(234, 179, 8, 0.4));
}
.unit-chest small {
  font-weight: 800;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.unit-chest:hover small {
  color: var(--text-main);
}

@keyframes duo-chest-wiggle {
  0%, 78%, 100% { transform: rotate(0deg) scale(1); }
  82% { transform: rotate(-12deg) scale(1.16) translateY(-5px); }
  86% { transform: rotate(12deg) scale(1.16) translateY(-5px); }
  90% { transform: rotate(-8deg) scale(1.14) translateY(-2px); }
  94% { transform: rotate(8deg) scale(1.14) translateY(-2px); }
}

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

/* --- 11. LMS COURSE DETAIL (2-COLUMN MODERN LAYOUT) --- */
.lms-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.lms-main {
  min-width: 0;
}

.lms-sidebar {
  position: sticky;
  top: 88px;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px;
}

.lms-sidebar-head {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 14px;
}
.lms-sidebar-head h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.lms-course-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.lms-course-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-muted);
  border: 2px solid transparent;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
}
.lms-course-link:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-dark);
  text-decoration: none;
}
.lms-course-link.is-active {
  background: var(--blue-soft);
  border-color: var(--blue-dark);
  color: var(--blue-dark);
  font-weight: 800;
}
.lms-course-link .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border-bold);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.lms-course-link.is-done .num {
  background: var(--green);
}
.lms-course-link.is-active .num {
  background: var(--blue-dark);
}

/* Video Wrapper */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  margin-bottom: 22px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-card);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lesson Content Typography */
.lesson-article {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
}
.lesson-article h2, .lesson-article h3 {
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}

/* Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}
.image-gallery figure { margin: 0; }
.image-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  transition: transform 0.2s ease;
}
.image-gallery img:hover { transform: scale(1.03); }

/* Sticky Lesson Control Bar */
.lesson-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 2px solid var(--border-color);
  flex-wrap: wrap;
}

/* --- 12. KAHOOT-STYLE TEST INTERFACE --- */
.kahoot-card-head {
  background: linear-gradient(135deg, var(--kahoot), #6d28d9);
  color: #fff;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.16);
}
.kahoot-card-head h2 { color: #fff; margin: 0 0 6px; font-size: 1.6rem; }
.kahoot-card-head p { margin: 0; opacity: 0.92; font-weight: 600; }

.test-step-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 22px;
}

.test-step-q {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.35;
}

.kahoot-answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.kahoot-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 5px 0 rgba(0,0,0,0.16);
  transition: transform 0.1s ease, filter 0.15s ease, box-shadow 0.1s ease;
}
.kahoot-choice:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(0,0,0,0.2);
}
.kahoot-choice:active {
  transform: translateY(3px);
  box-shadow: none;
}

.kahoot-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kahoot-choice.is-selected {
  outline: 4px solid #fff;
  filter: brightness(1.1);
  transform: scale(1.02);
}

.kh-shape {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.kahoot-c0 { background: var(--kh-red); }
.kahoot-c1 { background: var(--kh-blue); }
.kahoot-c2 { background: var(--kh-yellow); color: #1e293b; }
.kahoot-c2 .kh-shape { background: rgba(0, 0, 0, 0.15); color: #1e293b; }
.kahoot-c3 { background: var(--kh-green); }

/* Result Hero */
.result-hero {
  text-align: center;
  padding: 40px 20px;
}
.result-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 16px auto;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--kahoot), #7c3aed);
  color: #fff;
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(70, 23, 143, 0.35);
}

/* --- 13. PROFESSIONAL ACADEMIC CERTIFICATE --- */
.cert-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0;
}

.certificate-frame {
  background: #fff;
  border: 10px double var(--gold);
  border-radius: 20px;
  padding: 44px 38px;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  color: #1e293b;
}

.certificate-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #eab308;
  border-radius: 12px;
  pointer-events: none;
}

.cert-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cert-title {
  font-family: var(--display);
  font-size: 2.6rem;
  letter-spacing: 0.12em;
  color: var(--kahoot);
  margin: 14px 0 10px;
  text-transform: uppercase;
}

.cert-recipient {
  font-family: var(--display);
  font-size: 2.2rem;
  color: #0f172a;
  border-bottom: 2px dashed #cbd5e1;
  display: inline-block;
  padding: 4px 24px;
  margin: 12px 0;
}

.cert-course {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--blue-dark);
  margin: 10px 0 20px;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.cert-seal {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px dashed var(--gold);
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(-10deg);
}

/* --- 14. AUTH & FORM CARDS --- */
.form-card {
  max-width: 460px;
  margin: 18px auto;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-main);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.invalid-feedback {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 4px;
}

/* Flash Messages */
.messages { list-style: none; padding: 0; margin: 0 0 20px; }
.messages li {
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 10px;
  border: 2px solid transparent;
  animation: pop-in 0.3s ease;
}
.messages .success { background: var(--green-soft); color: var(--green-dark); border-color: #86efac; }
.messages .error { background: var(--red-soft); color: var(--red-dark); border-color: #fca5a5; }
.messages .warning { background: var(--gold-soft); color: #854d0e; border-color: #fde047; }
.messages .info { background: var(--blue-soft); color: var(--blue-dark); border-color: #93c5fd; }

/* Footer */
.footer {
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 24px 0 40px;
}

/* --- 15. PRINT STYLES FOR CERTIFICATE --- */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .topbar, .bottom-nav, .theme-toggle, .btn, .footer, .bg-ambient, .blob {
    display: none !important;
  }
  .cert-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .certificate-frame {
    border: 10px double #d97706 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
}

/* --- 16. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 960px) {
  .lms-layout {
    grid-template-columns: 1fr;
  }
  .lms-sidebar {
    position: static;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
  .vuca-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kahoot-answers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .nav-desktop { display: none; }
  .mobile-actions { display: flex; }
  .menu-toggle { display: grid; place-items: center; }
  .bottom-nav { display: block; }
  .page { padding-bottom: 120px; }
  .slider-card { flex-basis: 90%; }
  .slider-card img { height: 230px; }
  .slider-btn { width: 42px; height: 42px; font-size: 1.2rem; }
  .certificate-frame { padding: 24px 18px; }
  .cert-title { font-size: 1.9rem; }
  .cert-recipient { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .vuca-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vuca-tile b { font-size: 2.2rem; }
  .path-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* --- 12. DUOLINGO PARTICLES, RIPPLE & AMBIENT ANIMATIONS --- */
.duo-float-particle {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  font-family: var(--font-hero);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffc800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 0 14px rgba(255, 200, 0, 0.7);
  animation: duo-float-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  user-select: none;
}

@keyframes duo-float-up {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.65);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -18px) scale(1.25);
  }
  65% {
    opacity: 1;
    transform: translate(-50%, -50px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -85px) scale(0.9);
  }
}

.duo-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: duo-ripple-spread 0.5s ease-out;
  pointer-events: none;
}

@keyframes duo-ripple-spread {
  to {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* ==========================================================================
   DUOLINGO 1:1 AUTHENTIC INTERACTIVE SHOWCASE STYLES
   Parsed and matched directly from https://ru.duolingo.com/
   ========================================================================== */

.duo-marketing-showcase {
  margin: 70px 0 50px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.duo-showcase-header {
  text-align: center;
  margin-bottom: 10px;
}

.duo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.duo-chip.green {
  background: rgba(88, 204, 2, 0.15);
  color: #58cc02;
  border: 1.5px solid rgba(88, 204, 2, 0.35);
}

.duo-showcase-title {
  font-family: var(--font-duo);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--text-main);
}

.duo-showcase-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 600;
  max-width: 620px;
  margin: 0 auto;
}

/* Feature Row */
.duo-feature-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 32px 24px;
  border-radius: 28px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.duo-feature-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(88, 204, 2, 0.4);
}

@media (min-width: 960px) {
  .duo-feature-row {
    flex-direction: row;
    gap: 60px;
    padding: 48px 56px;
  }
  .duo-row-flipped {
    flex-direction: row-reverse;
  }
}

.duo-feature-text {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
}

.duo-feature-h2 {
  font-family: var(--font-duo);
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
}

.duo-color-green { color: #58cc02; }
.duo-color-blue { color: #1cb0f6; }
.duo-color-orange { color: #ff9600; }
.duo-color-purple { color: #ce82ff; }

.duo-feature-desc {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

.duo-feature-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.duo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 800;
}
.duo-pill.green { background: rgba(88, 204, 2, 0.12); color: #46a302; }
.duo-pill.blue { background: rgba(28, 176, 246, 0.12); color: #0096e6; }
.duo-pill.orange { background: rgba(255, 150, 0, 0.12); color: #e07b00; }
.duo-pill.yellow { background: rgba(255, 200, 0, 0.15); color: #b8860b; }
.duo-pill.purple { background: rgba(206, 130, 255, 0.14); color: #9c27b0; }

/* Animation container */
@keyframes duoFloatSway {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.2deg);
  }
}

.duo-feature-anim-wrap {
  flex: 0.9;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: duoFloatSway 4.8s ease-in-out infinite;
}

.duo-row-flipped .duo-feature-anim-wrap {
  animation: duoFloatSway 5.4s ease-in-out infinite 0.9s;
}

.duo-anim-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.duo-anim-canvas svg,
.duo-anytime-canvas svg,
.duo-bottom-canvas svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.duo-anim-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

/* Tactile Duo Ripple Effect */
.duo-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 204, 2, 0.4) 0%, rgba(88, 204, 2, 0) 70%);
  pointer-events: none !important;
  transform: scale(0);
  animation: duoRippleKeyframes 0.55s ease-out forwards;
  z-index: 10;
}

@keyframes duoRippleKeyframes {
  0% {
    transform: scale(0.1);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Feature 5: Anytime Anywhere Card */
.duo-anytime-card {
  border-radius: 32px;
  background: linear-gradient(135deg, #18233c 0%, #0d1527 100%);
  border: 2px solid #283754;
  color: #fff;
  padding: 40px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: relative;
}

@media (min-width: 960px) {
  .duo-anytime-card {
    padding: 56px 64px;
  }
}

.duo-anytime-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .duo-anytime-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 48px;
  }
}

.duo-anytime-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
}

.duo-anytime-title {
  font-family: var(--font-duo);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.duo-anytime-desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #93a4c3;
  font-weight: 600;
  margin: 0;
}

.duo-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.duo-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-radius: 16px;
  background: #233352;
  border: 2px solid #3d4f75;
  border-bottom: 4px solid #141f33;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.duo-store-badge:hover {
  transform: translateY(-3px);
  background: #2d4168;
  border-color: #4f6696;
  color: #fff;
}

.duo-store-badge:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.duo-store-badge i {
  font-size: 1.8rem;
}

.duo-store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.duo-store-badge small {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #9cb1d6;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.duo-store-badge strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.duo-anytime-anim-wrap {
  flex: 1.1;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.duo-anytime-canvas {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Feature 6: Bottom Banner */
.duo-bottom-banner {
  border-radius: 32px;
  background: linear-gradient(135deg, #58cc02 0%, #46a302 100%);
  color: #fff;
  padding: 48px 28px;
  border: 2px solid #6ee311;
  border-bottom: 6px solid #3b8a00;
  box-shadow: 0 16px 36px rgba(88, 204, 2, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  gap: 28px;
}

@media (min-width: 960px) {
  .duo-bottom-banner {
    flex-direction: row;
    justify-content: space-between;
    padding: 56px 64px;
    text-align: left;
  }
}

.duo-bottom-content {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 580px;
  z-index: 2;
}

.duo-bottom-title {
  font-family: var(--font-duo);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.duo-bottom-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.duo-bottom-cta {
  align-self: flex-start;
  margin-top: 10px;
  background: #fff !important;
  color: #58cc02 !important;
  border-color: #e5e5e5 !important;
  border-bottom-color: #d1d5db !important;
  box-shadow: 0 4px 0 #d1d5db, 0 10px 20px rgba(0,0,0,0.15) !important;
  font-weight: 900 !important;
  padding: 14px 32px !important;
  font-size: 1.1rem !important;
  border-radius: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.duo-bottom-cta:hover {
  background: #f7f7f7 !important;
  color: #46a302 !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 0 #d1d5db, 0 14px 26px rgba(0,0,0,0.2) !important;
}

.duo-bottom-cta:active {
  transform: translateY(4px) scale(0.99) !important;
  box-shadow: 0 1px 0 #d1d5db !important;
}

.duo-bottom-anim-wrap {
  flex: 0.8;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.duo-bottom-canvas {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   SCROLL DYNAMICS & SVG ACCENT ENHANCEMENTS
   ========================================================================== */

@keyframes duoFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(3deg);
  }
}

@keyframes duoGlowPulse {
  0%, 100% {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
  }
  50% {
    filter: drop-shadow(0 6px 14px rgba(88, 204, 2, 0.4));
  }
}

.pillar-svg-accent {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: duoFloat 4s ease-in-out infinite;
  display: inline-block;
}

.pillar-item:nth-child(2) .pillar-svg-accent {
  animation-delay: 0.8s;
}

.pillar-item:nth-child(3) .pillar-svg-accent {
  animation-delay: 1.6s;
}

.pillar-item:nth-child(4) .pillar-svg-accent {
  animation-delay: 2.4s;
}

.pillar-item:hover .pillar-svg-accent {
  animation-play-state: paused;
  transform: scale(1.25) rotate(8deg);
}

/* Perspective & 3D Hardware acceleration for smooth scroll reactions */
.duo-marketing-showcase {
  perspective: 1200px;
}

[data-scroll-parallax="true"] {
  will-change: transform, box-shadow;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-parallax-target="visual"] {
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-parallax-target="text"] {
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Dynamic scroll direction momentum adjustments */
[data-scroll-dir="down"] .duo-feature-row {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
}

[data-scroll-dir="up"] .duo-feature-row {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* Smooth fade and scale for SVGs on load */
.duo-anim-placeholder {
  will-change: opacity, transform;
}

/* Anytime device interactive glow on scroll */
.duo-anytime-card[data-in-view="true"] {
  border-color: #3b527e;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(28, 176, 246, 0.12);
}



