/*
Theme Name: HICODEF
Theme URI: https://hicodef.org
Author: Claude / Anthropic
Description: Official theme for Himalayan Community Development Forum — Kawasoti-02, Nawalparasi, Nepal. Est. 2053 BS.
Version: 5.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
Text Domain: hicodef
*/

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --forest:  #2c5f2e;
  --forest2: #3a7a3c;
  --forest3: #e8f2e8;
  --earth:   #c4773a;
  --earth2:  #e8943d;
  --cream:   #faf8f4;
  --cream2:  #f2ede4;
  --ink:     #1a1612;
  --ink2:    #3d3530;
  --ink3:    #7a6e62;
  --border:  #e0d8cc;
  --white:   #ffffff;
  --serif:   'Lora', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
  --radius:  14px;
  --shadow:  0 2px 20px rgba(0,0,0,.07);
  --max:     1160px;
}

/* ── Base ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a:not([class]) { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
a:not([class]):hover { color: var(--forest2); }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .3rem; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 72px 0; }
.bg-cream { background: var(--cream); }

/* ── Skip link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--forest);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 13px;
  transition: top .2s;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ── HEADER ───────────────────────────────────────────────── */
.site-header-outer {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 10px 24px;
  pointer-events: none;
}

.site-header {
  pointer-events: all;
  max-width: var(--max);
  margin: 0 auto;
}

.header-pill {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 8px 10px;
  transition: box-shadow .3s;
  min-height: 68px; /* Fixed height regardless of logo size */
}

.header-pill.scrolled { box-shadow: 0 4px 28px rgba(0,0,0,.13); }

/* Logo */
.site-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 2px 14px 2px 4px;
}

/* Custom logo — auto-sizes within 250x80, text hidden when logo present */
.site-logo-link .custom-logo-link { display: flex; align-items: center; }
.site-logo-link .custom-logo-link img,
.site-logo-link img.custom-logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 250px !important;
  max-height: 80px !important;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 600px) {
  .site-logo-link .custom-logo-link img,
  .site-logo-link img.custom-logo {
    max-width: 180px !important;
    max-height: 54px !important;
  }
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-sky {
  background: #7ecfdf;
  height: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.logo-peak {
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 13px solid var(--cream);
  margin-bottom: -1px;
}
.logo-hill {
  background: var(--forest);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-hill span {
  font-size: 6px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  letter-spacing: .05em;
  font-family: var(--sans);
}

.logo-text { display: flex; flex-direction: column; }
.logo-text .en {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
}
.logo-text .np {
  font-size: 9.5px;
  color: var(--ink3);
  white-space: nowrap;
}

/* Nav divider */
.header-div {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* Navigation */
.header-nav {
  flex: 1;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0 10px;
}

.nav-list > li { position: relative; }

.nav-list > li > a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink2);
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li:hover > a {
  background: var(--cream2);
  color: var(--forest);
}

.nav-list > li.current-menu-item > a,
.nav-list > li.current-menu-ancestor > a {
  background: var(--forest3);
  color: var(--forest);
  font-weight: 500;
}

/* Dropdown arrow */
.nav-list li.menu-item-has-children > a::after {
  content: ' ›';
  opacity: .4;
}

/* Dropdown */
.nav-list .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  min-width: 200px;
  list-style: none;
  z-index: 300;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu { display: block; }

.nav-list .sub-menu li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink2);
  text-decoration: none;
  transition: background .13s;
}

.nav-list .sub-menu li a:hover {
  background: var(--cream2);
  color: var(--forest);
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-left: 8px;
}

.header-badge {
  font-size: 9.5px;
  color: var(--ink3);
  background: var(--cream2);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.header-search-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--cream2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink3);
  transition: background .15s, color .15s;
}
.header-search-btn:hover { background: var(--cream); color: var(--forest); }
.header-search-btn svg { width: 15px; height: 15px; }

