@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* Fallback fonts mapping */
/* Aquawax BOLD -> Montserrat 700 / sans-serif */
/* Montserrat LIGHT -> Montserrat 300 */
/* Helvetica Neue -> Inter / sans-serif */

:root {
  /* Exact Colors from PDF */
  --color-red: #BE1E2D;
  /* PANTONE 2766 C */
  --color-orange: #f7941d;
  /* PANTONE 2766 C */
  --color-grad-start: #EA5B2F;
  --color-grad-end: #F33A44;

  --color-text-main: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f5;
  --color-gray-border: #eeeeee;

  /* Quiz Feedback Colors */
  --color-success-bg: #eaf8ed;
  --color-success-border: #4caf50;
  --color-success-text: #28a745;
  --color-error-bg: #fdeded;
  --color-error-border: #f44336;
  --color-error-text: #dc3545;

  /* Typography */
  --font-content: 'SF Pro Display', 'Inter', sans-serif;
  --font-title: 'SF Pro Display', sans-serif;
  /* Fallback for Aquawax */
  --font-subtitle: 'SF Pro Display', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-content);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #f7941d;
}

ul,
ol {
  padding-left: 1.5rem;
}

/* Typography Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 700;
  margin-top: 0;
}

.text-red {
  color: var(--color-red);
}

.text-orange {
  color: var(--color-orange);
}

.font-bold {
  font-weight: 700;
}

.font-light {
  font-weight: 300;
}

.font-italic {
  font-style: italic;
}

/* Buttons */
#training-root .btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  font-family: var(--font-title);
  font-size: 0.95rem;
  line-height: normal;
}

#training-root .btn-primary {
  background: linear-gradient(90deg, var(--color-grad-start) 0%, var(--color-grad-end) 100%);
  color: var(--color-white);
  border: none;
}

#training-root .btn-primary:hover {
  background: linear-gradient(90deg, #d95129 0%, #e0323c 100%);
}

#training-root .btn-outline {
  background-color: var(--color-white) !important;
  color: var(--color-red) !important;
  border: 1px solid var(--color-red) !important;
}

#training-root .btn-outline:hover {
  background-color: #fffafb !important;
  color: var(--color-red) !important;
}

.btn-gray {
  background-color: #eeeeee;
  color: #333;
}

/* App Container */
.app-container {
  display: flex;
  min-height: calc(100vh - 200px);
  align-items: stretch;
  margin-top: -1rem;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  margin-top: 20px;
  margin-top: 40px;
  margin-left: 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: calc(100vh - 200px);
  align-self: flex-start;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-header-wrapper {
  padding: 0 10px 10px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-header-btn {
  display: block;
  flex: 1;
  margin: 0;
  background: linear-gradient(90deg, var(--color-grad-start) 0%, var(--color-grad-end) 100%);
  color: var(--color-white);
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-title);
  text-decoration: none;
}

.sidebar-header-btn:hover {
  background-color: #d6751f;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  border-bottom: 1px solid var(--color-gray-border);
}

.sidebar-item-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: #000;
  opacity: 0.4;
  font-size: 1rem;
  font-family: var(--font-title);
  transition: opacity 0.2s ease;
}

.sidebar-item-header:hover {
  opacity: 0.7;
}

.sidebar-item-header.active {
  color: #000;
  opacity: 1;
}

.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #fbfbfb;
}

.sidebar-subitem {
  padding: 15px 20px 15px 40px;
  color: #999;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  line-height: 1.4;
}

.sidebar-subitem:hover {
  color: #666;
}

.sidebar-subitem.active {
  color: #000;
  font-weight: 700;
  background-color: #fdf5e6;
}

.sidebar-subitem .icon-arrow {
  display: none;
}

.sidebar-subitem.active .icon-arrow.active-arrow {
  display: flex;
  color: var(--color-white);
  background-color: var(--color-red);
  width: 20px;
  height: 20px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-left: 10px;
}



/* Main Content */
.main-content {
  flex: 1;
  padding: 40px 60px;
  padding-top: 0px;
  overflow-y: auto;
  height: calc(100vh - 142px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main-content::-webkit-scrollbar {
  display: none;
}

/* Landing Page */
.landing-page-wrap {
  padding: 0;
  background: var(--color-white);
}

.landing-container {
  max-width: 1100px;
  margin: 0 auto;
}

.landing-header {
  padding: 60px 40px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 25px;
}

.landing-title-area {
  max-width: 50%;
}

.landing-title {
  font-size: 3.4rem;
  margin-bottom: 15px;
  color: #000;
  line-height: 1.1;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -1px;
}

.landing-subtitle {
  font-size: 1.3rem;
  color: #666;
  max-width: 400px;
  margin-bottom: 30px;
  font-weight: 300;
  line-height: 1.5;
}

.landing-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 45%;
}

.landing-features-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #000;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.feature-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fff1ee;
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.feature-text h4 {
  margin: 0 0 4px 0;
  font-size: 1.2rem;
  color: #000;
  font-weight: 700;
}

.feature-text p {
  margin: 0;
  font-size: 1.1rem;
  color: #555;
  font-weight: 500;
}

/* Landing Cards */
.landing-cards {
  display: flex;
  gap: 30px;
  padding: 0 40px 60px;
  position: relative;
}

.card-feature {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  position: relative;
}

.card-feature-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px;
}

