@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Vollkorn:wght@400;500;700&display=swap");

:root {
  --brand-purple: #ceb2f7;
  --brand-blue: #a9c7fb;
  --brand-orange: #f6c69a;
  --brand-yellow: var(--brand-orange);
  --brand-green: #9edfc9;
  --brand-dark: #090d26;
  --brand-light: #f3f7f8;

  --bg: var(--brand-light);
  --ink: var(--brand-dark);
  --muted: #3d4669;
  --card: #ffffff;
  --accent: var(--brand-blue);
  --line: #d8e4ea;
  --shadow: 0 14px 34px rgba(9, 13, 38, 0.12);
  --shadow-soft: 0 8px 18px rgba(9, 13, 38, 0.08);
  --radius: 18px;
  --content-max: 1200px;
  --page-pad: 40px;

  --domain-1: var(--brand-blue);
  --domain-2: var(--brand-green);
  --domain-3: var(--brand-purple);
  --domain-4: var(--brand-orange);
  --domain-5: var(--brand-blue);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

strong,
b {
  font-weight: 400;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: #f9fbfd;
  min-height: 100vh;
  font-weight: 400;
}

html {
  scrollbar-gutter: stable;
}

.app-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px var(--page-pad) 10px;
  background: transparent;
  max-width: var(--content-max);
  margin: 0 auto;
}

.home-hero {
  align-items: center;
  text-align: center;
}

.home-hero .brand {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.home-hero h1 {
  margin: 0;
}

.site-nav {
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 40;
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px var(--page-pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--brand-dark);
  text-decoration: none;
}

.nav-brand img {
  width: auto;
  height: 40px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: center;
}

.nav-link {
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--brand-dark);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #9fc3fa;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: #000;
  border: 1px solid #000;
  border-radius: 0;
  box-shadow: var(--shadow-soft);
  padding: 8px;
  display: none;
  z-index: 30;
  max-height: 360px;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.65) #000;
}

.nav-dropdown-menu::-webkit-scrollbar {
  width: 10px;
}

.nav-dropdown-menu::-webkit-scrollbar-track {
  background: #000;
}

.nav-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  border: 2px solid #000;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: grid;
  gap: 4px;
}

.nav-caret {
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transform: translateY(2px);
}

.nav-dropdown.is-open .nav-caret {
  transform: translateY(2px) rotate(180deg);
}

.nav-dropdown-item {
  display: block;
  padding: 8px 10px;
  border-radius: 0;
  text-decoration: none;
  color: #fff;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 15px;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-dropdown-note {
  color: #fff;
}

.header-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: none;
  width: 100%;
}

.brand-bar {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  width: 100%;
  margin-bottom: 12px;
}

.domains-card {
  border: 1px solid #e8eef2;
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: none;
  width: 100%;
}

.content-card {
  max-width: calc(var(--content-max) - (2 * var(--page-pad)));
  margin: 8px auto 0;
  padding: 20px var(--page-pad);
  border: 1px solid #e8eef2;
  border-radius: 18px;
  background: #f9fbfd;
  width: 100%;
}

.over-content-card {
  background: #fff;
}

.over-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.over-text {
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
}

.type-hero .over-title {
  margin: 0 0 10px;
  text-align: left;
  justify-self: start;
  font-size: 24px;
  font-weight: 700;
}

.over-text p {
  margin: 0 0 18px;
}

.over-text p:last-of-type {
  margin-bottom: 12px;
}

.over-image-slot {
  border-radius: 14px;
  min-height: 100%;
  overflow: hidden;
}

.over-side-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.over-banner-link {
  display: block;
  width: 50%;
  margin-top: 20px;
}

.over-banner {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: transparent;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

h1,
h2 {
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  font-weight: 400;
}

h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
}

.section-title {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.15;
  color: var(--brand-dark);
  font-weight: 400;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
}

.section-title-hint {
  font-size: 11px;
  color: #4a4a4a;
  font-weight: 400;
}

.vak-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 6px;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
}

.lede {
  margin: 0;
  color: var(--muted);
}

.lede:empty {
  display: none;
}

.back-link {
  background: var(--accent);
  border-radius: 999px;
  padding: 8px 13px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 400;
}

