/* SL Course Outline – styles */
.sl-section {
  border: 2px solid rgba(63, 76, 148, 1);
  border-radius: 20px;
  padding: 1em;
  margin-bottom: 1em;
  background: rgba(12, 18, 40, .55);
}
.sl-section:hover {
  background: rgba(12, 18, 40, .95);
}

.sl-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
  cursor: pointer;
}

/* Maak de sl-chapter-meta een flex container */
.sl-chapter-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 2em 2em 2em 0em;
}


/* Wrapper voor titel en counts (verticaal) */
.sl-section-header-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.sl-section-title { 
  font-weight: 700; 
  margin: 0;
  font-size: 1.3em;
}

/* Module badge - in blokje */
.sl-module-badge {
    display: inline-block;
    padding: 1px 0px;
    border: solid rgba(63, 76, 148, 0.5);
    border-width: 0px 0px 4px 0px;
    border-radius: 0px;
    font-size: 0.75em;
    font-weight: 600;
    color: rgb(255 255 255 / 80%);
    text-transform: lowercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    display: block;
    width: fit-content;
}

/* Container voor de counts - compact blokje */
.sl-section-counts {
  display: inline-flex;
  gap: 1em;
  flex-wrap: wrap;
}

.sl-section-count { 
  display: inline;
  padding: 6px 12px;
  background: rgba(63, 76, 148, 0.3);
  border: 1px solid rgba(63, 76, 148, 0.5);
  border-radius: 6px;
  font-size: 0.6em;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  white-space: nowrap;
  width: fit-content;
}

.sl-section-toggle {
  background: transparent !important;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #fff;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background .2s, transform .15s ease;
  font-size: 0.7em !important;
  flex-shrink: 0;
  margin-top: 2px;
}
.sl-section-toggle:hover { background: rgba(63, 76, 148, .3); }
.sl-section-toggle.is-closed { transform: rotate(-90deg); }

.sl-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
  max-height: 10000px;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sl-chapter-list[style*="display:none"] {
  max-height: 0;
}

/* Wrapper voor chapters - voor dividers */
.sl-chapter-wrapper {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
}

.sl-chapter-wrapper--lesson {
  border-bottom: 1px solid rgba(63, 76, 148, 0.3);
  padding-bottom: 0;
}

/* Divider tussen items */
.sl-chapter-divider {
  height: 1px;
  background: rgba(63, 76, 148, 0.2);
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
}
.sl-chapter {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(63, 76, 148, 0.2);
}

.sl-chapter:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sl-chapter-thumb-wrap {
  width: 10vh; height: 10vh; flex: 0 0 10vh;
  border-radius: 12px; overflow: hidden;
  margin: 1em;
}
.sl-chapter-thumb,
.sl-chapter-thumb-wrap img {
  width: 100%; height: 100% !important;
  object-fit: cover; object-position: center center;
  display: block;
}
.sl-thumb--placeholder { width: 100%; height: 100%; background: rgba(255, 255, 255, .06); }

.sl-chapter-title { 
  font-weight: 700; 
  line-height: 1.3; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  flex: 1;
  margin: 0;
}

.sl-check { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16x;
  height: 16px;
  min-width: 16px;
  flex-shrink: 0;
  background: #339cde;
  border-radius: 50%;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  animation: slideInCheck 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: auto;
}

@keyframes slideInCheck {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/*
 * Extra stijl voor Les Introductie vs. Topics vs. Quiz
 */

/* --- Icon Overlay Styling --- */
.sl-chapter .sl-chapter-thumb-wrap {
  position: relative;
  overflow: hidden;
}

.sl-icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease;
  pointer-events: none;
}

.sl-chapter:hover .sl-icon-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.sl-icon-overlay svg {
  width: 50%;
  height: 50%;
  fill: #fff;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.sl-chapter:hover .sl-icon-overlay svg {
    opacity: 1;
}

/* Font Awesome icons in overlay */
.sl-icon-overlay i {
  font-size: 3em;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.sl-chapter:hover .sl-icon-overlay i {
    opacity: 1;
}

/* Fallback SVG (verborgen tenzij Font Awesome niet laadt) */
.sl-icon-overlay .fa-fallback {
  width: 50%;
  height: 50%;
  fill: #fff;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  display: none;
}

/* Toon fallback SVG als Font Awesome icon niet geladen is */
.sl-icon-overlay i:not(.fa-solid):not(.fas):not(.far):not(.fab) + .fa-fallback,
.sl-icon-overlay i.fa-solid:empty + .fa-fallback {
  display: block;
}

.sl-chapter:hover .sl-icon-overlay .fa-fallback {
    opacity: 1;
}

/* --- 1. Les Introductie & Quiz (groot, vierkant) --- */

.sl-chapter--lesson-intro,
.sl-chapter--quiz {
  background: rgba(255, 255, 255, .05);
  border-radius: 12px;
  gap: 16px; 
  padding: 0;
  margin: 0;
}

.sl-chapter--lesson-intro .sl-chapter-thumb-wrap,
.sl-chapter--quiz .sl-chapter-thumb-wrap {
  width: 10vh; 
  height: 10vh;
  flex: 0 0 10vh;
  border-radius: 12px; 
}

/* --- 2. Topic (klein, rond) --- */

.sl-chapter--topic {
  margin: 0;
  gap: 12px; 
  transition: background .2s ease;
  padding: 0;
  background: transparent;
  padding-left: 1em;
}

.sl-chapter--topic .sl-chapter-thumb-wrap {
  width: 5vh; 
  height: 5vh;
  flex: 0 0 5vh;
  border-radius: 50%; 
}

.sl-chapter--topic .sl-chapter-title {
  font-size: 0.9em;
}

/* --- 3. Hover en Actieve staten --- */

.sl-chapter--topic:hover { 
  background: rgba(191, 190, 219, .07); 
}

.sl-chapter--lesson-intro:hover,
.sl-chapter--quiz:hover {
  background: rgba(191, 190, 219, .15);
}

.sl-chapter.sl-chapter--lesson-intro.is-current,
.sl-chapter.sl-chapter--quiz.is-current {
  background: rgba(63, 76, 148, .5);
}
.sl-chapter.sl-chapter--lesson-intro.is-current .sl-chapter-lesson-title,
.sl-chapter.sl-chapter--quiz.is-current .sl-chapter-quiz-title {
  font-style: normal;
  opacity: 1;
}

.sl-chapter.sl-chapter--topic.is-current {
  background: rgba(191, 190, 219, .1);
}

/* --- Nieuwe classes voor introductie en quiz --- */
.sl-chapter-intro-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sl-chapter-intro-text {
  font-size: 0.85em;
  font-style: italic;
  opacity: 0.8;
}

.sl-chapter-lesson-title {
  font-weight: 700;
  line-height: 1.3;
}

.sl-chapter-topic-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sl-chapter-topic-number {
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
  color: rgb(255 255 255 / 70%);
}

.sl-chapter-quiz-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sl-chapter-quiz-text {
  font-size: 0.85em;
  font-style: italic;
  opacity: 0.8;
}

.sl-chapter-quiz-title {
  font-weight: 700;
  line-height: 1.3;
  font-size: 1em;
}

/* --- Verberg contentbox op lesson pages zonder video en topics --- */
.sl-no-video-no-topics .contentbox {
  display: none;
}

.sl-no-video-no-topics .contentcontainer {
  width: 65%;
}