.site-main.site-main--nieuws {
  gap: 0;
}

.nieuws-hero {
  position: relative;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--section-slope)), 0 100%);
  overflow: hidden;
}

.nieuws-hero__image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nieuws-hero__measure {
  position: relative;
  min-height: 35vmin;
  pointer-events: none;
  visibility: hidden;
}

.nieuws-overview {
  background: #ffffff;
  padding-block: var(--section-stack-gap);
}

.nieuws-card {
  display: block;
  overflow: hidden;
  border-radius: 2.25rem;
  background: var(--brand-green);
  text-decoration: none;
  isolation: isolate;
}

.nieuws-card-grid .nieuws-card img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1035 / 840;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
  transition: transform 360ms ease;
}

.nieuws-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1035 / 840;
}

.nieuws-card__media--empty {
  position: relative;
  background: var(--hero-bg);
}

.nieuws-card__media--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./images/perspectief-zutphen-logo.svg") center / min(62%, 18rem) no-repeat;
}

.nieuws-card-grid a.nieuws-card[href]:not([href="#"]):hover img,
.nieuws-card-grid a.nieuws-card[href]:not([href="#"]):focus-visible img {
  transform: scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
  .nieuws-card-grid .nieuws-card img {
    transition: none;
  }
}

.nieuws-overview .home-slider {
  padding: 0;
}

.nieuws-overview .home-slider__nav {
  display: none;
}

.nieuws-section {
  position: relative;
  overflow: visible;
  padding-block: var(--section-pad-y) calc(var(--section-pad-y) + var(--section-slope));
}

.nieuws-section--beige {
  background: var(--hero-bg);
}

.nieuws-section--white {
  background: #ffffff;
  padding-bottom: var(--section-pad-y);
}

.site-main > .nieuws-section--white:last-child {
  padding-bottom: 0;
}

.nieuws-section--beige::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--section-slope-overlap));
  height: calc(var(--section-slope) + var(--section-slope-overlap));
  background: #ffffff;
  clip-path: var(--section-slope-transition);
  pointer-events: none;
}

.nieuws-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.nieuws-section h2 {
  color: var(--brand-green);
  font-size: var(--section-title-size);
  line-height: var(--section-title-line);
  letter-spacing: -0.01em;
  margin: 0;
}

.nieuws-filter {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--brand-green);
  font-family: var(--font-accent);
  font-size: calc(var(--fs-body) * 1.75);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}

.nieuws-filter__label {
  font-family: var(--font-accent);
  font-weight: 300;
}

.nieuws-filter__label-short {
  display: none;
}

.nieuws-filter__select {
  min-width: 22rem;
  appearance: none;
  -webkit-appearance: none;
  padding: 1.25rem 4.5rem 1.25rem 1.5rem;
  border: 0;
  border-radius: 0 2.25rem 2.25rem 0;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Cpath d='M2 2.5 9 9.5 16 2.5' fill='none' stroke='%2375ac22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1.5rem center;
  background-repeat: no-repeat;
  background-size: 1.125rem 0.75rem;
  color: var(--brand-green);
  font-family: var(--font-base);
  font-size: var(--fs-body);
  font-weight: 700;
}

.nieuws-filter__select:focus,
.nieuws-filter__select:focus-visible {
  outline: 0;
  box-shadow: none;
}

.nieuws-section--white .nieuws-filter__select {
  background-color: var(--hero-bg);
}

.nieuws-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  align-items: start;
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 4rem;
  row-gap: 3rem;
  align-items: start;
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--brand-green-deep);
  align-self: stretch;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.agenda-item:focus-visible {
  outline: 0.1875rem solid var(--brand-green);
  outline-offset: 0.25rem;
}

.agenda-item__visual {
  width: 8.5rem;
  height: 8.5rem;
  display: flex;
  flex: 0 0 8.5rem;
  border-radius: 2.25rem;
  isolation: isolate;
  overflow: hidden;
}

.agenda-item__visual--has-image {
  width: 15.5rem;
  flex-basis: 15.5rem;
}

.agenda-item__date {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--brand-green);
  color: #ffffff;
  font-size: calc(var(--fs-body) * 1.45);
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
}

.agenda-item__date-day {
  font-size: calc(var(--fs-body) * 1.9);
}

