.containerX {
  margin-left: 2%;
  position: relative;
  width: 90%;
  cursor: pointer;
  max-width: 550px;
}

.mobile-only {
  display: none;
}

.extra-margin{
  margin-top: 30vh;
}

/* origineel
.mySlides {
  margin-left: 2%;
  display: block;
  width: 90%;
  height: auto;
}
  */

  /* aanpassing*/

.mySlides {
  width: 100%;
  display: block;
  height: auto;
}

.shadow {
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);

}

#map {
  position: absolute;
  width: 80% !important;
  height: 80% !important;
}



.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
}

.containerX:hover .overlay {
  opacity: 1;
}


/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #71a894;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.column {
  float: left;
  width: 50%;
  padding: 10px;
}



/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 15px 0 0 15px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: #71a894;
  color: white !important;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  width: auto;
  padding: 10px;
  padding-left: 20px;
  padding-right: 20px;
  margin-top: -22px;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.carousel-controls-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  /* Pas de marge aan indien nodig */
}


/* Style voor de testimonials */

.testimonial {
  background-color: #f6f6f6;
  opacity: 0.8;
  border-radius: 0px 0px 10px 10px;
  margin-bottom: 20px;
  margin-top: -10px;
  padding: 20px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding-left: 30px;
  padding-right: 30px;
  /* 1/3 en 2/3 */
}

.testimonial.active {
  display: block;
  /* Toon alleen de actieve testimonial */
}

.testimonial p {
  font-style: italic;
  margin-bottom: 30px;
}

.testimonial .author {
  font-weight: bold;
  margin-top: 10px;
}

.rounded-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  /* Hiermee wordt de afbeelding rond uitgeknipt */
  border: 7px solid rgba(213, 242, 255, 1);
  border-radius: 50%;
  /* Hiermee wordt de afbeelding rond uitgeknipt */
  overflow: hidden;
  /* Zorgt ervoor dat de overflow (indien aanwezig) wordt verborgen */

}


/* CSS-styling voor testimonials */
.testimonials {
  max-width: 100%;
  margin: 0 auto;
}

.testimonial {
  display: none;
  /* Start met het verbergen van alle testimonials */
}

.testimonial.active {
  display: block;
  /* Toon alleen de actieve testimonial */
}

.media-text {
  text-align: justify;
}

.news {
  height: 100%;
  padding: 20px;
}

.image-galerij {
  width: 100%;
  /* Set the width to 80% of the page */
  max-width: 1200px;
  border: 3px solid #f6f6f6;
  /* Optional: set a max width to prevent excessive stretching */
  height: 110px;
  /* Set a fixed height for the gallery */
  background-color: #fff;
  /* Background color for the gallery */
  padding: 30px !important;
  border-radius: 10px;
  position: relative;
  /* Positioning context for child elements */
  overflow: hidden;
  /* Hide overflow to keep the layout tidy */
  margin: 0 auto;
  /* Center the container horizontally on the page */
  overflow: hidden;
}

.galerij-track {
  display: flex;
  justify-content: start;
  /* Align images at the start initially */
  align-items: center;
  /* Center images vertically within their container */
  width: 100%;
  /* Make the track take up full width of container */
  height: 100%;
  /* Make the track take up full height of container */
  overflow-x: scroll;
  /* Enable horizontal scrolling for the gallery */
  overflow: hidden;
}

.galerij-track img {
  flex-shrink: 0;
  /* Prevent images from shrinking */
  width: 100%;
  /* Set width to full container width initially */
  max-width: 200px;
  /* Max width for each image */
  height: auto;
  /* Maintain aspect ratio */
  max-height: 100px;
  /* Max height to limit stretch */
  margin: 0 5px;
  /* Spacing between images */
  transition: transform 0.3s ease;
  /* Smooth transition effect */
  object-fit: contain;
  /* Maintain aspect ratio while filling the container */
  object-position: center;
  padding: 10px;
}


.fly-in-hor,
.fly-in-ver,
.fly-in-diag {
    opacity: 0;
    transition: transform 0.7s ease-out, opacity 0.7s ease-out;
}

.fly-in-hor {
    transform: translateX(-5vw); /* Start volledig buiten het scherm aan de linkerkant */
}

.fly-in-ver {
    transform: translateY(5vh); /* Start volledig buiten het scherm onderaan */

}

