/* =============================================================================
   YCW New Posts
   Kaartopmaak afgestemd op de ycw-nieuws__grid referentie.
   Alle selectors zijn beperkt tot .ycw-new-posts.
   ============================================================================= */

.ycw-new-posts,
.ycw-new-posts * {
  box-sizing: border-box;
}

.ycw-new-posts {
  --ycw-new-posts-heading-font: var(--font-heading, Georgia, "Times New Roman", serif);
  --ycw-new-posts-body-font: var(--font-body, Arial, sans-serif);
  --ycw-new-posts-text: #30343a;
  --ycw-new-posts-muted: #77767a;
  --ycw-new-posts-accent: #78b948;
  --ycw-new-posts-date: #f0005a;
  --ycw-new-posts-surface: #ffffff;
  --ycw-new-posts-background: #fafbf8;
  --ycw-new-posts-placeholder: #eef0eb;
  --ycw-new-posts-radius: 8px;
  --ycw-new-posts-shadow: 0 7px 20px rgba(35, 46, 32, 0.07);
  --ycw-new-posts-content-width: 1110px;

  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--ycw-new-posts-text);
  font-family: var(--ycw-new-posts-body-font);
  background: var(--ycw-new-posts-background);
}

.ycw-new-posts__inner {
  width: 100%;
  max-width: var(--ycw-new-posts-content-width);
  margin: 0 auto;
  padding: 0 0 43px;
}

.ycw-new-posts__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.ycw-new-posts__card {
  display: flex !important;
  min-width: 0;
  min-height: 476px;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  flex-direction: column;
  background: var(--ycw-new-posts-surface) !important;
  border: 0 !important;
  border-radius: var(--ycw-new-posts-radius) !important;
  box-shadow: var(--ycw-new-posts-shadow) !important;
}

.ycw-new-posts__media {
  position: relative;
  display: block !important;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--ycw-new-posts-placeholder);
  border-radius: var(--ycw-new-posts-radius) var(--ycw-new-posts-radius) 0 0;
  text-decoration: none !important;
}