.pill {
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.counts {
  font-size: 14px;
  color: var(--muted);
}

.controls {
  display: grid;
  gap: 10px;
  padding: 14px 0 0;
}

.control-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.stats-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.type-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.type-filter .toggle {
  width: auto;
  height: 36px;
  padding: 0 14px;
}

.filter-card {
  max-width: calc(var(--content-max) - (2 * var(--page-pad)));
  margin: 8px auto 0;
  padding: 12px var(--page-pad);
  border: 1px solid #e8eef2;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-card .filter-toggle {
  background: transparent;
  border: 2px solid var(--brand-blue);
  color: var(--brand-dark);
}

.filter-card .filter-toggle.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--brand-dark);
}

.goal-type-summary {
  font-size: 13px;
  color: var(--muted);
}

.search {
  display: grid;
  gap: 6px;
  flex: 1 1 240px;
  font-size: 14px;
  color: var(--muted);
}

.search-inline {
  flex: 1 1 360px;
}

.search-inline span {
  display: none;
}

.search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
}

button.ghost {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.domains {
  background: #ffffff;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  overflow: hidden;
}

.domain-tile {
  min-width: 0;
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: none;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  text-align: left;
  --badge-accent: var(--domain-color, var(--accent));
}

.domain-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--domain-color, var(--accent));
  border-radius: 14px 14px 0 0;
}

.domain-tile.active {
  border-color: var(--brand-dark);
}

.domain-title {
  font-weight: 400;
  font-size: 15px;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  line-height: 1.4;
  min-height: calc(1.4em * 2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.domain-count {
  font-size: 12px;
  color: var(--muted);
  padding-left: 48px;
  margin-top: auto;
}

.subjects {
  padding: 20px var(--page-pad);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: var(--content-max);
  margin: 0 auto;
}

.type-hero {
  max-width: var(--content-max);
  margin: 18px auto 0;
  padding: 0 var(--page-pad);
  display: grid;
  gap: 18px;
  align-content: start;
}

.over-hero {
  margin-top: 28px;
}

body.home-mode .type-hero {
  align-content: center;
  min-height: calc(100vh - 210px);
}

.home-subtitle {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.education-types {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  max-width: 700px;
  margin: 0 auto;
}

.education-type-card {
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
  min-height: 150px;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.education-type-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: clamp(56px, 22%, 92px);
  background: var(--subject-color, var(--accent));
  border-radius: 0;
  z-index: 0;
}

.education-type-card > * {
  position: relative;
  z-index: 1;
}

.education-type-card.active {
  border-color: var(--brand-dark);
}

.education-type-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--subject-color, var(--accent)) 48%, #ffffff);
  box-shadow: 0 20px 30px rgba(9, 13, 38, 0.14);
}

.education-type-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.education-type-card p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.search-hero {
  max-width: var(--content-max);
  margin: 18px auto 0;
  padding: 0 var(--page-pad) 10px;
  display: grid;
  gap: 10px;
  position: relative;
}

.type-hero[hidden] + .search-hero {
  margin-top: clamp(84px, 10vw, 112px);
}

.type-hero[hidden] + .search-hero + .subjects {
  margin-top: 24px;
}

.search-global {
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
}

.home-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  color: var(--brand-dark);
  text-align: center;
}

.home-main-title {
  font-size: 19px;
  font-weight: 600;
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, calc(100% - (2 * var(--page-pad))));
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.search-result-count {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.search-result-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.search-result {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e8eef2;
  text-decoration: none;
  color: var(--ink);
  background: #f9fbfd;
}

.search-result:hover {
  border-color: var(--accent);
}

.search-result-title {
  font-size: 14px;
}

.search-result-meta {
  font-size: 12px;
  color: var(--muted);
}

.search-empty {
  font-size: 13px;
  color: var(--muted);
}

.type-empty {
  max-width: var(--content-max);
  margin: 8px auto 0;
  padding: 20px var(--page-pad);
}

.type-hero,
.search-hero,
.subjects,
.type-empty {
  transition: opacity 0.36s ease, transform 0.36s ease;
}

body.view-switching .type-hero {
  opacity: 0;
  transform: translateY(-20px) scale(0.985);
}

body.view-switching .search-hero,
body.view-switching .subjects,
body.view-switching .type-empty {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
}

body.view-entered .search-hero,
body.view-entered .subjects,
body.view-entered .type-empty {
  animation: view-fade-in 0.44s ease both;
}

@keyframes view-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.type-empty-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid #e8eef2;
  padding: 20px;
  display: grid;
  gap: 10px;
}

.type-empty-card h2 {
  margin: 0;
  font-size: 22px;
}

.type-empty-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.subject-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
  will-change: transform;
}

