/* Categoriepagina "variant B" (Figma: Examinaties > Mockup categoriepagina – variant B). */
.tl-cat {
  --tl-groen: #093a21;
  --tl-oranje: #fc4b01;
  --tl-creme: #fefae7;
  --tl-grijs: #5c7a66;
  --tl-licht: #999;
  --tl-lijn: #e4e4e4;
  color: var(--tl-groen);
  max-width: 1280px;
  margin: 0 auto;
}

.tl-cat a { text-decoration: none; }
.tl-cat h2 { margin: 0; color: var(--tl-groen); }

/* Zoeken + type */
.tl-cat-zoek {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 0 0;
}

.tl-cat-zoekveld {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid var(--tl-lijn);
  border-radius: 12px;
  background: #fff;
  color: #888;
}

.tl-cat-zoekveld input.tl-cat-q {
  flex: 1;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: auto;
  border: 0;
  outline: 0;
  padding: 16px 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--tl-groen);
  box-shadow: none;
}

.tl-cat-zoekveld:focus-within { border-color: var(--tl-groen); }

.tl-cat .tl-cat-filterknop { display: none; }

.tl-cat-types {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.tl-cat-types span { font-weight: 600; margin-right: 4px; }

.tl-cat .tl-cat-types button,
.tl-cat .tl-cat-filterknop {
  padding: 8px 16px;
  border: 1px solid var(--tl-lijn);
  border-radius: 100px;
  background: #fff;
  color: var(--tl-groen);
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.tl-cat .tl-cat-types button:hover,
.tl-cat .tl-cat-types button:focus,
.tl-cat .tl-cat-filterknop:hover,
.tl-cat .tl-cat-filterknop:focus {
  border-color: var(--tl-groen);
  background: #fff;
  color: var(--tl-groen);
}

.tl-cat .tl-cat-types button[aria-pressed="true"] {
  background: var(--tl-groen);
  border-color: var(--tl-groen);
  color: #fff;
}

/* Layout */
.tl-cat-tabs { display: none; }

.tl-cat-body {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 40px 0 72px;
}

/* Zijnavigatie */
.tl-cat-side {
  position: sticky;
  top: 120px;
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-size: 15px;
}

.tl-cat-side-kop,
.tl-cat-side-link {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--tl-groen);
}

.tl-cat-side-kop { margin-bottom: 10px; }

.tl-cat-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--tl-lijn);
}

.tl-cat-side li { margin: 0; padding: 0; }

.tl-cat-side li a {
  display: flex;
  justify-content: space-between;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 3px solid transparent;
  color: var(--tl-groen);
}

.tl-cat-side li a:hover { color: var(--tl-oranje); }

.tl-cat-side li a.is-actief {
  border-left-color: var(--tl-oranje);
  font-weight: 600;
}

.tl-cat-side span,
.tl-cat-aantal {
  color: var(--tl-licht);
  font-weight: 400;
}

/* Inhoud */
.tl-cat-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.tl-cat-groep {
  display: flex;
  flex-direction: column;
  gap: 28px;
  scroll-margin-top: 120px;
}

.tl-cat-groep > h2 { font-size: 32px; line-height: 1.2; }
.tl-cat-intro { margin: -20px 0 0; color: var(--tl-grijs); }

.tl-cat-sub { scroll-margin-top: 120px; }

.tl-cat-sub summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  list-style: none;
  font-size: 20px;
  font-weight: 600;
  pointer-events: none;
}

.tl-cat-sub summary::-webkit-details-marker { display: none; }
.tl-cat-sub summary svg { display: none; }
.tl-cat-sub summary .tl-cat-aantal { font-size: 15px; }
.tl-cat-sub.is-vlak summary { display: none; }

.tl-cat-raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tl-cat-kaart {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 104px;
  padding: 20px;
  border-radius: 12px;
  background: var(--tl-creme);
  color: var(--tl-groen);
  transition: background-color 0.15s;
}