.fly-in-diag {
  transform: translate(-5vw, 5vh);
  position: relative; /* Noodzakelijk voor transformatie */
}


/* ============================================================
   Dynamische verbeteringen (juni 2025)
   ============================================================ */

/* --- Frisse loader: schone witte overlay met één spinner --- */
.loader-wrapper {
  background-image: none;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease-out;
}
.loader {
  width: 48px;
  height: 48px;
  display: inline-block;
  position: relative;
}
/* Eén spinner: getekend op .loader zelf (werkt met of zonder .loader-inner) */
.loader::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #e3f2ef;
  border-top-color: #71a894;
  border-radius: 50%;
  animation: brw-spin 0.9s linear infinite;
}
.loader-inner { display: none; }

@keyframes brw-spin {
  to { transform: rotate(360deg); }
}

/* --- Scroll-voortgangsbalk bovenaan --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #71a894, #71a1a8);
  z-index: 9999;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* --- Hover: knoppen subtiel optillen --- */
.button,
.button.w-button,
.w-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.button:hover,
.w-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(113, 168, 148, 0.25);
}

/* --- Hover: partnerlogo's van grijs naar kleur --- */
.galerij-track img {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}
.galerij-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

/* --- Impact-tellers --- */
.impact-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 20px;
}
.impact-stat {
  flex: 1 1 160px;
  text-align: center;
  min-width: 140px;
}
.impact-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #71a894;
}
.impact-label {
  font-size: 1rem;
  color: #555;
  margin-top: 6px;
}

/* --- Wave-dividers (water-thema) --- */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: -1px; /* voorkomt subpixel-naad met de sectie erboven */
  position: relative;
  z-index: 1;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* --- FAQ-accordeon (native <details>) --- */
