/* 2) No margin for introduction inside Question Set */

/* Change order only inside H5P Question Set */
/* =========================================================
   H5P Question Set - Result Screen
   Modern LMS / School UI
   Scoped to .questionset-results
   ========================================================= */

/* Outer result card */
/* =========================
   Banner
   ========================= */

.questionset-results .h5p-theme-results-banner {
  position: relative!important;
  overflow: hidden!important;
  border-radius: var(--qs-radius)!important;
  align-items: center!important;
  background:
    linear-gradient(135deg, rgba(88, 204, 108, 0.12) 0%, rgba(124, 109, 242, 0.10) 52%, rgba(241, 165, 45, 0.12) 100%),
    var(--qs-surface)!important;
  border: 1px solid rgba(124, 109, 242, 0.12)!important;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px!important;
  padding: 1.2rem 1.25rem!important;  
  text-align: center!important;
}

.questionset-results .h5p-theme-pattern {
  position: absolute!important;
  inset: 0!important;
  opacity: 0.45!important;
  pointer-events: none!important;
  background:
    radial-gradient(circle at 12% 20%, rgba(88, 204, 108, 0.14) 0, rgba(88, 204, 108, 0) 22%),
    radial-gradient(circle at 82% 24%, rgba(124, 109, 242, 0.16) 0, rgba(124, 109, 242, 0) 24%),
    radial-gradient(circle at 50% 100%, rgba(241, 165, 45, 0.14) 0, rgba(241, 165, 45, 0) 30%)!important;
}

.questionset-results .h5p-theme-results-title {
  position: relative!important;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem)!important;
  font-weight: 700!important;
  line-height: 1.2!important;
  color: #676e7a!important;
  margin-bottom: 0rem!important;
}

.questionset-results .h5p-theme-results-score {
  position: relative!important;
  font-size: clamp(1.1rem, 0.95rem + 1vw, 1.8rem)!important;
  font-weight: 700!important;
  line-height: 1.2!important;
  color: #e29c3b!important;
}

.questionset-results .h5p-theme-results-score span {
  color: #e29c3b!important;
  font-weight: 800!important;
}
/* Adds an emoji before feedback messages*/

.h5p-question-set .h5p-question-feedback-content-text::before {
  content: "💡"!important;
display: inline-flex!important;
align-items: center!important;
  margin-right: 8px!important;
}
/* =========================
   Results list container
   ========================= */

.questionset-results .h5p-theme-results-list-container {
  background: var(--qs-surface)!important;
  border: 1px solid var(--qs-border)!important;
  border-radius: var(--qs-radius)!important;
  box-shadow: var(--qs-shadow)!important;
  overflow: hidden!important;
}

/* Header row */
.questionset-results .h5p-theme-results-list-heading {
  display: grid!important;
  grid-template-columns: minmax(0, 1fr) auto!important;
  gap: 1rem!important;
  align-items: center!important;
  padding: 0.15rem 1.1rem!important;
  background: linear-gradient(180deg, #fcfdff 0%, #f5f8fc 100%)!important;
  border-bottom: 1px solid var(--qs-border)!important;
}
.questionset-results .h5p-theme-results-list-heading .heading-item {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  color: var(--qs-text-soft) !important;
  text-transform: uppercase !important;
}

/* List */
.questionset-results .h5p-theme-results-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0.5rem !important;
  display: grid !important;
  max-height: 20rem !important;
}

/* Each row/card */
.questionset-results .h5p-theme-results-list-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 1rem !important;
  align-items: center !important;
  padding: 0.95rem 1rem !important;
  border-bottom: 1px solid rgba(220, 223, 228, 0.9) !important;
  margin-bottom: 0px !important;
  transition:
    transform var(--qs-transition) !important,
    box-shadow var(--qs-transition) !important,
    border-color var(--qs-transition) !important,
    background-color var(--qs-transition) !important;
}

.questionset-results .h5p-theme-results-list-item:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 24px rgba(60, 60, 60, 0.08) !important;
  border-color: rgba(124, 109, 242, 0.22) !important;
  background: #ffffff !important;
}