.ycw-new-posts__image,
.ycw-new-posts__image-placeholder {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.ycw-new-posts__image {
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.ycw-new-posts__image-placeholder {
  background:
    linear-gradient(135deg, rgba(120, 185, 72, 0.16), rgba(120, 185, 72, 0.02)),
    var(--ycw-new-posts-placeholder);
}

.ycw-new-posts__card:hover .ycw-new-posts__image {
  transform: scale(1.025);
}

.ycw-new-posts__content {
  display: flex !important;
  flex: 1 1 auto;
  min-width: 0;
  padding: 26px 24px 28px !important;
  flex-direction: column;
}

.ycw-new-posts__date {
  display: block;
  margin: 0 0 16px !important;
  padding: 0 !important;
  color: var(--ycw-new-posts-date) !important;
  font-family: var(--ycw-new-posts-body-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase;
}

.ycw-new-posts__card-title {
  display: -webkit-box;
  max-height: 2.5em;
  margin: 0 0 12px !important;
  padding: 0 !important;
  overflow: hidden;
  color: var(--ycw-new-posts-text) !important;
  font-family: var(--ycw-new-posts-heading-font) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.025em !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ycw-new-posts__card-title a {
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
  transition: color 180ms ease;
}

.ycw-new-posts__card-title a:hover,
.ycw-new-posts__card-title a:focus-visible {
  color: var(--ycw-new-posts-accent) !important;
}

.ycw-new-posts__excerpt {
  display: -webkit-box;
  max-height: 6.2em;
  margin: 0 0 20px !important;
  padding: 0 !important;
  overflow: hidden;
  color: var(--ycw-new-posts-muted) !important;
  font-family: var(--ycw-new-posts-body-font) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: -0.005em !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.ycw-new-posts__read-more {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  margin: auto 0 0 !important;
  padding: 0 !important;
  color: var(--ycw-new-posts-accent) !important;
  font-family: var(--ycw-new-posts-body-font) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}

.ycw-new-posts__arrow {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.ycw-new-posts__read-more:hover .ycw-new-posts__arrow,
.ycw-new-posts__read-more:focus-visible .ycw-new-posts__arrow {
  transform: translateX(4px);
}

.ycw-new-posts__footer {
  display: flex !important;
  justify-content: center;
  width: 100%;
  margin: 48px 0 0 !important;
  padding: 0 !important;
}

.ycw-new-posts__all-button {
  display: inline-flex !important;
  width: auto;
  min-width: 244px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 11px 30px !important;
  color: var(--ycw-new-posts-accent) !important;
  font-family: var(--ycw-new-posts-body-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  background: transparent !important;
  border: 2px solid var(--ycw-new-posts-accent) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.ycw-new-posts__all-button:hover,
.ycw-new-posts__all-button:focus-visible {
  color: #ffffff !important;
  background: var(--ycw-new-posts-accent) !important;
  transform: translateY(-1px);
}

.ycw-new-posts a:focus-visible {
  outline: 3px solid rgba(120, 185, 72, 0.4);
  outline-offset: 3px;
}

@media (max-width: 1142px) {
  .ycw-new-posts__inner {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 820px) {
  .ycw-new-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ycw-new-posts__inner {
    padding-right: 16px;
    padding-bottom: 34px;
    padding-left: 16px;
  }

  .ycw-new-posts__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .ycw-new-posts__card {
    width: 100%;
    max-width: 420px;
    min-height: 0;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .ycw-new-posts__content {
    min-height: 276px;
    padding: 24px 22px 26px !important;
  }

  .ycw-new-posts__footer {
    margin-top: 36px !important;
  }

  .ycw-new-posts__all-button {
    width: 100%;
    min-width: 0;
    max-width: 244px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ycw-new-posts__image,
  .ycw-new-posts__arrow,
  .ycw-new-posts__all-button {
    transition: none;
  }
}

/* =============================================================================
   Nieuwsarchief en paginering
   ============================================================================= */

.ycw-new-posts-archive {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.ycw-new-posts--archive .ycw-new-posts__inner {
  padding-top: 0;
  padding-bottom: 48px;
}

.ycw-new-posts__pagination {
  display: flex !important;
  justify-content: center;
  width: 100%;
  margin: 48px 0 0 !important;
  padding: 0 !important;
}

.ycw-new-posts__pagination .page-numbers {
  margin: 0 !important;
  padding: 0 !important;
}

.ycw-new-posts__pagination ul.page-numbers {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  list-style: none !important;
}

.ycw-new-posts__pagination ul.page-numbers > li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ycw-new-posts__pagination ul.page-numbers > li::before,
.ycw-new-posts__pagination ul.page-numbers > li::after {
  display: none !important;
  content: none !important;
}

.ycw-new-posts__pagination a.page-numbers,
.ycw-new-posts__pagination span.page-numbers {
  display: inline-flex !important;
  width: 40px;
  height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ycw-new-posts-text) !important;
  font-family: var(--ycw-new-posts-body-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  background: var(--ycw-new-posts-surface) !important;
  border: 1px solid #d8dfd6 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.ycw-new-posts__pagination span.page-numbers.current {
  color: #ffffff !important;
  background: var(--ycw-new-posts-accent) !important;
  border-color: var(--ycw-new-posts-accent) !important;
}

.ycw-new-posts__pagination span.page-numbers.dots {
  color: var(--ycw-new-posts-muted) !important;
  background: transparent !important;
  border-color: transparent !important;
}

.ycw-new-posts__pagination a.page-numbers:hover,
.ycw-new-posts__pagination a.page-numbers:focus-visible {
  color: #ffffff !important;
  background: var(--ycw-new-posts-accent) !important;
  border-color: var(--ycw-new-posts-accent) !important;
}

.ycw-new-posts__pagination .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ycw-new-posts__empty {
  margin: 0 !important;
  padding: 32px 0 !important;
  color: var(--ycw-new-posts-muted) !important;
  font-family: var(--ycw-new-posts-body-font) !important;
  text-align: center;
}

@media (max-width: 560px) {
  .ycw-new-posts--archive .ycw-new-posts__inner {
    padding-bottom: 38px;
  }

  .ycw-new-posts__pagination {
    margin-top: 36px !important;
  }
}
