/* ============================================================
   Gedeeld kaarten-ontwerp voor overzichtspagina's (blog/index.html
   en later andere overzichtspagina's die dezelfde opzet gebruiken).
   Compacter dan de oude versie zodat bezoekers in één oogopslag
   zien hoeveel artikelen er zijn.
   ============================================================ */

/* blog.css beperkt <main> sitebreed tot 780px voor leesbare artikel-tekst;
   op de overzichtspagina zelf willen we juist meer ruimte voor de kaarten-grid. */
#blog-index-main { max-width: 1100px; }

/* Laatste toevoegingen */
.recent-highlight { margin: 2rem 0 2.5rem; }
.recent-highlight h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .65rem; }
.recent-card { display: flex; flex-direction: column; gap: .3rem; padding: .8rem 1rem; background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 10px; text-decoration: none; color: #1a1a1a; transition: all .2s; border-left: 3px solid #2563eb; }
.recent-card:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.recent-card span { font-weight: 600; font-size: .85rem; line-height: 1.4; }
.recent-card small { font-size: .75rem; opacity: .65; }

/* Resultaten-teller */
.results-count { font-size: .85rem; color: #6b7280; margin: 0 0 .85rem; }
.results-count strong { color: #1a1a1a; }

/* Kaarten-grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; margin: .5rem 0 1.5rem; }

.blog-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.09); }

.card-image { height: 64px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: rgba(255,255,255,.9); flex-shrink: 0; }

.card-content { padding: .95rem 1.1rem 1.05rem; display: flex; flex-direction: column; flex: 1; }
.card-category { display: inline-block; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #2563eb; background: rgba(37,99,235,.08); padding: .2rem .55rem; border-radius: 999px; margin-bottom: .55rem; align-self: flex-start; }
.card-content h3 { font-size: .9rem; font-weight: 700; line-height: 1.4; margin: 0 0 .4rem; }
.card-content h3 a { color: #1a1a1a; text-decoration: none; }
.card-content h3 a:hover { color: #2563eb; }
.card-excerpt { font-size: .78rem; color: #666; line-height: 1.5; margin: 0 0 .7rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: .7rem; color: #888; margin-top: auto; padding-top: .6rem; border-top: 1px solid #f0f0f0; }
.card-read-more { color: #2563eb; font-weight: 700; font-size: .74rem; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: .25rem; }
.card-read-more:hover { text-decoration: underline; }

/* Paginering */
.pagination { display: flex; justify-content: center; align-items: center; gap: .4rem; margin: 2rem 0; flex-wrap: wrap; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .65rem; border: 1px solid #e5e7eb; border-radius: 8px; text-decoration: none; color: #1a1a1a; font-weight: 600; font-size: .85rem; transition: all .2s; }
.pagination a:hover, .pagination a.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.pagination a.disabled { opacity: .4; pointer-events: none; }

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .recent-grid { grid-template-columns: 1fr 1fr; }
  .card-content { padding: .75rem .85rem .85rem; }
}

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