/*
Theme Name: TOG Eerbeek
Theme URI: https://www.togeerbeek.nl
Description: Modern thema voor Vogelvereniging Tot Ons Genoegen Eerbeek
Author: G.M. Hellinga
Version: 1.5
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: tog-eerbeek
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --green-dark:   #1e4620;
  --green-mid:    #2d6a31;
  --green-light:  #4a9450;
  --green-pale:   #e8f4e8;
  --amber:        #d4870a;
  --amber-light:  #f0a820;
  --bg:           #f6f8f4;
  --white:        #ffffff;
  --text:         #1f2a1f;
  --text-light:   #5a6b5a;
  --border:       #d0deca;
  --shadow-sm:    0 1px 4px rgba(30,70,32,.10);
  --shadow-md:    0 4px 16px rgba(30,70,32,.13);
  --shadow-lg:    0 8px 32px rgba(30,70,32,.16);
  --radius:       8px;
  --radius-lg:    14px;
  --transition:   0.2s ease;
  --max-width:    1160px;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Segoe UI', Arial, sans-serif;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; height: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.site-content { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--green-mid);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--amber); }

ul, ol { padding-left: 1.4em; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--amber);
  padding: .7em 1.2em;
  margin: 1.5em 0;
  background: var(--green-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2rem 0;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3rem 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: .6em 1.4em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--green-mid);
  border-color: var(--green-mid);
}
.btn-outline:hover {
  background: var(--green-mid);
  color: var(--white);
}
.btn-amber {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-amber:hover {
  background: #b87009;
  border-color: #b87009;
  color: var(--white);
}

/* ============================================================
   Mededelingen ticker-balk
   ============================================================ */
.mededeling-balk {
  background: var(--amber);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0;
  height: 36px;
  overflow: hidden;
  font-size: .84rem;
  font-weight: 600;
  position: relative;
  z-index: 101;
}

.mededeling-label {
  background: rgba(0,0,0,.18);
  padding: 0 1rem;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: .8rem;
  letter-spacing: .04em;
}

.mededeling-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.mededeling-track {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: ticker-scroll 18s linear infinite;
  gap: 3rem;
}
.mededeling-track.paused { animation-play-state: paused; }
.mededeling-track:hover  { animation-play-state: paused; }

.mededeling-item { flex-shrink: 0; }
.mededeling-item a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.mededeling-item a:hover { color: rgba(255,255,255,.8); }

.mededeling-pause {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0 .8rem;
  font-size: 1rem;
  height: 100%;
  opacity: .7;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.mededeling-pause:hover { opacity: 1; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Alleen tonen als er items zijn */
.mededeling-balk:empty { display: none; }

/* ============================================================
   Header & Navigation
   ============================================================ */
.site-header {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .85rem;
  padding-bottom: .85rem;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.site-branding:hover .site-title { color: var(--amber-light); }

/* Bestaand logo-plaatje wit maken op donkere header */
.site-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}
.site-branding:hover .site-logo-img { filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg); }

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.site-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  transition: color var(--transition);
}
.site-tagline {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  font-style: italic;
}

/* Nav */
.main-nav { display: flex; align-items: center; }

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  gap: .15rem;
}

.nav-menu li a {
  display: block;
  padding: .5em .85em;
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
  background: var(--amber);
  color: var(--white);
}

/* ── Dropdown submenus ── */
.nav-menu li {
  position: relative;
}
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--green-dark);
  border-top: 3px solid var(--amber);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  list-style: none;
  padding: .4rem 0;
  z-index: 200;
  flex-direction: column;
  gap: 0;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  display: flex;
}
.nav-menu .sub-menu li a {
  padding: .55em 1.1em;
  border-radius: 0;
  font-size: .88rem;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-menu .sub-menu li:last-child a {
  border-bottom: none;
}
/* Nested (3rd level) */
.nav-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-top: none;
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  cursor: pointer;
  padding: .4em .6em;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
}

