  /* CSS Variables and Styles for the Web Page */
    :root {
      --learn-gradient: linear-gradient(135deg, #0d6efd, #20c997);
      --hero-dark: radial-gradient(circle at top left, rgba(13,110,253,.25), transparent 32%),
                   radial-gradient(circle at bottom right, rgba(32,201,151,.18), transparent 28%),
                   linear-gradient(135deg, #0b0f19 0%, #111827 55%, #1e293b 100%);
      --hero-light: radial-gradient(circle at top left, rgba(13,110,253,.12), transparent 32%),
                    radial-gradient(circle at bottom right, rgba(32,201,151,.12), transparent 28%),
                    linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
      --glass-dark: rgba(255,255,255,.07);
      --glass-light: rgba(255,255,255,.86);
      --border-dark: rgba(255,255,255,.10);
      --border-light: rgba(0,0,0,.08);
      --shadow-soft: 0 24px 54px rgba(0,0,0,.16);
      --shadow-card: 0 16px 35px rgba(0,0,0,.14);
    }

    html { scroll-behavior: smooth; }
    body { overflow-x: hidden; }

    .navbar {
      backdrop-filter: blur(14px);
      background: rgba(8,10,18,.78);
      border-bottom: 1px solid rgba(255,255,255,.08);
    }

    html[data-bs-theme="light"] .navbar {
      background: rgba(255,255,255,.88);
      border-bottom: 1px solid rgba(0,0,0,.06);
    }

    .hero {
      min-height: 92vh;
      display: flex;
      align-items: center;
      background: var(--hero-dark);
      position: relative;
      overflow: hidden;
    }

    html[data-bs-theme="light"] .hero {
      background: var(--hero-light);
    }

    .glass-card {
      border-radius: 1.6rem;
      border: 1px solid var(--border-dark);
      background: var(--glass-dark);
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow-soft);
    }

    html[data-bs-theme="light"] .glass-card {
      border-color: var(--border-light);
      background: var(--glass-light);
    }

    .section-space {
      padding: 5.5rem 0;
    }

    .btn-gradient {
      background: var(--learn-gradient);
      color: #fff;
      border: 0;
      box-shadow: 0 16px 35px rgba(13,110,253,.22);
    }

    .btn-gradient:hover {
      color: #fff;
      transform: translateY(-1px);
    }

    .theme-toggle {
      border-radius: 999px;
    }

    .icon-box {
      width: 58px;
      height: 58px;
      border-radius: 1rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.35rem;
      background: rgba(13,110,253,.14);
      color: #0d6efd;
      margin-bottom: 1rem;
    }

    .lesson-card {
      height: 100%;
      border-radius: 1.4rem;
      transition: transform .22s ease, box-shadow .22s ease;
      overflow: hidden;
    }

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

    .lesson-card-link {
      color: inherit;
      text-decoration: none;
      display: block;
      height: 100%;
    }

    .lesson-number {
      width: 42px;
      height: 42px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--learn-gradient);
      color: #fff;
      font-weight: 800;
    }

    .course-strip {
      display: flex;
      gap: 1rem;
      overflow-x: auto;
      padding-bottom: .75rem;
      scroll-snap-type: x mandatory;
    }

    .course-strip > .course-item {
      min-width: 310px;
      max-width: 310px;
      scroll-snap-align: start;
    }

    .course-strip::-webkit-scrollbar {
      height: 8px;
    }

    .course-strip::-webkit-scrollbar-thumb {
      background: rgba(13,110,253,.45);
      border-radius: 999px;
    }

    .level-header {
      max-width: 840px;
    }

    .mini-step {
      border-radius: 1.2rem;
      padding: 1rem;
      border: 1px solid rgba(148,163,184,.20);
      height: 100%;
    }

    @media (max-width: 991.98px) {
      .hero {
        min-height: auto;
        padding: 7rem 0 4rem;
      }

      .course-strip > .course-item {
        min-width: 280px;
        max-width: 280px;
      }
    }
  /* Styles specific to the lesson page */
    :root {
      --learn-gradient: linear-gradient(135deg, #0d6efd, #20c997);
      --learn-dark-hero: radial-gradient(circle at top left, rgba(13,110,253,.25), transparent 32%),
                         radial-gradient(circle at bottom right, rgba(32,201,151,.18), transparent 28%),
                         linear-gradient(135deg, #0b0f19, #111827 55%, #1e293b);
      --learn-light-hero: radial-gradient(circle at top left, rgba(13,110,253,.12), transparent 32%),
                          radial-gradient(circle at bottom right, rgba(32,201,151,.12), transparent 28%),
                          linear-gradient(135deg, #f8fbff, #ffffff);
      --glass-dark: rgba(255,255,255,.07);
      --glass-light: rgba(255,255,255,.86);
      --border-dark: rgba(255,255,255,.10);
      --border-light: rgba(0,0,0,.08);
      --shadow-soft: 0 24px 54px rgba(0,0,0,.16);
    }

    html { scroll-behavior: smooth; }
    body { overflow-x: hidden; }

    .navbar {
      backdrop-filter: blur(14px);
      background: rgba(8,10,18,.78);
      border-bottom: 1px solid rgba(255,255,255,.08);
    }

    html[data-bs-theme="light"] .navbar {
      background: rgba(255,255,255,.88);
      border-bottom: 1px solid rgba(0,0,0,.06);
    }

    .lesson-hero {
      padding: 7.5rem 0 3.5rem;
      background: var(--learn-dark-hero);
    }

    html[data-bs-theme="light"] .lesson-hero {
      background: var(--learn-light-hero);
    }

    .glass-card {
      border-radius: 1.5rem;
      border: 1px solid var(--border-dark);
      background: var(--glass-dark);
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow-soft);
    }

    html[data-bs-theme="light"] .glass-card {
      border-color: var(--border-light);
      background: var(--glass-light);
    }

    .btn-gradient {
      background: var(--learn-gradient);
      color: #fff;
      border: 0;
      box-shadow: 0 16px 35px rgba(13,110,253,.22);
    }

    .btn-gradient:hover {
      color: #fff;
      transform: translateY(-1px);
    }

    .theme-toggle {
      border-radius: 999px;
    }

    .lesson-content {
      font-size: 1.08rem;
      line-height: 1.85;
    }

    .lesson-content h2 {
      margin-top: 2rem;
      margin-bottom: 1rem;
      font-weight: 800;
    }

    .lesson-content h3 {
      margin-top: 1.5rem;
      font-weight: 700;
    }

    .lesson-content p {
      margin-bottom: 1rem;
    }

    .lesson-content ul,
    .lesson-content ol {
      margin-bottom: 1.2rem;
    }

    .lesson-content blockquote {
      border-left: 4px solid #0d6efd;
      padding: 1rem 1.25rem;
      border-radius: 0 1rem 1rem 0;
      background: rgba(13,110,253,.08);
    }

    .lesson-content pre {
      background: #0b1220;
      color: #f8fafc;
      padding: 1rem;
      border-radius: 1rem;
      overflow-x: auto;
    }

    .lesson-content table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.2rem 0;
      overflow: hidden;
      border-radius: 1rem;
    }

    .lesson-content th,
    .lesson-content td {
      border: 1px solid rgba(148,163,184,.25);
      padding: .8rem;
    }

    .lesson-content img {
      max-width: 100%;
      height: auto;
      border-radius: 1rem;
      margin: 1rem 0;
    }

    .lesson-sidebar {
      position: sticky;
      top: 96px;
    }

    .lesson-link {
      border-radius: 1rem;
      padding: .75rem .85rem;
      display: block;
      text-decoration: none;
      color: inherit;
      border: 1px solid transparent;
      transition: all .18s ease;
    }

    .lesson-link:hover,
    .lesson-link.active {
      background: rgba(13,110,253,.10);
      border-color: rgba(13,110,253,.22);
      color: inherit;
    }

    .progress {
      height: .75rem;
      border-radius: 999px;
    }

    .progress-bar {
      background: var(--learn-gradient);
    }

    @media (max-width: 991.98px) {
      .lesson-hero {
        padding-top: 6.5rem;
      }

      .lesson-sidebar {
        position: static;
      }
    }
  /* Styles specific to the admin panel */
    #editor {
      min-height: 360px;
      background: #fff;
      color: #111;
    }

    .ql-editor {
      min-height: 320px;
    }

    .admin-card {
      border-radius: 1.25rem;
    }

    .truncate-admin {
      max-width: 320px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    html[data-bs-theme="dark"] .ql-toolbar,
    html[data-bs-theme="dark"] .ql-container {
      background: #fff;
      color: #111;
    }
  /* Styles specific to the game match component */
    .match-card {
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .match-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 35px rgba(0,0,0,.12);
    }

    .match-card img {
      width: 100%;
    }
    /* Styles for the scroll-to-top button */
    .btn-scroll-top-learn {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 1080;
      width: 46px;
      height: 46px;
      border-radius: 999px;
      border: 1px solid rgba(13,110,253,.25);
      background: rgba(13,110,253,.88);
      color: #fff;
      display: none;
      align-items: center;
      justify-content: center;
      box-shadow: 0 12px 28px rgba(13,110,253,.24);
      backdrop-filter: blur(10px);
      transition: transform .2s ease, opacity .2s ease;
    }

    .btn-scroll-top-learn:hover {
      color: #fff;
      transform: translateY(-3px);
    }

    .btn-scroll-top-learn.is-visible {
      display: inline-flex;
    }

    html[data-bs-theme="dark"] .btn-scroll-top-learn {
      background: rgba(32,201,151,.86);
      border-color: rgba(32,201,151,.25);
      box-shadow: 0 12px 28px rgba(32,201,151,.18);
    }
    /* Styles specific to the game true/false component */
    .truefalse-card {
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .truefalse-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 16px 35px rgba(0,0,0,.10);
    }

    .truefalse-actions .btn.active {
      color: #fff;
    }

    .truefalse-actions .btn-outline-success.active {
      background: #198754;
      border-color: #198754;
    }

    .truefalse-actions .btn-outline-danger.active {
      background: #dc3545;
      border-color: #dc3545;
    }

    .truefalse-statement {
      line-height: 1.5;
    }
    /* Styles specific to the final quiz component */
    .final-question-card {
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .final-question-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 16px 35px rgba(0,0,0,.10);
    }

    .final-option {
      white-space: normal;
      min-height: 58px;
      border-radius: 1rem;
    }

    .final-option.active {
      box-shadow: 0 0 0 .2rem rgba(13,110,253,.16);
      background: rgba(13,110,253,.10);
    }

    .final-result-card {
      border: 1px solid rgba(13,110,253,.18);
      background: rgba(13,110,253,.08);
    }

    html[data-bs-theme="dark"] .final-result-card {
      border-color: rgba(32,201,151,.20);
      background: rgba(32,201,151,.08);
    }    
    .math-click-box {
      overflow: hidden;
    }

    .math-operation-card {
      max-width: 420px;
      border-radius: 2rem;
      padding: 2rem;
      border: 1px solid rgba(13,110,253,.18);
      background: rgba(13,110,253,.08);
    }

    html[data-bs-theme="dark"] .math-operation-card {
      border-color: rgba(255,193,7,.20);
      background: rgba(255,193,7,.08);
    }

    .math-operation {
      font-size: clamp(3rem, 8vw, 5.5rem);
      font-weight: 900;
      line-height: 1;
    }

    .math-answer-btn {
      min-height: 90px;
      border: 0;
      border-radius: 1.5rem;
      font-size: 2rem;
      font-weight: 800;
      background: rgba(13,110,253,.10);
      color: var(--bs-body-color);
      box-shadow: 0 12px 26px rgba(0,0,0,.08);
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .math-answer-btn:hover {
      transform: translateY(-4px) scale(1.02);
      box-shadow: 0 18px 36px rgba(0,0,0,.14);
    }

    .math-answer-btn.is-correct {
      background: rgba(25,135,84,.95);
      color: #fff;
    }

    .math-answer-btn.is-wrong {
      background: rgba(220,53,69,.95);
      color: #fff;
    }

    .math-answer-btn:disabled {
      opacity: 1;
    }

    .math-final-card {
      border: 1px solid rgba(255,193,7,.22);
      background: rgba(255,193,7,.10);
    }

    html[data-bs-theme="dark"] .math-answer-btn {
      background: rgba(255,255,255,.08);
    }

    html[data-bs-theme="dark"] .math-answer-btn.is-correct {
      background: rgba(25,135,84,.95);
    }

    html[data-bs-theme="dark"] .math-answer-btn.is-wrong {
      background: rgba(220,53,69,.95);
    }
.shopping-game-box {
  overflow: hidden;
}

.shopping-question-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(25,135,84,.18);
  background: rgba(25,135,84,.08);
}

html[data-bs-theme="dark"] .shopping-question-card {
  border-color: rgba(32,201,151,.20);
  background: rgba(32,201,151,.08);
}

.shopping-item-card {
  border-radius: 1.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(13,110,253,.14);
  background: rgba(13,110,253,.07);
  box-shadow: 0 12px 24px rgba(0,0,0,.07);
  transition: transform .18s ease, box-shadow .18s ease;
}

.shopping-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,.12);
}

.shopping-emoji {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: .75rem;
}

.shopping-price {
  font-size: 1.4rem;
  font-weight: 800;
}

.shopping-answer-box {
  border: 1px solid rgba(255,193,7,.20);
  background: rgba(255,193,7,.08);
}

.shopping-final-card {
  border: 1px solid rgba(25,135,84,.20);
  background: rgba(25,135,84,.08);
}

html[data-bs-theme="dark"] .shopping-item-card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}

html[data-bs-theme="dark"] .shopping-answer-box {
  background: rgba(255,193,7,.08);
  border-color: rgba(255,193,7,.20);
}