:root {
  --green: #087b42;
  --deep: #003600;
  --mint: #e8f7ed;
  --line: #e1e8e5;
  --muted: #66756e;
  --ink: #000;
  --bg: #f6f9f8
}

* {
  box-sizing: border-box
}

/*    body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: 'Open Sans','Inter',Tahoma,Arial,sans-serif;
      font-size: 14px;
      line-height: 1.55
    }*/

h3 {
  font-family: 'Lithium','Instrument Serif',Georgia,serif;
}

button {
  font: inherit;
  cursor: pointer
}

  button:focus-visible {
    outline: 3px solid #6bbd8e;
    outline-offset: 3px
  }

.quiz-section {
  background: #f6f9f8;
  color: #000;
}

.quiz-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 0 80px;
  box-sizing: border-box;
}

.quiz-eyebrow {
  font-size: 12px;
  color: var(--green);
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 700
}

.quiz-title {
  font-family: 'Lithium','Instrument Serif',Georgia,serif;
  font-size: clamp(30px,4vw,49px);
  font-weight: 400;
  line-height: 1.1;
  margin: 8px 0 12px;
  color: var(--deep);
}

.quiz-intro {
  color: var(--muted);
  max-width: 800px;
  margin: 0 0 30px
}

.quiz-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 24px
}

.quiz-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 11px 20px;
  color: #53665b
}

  .quiz-tab.active {
    background: var(--mint);
    color: var(--deep);
    font-weight: 700
  }

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 285px;
  gap: 22px;
  align-items: start
}

.quiz-card, .quiz-side, .quiz-reflection {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,40,20,.035)
}

.quiz-card {
  padding: 29px
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px
}

.quiz-progress {
  height: 7px;
  background: #e7eeeb;
  border-radius: 99px;
  overflow: hidden;
  margin: 16px 0 30px
}

  .quiz-progress > div {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg,#35c866,#087b42);
    transition: width .2s
  }

.quiz-question {
  font-family: 'Lithium','Instrument Serif',Georgia,serif;
  font-size: 42px;
  text-align: left;
  color: #000;
}

  .quiz-question h2 {
    font-family: 'Lithium','Instrument Serif',Georgia,serif;
    font-size: 42px;
    line-height: 1.4;
    margin: 0 0 22px;
    font-weight: 700
  }

.quiz-options {
  display: grid;
  gap: 11px
}

.quiz-option {
  width: 100%;
  border: 1px solid #dce5e1;
  background: white;
  border-radius: 10px;
  padding: 16px 17px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  transition: .15s
}

  .quiz-option:hover {
    border-color: #73b88e
  }

  .quiz-option.selected {
    background: var(--mint);
    border-color: #75c795
  }

.quiz-radio {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 2px solid #a8b7af;
  border-radius: 50%;
  margin-top: 1px;
  position: relative
}

.selected .quiz-radio {
  border-color: var(--green)
}

  .selected .quiz-radio:after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--green)
  }

.quiz-option.correct {
  border-color: #20a15b;
  background: #e6f8eb
}

.quiz-option.incorrect {
  border-color: #d27d7d;
  background: #fff0f0
}

.quiz-feedback {
  font-size: 12px;
  color: #496253;
  margin: 8px 0 2px 35px
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 32px
}

.quiz-btn {
  min-width: 120px;
}

  .quiz-btn.button-base {
    justify-content: center;
    align-items: center;
  }

  /*.quiz-btn.button-border {
        color: #f0f8f2;
      }

        .quiz-btn.button-border .button-arrow {
          color: inherit;
        }*/


  .quiz-btn.primary {
    background: var(--green);
    color: white;
    border-color: var(--green)
  }

  .quiz-btn:disabled {
    opacity: .4;
    cursor: not-allowed
  }

