/* ============================================================
   DE PUT - BUURTVERENIGING ROERMOND
   Stylesheet v2 | Fresh & Playful Color Scheme
   ============================================================ */

/* Local Poppins (latin subset) */
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-600-italic.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-700-italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-800-italic.woff2') format('woff2'); font-weight: 800; font-style: italic; font-display: swap; }

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors */
  --blue:           #20749D;
  --blue-dark:      #1A6085;
  --blue-light:     #D0E8F2;
  --turquoise:      #6BC5D2;
  --turquoise-dark: #4FA5B3;
  --turquoise-light:#C8E9EE;
  --orange:         #F89D4C;
  --orange-dark:    #D6802E;
  --orange-light:   #FDE3C8;
  --rose:           #E7A8C0;
  --rose-light:     #F6DCE6;

  /* Fresh Additions - more green & warm */
  --green:          #5BAD6F;
  --green-dark:     #3D8A52;
  --green-light:    #B8DFC0;
  --green-pale:     #EBF6ED;
  --cream:          #FFF8F0;
  --warm-white:     #FFFDF9;
  --light-bg:       #F2FAF9;

  /* Neutrals */
  --dark:           #1A2B3C;
  --gray-dark:      #444444;
  --gray:           #666666;
  --gray-light:     #D0D5DD;
  --white:          #FFFFFF;

  /* Typography */
  --font-display:   'Poppins', sans-serif;
  --font-body:      'Poppins', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2.5rem;
  --space-lg: 5rem;
  --space-xl: 7rem;

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26,43,60,0.07);
  --shadow-md: 0 6px 24px rgba(26,43,60,0.12);
  --shadow-lg: 0 12px 48px rgba(26,43,60,0.16);

  --transition: 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { font-family: var(--font-body); line-height: 1.75; color: var(--gray-dark); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: var(--space-lg) 0; }
.section-sm { padding: var(--space-md) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(26,43,60,0.09);
  padding: 0.875rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.nav-logo-img {
  height: 52px;
  width: auto;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  max-width: none;
  align-self: flex-start;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.nav-logo .logo-tag {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  padding: 2px 7px;
  border-radius: 3px;
  width: fit-content;
}
.nav-logo .logo-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
}
.nav-logo .logo-u { color: var(--turquoise); }

/* Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-dark);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--blue);
  background: var(--blue-light);
}
.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-full) !important;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(248,157,76,0.35) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
  border-radius: 2px;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    gap: 0.25rem;
    border-top: 2px solid var(--light-bg);
  }
  .nav-menu.open { display: flex; }
  .nav-link { width: 100%; text-align: center; padding: 0.75rem; }
  .nav-cta { margin-left: 0 !important; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--turquoise-dark) 0%, var(--blue) 50%, var(--blue-dark) 100%);
  padding: 1.5rem 0;
}

/* Diagonal green/warm overlay on right */
.hero-diagonal {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(155deg, var(--green) 0%, var(--turquoise) 40%, rgba(248,157,76,0.4) 100%);
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.25;
  z-index: 0;
}

/* Decorative floating circles */
.hero-circle-1 {
  position: absolute;
  top: -80px;
  right: 15%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--turquoise) 0%, transparent 70%);
  opacity: 0.2;
  z-index: 0;
}
.hero-circle-2 {
  position: absolute;
  bottom: -100px;
  right: 5%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  opacity: 0.2;
  z-index: 0;
}
.hero-circle-3 {
  position: absolute;
  top: 30%;
  left: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
  opacity: 0.15;
  z-index: 0;
}

/* Photo tiles on the right side */
.hero-photos {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 36%;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  overflow: hidden;
}
.hero-photo-tile {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 3rem;
  opacity: 0.85;
  overflow: hidden;
}
.hero-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
/* Gradient overlay on photo tiles */
.hero-photos::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(to right, var(--blue-dark), transparent);
  z-index: 2;
}
/* Placeholder gradients for when no images are loaded */
.hero-photo-tile:nth-child(1) {
  background: linear-gradient(135deg, var(--turquoise-dark) 0%, var(--green-dark) 100%);
}
.hero-photo-tile:nth-child(2) {
  background: linear-gradient(135deg, var(--blue) 0%, var(--turquoise) 100%);
}