.header-cta {
  display: inline-flex;
  padding: 8px 18px;
  background: var(--earth);
  color: var(--white);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.header-cta:hover { background: var(--earth2); color: var(--white); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--cream2);
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink2);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Search bar */
.header-search-bar {
  margin-top: 8px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 10px 16px;
  box-shadow: var(--shadow);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.header-search-bar .search-form { display: flex; gap: 8px; }
.header-search-bar input[type="search"] {
  flex: 1; border: none; outline: none;
  font-size: 14px; font-family: var(--sans); color: var(--ink);
  background: transparent;
}
.header-search-bar .search-submit {
  padding: 7px 16px; background: var(--forest); color: #fff;
  border: none; border-radius: 8px; font-size: 13px;
  font-family: var(--sans); cursor: pointer;
}

/* ── SLIDER ───────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  height: 480px;
  background: var(--ink);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .75s ease;
}
.slide.is-active { opacity: 1; }

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,10,5,.82) 0%, rgba(15,10,5,.22) 55%, transparent 100%);
}

.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 40px;
}

.slide-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  display: block;
  margin-bottom: 8px;
}

.slide-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.slide-desc {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  line-height: 1.6;
}

/* Empty slide */
.slide-empty {
  background: linear-gradient(135deg, #1e4520 0%, #2c5f2e 100%);
}

.slide-empty .slide-caption { padding-bottom: 48px; }

/* Slider controls */
.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.slider-arrow:hover { background: rgba(255,255,255,.28); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 18px; right: 20px;
  display: flex; gap: 7px;
  z-index: 10;
}
.slider-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.slider-dot.is-active { background: #fff; transform: scale(1.3); }

.slider-counter {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  z-index: 10;
  letter-spacing: .06em;
}

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  background: var(--forest);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 12px 16px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem,3vw,2.2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-lbl {
  display: block;
  font-size: 11.5px;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
}

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 10px;
}

.section-head h2 { margin-bottom: 8px; }

.divider-line {
  width: 36px; height: 2px;
  background: var(--earth);
  margin: 14px auto 0;
}

.section-head p {
  color: var(--ink3);
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 15px;
}

/* ── THEMATIC AREAS ───────────────────────────────────────── */
.thematic-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 12px;
}

.thematic-card.has-img { position: relative; overflow: hidden; }
.thematic-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit; z-index: 0; transition: transform .3s;
}
.thematic-card.has-img:hover .thematic-bg-img { transform: scale(1.05); }
.thematic-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  border-radius: inherit; z-index: 1;
}
.thematic-card.has-img .thematic-icon,
.thematic-card.has-img .thematic-label,
.thematic-card.has-img span { position: relative; z-index: 2; color: #fff !important; background: transparent !important; }

.thematic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 12px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink2);
  text-decoration: none;
  transition: all .2s;
  gap: 8px;
}
.thematic-card:hover {
  border-color: var(--forest);
  background: var(--forest3);
  transform: translateY(-2px);
  color: var(--forest);
}
.thematic-icon { font-size: 1.8rem; line-height: 1; }
.thematic-label { font-size: .8rem; font-weight: 500; line-height: 1.35; }

/* ── CARDS ────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

.card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream2);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px; }
.card-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--earth);
  display: block;
  margin-bottom: 8px;
}
.card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card-body h3 a { text-decoration: none; color: var(--ink); }
.card-body h3 a:hover { color: var(--forest); }
.card-body p { font-size: 14px; color: var(--ink3); margin-bottom: 12px; }
.card-meta { font-size: 12.5px; color: var(--ink3); margin-bottom: 4px; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1.5px solid var(--forest3);
  transition: border-color .15s;
}
.btn-link:hover { border-color: var(--forest); color: var(--forest); }
.btn-link::after { content: '→'; transition: transform .15s; }
.btn-link:hover::after { transform: translateX(3px); }

.btn-primary {
  display: inline-flex;
  padding: 12px 28px;
  background: var(--forest);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s;
}
.btn-primary:hover { background: var(--forest2); color: #fff; }

.btn-outline {
  display: inline-flex;
  padding: 11px 28px;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
}
.btn-outline:hover { background: var(--forest); color: #fff; }

.empty-msg {
  text-align: center;
  color: var(--ink3);
  font-style: italic;
  padding: 48px 0;
}

/* ── PARTNER CAROUSEL ─────────────────────────────────────── */
.partners-section {
  padding: 52px 0 44px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-head { text-align: center; margin-bottom: 32px; }
.partners-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--earth);
  display: block;
  margin-bottom: 6px;
}
.partners-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
}
.partners-rule { width: 32px; height: 2px; background: var(--earth); margin: 0 auto; }

.carousel-outer {
  position: relative;
  overflow: hidden;
}
.carousel-fade-l {
  position: absolute; left: 0; top: 0; bottom: 0; width: 60px; z-index: 2;
  background: linear-gradient(to right, var(--white), transparent);
  pointer-events: none;
}
.carousel-fade-r {
  position: absolute; right: 0; top: 0; bottom: 0; width: 60px; z-index: 2;
  background: linear-gradient(to left, var(--white), transparent);
  pointer-events: none;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 0;
  will-change: transform;
}