.quiz-actions .quiz-btn:not(.button-base) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  padding: 12px 22px;
  font-family: 'Open Sans', 'Inter', Tahoma, Arial;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: #345b45;
  border: 1px solid #cbd8d0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-actions .quiz-btn.primary:not(.button-base) {
  background: linear-gradient( to right, #00832a 0%, #006b20 45%, #004a0d 100% );
  color: rgba(255,255,255,0.85);
}

.quiz-actions .quiz-btn:not(.button-base):hover:not(:disabled) {
  border-color: var(--deep);
}

.quiz-actions .quiz-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quiz-side {
  padding: 24px
}

  .quiz-side h3 {
    font-size: 28px;
    margin: 0 0 23px;
    color: var(--deep)
  }

.quiz-ring {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: conic-gradient(#28bd66 var(--pct,0%),#e9eeeb 0);
  margin: 0 auto 24px;
  display: grid;
  place-items: center
}

.quiz-ring-inner {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center
}

  .quiz-ring-inner strong {
    font-size: 29px
  }

  .quiz-ring-inner span {
    color: var(--green);
    font-size: 13px
  }

.quiz-stat {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--muted)
}

  .quiz-stat strong {
    color: var(--ink)
  }

.quiz-note {
  margin-top: 22px;
  padding: 17px;
  border-radius: 10px;
  background: #edf8f1;
  color: #37624a;
  font-size: 13px
}

.quiz-missing-notice {
  margin: 18px 0 12px;
  padding: 12px 14px;
  background: #fff0ed;
  border-left: 3px solid #b44335;
  border-radius: 6px;
  font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #a33b30;
}

.quiz-number-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px
}

.quiz-number {
  width: 36px;
  height: 36px;
  border: 1px solid #dce5e1;
  background: #fff;
  border-radius: 8px
}
  /* Unanswered questions after submit attempt */

  .quiz-number.missing {
    background: #fff0ed;
    border-color: #e6a59b;
    color: #b44335;
  }

    .quiz-number.missing.current {
      border: 2px solid #b44335;
    }

  .quiz-number.done {
    background: #e6f7ec;
    border-color: #7fcca0
  }

  .quiz-number.current {
    border: 2px solid var(--green);
    font-weight: 700
  }

.quiz-result {
  padding: 10px 0
}

  .quiz-result h2 {
    font-family: 'Lithium',Georgia,serif;
    font-weight: 400;
    font-size: 34px;
    margin: 0 0 12px
  }

.quiz-result-score {
  font-size: 24px;
  color: var(--green);
  font-weight: 700
}

.quiz-reflection {
  padding: 28px
}

  .quiz-reflection h3 {
    font-size: 18px;
    margin: 22px 0 8px
  }

  .quiz-reflection textarea {
    width: 100%;
    min-height: 105px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px;
    resize: vertical;
    font: inherit
  }

  .quiz-reflection details {
    margin-top: 10px;
    color: var(--muted)
  }

  .quiz-reflection summary {
    cursor: pointer;
    color: var(--green)
  }

.quiz-hidden {
  display: none !important
}

@media(max-width:850px) {
  .quiz-layout {
    grid-template-columns: 1fr
  }

  .quiz-side {
    order: -1
  }

  .quiz-ring {
    width: 100px;
    height: 100px;
    margin: 0 20px 0 0;
    float: left
  }

  .quiz-ring-inner {
    width: 81px;
    height: 81px
  }

    .quiz-ring-inner strong {
      font-size: 20px
    }

  .quiz-side:after {
    content: "";
    display: block;
    clear: both
  }

  .quiz-note {
    clear: both
  }

  .quiz-wrap {
    padding: 30px 16px 60px
  }
}

@media(max-width:500px) {
  .quiz-card, .quiz-side, .quiz-reflection {
    padding: 19px
  }

  .quiz-question {
    font-size: 18px
  }

  .quiz-tab {
    padding: 10px 13px;
    font-size: 12px
  }

  .quiz-option {
    padding: 13px
  }

  .quiz-actions .quiz-btn {
    min-width: 0;
    flex: 1
  }
}
/* ==========================================
     QUIZ START SCREEN
  ========================================== */

