.d-none {
  display: none !important;
}
.d-flex {
  display: flex !important;
}
.d-flex-row {
  display: flex !important;
  flex-direction: row !important;
}
.d-flex-row-reverse {
  display: flex !important;
  flex-direction: row-reverse !important;
}
.d-flex-col {
  display: flex !important;
  flex-direction: column !important;
}
[class^="d-flex-"] div {
  min-width: 16rem;
}

.justify-content-start {
  justify-content: flex-start !important;
}
.justify-content-center {
  justify-content: center !important;
}
.justify-content-end {
  justify-content: flex-end !important;
}
.justify-content-between {
  justify-content: space-between !important;
}
.justify-content-around {
  justify-content: space-around !important;
}
.justify-content-evenly {
  justify-content: space-evenly !important;
}

.align-items-start {
  align-items: flex-start !important;
}
.align-items-center {
  align-items: center !important;
}
.align-items-end {
  align-items: flex-end !important;
}
.align-items-stretch {
  align-items: stretch !important;
}

@media (min-width: 576px) {
  .d-none-sm {
    display: none !important;
  }
  .d-flex-row-sm {
    display: flex !important;
    flex-direction: row !important;
  }
  .d-flex-row-reverse-sm {
    display: flex !important;
    flex-direction: row-reverse !important;
  }
  .d-flex-col-sm {
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (min-width: 768px) {
  .d-none-md {
    display: none !important;
  }
  .d-flex-row-md {
    display: flex !important;
    flex-direction: row !important;
  }
  .d-flex-row-reverse-md {
    display: flex !important;
    flex-direction: row-reverse !important;
  }
  .d-flex-col-md {
    display: flex !important;
    flex-direction: column !important;
  }

  .justify-content-md-start {
    justify-content: flex-start !important;
  }
  .justify-content-md-center {
    justify-content: center !important;
  }
  .justify-content-md-end {
    justify-content: flex-end !important;
  }
  .justify-content-md-between {
    justify-content: space-between !important;
  }
  .justify-content-md-around {
    justify-content: space-around !important;
  }
  .justify-content-md-evenly {
    justify-content: space-evenly !important;
  }

  .align-items-md-start {
    align-items: flex-start !important;
  }
  .align-items-md-center {
    align-items: center !important;
  }
  .align-items-md-end {
    align-items: flex-end !important;
  }
  .align-items-md-stretch {
    align-items: stretch !important;
  }
}

@media (min-width: 992px) {
  .d-none-lg {
    display: none !important;
  }
  .d-flex-row-lg {
    display: flex !important;
    flex-direction: row !important;
  }
  .d-flex-row-reverse-lg {
    display: flex !important;
    flex-direction: row-reverse !important;
  }
  .d-flex-col-lg {
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (min-width: 1200px) {
  .d-none-xl {
    display: none !important;
  }
  .d-flex-row-xl {
    display: flex !important;
    flex-direction: row !important;
  }
  .d-flex-row-reverse-xl {
    display: flex !important;
    flex-direction: row-reverse !important;
  }
  .d-flex-col-xl {
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (min-width: 1400px) {
  .d-none-xxl {
    display: none !important;
  }
  .d-flex-row-xxl {
    display: flex !important;
    flex-direction: row !important;
  }
  .d-flex-row-reverse-xxl {
    display: flex !important;
    flex-direction: row-reverse !important;
  }
  .d-flex-col-xxl {
    display: flex !important;
    flex-direction: column !important;
  }
}

:root {
  --color-dark-blue: #293270;
  --color-light-blue: #4796d2;
  --gradient: linear-gradient(90deg, #fbfcfd 0%, #e9ebf4 100%);
  --box-size: clamp(1200px, 100vw, 1920px);
}
html {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: clamp(7px, 0.416vw, 8px);
}
body {
  margin: 0;
  padding: 0;
  font-size: 2.5rem;
  width: 100%;
  color: var(--color-dark-blue);
  font-family: "myriad-pro";
  font-weight: 100;
  line-height: 1.5;
}
a {
  color: var(--color-dark-blue);
  text-decoration: none;
}
a:hover {
  color: var(--color-light-blue);
}

/* koptekst (header) met masker (mask, afdeklaag) */
header {
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(176, 196, 211, 0.5) 0%, rgba(200, 223, 239, 0.5) 100%), url("webp/10_MEDIGOED_contact.webp") center/cover no-repeat;
  color: white;
  padding: 10px min(10vw, 10rem);
  padding-top: 20px;
  padding-bottom: min(10vw, 10rem);
  background-size: cover;
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 2810.5"><path fill="white" d="M1290.72,2810.5h-.09c-253.46,0-400.64-20.33-683.44-77.85C324.37,2675.13,0,2631.39,0,2631.39V0h1920v2763.15s-375.79,47.34-629.28,47.35Z"/></svg>');
  mask-repeat: no-repeat;
  mask-size: 100% auto;
  mask-position: bottom;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 2810.5"><path fill="white" d="M1290.72,2810.5h-.09c-253.46,0-400.64-20.33-683.44-77.85C324.37,2675.13,0,2631.39,0,2631.39V0h1920v2763.15s-375.79,47.34-629.28,47.35Z"/></svg>');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% auto;
  -webkit-mask-position: bottom;
  aspect-ratio: 10/4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: white;
  gap: 50px;

  width: 100%;
  max-width: var(--box-size);
  margin: 0 auto;
  box-sizing: border-box;
  margin-bottom: min(10vw, 10rem);
  min-height: 400px;
}
header h1 {
  margin-top: 0;
  min-height: 20rem;
}
top {
  display: flex;
  flex-direction: row;
  gap: 50px;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.medi {
  font-weight: 700;
  color: var(--color-dark-blue);
}

.goed {
  font-weight: 400;
  color: var(--color-light-blue);
}
header main {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-bottom: calc(min(10vw, 10rem) + 50px);
}
article {
  width: 100%;

  max-width: 200rem;
  margin: 0 auto;
  padding: 0 min(10vw, 10rem) min(10vw, 10rem);
  gap: min(10vw, 10rem);
  box-sizing: border-box;
}
article > div {
  flex: 1;
}
article h3,
.splide__slide h3 {
  font-size: 3rem;
  line-height: 1.2;
  padding-bottom: 1rem;
  margin-bottom: 0;
}
article p,
.splide__slide p {
  padding: 0;
  margin: 0;
  line-height: 1.5;
}
h1 {
  font-weight: 400;
  color: var(--color-dark-blue);
  font-size: clamp(4.5rem, 5vw, 5rem);
  line-height: 1.2;
  text-align: center;
  width: 100%;
}
h2 {
  font-size: 3.7rem;
  font-weight: 400;
  line-height: 1.2;
}
/* Maak het hoofdmenu een flex-container */
#main-nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px; /* ruimte tussen items */
  flex-wrap: wrap;
  padding-bottom: 0.8rem;
  font-size: 2.5rem;
  font-weight: 100;
}

#main-nav > li {
  position: relative; /* nodig voor submenu-positionering */
}

#main-nav a {
  text-decoration: none;

  padding: 0 5px;
}

/* Submenu verbergen standaard */
#main-nav li ul {
  display: none;
  position: absolute;
  top: 100%; /* direct onder het hoofditem */
  left: 0;
  list-style: none;

  padding: 3rem 0 0;
}

#main-nav li:has(> ul)::after {
  content: "";
  position: absolute;
  bottom: -12px; /* afstand onder het item */
  left: 50%;
  transform: translateX(-50%);

  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--color-dark-blue); /* kleur naar wens */
}

#main-nav li:hover ul {
  display: block;
}

