.blog-page {
  padding: 36px 0 60px;
  background: #fff;
  font-family: "Basis Grotesque Pro", Arial, sans-serif;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* Paginatitel + lijn:zelfde stijl als woning-verkopen / andere pagina's */
.blog-page .aanbod-page-title {
  font-family: "Basis Grotesque Pro", Arial, sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #0A1573;
  margin: 0 0 8px 0;
  padding: 0;
}
.blog-page .aanbod-title-divider {
  width: 100%;
  height: 3px;
  background: #ccc;
  margin: 0 0 8px 0;
}

/* Breadcrumb:zelfde stijl als op andere pagina's */
.blog-page .property-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 24px;
  font-family: "Basis Grotesque Pro", Arial, sans-serif;
  font-size: 17px;
}
.blog-page .breadcrumb-home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.blog-page .breadcrumb-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  position: relative;
  top: -2px;
}
.blog-page .breadcrumb-separator { color: #666; }
.blog-page .breadcrumb-link {
  color: #000;
  text-decoration: underline;
  transition: color 0.2s ease-in-out;
}
.blog-page .breadcrumb-link:hover { color: #0A1573; }
.blog-page .breadcrumb-current { color: #666; }

.featured-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 330px;
  gap: 18px;
  margin-bottom: 40px;
}
.post-card{
  position:relative;
  border-radius: 12px;
  overflow:hidden;
  display:block;
  background:#eee;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: transform 0.2s ease-in-out;
}
.post-card:hover{
  transform: translateY(-4px);
}
.post-card__img{
  width:100%; height:100%;
  object-fit:cover;
  transform: scale(1.02);
}
.post-card__overlay{
  position:absolute;
  left:16px; right:16px;
  bottom:16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.post-card__overlay--bottom { left:14px; right:14px; bottom:14px; }

.post-card__tags{
  display:flex;
  gap:6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tag{
  font-family: "Basis Grotesque Pro", Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  background: #0A1573;
  color: #fff;
  font-weight: 600;
}
.tag--soft { background: rgba(10,21,115,.85); }

/* Eerste vijf posts: één doorlopende witte highlight om de hele titel (tekst + spaties), per regel eigen strip */
.post-card__title{
  margin: 0;
  font-family: "Basis Grotesque Pro", Arial, sans-serif;
  font-size: 1.375rem;
  font-weight: normal;
  color: #111;
  line-height: 1.2;
}
.post-card--big .post-card__title,
.post-card--small .post-card__title{
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  background: #fff;
  padding: 8px 12px 6px 12px;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  align-self: flex-start;
}

/* Eerste rij: 2 artikelen over volle breedte (elk 50%) */
.post-card--big:nth-child(1){ grid-column: 1 / span 3; grid-row: 1; }
.post-card--big:nth-child(2){ grid-column: 4 / span 3; grid-row: 1; }
/* Tweede rij: 3 artikelen gelijk verdeeld (elk 1/3) */
.post-card--small:nth-child(3){ grid-column: 1 / span 2; grid-row: 2; }
.post-card--small:nth-child(4){ grid-column: 3 / span 2; grid-row: 2; }
.post-card--small:nth-child(5){ grid-column: 5 / span 2; grid-row: 2; }

/* Zelfde als .section-intro h2 op de rest van de site */
.section-head {
  margin: 10px 0 18px;
  font-family: "Basis Grotesque Pro", Arial, sans-serif;
}
.section-head h2 {
  margin: 0 0 8px 0;
  font-size: 1.375rem;
  font-weight: normal;
  letter-spacing: 1px;
  line-height: 1.5;
  color: #0A1573;
}
.section-underline{
  display:block;
  width: 66px;
  height: 3px;
  background: #0A1573;
  border-radius: 999px;
}

.posts-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.post-card--grid{ height: 315px; }

/* Latest posts: witte titels zonder achtergrond + sterkere schaduw voor leesbaarheid */
.post-card--grid .post-card__title{
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  border-radius: 0;
  max-width: 100%;
  width: max-content;
  padding: 0;
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 2px 6px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.5);
}
.post-card--grid .tag{ background: #0A1573; }
.post-card--grid .tag--soft{ background: rgba(10,21,115,.85); }

.pagination{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top: 56px;
}
.page{
  font-family: "Basis Grotesque Pro", Arial, sans-serif;
  width: 32px; height: 32px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  text-decoration:none;
  border: 1px solid #e6e6e6;
  color:#111;
  font-weight:700;
  font-size: 13px;
}
.page--active{
  background:#0A1573;
  color:#fff;
  border-color:#0A1573;
}

/* Op mobiel: 5e featured card verbergen, die staat dan als eerste onder "Meer artikelen" (10 stuks) */
.posts-grid .post-card--mobile-only {
  display: none !important;
}
@media (max-width: 1020px){
  .featured-grid{
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 330px;
  }
  .post-card--big:nth-child(1),
  .post-card--big:nth-child(2),
  .post-card--small:nth-child(3),
  .post-card--small:nth-child(4),
  .post-card--small:nth-child(5){
    grid-column:auto; grid-row:auto;
  }
  .featured-grid .post-card:nth-child(5) {
    display: none !important;
  }
  .posts-grid .post-card--mobile-only {
    display: block !important;
  }
  .posts-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 570px){
  .blog-page .section-head h2 { font-size: 1.1rem; }
}
@media (max-width: 480px){
  .blog-page .section-head h2 { font-size: 1rem; }
}
@media (max-width: 320px){
  .blog-page .section-head h2 { font-size: 1rem; }
}
@media (max-width: 560px){
  .posts-grid{ grid-template-columns: 1fr; }
  .post-card__title{ font-size: 0.875rem; }
}

/* =============== Artikelpagina (single post) =============== */
/* Featured image:zelfde ronde hoeken en effect als blog-overzicht (post-card) */
.blog-page.article-single .entry-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  background: #eee;
}
.blog-page.article-single .entry-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

/* Titel onder de foto:zelfde breedte als artikeltekst, mag afbreken, alleen eerste woord met hoofdletter */
.blog-page.article-single .entry-header {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.blog-page.article-single .entry-header .entry-title {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-transform: lowercase !important; /* overschrijft .entry-header { text-transform: capitalize } uit main.css */
}
.blog-page.article-single .entry-header .entry-title::first-letter {
  text-transform: uppercase !important;
}

/* Titelsectie onder de plaat:zelfde inspringing als content, titel iets naar beneden, tag zelfde stijl als blogpagina */
.blog-page.article-single .entry-header {
  text-align: left;
}
.blog-page.article-single .entry-header-inner {
  width: 85%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.blog-page.article-single .entry-header .entry-title {
  margin-top: 28px;
  margin-bottom: 0;
}
.blog-page.article-single .entry-header-inner .post-card__tags {
  margin-top: 10px;
}
.blog-page.article-single .entry-header .entry-category {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 0;
  font-family: "Basis Grotesque Pro", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  background: #0A1573;
  color: #fff;
  text-decoration: none;
}

/* Entry-content:zelfde vormgeving als artikel.php (font-size, regelafstand, inspringing als titel) */
.blog-page.article-single .entry-content {
  max-width: 100%;
  margin-top: 24px;
  margin-bottom: 80px;
  font-size: 1rem;
  letter-spacing: 0.2px;
  line-height: 1.8;
}
/* Inspringing en marge voor alle blokelementen (ook bij HTML-inhoud) */
.blog-page.article-single .entry-content > p,
.blog-page.article-single .entry-content > blockquote,
.blog-page.article-single .entry-content > h2,
.blog-page.article-single .entry-content > h3,
.blog-page.article-single .entry-content > h4,
.blog-page.article-single .entry-content > ul,
.blog-page.article-single .entry-content > ol,
.blog-page.article-single .entry-content > div {
  width: 85%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}
.blog-page.article-single .entry-content > *:last-child {
  margin-bottom: 0;
}
/* Geneste lijsten binnen dezelfde breedte */
.blog-page.article-single .entry-content ul,
.blog-page.article-single .entry-content ol {
  width: 100%;
  max-width: none;
}
.blog-page.article-single .entry-content .post-img {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Links in blogartikel: altijd de blauwe huisstijl */
.blog-page.article-single .entry-content a,
.blog-page.article-single .entry-content a:visited,
.blog-page.article-single .entry-content a:hover {
  color: #0A1573;
  text-decoration: underline;
}
.blog-page.article-single .entry-content a:hover {
  color: #0602e8;
}