.quiz-layout.quiz-not-started {
  grid-template-columns: minmax(0, 1fr);
}

  .quiz-layout.quiz-not-started .quiz-side {
    display: none;
  }

  .quiz-layout.quiz-not-started .quiz-progress,
  .quiz-layout.quiz-not-started .quiz-top {
    display: none;
  }

  .quiz-layout.quiz-not-started .quiz-card {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 55px 45px;
  }

  .quiz-layout.quiz-not-started .quiz-question {
    text-align: center;
    margin-bottom: 30px;
  }

  .quiz-layout.quiz-not-started .quiz-options {
    max-width: 380px;
    margin: 0 auto;
  }

    .quiz-layout.quiz-not-started .quiz-options .quiz-btn {
      width: 100%;
    }
/* ==========================================
     QUIZ START CONTENT
  ========================================== */

.quiz-start-description {
  max-width: 520px;
  margin: 0 auto 26px;
  font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.quiz-start-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 30px;
  font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: #53665b;
}

  .quiz-start-info span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .quiz-start-info i {
    color: var(--green);
    font-size: 15px;
  }

/* Allow description and information to use card width */

.quiz-layout.quiz-not-started .quiz-options {
  max-width: 100%;
}

  /* Keep Start Quiz button narrower */

  .quiz-layout.quiz-not-started .quiz-options .quiz-btn {
    width: 100%;
    max-width: 380px;
    /* loadQuiz();*/
    margin: 0 auto;
  }
/* ==========================================
     LECTURE INFORMATION
  ========================================== */

.quiz-lecture-info {
  text-align: center;
  margin: 22px auto 40px;
}

.quiz-lecture-title {
  font-family: 'Lithium', 'Instrument Serif', Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.3;
  color: #003600;
  margin: 0 0 12px;
}

.quiz-lecturer {
  font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
  font-size: 14px;
  color: #66756e;
}

/* ==========================================
   QUIZ ANSWER REVIEW
========================================== */

.quiz-review-item {
  padding: 26px 0;
  border-bottom: 1px solid #e1e9e4;
}

  .quiz-review-item:last-child {
    border-bottom: none;
  }

/* Question */

.quiz-review-question {
  margin: 0 0 22px;
  font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: #003600;
}

/* Labels */

.quiz-review-label {
  margin: 16px 0 7px;
  font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #74867b;
}

/* Answer boxes */

.quiz-review-correct,
.quiz-review-student-correct,
.quiz-review-student-incorrect,
.quiz-review-unanswered {
  padding: 13px 16px;
  border-radius: 9px;
  font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* Correct answer */

.quiz-review-correct {
  background: #eaf7ee;
  color: #075d32;
}

/* Student answered correctly */

.quiz-review-student-correct {
  color: #087d42;
  background: #f3faf5;
}

/* Student answered incorrectly */

.quiz-review-student-incorrect {
  color: #a34b35;
  background: #fff1ed;
}

/* No answer */

.quiz-review-unanswered {
  color: #8b938d;
  background: #f4f6f5;
  font-style: italic;
}

/* Explanation */

.quiz-review-explanation {
  margin: 18px 0 0;
  font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: #65766b;
}

.quiz-start-cancel.button-without-border {
  color: #66756e;
  /*    display: block;
    margin: 18px auto 0;
    padding: 6px 16px;
    border: none;
    background: transparent;
    font-family: 'Open Sans', 'Inter', Tahoma, Arial;
    font-size: 13px;
    
    cursor: pointer;*/
}

.quiz-start-cancel.button-base {
  justify-content: center;
  align-items: center;
}

/* .quiz-start-cancel:hover {
      color: #087b42;
      text-decoration: underline;
    }*/

.quiz-success-finish {
  background: transparent;
  color: #66756e;
  border: 1px solid #d5ded8;
}

  .quiz-success-finish:hover {
    color: #087b42;
    border-color: #087b42;
  }




/* ==========================================
     ICEUR QUIZ MODAL
  ========================================== */

.iceur-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

  /* Hidden state */

  .iceur-modal.quiz-hidden {
    display: none;
  }

#quizSection {
  scroll-margin-top: 80px;
}
/* Background overlay */