/* 1) less font-weight inside result items */
.questionset-results .h5p-theme-results-list-item,
.questionset-results .h5p-theme-results-list-item * {
  font-weight: 500 !important;
}

.questionset-results .h5p-theme-results-question-container {
  min-width: 0 !important;
}

.questionset-results .h5p-theme-results-question {
  font-size: 0.98rem !important;
  line-height: 1.45 !important;
  color: var(--qs-text) !important;
  font-weight: 500 !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* Score pill */
.questionset-results .h5p-theme-results-points {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 72px !important;
  padding: 0.5rem 0.8rem !important;
  border-radius: 999px !important;
  background: rgba(88, 204, 108, 0.12) !important;
  border: 1px solid rgba(88, 204, 108, 0.22) !important;
  color: var(--qs-green-dark) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* =========================
   Buttons
   ========================= */

.questionset-results .buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.8rem !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 0.25rem !important;
  margin-bottom: 2rem !important;
}

.questionset-results .buttons .h5p-theme-button {
  appearance: none !important;
  border: none !important;
  border-radius: 16px !important;
  min-height: 50px !important;
  padding: 0 1.25rem !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition:
    transform 0.15s ease !important,
    box-shadow 0.2s ease !important,
    filter 0.2s ease !important,
    background-color 0.2s ease !important,
    border-color 0.2s ease !important;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.08) !important,
    0 10px 20px rgba(60, 60, 60, 0.08) !important;
}

/* Secondary button base */
.questionset-results .buttons .h5p-theme-secondary-cta {
  background: #ffffff !important;
  color: var(--qs-text) !important;
  border: 1px solid var(--qs-border) !important;
}

.questionset-results .h5p-theme-button .h5p-theme-label {
  text-transform: uppercase !important;
}

/* Show solutions */
.questionset-results .buttons .h5p-theme-show-solutions {
  background: #ffffff !important;
  color: var(--qs-purple-dark) !important;
  border: 1px solid rgba(124, 109, 242, 0.25) !important;
}

/* Retry button */
.questionset-results .buttons .h5p-theme-retry {
  background: #2e7d05 !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.02) !important;
  box-shadow:
    0 3px 0 var(--qs-green-dark) !important,
    0 12px 22px rgba(88, 204, 108, 0.26) !important;
}

.questionset-results .buttons .h5p-theme-button:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.01) !important;
}

.questionset-results .buttons .h5p-theme-button:active {
  transform: translateY(1px) !important;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.08) !important,
    0 6px 12px rgba(60, 60, 60, 0.08) !important;
}

.questionset-results .buttons .h5p-theme-button:focus-visible {
  outline: 3px solid rgba(124, 109, 242, 0.22) !important;
  outline-offset: 3px !important;
}

/* =========================
   Mobile / Tablet
   ========================= */

