/* Mobiel: wrapper maakt ratio, iframe vult hem */
p:has(> iframe[src*="youtube"]),
p:has(> iframe[src*="youtube-nocookie"]) {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin: 20px 0;
}

p:has(> iframe[src*="youtube"]) > iframe,
p:has(> iframe[src*="youtube-nocookie"]) > iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  border: 0;
}

/* Desktop: 75% breed en gecentreerd */
@media (min-width: 992px) {
  p:has(> iframe[src*="youtube"]),
  p:has(> iframe[src*="youtube-nocookie"]) {
    width: 75%;
		padding-bottom: 43%;
    margin: 30px auto;
  }
}

/* =========================================================
   BLG Carousel — Calm Minimal (no drop shadows anywhere)
   Hover = subtle lift + outline glow (no clipping issues)
   ========================================================= */

.blgSection{
  display:block;
  clear:both;
  position:relative;

  margin:48px 0 28px 0;
  padding:0;
  border:0;
  background:transparent;
  color:#111;
}

.blgSection *{ box-sizing:border-box; }

/* ---------------- HEADER ---------------- */

.blgHeader{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  margin-bottom:14px;
}

.blgTitle{
  margin:0;
  font-size:16px;
  line-height:1.2;
  font-weight:600;
  color:#111;
}

.blgSubtitle{
  margin:6px 0 0;
  font-size:13px;
  font-weight:400;
  color:#444;
}

.blgHeaderRight{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Fix: "Alle blogs" niet afbreken / afkappen */
.blgAllLink{
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: none;
}
.blgAllLink:hover{ opacity:1; }

/* ---------------- ARROWS ---------------- */

.blgArrows{ display:flex; gap:8px; }

.blgArrow{
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  border-radius:6px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  color:#111;
  cursor:pointer;
  user-select:none;
  line-height:1;
  transition: transform .18s ease, border-color .18s ease;
}

.blgArrow:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.18);
}

/* ---------------- CAROUSEL ---------------- */

.blgViewport{
  overflow:hidden;
  position:relative;
}

.blgTrack{
  display:flex;
  gap:16px;
  padding:2px;
  transition:transform .42s ease;
}

/* Desktop: 4 per view */
.blgCard{
  flex:0 0 calc((100% - (3 * 16px)) / 4);
  border-radius:14px;
  overflow:visible;
}

/* Tile */
.blgCardLink{
  display:flex;
  flex-direction:column;
  height:100%;
  text-decoration:none;
  color:inherit;

  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  overflow:hidden;
  background:#fff;

  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

/* Hover — no drop shadow, no background change */
.blgCardLink:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 0 0 2px rgba(0,0,0,.04); /* zachte outline glow */
}

/* ---------------- IMAGE ---------------- */

.blgImgWrap{
  aspect-ratio:16 / 7;
  background:#f4f4f4;
  overflow:hidden;
  position:relative;
}

.blgImg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.blgBadge{
  position:absolute;
  top:10px;
  left:10px;
  font-size:11px;
  font-weight:600;
  padding:4px 8px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  color:#111;
}

/* ---------------- TEXT ---------------- */

.blgBody{
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:135px;
}

.blgCardTitle{
  margin:0 0 6px;
  font-size:13px;
  line-height:1.35;
  font-weight:600;
  color:#111;

  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.blgExcerpt{
  margin:0;
  font-size:12.5px;
  line-height:1.5;
  font-weight:400;
  color:#444;

  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.blgCta{
  display:inline-block;
  margin-top:auto;
  padding-top:8px;
  font-weight:500;
  color:#111;
  opacity:.85;
}
.blgCardLink:hover .blgCta{ opacity:1; }

/* ---------------- RESPONSIVE ---------------- */

@media (max-width:1023px){
  .blgCard{
    flex-basis:calc((100% - (2 * 16px)) / 3);
  }
}

@media (max-width:768px){
  .blgHeader{
    flex-direction:column;
    align-items:flex-start;
  }

  .blgHeaderRight{
    width:100%;
    justify-content:space-between;
    flex-wrap: nowrap;
  }

  .blgCard{
    flex:0 0 calc((100% - 16px) / 2);
  }
}

@media (prefers-reduced-motion: reduce){
  .blgTrack, .blgCardLink, .blgArrow{
    transition:none;
  }
}