/* Imported from the former Design Manager stylesheet: Best-Layout---blog. */
/* ==========================================
   HERO
========================================== */

.blog-hero {
    height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 50px;
    border-radius: 10px;
    overflow: hidden;
}

.blog-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.blog-hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-hero-link:focus-visible {
    outline: 3px solid #000;
    outline-offset: 4px;
}

.hero-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    max-width: 800px;
    z-index: 2;
}

.hero-overlay h1 {
    font-size: 30px;
        line-height: 1.25;
    margin-bottom: 10px;
    color: #fff;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.8),
        0 4px 12px rgba(0,0,0,0.7),
        0 8px 24px rgba(0,0,0,0.6);
}

.hero-overlay p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* ==========================================
   BLOG OVERZICHT
========================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 20px;
}

.blog-card {
    background: #D9D3C8;
    transition: transform .25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
}

.blog-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    color: #000;
    font-size: 18px;
    margin: 0 0 10px;
        line-height: 1.35;
}

.blog-content a {
    color: inherit;
    text-decoration: none;
}

.blog-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   PLACEHOLDERS
========================================== */

.blog-hero--placeholder,
.blog-image--placeholder {
    background: linear-gradient(
        135deg,
        #e7e7e7 0%,
        #d4d4d4 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a7a7a;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
}

.blog-image--placeholder {
    height: 300px;
}

/* ==========================================
   CATEGORIEÃ‹N
========================================== */

.blog-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-categories li {
    border-bottom: 1px solid #eee;
}

.blog-categories a,
.blog-categories .cat-disabled {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
    text-decoration: none;
    color: #333;
}

.blog-categories a:hover {
    background: #f5f5f5;
    color: #000;
}

.blog-categories .cat-disabled {
    opacity: .7;
    cursor: default;
}

.blog-categories .cat-name {
    flex: 1;
    font-size: 15px;
}

.blog-categories .cat-count {
    background: #D9D3C8;
    color: #000;
    font-size: 15px;
    padding: 0 10px;
    border-radius: 20px;
}

/* ==========================================
   BLOG DETAIL PAGINA
========================================== */

.blog-detail {
    width: 100%;
}

.blog-detail-hero {
    position: relative;
    height: 500px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    margin-bottom: 30px;
      border-radius: 15px;
}



.blog-detail-content {
    max-width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-detail-content.two-column-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.blog-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.blog-text {
    flex: 1;
    min-width: 0;
    line-height: 1.8;
}

.blog-text p {
    margin: 0 0 1em;
}

/* ==========================================
   SIDEBAR FOTO'S
========================================== */

.blog-sidebar {
    width: 200px;
    flex-shrink: 0;
}


.blog-sidebar img {
    border-radius: 15px;

}

.sidebar-photo {
    display: block;
    margin-bottom: 20px;
    text-decoration: none;
}

.sidebar-photo img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition:
        opacity .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.sidebar-photo:hover img {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

/* ==========================================
   INLINE AFBEELDINGEN
========================================== */

.blog-inline-image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.blog-inline-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* ==========================================
   GALLERY
========================================== */

.blog-gallery {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    margin-top: 40px;
}

.blog-gallery-item {
    margin: 0;
}

.blog-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ==========================================
   EXTRA VELDEN
========================================== */

.blog-extra-fields {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.blog-extra-fields img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

/* ==========================================
   NAVIGATIE
========================================== */

.blog-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.blog-navigation a {
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width:1000px) {

    .blog-detail-content.two-column-layout {
        flex-direction: column;
    }

    .blog-sidebar {
        width: 100%;
    }

    .hero-overlay {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .hero-overlay h1 {
        font-size: 26px;
    }
}

@media (max-width:600px) {

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero {
        height: 300px;
    }

    .blog-detail-hero {
        height: 320px;
    }
}


/* ==========================================
   HOMEPAGE BLOGS
========================================== */

.home-blog-list {
    display: flex;
    flex-direction: column; gap: 16px; padding: 14px; border: 1px solid #ddd6cb; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(63,52,44,.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; height: 100%; min-height: 0; box-sizing: border-box;
}

.home-blog-item {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    border: 1px solid #ddd6cb; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(63,52,44,.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; height: 100%; min-height: 0; box-sizing: border-box;
}

.home-blog-item:last-child {
    border: 1px solid #ddd6cb; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(63,52,44,.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; height: 100%; min-height: 0; box-sizing: border-box;
}

.home-blog-thumb {
    flex: 0 0 120px;
}

.home-blog-thumb img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    display: block;
    border-radius: 7px;
}

.home-blog-content {
    flex: 1;
    min-width: 0;
}

.home-blog-content h3 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
}

.home-blog-content h3 a {
    color: #3f3a35;
    text-decoration: none;
}

.home-blog-content h3 a:hover {
    color: #8c7c68;
}

.home-blog-summary {
    margin: 0 0 10px;
    color: #6f6b66;
    font-size: 14px;
    line-height: 1.7;
}

.home-blog-readmore {
    color: #8c7c68;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.home-blog-readmore:hover {
    text-decoration: underline;
}

/* Mobiel */

@media (max-width: 600px) {

    .home-blog-item {
        gap: 15px;
    }

    .home-blog-thumb {
        flex: 0 0 90px;
    }

    .home-blog-thumb img {
        width: 90px;
        height: 70px;
    }

    .home-blog-content h3 {
        font-size: 16px;
    }

    .home-blog-summary {
        font-size: 13px;
    }
}



.home-blog-list {
    position: relative;
    z-index: 10;
}

.home-blog-item {
    height: auto !important;
    min-height: 0 !important;
}


.hero-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    max-width: 800px;
    z-index: 9999;
}

.hero-copyright {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #fff;
}


.sidebar-photo-wrapper {
    margin-bottom: 20px;
}

.photo-copyright {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.sidebar-photo {
    position: relative;
    display: block;
}

.photo-copyright-overlay {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 10;

    color: #fff;
    font-size: 11px;
    line-height: 1.2;

    text-shadow:
        0 1px 2px rgba(0,0,0,.9),
        0 2px 6px rgba(0,0,0,.9);
}


.home-blog-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(63,52,44,.09); border-color: #cbbdc7; } @media (max-width: 768px) { .home-blog-list { grid-template-columns: 1fr; } } @media (min-width: 800px) and (max-width: 1400px) {

    .blog-detail {margin-top: 100px;}
}


@media (max-width: 1400px) {
    
    
    


    body.blogdetails .content.paddingtop > .section {
        display: flex;
        flex-direction: column;
    }

    body.blogdetails .content.paddingtop > .section > .five-column {
        order: 2;
    }

    body.blogdetails .content.paddingtop > .section > *:not(.five-column) {
        order: 1;
    }
}

/* =========================
   TABLET / KLEINE DESKTOP
   SUMMARY IN 2 KOLOMMEN
   ========================= */

.home-blog-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(63,52,44,.09); border-color: #cbbdc7; } @media (max-width: 768px) { .home-blog-list { grid-template-columns: 1fr; } } @media (min-width: 800px) and (max-width: 1400px) {

    .home-blog-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .home-blog-item {
        width: 100%;
        min-width: 0;
        margin: 0;
    }
}
/* Sticky bannerkolom: door CompanyDirectory-integratie */
@media screen and (min-width: 1001px) {
  body.blog .five-column:has(.banner-carousel) {
    position: -webkit-sticky;
    position: sticky;
    top: 175px;
    align-self: flex-start;
    height: fit-content;
    z-index: 5;
  }

  body.blog .five-column:has(.banner-carousel) .banner-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 0 12px;
    overflow: hidden;
  }

  body.blog .five-column:has(.banner-carousel) .banner-carousel a {
    display: block;
    width: auto;
    margin: 0 auto;
  }

  body.blog .five-column:has(.banner-carousel) .banner-carousel img {
    display: block;
    width: auto;
    height: auto;
    max-height: calc((100vh - 220px) / 3);
    object-fit: contain;
  }
}
/* CGBLOG LAYOUTHERSTEL 2026 */
body.blog .blog-categories,body.blogdetails .blog-categories{margin:0 0 18px;padding:0;list-style:none}
body.blog .blog-categories li,body.blogdetails .blog-categories li{margin:0 0 7px;border:0}
body.blog .blog-categories a,body.blogdetails .blog-categories a{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:10px 12px;border:1px solid #d8d0c6;border-radius:5px;background:#fff;box-shadow:0 2px 8px rgba(63,52,44,.05);color:#4c4641;text-decoration:none;transition:background-color .2s ease,border-color .2s ease,transform .2s ease}
body.blog .blog-categories a:hover,body.blogdetails .blog-categories a:hover{border-color:#bcae9f;background:#f3efe9;color:#2f2c29;transform:translateY(-1px)}
body.blog .blog-categories .cat-name,body.blogdetails .blog-categories .cat-name{min-width:0;font-size:14px;font-weight:500}
body.blog .blog-categories .cat-count,body.blogdetails .blog-categories .cat-count{flex:0 0 auto;min-width:28px;padding:3px 8px;border-radius:999px;background:#a38f7c;color:#fff;font-size:12px;line-height:1.3;text-align:center}
@media screen and (min-width:1001px){body.blog .five-column:has(.banner-carousel),body.blogdetails .five-column:has(.banner-carousel){position:-webkit-sticky;position:sticky;top:175px;align-self:flex-start;height:fit-content;z-index:5}body.blog .five-column:has(.banner-carousel) .banner-carousel,body.blogdetails .five-column:has(.banner-carousel) .banner-carousel{display:flex;align-items:center;justify-content:center;width:100%;margin:0 0 5px!important;padding:0!important;overflow:hidden;border:1px solid #ddd6cd;border-radius:5px;background:#fff;line-height:0}body.blog .five-column:has(.banner-carousel) .banner-carousel+br,body.blogdetails .five-column:has(.banner-carousel) .banner-carousel+br{display:none}body.blog .five-column:has(.banner-carousel) .banner-slide,body.blogdetails .five-column:has(.banner-carousel) .banner-slide,body.blog .five-column:has(.banner-carousel) .banner-carousel a,body.blogdetails .five-column:has(.banner-carousel) .banner-carousel a{display:block;width:auto;margin:0 auto;line-height:0}body.blog .five-column:has(.banner-carousel) .banner-carousel img,body.blogdetails .five-column:has(.banner-carousel) .banner-carousel img{display:block;width:auto;max-width:100%;height:auto;max-height:calc((100vh - 220px)/3);border-radius:4px;object-fit:contain}}
@media(max-width:1000px){body.blog .blog-categories,body.blogdetails .blog-categories{display:flex;flex-wrap:wrap;gap:8px}body.blog .blog-categories li,body.blogdetails .blog-categories li{margin:0}body.blog .blog-categories a,body.blogdetails .blog-categories a{width:auto}}
/* HOMEPAGE KLEINE BANNERS HERSTEL 2026 */
.logo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.logo-slider-track {
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  transform: translate3d(0,0,0);
  animation: none !important;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.logo-item {
  flex: 0 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.logo-item a {
  display: block;
  line-height: 0;
}
.logo-item img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd6cd;
  border-radius: 5px;
  background: #fff;
  object-fit: contain;
  box-sizing: border-box;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.logo-slider-track.scrolling {
  width: max-content;
  animation: none !important;
  will-change: transform;
}
@media (max-width: 600px) {
  .logo-slider-track { gap: 5px; }
  .logo-item img { width: 145px; }
}
/* UNIFORME BANNERRANDEN â€” alle Banners-module plaatsingen */
.banner-carousel {
  overflow: hidden;
  border: 1px solid #ddd6cd;
  border-radius: 5px;
  background: #fff;
  box-sizing: border-box;
}
.banner-carousel .banner-slide,
.banner-carousel .banner-slide a,
.banner-carousel .banner-slide img {
  border: 0;
  border-radius: 7px;
}
.banner-carousel .banner-slide img {
  display: block;
  max-width: 100%;
}
.logo-item img {
  border: 1px solid #ddd6cd;
  border-radius: 5px;
}

/* HOMEPAGE BANNER BREEDTE HERSTEL 2026 */
body.home .layoutkolommenboven .banner-carousel{width:100%;line-height:0}
body.home .layoutkolommenboven .banner-carousel .banner-slide,body.home .layoutkolommenboven .banner-carousel .banner-slide a{display:block;width:100%;line-height:0}
body.home .layoutkolommenboven .banner-carousel .banner-slide img{display:block;width:100%;height:auto;max-width:none;border-radius:4px}

/* HOMEPAGE BANNER MAXIMALE BREEDTE 2026 */
/* HOMEPAGE BANNERS STICKY */
@media screen and (min-width: 1001px) {
  body.home .layoutkolommenboven .banner-carousel {
    position: -webkit-sticky;
    position: sticky;
    top: 175px;
    align-self: flex-start;
    height: fit-content;
    z-index: 5;
  }
}

body.home .layoutkolommenboven .banner-carousel{width:100%;max-width:350px;margin-right:auto;margin-left:auto}

/* Module portability defaults. */
:root {
  --cgblog-surface: #fff;
  --cgblog-soft: #f2eee8;
  --cgblog-text: #3f3a35;
  --cgblog-muted: #6f6b66;
  --cgblog-accent: #8c7c68;
  --cgblog-border: #ddd6cd;
}

.CGBlogSummary,
.CGBlogDetail,
.blog-card,
.blog-detail {
  color: var(--cgblog-text);
  box-sizing: border-box;
}

.CGBlogSummary {
  margin: 0 0 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--cgblog-border);
}

.CGBlogSummaryLink a,
.CGBlogSummary a,
.CGBlogDetail a {
  color: var(--cgblog-accent);
  text-decoration: none;
}

.CGBlogSummaryLink a:hover,
.CGBlogSummary a:hover,
.CGBlogDetail a:hover {
  text-decoration: underline;
}

.blog-hero {
  position: relative;
  height: 420px;
  margin-bottom: 50px;
  overflow: hidden;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
}

.blog-hero::after {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 35%);
  content: "";
}

.hero-overlay {
  position: absolute;
  right: 40px;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  max-width: 800px;
  color: #fff;
}

.hero-overlay h1,
.hero-overlay p {
  color: #fff;
  text-shadow: 0 2px 8px rgb(0 0 0 / 65%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.blog-card {
  overflow: hidden;
  background: var(--cgblog-soft);
  transition: transform 180ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-image {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-detail-content {
  max-width: 100%;
  margin: 40px auto;
  padding: 0 20px;
}

.blog-detail-content.two-column-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.blog-text {
  flex: 1;
  min-width: 0;
  line-height: 1.8;
}

.blog-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.blog-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.blog-gallery img,
.blog-inline-image,
.blog-sidebar img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.home-blog-list {
  display: flex;
  flex-direction: column;
}

.home-blog-item {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border: 1px solid #ddd6cb; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(63,52,44,.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; height: 100%; min-height: 0; box-sizing: border-box;
}

.home-blog-thumb {
  flex: 0 0 120px;
}

.home-blog-thumb img {
  display: block;
  width: 120px;
  height: 90px;
  border-radius: 7px;
  object-fit: cover;
}

.home-blog-content {
  flex: 1;
  min-width: 0;
}

.home-blog-content h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.home-blog-readmore {
  color: var(--cgblog-accent);
  text-decoration: none;
}

@media (max-width: 1000px) {
  .blog-detail-content.two-column-layout {
    flex-direction: column;
  }

  .blog-sidebar {
    width: 100%;
  }
}

/* Blog cards: houd de afbeelding visueel vrij van de kaart-rand. */
.blog-grid .blog-card {
  box-sizing: border-box;
  padding: 14px;
  background: #fff;
  border: 1px solid #ddd6cd;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgb(63 52 44 / 5%);
}

.blog-grid .blog-card > a {
  display: block;
}

.blog-grid .blog-card .blog-image {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 7px;
}

.blog-grid .blog-card .blog-content {
  padding: 12px 2px 2px;
}

.blog-grid .blog-card:hover {
  border-color: #cbbdaf;
  box-shadow: 0 4px 12px rgb(63 52 44 / 9%);
}

@media (max-width: 600px) {
  .blog-grid .blog-card {
    padding: 10px;
  }

  .blog-grid .blog-card .blog-content {
    padding: 10px 1px 1px;
  }
}

@media (max-width: 600px) {
  .blog-grid,
  .blog-gallery {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    height: 300px;
  }

  .hero-overlay {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .home-blog-item {
    gap: 15px;
  }

  .home-blog-thumb {
    flex-basis: 90px;
  }

  .home-blog-thumb img {
    width: 90px;
    height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card {
    transition: none;
  }
}

/* Lichte kaarten voor het blogoverzicht: subtiel passend bij de Rouw-huisstijl. */
.home-blog-list {
  gap: 14px;
}

.home-blog-item {
  box-sizing: border-box;
  height: 100%;
  min-height: 114px;
  padding: 14px;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd6cd;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgb(63 52 44 / 5%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-blog-item:last-child {
  border-bottom: 1px solid #ddd6cd;
}

.home-blog-item:hover {
  border-color: #cbbdaf;
  box-shadow: 0 4px 12px rgb(63 52 44 / 9%);
  transform: translateY(-2px);
}

.home-blog-thumb,
.home-blog-thumb img {
  border-radius: 5px;
}

.home-blog-content h3 {
  margin-bottom: 7px;
}

@media (max-width: 600px) {
  .home-blog-list {
    gap: 10px;
  }

  .home-blog-item {
    min-height: 0;
    padding: 11px;
    gap: 12px;
  }
}

/* Homepage-kaarten: cachebestendige, definitieve afwerking. */
body.home .home-blog-list .home-blog-item {
  padding: 14px !important;
  border-radius: 10px !important;
}

body.home .home-blog-list .home-blog-thumb,
body.home .home-blog-list .home-blog-thumb img {
  border-radius: 7px;
}

@media (max-width: 600px) {
  body.home .home-blog-list .home-blog-item {
    padding: 11px !important;
  }
}

/* ==========================================================
   ROUW MAGAZINE - BLOGKAARTEN LAYOUT 2026-08-19
   Homepage: breder/lager, zonder witte buitenbak.
   Detailpagina: compacte, rustigere tegels in de zijbalk.
   ========================================================== */

/* De lijst zelf is geen kaart: alleen de artikelen krijgen een witte kaart. */
body.home .home-blog-list,
body.blogdetails .home-blog-list {
    padding: 0 !important;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Homepage: twee brede kolommen zodat de sectie lager wordt. */
@media (min-width: 901px) {
    body.home .home-blog-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 14px;
        align-items: stretch;
    }

    /* Benut een deel van de lege ruimte tussen blogs en bannerkolom. */
    @media (min-width: 1180px) {
        body.home .home-blog-list {
            width: calc(100% + clamp(70px, 7vw, 130px));
            max-width: none;
        }
    }
}

body.home .home-blog-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 88px !important;
    height: auto !important;
    margin: 0;
    padding: 9px 10px !important;
    overflow: hidden;
    border: 1px solid #ddd6cd;
    border-radius: 8px !important;
    background: #fff;
    box-shadow: 0 1px 4px rgb(63 52 44 / 5%);
}

body.home .home-blog-thumb {
    flex: 0 0 92px;
    width: 92px;
}

body.home .home-blog-thumb img {
    width: 92px;
    height: 68px;
    border-radius: 6px;
    object-fit: cover;
}

body.home .home-blog-content {
    min-width: 0;
}

body.home .home-blog-content h3 {
    margin: 0 0 5px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
}

/* Een eventuele samenvatting maakt de homepagekaarten onnodig hoog. */
body.home .home-blog-summary {
    display: none;
}

body.home .home-blog-readmore {
    display: inline-block;
    margin-top: 1px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
}

/* Detailpagina: compacte lijstkaarten in de smalle linkerkolom. */
body.blogdetails .home-blog-list {
    display: flex !important;
    flex-direction: column;
    gap: 9px;
    width: 100% !important;
    max-width: none !important;
}

body.blogdetails .home-blog-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    width: 100%;
    min-width: 0;
    min-height: 80px !important;
    height: auto !important;
    margin: 0;
    padding: 8px !important;
    overflow: hidden;
    border: 1px solid #ddd6cd;
    border-radius: 8px !important;
    background: #fff;
    box-shadow: 0 1px 4px rgb(63 52 44 / 5%);
}

body.blogdetails .home-blog-thumb {
    width: 68px;
    min-width: 68px;
    flex: none;
}

body.blogdetails .home-blog-thumb img {
    display: block;
    width: 68px;
    height: 58px;
    border-radius: 6px;
    object-fit: cover;
}

body.blogdetails .home-blog-content {
    min-width: 0;
}

body.blogdetails .home-blog-content h3 {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.28;
    font-weight: 600;
    overflow-wrap: anywhere;
}

body.blogdetails .home-blog-summary {
    display: none;
}

body.blogdetails .home-blog-readmore {
    display: inline-block;
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 500;
}

body.home .home-blog-item:hover,
body.blogdetails .home-blog-item:hover {
    border-color: #c6b9aa;
    box-shadow: 0 5px 14px rgb(63 52 44 / 10%);
    transform: translateY(-2px);
}

/* Tablet/mobiel: geen extra breedte en één kaart per rij. */
@media (max-width: 900px) {
    body.home .home-blog-list {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100% !important;
        gap: 10px;
    }

    body.home .home-blog-item {
        min-height: 0 !important;
    }
}

@media (max-width: 600px) {
    body.home .home-blog-item {
        gap: 10px;
        padding: 8px !important;
    }

    body.home .home-blog-thumb {
        flex-basis: 82px;
        width: 82px;
    }

    body.home .home-blog-thumb img {
        width: 82px;
        height: 62px;
    }

    body.blogdetails .home-blog-item {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    body.blogdetails .home-blog-thumb,
    body.blogdetails .home-blog-thumb img {
        width: 74px;
    }
}

/* Rouw Magazine: make article hero titles bold despite the site-wide light heading rule. */
.blog-detail-hero .hero-overlay h1 {
    font-weight: 700 !important;
}

/* On narrow screens, let each sidebar banner card fit its rendered image. */
@media screen and (max-width: 1000px) {
    body.blog .rm-blog-banner-column .banner-carousel,
    body.blogdetails .rm-blog-banner-column .banner-carousel {
        flex: 0 1 auto !important;
        width: fit-content !important;
        max-width: 100% !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
}