.subject-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: clamp(56px, 22%, 92px);
  background: color-mix(in srgb, var(--subject-color, var(--accent)) 30%, #ffffff);
  border-radius: 0;
  z-index: 0;
}

.subject-card > * {
  position: relative;
  z-index: 1;
}

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
  border-color: color-mix(in srgb, var(--subject-color, var(--accent)) 48%, #ffffff);
}

body.page-leaving .subject-card {
  opacity: 0.38;
  transform: scale(0.985);
  filter: saturate(0.8);
}

body.page-leaving .subject-card.is-leaving {
  opacity: 1;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 36px rgba(15, 23, 42, 0.18);
  filter: saturate(1);
}

.subject-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  font-weight: 400;
}

.subject-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.kerndoelen {
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  margin: 0;
  align-items: start;
}

.kerndoelen.limit-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 820px) {
  .kerndoelen,
  .kerndoelen.limit-two {
    grid-template-columns: 1fr;
  }
}

.kerndoel-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid #e7edf2;
  border-top: 4px solid var(--kerndoel-accent, var(--accent));
  padding: 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  --accent: var(--kerndoel-accent, var(--accent));
  --badge-accent: var(--kerndoel-accent, var(--accent));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.kerndoel-card:only-child {
  font-size: 15px;
  font-weight: 400;
}

.kerndoel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
  border-color: color-mix(in srgb, var(--kerndoel-accent, var(--accent)) 48%, #ffffff);
}

.kerndoel-head {
  display: block;
}

.kerndoel-actions {
  display: none;
  grid-template-columns: repeat(2, 120px);
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  margin-bottom: 12px;
  padding-left: 52px;
}

.kerndoel-title {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  align-items: flex-start;
}


.kerndoel-desc {
  color: var(--muted);
  font-size: 14px;
}

.toggle {
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--brand-dark);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  width: 120px;
  height: 40px;
  padding: 0 10px;
  font-family: inherit;
  flex: 0 0 auto;
  white-space: nowrap;
  text-shadow: none;
}

.toggle.active {
  background: var(--brand-dark);
  color: #fff;
}

.kerndoel-actions .toggle {
  background: transparent;
  border: 2px solid var(--kerndoel-accent, var(--accent));
  color: var(--kerndoel-accent, var(--accent));
}

.kerndoel-actions .toggle.active {
  background: var(--kerndoel-accent, var(--accent));
  border-color: var(--kerndoel-accent, var(--accent));
  color: #fff;
}

.leerdoelen-heading {
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #000;
  margin-top: 14px;
}

.kerndoel-card.is-open .leerdoelen-heading {
  margin-top: 14px;
}

.leerdoelen-subheading {
  margin: 8px 2px -2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
}

.kerndoel-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.kerndoel-modal[hidden] {
  display: none;
}

.kerndoel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}

.kerndoel-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e7edf2;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.kerndoel-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kerndoel-modal-title {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.kerndoel-modal-close {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  flex: 0 0 auto;
}

.kerndoel-modal-actions {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #f0f4f8;
  border: 1px solid #e3e8ee;
  width: fit-content;
}

.kerndoel-modal-content {
  display: grid;
  gap: 12px;
}

.kerndoel-modal-actions .switch-tab {
  width: auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand-dark);
}

.kerndoel-modal-actions .switch-tab.active {
  background: #fff;
  border-color: #d6dee6;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

body.modal-open {
  overflow: hidden;
}

.leerdoelen {
  display: grid;
  gap: 10px;
}

.leerdoel {
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--line)) 42%, #ffffff);
  padding: 10px 12px;
  background: #fff;
  position: relative;
  overflow: hidden;
  --badge-accent: var(--accent, var(--brand-blue));
}

.leerdoel:hover {
  border-color: color-mix(in srgb, var(--accent, var(--line)) 60%, #ffffff);
}

.leerdoel.leerdoel-aanvulling {
  background: #fff;
}

.leerdoel::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 28px;
  background: color-mix(in srgb, var(--accent, var(--line)) 16%, #ffffff);
  z-index: 0;
}

.leerdoel::before {
  content: none;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background: var(--accent);
  z-index: 2;
}

.leerdoel > * {
  position: relative;
  z-index: 1;
}

.leerdoel-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.leerdoel-details {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  padding-left: 52px;
}

.code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  background: var(--badge-accent, var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  flex: 0 0 auto;
}

.code-title-text {
  flex: 1 1 auto;
}

.goal-type-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 8px;
  margin-bottom: 8px;
  border: 1px solid transparent;
}

