/*
Theme Name: Beaver Builder Child Theme
Theme URI: http://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: http://www.fastlinemedia.com
template: bb-theme
*/

p {
  margin: 0 0 15px;
}

.fl-logo-img {
  max-height: 100px;
  width: auto;
}

.menu-item a {
  text-decoration: none;
}

.over-beeldcoalitie-home p {
  font-size: 17px;
}

.agenda-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agenda-card {
  display: flex;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.agenda-date {
  background-color: #f0b429;
  color: white;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: bold;
  text-decoration: none;
  aspect-ratio: 1 / 1; /* vierkant */
  min-width: 80px; /* optioneel, minimale breedte */
  min-height: 80px; /* optioneel, minimale hoogte */
}

.agenda-date:hover {
  text-decoration: underline;
  color: white;
}

.agenda-day {
  font-size: 28px;
  line-height: 1;
}

.agenda-month {
  font-size: 18px;
  line-height: 1;
}

.agenda-content {
  padding: 16px;
  flex: 1;
  color: black !important;
}

.agenda-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: black !important;
}

.agenda-title a {
  color: inherit;
  text-decoration: none;
}

.agenda-title a:hover {
  font-weight: bold;
  text-decoration: underline;
}

.agenda-excerpt {
  font-size: 14px;
  color: #444;
}

/*HEROTEKST BG */

.herotekst {
  background: rgba(15, 16, 20, 0.1); /* transparante donkere basis */
  backdrop-filter: blur(5px) saturate(120%);
  -webkit-backdrop-filter: blur(5px) saturate(120%); /* Safari */
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); /* voor leesbaarheid */
  padding: 1.5rem;
}

/* fallback als blur niet wordt ondersteund */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .herotekst {
    background: rgba(15, 16, 20, 0.1);
  }
}

/* Hergebruik je bestaande herotekst-styles; dit is alleen extra */
.herotekst {
  position: relative; /* nodig voor absolute canvas */
  overflow: hidden; /* randjes netjes */
}

.herotekst .mosaic-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0; /* onder je content */
  pointer-events: none;
  opacity: 0.95; /* desgewenst aanpasbaar */
}

.herotekst .herotekst-inner {
  position: relative;
  z-index: 1; /* bovenop het canvas */
}

.herotekst > .fl-col-content {
  position: relative;
  z-index: 1;
}

/* iets transparanter op mobiel */
@media (max-width: 768px) {
  .herotekst .mosaic-bg {
    opacity: 0.85;
  }
}
@media (max-width: 480px) {
  .herotekst .mosaic-bg {
    opacity: 0.8;
  }
}

/* --- Teamleden Shortcode Styles --- */
.teamleden-wrap {
  background: transparent;
  padding: 0;
  margin: 0;
  /* Voeg hier eventueel extra padding toe als je wilt */
}
.teamleden-wrap * {
  box-sizing: border-box;
}
.teamleden-masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 6.5rem 2.5rem; /* nog meer ruimte */
  justify-content: left;
  padding-top: 80px; /* extra ruimte boven */
  padding-bottom: 80px; /* extra ruimte onder */
  min-height: 600px; /* zorgt dat cards niet buiten container vallen */
  overflow: visible; /* cards mogen buiten container vallen */
}
.teamlid-item {
  flex: 0 1 270px;
  margin: 0;
  transition: transform 0.3s cubic-bezier(0.4, 2, 0.3, 1);
  will-change: transform;
}

/* Verspringende mosaic-effecten */
.teamlid-item:nth-child(4n + 1) {
  transform: translateY(0);
}
.teamlid-item:nth-child(4n + 2) {
  transform: translateY(50px);
}
.teamlid-item:nth-child(4n + 3) {
  transform: translateY(-40px);
}
.teamlid-item:nth-child(4n + 4) {
  transform: translateY(30px);
}

/* Extra random effect voor de tweede rij */
@media (min-width: 900px) {
  .teamlid-item:nth-child(n + 5):nth-child(4n + 1) {
    transform: translateY(20px);
  }
  .teamlid-item:nth-child(n + 5):nth-child(4n + 2) {
    transform: translateY(60px);
  }
  .teamlid-item:nth-child(n + 5):nth-child(4n + 3) {
    transform: translateY(-60px);
  }
  .teamlid-item:nth-child(n + 5):nth-child(4n + 4) {
    transform: translateY(-10px);
  }
}

