/* ═══════════════════════════════════════════════
   Junior AI League — Gedeelde stijlen
   Merkwaarden:
   Navy:   #000e72
   Teal:   #099f8a
   Mint:   #c3fbea
   Geel:   #ffca3a
   Roze:   #f72585
   ═══════════════════════════════════════════════ */

:root {
  --navy:      #000e72;
  --navy-mid:  #001499;
  --teal:      #099f8a;
  --teal-lt:   #0bc4ac;
  --mint:      #c3fbea;
  --yellow:    #ffca3a;
  --pink:      #f72585;
  --white:     #ffffff;
  --gray:      #f0f3f2;
  --gray-mid:  #e4eae8;
  --body:      #1a2a5e;
  --border:    rgba(0,14,114,.08);
  --shadow:    0 4px 24px rgba(0,14,114,.08);
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family:'Exo 2', sans-serif;
  color:var(--body);
  background:var(--white);
  overflow-x:hidden;
  line-height:1.6;
}
img { max-width:100%; display:block; }
a { text-decoration:none; }

/* ── LAYOUT ── */
.wrap {
  max-width:1160px;
  margin:0 auto;
  padding:0 44px;
}
.section-light  { padding:100px 0; background:var(--white); }
.section-gray   { padding:100px 0; background:var(--gray); }
.section-dark   { padding:100px 0; background:linear-gradient(135deg,#000e72 0%,#001066 50%,#015a50 100%); position:relative; overflow:hidden; }
.section-dark-plain { padding:100px 0; background:var(--navy); position:relative; }

/* diagonal exit helpers */
.exit-white::after  { content:''; position:absolute; bottom:-1px; left:0; right:0; height:80px; background:var(--white); clip-path:polygon(0 100%,100% 20%,100% 100%); }
.exit-gray::after   { content:''; position:absolute; bottom:-1px; left:0; right:0; height:80px; background:var(--gray);  clip-path:polygon(0 100%,100% 20%,100% 100%); }
.enter-gray  { padding-top:120px !important; background:var(--gray); }
.enter-white { padding-top:120px !important; background:var(--white); }

/* ── TYPOGRAPHY ── */
.tag {
  font-family:'Rajdhani', sans-serif;
  font-size:11px; font-weight:700;
  letter-spacing:.28em; text-transform:uppercase;
  color:var(--teal); display:inline-block; margin-bottom:14px;
}
.tag--light { color:var(--mint); }

h1, h2, h3, h4 { font-family:'Rajdhani', sans-serif; font-weight:700; line-height:1.1; }
h2 { font-size:clamp(28px,4vw,50px); color:var(--navy); margin-bottom:18px; }
h2 em { font-style:normal; color:var(--teal); }
h2.on-dark { color:var(--white); }
h2.on-dark em { color:var(--mint); }
h3 { font-size:clamp(20px,2.5vw,28px); color:var(--navy); margin-bottom:12px; }

.rule { width:48px; height:3px; background:linear-gradient(90deg,var(--teal),transparent); border-radius:2px; margin-bottom:32px; }
.rule--light { background:linear-gradient(90deg,var(--mint),transparent); }
.rule--center { margin-left:auto; margin-right:auto; }

.lead { font-size:17px; line-height:1.8; color:var(--body); }
.lead--light { color:rgba(255,255,255,.82); }
.lead--light strong { color:var(--mint); }
.lead strong { color:var(--navy); }

/* ── BUTTONS ── */
.btn {
  display:inline-block;
  font-family:'Rajdhani', sans-serif;
  font-size:14px; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
  padding:15px 34px; border-radius:4px;
  transition:all .2s; cursor:pointer; border:none;
}
.btn-teal    { background:var(--teal); color:#fff; }
.btn-teal:hover { background:var(--teal-lt); transform:translateY(-2px); box-shadow:0 8px 24px rgba(9,159,138,.3); }
.btn-navy    { background:var(--navy); color:#fff; }
.btn-navy:hover { background:var(--navy-mid); transform:translateY(-2px); }
.btn-ghost   { background:transparent; color:#fff; border:2px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color:var(--mint); color:var(--mint); transform:translateY(-2px); }
.btn-outline { background:transparent; color:var(--navy); border:2px solid var(--navy); }
.btn-outline:hover { background:var(--navy); color:#fff; }
.btn-sm { padding:10px 22px; font-size:12px; }
.btn-full { display:block; text-align:center; width:100%; }

/* ── NAV ── */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:300;
  height:68px;
  background:rgba(0,14,114,.97);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(9,159,138,.18);
}
.nav-in {
  display:flex; align-items:center; justify-content:space-between;
  height:68px; max-width:1160px; margin:0 auto; padding:0 44px;
}
.nav-logo { display:flex; align-items:center; gap:13px; }
.nav-logo img { height:36px; }
.nav-wordmark {
  font-family:'Rajdhani', sans-serif; font-weight:700; font-size:15px;
  color:#fff; letter-spacing:.04em; line-height:1.25;
}
.nav-wordmark small { display:block; font-size:10px; font-weight:500; color:var(--mint); letter-spacing:.18em; }
.nav-links { display:flex; align-items:center; gap:26px; list-style:none; }
.nav-links a {
  color:rgba(255,255,255,.72);
  font-family:'Rajdhani', sans-serif; font-size:13px; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase; transition:color .2s;
}
.nav-links a:hover, .nav-links a.active { color:var(--mint); }
.nav-links .nav-cta { color:#fff; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding:140px 0 80px;
  background:linear-gradient(135deg,#000e72 0%,#001a9e 50%,#017a6a 100%);
  position:relative; overflow:hidden;
}
.page-hero::after {
  content:''; position:absolute; bottom:-1px; left:0; right:0; height:70px;
  background:var(--white); clip-path:polygon(0 100%,100% 20%,100% 100%);
}
.page-hero-tag { color:var(--mint); }
.page-hero h1 { font-size:clamp(32px,5vw,60px); color:#fff; margin-bottom:16px; }
.page-hero h1 em { font-style:normal; color:var(--mint); }
.page-hero p { font-size:18px; color:rgba(255,255,255,.8); max-width:620px; line-height:1.75; }

/* ── ICON CARDS ── */
.icon-card {
  border-radius:12px; padding:28px 24px;
  transition:transform .25s, box-shadow .25s;
}
.icon-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.icon-card--dark {
  background:rgba(255,255,255,.06);
  border:1px solid rgba(195,251,234,.18);
}
.icon-card--dark:hover { background:rgba(9,159,138,.14); }
.icon-card--light {
  background:var(--white);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.icon-card--light:hover { border-color:var(--teal); }

.icon-wrap {
  width:52px; height:52px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; margin-bottom:16px;
}
.icon-wrap svg { width:28px; height:28px; }
.ic-teal   { background:rgba(9,159,138,.15); }   .ic-teal svg   { fill:var(--teal); }
.ic-navy   { background:rgba(0,14,114,.1); }     .ic-navy svg   { fill:var(--navy); }
.ic-mint   { background:rgba(195,251,234,.15); } .ic-mint svg   { fill:var(--mint); }
.ic-yellow { background:rgba(255,202,58,.15); }  .ic-yellow svg { fill:var(--yellow); }
.ic-pink   { background:rgba(247,37,133,.15); }  .ic-pink svg   { fill:var(--pink); }
.ic-green  { background:rgba(34,139,34,.1); }    .ic-green svg  { fill:#228b22; }
.ic-ocean  { background:rgba(0,128,128,.1); }    .ic-ocean svg  { fill:#008080; }

.icon-card h4 {
  font-family:'Rajdhani', sans-serif; font-size:16px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; margin-bottom:8px;
}
.icon-card--dark h4 { color:var(--mint); }
.icon-card--light h4 { color:var(--navy); }
.icon-card p { font-size:14px; line-height:1.65; }
.icon-card--dark p { color:rgba(255,255,255,.68); }
.icon-card--light p { color:var(--body); opacity:.8; }

/* ── PROGRAM CARDS ── */
.prog {
  border:2px solid rgba(9,159,138,.2); border-radius:14px;
  overflow:hidden; background:var(--white);
  transition:border-color .3s, transform .3s;
  display:flex; flex-direction:column;
}
.prog:hover { border-color:var(--teal); transform:translateY(-4px); box-shadow:0 12px 40px rgba(0,14,114,.12); }
.prog-top {
  padding:32px;
  background:linear-gradient(135deg,var(--navy) 0%,#013a60 100%);
}
.prog-badge {
  display:inline-flex; align-items:center; justify-content:center;
  width:46px; height:46px; border-radius:50%;
  background:var(--teal); color:#fff;
  font-family:'Rajdhani', sans-serif; font-size:20px; font-weight:700;
  margin-bottom:16px;
}
.prog-type {
  font-family:'Rajdhani', sans-serif; font-size:11px; font-weight:700;
  letter-spacing:.2em; color:var(--mint); text-transform:uppercase; margin-bottom:6px;
}
.prog-name {
  font-family:'Rajdhani', sans-serif; font-size:20px; font-weight:700;
  color:#fff; line-height:1.25;
}
.prog-body { padding:28px 32px; flex:1; display:flex; flex-direction:column; }
.prog-list { list-style:none; margin-bottom:24px; flex:1; }
.prog-list li {
  font-size:14px; color:var(--body);
  padding:8px 0 8px 20px; border-bottom:1px solid var(--border);
  position:relative; line-height:1.5;
}
.prog-list li::before { content:'›'; position:absolute; left:0; color:var(--teal); font-size:18px; line-height:1.3; }

/* ── FAQ ── */
.faq-list { display:flex; flex-direction:column; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-q {
  width:100%; background:none; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 0; text-align:left; gap:20px;
}
.faq-q-text {
  font-family:'Rajdhani', sans-serif; font-size:18px; font-weight:700;
  color:var(--navy); letter-spacing:.02em; line-height:1.35;
}
.faq-arrow {
  width:32px; height:32px; border-radius:50%;
  background:var(--gray); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:background .2s;
}
.faq-arrow svg { width:14px; height:14px; fill:var(--teal); transition:transform .3s; }
.faq-item.open .faq-arrow { background:var(--teal); }
.faq-item.open .faq-arrow svg { fill:#fff; transform:rotate(180deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .4s ease; }
.faq-a-inner { padding-bottom:22px; font-size:15px; color:var(--body); line-height:1.75; }
.faq-item.open .faq-a { max-height:600px; }

/* ── MEDIA TILES ── */
.media-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:28px;
}
.media-tile {
  border-radius:12px; overflow:hidden;
  background:var(--white); border:1px solid var(--border);
  box-shadow:var(--shadow); transition:transform .3s, box-shadow .3s;
  display:flex; flex-direction:column;
}
.media-tile:hover { transform:translateY(-5px); box-shadow:0 16px 40px rgba(0,14,114,.12); }
.media-tile-img {
  height:200px; position:relative; overflow:hidden;
  background:linear-gradient(135deg,var(--navy),var(--teal));
  display:flex; align-items:center; justify-content:center;
}
.media-tile-img img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.media-tile-cat {
  position:absolute; bottom:12px; left:14px;
  background:var(--navy); color:var(--mint);
  font-family:'Rajdhani', sans-serif; font-size:10px; font-weight:700;
  letter-spacing:.15em; padding:4px 10px; border-radius:3px; text-transform:uppercase;
}
.media-tile-body { padding:24px; flex:1; display:flex; flex-direction:column; }
.media-tile-date { font-size:12px; color:var(--teal); margin-bottom:8px; letter-spacing:.05em; }
.media-tile-title {
  font-family:'Rajdhani', sans-serif; font-size:19px; font-weight:700;
  color:var(--navy); margin-bottom:10px; line-height:1.3; letter-spacing:.02em;
}
.media-tile-excerpt { font-size:14px; color:var(--body); line-height:1.65; flex:1; }
.media-tile-link {
  margin-top:16px;
  font-family:'Rajdhani', sans-serif; font-size:13px; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; color:var(--teal);
  display:flex; align-items:center; gap:6px;
}
.media-tile-link::after { content:'→'; }

/* ── FOOTER ── */
.footer {
  background:var(--navy);
  border-top:1px solid rgba(9,159,138,.15);
  padding:56px 0 36px;
}
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:44px; }
.footer-name {
  font-family:'Rajdhani', sans-serif; font-size:20px; font-weight:700;
  color:#fff; letter-spacing:.06em; margin-bottom:4px;
}
.footer-tag { font-size:11px; color:var(--mint); letter-spacing:.2em; text-transform:uppercase; margin-bottom:16px; }
.footer-desc { font-size:13px; color:rgba(255,255,255,.4); line-height:1.7; }
.footer-h {
  font-family:'Rajdhani', sans-serif; font-size:11px; font-weight:700;
  letter-spacing:.22em; text-transform:uppercase; color:var(--mint); margin-bottom:18px;
}
.footer-links { list-style:none; display:flex; flex-direction:column; gap:9px; }
.footer-links a { color:rgba(255,255,255,.48); font-size:14px; transition:color .2s; }
.footer-links a:hover { color:#fff; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.07); padding-top:26px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
}
.footer-bottom p { font-size:12px; color:rgba(255,255,255,.28); }
.footer-partners { display:flex; align-items:center; gap:24px; }
.footer-partner { display:flex; align-items:center; gap:8px; font-size:11px; color:rgba(255,255,255,.3); }
.footer-partner img { height:18px; opacity:.35; filter:brightness(0) invert(1); }

/* ── SCROLL REVEAL ── */
.r { opacity:0; transform:translateY(24px); transition:opacity .65s ease, transform .65s ease; }
.r.on { opacity:1; transform:none; }
.r1 { transition-delay:.1s; } .r2 { transition-delay:.2s; }
.r3 { transition-delay:.3s; } .r4 { transition-delay:.4s; }

/* ── HAMBURGER NAV ── */
.nav-hamburger {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:6px 4px;
  flex-shrink:0;
}
.nav-hamburger span {
  display:block; width:24px; height:2px; background:#fff;
  border-radius:2px; transition:transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity:0; }
.nav-hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width:960px) {
  .wrap { padding:0 24px; }

  /* Mobile nav */
  .nav-hamburger { display:flex; }
  .nav-links {
    position:fixed; top:68px; left:0; right:0;
    background:rgba(0,14,114,.97); backdrop-filter:blur(14px);
    flex-direction:column; gap:0;
    max-height:0; overflow:hidden;
    transition:max-height .35s ease;
    border-bottom:1px solid rgba(9,159,138,.18);
  }
  .nav-links.open { max-height:500px; }
  .nav-links li { border-bottom:1px solid rgba(255,255,255,.07); }
  .nav-links a { padding:15px 24px; display:block; letter-spacing:.08em; }
  .nav-links .nav-cta { margin:16px 24px 20px; display:inline-block; }

  .section-light, .section-gray, .section-dark, .section-dark-plain { padding:64px 0; }
  .page-hero { padding:110px 0 60px; }

  .footer-grid { grid-template-columns:1fr 1fr; }
  .media-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width:640px) {
  .wrap { padding:0 18px; }
  .nav-in { padding:0 18px; }
  .media-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .page-hero h1 { font-size:clamp(28px,8vw,44px); }
  .page-hero p { font-size:16px; }
  .btn { padding:13px 24px; font-size:13px; }
}

/* ── TEAM ── */
.team-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.team-card { background:var(--white); border-radius:14px; border:1px solid var(--border); box-shadow:var(--shadow); overflow:hidden; text-align:center; }
.team-card-img { height:320px; overflow:hidden; background:var(--gray); }
.team-card-img img { width:100%; height:100%; object-fit:cover; object-position:center top; transition:transform .4s; }
.team-card:hover .team-card-img img { transform:scale(1.04); }
.team-card-body { padding:24px 20px 28px; }
.team-card-name { font-family:'Rajdhani',sans-serif; font-size:22px; font-weight:700; color:var(--navy); margin-bottom:4px; letter-spacing:.04em; }
.team-card-role { font-family:'Rajdhani',sans-serif; font-size:11px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--teal); margin-bottom:14px; }
.team-card-email { font-size:13px; color:var(--body); opacity:.55; transition:opacity .2s; }
.team-card-email:hover { color:var(--teal); opacity:1; }
@media(max-width:960px){ .team-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:640px){ .team-grid{ grid-template-columns:1fr; } }

/* ── FOTOBIBLIOTHEEK ── */
.foto-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.foto-item { display:block; aspect-ratio:4/3; overflow:hidden; border-radius:8px; cursor:pointer; }
.foto-item img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.foto-item:hover img { transform:scale(1.06); }
.foto-modal { display:none; position:fixed; inset:0; z-index:1000; align-items:center; justify-content:center; }
.foto-modal.open { display:flex; }
.foto-modal-overlay { position:absolute; inset:0; background:rgba(0,0,0,.92); cursor:pointer; }
.foto-modal-inner { position:relative; z-index:1; }
.foto-modal-inner img { max-width:90vw; max-height:88vh; border-radius:8px; display:block; }
.foto-modal-close { position:absolute; top:-44px; right:0; background:none; border:none; color:#fff; font-size:36px; cursor:pointer; line-height:1; opacity:.7; transition:opacity .2s; }
.foto-modal-close:hover { opacity:1; }
@media(max-width:960px){ .foto-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:640px){ .foto-grid{ grid-template-columns:repeat(2,1fr); } }

/* ── FOOTER LOGO BAR ── */
.footer-logo-bar { background:var(--white); border-top:1px solid var(--border); padding:28px 0; text-align:center; }
.footer-logo-bar img { max-height:52px; margin:0 auto; }