.card-feature-content {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  padding: 0 15px;
  background: transparent;
  display: flex;
  justify-content: flex-start;
}

.card-feature-content .btn-outline {
  width: 140px;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--color-red);
  color: var(--color-red);
  transition: all 0.3s ease;
}

.card-feature-content .btn-outline:hover {
  background-color: var(--color-red);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(190, 30, 45, 0.2);
}

.slider-arrow {
  position: absolute;
  right: 10px;
  top: 45%;
  transform: translateY(-50%);
  color: var(--color-red);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Chapter Page */
.chapter-page {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 25px;
}

.chapter-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 40px;
  font-weight: 700;
  margin-top: 35px;
}

.chapter-intro {
  background-color: #fafafa;
  border-radius: 16px;
  padding: 30px 40px;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chapter-intro h3 {
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.chapter-intro-title {
  margin-bottom: 25px;
  font-size: 1.2rem;
  width: 100%;
  max-width: 600px;
  text-align: left;
  font-weight: 700;
}

.chapter-intro-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chapter-intro-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 0.95rem;
  /* Slight green tint */
}

.chapter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

.lesson-card {
  width: calc((100% - 40px) / 3);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.lesson-card-img {
  width: 100%;
  height: 180px;
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
}

.lesson-card-content {
  padding: 15px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.lesson-card-subtitle {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 5px;
  color: #000;
}

.lesson-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #000;
  margin-bottom: 20px;
}

.lesson-card .btn-outline {
  padding: 6px 16px;
  font-size: 0.85rem;
  width: auto;
  align-self: flex-start;
}

/* Lesson Page */
.lesson-page {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 30px;
}

.lesson-header-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.lesson-objectives {
  background-color: #e8f5e9;
  border-left: 4px solid #006039;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 10px;
}

.lesson-objectives h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: #006039;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-objectives ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.lesson-objectives li {
  font-size: 0.95rem;
  color: #1a4a2f;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 !important;
  border-bottom: none !important;
  margin: 0 !important;
  list-style: none !important;
}

.lesson-objectives li:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.lesson-objectives li:first-child {
  padding-top: 0;
}

.lesson-content {
  font-size: 1.1rem;
  color: #000000;
}

.lesson-content h3 {
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700 !important;
}

.lesson-content h4 {
  font-size: 1.1rem;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 700 !important;
}

.lesson-content p {
  margin-bottom: 15px;
}

.lesson-content ul {
  margin-bottom: 15px;
}

.lesson-content .highlight-box {
  background-color: #fffaf0;
  padding: 15px 20px;
  border: 1px solid #d48806;
  margin: 20px 0;
  border-radius: 10px;
  color: #333;
}

.lesson-content .highlight-box .highlight-title {
  color: #d48806;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

/* Alert Boxes */
.alert-box-warning {
  background-color: #fff9e6;
  border: 1px solid #d48806;
  padding: 15px;
  margin: 20px 0;
  border-radius: 10px;
  color: #333;
}

.alert-box-warning-title {
  color: #d48806;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05em;
}

.alert-box-warning-title svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.alert-box-warning p {
  margin-bottom: 10px;
}

.alert-box-warning p:last-child {
  margin-bottom: 0;
}

.alert-box-info {
  background-color: #f0f7ff;
  border: 1px solid #1072e0;
  padding: 15px;
  color: #104177;
  border-radius: 10px;
}

.alert-box-info p {
  margin-bottom: 5px;
  margin-top: 0px;
}

.alert-box-info p:last-child {
  margin-bottom: 0;
}

.alert-box-danger {
  border: 3px solid #d41a1a;
  padding: 15px;
  margin: 20px 0;
  color: #000;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th {
  border: 1px solid var(--color-gray-border);
  padding: 10px;
  text-align: left;
  background-color: #f4f4f4;
  font-weight: 700;
}

.data-table td {
  border: 1px solid var(--color-gray-border);
  padding: 10px;
}

/* Quiz Section */
.quizzes-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 50px;
}

.quiz-section {
  padding-top: 20px;
  border-top: 1px dashed var(--color-gray-border);
}

.quizzes-container .quiz-section:first-child {
  border-top: none;
}

.quiz-question {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.quiz-option {
  padding: 15px 20px;
  border: 1px solid var(--color-gray-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  background-color: var(--color-white);
  transition: all 0.2s ease;
}

.quiz-option:hover {
  background-color: #fafafa;
}

.quiz-option.selected {
  border-color: var(--color-red);
  background-color: #fffafb;
}

.quiz-option.correct {
  border-color: var(--color-success-border);
  background-color: var(--color-success-bg);
  color: var(--color-success-border);
}

.quiz-option.incorrect {
  border-color: var(--color-error-border);
  background-color: var(--color-error-bg);
}

.quiz-option-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-option.selected .quiz-option-circle {
  border-color: var(--color-red);
  background-color: var(--color-red);
}

.quiz-option.correct .quiz-option-circle {
  border-color: var(--color-success-border);
  background-color: var(--color-success-border);
}

.quiz-option.incorrect .quiz-option-circle {
  border-color: var(--color-error-border);
  background-color: var(--color-error-border);
}

.quiz-option-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: none;
}

.quiz-option.selected .quiz-option-circle::after,
.quiz-option.correct .quiz-option-circle::after,
.quiz-option.incorrect .quiz-option-circle::after {
  display: block;
}

.quiz-actions {
  text-align: center;
  margin-bottom: 30px;
}

.quiz-feedback {
  max-width: 600px;
  margin: 0 auto 30px;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.quiz-feedback.success {
  background-color: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: #333;
}

.quiz-feedback.error {
  background-color: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  color: #333;
}

.quiz-feedback p {
  margin: 0;
  font-size: 0.95rem;
  margin-top: 10px;
}

.lesson-navigation {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

/* Custom Table 1 styles */
.custom-table-1 {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid #000;
}

.custom-table-1 th,
.custom-table-1 td {
  padding: 10px;
  text-align: center;
  border: 1px solid #000;
  vertical-align: middle;
}

.custom-title-row {
  background-color: #8B1A1A !important;
  color: #fff !important;
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 12px !important;
  border: 1px solid #000 !important;
}

.custom-col-kenh {
  background-color: #f4f4f4 !important;
  font-weight: bold;
  color: #000 !important;
}

.custom-col-thegioi-header,
.custom-col-thegioi {
  background-color: #ebf3e7 !important;
  /* Light greenish */
  font-weight: bold;
  color: #000 !important;
}

.custom-col-vietnam-header,
.custom-col-vietnam {
  background-color: #f1e6f4 !important;
  /* Light purplish */
  font-weight: bold;
  color: #000 !important;
}

.custom-col-kenh-cell {
  background-color: #fff !important;
  text-align: left !important;
}

.custom-col-thegioi-cell {
  background-color: #ebf3e7 !important;
}

.custom-col-vietnam-cell {
  background-color: #f1e6f4 !important;
}

.custom-red-text {
  color: #c00000 !important;
}

.custom-table-1 tbody tr {
  border-bottom: 1px dashed #555;
}

.custom-table-1 tbody td {
  border-bottom: none;
  border-top: none;
}

.custom-table-1 tbody tr:last-child {
  border-bottom: 1px solid #000;
}

/* Custom Table 2 styles */
.custom-table-2 {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border: 1px solid #b32020;
}

.custom-table-2 th,
.custom-table-2 td {
  padding: 10px;
  border: 1px solid #b32020 !important;
  vertical-align: middle;
}

.custom-table-2 thead th {
  background-color: #b32020 !important;
  color: #ffffff !important;
  font-weight: bold;
  text-align: center;
}

.custom-table-2 tbody tr.custom-row-pink {
  background-color: #fae6e6 !important;
}

.custom-table-2 tbody tr.custom-row-white {
  background-color: #ffffff !important;
}

.custom-table-2 tbody td:first-child {
  text-align: left;
}

.custom-yellow-row {
  background-color: #f3c42b !important;
}

.custom-yellow-row td {
  text-align: left !important;
  font-weight: bold;
}

.custom-bold-row td {
  font-weight: bold;
}

/* Custom Pill Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 3px 3px 15px;
  border-radius: 9999px;
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  width: max-content;
  margin-left: 5%;
}

.btn-pill:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-pill .icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #fff;
  border-radius: 50%;
  margin-left: 12px;
}

.btn-pill-orange {
  background-color: #e58225;
}

.btn-pill-orange .icon-circle {
  color: #e58225;
}

.btn-pill-blue {
  background-color: #2b498b;
}

.btn-pill-blue .icon-circle {
  color: #2b498b;
}

.btn-pill-green {
  background-color: #3b744d;
}

.btn-pill-green .icon-circle {
  color: #3b744d;
}

/* Sidebar redesign */
.sidebar-chapter-inactive {
  color: #2c2c2c;
  font-weight: 700;
  text-align: left;
  padding: 10px 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.sidebar-chapter-inactive:hover {
  color: #999;
}

.sidebar-chapter-active-group {
  /* padding: 10px 0; */
}

.sidebar-chapter-title-active {
  color: #000;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  padding: 10px 25px;
}

.sidebar-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px 0 20px;
}

.sidebar-lesson-item {
  display: flex;
  flex-direction: column;
}

.sidebar-lesson-link {
  display: flex;
  align-items: flex-start;
  color: #686868;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 5px 15px;
  border-radius: 10px;
}

.sidebar-lesson-link .lesson-star {
  color: #ccc;
  margin-right: 10px;
  font-size: 1rem;
}

.sidebar-lesson-link .lesson-name {
  flex: 1;
  line-height: 1.4;
  font-size: 1rem;
}

.sidebar-lesson-link.active {
  color: #000;
  font-weight: 600;
}

.sidebar-lesson-link.active .lesson-star {
  color: #BE1E2D;
}

.sidebar-lesson-link .lesson-action-icon {
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.sidebar-objectives-tree {
  margin-left: 40px;
  margin-top: 5px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.objective-node {
  position: relative;
  font-size: 0.85rem;
  color: #3a3a3a;
  line-height: 1.4;
  padding-left: 15px;
  padding-bottom: 12px;
  cursor: pointer;
  transition: color 0.2s;
}

.objective-node:hover {
  color: #888;
}

.objective-node:last-child {
  padding-bottom: 0;
}

.objective-node:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 10px;
  bottom: -5px;
  width: 1px;
  background-color: #333;
}

.objective-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #292929;

}

.objective-node.active-node {
  color: #000;
  font-weight: 600;
}

.objective-node.active-node .objective-dot {
  background: linear-gradient(90deg, #EA5B2F 0%, #F33A44 100%);
  width: 9px;
  height: 9px;
  left: -1px;
  top: 4px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

.mobile-menu-btn {
  display: none;
  background: linear-gradient(90deg, var(--color-grad-start) 0%, var(--color-grad-end) 100%);
  border: none;
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(219, 30, 45, 0.4);
  position: fixed;
  bottom: 30px;
  left: 20px;
  z-index: 9999;
  transition: transform 0.2s;
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

.mobile-close-btn {
  display: none;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  z-index: 1000;
  border-radius: 4px;
  padding: 5px;
}

.mobile-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
}

@media (max-width: 992px) {

  /* Top Bar & Menu */
  .mobile-menu-btn {
    display: block;
  }

  .mobile-close-btn {
    display: block;
  }

  /* Sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    bottom: 0;
    width: 280px;
    margin: 0;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
  }

  .sidebar-header-wrapper {
    padding-top: 15px;
    padding-right: 15px;
  }

  .sidebar.open {
    left: 0;
    height: 93%;
    top: 7.4%;
  }

  /* Main Content */
  .main-content {
    padding: 30px 20px;
    padding-top: 0px;
  }

  /* Landing Page */
  .landing-header {
    flex-direction: column;
    padding: 30px 20px;
  }

  .landing-title-area {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .landing-title {
    font-size: 2.2rem;
  }

  .landing-features {
    max-width: 100%;
  }

  .landing-cards {
    flex-direction: column;
    padding: 0;
  }

  /* Chapter Page */
  .lesson-card {
    width: calc((100% - 20px) / 2);
  }

  .chapter-title {
    font-size: 2.2rem;
    margin-top: 50px;
  }

  .lesson-title {
    /* margin-top: 50px; */
  }
}

@media (max-width: 768px) {

  /* Chapter Page */
  .lesson-card {
    width: 100%;
  }

  .chapter-title {
    font-size: 1.8rem;
    margin-top: 0px;
  }

  /* Lesson Page */
  .lesson-header-title {
    font-size: 1.6rem;
    margin-top: 50px;
  }

  .lesson-navigation {
    flex-direction: column;
    align-items: stretch;
  }

  .lesson-navigation .btn {
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
  }

  /* Custom Tables */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .custom-table-1,
  .custom-table-2 {
    font-size: 0.8rem;
    min-width: 500px;
    /* Force table to have min-width so it scrolls instead of squishing */
  }

  .custom-table-1 th,
  .custom-table-1 td,
  .custom-table-2 th,
  .custom-table-2 td {
    padding: 6px;
  }
}

.training-top-header {
  position: relative;
  z-index: 105;
}

.objective-text {
  font-size: 0.9rem;
}