@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem; }

.container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem; }

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #E72168;
  margin-bottom: 0.5rem; }

.article-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  background-size: cover;
  background-position: center;
  background-color: #f5f5ff; }

.article-header h1 {
  color: white;
  margin: 0.5rem 0;
  text-align: center;
  text-shadow: #000; }

.article-meta {
  color: rgba(255, 255, 255, 0.9); }
  .article-meta img {
    filter: invert(1); }

.article-meta img {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem; }

/* Artikel Content */
.article-content {
  padding: 2rem 10%;
  line-height: 1.8;
  color: #333; }
  .article-content ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0; }
  .article-content li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.6; }
    .article-content li::before {
      content: "✔";
      position: absolute;
      left: 0;
      top: 0;
      color: #E72168;
      font-weight: bold; }
  .article-content a {
    color: #072c3e;
    text-decoration: underline;
    text-decoration-color: rgba(7, 44, 62, 0.4);
    text-underline-offset: 2px;
    transition: all 0.2s ease; }
    .article-content a:hover {
      color: #E72168;
      text-decoration-color: #E72168; }
    .article-content a:focus {
      outline: 2px dashed #E72168;
      outline-offset: 2px; }

.article-content blockquote {
  font-style: italic;
  border-left: 4px solid #E72168;
  padding-left: 1rem;
  margin: 2rem 0;
  color: #555; }

.article-content blockquote span {
  display: block;
  font-style: normal;
  color: #999;
  margin-top: 0.5rem; }

.related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem 10%;
  background-color: #f5f5ff;
  text-align: center; }

/* ─── Elke Card ─── */
.related-article {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease; }

.related-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

/* ‘Meer lezen?’ header over de volle breedte */
.related-articles > h2 {
  grid-column: 1 / -1;
  font-size: 2rem;
  color: #E72168;
  margin-bottom: 1.5rem; }

/* ─── Kaart styling ─── */
.related-article {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform .2s, box-shadow .2s; }

.related-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

/* ─── Afbeelding met gecentreerde titel ─── */
.related-image {
  position: relative;
  width: 100%;
  /* aspect-ratio in moderne browsers; anders fallback naar padding-top:50% */
  aspect-ratio: 2 / 1;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  /* verticaal centrum */
  justify-content: center;
  /* horizontaal centrum */ }

.related-title {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background .2s;
  line-height: 1.4; }
  .related-title:hover {
    color: #fff;
    opacity: 0.8; }

/* ─── Fallback voor items zonder afbeelding ─── */
.related-article:not(:has(.related-image)) {
  padding: 1rem; }

.related-article:not(:has(.related-image)) .related-title {
  position: static;
  display: inline-block;
  background: none;
  color: #E72168;
  padding: 0;
  margin: 1rem 0 0; }

@media screen and (max-width: 768px) {
  .article-header h1 {
    padding: 0 1rem; }
  .article-meta {
    font-size: 0.9rem;
    flex-direction: column;
    gap: 0.5rem; }
  .article-meta img {
    width: 14px;
    height: 14px; }
  .article-content {
    padding: 1rem; }
  .article-content blockquote {
    padding-left: 0.5rem; }
  .article-content blockquote span {
    font-size: 0.9rem; }
  .related-articles {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem; }
  .related-article {
    width: 100%; }
  .related-article .related-image {
    height: 120px; } }

@media screen and (max-width: 480px) {
  .related-article .related-image {
    height: 100px; } }