@media (max-width: 768px) {
  .questionset-results .h5p-theme-result-screen {
    gap: 0.85rem !important;
  }

  .questionset-results .h5p-theme-results-banner {
    padding: 1.2rem 1rem !important;
    border-radius: 18px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 96% !important;
  }

  .questionset-results .h5p-theme-results-list-container {
    border-radius: 18px !important;
  }

  .questionset-results .h5p-theme-results-list-heading {
    display: none !important;
  }

  .questionset-results .h5p-theme-results-list {
    padding: 0.45rem !important;
    gap: 0.6rem !important;
  }

  .questionset-results .h5p-theme-results-list-item {
    padding: 0.85rem 0.9rem !important;
    gap: 0.8rem !important;
  }

  .questionset-results .buttons {
    gap: 0.65rem !important;
  }

  .questionset-results .buttons .h5p-theme-button {
    min-height: 42px !important;
    padding: 0 1rem !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 560px) {
  .questionset-results .h5p-theme-results-list-heading {
    display: none !important;
  }

  .questionset-results .h5p-theme-results-list-item {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .questionset-results .h5p-theme-results-points {
    justify-self: start !important;
    margin-top: 0.2rem !important;
  }
}

/* =========================
   Optional: better spacing in embedded H5P wrappers
   ========================= */

.h5p-container .questionset-results {
  margin-top: 0.5rem !important;
}
/* 2) Remove the before pseudo-element from normal draggable handles */
/* 3) Remove before pseudo-element from correct + wrong dropped items too */
.questionset .h5p-drag-text .h5p-dropzone.h5p-dropzone--inline {
    width: auto !important;
    max-width: none !important;
    min-width: 45px !important;
    border: none !important;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset !important;
    background: #e7e9eb4d !important;
    margin-right: 2px;
    margin-left: 2px;
  }

/* Hide correct / wrong after pseudo-elements
   only for Drag Text items inside Question Set */
/* ==========================================
   H5P Question Set Navigation
   Modern / Duolingo-inspired
   Scoped to Question Set only
   ========================================== */

/* ==========================================
   Navigation buttons
   ========================================== */

/* Previous / Next */
/* Show results / finish button */
/* Hidden buttons */
/* ==========================================
   Progress dots container
   ========================================== */

/* List item cleanup */
/* ==========================================
   Progress dots
   ========================================== */

/* Hover/focus */
/* Unanswered */
/* Answered */
/* Current */
/* Current + answered */
/* ==========================================
   Labels inside buttons
   ========================================== */

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
  .questionset .h5p-navigation.qs-footer {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .questionset .h5p-navigation.qs-footer .h5p-theme-button {
    min-height: 42px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  .questionset .h5p-navigation.qs-footer .h5p-progress-dots-container {
    gap: 6px !important;
  }

  .questionset .h5p-navigation.qs-footer .h5p-progress-dot {
    width: 11px !important;
    height: 11px !important;
  }
}

@media (max-width: 520px) {
  .questionset .h5p-navigation.qs-footer {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .questionset .h5p-navigation.qs-footer .h5p-progress-dots-container {
    order: 3 !important;
    width: 100% !important;
    justify-content: center !important;
    margin-top: 2px !important;
  }

  .questionset .h5p-navigation.qs-footer .h5p-theme-previous,
  .questionset .h5p-navigation.qs-footer .h5p-theme-next,
  .questionset .h5p-navigation.qs-footer .h5p-theme-show-results {
    flex: 1 1 auto !important;
  }

}
.questionset {
    background: transparent !important;
    background-color: transparent !important;}
.questionset .question-container {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none!important;
    border: none!important;
    padding: 0px;
    margin: 0!important;
    margin-bottom: 10px!important;
}
/* 2) No margin for introduction inside Question Set */

.questionset .question-container .h5p-question-introduction {
    margin: 0 0 10px 0 !important;
}

.questionset .question-container .h5p-question-content {
  padding: 0 !important;
}
/* Change order only inside H5P Question Set */
.questionset .h5p-drag-text .h5p-drag-draggables-container {
  order: 2 !important;
}

.questionset .h5p-drag-text .h5p-drag-droppable-words-container {
  order: 1 !important;
}

/* =========================================================
   H5P Question Set - Result Screen
   Modern LMS / School UI
   Scoped to .questionset-results
   ========================================================= */

.questionset-results {
  --qs-bg: #f7f9fb;
  --qs-surface: #ffffff;
  --qs-surface-soft: #f9fbff;
  --qs-border: #dcdfe4;
  --qs-text: #3c3c3c;
  --qs-text-soft: #6b7280;
  --qs-orange: #f1a52d;
  --qs-orange-dark: #d98d17;
  --qs-green: #58cc6c;
  --qs-green-dark: #43b85a;
  --qs-purple: #7c6df2;
  --qs-purple-dark: #6857e6;
  --qs-shadow:
    0 12px 32px rgba(60, 60, 60, 0.08),
    0 3px 10px rgba(60, 60, 60, 0.04);
  --qs-shadow-hover:
    0 16px 36px rgba(60, 60, 60, 0.12),
    0 6px 14px rgba(60, 60, 60, 0.06);
  --qs-radius: 18px;
  --qs-transition: 0.22s ease;
  color: var(--qs-text);
  padding: 0.25rem;
  box-sizing: border-box;
  background: #ffffff00!important;
}

/* Outer result card */
.questionset-results .h5p-theme-result-screen {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
  box-sizing: border-box;
}

/* =========================
   Banner
   ========================= */

.questionset-results .h5p-theme-results-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--qs-radius);
  align-items: center!important;
  background:
    linear-gradient(135deg, rgba(88, 204, 108, 0.12) 0%, rgba(124, 109, 242, 0.10) 52%, rgba(241, 165, 45, 0.12) 100%),
    var(--qs-surface);
  border: 1px solid rgba(124, 109, 242, 0.12);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px!important;
  padding: 1.2rem 1.25rem;  
  text-align: center;
}

.questionset-results .h5p-theme-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(88, 204, 108, 0.14) 0, rgba(88, 204, 108, 0) 22%),
    radial-gradient(circle at 82% 24%, rgba(124, 109, 242, 0.16) 0, rgba(124, 109, 242, 0) 24%),
    radial-gradient(circle at 50% 100%, rgba(241, 165, 45, 0.14) 0, rgba(241, 165, 45, 0) 30%);
}

