/* =========================================================
   NLP · Apilea youth · sidebar / editorial layout
   ========================================================= */

:root {
  --teal:       #157a70;
  --teal-dark:  #0e514b;
  --teal-deep:  #0a3b37;
  --purple:     #7c6bd6;
  --purple-dark:#5f4fb3;
  --ink:        #1b2b28;
  --muted:      #5c6b68;
  --line:       #e2ece9;
  --bg:         #ffffff;
  --bg-soft:    #f1f7f5;
  --cream:      #faf8f3;
  --sidebar-w:  282px;
  --radius:     18px;
  --shadow:     0 14px 38px rgba(14, 81, 75, .12);
  --shadow-sm:  0 5px 16px rgba(14, 81, 75, .08);
  --font:       "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display:    "Fraunces", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===================== SIDEBAR ===================== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--teal-deep), var(--teal-dark));
  color: #e8f4f1;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 30px 24px;
  z-index: 60;
}
.side-brand {
  display: block;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
}
.side-brand img { max-height: 90px; width: auto; margin: 0 auto; }
.side-brand-fallback {
  display: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--teal);
}

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  text-decoration: none;
  color: rgba(232, 244, 241, .82);
  font-weight: 500;
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.side-nav a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-left-color: var(--purple);
}

.side-lang {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.side-lang button {
  border: none;
  background: rgba(255,255,255,.10);
  font-size: 1.1rem;
  line-height: 1;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  filter: grayscale(50%) opacity(.75);
  transition: filter .15s, background .15s, transform .1s;
}
.side-lang button:hover { filter: none; transform: translateY(-1px); }
.side-lang button.active { filter: none; background: #fff; }

.side-funders {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}
.side-funders img { height: 30px; width: auto; object-fit: contain; }
.fund-ph { font-size: .72rem; font-weight: 700; color: var(--teal); }

/* mobile menu button */
.menu-btn {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 70;
  width: 46px; height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--teal-deep);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* ===================== CONTENT ===================== */
.content { margin-left: var(--sidebar-w); }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 48px; }

.eyebrow {
  color: var(--purple);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 12px;
}
.block-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  color: var(--teal-dark);
  margin-bottom: 28px;
}
.lead { font-size: 1.1rem; color: #384743; max-width: 720px; margin-bottom: 30px; }

/* ===================== HERO ===================== */
.hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(124,107,214,.14), transparent 60%),
    linear-gradient(180deg, var(--cream), #fff);
  border-bottom: 1px solid var(--line);
  padding: 96px 0 72px;
}
.hero .wrap { border-left: 4px solid var(--purple); }
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--teal-dark);
}
.hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #3b4a46;
  max-width: 620px;
  margin: 18px 0 26px;
}
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 30px; }
.hero-meta li { font-weight: 500; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .12s, background .15s, box-shadow .15s;
  cursor: pointer;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px rgba(124,107,214,.35); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); }
.btn-ghost { color: var(--teal-dark); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--teal); transform: translateY(-2px); }

/* ===================== BLOCKS ===================== */
.block { padding: 78px 0; }
.block.alt { background: var(--bg-soft); }