.iceur-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 5, 0.65);
  backdrop-filter: blur(4px);
}

/* Dialog */

.iceur-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 38px 36px 32px;
  background: #ffffff;
  border: 1px solid rgba(0, 54, 0, 0.15);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

/* Close button */

.iceur-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 4px 8px;
  border: none;
  background: transparent;
  font-size: 26px;
  font-weight: 300;
  color: #69716c;
  cursor: pointer;
}

  .iceur-modal__close:hover {
    color: #003600;
  }

/* Title */

.iceur-modal__title {
  margin: 0 28px 16px 0;
  font-family: "Lithium", "Instrument Serif", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: #003600;
}

/* Message */

.iceur-modal__message {
  margin: 0 0 30px;
  font-family: "Open Sans", "Inter", Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #454f48;
}

/* Actions */

.iceur-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */

.iceur-modal__button {
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Open Sans", "Inter", Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Secondary */

.iceur-modal__button--secondary {
  background: #ffffff;
  border-color: #d5ded7;
  color: #003600;
}

  .iceur-modal__button--secondary:hover {
    background: #f1f6f2;
  }

/* Primary */

.iceur-modal__button--primary {
  background: #003600;
  color: #ffffff;
}

  .iceur-modal__button--primary:hover {
    background: #006b20;
  }

/* Mobile */

@media (max-width: 480px) {

  .iceur-modal__dialog {
    padding: 32px 22px 24px;
  }

  .iceur-modal__title {
    font-size: 26px;
  }

  .iceur-modal__actions {
    flex-direction: column-reverse;
  }

  .iceur-modal__button {
    width: 100%;
  }

  .quiz-layout.quiz-not-started .quiz-card {
    padding: 35px 20px;
  }
}


/* ==========================================
   QUIZ SUCCESS MODAL
========================================== */

.iceur-modal__dialog--success {
  text-align: center;
  max-width: 460px;
  padding: 42px 38px;
}

.quiz-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f7ed;
  color: #087d42;
  font-size: 32px;
}

.quiz-success-score {
  margin: 22px 0 6px;
  font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #087d42;
}

.quiz-success-threshold {
  margin: 0 0 28px;
  font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: #77857b;
}

.iceur-modal__dialog--success .iceur-modal__actions {
  justify-content: center;
}

.iceur-modal__dialog--success .iceur-modal__button {
  min-width: 210px;
}


/* ==========================================
   REFLECTION QUESTIONS
========================================== */

#reflectionQuestions {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 30px;
}

  #reflectionQuestions > div {
    padding-bottom: 26px;
    border-bottom: 1px solid #e2eae5;
  }

    #reflectionQuestions > div:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

  #reflectionQuestions h3 {
    font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #003600;
    margin: 0 0 16px;
  }

  #reflectionQuestions textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    padding: 14px 16px;
    box-sizing: border-box;
    border: 1px solid #d6e2da;
    border-radius: 10px;
    background: #ffffff;
    font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #263b2c;
    resize: vertical;
  }

    #reflectionQuestions textarea:focus {
      outline: none;
      border-color: #087d42;
    }

  #reflectionQuestions details {
    margin-top: 14px;
  }

  #reflectionQuestions summary {
    cursor: pointer;
    color: #087d42;
    font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
  }

  #reflectionQuestions details p {
    margin-top: 14px;
    padding: 18px 20px;
    background: #edf7f0;
    border-radius: 10px;
    font-family: 'Open Sans', 'Inter', Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #345441;
  }