@media (max-width: 900px) {
  .hero-photos { display: none; }
}

/* Hero Content */
.hero .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 2rem;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
  /* Desktop-first: shift content off center to make space for hero-photos on the right.
     Mobile override in @media (max-width: 900px) drops the offset so content centers in viewport. */
  margin-left: calc(29vw - 230px);
}
@media (max-width: 900px) {
  .hero-content {
    margin-left: 0;
    max-width: 100%;
  }
  .hero .container { padding: 0 1.25rem; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-text {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: auto; display: block; }

/* Scroll Indicator — circular button */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  animation: scrollBounce 2s ease-in-out infinite;
  display: block;
  color: var(--turquoise);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.scroll-indicator svg {
  display: block;
  width: 32px;
  height: 32px;
}
.scroll-indicator:hover {
  opacity: 0.85;
  transform: translateX(-50%) translateY(3px);
}

@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(5px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(248,157,76,0.42);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  max-width: 100%;
  white-space: normal;
}
.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(60,123,192,0.38);
}
.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(91,173,111,0.38);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p  { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-divider {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  margin: 1rem auto 0;
  background: var(--turquoise);
}

/* ============================================================
   ACTIVITY CARDS
   ============================================================ */
.activity-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}
.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.activity-card-header {
  height: 9px;
  flex-shrink: 0;
}
.activity-card-header.cat-kinderen { background: linear-gradient(90deg, var(--rose), #F0A0C0); }
.activity-card-header.cat-jaarlijks { background: linear-gradient(90deg, var(--orange), var(--orange-light)); }
.activity-card-header.cat-sociaal { background: linear-gradient(90deg, var(--turquoise-dark), var(--turquoise)); }
.activity-card-header.cat-sport { background: linear-gradient(90deg, var(--green-dark), var(--green)); }

.activity-card-images {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}
.activity-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.activity-card-images .activity-card-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.activity-card-images .activity-card-image.is-active {
  opacity: 1;
}

/* Form privacy checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--turquoise);
}
.form-checkbox label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-dark);
  cursor: pointer;
}
.form-checkbox label a {
  color: var(--blue);
  text-decoration: underline;
}
.form-checkbox label a:hover {
  color: var(--blue-dark, var(--blue));
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transition: opacity 0.2s ease;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-image.is-fading {
  opacity: 0;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next { display: none; }
.activity-card-image-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.activity-card-image-placeholder.cat-kinderen {
  background: linear-gradient(135deg, #FFE0EE 0%, #FFB8D4 100%);
}
.activity-card-image-placeholder.cat-jaarlijks {
  background: linear-gradient(135deg, #FFF0D4 0%, #FFD894 100%);
}
.activity-card-image-placeholder.cat-sociaal {
  background: linear-gradient(135deg, #D4F0EE 0%, #A0DDD8 100%);
}
.activity-card-image-placeholder.cat-sport {
  background: linear-gradient(135deg, #D4EDD8 0%, #A0CC9C 100%);
}

.activity-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.activity-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  width: fit-content;
}
.badge-kinderen  { background: var(--rose-light);   color: #B04070; }
.badge-jaarlijks { background: var(--orange-light);  color: #9A5C00; }
.badge-sociaal   { background: var(--turquoise-light); color: #2A7A76; }
.badge-sport     { background: var(--green-light);   color: #2A6B3A; }

.activity-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}
.activity-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}
.activity-meta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.activity-card-footer { padding: 0 1.5rem 1.5rem; }
.activity-registration-closed {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  text-align: center;
  margin: 0;
  padding: 0.6rem 0;
  border-top: 1px dashed #d8d8d8;
}

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.news-card-images {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}
.news-card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.news-card-images .news-card-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.news-card-images .news-card-image.is-active {
  opacity: 1;
}
.news-card-image-placeholder {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.news-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.news-card-date {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.5rem;
}
.news-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.7rem;
  line-height: 1.35;
}
.news-card-excerpt {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
  /* Safety rail: stop an over-long excerpt from blowing up the card height. */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-readmore {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}
.news-card-readmore:hover,
.news-card-readmore:focus-visible { color: var(--blue-dark, var(--blue)); gap: 0.55rem; outline: none; }
.news-card-readmore:focus-visible { text-decoration: underline; }
.news-card-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition), color var(--transition);
}
.news-card-link:hover { gap: 0.6rem; color: var(--blue-dark); }
.news-card-link::after { content: '→'; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--rose);
  padding: 0.85rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   TIMELINE (OVER-ONS)
   Years ABOVE the line, events below
   ============================================================ */
.timeline-section { padding: var(--space-lg) 0; background: var(--white); }

/* Desktop: horizontal */
@media (min-width: 768px) {
  .timeline-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 2rem;
  }

  /* The horizontal connecting line — positioned at dot level */
  .timeline-track::after {
    content: '';
    position: absolute;
    /* top = year-label-height (2rem line-height) + margin-bottom (0.75rem) + half-dot (10px) */
    top: 66px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(to right, var(--blue), var(--turquoise), var(--green), var(--orange));
    border-radius: 2px;
    z-index: 0;
  }

  .timeline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 220px;
  }

  /* YEAR — above the line */
  .timeline-year {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    height: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;   /* gap between year and dot */
  }

  /* DOT — sits on the line */
  .timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid currentColor;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
  }

  /* Color per item */
  .timeline-item:nth-child(1) .timeline-year,
  .timeline-item:nth-child(1) .timeline-dot { color: var(--blue); }
  .timeline-item:nth-child(2) .timeline-year,
  .timeline-item:nth-child(2) .timeline-dot { color: var(--turquoise-dark); }
  .timeline-item:nth-child(3) .timeline-year,
  .timeline-item:nth-child(3) .timeline-dot { color: var(--green-dark); }
  .timeline-item:nth-child(4) .timeline-year,
  .timeline-item:nth-child(4) .timeline-dot { color: var(--orange); }

  /* Content — below the line/dot */
  .timeline-content { text-align: center; }
  .timeline-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
  }
  .timeline-text {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
  }
}

