/* ============================================================
   Misr Baladna Scout Group — Design System
   Structure and component language shared with owltechservice.com.
   STRICT 3-colour brand palette: primary blue (flat, never shaded),
   white, light grey (#F2F2F2 — may be used as a gradient/tint of
   itself). Red is a rare accent, used only on white/grey backgrounds,
   never shaded, never on a blue background.
   ============================================================ */

@font-face {
  font-family: 'Century Gothic';
  src: url('/assets/fonts/CenturyGothic.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1A4BA0;
  --red: #E40613;
  --grey: #F2F2F2;
  --white: #FFFFFF;

  --ink: #202020;
  --muted: #5C5C5C;
  --line: #E2E2E2;
  --bg: #FFFFFF;
  --bg-alt: #F2F2F2;

  --maxw: 1160px;
  --header-h: 80px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 14px; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.18rem; font-weight: 600; }
p { margin: 0 0 14px; color: var(--muted); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-blue { background: var(--blue); color: #fff; padding-bottom: 64px; }
.section-blue h1, .section-blue h2, .section-blue h3 { color: #fff; }
.section-blue p { color: #fff; opacity: 0.88; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.eyebrow { display: inline-block; margin: 0 0 12px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: #cb2c28; }
.lead { font-size: 1.08rem; max-width: 640px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-align-rows { row-gap: 0; align-items: start; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Buttons (hover swaps between the 3 brand colours, never shades) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border: 1px solid var(--blue); background: var(--blue); color: #fff;
  font: inherit; font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: #fff; color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-outline-white { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--blue); }
.btn-accent { background: var(--red); border-color: var(--red); color: #fff; }
.btn-accent:hover { background: #fff; color: var(--red); border-color: var(--red); }
.btn-white { background: #fff; border-color: #fff; color: var(--blue); }
.btn-white:hover { background: var(--grey); border-color: var(--grey); color: var(--blue); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Home "Save the Date" Jamboree logos — stay side by side even on mobile */
.jamboree-logos { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.jamboree-logos-card { background: #fff; border-radius: 16px; padding: 18px 26px; box-shadow: 0 10px 28px rgba(12,43,97,0.12); display: flex; align-items: center; }
.jamboree-logos-card img { height: 150px; width: auto; display: block; }
@media (max-width: 480px) {
  .jamboree-logos { gap: 10px; flex-wrap: nowrap; }
  .jamboree-logos-card { padding: 10px 12px; }
  .jamboree-logos-card img { height: 80px; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,0.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); height: var(--header-h); display: flex; align-items: center; }
.site-header .container { max-width: none; padding: 0 32px; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: auto; }
.brand-text { font-family: 'Century Gothic', var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--blue); line-height: 1.15; white-space: nowrap; -webkit-text-stroke: 0.4px var(--blue); }

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu .nav-top-link {
  display: block; padding: 10px 14px; font-weight: 700; font-size: 0.82rem; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.2s;
}
.nav-menu > li > a:hover, .nav-menu .nav-top-link:hover { color: var(--blue); }

.has-dropdown > .nav-top-link::after { content: ''; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 6px; position: relative; top: -2px; }
.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.dropdown a:hover { background: var(--grey); color: var(--blue); }
.dropdown-group-label { padding: 10px 12px 4px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.dropdown-group-label:not(:first-child) { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; }

.nav-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav-menu { display: none; }
  .nav-toggle {
    appearance: none; -webkit-appearance: none; padding: 0;
    display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border: none; background: none; position: relative;
  }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after {
    content: ''; position: absolute; width: 22px; height: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.25s;
  }
  .nav-toggle::before { transform: translateY(-7px); }
  .nav-toggle::after { transform: translateY(7px); }
  .nav-toggle.open::before { transform: translateY(0) rotate(45deg); }
  .nav-toggle.open span { opacity: 0; }
  .nav-toggle.open::after { transform: translateY(0) rotate(-45deg); }

  .mobile-menu {
    display: block;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; z-index: 190;
    padding: 12px 24px 40px; overflow-y: auto;
    transform: translateY(-110%); transition: transform 0.3s ease;
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a, .mobile-menu .mm-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left;
    padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.02rem; color: var(--ink);
    background: none; border-left: none; border-right: none; border-top: none;
  }
  .mm-accordion { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding-left: 14px; }
  .mm-accordion.open { max-height: 600px; }
  .mm-accordion a { font-size: 0.92rem; font-weight: 600; color: var(--muted); padding: 10px 0; }
}

/* ---------- Hero: photo on one side, solid primary panel for text
   (no colour overlay on the photo — "place text on a solid block").
   Text columns use fixed px max-widths so they stay readable and don't
   drift out of alignment with the diagonal-cut photo panel at odd
   viewport widths. ---------- */
.hero-photo {
  position: relative; min-height: 640px; display: flex; align-items: center; color: #fff;
  background-size: cover; background-position: center; overflow: hidden;
}
.hero-photo .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-photo .overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,43,97,0.92) 30%, rgba(12,43,97,0.45) 78%); }
.hero-photo .container { position: relative; z-index: 2; max-width: none; margin: 0; padding: 0 6vw; width: 100%; }
.hero-photo .hero-inner { max-width: min(620px, 56%); }
.hero-photo .slogan { color: #fff; font-weight: 800; letter-spacing: 0.02em; opacity: 0.92; margin-bottom: 10px; }
.hero-photo h1 { color: #fff; text-align: left; }
.hero-photo p.lead { color: #fff; opacity: 0.92; }
@media (max-width: 760px) {
  .hero-photo { min-height: 560px; }
  .hero-photo .hero-inner { max-width: 100%; }
  .hero-photo .btn-row { justify-content: center; }
}

.page-hero {
  position: relative; min-height: 38vh; display: flex; align-items: center; color: #fff;
  background: var(--blue); overflow: hidden;
}
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.48; }
.page-hero .overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,43,97,0.82) 25%, rgba(12,43,97,0.5) 100%); }
.page-hero .container { position: relative; z-index: 2; margin: 0; width: 100%; max-width: none; padding: 36px 6vw 40px; }
.page-hero h1 { color: #fff; margin-bottom: 8px; max-width: 640px; text-align: left; }
.reveal-left h2, .reveal-right h2 { text-align: left; }
.page-hero p { color: #fff; opacity: 0.92; max-width: 560px; }
.breadcrumb { font-size: 0.8rem; color: #fff; opacity: 0.82; margin-bottom: 14px; max-width: none !important; }
.breadcrumb a { font-weight: 700; color: #fff; }
.page-hero.page-hero-light { background: #fff; color: var(--ink); min-height: auto; padding: 56px 0; }
.page-hero.page-hero-light .breadcrumb, .page-hero.page-hero-light .breadcrumb a { color: var(--muted); opacity: 1; }
.page-hero.page-hero-light p { color: var(--muted); opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-32px); }
.reveal-left.in { transform: translateX(0); }
.reveal-right { transform: translateX(32px); }
.reveal-right.in { transform: translateX(0); }

/* ---------- Cards: offset-panel hover (service-card pattern) ---------- */
.card-wrap { position: relative; display: flex; }
.card-backer { position: absolute; top: 10px; left: 10px; right: -10px; bottom: -10px; background: var(--grey); opacity: 0; transition: opacity 0.2s ease; }
.card-wrap:hover .card-backer { opacity: 1; }
.card {
  position: relative; width: 100%; background: #fff; border: 1px solid var(--line); padding: 30px;
  display: flex; flex-direction: column;
}
.card p { color: var(--muted); margin-bottom: 0; }
.card h3 { text-align: center; }
.card .btn { align-self: center; margin-top: auto; }
.card-link { text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.card-link:hover { border-color: var(--blue); transform: translateY(-3px); }
.card-icon { width: 52px; height: 52px; color: var(--blue); margin-bottom: 16px; }
.card-icon svg { width: 100%; height: 100%; }
.card-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--blue); margin-bottom: 10px;
}
.card .photo { margin: -30px -30px 20px; aspect-ratio: 16/10; overflow: hidden; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-link:hover .photo img { transform: scale(1.06); }

/* ---------- Framed media (photo with simple border treatment) ---------- */
.framed-media { position: relative; }
.framed-media img { border: 1px solid var(--line); border-radius: 6px; }

/* Back-compat: existing page markup uses .diamond-photo > .frame + .clip > picture.
   No diamond clipping any more — just a clean framed photo, border only, no shadow. */
.diamond-photo { position: relative; }
.diamond-photo .frame { display: none; }
.diamond-photo .clip { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.diamond-photo .clip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; aspect-ratio: 4/3; }
.diamond-photo:hover .clip img { transform: scale(1.04); }

/* Diamond-shape variant: actual rhombus clip, no card border/frame */
.diamond-photo.diamond-shape .clip { border: none; border-radius: 0; }
.diamond-photo.diamond-shape .clip img { aspect-ratio: 1/1; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }

/* Exact-photo variant: a styled card sized to the photo's own aspect ratio
   (set inline per image) so it fills the card completely with no cropping
   and no letterbox gaps. */
.diamond-photo.exact-photo { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(12,43,97,0.12); overflow: hidden; aspect-ratio: 4/3; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.diamond-photo.exact-photo:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(12,43,97,0.2); }
.diamond-photo.exact-photo picture { display: block; width: 100%; height: 100%; }
.diamond-photo.exact-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Square placeholder for a photo spot not yet filled in */
.photo-placeholder { aspect-ratio: 1/1; background: var(--grey); border: 1.5px dashed var(--blue); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--blue); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Styled quote-like card, used to lift a short statement off the page */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
blockquote.inline-quote { margin: 0 0 18px; padding: 0 0 0 18px; border-left: 3px solid var(--blue); font-style: italic; color: var(--ink); }
blockquote.inline-quote cite { display: block; margin-top: 10px; font-size: 0.82rem; font-weight: 700; font-style: normal; color: var(--muted); }

/* Affiliation logo cards (About page) */
.affiliation-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px 18px; text-align: center; transition: border-color 0.2s, transform 0.2s; }
.affiliation-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.affiliation-logo { height: 90px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.affiliation-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* S.P.A.R.K value cards — letters build up on scroll to spell SPARK */
.value-cards { display: grid; gap: 16px; grid-template-columns: repeat(5, minmax(0,1fr)); }
.value-card { background: #fff; border: 1px solid var(--line); padding: 20px; text-align: center; transition: border-color 0.2s, transform 0.2s; }
.value-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.value-card .letter { font-weight: 800; color: #fff; background: var(--blue); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 12px; }
.value-card .icon { color: var(--blue); background: rgba(12,43,97,0.08); width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.value-card .icon svg { width: 26px; height: 26px; }
.value-card h4 { font-size: 0.96rem; margin-bottom: 6px; }
.value-card p { font-size: 0.85rem; margin: 0; }
@media (max-width: 960px) { .value-cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 640px) {
  .value-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .value-cards .value-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 8px); margin: 0 auto; }
}

/* Scout Law grid (About page) — calm bordered tiles, not solid colour */
.law-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.law-tile { background: #fff; border: 1px solid var(--line); padding: 16px 18px; display: flex; align-items: center; gap: 14px; transition: border-color 0.2s, transform 0.2s; }
.law-tile:hover { border-color: var(--blue); transform: translateY(-3px); }
.law-tile .num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; }
.law-tile h4 { font-size: 0.96rem; margin: 0; color: var(--ink); text-align: left; }
@media (max-width: 960px) { .law-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) {
  .law-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .law-tile { padding: 12px 10px; gap: 8px; }
  .law-tile .num { width: 28px; height: 28px; font-size: 0.82rem; }
  .law-tile h4 { font-size: 0.82rem; }
}

/* Approach items (Internal Programs — "More ways to explore") */
.approach-item { background: #fff; border: 1px solid var(--line); padding: 32px 26px; text-align: center; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.approach-item:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(12,43,97,0.1); }
.approach-item .num { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.approach-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.approach-item p { color: var(--muted); margin: 0; font-size: 0.9rem; }

/* ---------- Stats ---------- */
.stats-band { background: var(--blue); padding: 60px 0; }
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.stat-tile { flex: 1 1 170px; max-width: 210px; text-align: center; border: 1px solid rgba(255,255,255,0.35); padding: 24px 18px; }
.stat-value { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: 8px; }
.stat-label { font-size: 0.85rem; color: #fff; opacity: 0.88; font-weight: 600; }

/* ---------- Values / checklist ---------- */
.values-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.value-row { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); background: #fff; color: var(--muted); transition: border-color 0.2s, transform 0.2s; }
.value-row:hover { border-color: var(--blue); transform: translateY(-2px); }
.value-row strong { color: var(--ink); }
.value-check { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; background: var(--grey); color: var(--blue); font-weight: 800; border-radius: 50%; }

/* ---------- Numbered steps ---------- */
.numbered-grid { display: grid; gap: 20px; grid-template-columns: repeat(5, minmax(0,1fr)); }
.numbered-item { background: #fff; border: 1px solid var(--line); padding: 24px; transition: border-color 0.2s, transform 0.2s; }
.numbered-item:hover { border-color: var(--blue); transform: translateY(-4px); }
.numbered-item .num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--blue); color: #fff; font-size: 0.82rem; font-weight: 800; margin-bottom: 14px; }
.numbered-item h3 { margin-bottom: 6px; font-size: 1rem; }
.numbered-item p { font-size: 0.9rem; margin: 0; }

/* ---------- Service list rows ---------- */
.item-row { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.item-row:first-child { border-top: none; }
.item-row-link { text-decoration: none; color: inherit; transition: background-color 0.2s ease, padding 0.2s ease; }
.item-row-link:hover { background: var(--grey); padding-left: 10px; padding-right: 10px; margin: 0 -10px; }
.item-row-link h3 { transition: color 0.2s; }
.item-row-link:hover h3 { color: var(--blue); }
.item-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--grey); color: var(--blue); }
.item-icon svg { width: 26px; height: 26px; }

/* ---------- History grid (compact cards, replaces a very long vertical timeline) ---------- */
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.history-card { background: #fff; border: 1px solid var(--line); padding: 18px; text-align: center; transition: border-color 0.2s, transform 0.2s; }
.history-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.history-card .badge { width: 46px; height: 46px; object-fit: contain; margin: 0 auto 10px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.history-card .badge-empty { border: none; background: none; }
.history-card .year { display: block; font-weight: 800; color: var(--blue); font-size: 0.95rem; margin-bottom: 6px; }
.history-card .flags { display: flex; justify-content: center; gap: 4px; margin-bottom: 6px; }
.history-card h4 { font-size: 0.9rem; margin: 0 0 2px; }
.history-card p { margin: 0; font-size: 0.8rem; }
.history-card .flag { width: 20px; height: 14px; object-fit: cover; border: 1px solid var(--line); vertical-align: middle; }
.history-card.upcoming { position: relative; border-color: var(--red); background: #fff5f5; }
.history-card.upcoming:hover { border-color: var(--red); }
.history-card.upcoming .year { color: var(--red); }
@media (max-width: 640px) {
  .history-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .history-card { padding: 12px 8px; }
  .history-card .badge { width: 36px; height: 36px; }
}
.history-card .soon-badge { position: absolute; top: -10px; right: -8px; background: var(--red); color: #fff; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(228,6,19,0.3); }

/* ---------- Photo band: a plain image used between sections, not a gallery ---------- */
.photo-band { display: flex; gap: 4px; }
.photo-band img { flex: 1 1 0; width: 100%; height: 420px; object-fit: cover; display: block; min-width: 0; }
@media (max-width: 760px) { .photo-band { flex-wrap: wrap; } .photo-band img { height: 260px; flex-basis: 100%; } }

.photo-band.styled { gap: 24px; padding: 0 24px; }
.photo-band.styled img { border-radius: 14px; box-shadow: 0 10px 28px rgba(12,43,97,0.18); }
@media (max-width: 760px) { .photo-band.styled { gap: 16px; padding: 0 16px; } }

/* ---------- Timeline (Delegations history) ---------- */
.timeline { position: relative; max-width: 880px; margin: 0 auto; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 30px; display: flex; gap: 16px; align-items: flex-start; }
.timeline-item::before { content: ''; position: absolute; left: -32px; top: 4px; width: 13px; height: 13px; background: #fff; border: 3px solid var(--blue); border-radius: 50%; }
.timeline-item .year { font-weight: 800; color: var(--blue); font-size: 1.05rem; flex-shrink: 0; width: 56px; }
.timeline-item .badge { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; border: 1px solid var(--line); background: #fff; padding: 4px; }
.timeline-item .flag { width: 22px; height: 16px; object-fit: cover; border: 1px solid var(--line); vertical-align: middle; margin-right: 4px; }
.timeline-item .body { flex: 1; }
.timeline-item h4 { margin: 4px 0 2px; font-size: 1rem; }
.timeline-item p { margin: 0; font-size: 0.88rem; }
@media (max-width: 640px) {
  .timeline-item { flex-wrap: wrap; }
  .timeline-item .year { width: auto; }
}

/* ---------- Quote band (solid primary — no photo overlay) ---------- */
.quote-band { position: relative; background: var(--blue); padding: 90px 24px; text-align: center; color: #fff; }
.quote-band blockquote { position: relative; max-width: 740px; margin: 0 auto; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; font-style: italic; }
.quote-band cite { position: relative; display: block; margin-top: 16px; font-size: 0.88rem; opacity: 0.85; font-style: normal; }

/* ---------- Logo scroller (camp logos marquee) ---------- */
.logo-scroller-wrap { overflow: hidden; background: #fff; padding: 12px 0; }
.logo-scroller { display: flex; gap: 20px; width: max-content; animation: scrollLogos 34s linear infinite; }
@keyframes scrollLogos { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-tile {
  width: 84px; height: 84px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); padding: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.logo-tile:hover { transform: scale(1.18); border-color: var(--blue); z-index: 1; }
.logo-tile img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter-btn { padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 0.84rem; color: var(--muted); transition: all 0.2s; }
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Highlight / article cards ---------- */
.highlight-card { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; }
.highlight-card:hover { transform: translateY(-5px); border-color: var(--blue); }
.highlight-card .photo { aspect-ratio: 16/10; overflow: hidden; }
.highlight-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.highlight-card .photo.contain { background: #fff; }
.highlight-card .photo.contain img { object-fit: contain; }
.highlight-card:hover .photo img { transform: scale(1.05); }
.highlight-card .body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.highlight-card .body h3 { font-size: 1.02rem; text-align: center; }
.highlight-card .body p { font-size: 0.9rem; flex: 1; }
.highlight-card .date-tag { font-size: 0.74rem; font-weight: 800; color: #cb2c28; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; text-align: center; }

/* ---------- Testimonials: carousel + grid card ---------- */
.testimonial-card { background: #fff; border: 1px solid var(--line); padding: 28px; text-align: center; }
.testimonial-card .avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 1px solid var(--line); }
.testimonial-card .quote { font-style: italic; color: var(--ink); margin-bottom: 14px; }
.testimonial-card .name { font-weight: 800; margin-bottom: 2px; }
.testimonial-card .role { font-size: 0.82rem; color: var(--blue); font-weight: 700; }

.t-carousel { position: relative; max-width: 640px; margin: 0 auto; overflow: hidden; }
.t-track { display: flex; transition: transform 0.45s ease; }
.t-slide { flex: 0 0 100%; padding: 0 4px; }
.t-arrows { display: flex; justify-content: center; gap: 14px; margin-top: 24px; }
.t-arrow { appearance: none; -webkit-appearance: none; padding: 0; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--blue); transition: background 0.2s, color 0.2s; }
.t-arrow:hover { background: var(--blue); color: #fff; }
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.t-dot { appearance: none; -webkit-appearance: none; padding: 0; width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; border: none; background: var(--line); transition: background 0.2s, transform 0.2s; }
.t-dot.active { background: var(--blue); transform: scale(1.2); }

.masonry { columns: 3; gap: 20px; }
.masonry .m-item { break-inside: avoid; margin-bottom: 20px; border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; transition: transform 0.25s ease; }
.masonry .m-item:hover { transform: translateY(-3px); }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 600px) { .masonry { columns: 1; } }

.lightbox { position: fixed; inset: 0; background: rgba(242,242,242,0.97); z-index: 300; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border: 1px solid var(--line); }
.lightbox .lb-close { position: absolute; top: 24px; right: 32px; color: var(--blue); font-size: 2rem; background: none; border: none; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: 1px solid var(--line); color: var(--blue); width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; }
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }

/* ---------- Gallery grid ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; cursor: zoom-in; transition: transform 0.25s; }
.gallery-grid img:hover { transform: scale(1.03); }

.article-photo { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(12,43,97,0.12); overflow: hidden; aspect-ratio: 3/4; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.article-photo:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(12,43,97,0.2); }
.article-photo img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }

.intro-photo-stretch { aspect-ratio: auto; position: relative; align-self: start; height: calc(100% + 70px); }
.intro-photo-stretch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .intro-photo-stretch { height: auto; aspect-ratio: 4/3; align-self: auto; }
  .intro-photo-stretch img { position: static; }
}

.cutout-photo { text-align: center; }
.cutout-photo img { max-width: 100%; max-height: 420px; width: auto; height: auto; display: inline-block; filter: drop-shadow(0 20px 28px rgba(12,43,97,0.22)); }
.cutout-photo.small img { max-height: 170px; }
.cutout-photo.large img { max-height: 640px; }
.cutout-photo p { margin: 14px 0 0; font-weight: 700; color: var(--blue); }

/* ---------- Forms ---------- */
.form-wrap { background: #fff; border: 1px solid var(--line); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 7px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); background: var(--bg-alt);
  font-family: inherit; font-size: 0.93rem; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--blue); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; justify-content: center; border: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: #fff; padding: 28px 0 0; }
.site-footer .container { max-width: 1440px; }
.site-footer p, .site-footer li { color: #fff; opacity: 0.82; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.3); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 44px; }
.footer-col-title { color: #fff; opacity: 1; font-weight: 800; margin-bottom: 16px; font-size: 0.92rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.88rem; transition: opacity 0.2s, padding-left 0.2s; }
.footer-links a:hover { opacity: 1; padding-left: 4px; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.18); color: #fff; transition: background 0.2s, color 0.2s, transform 0.2s; }
.social-links a:hover { background: #fff; color: var(--blue); transform: translateY(-3px); }
.social-links svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 22px 0; font-size: 0.8rem; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 150; width: 56px; height: 56px; display: block; transition: transform 0.25s; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float img { width: 100%; height: 100%; }

/* ---------- Lite YouTube embed ---------- */
.lite-yt { position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; background: var(--ink); border-radius: 14px; box-shadow: 0 10px 28px rgba(12,43,97,0.18); transition: transform 0.25s, box-shadow 0.25s; }
.lite-yt:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(12,43,97,0.26); }
.lite-yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity 0.25s; }
.lite-yt:hover img { opacity: 0.68; }
.lite-yt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,43,97,0.08) 0%, rgba(12,43,97,0.38) 100%); pointer-events: none; }
.lite-yt .play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.lite-yt .play span { width: 70px; height: 70px; border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(12,43,97,0.35); display: grid; place-items: center; transition: background 0.25s, transform 0.25s, box-shadow 0.25s; }
.lite-yt:hover .play span { transform: scale(1.1); background: var(--blue); box-shadow: 0 10px 26px rgba(12,43,97,0.5); }
.lite-yt .play svg { width: 26px; height: 26px; fill: var(--blue); margin-left: 3px; transition: fill 0.25s; }
.lite-yt:hover .play svg { fill: #fff; }
.lite-yt iframe { width: 100%; height: 100%; border: none; }

/* ---------- Fill-in / confirm markers (content scaffolding, not brand UI) ---------- */
.fill-in { display: inline-block; background: var(--grey); border: 1.5px dashed var(--blue); color: var(--blue); font-weight: 700; padding: 2px 10px; font-size: 0.86em; }
.confirm-note { display: inline-block; background: var(--grey); border: 1.5px dashed var(--red); color: var(--red); font-weight: 700; padding: 2px 10px; font-size: 0.86em; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 12px 20px; z-index: 999; }
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .values-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .numbered-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .masonry { columns: 2; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-align-rows .eyebrow.reveal-left { order: 1; }
  .grid-align-rows h2.reveal-left { order: 2; }
  .grid-align-rows p.reveal-left:not(.eyebrow) { order: 3; }
  .grid-align-rows .eyebrow.reveal-right { order: 4; }
  .grid-align-rows h2.reveal-right { order: 5; }
  .grid-align-rows p.reveal-right:not(.eyebrow) { order: 6; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
  .numbered-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-header .container { padding: 0 16px; }
  .brand img { height: 38px; }
  .brand-text { font-size: 0.86rem; }
}
