/*
Theme Name: Erasmus+ SOML
Theme URI: https://www.soml.nl/
Author: SOML — Erasmus+ team
Author URI: https://www.soml.nl/
Description: Erasmus+ SOML — het Erasmus+ platform van Stichting Onderwijs Midden-Limburg. Toont de programmalijnen (KA1 PO-VO, KA220-VET en POVO/KA2-partnerschappen), de projecten en hun resultaten, in de huisstijl van soml.nl. Bevat een Custom Post Type "Project" zodat projecten in het beheer te onderhouden zijn.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soml-erasmus
*/

/* ==========================================================================
   SOML huisstijl — kleuren afgeleid van soml.nl
   ========================================================================== */
:root {
  --soml-blue: #0069b4;
  --soml-blue-dark: #004f8a;
  --soml-blue-light: #d9eefc;
  --soml-green: #008d68;
  --soml-lime: #c8d400;
  --soml-lime-2: #86bc25;
  --soml-red: #911111;
  --ink: #1f2933;
  --ink-soft: #3e4c59;
  --muted: #616e7c;
  --line: #cbd2d9;
  --bg: #f5f7fa;
  --bg-soft: #edf2f7;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(31,41,51,.06), 0 8px 24px rgba(31,41,51,.07);
  --shadow-lg: 0 12px 40px rgba(0,105,180,.16);
  --maxw: 1120px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--soml-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700;
  font-size: .98rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--soml-blue); color: #fff; }