/* ============================================================
   Hero / Page Banner
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: .8rem;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}
.page-hero .hero-meta span { display: flex; align-items: center; gap: .3em; }


/* Inner page banner: zelfde hoogte als home hero */
.page-hero-mini { min-height: 217px; }
.page-hero-mini .container { padding-top: 1rem; padding-bottom: 4rem; position: relative; z-index: 10; }
.page-hero-mini .hero-text { max-width: calc(100% - clamp(120px, 18vw, 240px) - 2rem); }

/* Home hero */
.home-hero {
  background:
    linear-gradient(to bottom,
      rgba(13,46,15,.96)   0%,
      rgba(25,65,28,.90)  55%,
      rgba(45,106,49,.70) 80%,
      rgba(60,130,55,.50) 100%
    );
  color: var(--white);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Hero binnenste: tekst links, vogels rechts */
.home-hero .container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 1.8rem;
  text-align: left;
}
.hero-text { flex: 1; }
.home-hero h1 { color: var(--white); margin-bottom: .4rem; }
.home-hero p  { font-size: 1rem; color: rgba(255,255,255,.85); max-width: 520px; margin: 0 0 1.2rem; }
.home-hero .hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-btn-light { border-color: rgba(255,255,255,.6) !important; color: #fff !important; }
.hero-btn-light:hover { background: rgba(255,255,255,.15) !important; color: #fff !important; }

/* Vogels afbeelding: komen van links, stoppen rechts in het gras */
.hero-birds-img {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: clamp(180px, 22vw, 285px);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.4));
  animation: bird-slide 6s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}
@keyframes bird-slide {
  0%   { transform: translateX(-300px); }
  100% { transform: translateX(var(--bird-end-x, 60vw)); }
}

/* Grasstrook met verspreide SVG-planten */
.hero-plants {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 3;
  pointer-events: none;
  /* Lichte horizon-strook achter het gras: geeft contrast */
  background: linear-gradient(
    to bottom,
    transparent                    0%,
    rgba(180, 220, 160, 0.12)     40%,
    rgba(140, 200, 120, 0.28)     70%,
    rgba(90,  160,  80, 0.45)    100%
  );
}

.hero-plants .plant {
  position: absolute;
  bottom: 0;
  height: auto;
  /* Donkergroen maar met voldoende contrast tegen de horizon */
  filter: brightness(0)
          invert(18%) sepia(60%) saturate(600%) hue-rotate(100deg) brightness(0.65);
}

/* Donkere gras-vloer (kleine strook onderaan) */
.grass-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  background: var(--green-dark);
  z-index: 0;
}

/* Pinned carousel */
.pinned-carousel { position: relative; min-width: 0; width: 100%; }
.pinned-slide { display: none !important; }
.pinned-slide.is-active { display: grid !important; }
.pinned-slide.fade-out { animation: pinFadeOut .4s ease forwards; }
.pinned-slide.fade-in  { animation: pinFadeIn  .4s ease forwards; }
@keyframes pinFadeOut { from { opacity:1; } to { opacity:0; } }
@keyframes pinFadeIn  { from { opacity:0; } to { opacity:1; } }

.pinned-dots {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: .8rem;
}
.pinned-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}
.pinned-dot.is-active { background: var(--amber); }

/* Vastgezet label */
.pinned-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--amber);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  padding: .3em .9em;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: -1px;
  margin-left: var(--radius-lg);   /* uitlijnen met de afgeronde hoek */
  letter-spacing: .03em;
}

/* Vastgezet featured bericht */
.post-pinned {
  border: 2px solid var(--amber);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  margin-bottom: 2.5rem;
}

/* Fallback thumb voor hero */
.hero-thumb-fallback {
  background: var(--green-pale);
  font-size: 5rem;
}