/* Zorg dat het op mobiel gewoon onder elkaar staat */
@media (max-width: 900px) {
  .teamleden-masonry {
    gap: 2rem 0;
  }
  .teamlid-item {
    flex: 1 1 100%;
    transform: none !important;
  }
}
.teamlid-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  height: 270px; /* was 400px, nu vierkant */
  aspect-ratio: 1 / 1; /* zorgt voor vierkant */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.teamlid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
  transform: scale(1.02);
  transition: transform 0.3s ease;
  z-index: 1;
  aspect-ratio: 1 / 1; /* vierkant houden */
}
.teamlid-card:hover .teamlid-bg {
  transform: scale(1.06);
}
.teamlid-overlay {
  position: relative;
  z-index: 2;
  padding: 20px 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 20%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.9) 100%
  );
}
.teamlid-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.15;
  color: white;
}
.teamlid-functie {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  color: rgb(203, 203, 203);
}
.teamlid-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.teamlid-meta-link {
  position: relative;
  z-index: 4;
  text-decoration: none;
  color: #fff;
}
.teamlid-meta-link:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-radius: 6px;
}
.tl-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.tl-modal-backdrop[aria-hidden="false"] {
  display: flex;
}
.tl-modal {
  background: #47a0a2;
  aspect-ratio: 1 / 1; /* vierkant */
  width: 90vw;
  max-width: 700px;
  height: auto;
  max-height: 90vw; /* vierkant op desktop */
  min-height: 350px;
  min-width: 350px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tl-modal header {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid #66c9ca;
  border-radius: 24px 24px 0 0;
}

.tl-modal h2 {
  font-size: 26px;
  margin: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tl-modal .tl-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
  color: #fff;
  transition: color 0.2s;
}
.tl-modal .tl-close:hover {
  color: #222;
}

.tl-modal .tl-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  gap: 24px;
}

.tl-modal .tl-thumb {
  aspect-ratio: 1 / 1;
  width: 350px;
  max-width: 40vw;
  background: #fff;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 18px;
  display: block;
}

.tl-modal .tl-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
  align-items: center;
}

.tl-field {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  width: 100%;
  text-align: center;
}

.tl-field strong {
  display: block;
  font-size: 11px;
  color: #ffe9b3;
  margin-bottom: 0.15rem;
}

.tl-modal .tl-body {
  margin-top: 1rem;
  color: #fff;
  font-size: 16px;
  text-align: center;
  width: 100%;
}

@media (max-width: 600px) {
  .tl-modal {
    aspect-ratio: 1 / 1;
    width: 98vw;
    max-width: 98vw;
    min-width: 0;
    min-height: 0;
    border-radius: 12px;
    padding: 0;
  }
  .tl-modal .tl-content {
    padding: 18px 8px;
    gap: 16px;
  }
  .tl-modal .tl-thumb {
    width: 120px;
    max-width: 60vw;
    margin-bottom: 12px;
  }
}