/* Mobile: vertical */
@media (max-width: 767px) {
  .timeline-track {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    padding-left: 2.5rem;
    border-left: 3px solid var(--turquoise-light);
    margin-left: 1rem;
  }
  .timeline-item { position: relative; padding-left: 1.25rem; }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--turquoise);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--turquoise);
  }
  .timeline-item:nth-child(1)::before { background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
  .timeline-item:nth-child(2)::before { background: var(--turquoise-dark); box-shadow: 0 0 0 2px var(--turquoise-dark); }
  .timeline-item:nth-child(3)::before { background: var(--green-dark); box-shadow: 0 0 0 2px var(--green-dark); }
  .timeline-item:nth-child(4)::before { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }

  .timeline-year {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 0.25rem;
  }
  .timeline-item:nth-child(1) .timeline-year { color: var(--blue); }
  .timeline-item:nth-child(2) .timeline-year { color: var(--turquoise-dark); }
  .timeline-item:nth-child(3) .timeline-year { color: var(--green-dark); }
  .timeline-item:nth-child(4) .timeline-year { color: var(--orange); }

  .timeline-dot { display: none; }
  .timeline-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.35rem;
  }
  .timeline-text { font-size: 0.9rem; color: var(--gray); line-height: 1.65; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: rgba(255,255,255,0.10);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.cta-banner::after {
  display: none;
}
.cta-waterpomp {
  position: absolute;
  left: 5%;
  bottom: 0;
  height: 80%;
  width: auto;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--turquoise-dark) 100%);
  padding: 4.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 4.5rem;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
/* Alternate page-hero colors per page */
.page-hero.hero-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--turquoise-dark) 100%);
}
.page-hero.hero-orange {
  background: linear-gradient(135deg, var(--orange) 0%, var(--rose) 100%);
}
.page-hero.hero-rose {
  background: linear-gradient(135deg, var(--rose) 0%, var(--blue) 100%);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; position: relative; z-index: 1; }
.page-hero .page-hero-sub { color: rgba(255,255,255,0.88); font-size: 1.1rem; position: relative; z-index: 1; }
.page-hero-deco {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

/* ============================================================
   ABOUT PAGE SPECIFICS
   ============================================================ */
.story-intro {
  background: var(--light-bg);
  border-left: 4px solid var(--turquoise);
  padding: 1.75rem 2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
}
.story-intro p { font-size: 1.05rem; }

.well-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.well-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  pointer-events: none;
}
.well-section h2 { color: var(--white); margin-bottom: 1rem; }
.well-section p  { color: rgba(255,255,255,0.85); }
.well-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  text-align: center;
}