/* Hover (alleen desktop): kaart iets donkerder geel. */
@media (hover: hover) and (min-width: 768px) {
  .tl-cat-kaart:hover { background: #faefc2; }
  .tl-cat .tl-cat-kaart .tl-cat-varianten a:hover { background: var(--tl-groen); color: #fff; }
}

.tl-cat-top { display: flex; flex-direction: column; gap: 4px; }
.tl-cat-titel { font-size: 17px; font-weight: 600; line-height: 1.3; }
.tl-cat-code { font-size: 13px; font-weight: 600; color: var(--tl-grijs); }

.tl-cat-populair {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--tl-oranje);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  vertical-align: 2px;
}

.tl-cat-varianten { display: flex; flex-wrap: wrap; gap: 6px; }

.tl-cat-varianten a {
  padding: 6px 10px;
  border-radius: 100px;
  background: #fff;
  color: var(--tl-groen);
  font-size: 13px;
  line-height: 1.2;
}


.tl-cat-pijl { align-self: flex-end; display: flex; margin-top: auto; }

.tl-cat-leeg { color: var(--tl-grijs); }

/* Filteren (JS zet [hidden]) */
.tl-cat [hidden] { display: none !important; }

/* CTA */
.tl-cat-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
  padding: 40px 48px;
  border-radius: 24px;
  background: var(--tl-groen);
  color: #fff;
}

.tl-cat-cta h2 { color: #fff; font-size: 26px; }
.tl-cat-cta p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.8); }

.tl-cat-cta > a {
  flex: none;
  padding: 12px 21px; /* zoals de Elementor-knoppen op de site */
  border-radius: 12px;
  font-size: 17px;
  background: var(--tl-oranje);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .tl-cat-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobiel: tabs + accordeons, kaarten als rijen */
@media (max-width: 767px) {
  .tl-cat-zoek { gap: 10px; padding-top: 20px; }
  .tl-cat-zoekveld { flex: 1 1 0; padding: 0 14px; }
  .tl-cat-zoekveld input.tl-cat-q { padding: 13px 0; }

  .tl-cat .tl-cat-filterknop {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    font-weight: 600;
  }

  .tl-cat-types { display: none; }
  .tl-cat-types.is-open { display: flex; }

  .tl-cat-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 24px;
    margin: 20px 0 0;
    padding: 0;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid var(--tl-lijn);
    scrollbar-width: none;
  }

  .tl-cat-tabs a {
    flex: none;
    padding: 12px 0;
    border-bottom: 3px solid transparent;
    color: var(--tl-groen);
    font-size: 15px;
    white-space: nowrap;
  }

  .tl-cat-tabs a.is-actief { border-bottom-color: var(--tl-oranje); font-weight: 600; }

  .tl-cat-side { display: none; }
  .tl-cat-body { display: block; padding: 32px 0 48px; }
  .tl-cat-content { gap: 40px; }
  .tl-cat-groep { gap: 12px; scroll-margin-top: 64px; }
  .tl-cat-groep > h2 { font-size: 24px; margin-bottom: 4px; }
  .tl-cat-intro { margin: -4px 0 4px; font-size: 14px; }

  .tl-cat-sub {
    border-radius: 12px;
    background: var(--tl-creme);
    scroll-margin-top: 64px;
  }

  .tl-cat-sub summary,
  .tl-cat-sub.is-vlak summary {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 16px;
    font-size: 16px;
    pointer-events: auto;
    cursor: pointer;
  }

  .tl-cat-subnaam { flex: 1; }
  .tl-cat-sub summary svg { display: block; transition: transform 0.2s; }
  .tl-cat-sub[open] summary svg { transform: rotate(180deg); }
  .tl-cat-sub[open] summary { border-bottom: 1px solid rgba(9, 58, 33, 0.1); }

  .tl-cat-raster { display: block; }

  .tl-cat-kaart {
    position: relative;
    min-height: 0;
    gap: 8px;
    padding: 14px 44px 14px 16px;
    border-radius: 0;
    background: none;
  }

  .tl-cat-kaart + .tl-cat-kaart { border-top: 1px solid rgba(9, 58, 33, 0.1); }
  .tl-cat-titel { font-size: 15px; font-weight: 500; }

  .tl-cat-pijl {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .tl-cat-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .tl-cat-cta h2 { font-size: 22px; }
}
