.hg-stories-overview {
  --hg-navy: #173f66;
  --hg-ocean: #2d6483;
  --hg-sea: #4f968d;
  --hg-mist: #eef7f6;
  --hg-foam: #f8fbfb;
  --hg-ink: #18354a;
  --hg-muted: #607384;
  --hg-white: #ffffff;
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  margin: clamp(28px, 5vw, 56px) 0;
}


.hg-stories-notice {
  margin: 0;
  color: var(--hg-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/*
 * Desktop: Gutenberg/thema's zetten pagina-inhoud vaak op ~700px.
 * Het verhalenoverzicht mag op grotere schermen juist breder worden,
 * terwijl de gewone paginatitel netjes binnen de thema-kolom blijft.
 */
@media (min-width: 900px) {
  /*
   * Houd exact dezelfde afmetingen als v1.1.0, maar centreer iedere
   * golfsectie vanuit de gewone (smalle) WordPress-contentkolom.
   * Zo ontstaat geen viewport-brede wrapper en dus ook geen extra
   * horizontale ruimte of opgeschaald gevoel op kleinere laptops.
   */
  .hg-stories-overview {
    width: 100%;
    max-width: 100%;
  }

  .hg-stories-notice {
    position: relative;
    left: 50%;
    width: min(1120px, calc(100vw - 64px));
    max-width: none;
    transform: translateX(-50%);
    padding: 0 4px;
  }

  .hg-wave-section {
    position: relative;
    left: 50%;
    width: min(1120px, calc(100vw - 64px));
    max-width: none;
    transform: translateX(-50%);
  }
}


.hg-stories-overview *,
.hg-stories-overview *::before,
.hg-stories-overview *::after {
  box-sizing: border-box;
}

.hg-wave-section {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  isolation: isolate;
}

.hg-wave-section::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -250px;
  border: 1px solid currentColor;
  border-radius: 46% 54% 52% 48%;
  opacity: .08;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: -1;
}

.hg-wave-section--dark {
  color: var(--hg-white);
  background: linear-gradient(135deg, var(--hg-navy) 0%, #1d5571 100%);
}

.hg-wave-section--light {
  color: var(--hg-ink);
  background: linear-gradient(145deg, var(--hg-mist) 0%, #f7fbfa 100%);
  border: 1px solid rgba(23, 63, 102, .08);
}

.hg-wave-section__inner {
  padding: clamp(28px, 5vw, 58px);
}

.hg-wave-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 280px);
  gap: 28px;
  align-items: center;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.hg-wave-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .78;
}

.hg-wave-title {
  margin: 0;
  color: inherit !important;
  font-size: clamp(30px, 5vw, 48px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.025em;
}

.hg-wave-description {
  max-width: 720px;
  margin-top: 14px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  opacity: .9;
}

.hg-wave-description p {
  margin: 0;
}

.hg-wave-mark {
  color: var(--hg-sea);
  opacity: .95;
}

.hg-wave-section--dark .hg-wave-mark {
  color: #82c4b8;
}

.hg-wave-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.hg-wave-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
}

.hg-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hg-story-card {
  display: flex;
  min-width: 0;
  border-radius: 22px;
  background: var(--hg-white);
  color: var(--hg-ink);
  border: 1px solid rgba(23, 63, 102, .08);
  box-shadow: 0 12px 34px rgba(12, 47, 70, .10);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hg-story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(12, 47, 70, .15);
}

.hg-story-card__body {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(22px, 3.4vw, 32px);
}

.hg-story-card__title {
  margin: 0 0 12px !important;
  color: var(--hg-navy) !important;
  font-size: clamp(22px, 2.8vw, 29px) !important;
  line-height: 1.2 !important;
}

.hg-story-card__title a {
  color: inherit !important;
  text-decoration: none !important;
}

.hg-story-card__title a:hover,
.hg-story-card__title a:focus-visible {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px;
}

.hg-story-card__excerpt {
  margin: 0 0 22px;
  color: var(--hg-muted);
  font-size: 16px;
  line-height: 1.65;
}

.hg-story-card__link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  color: var(--hg-ocean) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.hg-story-card__link span {
  transition: transform .18s ease;
}

.hg-story-card__link:hover span,
.hg-story-card__link:focus-visible span {
  transform: translateX(4px);
}

.hg-vo-adminnotice {
  padding: 14px 16px;
  border-left: 4px solid var(--hg-ocean, #2d6483);
  background: #f7f7f7;
}


@media (min-width: 900px) {
  .hg-wave-section__inner {
    padding: 54px 58px 58px;
  }

  .hg-wave-header {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    margin-bottom: 40px;
  }

  .hg-wave-header__text {
    max-width: 620px;
  }

  .hg-wave-title {
    font-size: 48px !important;
  }

  .hg-wave-description {
    max-width: 590px;
    font-size: 19px;
  }

  .hg-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .hg-story-card__body {
    padding: 30px 32px 32px;
  }

  .hg-story-card__title {
    font-size: 29px !important;
  }
}

@media (max-width: 760px) {
  .hg-stories-overview {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .hg-stories-notice {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
    padding: 0;
  }

  .hg-wave-section {
    border-radius: 22px;
  }

  .hg-wave-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hg-wave-mark {
    width: 150px;
  }

  .hg-story-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-story-card,
  .hg-story-card__link span {
    transition: none;
  }
}

/* =========================================================
   Horizontaal bladeren door verhalen — v1.1.6
   Alleen slidergedrag; bestaande vormgeving blijft behouden.
   ========================================================= */

.hg-story-slider {
  min-width: 0;
}

.hg-story-slider-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: -6px 0 14px;
}

.hg-story-slider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(23, 63, 102, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--hg-navy);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .18s ease, background-color .18s ease, border-color .18s ease;
}

.hg-wave-section--dark .hg-story-slider-button {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
}

.hg-story-slider-button:hover {
  background: #ffffff;
  border-color: rgba(23, 63, 102, .38);
}

.hg-wave-section--dark .hg-story-slider-button:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .45);
}

.hg-story-slider-button:focus-visible {
  outline: 2px solid #82c4b8;
  outline-offset: 2px;
}

.hg-story-slider-button:disabled {
  opacity: .32;
  cursor: default;
}

/* Overschrijft uitsluitend de grid-layout: de kaarten zelf blijven identiek. */
.hg-story-grid {
  display: flex;
  grid-template-columns: none;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 100, 131, .35) transparent;
}

.hg-story-grid::-webkit-scrollbar {
  height: 6px;
}

.hg-story-grid::-webkit-scrollbar-track {
  background: transparent;
}

.hg-story-grid::-webkit-scrollbar-thumb {
  background: rgba(45, 100, 131, .28);
  border-radius: 999px;
}

.hg-wave-section--dark .hg-story-grid {
  scrollbar-color: rgba(255, 255, 255, .32) transparent;
}

.hg-wave-section--dark .hg-story-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .30);
}

.hg-story-grid > .hg-story-card {
  flex: 0 0 calc((100% - 22px) / 2);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

@media (max-width: 760px) {
  .hg-story-slider-controls {
    margin-top: 0;
  }

  .hg-story-grid {
    gap: 14px;
  }

  .hg-story-grid > .hg-story-card {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-story-grid {
    scroll-behavior: auto;
  }
}