#main-nav li ul li a {
  white-space: nowrap; /* houdt tekst op één regel */
}

#main-nav li.active a {
  color: var(--color-light-blue) !important;
}

section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  width: 100%;
  max-width: var(--box-size);
  margin: 0 auto;
  box-sizing: border-box;
  padding: min(10vw, 10rem);
  margin-bottom: min(10vw, 10rem);
  font-size: 2.5rem;
}

/* container */
.video-banner {
  gap: 5rem;
  margin: 0 auto;
  max-width: 75rem;
  width: 100%;

  display: flex;
  gap: 0;
  margin-top: -30rem;
  z-index: 60;
  position: relative;
}

@media (max-width: 600px) {
  .video-banner {
    margin-top: -20rem;
  }
}
/* video container */
.video-banner-media {
  position: relative;
  overflow: hidden;
  border-radius: 60px 0 0 0;
  background: url("/webp/IMG_5793.webp");
  background-size: cover;
  flex: 1;
}

.video-banner-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* play button */
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="35,25 75,50 35,75" fill="black"/></svg>');
  mask-size: 55%;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* blauwe tekstkolom */
.video-banner-text {
  background: var(--color-dark-blue);
  color: white;
  padding-block: 2rem;
  border-radius: 0 0 60px 0;
  flex-direction: column;
  flex: 1;
}

.video-banner > div {
  display: flex;
  flex: 1;
  align-items: stretch;
  box-sizing: border-box;
}

.video-banner-text b,
.video-banner-text strong {
  font-weight: bold;
}

/* popup achtergrond */
.video-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  z-index: 9999;
}

.video-popup-backdrop {
  position: absolute;
  inset: 0;
}

/* popup box */
.video-popup-content {
  position: relative;
  background: #000;
  border-radius: 20px;
  padding: 0;
  max-width: 120rem;
  width: 100%;
  z-index: 2;
  overflow: visible;
}