.partner-card {
  flex-shrink: 0;
  width: 160px;
  height: 130px;
  margin: 0 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 14px 10px 10px;
  transition: border-color .2s, box-shadow .2s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-card:hover {
  border-color: #b0a898;
  box-shadow: 0 3px 14px rgba(0,0,0,.08);
}
.partner-card a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; text-decoration: none; color: inherit;
}
.partner-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; width: 100%; height: 100%;
}
.partner-card img {
  max-width: 100px; max-height: 40px; object-fit: contain; display: block; flex-shrink: 0;
}
.partner-label {
  font-size: 10px; font-weight: 500; color: var(--ink3); text-align: center; line-height: 1.2;
  max-height: 2.4em; overflow: hidden; word-break: break-word; width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.partner-initials {
  width: 40px; height: 40px; border-radius: 10px; background: var(--forest3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--forest); flex-shrink: 0;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.carousel-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink2);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.carousel-arrow:hover { border-color: var(--forest); color: var(--forest); }

/* ── NEWS ─────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.news-col-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.news-col-head h2 { font-size: 1.3rem; }
.news-divider { width: 28px; height: 2px; background: var(--earth); margin-bottom: 20px; }

.news-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.news-thumb { flex-shrink: 0; }
.news-thumb img {
  width: 68px; height: 58px;
  object-fit: cover;
  border-radius: 8px;
}
.news-body { flex: 1; }
.news-date { font-size: 11.5px; color: var(--ink3); display: block; margin-bottom: 3px; }
.news-body h4 { font-size: .92rem; margin: 0; }
.news-body h4 a { text-decoration: none; color: var(--ink); }
.news-body h4 a:hover { color: var(--forest); }

.story-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.story-item h4 { font-family: var(--serif); font-size: .95rem; font-style: italic; margin-bottom: 4px; }
.story-item h4 a { text-decoration: none; color: var(--ink); }
.story-item h4 a:hover { color: var(--forest); }
.story-item p { font-size: 13.5px; color: var(--ink3); margin: 0; }

/* ── IMPACT BANNER ────────────────────────────────────────── */
.impact-banner {
  background: var(--forest);
  padding: 64px 0;
  text-align: center;
}
.impact-banner h2 {
  color: #fff;
  margin-bottom: 12px;
  font-size: clamp(1.4rem,3vw,2rem);
}
.impact-banner p { color: rgba(255,255,255,.72); margin-bottom: 28px; font-size: 15px; }
.banner-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  display: inline-flex;
  padding: 12px 28px;
  background: #fff;
  color: var(--forest);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
}
.btn-white:hover { background: var(--cream); color: var(--forest); }
.btn-outline-white {
  display: inline-flex;
  padding: 11px 28px;
  border: 1.5px solid rgba(255,255,255,.5);
  color: rgba(255,255,255,.9);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
}
.btn-outline-white:hover { border-color: #fff; color: #fff; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: #1a1612;
  color: rgba(255,255,255,.65);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.site-footer a { color: var(--footer-link, #8bc48e); }
.site-footer h4 { color: var(--footer-heading, #fff); }
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 2px;
}
.footer-brand-np { font-size: 10px; color: rgba(255,255,255,.35); font-style: italic; margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.5); margin-bottom: 16px; }

.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: rgba(255,255,255,.16); color: #fff; }
.footer-social svg { width: 15px; height: 15px; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .15s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,.9); }

.footer-contact li { font-size: 13px; color: rgba(255,255,255,.5); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span { font-size: 12px; color: rgba(255,255,255,.3); }
.footer-bottom a { color: rgba(255,255,255,.3); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.6); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .thematic-grid { grid-template-columns: repeat(5,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .header-badge { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-pill { position: relative; justify-content: space-between; }
  .header-nav {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--white); border-radius: 16px; border: 1px solid var(--border);
    padding: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); z-index: 100;
  }
  .header-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 0; }
  .nav-list > li > a { padding: 11px 14px; font-size: 14px; border-radius: 10px; }
  .nav-list .sub-menu { position: static; box-shadow: none; border: none; background: var(--cream2); border-radius: 10px; margin: 4px 0 4px 10px; padding: 4px; }
  .header-div { display: none; }
  .header-cta { display: none; }  /* Hide donate on mobile */
  .header-right { gap: 8px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .stat-item:nth-child(3), .stat-item:last-child { border-bottom: none; }
  .news-grid { grid-template-columns: 1fr; }
  .thematic-grid { grid-template-columns: repeat(2,1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .partner-card { width: 140px; height: 120px; margin: 0 6px; }
  .partner-card img { max-width: 80px; max-height: 32px; }
}

@media (max-width: 600px) {
  .section-pad { padding: 40px 0; }
  .hero-slider { height: 320px; }
  .slide-caption { padding: 16px; }
  .slide-title { font-size: 1.3rem !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .thematic-grid { grid-template-columns: 1fr 1fr; }
  .section-head h1, .section-head h2 { font-size: 1.3rem; }
  .site-logo-link { padding: 2px 8px 2px 2px; }
}

/* Footer uses DB-controlled colors */
.site-footer { background: var(--footer-bg, #1a1612); }
.site-footer, .site-footer a, .site-footer p, .site-footer li, .site-footer span { color: var(--footer-fg-muted, rgba(255,255,255,0.65)); }
.site-footer h4 { color: var(--footer-fg, rgba(255,255,255,0.9)); }
.site-footer a { color: var(--footer-link, #8bc48e); }
.site-footer h4 { color: var(--footer-heading, #fff); }
.footer-brand-name { color: var(--footer-fg, rgba(255,255,255,0.9)) !important; }