.agenda-item__location-image {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.agenda-item--yellow .agenda-item__date {
  background: var(--support-yellow);
}

.agenda-item--rose .agenda-item__date {
  background: var(--support-rose);
}

.agenda-item--teal .agenda-item__date {
  background: var(--support-teal);
}

.agenda-item h3 {
  color: var(--brand-green);
  font-family: var(--font-accent);
  font-size: calc(var(--fs-body) * 1.75);
  font-weight: 300;
  line-height: 1;
  margin: 0 0 0.75rem;
}

.agenda-item--summary h3 {
  margin-bottom: 0;
}

.agenda-item p {
  color: var(--brand-green);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.18;
  min-height: calc(var(--fs-body) * 1.18 * 2);
  margin: 0 0 0.75rem;
}

.agenda-item__location {
  display: block;
}

.agenda-item__text {
  align-self: center;
  color: var(--brand-green);
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.agenda-item__more {
  display: block;
  color: var(--brand-green);
  font-size: calc(var(--fs-body) * 0.82);
  font-weight: 700;
  line-height: 1;
  margin-top: auto;
  text-align: left;
  text-decoration: none;
}

.nieuws-card {
  position: relative;
  color: #ffffff;
  align-self: start;
}

.nieuws-card__body {
  margin-top: -1px;
  min-height: 11.5rem;
  padding: 1.35rem 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
  background: var(--brand-green);
}

.nieuws-card__wijk {
  color: #ffffff;
  font-family: var(--font-accent);
  font-size: calc(var(--fs-body) * 1.75);
  font-weight: 300;
  line-height: 0.95;
  margin: 0 0 0.75rem;
  overflow: hidden;
  padding-right: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nieuws-card__badge + .nieuws-card__wijk {
  padding-right: 4.2rem;
}

.nieuws-card p {
  color: var(--brand-green-deep);
  display: -webkit-box;
  font-size: var(--fs-body);
  line-height: 1.18;
  font-weight: 700;
  min-height: calc(var(--fs-body) * 1.18 * 2);
  margin: 0 0 0.75rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nieuws-card__more {
  color: #ffffff;
  display: block;
  font-size: calc(var(--fs-body) * 0.82);
  font-weight: 700;
  margin: 0;
}

.nieuws-card__badge {
  width: 4.6rem;
  height: 4.6rem;
  position: absolute;
  right: 1.2rem;
  top: -2.3rem;
  background: url("./images/sociale-wijkteams-icoon.svg") center / contain no-repeat;
}

.nieuws-card__badge--rose {
  background-image: url("./images/sociale-wijkteams-icoon-centrum.svg");
}

.nieuws-card__badge--teal {
  background-image: url("./images/sociale-wijkteams-icoon-waterkwartier.svg");
}

.nieuws-load-more {
  display: block;
  width: fit-content;
  margin: 4rem auto 0;
  border: 0;
  border-radius: 999rem;
  background: var(--brand-green-deep);
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-base);
  font-size: var(--cta-font-size);
  font-weight: 700;
  line-height: 1;
  padding: var(--cta-pad-y) var(--cta-pad-x);
}

.nieuws-load-more[hidden] {
  display: none;
}

.nieuws-load-more[aria-busy="true"] {
  cursor: wait;
  opacity: 0.8;
}

[data-wijk][hidden] {
  display: none !important;
}

@media (max-width: 68.75rem) {
  .nieuws-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }

  .agenda-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .nieuws-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }

  .nieuws-filter {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }

  .nieuws-filter__select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 45rem) {
  .nieuws-filter {
    gap: 1rem;
  }

  .nieuws-filter__label-full {
    display: none;
  }

  .nieuws-filter__label-short {
    display: inline;
  }

  .nieuws-filter__select {
    padding-right: 3.5rem;
    padding-left: 1.25rem;
    background-position: right 1.25rem center;
  }

  .nieuws-card-grid {
    grid-template-columns: 1fr;
  }

  .agenda-item {
    align-items: flex-start;
  }

}

@media (max-width: 38rem) {
  .agenda-item__visual,
  .agenda-item__visual--has-image {
    width: 7rem;
    height: 7rem;
    flex-basis: 7rem;
    border-radius: 1.5rem;
  }

  .agenda-item__location-image {
    display: none;
  }
}

@media (max-width: 96.6875rem) {
  .nieuws-overview .home-slider__nav {
    display: flex;
  }
}