.goal-type-aanbods {
  background: color-mix(in srgb, var(--brand-orange) 28%, #ffffff);
  border-color: var(--brand-orange);
  color: #7f4a00;
}

.goal-type-beheersings {
  background: color-mix(in srgb, var(--brand-blue) 24%, #ffffff);
  border-color: var(--brand-blue);
  color: #14407d;
}

.goal-type-ervarings {
  background: color-mix(in srgb, var(--brand-green) 24%, #ffffff);
  border-color: var(--brand-green);
  color: #0d5b46;
}

.reflection {
  padding: 20px var(--page-pad);
  max-width: var(--content-max);
  margin: 0 auto;
}

.vak-footer {
  max-width: var(--content-max);
  margin: 96px auto 24px;
  padding: 0 var(--page-pad) 20px;
}

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

.vak-footer-column {
  background: #fff;
  border: 2px solid var(--footer-accent, #e8eef2);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.vak-footer-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
  border-color: color-mix(in srgb, var(--footer-accent, var(--brand-blue)) 82%, #ffffff);
}

.vak-footer-grid > .vak-footer-column:nth-child(1) {
  --footer-accent: var(--brand-purple);
}

.vak-footer-grid > .vak-footer-column:nth-child(2) {
  --footer-accent: var(--brand-green);
}

.vak-footer-grid > .vak-footer-column:nth-child(3) {
  --footer-accent: var(--brand-orange);
}

.vak-footer-column-link {
  text-decoration: none;
  color: inherit;
}

.vak-footer-column-link:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.vak-footer-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--brand-dark);
}

.vak-footer-text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.vak-footer-image-placeholder {
  border: 1px dashed #9db2c1;
  border-radius: 12px;
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  background: #f9fbfd;
}

.vak-footer-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.reflection-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.cta-button {
  align-self: flex-start;
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
}

.nav-link-active {
  color: #9fc3fa;
  text-decoration: none;
}

.video-page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px var(--page-pad) 50px;
}

.video-page-header h1 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
}

.video-page-header p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.video-grid {
  margin-top: 26px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.video-card {
  border: 1px solid #d9e2ea;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

.video-card-title {
  font-size: 16px;
  margin: 14px 0 8px;
}

.video-card-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.video-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(12, 40, 88, 0.92), rgba(37, 90, 172, 0.85)),
    radial-gradient(circle at 74% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  display: grid;
  place-items: center;
}

.video-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #f24f4f;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-play-icon::before {
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 33, 0.66);
}

.video-modal-panel {
  position: relative;
  width: min(1120px, calc(100% - 34px));
  max-height: calc(100vh - 34px);
  margin: 18px auto;
  border-radius: 20px;
  background: #fff;
  overflow: auto;
}

.video-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 1;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.video-modal-media {
  padding: 14px 14px 0;
}

.video-preview-large {
  min-height: 420px;
}

.video-preview-large .video-play-icon {
  width: 116px;
  height: 116px;
}

.video-preview-large .video-play-icon::before {
  border-width: 18px 0 18px 28px;
  margin-left: 7px;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
}

.video-modal-body {
  padding: 16px 22px 26px;
}

.video-modal-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.video-modal-body p {
  margin: 14px 0 0;
  font-size: 21px;
  color: var(--muted);
}

@media (min-width: 860px) {
  .domains {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .domain-tile {
    min-width: 0;
    flex: none;
  }

  .control-row {
    flex-wrap: nowrap;
  }

  .search-inline {
    min-width: 300px;
  }

  .content-card {
    padding: 14px;
  }

  .over-layout {
    gap: 18px;
  }

  .cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 560px) and (max-width: 859px) {
  .domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 700px) {
  .education-types {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-page {
    padding: 20px 16px 36px;
  }

  .video-modal-panel {
    width: calc(100% - 12px);
    max-height: calc(100vh - 12px);
    margin: 6px auto;
    border-radius: 14px;
  }

  .video-preview-large {
    min-height: 220px;
  }

  .video-modal-body {
    padding: 12px 14px 20px;
  }

  .video-modal-body h2 {
    font-size: 18px;
  }

  .video-modal-body p {
    font-size: 17px;
  }

  .type-hero {
    min-height: auto;
    margin-top: 24px;
  }

  .over-layout {
    grid-template-columns: 1fr;
  }

  .over-image-slot {
    min-height: 220px;
  }

  .over-banner-link {
    width: 50%;
  }

  .vak-footer-grid {
    grid-template-columns: 1fr;
  }
}