.questionset-results .h5p-theme-results-title {
  position: relative;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: #676e7a;
  margin-bottom: 0rem;
}

.questionset-results .h5p-theme-results-score {
  position: relative;
  font-size: clamp(1.1rem, 0.95rem + 1vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: #e29c3b;
}

.questionset-results .h5p-theme-results-score span {
  color: #e29c3b;
  font-weight: 800;
}
/* Adds an emoji before feedback messages*/

.h5p-question-set .h5p-question-feedback-content-text::before {
  content: "💡";
display: inline-flex;
align-items: center;
  margin-right: 8px;
}
/* =========================
   Results list container
   ========================= */

.questionset-results .h5p-theme-results-list-container {
  background: var(--qs-surface);
  border: 1px solid var(--qs-border);
  border-radius: var(--qs-radius);
  box-shadow: var(--qs-shadow);
  overflow: hidden;
  margin: 0px!important;
  max-height: calc(var(--h5p-theme-spacing-xl) * 30);
}

/* Header row */
.questionset-results .h5p-theme-results-list-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.15rem 1.1rem;
  background: linear-gradient(180deg, #fcfdff 0%, #f5f8fc 100%);
  border-bottom: 1px solid var(--qs-border);
}

.questionset-results .h5p-theme-results-list-heading .heading-item {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--qs-text-soft);
  text-transform: uppercase;
}

/* List */
.questionset-results .h5p-theme-results-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: grid;
  max-height: 20rem!important;
}

/* Each row/card */
.questionset-results .h5p-theme-results-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(220, 223, 228, 0.9);
  margin-bottom: 0px;
  transition:
    transform var(--qs-transition),
    box-shadow var(--qs-transition),
    border-color var(--qs-transition),
    background-color var(--qs-transition);
}

.questionset-results .h5p-theme-results-list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(60, 60, 60, 0.08);
  border-color: rgba(124, 109, 242, 0.22);
  background: #ffffff;
}

/* 1) less font-weight inside result items */
.questionset-results .h5p-theme-results-list-item,
.questionset-results .h5p-theme-results-list-item * {
  font-weight: 500;
}

.questionset-results .h5p-theme-results-question-container {
  min-width: 0;
}

.questionset-results .h5p-theme-results-question {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--qs-text);
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Score pill */
.questionset-results .h5p-theme-results-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(88, 204, 108, 0.12);
  border: 1px solid rgba(88, 204, 108, 0.22);
  color: var(--qs-green-dark);
  font-size: 0.95rem;
  font-weight: 700 !important;
  line-height: 1;
  white-space: nowrap;
}

/* =========================
   Buttons
   ========================= */