/* ============================================================
   Cards (post previews)
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }

.card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-mid);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .2em .7em;
  border-radius: 999px;
  margin-bottom: .7rem;
}
.card-category.cat-vergadering { background: #e8f0ff; color: #2a4a9f; }
.card-category.cat-show        { background: #fff4e0; color: #9a5700; }
.card-category.cat-nieuws      { background: var(--green-pale); color: var(--green-mid); }

.card-title {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.card-title a { color: var(--green-dark); }
.card-title a:hover { color: var(--amber); }

.card-meta {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
}

.card-excerpt {
  font-size: .93rem;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
}

/* ============================================================
   Posts grid / archive
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

/* Featured post (first on homepage) */
.post-featured {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 2.5rem;
  transition: box-shadow var(--transition);
}
.post-featured:hover { box-shadow: var(--shadow-md); }

.post-featured .card-thumb {
  aspect-ratio: unset;
  min-height: 260px;
  height: 260px;
}
.post-featured .card-body {
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-featured .card-title { font-size: 1.4rem; }
.post-featured .card-excerpt { -webkit-line-clamp: 5; }

/* ============================================================
   Citaat widget
   ============================================================ */
.tog-citaat { padding: .2rem 0; }

.tog-citaat__tekst {
  border-left: 3px solid var(--amber);
  padding: .5em 1em;
  margin: 0 0 .6rem;
  background: var(--green-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: .93rem;
  color: var(--text);
  line-height: 1.6;
}

.tog-citaat__auteur {
  display: block;
  text-align: right;
  font-size: .82rem;
  color: var(--text-light);
  font-style: normal;
}

/* Instuurformulier */
.tog-citaat-form-wrap { max-width: 640px; }
.tog-citaat-form .btn { margin-top: .5rem; }

/* ============================================================
   Agenda kaarten
   ============================================================ */
.agenda-lijst { display: flex; flex-direction: column; gap: 1rem; }

.agenda-kaart {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--border);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.agenda-kaart:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }

/* Eerstvolgende vergadering */
.agenda-kaart--next {
  border-left-color: var(--amber);
  box-shadow: var(--shadow-md);
}
.agenda-next-badge {
  position: absolute;
  top: -1px; right: 1.2rem;
  background: var(--amber);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .2em .7em;
  border-radius: 0 0 var(--radius) var(--radius);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Voorbij */
.agenda-kaart--verleden { opacity: .7; border-left-color: var(--border); }
.agenda-kaart--verleden:hover { opacity: 1; }

/* Datum blok */
.agenda-datum-blok {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
  padding: .5rem .3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  min-width: 64px;
}
.agenda-kaart--next .agenda-datum-blok { background: var(--amber); }
.agenda-kaart--verleden .agenda-datum-blok { background: var(--text-light); }

.agenda-dag   { font-size: 1.8rem; font-weight: 700; font-family: var(--font-head); }
.agenda-maand { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.agenda-jaar  { font-size: .68rem; opacity: .75; }

/* Info */
.agenda-titel { font-size: 1.05rem; margin-bottom: .3rem; }
.agenda-titel a { color: var(--green-dark); }
.agenda-titel a:hover { color: var(--amber); }

.agenda-meta {
  display: flex; flex-wrap: wrap; gap: .3rem 1rem;
  font-size: .83rem; color: var(--text-light);
  margin-bottom: .4rem;
}
.agenda-excerpt { font-size: .88rem; color: var(--text-light); margin: 0; }

/* Voorbije lijst: compacter */
.agenda-lijst--verleden .agenda-kaart { padding: .8rem 1.2rem; }
.agenda-lijst--verleden .agenda-datum-blok { min-width: 56px; }
.agenda-lijst--verleden .agenda-dag { font-size: 1.4rem; }

@media (max-width: 600px) {
  .agenda-kaart { grid-template-columns: 64px 1fr; }
  .agenda-actie { grid-column: 2; }
}

/* ============================================================
   Single post
   ============================================================ */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.post-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
}

.post-content h2,
.post-content h3 { margin: 1.6em 0 .6em; }
.post-content h2:first-child,
.post-content h3:first-child { margin-top: 0; }

.post-content ul,
.post-content ol { margin-bottom: 1.1em; }
.post-content li { margin-bottom: .3em; }

.post-content img {
  border-radius: var(--radius);
  margin: 1.5em 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: .93rem;
}
.post-content table th {
  background: var(--green-dark);
  color: var(--white);
  padding: .6em .9em;
  text-align: left;
}
.post-content table td {
  padding: .55em .9em;
  border-bottom: 1px solid var(--border);
}
.post-content table tr:nth-child(even) td { background: var(--green-pale); }

/* Prize table (show results) */
.prijzen-table th { background: var(--amber); }
.prijzen-table td:first-child { font-weight: 700; }

/* Post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.post-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}
.post-nav a:hover { border-color: var(--green-mid); background: var(--green-pale); color: var(--green-dark); }
.post-nav .nav-next { justify-content: flex-end; text-align: right; }

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.home .sidebar { margin-top: 0; }

.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.widget-title {
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  padding: .8rem 1.2rem;
  margin: 0;
}

.widget-body { padding: 1.1rem 1.2rem; }

.widget-body ul {
  list-style: none;
  padding: 0;
}
.widget-body ul li {
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.widget-body ul li:last-child { border-bottom: none; }

/* Agenda widget */
.agenda-item {
  display: flex;
  gap: .9rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.agenda-item:last-child { border-bottom: none; }
.agenda-date {
  background: var(--green-mid);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
  padding: .3em .6em;
  min-width: 3.2rem;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
  flex-shrink: 0;
}
.agenda-date .day { font-size: 1.3em; display: block; }
.agenda-info { font-size: .88rem; }
.agenda-info strong { display: block; color: var(--text); }
.agenda-info span { color: var(--text-light); }

.agenda-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.agenda-table th { background: var(--green-dark); color: #fff; font-weight: 700; padding: .6rem 1rem; text-align: left; }
.agenda-table td { padding: .6rem 1rem; border-bottom: 1px solid var(--border); }
.agenda-table tr:last-child td { border-bottom: none; }
.agenda-table a { color: var(--green-dark); font-weight: 600; }
.agenda-table a:hover { text-decoration: underline; }

/* ============================================================
   Page content (static pages)
   ============================================================ */
.page-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.page-content-header {
  background: var(--green-dark);
  color: var(--white);
  padding: .7rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-content-body {
  padding: 2rem 1.5rem;
}
.page-content-body h2,
.page-content-body h3,
.page-content-body h4 {
  margin-top: 1.6rem;
  margin-bottom: .5rem;
}
.page-content-body p,
.page-content-body ul,
.page-content-body ol {
  margin-bottom: 1rem;
}
.admin-edit-btn a,
.page-edit-link a {
  font-size: .8rem;
  background: var(--green-dark);
  color: var(--white) !important;
  padding: .3em .8em;
  border-radius: 4px;
  text-decoration: none;
  opacity: .75;
  display: inline-block;
}
.admin-edit-btn a:hover,
.page-edit-link a:hover { opacity: 1; }
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* Bestuur table */
.bestuur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.3rem;
  margin-top: 1.5rem;
}
.bestuur-card {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 1.2rem;
  border-left: 4px solid var(--green-mid);
}
.bestuur-card .functie {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-mid);
  font-weight: 700;
}
.bestuur-card .naam { font-size: 1.05rem; font-weight: 700; margin: .2rem 0; }
.bestuur-card .contact { font-size: .85rem; color: var(--text-light); }

/* ============================================================
   Section headings
   ============================================================ */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
}
.section-heading h2 { margin: 0; }
.section-heading a { font-size: .88rem; font-weight: 600; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-widget h4 {
  color: var(--amber-light);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: .45rem; }
.footer-widget ul li a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-widget ul li a:hover { color: var(--amber-light); }
.footer-widget p { color: rgba(255,255,255,.65); font-size: .9rem; }

.footer-col h4 {
  color: var(--amber-light);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .9rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--amber-light); }

.footer-login-link {
  font-size: .85rem;
  opacity: .25;
  text-decoration: none;
  transition: opacity .2s;
}
.footer-login-link:hover { opacity: .7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.2rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

.footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .45;
  transition: opacity var(--transition);
}
.footer-logo:hover { opacity: .8; }

/* ============================================================
   Foto tegels
   ============================================================ */
.foto-tegel {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--green-pale);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.foto-tegel:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.foto-tegel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-tegel-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; }
.foto-tegel-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1.5rem 1rem .8rem;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .7rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.pagination a:hover { background: var(--green-mid); color: var(--white); border-color: var(--green-mid); }
.pagination .current { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .6em .9em;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,106,49,.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* Search form */
.search-form { display: flex; gap: .5rem; }
.search-form input { flex: 1; }
.search-form button {
  padding: .6em 1.1em;
  background: var(--amber);
  border: none;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.search-form button:hover { background: #b87009; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-top: .5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--amber-light); }
.breadcrumb .sep { opacity: .5; }

/* ============================================================
   Contact Form 7
   ============================================================ */
.cf7-veld { margin-bottom: 1.4rem; }
.cf7-veld label {
  display: block;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--text);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 .quiz input {
  width: 100%;
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus,
.wpcf7 .quiz input:focus {
  outline: none;
  border-color: var(--green-dark);
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input[type="submit"] {
  background: var(--green-dark);
  color: var(--white);
  border: none;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.wpcf7 input[type="submit"]:hover { background: var(--green-mid); }
.wpcf7 .wpcf7-checkbox label { font-weight: 400; display: inline; }
.wpcf7 .wpcf7-response-output { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius); }

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.badge {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}
.badge-green  { background: var(--green-pale); color: var(--green-mid); }
.badge-amber  { background: #fff4e0; color: #9a5700; }
.badge-blue   { background: #e8f0ff; color: #2a4a9f; }

.alert {
  padding: .9em 1.2em;
  border-radius: var(--radius);
  margin-bottom: 1.2em;
  font-size: .95rem;
}
.alert-info { background: #e8f0ff; color: #1a3a8f; border-left: 4px solid #4a7adf; }
.alert-success { background: var(--green-pale); color: var(--green-dark); border-left: 4px solid var(--green-mid); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .post-layout,
  .page-layout { grid-template-columns: 1fr; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .card-thumb { min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .site-tagline { display: none; }
}

@media (max-width: 680px) {
  /* Titel iets kleiner op kleine schermen */
  .site-title { font-size: 1.1rem; }

  /* Hero: tekst links, vogels rechts — rij-layout blijft */
  .home-hero .container {
    flex-direction: row;
    align-items: flex-end;
    text-align: left;
    padding-top: 1.6rem;
    padding-bottom: 1.4rem;
    gap: .8rem;
  }
  .home-hero h1 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .home-hero p  { font-size: .88rem; margin-bottom: .9rem; }
  .home-hero .hero-buttons { gap: .5rem; }
  .home-hero .hero-buttons .btn {
    font-size: .8rem;
    padding: .4em .9em;
  }

  .nav-toggle { display: flex; align-items: center; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: .6rem;
    box-shadow: var(--shadow-lg);
    gap: .2rem;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li a { padding: .7em 1em; }

  /* Mobile: submenus inline (accordion-achtig) */
  .nav-menu .sub-menu {
    display: none;
    position: static;
    border-top: none;
    border-left: 3px solid var(--amber);
    border-radius: 0;
    box-shadow: none;
    margin-left: 1rem;
    padding: .2rem 0;
    background: rgba(0,0,0,.15);
    min-width: unset;
  }
  .nav-menu li:hover > .sub-menu,
  .nav-menu li:focus-within > .sub-menu {
    display: flex;
  }
  .nav-menu .sub-menu .sub-menu {
    border-left: 3px solid rgba(212,135,10,.5);
    left: 0;
  }

  .site-header { position: relative; }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; }
  .section { padding: 2rem 0; }
}

/* ============================================================
   WordPress core classes
   ============================================================ */
.alignleft  { float: left;  margin: .5em 1.5em .5em 0; }
.alignright { float: right; margin: .5em 0 .5em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--text-light); text-align: center; margin-top: .3em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