/* close button */
.video-popup-close {
  position: absolute;
  top: min(5vw, -5rem);
  right: 0;
  font-size: 4rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 3;
  line-height: 1;
}

/* video wrapper */
.video-popup-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 20px;
  overflow: hidden;
}

.video-popup-iframe-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* HAMBURGER */
.hamburger {
  position: fixed;
  top: 4.5rem;
  right: min(10vw, 10rem);
  border-radius: 20px 0 20px 0;
  width: 18px;
  height: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 99;
  background: var(--color-dark-blue);
  padding: 3rem;
}

.hamburger span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.hamburger {
  transform-origin: center;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

/* standaard desktop: verborgen */
@media (min-width: 900px) {
  .hamburger {
    opacity: 0;
    pointer-events: none;
  }

  /* als JS .visible toevoegt */
  .hamburger.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* bounce-in: breed en platter */
  .hamburger.bounce-in {
    animation: hamBounceIn 0.5s ease forwards;
  }

  /* bounce-up: extra hoog, smal */
  .hamburger.bounce-out {
    animation: hamBounceOut 0.5s ease forwards;
  }
}

/* Animaties */
@keyframes hamBounceIn {
  0% {
    transform: translateY(-4rem) scale(1, 1);
    opacity: 0;
  }

  60% {
    transform: translateY(1rem) scale(1.5, 0.5);
  }
  100% {
    transform: translateY(0) scale(1, 1);
    opacity: 1;
  }
}

@keyframes hamBounceOut {
  0% {
    transform: translateY(1rem) scale(0.5, 1.5);
    opacity: 1;
  }

  100% {
    transform: translateY(-4rem) scale(1, 1);
    opacity: 0;
  }
}

/* HAMBURGER OPEN STATE */
.side-menu.open ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.side-menu.open ~ .hamburger span:nth-child(2) {
  opacity: 0;
}
.side-menu.open ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* SLIDE-OUT MENU */
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 50rem;
  height: 100%;
  background: white;

  z-index: 99;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 0;
  font-size: 2.5rem;
  display: flex;
}

.side-menu.open {
  right: 0;
}

/* MENU ITEMS */
.side-menu ul {
  list-style: none;
  padding: min(5vw, 5rem);
  margin: 0 !important;
  background: var(--gradient);
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.side-menu li {
  margin-bottom: 1rem;
  position: relative;
}

.side-menu li ul {
  display: none;
  padding-left: min(5vw, 5rem);
  margin-top: 1rem;
  flex-direction: column;
}

.side-menu li:hover > ul,
.side-menu li.active > ul {
  display: flex;
  flex-direction: column;
}

.side-menu a {
  color: var(--color-dark-blue);
  text-decoration: none;
}

.side-menu a:hover {
  color: var(--color-light-blue);
}

.side-menu a.active {
  color: var(--color-light-blue);
}

/* BLAUWE BALK ONDER MENU */
.side-menu .blue-bar {
  height: 2.5rem;
  background: var(--color-dark-blue);
  margin: 2rem 0;
  border-radius: 2px;
}

/* FOOTER COLUMNS IN SLIDE-OUT */
.side-menu .footer-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* FOOTER SUB-SECTIONS */
.side-menu .footer-columns div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-menu .footer-columns .d-flex-row {
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.side-menu .footer-columns img {
  width: 2rem;
}

.side-menu .footer-columns a {
  color: var(--color-light-blue);
}

/* SCROLLBAR STYLING (OPTIONEEL) */
.side-menu::-webkit-scrollbar {
  width: 0.8rem;
}

.side-menu::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.side-menu::-webkit-scrollbar-thumb {
  background: var(--color-dark-blue);
  border-radius: 1rem;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-dark-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 98; /* < side-menu z-index */
  pointer-events: none;
}

.menu-backdrop.visible {
  opacity: 0.5; /* aanpasbaar */
  pointer-events: auto;
}

.vacaturebijschrift {
  background: white;
  border-radius: 0 20px 20px 0;
  display: inline-block;
  position: absolute;
  bottom: min(5vw, 5rem);
  left: 0;
  padding: 10px min(2.5vw, 2.5rem);
  min-width: 0px !important;
}
p a,
footer a {
  color: var(--color-light-blue);
}
/* Standaard gedrag: laat de break zijn werk doen op desktop */
h1 br,
h2 br,
h3 br {
  display: block;
  content: "";
}

@media (max-width: 991px) {
  /* Verberg de feitelijke break */
  h1 br,
  h2 br,
  h3 br {
    display: none !important;
  }

  /* Voeg een spatie toe na waar de break stond, zodat woorden niet plakken */
  h1::after,
  h2::after,
  h3::after {
    content: none; /* Voorkom dubbele content als je dit elders gebruikt */
  }

  /* We zorgen dat de tekst gewoon doorstroomt */
  h1,
  h2,
  h3 {
    white-space: normal;
  }
}