details.faq-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 6px 0;
}
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 36px 14px 4px;
  position: relative;
  color: #2b2b2b;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: #71a894;
  transition: transform 0.2s ease;
}
details.faq-item[open] summary::after {
  content: "\2212"; /* minteken */
}
details.faq-item summary:hover { color: #71a894; }
details.faq-item .faq-answer {
  padding: 0 4px 16px;
  color: #444;
  line-height: 1.6;
}

/* --- Lightbox voor projectfoto's --- */
.brw-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.brw-lightbox.open { opacity: 1; visibility: visible; }
.brw-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.brw-lightbox .brw-close {
  position: absolute;
  top: 18px;
  right: 26px;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* --- Project categorie-knoppen ---
   Herbruikbaar blokje voor op elke projectpagina.
   Plaats binnen het tekstvak (bv. .div-block-22), na de tekst:

   <div class="project-categorieen-wrapper">
     <p class="project-categorieen-label">Dit project valt onder:</p>
     <div class="project-categorieen">
       <a href="https://buro-regen-en-water.nl/onderzoek-analyse" class="button w-button">Onderzoek &amp; Analyse</a>
       <a href="https://buro-regen-en-water.nl/ontwerp-toetsing.html" class="button w-button">Ontwerp &amp; Toetsing</a>
       <a href="https://buro-regen-en-water.nl/begeleiding-uitvoering.html" class="button w-button">Begeleiding uitvoering</a>
     </div>
   </div>

   Voeg alleen de knop(pen) toe die voor dat project relevant zijn (1, 2 of 3).
   Bij 1 knop: gecentreerd. Bij 2 knoppen: naast elkaar, gecentreerd.
   Bij 3 knoppen: bovenste twee naast elkaar, derde gecentreerd eronder
   (dit gaat vanzelf goed, geen extra classes nodig).
*/
.project-categorieen-label {
  text-align: center;
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 12px;
}

.project-categorieen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.project-categorieen .button {
  width: fit-content;
  flex: 0 0 auto;
  font-size: 13px;
  padding: 12px 25px;
  text-align: center;
}

/* Bij precies 3 knoppen: forceer de derde (en laatste) knop naar een
   eigen, gecentreerde regel onder de eerste twee, op natuurlijke breedte. */
.project-categorieen:has(> a:nth-child(3):last-child)::after {
  content: '';
  flex-basis: 100%;
  height: 0;
  order: 2;
}

.project-categorieen a:nth-child(3):last-child {
  order: 3;
}

/* --- Roterend hero-woord --- */
.hero-rotate {
  color: #71a894;
  border-right: 2px solid #71a894;
  padding-right: 2px;
  white-space: nowrap;
}

/* ============================================================
   Automatische blob-carrousel (homepage)
   ============================================================
   Vervangt de losse, vooraf uitgeknipte blob-afbeeldingen.
   De .containerX-items worden nu door js/extra.js dynamisch
   gevuld op basis van data/projecten.json.
*/

/* De blobvorm als herbruikbare SVG-mask (in plaats van clip-path).
   Een mask met mask-size:100% 100% schaalt altijd exact mee met de
   afmeting van het element -- daarom géén rechte randen meer, ongeacht
   de grootte van de carrousel-items.
   blob-1 t/m blob-7 zijn 7 losse, zelfgetekende (Haikei-)blobvormen.
   js/extra.js verdeelt deze willekeurig over de carrousel-items,
   zodanig dat opeenvolgende items (ook rondlopend) nooit dezelfde vorm
   krijgen -- bij elke wissel verandert dus ook de vorm. */
:root {
  --blob-mask-1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M50.8 -49.3C64.8 -36.8 74.4 -18.4 79.9 5.5C85.5 29.5 86.9 58.9 72.9 69.9C58.9 80.9 29.5 73.5 7.4 66.1C-14.7 58.7 -29.5 51.5 -47 40.5C-64.5 29.5 -84.7 14.7 -89.2 -4.4C-93.6 -23.6 -82.1 -47.1 -64.6 -59.6C-47.1 -72.1 -23.6 -73.6 -2.6 -71C18.4 -68.4 36.8 -61.8 50.8 -49.3' transform='translate(103.12 98.29)'/%3E%3C/svg%3E");
  --blob-mask-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M61.3 -37.5C77.4 -7.4 87.2 24.3 75.9 49.7C64.7 75 32.3 94 -0.7 94.4C-33.8 94.8 -67.5 76.7 -79.5 50.9C-91.5 25.2 -81.7 -8.2 -64.8 -38.7C-47.9 -69.3 -24 -97.2 -0.7 -96.8C22.6 -96.4 45.1 -67.7 61.3 -37.5' transform='translate(102.02 101.20)'/%3E%3C/svg%3E");
  --blob-mask-3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M54.4 -60.1C74.9 -47.6 99 -34.6 108.3 -14.3C117.6 6 112 33.8 97.3 53.2C82.5 72.6 58.5 83.8 34.3 91.4C10 99 -14.5 103.1 -35.5 96.1C-56.6 89.1 -74.2 71 -80.5 50.9C-86.8 30.8 -81.9 8.6 -76 -11.4C-70.2 -31.5 -63.4 -49.5 -50.5 -63.4C-37.7 -77.3 -18.9 -87.1 -1 -86C16.9 -84.8 33.9 -72.7 54.4 -60.1' transform='translate(85.30 93.19)'/%3E%3C/svg%3E");
  --blob-mask-4: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M69.5 -78.8C88.9 -66.6 102.5 -43.5 99 -23.4C95.5 -3.2 74.8 14 62.6 37C50.3 60 46.5 88.7 31.9 99C17.2 109.3 -8.3 101.2 -27.1 88.3C-46 75.5 -58.1 58 -65.9 40.1C-73.7 22.3 -77.2 4 -73.5 -12.2C-69.7 -28.4 -58.6 -42.5 -45.2 -55.8C-31.7 -69.1 -15.9 -81.6 4.6 -87.1C25.1 -92.5 50.1 -91.1 69.5 -78.8' transform='translate(87.71 93.21)'/%3E%3C/svg%3E");
  --blob-mask-5: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M62 -63.6C76.8 -47.1 82.9 -23.6 78.5 -4.4C74.1 14.7 59.1 29.5 44.3 45.1C29.5 60.8 14.7 77.4 -3.4 80.8C-21.4 84.1 -42.9 74.2 -54.4 58.6C-65.9 42.9 -67.4 21.4 -66.2 1.3C-64.9 -18.9 -60.7 -37.7 -49.2 -54.2C-37.7 -70.7 -18.9 -84.9 2.4 -87.2C23.6 -89.6 47.1 -80.1 62 -63.6' transform='translate(93.32 103.07)'/%3E%3C/svg%3E");
  --blob-mask-6: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M58.9 -68.9C75 -56.7 85.8 -36.9 87.3 -17C88.9 2.8 81.2 22.7 70.5 40.1C59.7 57.5 45.7 72.4 28.2 79.8C10.7 87.1 -10.4 86.8 -26.4 78.4C-42.3 70 -53.2 53.5 -61.6 36.7C-70 19.9 -75.9 2.7 -70.5 -9.8C-65.2 -22.4 -48.7 -30.3 -35.1 -42.9C-21.4 -55.5 -10.7 -72.8 5.4 -79.2C21.4 -85.5 42.9 -81.1 58.9 -68.9' transform='translate(92.53 98.53)'/%3E%3C/svg%3E");
  --blob-mask-7: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M45.3 -49.8C57.6 -43.7 65.7 -28.3 65.6 -13.8C65.4 0.7 57 14.3 50.1 31.4C43.2 48.4 37.8 68.8 24.4 78.7C11.1 88.6 -10.4 88 -24 77.9C-37.7 67.8 -43.5 48.1 -52 31.1C-60.5 14.1 -71.6 -0.2 -74.1 -17.7C-76.6 -35.3 -70.4 -55.9 -56.6 -61.8C-42.9 -67.7 -21.4 -58.9 -2.5 -55.9C16.5 -53 33 -56 45.3 -49.8' transform='translate(104.52 88.99)'/%3E%3C/svg%3E");

  /* Merkkleur groen, dezelfde tint als bij knoppen/dots-hover elders op de site */
  --brw-groen: #71a894;
}

.containerX .blob-wrapper.blob-1,
.containerX .blob-shape.blob-1 { --blob-mask: var(--blob-mask-1); }
.containerX .blob-wrapper.blob-2,
.containerX .blob-shape.blob-2 { --blob-mask: var(--blob-mask-2); }
.containerX .blob-wrapper.blob-3,
.containerX .blob-shape.blob-3 { --blob-mask: var(--blob-mask-3); }
.containerX .blob-wrapper.blob-4,
.containerX .blob-shape.blob-4 { --blob-mask: var(--blob-mask-4); }
.containerX .blob-wrapper.blob-5,
.containerX .blob-shape.blob-5 { --blob-mask: var(--blob-mask-5); }
.containerX .blob-wrapper.blob-6,
.containerX .blob-shape.blob-6 { --blob-mask: var(--blob-mask-6); }
.containerX .blob-wrapper.blob-7,
.containerX .blob-shape.blob-7 { --blob-mask: var(--blob-mask-7); }

/* Wrapper = de gekleurde "rand". Heeft zelf de blobvorm en een gekleurde
   achtergrond; de afbeelding ligt er iets kleiner (inset) bovenop, zodat
   de achtergrondkleur er als organisch randje omheen blijft staan.
   Bij hover wisselt de rand van blauw naar het merkgroen. */
.containerX .blob-wrapper {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #d0f0fe;
  --blob-mask: var(--blob-mask-1);
  -webkit-mask-image: var(--blob-mask);
  mask-image: var(--blob-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  overflow: hidden;
  transition: transform 0.4s ease, background-color 0.3s ease;
}

.containerX:hover .blob-wrapper {
  transform: scale(1.03);
  background-color: var(--brw-groen);
}

/* De afbeelding zelf: zelfde blobvorm, maar ingezoomd t.o.v. de wrapper
   (border-breedte), zodat de achtergrondkleur als rand zichtbaar blijft. */
.containerX .blob-shape {
  position: absolute;
  inset: 7px; /* dikte van de rand -- pas hier aan indien gewenst */
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  object-fit: cover;
  --blob-mask: var(--blob-mask-1);
  -webkit-mask-image: var(--blob-mask);
  mask-image: var(--blob-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: #e9f3f0; /* subtiele placeholder-kleur tijdens laden */
}

/* Naam-overlay: een los "label" met eigen achtergrond, gecentreerd in de
   blob. Door de eigen achtergrondkleur blijft de tekst altijd leesbaar,
   ongeacht of hij over de rand of over de foto valt. */
.containerX .blob-wrapper::after {
  content: attr(data-naam);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(6px);
  max-width: 70%;
  width: fit-content;
  color: #fff;
  background: rgba(43, 43, 43, 0.85);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.containerX:hover .blob-wrapper::after {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

@media screen and (max-width: 767px) {
  .containerX .blob-wrapper::after {
    font-size: 0.85rem;
  }
}