/*MOSAIC EFFECT AFBEELDINGEN */
/* module wrapper van Beaver met class 'mozaiek' */
/* Beaver module met class 'mozaiek' */
.mozaiek .fl-photo-content {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* verberg de <img> visueel zodra canvas actief is, behoud layout */
.mozaiek.mozaiek--active .fl-photo-content img {
  visibility: hidden;
}

/* canvassen */
.mozaiek-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

/* subtieler op mobiel */
@media (max-width: 768px) {
  .mozaiek .mozaiek-canvas {
    opacity: 0.9;
  }
}
@media (max-width: 480px) {
  .mozaiek .mozaiek-canvas {
    opacity: 0.85;
  }
}

.fl-page-nav-right .fl-page-header-wrap {
  border: 0;
}

/*EXPERIMENT: BORDER RADIUS UITZETTEN*/

* {
  border-radius: 0 !important;
}

.sub-menu .nav-link {
  text-transform: capitalize !important;
  font-size: 16px !important;
}

/* Hero image bovenaan */
.project-hero-image {
  position: relative;
  overflow: hidden;
  height: 340px;
  margin-bottom: 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.project-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(1.1);
  transition: filter 0.3s;
  aspect-ratio: 1/1;
}
.project-hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0));
  color: #fff;
}
.project-hero-title {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: white;
}
.project-hero-label {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* Sidebar */
.project-sidebar {
  margin: 2rem 0;
  padding: 2rem;
  background: #f7f7f7;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* Leerlijn blok */
.leerlijn-block {
  margin-bottom: 2rem;
}
.leerlijn-title {
  margin-top: 0;
  font-size: 1.1rem;
  color: #888;
}
.leerlijn-naam {
  font-size: 1.3rem;
  font-weight: 600;
}
.leerlijn-link {
  color: #1a73e8;
  text-decoration: none;
}

/* Contactpersonen */
.contactpersonen-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}
.contactpersonen-title {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 1.2rem;
  margin-top: 0;
  width: 100%;
  text-align: left;
}
.contactpersoon-block {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1.2rem;
  width: 100%;
}
.contactpersoon-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.contactpersoon-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.contactpersoon-placeholder {
  width: 120px;
  height: 120px;
  background: #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #aaa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.contactpersoon-info {
  text-align: left;
}
.contactpersoon-naam {
  font-size: 1.15rem;
  font-weight: 700;
}
.contactpersoon-functie {
  color: #555;
  font-size: 1rem;
  margin-top: 0.2rem;
}
.contactpersoon-organisatie {
  color: #1a73e8;
  font-size: 0.98rem;
  margin-top: 0.2rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.contactpersoon-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.97rem;
  color: #1a73e8;
  text-decoration: underline;
}

.fl-page-footer-widget-col-1 img {
  max-width: 250px !important;
}

/* --- Project layout aanpassingen (update) --- */
.project-layout .row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
}

.project-sidebar-yellow {
  background: #47a0a2;
  color: #fff;
  padding: 2rem 1.5rem 2rem 2rem; /* minder witruimte */
  min-height: unset; /* niet meer 100vh */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 2rem 0 0 2rem;
  box-shadow: none; /* geen shadow */
  max-width: 450px;
  width: 100%;
  margin: 2rem 0 2rem 0;
}

.project-sidebar-yellow a,
.project-sidebar-yellow .leerlijn-link,
.project-sidebar-yellow .contactpersoon-link {
  color: #fff !important;
  text-decoration: underline;
  font-weight: 600;
  font-size: 15px;
}

.project-sidebar-yellow .leerlijn-title,
.project-sidebar-yellow .contactpersonen-title {
  color: #fff;
  opacity: 0.95;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.project-sidebar-yellow .leerlijn-naam {
  font-size: 1.45rem;
  font-weight: 700;
}

.project-sidebar-yellow .contactpersonen-block {
  flex: 1 1 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
}

.project-sidebar-yellow .contactpersoon-block {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1rem 0.5rem;
  width: 100%;
}

.project-sidebar-yellow .contactpersoon-img {
  border: 3px solid #fff;
}

.project-sidebar-yellow .contactpersoon-placeholder {
  background: #fff;
  color: #f0b429;
  border: 3px solid #fff;
}

.project-sidebar-yellow .contactpersoon-info {
  color: #fff;
  font-size: 1.13rem;
}

.project-sidebar-yellow .contactpersoon-naam {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.project-sidebar-yellow .contactpersoon-functie,
.project-sidebar-yellow .contactpersoon-organisatie {
  color: #fff;
  opacity: 0.9;
  font-size: 15px;
}

.project-sidebar-yellow .project-hero-image-sidebar {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 1.5rem;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  min-height: 180px;
  height: auto;
}

.project-sidebar-yellow .project-hero-img {
  width: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(1.1);
}

.project-sidebar-yellow .project-hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0));
  color: #fff;
}

.project-sidebar-yellow .project-hero-title {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
}

.project-sidebar-yellow .project-hero-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.85);
  color: #47a0a2;
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  font-size: 1rem;
  box-shadow: none;
}

