/* ===== BODY ===== */
body {
  padding-top: 70px;
  font-family: sans-serif;
  background-color: #F7F4EE;
}

/* ===== TOPBAR / NAVBAR ===== */
.topbar,
.navbar {
  background-color: #2F3E4F;
  min-height: 64px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.topbar-inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.brand {
  color: #fff !important;
  font-weight: 800;
  font-size: 19px;
}

.brand-accent {
  color: #C8A96E;
}

.navbar-brand {
  font-weight: 600;
}

/* ===== MODULE CONTAINER ===== */
.module-container {
  max-width: 900px;
}

/* ===== STEP PROGRESS ===== */

.step-link {
  text-decoration: none;
  color: #111827;
}

.step-progress {
  display: flex;
  align-items: center;
}

.step {
  display: flex;
  align-items: center;
}

.circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  border: 3px solid #e6ddcc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

/* current module = outlined only */
.step.active .circle {
  border-color: #C8A96E;
  background-color: white;
  color: #111827;
}

/* completed module = filled */
.step.completed-step .circle {
  border-color: #C8A96E;
  background-color: #C8A96E;
  color: #111827;
}

.line {
  flex: 1;
  height: 3px;
  background-color: #e6ddcc;
  margin: 0 10px;
}

.line.completed {
  background-color: #C8A96E;
}

/* ===== BACK BUTTON ===== */
.btn-back {
  background-color: #5F7A55;
  color: white;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
}

.btn-back:hover {
  background-color: #4f6847;
  color: white;
}

/* ===== MODULE CARD ===== */
.custom-module-card {
  border-radius: 8px;
  overflow: hidden;
}

.module-header {
  background-color: #3F5E44;
  padding: 16px 20px;
  color: white;
}

.module-title {
  font-size: 20px;
  font-weight: 700;
}

.module-subtitle {
  color: #C8A96E;
  font-style: italic;
}

.module-content {
  padding: 20px;
}

.learning-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: #6b6b6b;
  margin-bottom: 8px;
}

/* ===== VIDEO SECTION ===== */
.video-frame{
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.video-container{
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* play triangle */
.play-icon {
  width: 0;
  height: 0;
  border-left: 18px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* ===== NEXT BUTTON ===== */
.btn-next {
  background-color: #5F7A55;
  color: white;
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  display: inline-block;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-next:hover {
  background-color: #4f6847;
  color: white;
}

/* Disabled Next button */
.btn-next.disabled,
.btn-next[aria-disabled="true"] {
  background-color: #bfc7bb;
  color: white;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ===== SKIP BUTTON ===== */
.btn-skip {
  background-color: transparent;
  color: #5F7A55;
  border: 2px solid #5F7A55;
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-skip:hover {
  background-color: #5F7A55;
  color: white;
}

/* ===================================================== */
/* ===== COMPREHENSION CHECK STYLES ===== */
/* ===================================================== */

.comprehension-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* Green header bar */
.comprehension-header {
  background-color: #3F5E44;
  color: white;
  padding: 14px 18px;
  font-weight: 700;
}

/* Question label */
.question-label {
  font-size: 0.75rem;
  color: #C8A96E;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 700;
}

/* Question text */
.question-text {
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Options layout */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Quiz Option Buttons */
.option.btn,
.option.btn-outline-primary {
  background: #ffffff !important;
  border: 1px solid #eef0f3 !important;
  color: #111827 !important;
  text-align: left;
  width: 100%;
  border-radius: 10px;
  padding: 12px 14px 12px 44px !important;
  position: relative;
  font-size: 13px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* Remove blue focus ring */
.option.btn:focus,
.option.btn:active,
.option.btn-outline-primary:focus,
.option.btn-outline-primary:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Radio circle */
.option::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.8px solid #111827;
  background: #fff;
}

/* Selected option */
.option.active {
  background: #f1f1f1 !important;
  border-color: #e5e7eb !important;
}

/* Radio fill */
.option.active::after {
  content: "";
  position: absolute;
  left: 17.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111827;
}

/* Correct answer highlight */
.option.correct-answer {
  background: #eef6ea !important;
  border: 1px solid #5F7A55 !important;
}

.option.correct-answer::before {
  border-color: #5F7A55;
}

.option.correct-answer::after {
  content: "";
  position: absolute;
  left: 17.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5F7A55;
}

/* Disabled option look */
.option:disabled {
  cursor: not-allowed;
}

/* ===== CHECK ANSWER BUTTON ===== */
.btn-check-answer {
  background-color: #3F5E44;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-check-answer:hover {
  background-color: #2e4735;
  color: white;
}

.btn-check-answer:disabled {
  background-color: #aab7ac;
  color: white;
  opacity: 0.65;
  cursor: not-allowed;
}

/* Question actions */
.question-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

/* Feedback */
.feedback {
  font-weight: 700;
  font-size: 12px;
  min-height: 18px;
}

.feedback.correct {
  color: #111827;
}

.feedback.wrong {
  color: #b91c1c;
}

/* Explanation */
.answer-explanation {
  margin-top: 10px;
  padding-left: 2px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.35;
}

/* ===== COMPLETION LAYOUT FIX ===== */
.completion-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
}

/* ===== COMPLETION CARD ===== */
.completion-card {
  background-color: #ffffff;
  padding: 40px 60px;
  border-radius: 8px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
}

/* completion icon */
.completion-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  background-color: #5F7A55;
  color: white;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* completion button */
.completion-card .btn-primary {
  background-color: #5F7A55 !important;
  border-color: #5F7A55 !important;
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 600;
}

.completion-card .btn-primary:hover {
  background-color: #4f6847 !important;
  border-color: #4f6847 !important;
}