.questionset-results .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.25rem;
  margin-bottom: 2rem !important;
}

.questionset-results .buttons .h5p-theme-button {
  appearance: none;
  border: none;
  border-radius: 16px;
  min-height: 50px;
  padding: 0 1.25rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.08),
    0 10px 20px rgba(60, 60, 60, 0.08);
}

/* Secondary button base */
.questionset-results .buttons .h5p-theme-secondary-cta {
  background: #ffffff;
  color: var(--qs-text);
  border: 1px solid var(--qs-border);
}
.questionset-results .h5p-theme-button .h5p-theme-label {
  text-transform: uppercase;
}
/* Show solutions */
.questionset-results .buttons .h5p-theme-show-solutions {
  background: #ffffff;
  color: var(--qs-purple-dark);
  border: 1px solid rgba(124, 109, 242, 0.25);
}

/* Retry button */
.questionset-results .buttons .h5p-theme-retry {
  background: #2e7d05;
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow:
    0 3px 0 var(--qs-green-dark),
    0 12px 22px rgba(88, 204, 108, 0.26);
}

.questionset-results .buttons .h5p-theme-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.01);
}

.questionset-results .buttons .h5p-theme-button:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.08),
    0 6px 12px rgba(60, 60, 60, 0.08);
}

.questionset-results .buttons .h5p-theme-button:focus-visible {
  outline: 3px solid rgba(124, 109, 242, 0.22);
  outline-offset: 3px;
}

/* =========================
   Mobile / Tablet
   ========================= */