/* ============================================================
   ACTIVITIES FILTER
   ============================================================ */
.activities-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-light);
  background: var(--white);
  color: var(--gray-dark);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover               { border-color: var(--blue);    color: var(--blue);          background: var(--blue-light); }
.filter-btn.active              { border-color: var(--blue);    color: var(--blue);          background: var(--blue-light); }
.filter-btn[data-filter="kinderen"].active  { border-color: var(--rose);    color: #B04070;              background: var(--rose-light); }
.filter-btn[data-filter="jaarlijks"].active { border-color: var(--orange);  color: var(--orange-dark);   background: var(--orange-light); }
.filter-btn[data-filter="sociaal"].active   { border-color: var(--turquoise-dark); color: var(--turquoise-dark); background: var(--turquoise-light); }
.filter-btn[data-filter="sport"].active     { border-color: var(--green);   color: var(--green-dark);    background: var(--green-pale); }

.activity-card[data-cat] { transition: opacity 0.3s, transform 0.3s; }
.activity-card.hidden-card { display: none; }

/* ============================================================
   MEMBERSHIP FORM
   ============================================================ */
.membership-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .membership-layout { grid-template-columns: 1fr; }
  /* Allow grid children to honor the track width instead of their intrinsic content min-width,
     which prevents the form from pushing the aside wider than the viewport on narrow screens. */
  .membership-layout > * { min-width: 0; }
}

.membership-benefits {
  background: var(--light-bg);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.benefits-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--turquoise-light);
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.benefit-item:last-child { border-bottom: none; }
.benefit-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.4; }
.benefit-text h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--dark); }
.benefit-text p  { font-size: 0.85rem; color: var(--gray); line-height: 1.5; }

.contribution-box {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}
.contribution-box h3,
.contribution-box h4 { color: var(--white); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; opacity: 0.9; }
.contribution-box .amount { color: var(--white); font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.contribution-box .amount-note { color: rgba(255,255,255,0.8); font-size: 0.8rem; margin-top: 0.25rem; }

/* Form Styles */
.form-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.05);
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.form-subtitle { font-size: 0.9rem; color: var(--gray); margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.form-label .req { color: var(--rose); }
.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(60,123,192,0.14);
}
.form-control.is-error { border-color: var(--rose); }
.form-error-msg {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--rose);
  margin-top: 0.35rem;
  display: none;
}
.form-error-msg.visible { display: block; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-privacy {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-dark);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.form-privacy a { color: var(--blue); text-decoration: underline; }

.form-success {
  display: none;
  background: var(--green-pale);
  border: 2px solid var(--green);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}
.form-success.visible { display: block; }
.form-success h3 { color: var(--green-dark); margin-bottom: 0.5rem; }
.form-success p  { color: var(--gray-dark); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

/* ============================================================
   BESTUUR CARDS
   Decorative initials-badge placeholder until real portraits are added.
   Replace .bestuur-initials with an <img class="bestuur-photo"> when available.
   ============================================================ */
.bestuur-group-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.bestuur-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.bestuur-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bestuur-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}
.bestuur-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.25rem;
}
.bestuur-role {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0;
}
.contact-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }
.contact-card a { color: var(--blue); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--blue);
  color: var(--white);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}
