/*
Theme Name: IFSD
Theme URI: https://ifsd.pk
Author: IFSD
Author URI: https://ifsd.pk
Description: A custom WordPress theme for Initiatives for Sustainable Development (IFSD), built from the organization's site design. Includes custom post types for Programs, Projects, Publications, Team, Partners and Content Cards, a News & Events blog, a working contact form, and full Customizer support for contact details, social links and impact stats.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ifsd
*/

:root {
  --primary: #1a5c3e;
  --primary-dark: #0f3d28;
  --primary-light: #e8f5ee;
  --accent: #c0392b;
  --accent-light: #fdf0ee;
  --gold: #d4a017;
  --text: #1c1c1c;
  --text-muted: #5a5a5a;
  --text-light: #888;
  --bg: #ffffff;
  --bg-soft: #f7f9f7;
  --bg-dark: #0d2b1c;
  --border: #e0e8e3;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ===== ACCESSIBILITY ===== */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute;
  top: -999px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 999999;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus { top: 0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===== NAVIGATION ===== */
.topbar {
  background: #fff;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--text-muted); text-decoration: none; margin-left: 16px; }
.topbar a:hover { color: var(--primary); }
.social-icons { display: flex; gap: 12px; flex-wrap: wrap; }

.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar nav { top: 46px; }
}

nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img { max-height: 52px; width: auto; }
.logo-mark {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-text strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}
.logo-text span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links li { position: relative; }
.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--primary); background: var(--primary-light); }
.nav-links .btn-nav {
  background: var(--primary);
  color: #fff;
  padding: 9px 20px;
  border-radius: 30px;
  margin-left: 8px;
}
.nav-links .btn-nav:hover { background: var(--primary-dark); color: #fff; }
.nav-links .current-menu-item > a.btn-nav,
.nav-links .current_page_item > a.btn-nav { background: var(--primary-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: all 0.2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== HERO ===== */
.hero {
  background: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.5;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #246b49; color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 60px;
}
.stat-item {
  background: #fff;
  padding: 28px 24px;
  text-align: center;
}
.stat-item:hover { background: var(--primary-light); }
.stat-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-header p { font-size: 17px; color: var(--text-muted); max-width: 580px; margin: 0 auto; }

section { padding: 80px 0; }
section.bg-soft { background: var(--bg-soft); }

/* ===== ABOUT STRIP ===== */
.about-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 40px;
  align-items: center;
}
.about-strip-divider { background: var(--border); height: 80px; }
.about-item { text-align: center; padding: 0 20px; }
.about-item h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.about-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--primary); }
.card-icon {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
}
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== TWO COLUMN ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.col-visual {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.col-content h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.col-content p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.check-list { list-style: none; }
.check-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
  font-size: 15px;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== THEMATIC AREAS ===== */
.thematic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.thematic-item {
  background: #fff;
  padding: 36px 28px;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.thematic-item:hover { background: var(--primary); }
.thematic-item:hover h3,
.thematic-item:hover p { color: #fff; }
.thematic-item:hover .thematic-icon { background: rgba(255,255,255,0.15); }
.thematic-icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  transition: all 0.2s;
}
.thematic-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.thematic-item p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== SDG STRIP ===== */
.sdg-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 32px; }
.sdg-badge {
  background: var(--primary);
  color: #fff;
  width: 80px; height: 80px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.2s;
}
.sdg-badge:hover { transform: scale(1.08); }
.sdg-badge .sdg-num { font-size: 26px; line-height: 1; }
.sdg-badge .sdg-lbl { font-size: 9px; text-align: center; padding: 0 4px; line-height: 1.2; margin-top: 4px; opacity: 0.85; }
.sdg-badge.sdg-1 { background: #e5243b; }
.sdg-badge.sdg-3 { background: #4c9f38; }
.sdg-badge.sdg-5 { background: #ff3a21; }
.sdg-badge.sdg-10 { background: #dd1367; }
.sdg-badge.sdg-13 { background: #3f7e44; }
.sdg-badge.sdg-16 { background: #00689d; }
.sdg-badge.sdg-17 { background: #19486a; }

/* ===== PARTNERS ===== */
.partners-strip { background: var(--bg-dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 60px 0; }
.partners-strip .section-eyebrow { color: #fff; border-color: rgba(255,255,255,0.4); }
.partners-strip h2 { color: #fff; }
.partners-strip .section-header p { color: rgba(255,255,255,0.7); }
.partners-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }
.partner-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
}
.partner-tag:hover { background: rgba(255,255,255,0.16); }

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  background: #fff;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-img {
  height: 180px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  overflow: hidden;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 24px; }
.news-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.news-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; color: var(--text); }
.news-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.news-meta { font-size: 12px; color: var(--text-light); margin-top: 12px; }

/* ===== PAGE HEADERS ===== */
.page-header {
  background: #fff;
  padding: 64px 0 48px;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--gold));
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }
.page-header h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.page-header p { color: var(--text-muted); font-size: 17px; max-width: 600px; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -36px; top: 4px;
  width: 20px; height: 20px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: 1px; margin-bottom: 4px; }
.timeline-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.timeline-item p { font-size: 14px; color: var(--text-muted); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border-left: 4px solid var(--primary);
}
.value-card h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-muted); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.2s;
}
.team-card:hover { box-shadow: var(--shadow); }
.team-avatar {
  width: 80px; height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.team-card .role { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 13px; color: var(--text-muted); }

/* ===== WHAT WE DO / PROGRAMS ===== */
.program-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
}
.program-header {
  background: var(--primary);
  color: #fff;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.program-header .prog-icon { font-size: 36px; }
.program-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.program-header p { font-size: 14px; color: rgba(255,255,255,0.85); }
.program-body { padding: 36px; background: #fff; }
.program-body p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.program-body p:last-child { margin-bottom: 0; }
.sub-programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.sub-prog {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--primary);
}
.sub-prog h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.sub-prog p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ===== PROJECTS ===== */
.projects-table { width: 100%; border-collapse: collapse; background: #fff; }
.projects-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.projects-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}
.projects-table tr:hover td { background: var(--primary-light); }
.donor-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ===== IMPACT ===== */
.impact-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.impact-num {
  text-align: center;
  padding: 36px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--primary);
}
.impact-num .num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.impact-num .lbl { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ===== GET INVOLVED ===== */
.involve-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.involve-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: all 0.2s;
}
.involve-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.involve-card .ic-icon { font-size: 44px; margin-bottom: 20px; }
.involve-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.involve-card p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--text); }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border: none; margin: 0; padding: 0; }
.contact-item .ci-icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item .ci-text h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.contact-item .ci-text p { font-size: 14px; color: var(--text-muted); }
.contact-item .ci-text a { color: var(--primary); text-decoration: none; }
.contact-item .ci-text a:hover { text-decoration: underline; }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--text); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--primary); }
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
}
.form-note.success { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary); }
.form-note.error { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-soft);
  color: var(--text-muted);
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-col h4 { color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.footer-col p { font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo .lm { width: 44px; height: 44px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.footer-logo strong { color: var(--text); font-size: 17px; }
.footer-widgets { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover { background: var(--primary); color: #fff; }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--bg-soft);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { font-family: var(--font-display); font-size: 38px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.cta-band p { font-size: 17px; color: var(--text-muted); max-width: 520px; margin: 0 auto 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: var(--primary); color: #fff; }
.btn-white:hover { background: var(--primary-dark); color: #fff; }
.btn-outline-white { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-white:hover { background: var(--primary-light); }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green { background: var(--primary-light); color: var(--primary); }
.badge-red { background: var(--accent-light); color: var(--accent); }

/* ===== GEOGRAPHIC ===== */
.geo-section { background: #fff; padding: 60px 0; }
.province-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.province-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border-top: 4px solid var(--primary);
}
.province-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.province-card .dist-count { font-size: 28px; font-weight: 700; font-family: var(--font-display); margin-bottom: 8px; }
.province-card p { font-size: 13px; color: var(--text-muted); }

/* ===== PUBLICATIONS ===== */
.pub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pub-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  align-items: flex-start;
  transition: all 0.2s;
}
.pub-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.pub-thumb {
  width: 60px; height: 80px;
  background: var(--primary);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 24px;
}
.pub-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.pub-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.pub-info .pub-meta { font-size: 12px; color: var(--text-light); }
.pub-info .pub-download { font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none; }
.pub-info .pub-download:hover { text-decoration: underline; }

/* ===== STRATEGIC PRIORITIES ===== */
.priorities-list { counter-reset: priority; }
.priority-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.priority-item:last-child { border: none; }
.priority-num {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.priority-text h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.priority-text p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== WORDPRESS CORE / BLOCK EDITOR SUPPORT ===== */
.alignwide { max-width: 1140px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 24px 12px 0; }
.alignright { float: right; margin: 0 0 12px 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-muted); padding: 8px 0; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-family: var(--font-display); font-size: 30px; margin-top: 1.4em; color: var(--text); }
.entry-content h3 { font-size: 22px; margin-top: 1.2em; color: var(--text); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; color: var(--text-muted); }
.entry-content a { color: var(--primary); }
.entry-content blockquote { border-left: 4px solid var(--primary); padding-left: 20px; color: var(--text-muted); font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content table td, .entry-content table th { border: 1px solid var(--border); padding: 10px; }

/* ===== SEARCH / 404 / GENERIC PAGE ===== */
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.search-form button { border-radius: var(--radius); }
.no-results { text-align: center; padding: 40px 0; color: var(--text-muted); }
.error-404 { text-align: center; padding: 100px 0; }
.error-404 .code { font-family: var(--font-display); font-size: 96px; color: var(--primary); font-weight: 700; line-height: 1; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

.news-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.widget-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.widget ul { list-style: none; }
.widget ul li { margin-bottom: 10px; font-size: 14px; }
.widget ul li a { color: var(--text-muted); text-decoration: none; }
.widget ul li a:hover { color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero h1 { font-size: 38px; }
  .hero-stats { grid-template-columns: 1fr; }
  .cards-grid, .thematic-grid, .news-grid, .province-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid, .pub-grid, .involve-grid, .news-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .impact-numbers { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .about-strip-inner { grid-template-columns: 1fr; }
  .about-strip-divider { display: none; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 24px 16px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 8px; }
  .nav-links .btn-nav { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 600px) {
  .cards-grid, .thematic-grid, .news-grid, .values-grid, .team-grid, .involve-grid, .province-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 60px 0 48px; }
  .section-header h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sub-programs { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .impact-numbers { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
  .program-header { flex-direction: column; align-items: flex-start; text-align: left; }
}
