/*
 * Blog styling (single post + /blog overzicht).
 *
 * Bewust een losse, niet-gecompileerde CSS: op de server staat geen SCSS-build
 * (geen package.json / sass), dus dit bestand is de bron van waarheid en wordt
 * los ingeladen na main.css. Kleuren komen overeen met css/setup/_vars.scss:
 * maincolor #E18536, dark #1D1D1B, light_gray #ededed, line_gray #C9C9C9.
 */

/* ---------- gedeeld ---------- */
.blog-article,
.blog-overview,
.blog-nav {
  padding: 60px 0;
}

.blog-article {
  padding-bottom: 40px;
}

.margin-center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- single post ---------- */
/* Alle blokken even breed houden: .maxtext is 950px en .maxtext.full-text 1000px,
   waardoor de kop anders 25px naar binnen sprong t.o.v. de content. */
.single-blog-page .blog-header,
.single-blog-page .blog-featured,
.single-blog-page .blog-content,
.blog-nav .maxtext {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.single-blog-page .blog-header {
  margin-bottom: 35px;
}

.single-blog-page .blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9A9A9A;
}

.single-blog-page .blog-meta a {
  color: #E18536;
  text-decoration: none;
}

.single-blog-page .blog-meta a:hover {
  text-decoration: underline;
}

.single-blog-page .blog-meta .blog-date,
.single-blog-page .blog-meta .blog-cats,
.single-blog-page .blog-meta .blog-read {
  position: relative;
}

.single-blog-page .blog-meta > span + span:before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #C9C9C9;
}

.single-blog-page .blog-header h1 {
  margin-bottom: 15px;
}

.single-blog-page .blog-intro {
  font-size: 20px;
  line-height: 1.7;
  color: #3E3E3D;
  margin-bottom: 0;
}

.single-blog-page .blog-featured {
  margin-bottom: 45px;
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
}

.single-blog-page .blog-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.single-blog-page .blog-content h2 {
  font-size: 2em;
  margin-top: 45px;
}

.single-blog-page .blog-content h3 {
  font-size: 28px;
  margin-top: 35px;
  margin-bottom: 10px;
}

.single-blog-page .blog-content > *:first-child {
  margin-top: 0;
}

.single-blog-page .blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

.single-blog-page .blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 35px;
}

.single-blog-page .blog-content th,
.single-blog-page .blog-content td {
  border: 1px solid #C9C9C9;
  padding: 10px 14px;
  text-align: left;
}

.single-blog-page .blog-content th {
  background: #ededed;
}

.single-blog-page .blog-content blockquote {
  margin: 0 0 35px;
  padding: 5px 0 5px 25px;
  border-left: 4px solid #E18536;
  font-size: 20px;
  font-style: italic;
}

/* ---------- vorige / volgende ---------- */
.blog-nav {
  border-top: 1px solid #C9C9C9;
  padding-top: 40px;
}

.blog-nav .nav-col {
  margin-bottom: 20px;
}

.blog-nav-card {
  display: block;
  height: 100%;
  padding: 22px 25px;
  border: 1px solid #C9C9C9;
  border-radius: 15px;
  text-decoration: none;
  color: #1D1D1B;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-nav-card:hover {
  border-color: #E18536;
  box-shadow: 0 2px 17px 0 rgba(0, 0, 0, 0.08);
}

.blog-nav-card .label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #E18536;
}

.blog-nav-card .title {
  display: block;
  font-family: "tablet-gothic-wide", sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
}

.blog-nav-card.next {
  text-align: right;
}

.blog-back {
  margin-top: 15px;
}

/* ---------- overzicht /blog ---------- */
/* Kop links uitlijnen met de kaartkolommen (die vullen de hele container),
   dus niet centreren zoals de leeskolom van een losse post. */
.blog-overview-head {
  width: 100%;
  max-width: 1000px;
  margin: 0 0 40px;
}

.blog-overview-head .blog-intro {
  font-size: 20px;
  line-height: 1.7;
  color: #3E3E3D;
}

.blog-grid .blog-col {
  margin-bottom: 30px;
  display: flex;
}

.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid #C9C9C9;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #1D1D1B;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: #E18536;
  box-shadow: 0 2px 17px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.blog-card .card-img {
  position: relative;
  width: 100%;
  padding-top: 62%;
  background: #ededed;
  overflow: hidden;
}

.blog-card .card-img img,
.blog-card .card-img-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card .card-img-fallback {
  background: linear-gradient(135deg, #ededed 0%, #C9C9C9 100%);
}

.blog-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 25px;
}

.blog-card .card-date {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9A9A9A;
}

.blog-card .card-title {
  font-family: "tablet-gothic-wide", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.blog-card:hover .card-title {
  color: #E18536;
}

.blog-card .card-text {
  flex: 1 1 auto;
  margin: 0 0 18px;
  line-height: 1.7;
  color: #3E3E3D;
}

.blog-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #E18536;
}

/* ---------- paginering ---------- */
.blog-pagination {
  margin-top: 20px;
}

.blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-pagination ul li:before {
  display: none;
}

.blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #C9C9C9;
  border-radius: 10px;
  text-decoration: none;
  color: #1D1D1B;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: #E18536;
  border-color: #E18536;
  color: #ffffff;
}

/* ---------- responsive ---------- */
@media screen and (max-width: 767px) {
  .blog-article,
  .blog-overview,
  .blog-nav {
    padding: 40px 0;
  }

  .single-blog-page .blog-featured {
    border-radius: 12px;
    margin-bottom: 30px;
  }

  .blog-nav-card.next {
    text-align: left;
  }
}