/* ABOUT (text, then a large full-width image) */
.about-grid { display: block; }
.about-text { margin-bottom: 36px; }
.about-text p { margin-bottom: 16px; color: #384743; }
.about-media { margin: 0; }
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

/* GOALS (numbered list) */
.goals { list-style: none; counter-reset: g; max-width: 780px; }
.goals li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.goals li:last-child { border-bottom: none; }
.g-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--purple);
  flex-shrink: 0;
  min-width: 56px;
}
.goals p { color: #384743; font-size: 1.06rem; }

/* ACTIVITIES (timeline) */
.timeline { position: relative; padding-left: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--teal), var(--purple));
}
.tl-item { position: relative; display: flex; gap: 22px; padding: 14px 0; }
.tl-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.tl-body { padding-top: 4px; }
.tl-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--teal-dark);
  margin-bottom: 6px;
}
.tl-body p { color: #384743; }

/* PROGRAMME (day-by-day journey) */
.programme { margin-top: 56px; }
.prog-hint { color: var(--muted); font-size: .92rem; margin: -8px 0 24px; }
.prog-table { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.prog-day {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
}
/* connecting line from this day's node down to the next day's node */
.prog-day:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 22px; top: 29px; bottom: -47px;
  width: 2px;
  background: linear-gradient(var(--teal), var(--purple));
}
.prog-node {
  position: relative;
  z-index: 1;
  width: 46px; height: 46px;
  margin-top: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.prog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.prog-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--bg-soft), #fff);
}
.prog-when { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.prog-dayname {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--teal-dark);
}
.prog-date { color: var(--muted); font-size: .88rem; font-weight: 600; letter-spacing: .02em; }
.prog-theme {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-dark);
  background: rgba(124,107,214,.10);
  padding: 4px 10px;
  border-radius: 999px;
}
.prog-acts { list-style: none; }
.prog-act {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}
.prog-act:first-child { border-top: none; }
.prog-act:hover, .prog-act.open { background: var(--bg-soft); }
.prog-act-icon { font-size: 1.05rem; line-height: 1.6; text-align: center; }
.prog-act-main { min-width: 0; }
.prog-act-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.prog-act-head:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 6px; }
.prog-act-title { font-size: .96rem; font-weight: 600; color: var(--ink); transition: color .15s; }
.prog-act:hover .prog-act-title, .prog-act.open .prog-act-title { color: var(--purple-dark); }
.prog-act-arrow { font-size: 1.15rem; line-height: 1; color: var(--purple); transition: transform .25s; flex-shrink: 0; }
.prog-act.open .prog-act-arrow { transform: rotate(45deg); }
/* collapsed: one teaser line; expanded: full text (height set by script) */
.prog-act-desc {
  color: #4a5955;
  font-size: .9rem;
  margin-top: 3px;
  max-height: 1.7em;
  overflow: hidden;
  transition: max-height .3s ease;
}
.prog-act-desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.prog-act.open .prog-act-desc { color: #384743; }
@media (prefers-reduced-motion: reduce) {
  .prog-act, .prog-act-title, .prog-act-arrow, .prog-act-desc { transition: none; }
}

/* PARTICIPANTS */
.pstats { display: flex; flex-wrap: wrap; gap: 40px; margin: 6px 0 34px; }
.pstat { display: flex; flex-direction: column; }
.pnum {
  font-family: var(--display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: var(--teal);
}
.pstat span:last-child { color: var(--muted); font-weight: 500; }

.countries { display: grid; gap: 10px; max-width: 720px; margin-bottom: 40px; }
.crow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.block.alt .crow { background: #fff; }
.cflag { font-size: 1.6rem; }
.crow strong { min-width: 90px; color: var(--teal-dark); }
.crow span[data-i18n] { color: var(--muted); font-size: .95rem; }

.mini-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--teal-dark);
  margin-bottom: 18px;
}
.partner-blocks { display: grid; gap: 16px; }
.pblock {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: 12px;
  padding: 18px 22px;
}
.pblock h4 { font-size: 1.05rem; color: var(--teal-dark); margin-bottom: 6px; }
.pblock p { color: #47554f; font-size: .97rem; }

/* PRACTICAL (click-to-open accordion) */
.panels { display: grid; gap: 16px; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 28px;
  text-align: left;
}
.panel-head:hover .panel-title { color: var(--purple-dark); }
.panel-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--teal-dark);
  transition: color .15s;
}
.panel-arrow { font-size: 1.5rem; color: var(--purple); transition: transform .25s; flex-shrink: 0; }
.panel.open .panel-arrow { transform: rotate(45deg); }
.panel-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.panel-inner { padding: 2px 28px 24px; }
.panel-inner ul { padding-left: 20px; }
.panel-inner li { margin: 8px 0; color: #384743; }
.panel-inner p { color: #384743; margin: 6px 0 10px; }
.q-label { font-family: var(--display); font-weight: 600; color: var(--purple-dark); margin-top: 16px; }
.req-label { font-weight: 600; color: var(--ink); margin: 12px 0 4px; }
.link-out {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(21,122,112,.25);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.link-out:hover { color: var(--purple); border-color: var(--purple); }

.reimb-green { font-weight: 600; color: var(--teal-dark); margin-top: 16px !important; }
.reimb-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--teal-dark);
  margin: 10px 0 8px;
}
.reimb-list { list-style: none; padding-left: 0 !important; display: grid; gap: 8px; }
.reimb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 9px 14px;
  margin: 0 !important;
}
.reimb-list strong { color: var(--teal); }

.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.photo-row img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.photo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: var(--bg-soft);
  border: 2px dashed var(--line);
  border-radius: 12px;
  font-size: 2.4rem;
}

/* AFTER */
.after-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ablock {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  text-align: center;
  min-height: 130px;
  padding: 20px;
  background: #fff;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 500;
}

/* CONTACT */
.contact-block {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--purple);
  border-radius: var(--radius);
  padding: 26px 28px;
  max-width: 480px;
  box-shadow: var(--shadow-sm);
}
.contact-block p { margin: 8px 0; }
.contact-block a { color: var(--teal); font-weight: 600; }

/* FOOTER */
.foot { background: var(--teal-deep); color: rgba(232,244,241,.72); padding: 40px 0; }
.foot-disclaimer { font-size: .82rem; line-height: 1.6; max-width: 760px; }
.foot-copy { margin-top: 14px; font-size: .85rem; opacity: .7; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .content { margin-left: 0; }
  .wrap { padding: 0 22px; }
  .hero { padding-top: 84px; }
}

@media (max-width: 720px) {
  .block { padding: 56px 0; }
  .goals li { gap: 14px; }
  .g-num { min-width: 42px; font-size: 1.6rem; }
  .programme { margin-top: 44px; }
  .prog-table { gap: 12px; }
  .prog-day { grid-template-columns: 34px 1fr; gap: 12px; }
  .prog-day:not(:last-child)::before { left: 16px; top: 25px; bottom: -37px; }
  .prog-node { width: 34px; height: 34px; margin-top: 8px; font-size: .95rem; }
  .prog-day-head { padding: 14px 16px; }
  .prog-dayname { font-size: 1.1rem; }
  .prog-act { grid-template-columns: 22px 1fr; gap: 10px; padding: 11px 14px 11px 16px; }
  .prog-act-icon { font-size: .95rem; }
}