@media (max-width: 768px) {
  .questionset-results .h5p-theme-result-screen {
    gap: 0.85rem;
  }

  .questionset-results .h5p-theme-results-banner {
    padding: 1.2rem 1rem;
    border-radius: 18px;
    margin-left: auto;
    margin-right: auto;
    width: 96%;
  }

  .questionset-results .h5p-theme-results-list-container {
    border-radius: 18px;
  }

  .questionset-results .h5p-theme-results-list-heading {
    display: none;
  }

  .questionset-results .h5p-theme-results-list {
    padding: 0.45rem;
    gap: 0.6rem;
  }

  .questionset-results .h5p-theme-results-list-item {
    padding: 0.85rem 0.9rem;
    gap: 0.8rem;
  }

  .questionset-results .buttons {
    gap: 0.65rem;
  }

  .questionset-results .buttons .h5p-theme-button {
    min-height: 42px;
    padding: 0 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 560px) {
  .questionset-results .h5p-theme-results-list-heading {
    display: none;
  }

  .questionset-results .h5p-theme-results-list-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .questionset-results .h5p-theme-results-points {
    justify-self: start;
    margin-top: 0.2rem;
  }
}

/* =========================
   Optional: better spacing in embedded H5P wrappers
   ========================= */

.h5p-container .questionset-results {
  margin-top: 0.5rem;
}
/* =========================
   Question Set → Drag Text
   Draggables compact + no handle-before
   ========================= */

/* 1) Make draggable tiles narrower with only left/right padding */
.questionset .h5p-drag-text .h5p-draggable,
.questionset .h5p-drag-text .h5p-draggable--has-handle,
.questionset .h5p-drag-text .ui-draggable,
.questionset .h5p-drag-text .ui-draggable-handle {
  padding: 0 10px !important;
  min-width: 45px !important;
  box-sizing: border-box !important;
}

/* 2) Remove the before pseudo-element from normal draggable handles */
.questionset .h5p-theme .h5p-draggable.h5p-draggable--has-handle.ui-draggable-handle:not(.ui-draggable-disabled)::before {
  display: none !important;
  content: none !important;
}

/* 3) Remove before pseudo-element from correct + wrong dropped items too */
.questionset .h5p-drag-text .h5p-draggable.h5p-draggable--has-handle.h5p-draggable-correct::before,
.questionset .h5p-drag-text .h5p-draggable.h5p-draggable--has-handle.h5p-draggable-wrong::before,
.questionset .h5p-drag-text .h5p-draggable.h5p-draggable--has-handle.h5p-draggable-correct.ui-draggable-disabled::before,
.questionset .h5p-drag-text .h5p-draggable.h5p-draggable--has-handle.h5p-draggable-wrong.ui-draggable-disabled::before {
  display: none !important;
  content: none !important;
}

.questionset .h5p-drag-text .h5p-dropzone.h5p-dropzone--inline {
    width: auto !important;
    max-width: none !important;
    min-width: 45px !important;
    border: none !important;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset !important;
    background: #e7e9eb4d !important;
}

.questionset .h5p-drag-text .h5p-dropzone.h5p-dropzone--inline > .ui-droppable {
  width: auto !important;
  min-width: 45px !important;
  max-width: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* Hide correct / wrong after pseudo-elements
   only for Drag Text items inside Question Set */
.questionset .h5p-drag-text.h5p-theme .h5p-draggable:not(.h5p-draggable--points-and-status).h5p-draggable-correct::after,
.questionset .h5p-drag-text.h5p-theme .h5p-draggable:not(.h5p-draggable--points-and-status).h5p-draggable-wrong::after {
  display: none !important;
  content: none !important;
}
/* ==========================================
   H5P Question Set Navigation
   Modern / Duolingo-inspired
   Scoped to Question Set only
   ========================================== */

.questionset .h5p-navigation.qs-footer {
  --qs-nav-bg: rgba(255, 255, 255, 0.92);
  --qs-nav-border: #e7ebf0;
  --qs-nav-shadow: 0 10px 30px rgb(60 60 60 / 0.08);
  --qs-text: #3c3c3c;
  --qs-text-soft: #6b7280;
  --qs-green: #58cc6c;
  --qs-green-dark: #46b85a;
  --qs-orange: #f1a52d;
  --qs-orange-dark: #d98d17;
  --qs-purple: #7c6df2;
  --qs-purple-soft: rgba(124, 109, 242, 0.14);
  --qs-gray: #dcdfe4;
  --qs-gray-soft: #f4f6f8;
  --qs-white: #ffffff;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-top: 5px !important;
  padding: 14px 16px !important;
  background: var(--qs-nav-bg) !important;
  border: 1px solid var(--qs-nav-border) !important;
  border-radius: 22px !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box !important;
}

/* ==========================================
   Navigation buttons
   ========================================== */

.questionset .h5p-navigation.qs-footer .h5p-theme-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;

  cursor: pointer !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    background-color 0.18s ease !important;

  box-sizing: border-box !important;
}

/* Previous / Next */
.questionset .h5p-navigation.qs-footer .h5p-theme-nav-button {
  background: var(--qs-gray-soft) !important;
  color: var(--qs-text) !important;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.06) !important;
}

.questionset .h5p-navigation.qs-footer .h5p-theme-nav-button:hover:not(:disabled):not(.h5p-visibility-hidden),
.questionset .h5p-navigation.qs-footer .h5p-theme-nav-button:focus-visible:not(:disabled):not(.h5p-visibility-hidden) {
  transform: translateY(-1px) !important;
  filter: brightness(0.99) !important;
  outline: none !important;
}

/* Show results / finish button */
.questionset .h5p-navigation.qs-footer .h5p-theme-primary-cta {
  background: #2e7d05 !important;
  color: var(--qs-white) !important;
  box-shadow:
    inset 0 -4px 0 rgb(0 0 0 / 0.12),
    0 8px 20px rgb(88 204 108 / 0.22) !important;
}

.questionset .h5p-navigation.qs-footer .h5p-theme-primary-cta:hover:not(:disabled):not(.h5p-visibility-hidden),
.questionset .h5p-navigation.qs-footer .h5p-theme-primary-cta:focus-visible:not(:disabled):not(.h5p-visibility-hidden) {
  background: #276b04 !important;
  transform: translateY(-1px) !important;
  outline: none !important;
}

/* Hidden buttons */
.questionset .h5p-navigation.qs-footer .h5p-visibility-hidden {
  display: none !important;
}