/* Content rechts smaller, minder witruimte, geen shadow, aansluitend */
.project-content-narrow {
  max-width: 800px;
  margin: 0;
  padding: 2rem 1.5rem 2rem 4rem;
  background: #fff;
  border-radius: 0 2rem 2rem 0;
  box-shadow: none;
  min-height: unset;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-left: 2px solid #47a0a2;
  margin: 2rem 0 2rem 0;
}

/* Responsive */
@media (max-width: 991px) {
  .project-layout .row {
    flex-direction: column;
  }
  .project-sidebar-yellow,
  .project-content-narrow {
    border-radius: 2rem;
    min-height: unset;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    padding: 1.2rem 0.8rem;
    margin: 1rem 0;
    border-left: none;
  }
}

/* Sidebar onderaan op mobiel */
@media (max-width: 991px) {
  .project-layout .row {
    display: flex;
    flex-direction: column;
  }
  .sidebar-mobile-bottom {
    order: 2;
  }
  .content-mobile-top {
    order: 1;
  }
}

.single-agenda .fl-post-meta,
.fl-comments-popup-link {
  display: none;
}

.fl-post-meta .fl-sep:nth-of-type(4),
.fl-post-meta,
.fl-post-grid-meta,
.uabb-post-meta {
  display: none;
}

.agenda-datum {
  margin-bottom: 25px;
}

.agenda-datum-title {
  color: white;
}

.uabb-blog-post-content {
  text-align: left !important;
}

.fl-widget-title {
  font-size: 22px;
  font-weight: bold;
}

.uabb-post-thumbnail a {
  display: block;
  aspect-ratio: 1 / 1; /* Vierkant */
  overflow: hidden; /* Voorkomt dat de afbeelding uitsteekt */
}

.uabb-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Zorgt dat de afbeelding mooi bijsnijdt */
  display: block;
}

.partner-carousel .pc-item {
  margin: 0px 12px;
}

/* Zet in je child theme of in Beaver Builder > Global CSS */
.bb-mosaic-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  width: 100%;
}

.bb-mosaic-wrap canvas,
.bb-mosaic-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Verberg het originele img zodra de canvas draait
   (JS zet deze class op de wrapper) */
.bb-mosaic-ready img {
  visibility: hidden;
}

.fl-post-grid-text {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.fl-post-grid-post {
  border: 0 !important;
}

footer i {
  font-size: 24px;
}

/* Alleen visuele clamp als JS nog niet klaar is */
body:not(.js-excerpt-ready) .uabb-blog-posts .uabb-blog-posts-description {
  display: -webkit-box;
  line-clamp: 8;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

/* Als JS klaar is, normale blokopmaak bewaren */
body.js-excerpt-ready .uabb-blog-posts .uabb-blog-posts-description {
  display: block;
  overflow: visible;
  position: static;
}

/* Optioneel: zachte spacing behoud */
.uabb-blog-posts .uabb-blog-posts-description p {
  margin: 0 0 0.8rem;
}
.uabb-blog-posts .uabb-blog-posts-description ul {
  margin: 0.8rem 0 0.8rem 1.2rem;
}
.uabb-blog-posts .uabb-blog-posts-description img,
.uabb-blog-posts .uabb-blog-posts-description iframe {
  display: none !important;
}

/* Zet soft line breaks (\n) om naar echte regelafbreking in de grid */
.fl-module-blog-posts .uabb-blog-posts-description {
  white-space: pre-line;
}

/* --- Agenda datumreeks styling (toegevoegd voor ACF veld datum_eind) --- */
.agenda-content .agenda-date-range {
  display: block;
  color: #2a2a2a;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* Kleine aanpassing voor consistente spacing binnen agenda-kaart */
.agenda-content {
  padding-top: 14px; /* iets minder dan full 16px zodat datum en titel visueel dichter bij elkaar staan */
}

/* Responsive tweaks: iets compactere datum-badge op kleinere schermen */
@media (max-width: 640px) {
  .agenda-date {
    min-width: 64px;
    min-height: 64px;
    padding: 12px 8px;
  }
  .agenda-day {
    font-size: 22px;
  }
  .agenda-month {
    font-size: 14px;
  }
  .agenda-content .agenda-date-range {
    font-size: 0.92rem;
    margin-bottom: 6px;
  }
}
