:root {
  --dw-docenten-black: #111;
  --dw-docenten-cream: #faf7f2;
  --dw-docenten-beige: #f4efe8;
  --dw-docenten-border: rgba(0,0,0,.08);
  --dw-docenten-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.dw-docenten,
.dw-docenten *,
.dw-docenten *::before,
.dw-docenten *::after {
  box-sizing: border-box;
}

.dw-docenten {
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: hidden;
}

.dw-docenten__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.dw-docenten__filter {
  appearance: none;
  border: 1px solid var(--dw-docenten-border);
  background: #fff;
  color: var(--dw-docenten-black);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.dw-docenten__filter.is-active,
.dw-docenten__filter:hover {
  background: var(--dw-docenten-black);
  color: #fff;
}

.dw-docenten__grid {
  display: grid;
  grid-template-columns: repeat(var(--dw-docenten-columns, 3), minmax(0, 1fr));
  gap: 24px;
}

.dw-docent-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--dw-docenten-border);
  box-shadow: var(--dw-docenten-shadow);
}

.dw-docent-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--dw-docenten-beige);
  overflow: hidden;
  text-decoration: none !important;
}

.dw-docent-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dw-docent-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dw-docenten-black);
  font-size: 64px;
  font-weight: 900;
}

.dw-docent-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
  min-width: 0;
}

.dw-docent-card__badge,
.dw-docent-single__badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--dw-docenten-beige);
  color: var(--dw-docenten-black);
  font-size: 13px;
  font-weight: 800;
}

.dw-docent-card__title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.12;
}

.dw-docent-card__title a {
  color: inherit;
  text-decoration: none !important;
}

.dw-docent-card__subtitle {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--dw-docenten-black);
}

.dw-docent-card__specialisaties {
  margin: 0 0 14px;
  font-size: 15px;
  opacity: .78;
}

.dw-docent-card__excerpt {
  margin: 0 0 16px;
  line-height: 1.6;
}

.dw-docent-card__excerpt p {
  margin-top: 0;
}

.dw-docent-card__lessons {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--dw-docenten-cream);
  font-size: 15px;
  line-height: 1.55;
}

.dw-docent-card__lessons strong {
  display: block;
  margin-bottom: 4px;
}

.dw-docent-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.dw-docent-card__button,
.dw-docent-single__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--dw-docenten-black);
  color: #fff !important;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

.dw-docent-card__button:hover,
.dw-docent-single__button:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.dw-docent-card__link,
.dw-docent-single__link {
  color: var(--dw-docenten-black);
  font-weight: 800;
  text-decoration: underline;
}

.dw-docenten__empty {
  grid-column: 1 / -1;
}

/* Single docent */
.single-dw_docent .entry-title {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.dw-docent-single {
  max-width: 980px;
  margin: 0 auto 60px;
}

.dw-docent-single__image {
  margin: 0 0 30px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--dw-docenten-beige);
  box-shadow: 0 18px 50px rgba(0,0,0,.14);
  aspect-ratio: 16 / 9;
}

.dw-docent-single__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dw-docent-single__intro {
  margin-bottom: 28px;
}

.dw-docent-single__subtitle {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.dw-docent-single__specialisaties {
  margin: 0 0 22px;
  opacity: .78;
  font-weight: 700;
}

.dw-docent-single__quote {
  margin: 24px 0;
  padding: 22px 26px;
  border-left: 5px solid var(--dw-docenten-black);
  border-radius: 18px;
  background: var(--dw-docenten-cream);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.dw-docent-single__content {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.dw-docent-single__lessons {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--dw-docenten-cream);
  font-size: 17px;
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.dw-docent-single__lessons strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.dw-docent-single__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 30px 0 8px;
}

@media (max-width: 980px) {
  .dw-docenten {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dw-docenten__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dw-docenten {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dw-docenten__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dw-docent-card__body {
    padding: 20px;
  }

  .dw-docent-card__title {
    font-size: 24px;
  }

  .dw-docent-card__button,
  .dw-docent-single__button {
    width: 100%;
  }

  .dw-docent-single {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dw-docent-single__image {
    border-radius: 18px;
    margin-bottom: 22px;
  }

  .dw-docent-single__actions {
    align-items: stretch;
  }
}


/* v1.0.3: filters standaard uit, mobiele swipe-carousel */
@media (max-width: 640px) {
  .dw-docenten--mobile-carousel {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }

  .dw-docenten--mobile-carousel .dw-docenten__grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 18px 14px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .dw-docenten--mobile-carousel .dw-docenten__grid::-webkit-scrollbar {
    display: none;
  }

  .dw-docenten--mobile-carousel .dw-docent-card {
    flex: 0 0 calc(100vw - 54px);
    max-width: calc(100vw - 54px);
    scroll-snap-align: start;
  }

  .dw-docenten--mobile-carousel .dw-docenten__grid::after {
    content: "";
    flex: 0 0 1px;
  }
}


/* v1.0.4: echte mobiele carousel-dots */
.dw-docenten__mobile-hint {
  display: none;
}

@media (max-width: 640px) {
  .dw-docenten__mobile-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px 12px;
    font-size: 13px;
    font-weight: 800;
    opacity: .75;
  }

  .dw-docenten__dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .dw-docenten__dot {
    display: block;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0,0,0,.22);
    cursor: pointer;
  }

  .dw-docenten__dot.is-active {
    width: 19px;
    background: rgba(0,0,0,.8);
  }
}