/* ==========================================
   Progress dots container
   ========================================== */

.questionset .h5p-navigation.qs-footer .h5p-progress-dots-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
  gap: 8px !important;
overflow-x: auto !important;
  white-space: nowrap !important;
  margin: 0 !important;
  list-style: none !important;
  -ms-overflow-style: none !important;  /* IE / old Edge */
  scrollbar-width: none !important;     /* Firefox */
  min-width: 0 !important;
}
.questionset .h5p-navigation.qs-footer .h5p-progress-dots-container::-webkit-scrollbar {
  display: none !important;             /* Chrome / Safari */
}

.questionset .h5p-navigation.qs-footer .h5p-progress-item {
  flex: 0 0 auto !important;
}

/* List item cleanup */
.questionset .h5p-navigation.qs-footer .h5p-progress-item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* ==========================================
   Progress dots
   ========================================== */

.questionset .h5p-navigation.qs-footer .h5p-progress-dot {
  display: block !important;
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
  padding: 0 !important;

  border-radius: 50% !important;
  border: 2px solid transparent !important;
  background: var(--qs-gray) !important;

  box-sizing: border-box !important;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

/* Hover/focus */
.questionset .h5p-navigation.qs-footer .h5p-progress-dot:hover,
.questionset .h5p-navigation.qs-footer .h5p-progress-dot:focus-visible {
  transform: scale(1.08) !important;
  outline: none !important;
}

/* Unanswered */
.questionset .h5p-navigation.qs-footer .h5p-progress-dot.unanswered {
  background: #dcdfe4 !important;
  border-color: transparent !important;
}

/* Answered */
.questionset .h5p-navigation.qs-footer .h5p-progress-dot.answered {
  background: var(--qs-green) !important;
  border-color: var(--qs-green) !important;
  box-shadow: 0 0 0 3px rgb(88 204 108 / 0.14) !important;
}

/* Current */
.questionset .h5p-navigation.qs-footer .h5p-progress-dot.current {
  background: var(--qs-purple) !important;
  border-color: var(--qs-white) !important;
  box-shadow:
    0 0 0 4px var(--qs-purple-soft),
    0 4px 10px rgb(124 109 242 / 0.22) !important;
  transform: scale(1.15) !important;
}

/* Current + answered */
.questionset .h5p-navigation.qs-footer .h5p-progress-dot.current.answered {
  background: var(--qs-orange) !important;
  box-shadow:
    0 0 0 4px rgb(241 165 45 / 0.18),
    0 4px 10px rgb(241 165 45 / 0.2) !important;
}

/* ==========================================
   Labels inside buttons
   ========================================== */

.questionset .h5p-navigation.qs-footer .h5p-theme-label {
  display: inline-block !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: 1 !important;
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
  .questionset .h5p-navigation.qs-footer {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .questionset .h5p-navigation.qs-footer .h5p-theme-button {
    min-height: 42px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  .questionset .h5p-navigation.qs-footer .h5p-progress-dots-container {
    gap: 6px !important;
  }

  .questionset .h5p-navigation.qs-footer .h5p-progress-dot {
    width: 11px !important;
    height: 11px !important;
  }
}

@media (max-width: 520px) {
  .questionset .h5p-navigation.qs-footer {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .questionset .h5p-navigation.qs-footer .h5p-progress-dots-container {
    order: 3 !important;
    width: 100% !important;
    justify-content: center !important;
    margin-top: 2px !important;
  }

  .questionset .h5p-navigation.qs-footer .h5p-theme-previous,
  .questionset .h5p-navigation.qs-footer .h5p-theme-next,
  .questionset .h5p-navigation.qs-footer .h5p-theme-show-results {
    flex: 1 1 auto !important;
  }

}
/* =========================================
   H5P Evaluation Area — Duolingo-inspired
   Clean, friendly, app-like UI
   ========================================= */
   .questionset .question-container .h5p-question-evaluation-container.evaluation-mode {
  margin-top: 0 !important;
}