.btn-primary:hover { background: var(--soml-blue-dark); color: #fff; box-shadow: var(--shadow-lg); }
.btn-lime { background: var(--soml-lime); color: var(--ink); }
.btn-lime:hover { background: var(--soml-lime-2); color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-outline { background: #fff; color: var(--soml-blue); border-color: var(--soml-blue); }
.btn-outline:hover { background: var(--soml-blue); color: #fff; }
.btn-insta { background: linear-gradient(45deg, #f09433, #e6683c 30%, #dc2743 60%, #bc1888 100%); color: #fff; }
.btn-insta:hover { color: #fff; filter: brightness(1.08); }

/* Instagram-CTA op de projectpagina */
.insta-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: linear-gradient(135deg, #fdf2f8, #fef6f0); border: 1px solid #f6d9e6; }
.insta-cta__icon { font-size: 1.8rem; }
.insta-cta > div { flex: 1; min-width: 200px; }
.insta-cta strong { color: var(--ink); }
.insta-cta p { margin: .15rem 0 0; font-size: .9rem; color: var(--muted); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand__sub { display: block; font-size: .72rem; font-weight: 600; color: var(--soml-blue); letter-spacing: .04em; text-transform: uppercase; }
.brand__name { font-size: 1.02rem; line-height: 1.1; }
.main-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; padding: .5rem 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.main-nav a:hover { color: var(--soml-blue); border-bottom-color: var(--soml-blue); text-decoration: none; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .is-current > a { color: var(--soml-green); border-bottom-color: var(--soml-green); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Taalwisselaar */
.lang-switch { display: flex; gap: .15rem; align-items: center; margin-left: .5rem; background: var(--bg-soft); border-radius: 999px; padding: .2rem; }
.lang-switch .lang { font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); padding: .3rem .6rem; border-radius: 999px; line-height: 1; }
.lang-switch .lang:hover { color: var(--soml-blue); text-decoration: none; }
.lang-switch .lang.is-active, .lang-switch .lang.current-lang { background: var(--soml-blue); color: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background-color: var(--soml-blue-dark);
  background-size: cover; background-position: center;
}
/* Blauwe overlay (ook de basis-gradient als er géén foto is) */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--soml-blue) 0%, var(--soml-blue-dark) 60%, #003a66 100%);
}
.hero--image::before {
  background: linear-gradient(120deg, rgba(0,79,138,.93) 0%, rgba(0,79,138,.80) 45%, rgba(0,58,102,.72) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(200,212,0,.18), transparent 60%),
    radial-gradient(700px 500px at 5% 120%, rgba(0,141,104,.22), transparent 60%);
}
.hero__inner { position: relative; z-index: 1; padding: 84px 0 92px; max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p.lead { font-size: 1.1rem; color: #d9eefc; margin: 0 auto 1.8rem; max-width: 640px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.2rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff;
}
.hero .eyebrow img { height: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 3rem; justify-content: center; }
.hero__stat .num { font-size: 2.3rem; font-weight: 800; line-height: 1; color: var(--soml-lime); }
.hero__stat .lbl { font-size: .9rem; color: #cfe3f5; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--soml-blue); color: #fff; }
.section--blue h2, .section--blue h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section__head .kicker {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--soml-green); margin-bottom: .6rem;
}
.section--blue .section__head .kicker { color: var(--soml-lime); }
.section__head p { color: var(--muted); font-size: 1rem; }
.section--blue .section__head p { color: #d9eefc; }

/* ==========================================================================
   Programmalijnen
   ========================================================================== */
.lijnen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lijn {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.lijn:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lijn::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; }
.lijn--ka1::before { background: var(--soml-blue); }
.lijn--vet::before { background: var(--soml-green); }
.lijn--povo::before { background: var(--soml-lime-2); }
.lijn .ic { font-size: 2.2rem; line-height: 1; margin-bottom: 1rem; }
.lijn .tag { display:inline-block; font-size:.72rem; font-weight:800; letter-spacing:.06em; padding:.25rem .6rem; border-radius:999px; margin-bottom:.7rem; }
.lijn--ka1 .tag { background: var(--soml-blue-light); color: var(--soml-blue-dark); }
.lijn--vet .tag { background: #d6f3ea; color: var(--soml-green); }
.lijn--povo .tag { background: #eef7d2; color: #5b7d00; }
.lijn h3 { font-size: 1.25rem; }
.lijn p { color: var(--ink-soft); font-size: .97rem; }
.lijn ul { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.lijn ul li { margin-bottom: .35rem; }

/* ==========================================================================
   Projecten grid
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; margin-bottom: 2.2rem; }
.filter-group { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: .6rem; align-self: center; }
.filter-group:first-of-type { margin-left: 0; }
.filter {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: .45rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.filter:hover { border-color: var(--soml-blue); color: var(--soml-blue); }
.filter.is-active { background: var(--soml-blue); border-color: var(--soml-blue); color: #fff; }

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

/* Projectgroepen (Lopend / Afgerond) */
.project-group { margin-bottom: 2.5rem; }
.project-group__title { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; margin: 0 0 1.2rem; }
.project-group__count { font-size: .85rem; font-weight: 800; color: #fff; background: var(--soml-green); border-radius: 999px; padding: .1rem .6rem; }
.project-group__title--muted { color: var(--muted); }
.project-group__count--muted { background: var(--muted); }
.project-group--lopend { background: linear-gradient(135deg, #eafaf3, #f1f8e9); border: 1px solid #cbe6d8; border-radius: var(--radius-lg); padding: 1.6rem 1.6rem .4rem; }
.project-group--lopend .project-group__title { color: var(--soml-green); }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--soml-green); position: relative; flex-shrink: 0; box-shadow: 0 0 0 0 rgba(0,141,104,.5); animation: soml-pulse 2s infinite; }
@keyframes soml-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,141,104,.5); } 70% { box-shadow: 0 0 0 8px rgba(0,141,104,0); } 100% { box-shadow: 0 0 0 0 rgba(0,141,104,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.project-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .6rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--soml-blue); }
/* Hele projectkaart klikbaar naar de projectpagina (stretched link). */
.project-card .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.project-card__foot, .project-card__meta { position: relative; z-index: 2; }
.project-card .visit, .project-card__meta a { position: relative; z-index: 2; }
.project-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.project-card__icon { font-size: 1.9rem; line-height: 1; }
.project-card__logo { display: inline-flex; align-items: center; }
.project-card__logo img { max-height: 46px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.badge { font-size: .68rem; font-weight: 800; letter-spacing: .04em; padding: .25rem .55rem; border-radius: 999px; white-space: nowrap; }
.badge--coord { background: var(--soml-blue-light); color: var(--soml-blue-dark); }
.badge--partner { background: #efe6f7; color: #6b3fa0; }
.badge--lopend { background: var(--soml-green); color: #fff; }
.badge--uitgevoerd { background: var(--bg-soft); color: var(--muted); }
.project-card h3 { font-size: 1.12rem; margin: 0; }
.project-card .ondertitel { font-size: .82rem; color: var(--muted); margin: 0; }
.project-card p.focus { font-size: .92rem; color: var(--ink-soft); margin: .3rem 0 0; flex: 1; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .4rem; }
.chip { font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); padding: .2rem .6rem; border-radius: 999px; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }

/* Nieuws: uitgelichte rij + subtiele regels */
.news-card__thumb { display: block; margin: -1.5rem -1.5rem .4rem; }
.news-lines { margin-top: 1.6rem; border-top: 2px solid var(--bg-soft); }
.news-line { display: flex; align-items: baseline; gap: 1rem; padding: .8rem .25rem; border-bottom: 1px solid var(--bg-soft); }
.news-line__date { flex-shrink: 0; width: 92px; font-size: .8rem; color: var(--muted); }
.news-line__title { font-weight: 600; color: var(--ink); text-decoration: none; flex: 1; }
.news-line__title:hover { color: var(--soml-blue); text-decoration: none; }
.news-line .chip--project { flex-shrink: 0; }
.news-line.is-hidden { display: none; }

/* Compacte nieuwskop op de projectpagina */
.news-sub { font-size: 1.15rem; margin: 2.2rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--bg-soft); }
.news-compact { margin-top: 0; border-top: 0; }
.news-compact .news-line { padding: .6rem .15rem; }
.news-compact .news-line__date { width: 84px; font-size: .76rem; }
.news-compact .news-line__title { font-size: .95rem; font-weight: 600; }
.news-more { margin-top: 1rem; font-size: .88rem; padding: .55rem 1.1rem; }

/* Werkpakketten & resultaten */
.wp-list, .result-list { margin: .2rem 0 1rem; padding-left: 0; list-style: none; }
.wp-list li, .result-list li { padding: .5rem .2rem; border-bottom: 1px solid var(--bg-soft); font-size: .96rem; }
.wp-list li:last-child, .result-list li:last-child { border-bottom: 0; }
.wp-titel { font-weight: 700; color: var(--ink); }
.wp-desc { color: var(--muted); }
.result-list a { font-weight: 600; }
.result-note { font-size: .9rem; color: var(--muted); margin-top: .3rem; }

/* Subtiele social-iconen */
.social-row { display: flex; gap: .35rem; margin-top: 1rem; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); background: var(--bg-soft); transition: color .15s ease, background .15s ease, transform .15s ease; }
.social-icon:hover { color: #fff; background: var(--soml-blue); transform: translateY(-2px); text-decoration: none; }

/* Events & registratie */
.event-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; color: #d9eefc; font-weight: 600; }
.reg-box { margin-top: 2.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow); }
.reg-box h2 { margin-top: 0; }
.reg-spots { font-size: .9rem; color: var(--soml-green); font-weight: 700; }
.reg-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; color: var(--ink-soft); }
.reg-form input, .reg-form textarea { width: 100%; margin-top: .25rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; }
.reg-form input:focus, .reg-form textarea:focus { outline: none; border-color: var(--soml-blue); box-shadow: 0 0 0 3px rgba(0,105,180,.12); }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.reg-form .btn { margin-top: .3rem; }
.reg-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.reg-msg { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.2rem; font-weight: 600; }
.reg-msg--ok { background: #d6f3ea; color: var(--soml-green); }
.reg-msg--err { background: #fde7e7; color: var(--soml-red); }
@media (max-width:600px){ .reg-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .news-line { flex-wrap: wrap; gap: .2rem .8rem; }
  .news-line__date { width: auto; order: 2; }
  .news-line__title { flex-basis: 100%; }
}
.chip--project { background: var(--soml-blue-light); color: var(--soml-blue-dark); font-weight: 700; text-decoration: none; }
.chip--project:hover { background: var(--soml-blue); color: #fff; text-decoration: none; }
.project-card__foot { margin-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--bg-soft); padding-top: .8rem; }
.project-card__foot .coord { font-size: .78rem; color: var(--muted); }
.project-card a.visit { font-size: .85rem; font-weight: 700; color: var(--soml-blue); white-space: nowrap; }

/* ==========================================================================
   Doelstellingen / impact
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.tile .ic { font-size: 2rem; margin-bottom: .6rem; }
.tile h3 { font-size: 1.08rem; }
.tile p { font-size: .94rem; color: var(--ink-soft); margin: 0; }
.tile--num .num { font-size: 2rem; font-weight: 800; color: var(--soml-blue); display:block; }
.section--blue .tile { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.section--blue .tile p { color: #d9eefc; }
.section--blue .tile--num .num { color: var(--soml-lime); }

/* ==========================================================================
   Consortium
   ========================================================================== */
.consortium { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 1rem; }
.school {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1rem; text-align: center; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.school:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--soml-blue); text-decoration: none; }
.school__logo { display: flex; align-items: center; justify-content: center; height: 54px; margin-bottom: .3rem; }
.school__logo img { max-height: 54px; max-width: 100%; width: auto; object-fit: contain; }
.school .naam { font-weight: 800; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.school .stad { font-size: .8rem; color: var(--muted); }
.school__ka1 { margin-top: .25rem; font-size: .68rem; font-weight: 800; letter-spacing: .03em; color: var(--soml-green); background: #d6f3ea; padding: .2rem .55rem; border-radius: 999px; }
.school--penvoerder { border-color: var(--soml-blue); box-shadow: 0 0 0 1px var(--soml-blue) inset, var(--shadow); }
.school__penvoerder { margin-top: .25rem; font-size: .68rem; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--soml-blue); padding: .2rem .55rem; border-radius: 999px; }

/* ==========================================================================
   Contact / CTA
   ========================================================================== */
.cta {
  background: linear-gradient(135deg, var(--soml-green) 0%, #006e51 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 3rem; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #d7f3ea; max-width: 560px; margin: 0 auto 1.6rem; }

/* ==========================================================================
   Single project
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--soml-blue), var(--soml-blue-dark)); background-size: cover; background-position: center; color: #fff; padding: 60px 0; }
.page-hero--image { background-color: var(--soml-blue-dark); }
.page-hero--image::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(0,79,138,.92) 0%, rgba(0,79,138,.80) 45%, rgba(0,58,102,.74) 100%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .breadcrumb { color: #cfe3f5; font-size: .9rem; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: #fff; }
.page-hero__logo { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1rem; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.page-hero__logo img { max-height: 60px; max-width: 220px; width: auto; height: auto; object-fit: contain; }
.content-prose { max-width: 760px; margin: 0 auto; }
.content-prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.content-prose h2 { margin-top: 2rem; }
.content-prose p { margin: 0 0 1.2rem; }
.content-prose > p:first-of-type { font-size: 1.12rem; color: var(--ink-soft); }

/* Tag-chips onder een bericht */
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--bg-soft); }
.tag-chip { font-size: .82rem; font-weight: 600; color: var(--soml-blue); background: var(--soml-blue-light); padding: .3rem .8rem; border-radius: 999px; }
.tag-chip:hover { background: var(--soml-blue); color: #fff; text-decoration: none; }

/* Paginering */
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; align-items: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 700; font-size: .92rem; }
.pagination a.page-numbers:hover { border-color: var(--soml-blue); color: var(--soml-blue); text-decoration: none; }
.pagination .page-numbers.current { background: var(--soml-blue); border-color: var(--soml-blue); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: transparent; }
.meta-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.meta-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; }
.meta-card dt { font-weight: 700; color: var(--muted); font-size: .85rem; }
.meta-card dd { margin: 0; font-size: .92rem; }

/* Project subpagina */
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.hero-badge { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .78rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; }
.hero-badge--status { background: var(--soml-lime); border-color: var(--soml-lime); color: var(--ink); }
.project-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.project-main > h2 { font-size: 1.45rem; margin: 2.2rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--bg-soft); }
.project-main > h2:first-child { margin-top: 0; }
.meta-card--partners { margin-top: 1.2rem; }
.meta-card--partners h3 .count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; margin-left: .3rem; background: var(--soml-blue); color: #fff; border-radius: 999px; font-size: .8rem; vertical-align: middle; }
.partner-list { list-style: none; margin: .2rem 0 0; padding: 0; }
.partner-list li { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--bg-soft); }
.partner-list li:last-child { border-bottom: 0; }
.partner-list .pl-flag { font-size: 1.15rem; line-height: 1.3; flex-shrink: 0; }
.partner-list .pl-naam { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.partner-list .pl-naam a { color: var(--ink); }
.partner-list .pl-naam a:hover { color: var(--soml-blue); }
.partner-list .pl-land { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.partner { display: flex; flex-direction: column; gap: .15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--soml-blue); text-decoration: none; }
.partner__naam { font-weight: 700; color: var(--ink); }
.partner__land { font-size: .82rem; color: var(--muted); }
.partner__land .flag { font-size: .95rem; }
.media-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; }
.media-item { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.media-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.media-item:hover img { transform: scale(1.05); }

/* Partnerkaart (Leaflet) */
.soml-map { height: 480px; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); z-index: 0; }
.soml-map--mini { height: 220px; margin-top: 1rem; border-radius: var(--radius); }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content { font-size: .85rem; line-height: 1.4; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #cbd2d9; padding: 56px 0 28px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #9fc7e8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; font-size: .92rem; }
.footer-brand img { height: 44px; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; max-width: 340px; }
.footer-bottom { border-top: 1px solid #3e4c59; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .82rem; color: #9aa5b1; }
.footer-bottom img { height: 22px; }
.eu-disclaimer { display: flex; align-items: center; gap: .8rem; max-width: 600px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .lijnen, .projects, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .consortium { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 24px 1rem; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: .75rem .5rem; border-radius: 0; border-bottom: 1px solid var(--bg-soft); }
  .nav-toggle { display: inline-flex; }
  .lijnen, .projects, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .project-layout { grid-template-columns: 1fr; }
  .consortium { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero__inner { padding: 60px 0; }
  .hero__stats { gap: 1.4rem; }
  .cta { padding: 2rem 1.4rem; }
}

/* ---------- KA1 zelfcheck (wizard) ---------- */
.ka1-wrap { max-width: 760px; }
.ka1-disclaimer { margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }
.ka1-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.ka1-card h3 { margin: 0 0 1rem; font-size: 1.25rem; }
.ka1-card h4 { margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--soml-green); }
.ka1-step { margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ka1-opts { display: flex; flex-direction: column; gap: .6rem; }
.ka1-opt { display: block; width: 100%; text-align: left; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.ka1-opt:hover { border-color: var(--soml-blue); background: #fff; transform: translateX(2px); box-shadow: var(--shadow); }
.ka1-opt strong { display: block; font-weight: 700; font-size: 1rem; }
.ka1-opt__h { display: block; margin-top: .15rem; font-size: .85rem; color: var(--muted); }
.ka1-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; align-items: center; }
.ka1-list { margin: 0; padding-left: 1.2rem; line-height: 1.7; }
.ka1-list li { margin: .2rem 0; }
.ka1-res { border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1rem; border-left: 5px solid var(--muted); background: var(--bg-soft); }
.ka1-res h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.ka1-res p { margin: 0; color: var(--ink-soft); }
.ka1-res--ja { background: #e7f6ee; border-left-color: var(--soml-green); }
.ka1-res--ja h3 { color: var(--soml-green); }
.ka1-res--misschien { background: #fdf2e2; border-left-color: #c9851b; }
.ka1-res--misschien h3 { color: #b3760f; }
.ka1-res--nee { background: #fcebe9; border-left-color: var(--soml-red, #911111); }
.ka1-res--nee h3 { color: var(--soml-red, #911111); }

/* KA1 zelfcheck — voorbeeldscenario's */
.ka1-examples-block { margin-bottom: 2rem; }
.ka1-frame { font-size: 1rem; color: var(--ink-soft); max-width: 680px; }
.ka1-frame--cta { margin-top: 1.2rem; font-weight: 600; color: var(--ink); }
.ka1-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.ka1-ex { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--soml-green); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.ka1-ex__kind { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--soml-green); }
.ka1-ex__text { margin: .5rem 0 .8rem; font-size: .93rem; color: var(--ink-soft); flex: 1; }
.ka1-ex__meta { font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* KA1 zelfcheck — focus van SOML */
.ka1-focus { margin: 1.2rem 0 1.6rem; padding: 1.1rem 1.3rem; background: var(--soml-blue-light); border: 1px solid #bfe0f5; border-radius: var(--radius); }
.ka1-focus__label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--soml-blue-dark); margin-bottom: .6rem; }
.ka1-focus__list { display: flex; flex-direction: column; gap: .5rem; }
.ka1-focus__item { background: #fff; border: 1px solid #bfe0f5; border-radius: 10px; overflow: hidden; }
.ka1-focus__item summary { cursor: pointer; list-style: none; padding: .6rem .9rem; font-size: .92rem; font-weight: 700; color: var(--soml-blue-dark); display: flex; align-items: center; gap: .5rem; }
.ka1-focus__item summary::-webkit-details-marker { display: none; }
.ka1-focus__item summary::before { content: ""; flex-shrink: 0; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--soml-blue); transition: transform .15s ease; }
.ka1-focus__item[open] summary::before { transform: rotate(180deg); }
.ka1-focus__item summary:hover { color: var(--soml-blue); }
.ka1-focus__item p { margin: 0; padding: 0 .9rem .8rem 1.9rem; font-size: .88rem; color: var(--ink-soft); }
.ka1-focus__note { margin: .9rem 0 0; font-weight: 600; color: var(--ink); }

/* KA1 zelfcheck — help/toelichting per vraag */
.ka1-help { margin: -.4rem 0 1rem; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.ka1-help::before { content: "\24D8"; margin-right: .35rem; color: var(--soml-blue); font-weight: 700; }

/* Nav dropdown (submenu "Over") */
.main-nav .has-sub { position: relative; }
.main-nav .sub-toggle { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink-soft); padding: .5rem 0; display: inline-flex; align-items: center; gap: .35rem; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.main-nav .has-sub:hover > .sub-toggle, .main-nav .has-sub:focus-within > .sub-toggle, .main-nav .sub-toggle:hover { color: var(--soml-blue); }
.main-nav .has-sub.is-current > .sub-toggle { color: var(--soml-green); border-bottom-color: var(--soml-green); }
.main-nav .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; transition: transform .15s ease; }
.main-nav .has-sub:hover .caret, .main-nav .has-sub:focus-within .caret { transform: rotate(180deg); }
.main-nav .sub { position: absolute; top: calc(100% + 2px); left: -.7rem; min-width: 210px; list-style: none; margin: 0; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 200; }
.main-nav .has-sub:hover > .sub, .main-nav .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub li { width: 100%; }
.main-nav .sub a { display: block; padding: .55rem .7rem; border-radius: 8px; border-bottom: 0; white-space: nowrap; }
.main-nav .sub a:hover { background: var(--bg-soft); color: var(--soml-blue); border-bottom-color: transparent; }
.main-nav .sub .is-current > a { color: var(--soml-green); border-bottom-color: transparent; }

@media (max-width: 760px) {
  .main-nav .has-sub { position: static; }
  .main-nav .sub-toggle { width: 100%; justify-content: space-between; padding: .75rem .5rem; border-bottom: 1px solid var(--bg-soft); }
  .main-nav .caret { transform: rotate(180deg); }
  .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 .3rem .8rem; min-width: 0; }
  .main-nav .sub a { padding: .6rem .5rem; }
}

/* Consortium — penvoerder (SOML) banner */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.penvoerder { display: flex; align-items: center; gap: 1.6rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--soml-blue); border-radius: var(--radius-lg); padding: 1.5rem 1.7rem; margin-bottom: 1.6rem; box-shadow: var(--shadow); transition: box-shadow .15s ease, transform .15s ease; }
.penvoerder:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.penvoerder__logo { flex-shrink: 0; width: 210px; max-width: 40%; display: flex; align-items: center; }
.penvoerder__logo img { width: 100%; height: auto; }
.penvoerder__body { display: flex; flex-direction: column; gap: .35rem; }
.penvoerder__badge { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--soml-blue); padding: .25rem .7rem; border-radius: 999px; }
.penvoerder__naam { font-weight: 800; font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
.penvoerder__tekst { font-size: .95rem; color: var(--ink-soft); }

@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
  .penvoerder { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .penvoerder__logo { width: 180px; max-width: 70%; }
}