.footer > * { position: relative; z-index: 1; }
img.footer-badge-275 {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 95px;
  height: auto;
  transform: rotate(8deg);
  z-index: 2;
  pointer-events: none;
}
/* Hide decorative badge on narrow viewports (overlaps content below ~600px). */
@media (max-width: 600px) {
  img.footer-badge-275 { display: none; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
/* Tablet: three columns stay balanced. Mobile (<768): single centered column. */
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-grid .footer-contact-item { justify-content: center; }
}
.footer-logo .logo-tag { background: var(--blue); }
.footer-logo .logo-name { color: var(--white); }
.footer-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-top: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link {
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--turquoise); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.footer-contact-item a { color: var(--turquoise); }
.footer-contact-item a:hover { text-decoration: underline; }
.footer-bottom {
  background-color: var(--blue-dark);
  margin: 3rem calc(50% - 50vw) 0;
  padding: 1.5rem max(1.5rem, calc(50vw - 570px));
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { color: rgba(255,255,255,0.38); font-size: 0.8rem; }
.footer-social { display: flex; gap: 0.5rem; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-btn:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   BACKGROUNDS / UTILITIES
   ============================================================ */
.bg-cream    { background: var(--cream); }
.bg-light    { background: var(--light-bg); }
.bg-green-pale { background: var(--green-pale); }
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-blue   { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-turquoise { color: var(--turquoise-dark); }
.text-green  { color: var(--green-dark); }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================================
   RESPONSIVE TWO-COLUMN GRID UTILITY
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.two-col-aside {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .two-col,
  .two-col-aside,
  .two-col-form { grid-template-columns: 1fr; gap: 2rem; }
}

/* Homepage intro photo — exact top/bottom alignment with text column.
   Image is absolutely positioned so it doesn't drive the grid row height;
   the row height is determined by the text column, and the image fills it. */
#intro .two-col { align-items: stretch; }
#intro .two-col > div:first-child > .section-tag { display: block; }
#intro .intro-photo-col {
  position: relative;
  min-height: 0;
}
#intro .intro-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}
@media (max-width: 768px) {
  #intro .intro-photo-col { position: static; }
  #intro .intro-photo {
    position: static;
    transform: none;
    height: auto;
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .hero { min-height: 75vh; padding: 3rem 0 7rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-banner { padding: 3.5rem 0; }
  .well-section { padding: 3.5rem 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Scroll-triggered card fade-in
   .will-fade = waiting to enter viewport
   .did-fade  = entered — transition to fully visible
   Without JS: no class = normal display (always visible) */
.will-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.did-fade {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ============================================================
   SCROLL-TO-TOP BUTTON (desktop only)
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 900;
  color: var(--turquoise);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.scroll-top-btn svg {
  display: block;
  width: 32px;
  height: 32px;
}
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  transform: translateY(-3px);
}
.scroll-top-btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Hidden on mobile — desktop only */
@media (max-width: 768px) {
  .scroll-top-btn {
    display: none;
  }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: rgba(255,255,255,0.92);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  z-index: 950;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  flex: 1 1 auto;
  color: rgba(255,255,255,0.92);
}
.cookie-banner a {
  color: var(--turquoise, #6BC5D2);
  text-decoration: underline;
}
.cookie-banner a:hover {
  color: #fff;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  align-items: center;
}
.cookie-accept-btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}
.cookie-accept-btn:hover {
  background: var(--orange-dark, #D6802E);
  transform: translateY(-1px);
}
.cookie-decline-btn {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cookie-decline-btn:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.5);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-accept-btn {
    flex: 1;
    text-align: center;
  }
}

/* ============================================================
   AANMELD MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
}
.modal-overlay[hidden] { display: none; }

.modal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 2rem 1.75rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.22s ease both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: var(--light-bg);
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: var(--blue-light); color: var(--blue); }
.modal-close:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.modal-title {
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--dark);
  margin: 0.25rem 0 0.25rem;
  padding-right: 2.5rem;
}
.modal-subtitle {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.modal-form-error {
  background: #fff0f0;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #b91c1c;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .modal-card {
    padding: 1.5rem 1.25rem 1.5rem;
    max-height: 95vh;
    border-radius: var(--radius-sm);
  }
}

/* News article modal — wider than signup modal, with hero image at the top. */
.news-modal-card {
  max-width: 720px;
  padding: 0;
  overflow: hidden;
}
.news-modal-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: var(--light-bg);
}
.news-modal-content {
  padding: 1.75rem 2rem 2rem;
}
.news-modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--dark);
  margin: 0.4rem 0 1.25rem;
  line-height: 1.3;
  padding-right: 2rem;
}
.news-modal-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-dark);
}
.news-modal-body a { color: var(--blue); text-decoration: underline; }
.news-modal-card .modal-close {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  color: var(--dark);
  z-index: 2;
}
@media (max-width: 600px) {
  .news-modal-image { height: 180px; }
  .news-modal-content { padding: 1.25rem 1.25rem 1.5rem; }
  .news-modal-title { font-size: 1.2rem; }
}
