:root {
  --border: #e2e0d8;
  --surface-1: #f4f2ec;
  --surface-2: #ffffff;
  --text-primary: #38610b;
  --text-secondary: #1f1e1c;
  --text-muted: #8a887f;
  --radius: 10px;
}

/* ==========================================================================
   1. HERO SECTION & DYNAMIC OVERLAY
   ========================================================================== */

.banner.prg,
.hero {
  position: relative !important;
  width: 100% !important;
  min-height: 400px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3rem 1.5rem !important;
  text-align: center !important;
  background-color: #1f301f !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  color: #ffffff !important;
  overflow: hidden !important;
  margin: 0 !important;
}

/* Dark gradient overlay on top of dynamic dynamic hero image */
.banner.prg::before,
.hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(20,30,20,0.45), rgba(20,30,20,0.7)) !important;
  z-index: 1 !important;
}

.banner.prg .container,
.hero .container {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  box-sizing: border-box !important;
}

.banner.prg h1,
.hero h1 {
  max-width: 980px !important;
  margin: 0 auto !important;
  color: #ffffff !important;
  font-size: 1.95rem !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
}

@media (max-width: 900px) {
  .banner.prg h1,
  .hero h1 {
    font-size: 1.65rem !important;
  }
}

@media (max-width: 600px) {
  .banner.prg h1,
  .hero h1 {
    font-size: 1.4rem !important;
  }
}


/* ==========================================================================
   2. LAYOUT & SIDEBAR REMOVAL
   ========================================================================== */

.main-section .we-provide,
.region-sidebar-first,
.region-sidebar-second {
  display: none !important;
}

.main-section .col-md-9,
.main-section .col-md-12 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.main-section .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* ==========================================================================
   3. MAIN CONTAINER & WRAPPER
   ========================================================================== */

.sida-project-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}

.sida-project-wrapper {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 2.5rem 24px 5rem !important;
  background: transparent !important;
  box-sizing: border-box !important;
  font-family: 'Poppins', sans-serif !important;
  color: var(--text-secondary, #1f1e1c);
  float: none !important;
}

.sida-project-wrapper .wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}


/* ==========================================================================
   4. STATS STRIP
   ========================================================================== */

.sida-project-wrapper .stat-strip {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 16px !important;
  background: #38610b !important;
  padding: 20px !important;
  border-radius: var(--radius) !important;
  margin: 0 0 2.5rem 0 !important;
  box-sizing: border-box !important;
}

.sida-project-wrapper .stat {
  min-width: 140px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
}

.sida-project-wrapper .stat .label {
  font-size: 11px !important;
  line-height: 1.2 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 6px !important;
}

.sida-project-wrapper .stat .value {
  font-size: 13.5px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
}

.sida-project-wrapper .pi-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.sida-project-wrapper .pi-avatar {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
}


/* ==========================================================================
   5. TYPOGRAPHY & SECTION HEADINGS
   ========================================================================== */

.content-section h2,
.sida-project-wrapper h2 {
  color: #2d5016 !important;
  font-size: 1.8rem !important;
  margin-top: 2rem !important;
  margin-bottom: 20px !important;
  border-bottom: 3px solid #4a7c23 !important;
  padding-bottom: 10px !important;
  font-weight: 600 !important;
}

.sida-project-wrapper h2:first-child {
  margin-top: 0 !important;
}

.sida-project-wrapper h3 {
  font-size: 1.3rem !important;
  color: var(--text-secondary, #1f1e1c) !important;
  margin-top: 1.8rem !important;
  margin-bottom: 0.8rem !important;
  font-weight: 600 !important;
}

.sida-project-wrapper p {
  line-height: 1.75 !important;
  font-size: 15.5px !important;
  margin-bottom: 1.35rem !important;
  color: #2b2a27 !important;
}

.sida-project-wrapper ul,
.sida-project-wrapper ol {
  padding-left: 1.75rem !important;
  margin-top: 0.5rem !important;
  margin-bottom: 1.5rem !important;
}

.sida-project-wrapper li {
  margin-bottom: 0.65rem !important;
  line-height: 1.7 !important;
  font-size: 15px !important;
}

.sida-project-wrapper .section a {
  color: var(--text-primary, #38610b) !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.sida-project-wrapper .section a:hover {
  color: #1f301f !important;
}


/* ==========================================================================
   6. TARGET GROUPS / TAG BADGES
   ========================================================================== */

.sida-project-wrapper .target-groups,
.sida-project-wrapper .tags,
.sida-project-wrapper [class*="target-group"],
.sida-project-wrapper .tag-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 14px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-top: 1rem !important;
  margin-bottom: 2rem !important;
  width: 100% !important;
}

.sida-project-wrapper .target-groups a,
.sida-project-wrapper .target-groups span,
.sida-project-wrapper .tags a,
.sida-project-wrapper .tags span,
.sida-project-wrapper [class*="target-group"] a,
.sida-project-wrapper [class*="target-group"] span,
.sida-project-wrapper [class*="target-group"] .field__item,
.sida-project-wrapper .tag {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  padding: 8px 16px !important;
  background-color: #eaf2e8 !important;
  color: #38610b !important;
  border: 1px solid #c3e0bd !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  line-height: 1.3 !important;
}


/* ==========================================================================
   7. ACCORDIONS (MATCHING H2 STYLE)
   ========================================================================== */

.sida-project-wrapper details {
  border: 1px solid var(--border, #e2e0d8) !important;
  border-radius: var(--radius, 10px) !important;
  background: var(--surface-2, #ffffff) !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  will-change: height;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.sida-project-wrapper details summary {
  list-style: none !important;
  cursor: pointer !important;
  padding: 1.2rem 1.6rem 10px 1.6rem !important;
  font-weight: 600 !important;
  font-size: 1.8rem !important;
  color: #2d5016 !important;
  background: #fbfbf8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 3px solid #4a7c23 !important;
  user-select: none !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.sida-project-wrapper details summary:hover {
  background-color: #f3f6f1 !important;
}

.sida-project-wrapper details summary::-webkit-details-marker {
  display: none !important;
}

.sida-project-wrapper details summary::after {
  content: "+" !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #2d5016 !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-block !important;
  line-height: 1 !important;
}

.sida-project-wrapper details[open] summary::after {
  content: "+" !important;
  transform: rotate(45deg) !important;
}

/* Inner padding for accordion content */
.sida-project-wrapper details > *:not(summary) {
  padding-left: 1.6rem !important;
  padding-right: 1.6rem !important;
}

.sida-project-wrapper details > summary + * {
  margin-top: 1.4rem !important;
}

.sida-project-wrapper details > *:last-child {
  margin-bottom: 1.6rem !important;
}


/* ==========================================================================
   8. PROGRAMME AREA PILLARS
   ========================================================================== */

.sida-project-wrapper .pillars {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 16px !important;
  margin-top: 16px !important;
  margin-bottom: 28px !important;
}

.sida-project-wrapper .pillar {
  position: relative !important;
  min-height: 170px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center !important;
  display: flex !important;
  align-items: flex-end !important;
}

.sida-project-wrapper .pillar::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(15,25,15,0.1) 10%, rgba(10,20,10,0.85) 100%) !important;
  z-index: 1 !important;
}

.sida-project-wrapper .pillar .content {
  position: relative !important;
  padding: 1.1rem !important;
  z-index: 2 !important;
}

.sida-project-wrapper .pillar *,
.sida-project-wrapper .pillar .title {
  font-weight: 700 !important;
  font-size: 13.5px !important;
  margin: 0 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
}

.sida-project-wrapper .pillar a {
  color: #ffffff !important;
  text-decoration: none !important;
}


/* ==========================================================================
   9. STORIES & KNOWLEDGE PRODUCTS GRIDS (3 COLUMNS)
   ========================================================================== */

.sida-project-wrapper .stories {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-top: 16px !important;
  margin-bottom: 28px !important;
}

.sida-project-wrapper .story-item {
  background: var(--surface-2, #ffffff) !important;
  border: 1px solid var(--border, #e2e0d8) !important;
  border-radius: var(--radius, 10px) !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.sida-project-wrapper .story-img {
  width: 100% !important;
  height: 170px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  margin-bottom: 12px !important;
}

.sida-project-wrapper .kp-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-top: 16px !important;
  margin-bottom: 28px !important;
}

.sida-project-wrapper .kp-item {
  background: #f8f8f6 !important;
  border: 1px solid #e0ded8 !important;
  border-radius: 10px !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.sida-project-wrapper .kp-top-content {
  display: flex !important;
  gap: 14px !important;
}

.sida-project-wrapper .kp-img {
  width: 75px !important;
  height: 100px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  flex-shrink: 0 !important;
}

.sida-project-wrapper .kp-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 0 0 8px 0 !important;
}


/* ==========================================================================
   10. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 1100px) {
  .sida-project-wrapper {
    max-width: 100% !important;
  }
  .sida-project-wrapper .pillars {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .sida-project-wrapper details summary {
    font-size: 1.4rem !important;
  }
  .sida-project-wrapper .stories {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sida-project-wrapper .kp-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sida-project-wrapper .pillars {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .sida-project-wrapper {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .sida-project-wrapper details summary {
    font-size: 1.25rem !important;
    padding: 1rem 1.2rem 8px 1.2rem !important;
  }
  .sida-project-wrapper details > *:not(summary) {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
  }
  .sida-project-wrapper .stories,
  .sida-project-wrapper .kp-list,
  .sida-project-wrapper .pillars {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   AFFORUM HUB - Project Profile Design System (from project_profile.html)
   ========================================================================== */

.project-page-shell {
  font-family: 'Poppins', sans-serif;
  color: #1f1e1c;
  background: #eceae3;
  padding-bottom: 3.5rem;
  width: 100%;
}

/* Ensure headings in project shell match design */
.project-page-shell h1,
.project-page-shell h2,
.project-page-shell h3,
.project-page-shell h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #38610b;
  margin: 0;
}

.project-page-shell p {
  line-height: 1.7;
  font-size: 16px;
}

.project-page-shell a {
  color: #38610b;
  text-decoration: none;
}
.project-page-shell a:hover {
  text-decoration: underline;
}

/* 1. FULL BLEED HERO IMAGE */
.project-page-shell .hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
  background-color: #1f301f;
  background-image: linear-gradient(180deg, rgba(20,30,20,0.45), rgba(20,30,20,0.7)),
                    url('https://afforum.org/sites/default/files/AFF-89-compressed.JPG');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  margin: 0;
}

.project-page-shell .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1000px, 100%);
  margin: 0 auto;
}

.project-page-shell .kicker-eyebrow {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a3e635;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.project-page-shell .hero h1 {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  color: #ffffff !important;
  font-family: 'Poppins', 'Fraunces', serif;
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  word-wrap: break-word;
}

/* CONTAINER WRAPPER FOR CONTENT UNDER HERO */
.project-page-shell .wrap {
  max-width: var(--maxw, 1200px) !important;
  margin: 2rem auto 0;
  border: 0.5px solid #e2e0d8;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* STAT STRIP WITH GREEN BACKGROUND & WHITE TEXT */
.project-page-shell .stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  background: #38610b;
  padding: 1.25rem 1rem;
}

.project-page-shell .stat {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-width: 0;
}

.project-page-shell .stat .label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
  word-break: break-word;
}

.project-page-shell .stat .value {
  font-size: 13.5px;
  font-weight: 600;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
}

.project-page-shell .pi-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  margin-top: 2px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.35;
}
.project-page-shell .pi-link:hover {
  text-decoration: underline;
}

.project-page-shell .pi-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.project-page-shell .section {
  padding: 2.25rem 2rem;
  border-top: 0.5px solid #e2e0d8;
}
.project-page-shell .section.tint {
  background: #f4f2ec;
}
.project-page-shell .section-title {
  margin-bottom: 4px;
  font-size: 24px;
  color: #38610b;
}
.project-page-shell .section-desc {
  font-size: 14px;
  color: #5f5e5a;
  margin: 0 0 1.25rem;
}

/* ACCORDIONS */
.project-page-shell .accordion-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-page-shell details.acc {
  border: 0.5px solid #e2e0d8;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.project-page-shell details.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 18px;
  color: #38610b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.project-page-shell details.acc summary::-webkit-details-marker {
  display: none;
}

.project-page-shell details.acc summary .toggle-sign {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #c9c6ba;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  color: #38610b;
  font-weight: 400;
}
.project-page-shell details.acc summary .toggle-sign::before {
  content: "+";
}
.project-page-shell details.acc[open] summary .toggle-sign::before {
  content: "\2212";
}

.project-page-shell details.acc .acc-body {
  padding: 0 1.1rem 1.1rem;
  font-size: 16px;
  color: #1f1e1c;
}
.project-page-shell details.acc .acc-body p {
  margin: 0 0 0.9rem;
}
.project-page-shell details.acc .acc-body p:last-child {
  margin-bottom: 0;
}
.project-page-shell details.acc .acc-body ul {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
}
.project-page-shell details.acc .acc-body li {
  margin-bottom: 4px;
}
.project-page-shell details.acc .acc-body h4 {
  font-size: 16px;
  color: #38610b;
  margin: 0.9rem 0 0.3rem;
}
.project-page-shell details.acc .acc-body h4:first-child {
  margin-top: 0;
}

/* PROGRAMME AREAS PILLARS */
.project-page-shell .pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  text-align: left;
  margin-top: 0.5rem;
}

.project-page-shell .pillar-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}
.project-page-shell .pillar-link:hover .pillar {
  transform: scale(1.02);
}

.project-page-shell .pillar {
  position: relative;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform 0.2s ease-in-out;
}
.project-page-shell .pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,25,15,0.1) 20%, rgba(10,20,10,0.85) 100%);
}
.project-page-shell .pillar .content {
  position: relative;
  padding: 1.25rem 1rem;
  color: #ffffff;
  width: 100%;
  text-align: left;
}
.project-page-shell .pillar .title {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  color: #ffffff !important;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* TARGET GROUPS */
.project-page-shell .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-page-shell .tag {
  background: #eaf4ea;
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  color: #2e6027;
  font-weight: 500;
  display: inline-block;
}

/* LATEST UPDATES — STORIES */
.project-page-shell .stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 0.5rem;
}
.project-page-shell .story-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 0.5px solid #e2e0d8;
  border-radius: 8px;
  padding: 12px;
  height: 100%;
}
.project-page-shell .story-img {
  width: 100%;
  height: 140px;
  border-radius: 6px;
  object-fit: cover;
  background: #f4f2ec;
  border: 0.5px solid #e2e0d8;
  margin-bottom: 10px;
}
.project-page-shell .story-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-page-shell .story-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.4;
  color: #38610b;
}
.project-page-shell .story-title a {
  color: #38610b;
}
.project-page-shell .story-desc {
  font-size: 14px;
  color: #5f5e5a;
  margin: 0 0 12px;
  line-height: 1.5;
}
.project-page-shell .story-link {
  font-size: 14px;
  font-weight: 600;
  color: #38610b;
  text-decoration: none;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* KNOWLEDGE PRODUCTS */
.project-page-shell .kp-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 0.5rem;
}
.project-page-shell .kp-item {
  background: #f7f7f5;
  border: 0.5px solid #e0ded8;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-page-shell .kp-top-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.project-page-shell .kp-img-link {
  display: block;
  flex-shrink: 0;
}
.project-page-shell .kp-img-link:hover .kp-img {
  opacity: 0.9;
}
.project-page-shell .kp-img {
  width: 70px;
  height: 95px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: opacity 0.2s;
}
.project-page-shell .kp-details {
  flex: 1;
}
.project-page-shell .kp-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.35;
}
.project-page-shell .kp-title a {
  color: #38610b;
  text-decoration: none;
}
.project-page-shell .kp-title a:hover {
  text-decoration: underline;
}
.project-page-shell .kp-meta {
  font-size: 12px;
  color: #7a7870;
  font-style: italic;
  margin: 0;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .project-page-shell .kp-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .project-page-shell .stories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .project-page-shell .kp-list { grid-template-columns: 1fr; }
  .project-page-shell .pillars { grid-template-columns: 1fr; }
  .project-page-shell .hero { min-height: 300px; padding: 2rem 1.25rem; }
  .project-page-shell .hero h1 { font-size: 24px; }
  .project-page-shell .stories { grid-template-columns: 1fr; }
  .project-page-shell .stat-strip { grid-template-columns: 1fr 1fr; }
}


/* --- Additional Scoped Styles for Project Sections & Meta Elements --- */
.project-page-shell .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.project-page-shell .info-item {
  background: #fdfdfc;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #38610b;
}
.project-page-shell .info-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.project-page-shell .info-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

/* Tags & Badges */
.project-page-shell .tag-list,
.project-page-shell .target-groups-single {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.25rem 0;
}
.project-page-shell .tag {
  display: inline-block;
  background: #eef6e8;
  color: #274607;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #c9e2b3;
}
.project-page-shell .target-group {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}

/* Alignment List */
.project-page-shell .alignment-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}
.project-page-shell .alignment-list li {
  background: #fafaf9;
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #e7e5e4;
  position: relative;
  padding-left: 2.5rem;
  font-size: 0.9375rem;
  color: #292524;
  font-weight: 500;
}
.project-page-shell .alignment-list li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #38610b;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Manager Card */
.project-page-shell .manager-card-narrow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  margin: 1.5rem 0;
  max-width: 550px;
}
.project-page-shell .manager-photo-left {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #38610b;
}
.project-page-shell .manager-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  color: #111827;
}
.project-page-shell .manager-title {
  margin: 0 0 0.75rem 0;
  color: #4b5563;
  font-size: 0.9375rem;
}
.project-page-shell .manager-link {
  display: inline-block;
  color: #38610b;
  font-weight: 600;
  text-decoration: underline;
  font-size: 0.875rem;
}

/* Resources & Single Resource Grid */
.project-page-shell .resources-grid-single {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.project-page-shell .resource-item-single {
  display: flex;
  gap: 1.25rem;
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.project-page-shell .resource-image img,
.project-page-shell .resource-img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.project-page-shell .resource-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  line-height: 1.35;
  color: #111827;
}
.project-page-shell .resource-content p {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0 0 0.75rem 0;
}
.project-page-shell .resource-link {
  display: inline-block;
  background: #38610b;
  color: #ffffff !important;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

/* Community of Practice */
.project-page-shell .community-card-simple {
  background: #f4f8f0;
  border: 1px solid #c9e2b3;
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
}
.project-page-shell .community-header-simple h3 {
  margin: 0 0 0.25rem 0;
  color: #274607;
  font-size: 1.35rem;
}
.project-page-shell .community-subtitle {
  color: #4d7c0f;
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}
.project-page-shell .community-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem 0;
}
.project-page-shell .highlight-item {
  background: #ffffff;
  color: #38610b;
  border: 1px solid #c9e2b3;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.project-page-shell .community-join-btn {
  display: inline-block;
  background: #38610b;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9375rem;
}

/* Exclusive Project Styles (Youth & Multi-Page Projects) */
/* Ensure site header logo is permanently protected from expanding */
#siteHeader .brand .logo-img,
#siteHeader .logo-img,
.site-header .logo-img,
.brand .logo-img {
  max-height: 52px;
  width: auto !important;
  height: auto !important;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

.exclusive-project-shell {
  font-family: inherit;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}
.exclusive-subnav {
  background: #1f301f;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.exclusive-subnav .brand {
  color: #a3e635;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.exclusive-subnav .links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.exclusive-subnav .links a {
  color: #e5e7eb;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.exclusive-subnav .links a:hover,
.exclusive-subnav .links a.active {
  color: #a3e635;
}
.hero-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  background: rgba(31, 48, 31, 0.9);
  padding: 1.5rem;
  border-radius: 10px;
  margin: -3rem auto 2rem auto;
  max-width: 1000px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  position: relative;
  z-index: 10;
}
.hero-stat {
  text-align: center;
  color: #fff;
}
.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  color: #a3e635;
}
.hero-stat span {
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: #d1d5db;
  letter-spacing: 0.05em;
}


/* ==========================================================================
   Project Subpage Layout with Sticky Left Sidebar
   ========================================================================== */
.project-subpage-shell {
  background: #f8faf6;
  padding: 2.5rem 0 4rem;
  color: #2e382f;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
  overflow-x: clip;
}

.project-subpage-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.project-subpage-full {
  display: block;
  width: 100%;
}

.project-content-full {
  width: 100%;
}

/* Breadcrumb Header */
.project-subpage-header {
  background: linear-gradient(135deg, #1b2a22 0%, #2b4534 100%);
  color: #ffffff;
  padding: 3rem 0 2.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.project-subpage-header .container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3e635;
  margin-bottom: 1rem;
}

.project-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.project-breadcrumb a:hover {
  color: #ffffff;
}

.project-subpage-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

/* Left Sidebar Navigation */
.project-sidebar-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e3eae4;
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.project-sidebar-title {
  padding: 1.25rem 1.5rem;
  background: #1b2a22;
  color: #ffffff;
  font-size: 0.82rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.project-sidebar-title .sidebar-logo-mark {
  width: 24px;
  height: 24px;
  background: #8dc73f;
  color: #1b2a22;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 900;
}

.project-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
}

.project-sidebar-menu li {
  margin: 0;
  padding: 0;
}

.project-sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1.5rem;
  color: #3e463f;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.project-sidebar-menu a:hover {
  background: #f1f6ed;
  color: #549433;
  border-left-color: #549433;
}

.project-sidebar-menu a.is-active,
.project-sidebar-menu a.active {
  background: #eef6e8;
  color: #2d550e;
  font-weight: 700;
  border-left-color: #549433;
}

.project-sidebar-menu .menu-icon {
  font-size: 1rem;
  opacity: 0.7;
}

/* Right Content Area */
.project-content-main {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e3eae4;
  font-size: 1.02rem;
}

.project-content-main h2, 
.project-content-main h3 {
  color: #1b2a22;
  font-family: 'Playfair Display', serif;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.project-content-main p {
  margin-bottom: 1.25rem;
  color: #3e463f;
}

.project-content-main ul, 
.project-content-main ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.project-content-main li {
  margin-bottom: 0.5rem;
}

.project-content-main img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .project-subpage-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-sidebar-card {
    position: static;
  }
  .project-content-main {
    padding: 1.75rem 1.5rem;
  }
}


/* ==========================================================================
   Exclusive Projects: Sticky Header Wrapper & Light Green Subnav
   ========================================================================== */
.aff-exclusive-header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.aff-exclusive-topbar {
  background: rgba(17, 29, 21, 0.98);
  color: #dce6df;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.aff-exclusive-topbar .wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 16px;
}

.aff-exclusive-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.aff-back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #549433;
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none !important;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.aff-back-home-btn:hover {
  background: #447729;
  color: #ffffff !important;
  transform: translateX(-2px);
}

.aff-back-home-btn .aff-back-icon {
  transition: transform 0.2s ease;
}

.aff-back-home-btn:hover .aff-back-icon {
  transform: translateX(-3px);
}

.aff-exclusive-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.aff-exclusive-topbar-right .lang-switch {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.aff-exclusive-topbar-right .lang-switch a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
}

.aff-exclusive-topbar-right .lang-switch a.active {
  color: #a3e635 !important;
  font-weight: 700;
}

.aff-topbar-util {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 500;
}

.aff-topbar-util:hover {
  color: #ffffff !important;
}

.aff-topbar-cta {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.aff-topbar-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
}

/* LIGHT GREEN PROJECT STICKY SUBNAV */
.project-sticky-nav {
  background: #f1f7ec;
  border-bottom: 2px solid #d4e6c8;
  width: 100%;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: all 0.2s ease;
}

.project-sticky-nav-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  gap: 16px;
}

.project-sticky-nav-brand a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: #2b5a19 !important;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.project-sticky-nav-brand .project-logo-mark {
  font-size: 1.25rem;
  line-height: 1;
}

.project-sticky-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  flex-wrap: wrap;
}

.project-sticky-nav-menu li {
  margin: 0;
  padding: 0;
}

.project-sticky-nav-menu a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  color: #2b5a19 !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.project-sticky-nav-menu a:hover {
  background: #e0eed5;
  color: #1b3d0e !important;
}

.project-sticky-nav-menu a.active {
  background: #38610b;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(56, 97, 11, 0.25);
}

@media (max-width: 991px) {
  .project-sticky-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
  }
  .project-sticky-nav-menu {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .project-sticky-nav-menu a {
    white-space: nowrap;
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 600px) {
  .aff-exclusive-topbar .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 6px 0;
  }
  .aff-exclusive-topbar-left,
  .aff-exclusive-topbar-right {
    justify-content: space-between;
    width: 100%;
  }
}

/* ==========================================================================
   Testimonials Grid Component
   ========================================================================== */
.project-testimonials-section {
  margin: 3.5rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e3eae4;
}

.testimonials-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.testimonials-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38610b;
  background: #eef6e8;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.testimonials-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #1b2a22;
  margin: 0 0 0.5rem;
}

.testimonials-subtitle {
  font-size: 0.95rem;
  color: #5c6b61;
  margin: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e3eae4;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.testimonial-card-quote-icon {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: #8dc73f;
  margin-bottom: -0.5rem;
  opacity: 0.6;
}

.testimonial-card-body {
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.testimonial-quote {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2e382f;
  margin: 0;
}

.testimonial-card-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f4ee;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #549433;
  flex-shrink: 0;
}

.testimonial-avatar-fallback {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #38610b;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.testimonial-author-meta {
  min-width: 0;
}

.testimonial-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1b2a22;
  margin: 0 0 2px;
  font-family: 'DM Sans', sans-serif;
}

.testimonial-author-title {
  font-size: 0.8125rem;
  color: #64766d;
  margin: 0;
  line-height: 1.35;
}

/* ==========================================================================
   Resources 4-Tabbed Hub Component
   ========================================================================== */
.project-resources-hub {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 4.5rem 0 5rem;
  background: #edf5e8;
  border-top: 2px solid #dce8d6;
  border-bottom: 2px solid #dce8d6;
  box-sizing: border-box;
}

.project-resources-hub .resources-tabs-nav,
.project-resources-hub .resources-tab-content {
  width: min(1240px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.resources-intro-lead {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e3eae4;
}

.resources-intro-lead h2 {
  font-family: 'Playfair Display', serif;
  color: #1b2a22;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.resources-intro-lead .lead {
  font-size: 1.1rem;
  color: #38610b;
  margin-bottom: 0.75rem;
}

/* TABS NAVIGATION */
.resources-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #d4e6c8;
  margin-bottom: 2.25rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.resources-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #f1f6ed;
  color: #2b5a19;
  border: 1px solid #d4e6c8;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.resources-tab-btn:hover {
  background: #e2eed8;
  color: #1b3d0e;
}

.resources-tab-btn.active {
  background: #38610b;
  color: #ffffff !important;
  border-color: #38610b;
  font-weight: 700;
  box-shadow: 0 -2px 8px rgba(56, 97, 11, 0.15);
}

.resources-tab-panel {
  display: none;
}

.resources-tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.resources-section-intro {
  margin-bottom: 1.75rem;
}

.resources-section-intro h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #1b2a22;
  margin: 0 0 0.4rem;
}

.resources-section-intro p {
  color: #5c6b61;
  font-size: 0.95rem;
  margin: 0;
}

/* 1. PUBLICATIONS CARDS GRID */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.publication-card {
  background: #ffffff;
  border: 1px solid #e3eae4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.pub-card-cover-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #f4f6f2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.publication-card:hover .pub-card-cover {
  transform: scale(1.03);
}

.pub-card-cover-placeholder {
  font-size: 3.5rem;
  color: #a3e635;
}

.pub-card-year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #38610b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.pub-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pub-card-type {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #549433;
  margin-bottom: 0.35rem;
}

.pub-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

.pub-card-title a {
  color: #1b2a22 !important;
  text-decoration: none !important;
}

.pub-card-title a:hover {
  color: #38610b !important;
  text-decoration: underline !important;
}

.pub-card-authors {
  font-size: 0.78rem;
  color: #64766d;
  line-height: 1.45;
  margin: 0 0 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f4ee;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.pub-btn-pdf {
  background: #eef6e8;
  color: #2b5a19 !important;
  border: 1px solid #cbe0bf;
}

.pub-btn-pdf:hover {
  background: #38610b;
  color: #ffffff !important;
}

.pub-btn-pdf-fr {
  background: #fdf5ea;
  color: #b45309 !important;
  border: 1px solid #fed7aa;
}

.pub-btn-pdf-fr:hover {
  background: #d97706;
  color: #ffffff !important;
}

.pub-btn-details {
  background: #f4f6f2;
  color: #3e463f !important;
  margin-left: auto;
}

.pub-btn-details:hover {
  background: #e2eadf;
  color: #1b2a22 !important;
}

/* 2. NEWS CARDS GRID */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.news-card {
  background: #ffffff;
  border: 1px solid #e3eae4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.news-card-media {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #1b2a22;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #64766d;
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.news-card-title a {
  color: #1b2a22 !important;
  text-decoration: none !important;
}

.news-card-title a:hover {
  color: #38610b !important;
  text-decoration: underline !important;
}

.news-card-snippet {
  font-size: 0.88rem;
  color: #4a574e;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.news-card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid #f0f4ee;
}

.news-read-more {
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38610b !important;
  text-decoration: none !important;
}

.news-read-more:hover {
  text-decoration: underline !important;
}

/* 3. PHOTOS INTERACTIVE SLIDESHOW */
.resources-slideshow {
  max-width: 980px;
  margin: 0 auto;
}

.slideshow-stage {
  position: relative;
  width: 100%;
  height: 520px;
  background: #111d15;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.slideshow-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.slideshow-slide.active {
  display: block;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
}

.slideshow-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 29, 21, 0.92) 40%);
  color: #ffffff;
  padding: 2rem 1.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 29, 21, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.slideshow-arrow:hover {
  background: #38610b;
  border-color: #38610b;
  transform: translateY(-50%) scale(1.08);
}

.slideshow-arrow.prev {
  left: 16px;
}

.slideshow-arrow.next {
  right: 16px;
}

.slideshow-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  overflow-x: auto;
  padding: 6px 0;
  scrollbar-width: thin;
}

.slideshow-thumb-btn {
  width: 72px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #111d15;
}

.slideshow-thumb-btn:hover {
  opacity: 0.85;
}

.slideshow-thumb-btn.active {
  border-color: #38610b;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(56, 97, 11, 0.4);
}

.slideshow-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* 4. VIDEOS GRID */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.video-card {
  background: #ffffff;
  border: 1px solid #e3eae4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  background: #000000;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body {
  padding: 1.35rem;
}

.video-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1b2a22;
  margin: 0 0 0.4rem;
}

.video-card-description {
  font-size: 0.88rem;
  color: #5c6b61;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .slideshow-stage {
    height: 320px;
  }
  .videos-grid,
  .testimonials-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PROJECT TEAM MEMBERS SECTION
   ========================================================================== */

.project-team-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 4.5rem 0 5rem;
  background: #f0f6ec;
  border-top: 2px solid #ddebd6;
  border-bottom: 2px solid #ddebd6;
  box-sizing: border-box;
}

.project-team-section .team-section-header {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 2.5rem;
  text-align: center;
}

.team-section-badge {
  display: inline-block;
  background: #e8f5e2;
  color: #2b5a19;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.team-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #1f3a10;
  margin: 0.4rem 0 0.6rem;
}

.team-section-subtitle {
  font-size: 1rem;
  color: #556;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive grid: 3 columns desktop, 2 tablet, 1 mobile */
.team-grid {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual member card */
.team-member-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(40, 80, 10, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1.5px solid #eef3e8;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(40, 80, 10, 0.14);
  border-color: #b8d899;
}

/* Photo wrapper */
.team-member-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #c8e0b4;
}

.team-member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}

.team-member-card:hover .team-member-photo {
  transform: scale(1.04);
}

/* Fallback avatar (initial letter) */
.team-member-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a7c2e, #2b5a19);
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

/* Country badge overlay on photo */
.team-member-country-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(20, 50, 10, 0.75);
  color: #e8f7d8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

/* Card body */
.team-member-info {
  padding: 1.2rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-member-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f3a10;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.team-member-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: #3e7b1c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.85rem;
  padding: 0.2rem 0.55rem;
  background: #f0f9e8;
  border-radius: 5px;
  display: inline-block;
  align-self: flex-start;
}

.team-member-bio {
  font-size: 0.88rem;
  color: #445;
  line-height: 1.65;
  flex: 1;
}

.team-member-bio p {
  margin: 0;
}

/* ==========================================================================
   SUBPAGE PROSE CONTAINER — constrained width for body text readability
   ========================================================================== */

.subpage-prose-container {
  max-width: 860px;
  margin-left: 0;
  margin-right: auto;
  padding: 1.5rem 0 2.5rem;
  color: #2b382d;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Override any full-bleed section styles coming from the legacy body HTML */
.subpage-prose-container .container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.subpage-prose-container section {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.subpage-prose-container h2,
.subpage-prose-container h3,
.subpage-prose-container h4,
.subpage-prose-container .primary {
  font-family: 'Poppins', sans-serif;
  color: #1f4215 !important;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 0.9rem;
}

.subpage-prose-container h3 {
  font-size: 1.55rem;
  border-bottom: 2px solid #e2ebd8;
  padding-bottom: 0.5rem;
}

.subpage-prose-container h4 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.subpage-prose-container p {
  margin-bottom: 1.35rem;
  color: #38453a;
  line-height: 1.8;
}

.subpage-prose-container strong {
  color: #162919;
  font-weight: 600;
}

.subpage-prose-container ul,
.subpage-prose-container ol {
  padding-left: 1.75rem;
  margin: 1rem 0 1.75rem;
}

.subpage-prose-container li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
  color: #38453a;
}

.subpage-prose-container a {
  color: #266B34;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s;
}

.subpage-prose-container a:hover {
  color: #1a4d24;
}

/* Hide legacy hardcoded green CTA box that may be in the body — replaced by structured CTA */
.subpage-prose-container [style*="background-color:#266B34"],
.subpage-prose-container [style*="background-color: #266B34"],
.subpage-prose-container [style*="background-color:#266b34"] {
  display: none !important;
}

/* ==========================================================================
   PARALLAX FULL-SCREEN CTA SECTION
   ========================================================================== */

.project-cta-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  left: 0;
  right: 0;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #122b0c 0%, #1e5223 50%, #0f2409 100%);
  box-sizing: border-box;
}

/* When a background image is provided — smooth parallax */
.project-cta-has-bg {
  background-image: var(--cta-bg-image);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* Silky-smooth CSS Parallax */
  background-repeat: no-repeat;
}

/* Dark rich overlay */
.project-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 38, 12, 0.82) 0%, rgba(8, 24, 7, 0.88) 100%);
  z-index: 1;
}

/* Inner content */
.project-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem;
}

.project-cta-badge {
  display: inline-block;
  background: rgba(163, 230, 53, 0.2);
  color: #c4f274;
  border: 1px solid rgba(163, 230, 53, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: 30px;
  margin-bottom: 1.25rem;
}

.project-cta-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.25;
  margin: 0 0 1.2rem;
  text-shadow: 0 3px 16px rgba(0,0,0,0.5);
  letter-spacing: -0.01em;
}

.project-cta-subtext {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: rgba(255, 255, 255, 0.92) !important;
  line-height: 1.7;
  margin: 0 auto 2.25rem;
  max-width: 640px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* CTA button — warm vibrant orange on green */
.project-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #F99220;
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 2.6rem;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 6px 24px rgba(249, 146, 32, 0.45);
  letter-spacing: 0.02em;
}

.project-cta-btn:hover {
  background: #e07d0a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(249, 146, 32, 0.6);
  color: #ffffff !important;
}

.project-cta-btn svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.project-cta-btn:hover svg {
  transform: translateX(4px);
}

/* Mobile: fallback from fixed background on small touch screens */
@media (max-width: 768px) {
  .project-cta-has-bg {
    background-attachment: scroll;
    background-position: center center;
  }
  .project-cta-section {
    min-height: 360px;
    padding: 3.5rem 1.25rem;
    margin: 2.5rem 0;
  }
}

/* ==========================================================================
   VOICES OF YOUTH SECTION
   ========================================================================== */
.project-voices-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 4.5rem 0 5.5rem;
  background: #fbfdfa;
  border-top: 2px solid #ddebd6;
  box-sizing: border-box;
}

.project-voices-section .voices-section-header,
.project-voices-section .voices-grid,
.project-voices-section .voices-submit-prompt {
  width: min(1240px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .voices-grid {
    grid-template-columns: 1fr;
  }
}

.voice-card {
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #266B34;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voice-card:nth-child(even) {
  border-color: #F99220;
}

.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.voice-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.voice-card-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f4215;
  margin: 0 0 0.25rem;
}

.voice-card-affiliation {
  font-size: 0.85rem;
  color: #667;
  font-style: italic;
  margin-bottom: 1rem;
}

.voice-card-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334;
  font-style: italic;
  flex-grow: 1;
  margin: 0;
}

.voices-submit-prompt {
  text-align: center;
  margin-top: 3.5rem;
  padding: 2.5rem 1.5rem;
  background: #ffffff;
  border: 2px dashed #b8d8a0;
  border-radius: 14px;
}




/* ==========================================================================
   AFFORUM HUB - Project Profile Design System (from project_profile.html)
   ========================================================================== */

.project-page-shell {
  font-family: 'Poppins', sans-serif;
  color: #1f1e1c;
  background: #eceae3;
  padding-bottom: 3.5rem;
  width: 100%;
}

/* Ensure headings in project shell match design */
.project-page-shell h1,
.project-page-shell h2,
.project-page-shell h3,
.project-page-shell h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #38610b;
  margin: 0;
}

.project-page-shell p {
  line-height: 1.7;
  font-size: 16px;
}

.project-page-shell a {
  color: #38610b;
  text-decoration: none;
}
.project-page-shell a:hover {
  text-decoration: underline;
}

/* 1. FULL BLEED HERO IMAGE */
.project-page-shell .hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
  background-color: #1f301f;
  background-image: linear-gradient(180deg, rgba(20,30,20,0.45), rgba(20,30,20,0.7)),
                    url('https://afforum.org/sites/default/files/AFF-89-compressed.JPG');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  margin: 0;
}

.project-page-shell .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1000px, 100%);
  margin: 0 auto;
}

.project-page-shell .kicker-eyebrow {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a3e635;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.project-page-shell .hero h1 {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  color: #ffffff !important;
  font-family: 'Poppins', 'Fraunces', serif;
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  word-wrap: break-word;
}

/* CONTAINER WRAPPER FOR CONTENT UNDER HERO */
.project-page-shell .wrap {
  max-width: var(--maxw, 1200px) !important;
  margin: 2rem auto 0;
  border: 0.5px solid #e2e0d8;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* STAT STRIP WITH GREEN BACKGROUND & WHITE TEXT */
.project-page-shell .stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  background: #38610b;
  padding: 1.25rem 1rem;
}

.project-page-shell .stat {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-width: 0;
}

.project-page-shell .stat .label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
  word-break: break-word;
}

.project-page-shell .stat .value {
  font-size: 13.5px;
  font-weight: 600;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
}

.project-page-shell .pi-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  margin-top: 2px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.35;
}
.project-page-shell .pi-link:hover {
  text-decoration: underline;
}

.project-page-shell .pi-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.project-page-shell .section {
  padding: 2.25rem 2rem;
  border-top: 0.5px solid #e2e0d8;
}
.project-page-shell .section.tint {
  background: #f4f2ec;
}
.project-page-shell .section-title {
  margin-bottom: 4px;
  font-size: 24px;
  color: #38610b;
}
.project-page-shell .section-desc {
  font-size: 14px;
  color: #5f5e5a;
  margin: 0 0 1.25rem;
}

/* ACCORDIONS */
.project-page-shell .accordion-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-page-shell details.acc {
  border: 0.5px solid #e2e0d8;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.project-page-shell details.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 18px;
  color: #38610b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.project-page-shell details.acc summary::-webkit-details-marker {
  display: none;
}

.project-page-shell details.acc summary .toggle-sign {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #c9c6ba;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  color: #38610b;
  font-weight: 400;
}
.project-page-shell details.acc summary .toggle-sign::before {
  content: "+";
}
.project-page-shell details.acc[open] summary .toggle-sign::before {
  content: "\2212";
}

.project-page-shell details.acc .acc-body {
  padding: 0 1.1rem 1.1rem;
  font-size: 16px;
  color: #1f1e1c;
}
.project-page-shell details.acc .acc-body p {
  margin: 0 0 0.9rem;
}
.project-page-shell details.acc .acc-body p:last-child {
  margin-bottom: 0;
}
.project-page-shell details.acc .acc-body ul {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
}
.project-page-shell details.acc .acc-body li {
  margin-bottom: 4px;
}
.project-page-shell details.acc .acc-body h4 {
  font-size: 16px;
  color: #38610b;
  margin: 0.9rem 0 0.3rem;
}
.project-page-shell details.acc .acc-body h4:first-child {
  margin-top: 0;
}

/* PROGRAMME AREAS PILLARS */
.project-page-shell .pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  text-align: left;
  margin-top: 0.5rem;
}

.project-page-shell .pillar-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}
.project-page-shell .pillar-link:hover .pillar {
  transform: scale(1.02);
}

.project-page-shell .pillar {
  position: relative;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform 0.2s ease-in-out;
}
.project-page-shell .pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,25,15,0.1) 20%, rgba(10,20,10,0.85) 100%);
}
.project-page-shell .pillar .content {
  position: relative;
  padding: 1.25rem 1rem;
  color: #ffffff;
  width: 100%;
  text-align: left;
}
.project-page-shell .pillar .title {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  color: #ffffff !important;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* TARGET GROUPS */
.project-page-shell .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-page-shell .tag {
  background: #eaf4ea;
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  color: #2e6027;
  font-weight: 500;
  display: inline-block;
}

/* LATEST UPDATES — STORIES */
.project-page-shell .stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 0.5rem;
}
.project-page-shell .story-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 0.5px solid #e2e0d8;
  border-radius: 8px;
  padding: 12px;
  height: 100%;
}
.project-page-shell .story-img {
  width: 100%;
  height: 140px;
  border-radius: 6px;
  object-fit: cover;
  background: #f4f2ec;
  border: 0.5px solid #e2e0d8;
  margin-bottom: 10px;
}
.project-page-shell .story-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-page-shell .story-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.4;
  color: #38610b;
}
.project-page-shell .story-title a {
  color: #38610b;
}
.project-page-shell .story-desc {
  font-size: 14px;
  color: #5f5e5a;
  margin: 0 0 12px;
  line-height: 1.5;
}
.project-page-shell .story-link {
  font-size: 14px;
  font-weight: 600;
  color: #38610b;
  text-decoration: none;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* KNOWLEDGE PRODUCTS */
.project-page-shell .kp-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 0.5rem;
}
.project-page-shell .kp-item {
  background: #f7f7f5;
  border: 0.5px solid #e0ded8;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-page-shell .kp-top-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.project-page-shell .kp-img-link {
  display: block;
  flex-shrink: 0;
}
.project-page-shell .kp-img-link:hover .kp-img {
  opacity: 0.9;
}
.project-page-shell .kp-img {
  width: 70px;
  height: 95px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: opacity 0.2s;
}
.project-page-shell .kp-details {
  flex: 1;
}
.project-page-shell .kp-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.35;
}
.project-page-shell .kp-title a {
  color: #38610b;
  text-decoration: none;
}
.project-page-shell .kp-title a:hover {
  text-decoration: underline;
}
.project-page-shell .kp-meta {
  font-size: 12px;
  color: #7a7870;
  font-style: italic;
  margin: 0;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .project-page-shell .kp-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .project-page-shell .stories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .project-page-shell .kp-list { grid-template-columns: 1fr; }
  .project-page-shell .pillars { grid-template-columns: 1fr; }
  .project-page-shell .hero { min-height: 300px; padding: 2rem 1.25rem; }
  .project-page-shell .hero h1 { font-size: 24px; }
  .project-page-shell .stories { grid-template-columns: 1fr; }
  .project-page-shell .stat-strip { grid-template-columns: 1fr 1fr; }
}


/* --- Additional Scoped Styles for Project Sections & Meta Elements --- */
.project-page-shell .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.project-page-shell .info-item {
  background: #fdfdfc;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #38610b;
}
.project-page-shell .info-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.project-page-shell .info-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

/* Tags & Badges */
.project-page-shell .tag-list,
.project-page-shell .target-groups-single {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.25rem 0;
}
.project-page-shell .tag {
  display: inline-block;
  background: #eef6e8;
  color: #274607;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #c9e2b3;
}
.project-page-shell .target-group {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}

/* Alignment List */
.project-page-shell .alignment-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}
.project-page-shell .alignment-list li {
  background: #fafaf9;
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #e7e5e4;
  position: relative;
  padding-left: 2.5rem;
  font-size: 0.9375rem;
  color: #292524;
  font-weight: 500;
}
.project-page-shell .alignment-list li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #38610b;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Manager Card */
.project-page-shell .manager-card-narrow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  margin: 1.5rem 0;
  max-width: 550px;
}
.project-page-shell .manager-photo-left {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #38610b;
}
.project-page-shell .manager-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  color: #111827;
}
.project-page-shell .manager-title {
  margin: 0 0 0.75rem 0;
  color: #4b5563;
  font-size: 0.9375rem;
}
.project-page-shell .manager-link {
  display: inline-block;
  color: #38610b;
  font-weight: 600;
  text-decoration: underline;
  font-size: 0.875rem;
}

/* Resources & Single Resource Grid */
.project-page-shell .resources-grid-single {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.project-page-shell .resource-item-single {
  display: flex;
  gap: 1.25rem;
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.project-page-shell .resource-image img,
.project-page-shell .resource-img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.project-page-shell .resource-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  line-height: 1.35;
  color: #111827;
}
.project-page-shell .resource-content p {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0 0 0.75rem 0;
}
.project-page-shell .resource-link {
  display: inline-block;
  background: #38610b;
  color: #ffffff !important;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

/* Community of Practice */
.project-page-shell .community-card-simple {
  background: #f4f8f0;
  border: 1px solid #c9e2b3;
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
}
.project-page-shell .community-header-simple h3 {
  margin: 0 0 0.25rem 0;
  color: #274607;
  font-size: 1.35rem;
}
.project-page-shell .community-subtitle {
  color: #4d7c0f;
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}
.project-page-shell .community-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem 0;
}
.project-page-shell .highlight-item {
  background: #ffffff;
  color: #38610b;
  border: 1px solid #c9e2b3;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.project-page-shell .community-join-btn {
  display: inline-block;
  background: #38610b;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9375rem;
}

/* Exclusive Project Styles (Youth & Multi-Page Projects) */
/* Ensure site header logo is permanently protected from expanding */
#siteHeader .brand .logo-img,
#siteHeader .logo-img,
.site-header .logo-img,
.brand .logo-img {
  max-height: 52px;
  width: auto !important;
  height: auto !important;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

.exclusive-project-shell {
  font-family: inherit;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}
.exclusive-subnav {
  background: #1f301f;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.exclusive-subnav .brand {
  color: #a3e635;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.exclusive-subnav .links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.exclusive-subnav .links a {
  color: #e5e7eb;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.exclusive-subnav .links a:hover,
.exclusive-subnav .links a.active {
  color: #a3e635;
}
.hero-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  background: rgba(31, 48, 31, 0.9);
  padding: 1.5rem;
  border-radius: 10px;
  margin: -3rem auto 2rem auto;
  max-width: 1000px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  position: relative;
  z-index: 10;
}
.hero-stat {
  text-align: center;
  color: #fff;
}
.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  color: #a3e635;
}
.hero-stat span {
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: #d1d5db;
  letter-spacing: 0.05em;
}


/* ==========================================================================
   Project Subpage Layout with Sticky Left Sidebar
   ========================================================================== */
.project-subpage-shell {
  background: #f8faf6;
  padding: 2.5rem 0 4rem;
  color: #2e382f;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
  overflow-x: clip;
}

.project-subpage-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.project-subpage-full {
  display: block;
  width: 100%;
}

.project-content-full {
  width: 100%;
}

/* Breadcrumb Header */
.project-subpage-header {
  background: linear-gradient(135deg, #1b2a22 0%, #2b4534 100%);
  color: #ffffff;
  padding: 3rem 0 2.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.project-subpage-header .container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3e635;
  margin-bottom: 1rem;
}

.project-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.project-breadcrumb a:hover {
  color: #ffffff;
}

.project-subpage-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

/* Left Sidebar Navigation */
.project-sidebar-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e3eae4;
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.project-sidebar-title {
  padding: 1.25rem 1.5rem;
  background: #1b2a22;
  color: #ffffff;
  font-size: 0.82rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.project-sidebar-title .sidebar-logo-mark {
  width: 24px;
  height: 24px;
  background: #8dc73f;
  color: #1b2a22;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 900;
}

.project-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
}

.project-sidebar-menu li {
  margin: 0;
  padding: 0;
}

.project-sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1.5rem;
  color: #3e463f;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.project-sidebar-menu a:hover {
  background: #f1f6ed;
  color: #549433;
  border-left-color: #549433;
}

.project-sidebar-menu a.is-active,
.project-sidebar-menu a.active {
  background: #eef6e8;
  color: #2d550e;
  font-weight: 700;
  border-left-color: #549433;
}

.project-sidebar-menu .menu-icon {
  font-size: 1rem;
  opacity: 0.7;
}

/* Right Content Area */
.project-content-main {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e3eae4;
  font-size: 1.02rem;
}

.project-content-main h2, 
.project-content-main h3 {
  color: #1b2a22;
  font-family: 'Playfair Display', serif;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.project-content-main p {
  margin-bottom: 1.25rem;
  color: #3e463f;
}

.project-content-main ul, 
.project-content-main ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.project-content-main li {
  margin-bottom: 0.5rem;
}

.project-content-main img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .project-subpage-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-sidebar-card {
    position: static;
  }
  .project-content-main {
    padding: 1.75rem 1.5rem;
  }
}


/* ==========================================================================
   Exclusive Projects: Sticky Header Wrapper & Light Green Subnav
   ========================================================================== */
.aff-exclusive-header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.aff-exclusive-topbar {
  background: rgba(17, 29, 21, 0.98);
  color: #dce6df;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.aff-exclusive-topbar .wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 16px;
}

.aff-exclusive-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.aff-back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #549433;
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none !important;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.aff-back-home-btn:hover {
  background: #447729;
  color: #ffffff !important;
  transform: translateX(-2px);
}

.aff-back-home-btn .aff-back-icon {
  transition: transform 0.2s ease;
}

.aff-back-home-btn:hover .aff-back-icon {
  transform: translateX(-3px);
}

.aff-exclusive-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.aff-exclusive-topbar-right .lang-switch {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.aff-exclusive-topbar-right .lang-switch a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
}

.aff-exclusive-topbar-right .lang-switch a.active {
  color: #a3e635 !important;
  font-weight: 700;
}

.aff-topbar-util {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 500;
}

.aff-topbar-util:hover {
  color: #ffffff !important;
}

.aff-topbar-cta {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.aff-topbar-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
}

/* LIGHT GREEN PROJECT STICKY SUBNAV */
.project-sticky-nav {
  background: #f1f7ec;
  border-bottom: 2px solid #d4e6c8;
  width: 100%;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: all 0.2s ease;
}

.project-sticky-nav-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  gap: 16px;
}

.project-sticky-nav-brand a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: #2b5a19 !important;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.project-sticky-nav-brand .project-logo-mark {
  font-size: 1.25rem;
  line-height: 1;
}

.project-sticky-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  flex-wrap: wrap;
}

.project-sticky-nav-menu li {
  margin: 0;
  padding: 0;
}

.project-sticky-nav-menu a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  color: #2b5a19 !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.project-sticky-nav-menu a:hover {
  background: #e0eed5;
  color: #1b3d0e !important;
}

.project-sticky-nav-menu a.active {
  background: #38610b;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(56, 97, 11, 0.25);
}

@media (max-width: 991px) {
  .project-sticky-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
  }
  .project-sticky-nav-menu {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .project-sticky-nav-menu a {
    white-space: nowrap;
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 600px) {
  .aff-exclusive-topbar .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 6px 0;
  }
  .aff-exclusive-topbar-left,
  .aff-exclusive-topbar-right {
    justify-content: space-between;
    width: 100%;
  }
}

/* ==========================================================================
   Testimonials Grid Component
   ========================================================================== */
.project-testimonials-section {
  margin: 3.5rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e3eae4;
}

.testimonials-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.testimonials-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38610b;
  background: #eef6e8;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.testimonials-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #1b2a22;
  margin: 0 0 0.5rem;
}

.testimonials-subtitle {
  font-size: 0.95rem;
  color: #5c6b61;
  margin: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e3eae4;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.testimonial-card-quote-icon {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: #8dc73f;
  margin-bottom: -0.5rem;
  opacity: 0.6;
}

.testimonial-card-body {
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.testimonial-quote {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2e382f;
  margin: 0;
}

.testimonial-card-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f4ee;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #549433;
  flex-shrink: 0;
}

.testimonial-avatar-fallback {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #38610b;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.testimonial-author-meta {
  min-width: 0;
}

.testimonial-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1b2a22;
  margin: 0 0 2px;
  font-family: 'DM Sans', sans-serif;
}

.testimonial-author-title {
  font-size: 0.8125rem;
  color: #64766d;
  margin: 0;
  line-height: 1.35;
}

/* ==========================================================================
   Resources 4-Tabbed Hub Component
   ========================================================================== */
.project-resources-hub {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 4.5rem 0 5rem;
  background: #edf5e8;
  border-top: 2px solid #dce8d6;
  border-bottom: 2px solid #dce8d6;
  box-sizing: border-box;
}

.project-resources-hub .resources-tabs-nav,
.project-resources-hub .resources-tab-content {
  width: min(1240px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.resources-intro-lead {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e3eae4;
}

.resources-intro-lead h2 {
  font-family: 'Playfair Display', serif;
  color: #1b2a22;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.resources-intro-lead .lead {
  font-size: 1.1rem;
  color: #38610b;
  margin-bottom: 0.75rem;
}

/* TABS NAVIGATION */
.resources-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #d4e6c8;
  margin-bottom: 2.25rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.resources-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #f1f6ed;
  color: #2b5a19;
  border: 1px solid #d4e6c8;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.resources-tab-btn:hover {
  background: #e2eed8;
  color: #1b3d0e;
}

.resources-tab-btn.active {
  background: #38610b;
  color: #ffffff !important;
  border-color: #38610b;
  font-weight: 700;
  box-shadow: 0 -2px 8px rgba(56, 97, 11, 0.15);
}

.resources-tab-panel {
  display: none;
}

.resources-tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.resources-section-intro {
  margin-bottom: 1.75rem;
}

.resources-section-intro h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #1b2a22;
  margin: 0 0 0.4rem;
}

.resources-section-intro p {
  color: #5c6b61;
  font-size: 0.95rem;
  margin: 0;
}

/* 1. PUBLICATIONS CARDS GRID */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.publication-card {
  background: #ffffff;
  border: 1px solid #e3eae4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.pub-card-cover-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #f4f6f2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.publication-card:hover .pub-card-cover {
  transform: scale(1.03);
}

.pub-card-cover-placeholder {
  font-size: 3.5rem;
  color: #a3e635;
}

.pub-card-year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #38610b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.pub-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pub-card-type {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #549433;
  margin-bottom: 0.35rem;
}

.pub-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

.pub-card-title a {
  color: #1b2a22 !important;
  text-decoration: none !important;
}

.pub-card-title a:hover {
  color: #38610b !important;
  text-decoration: underline !important;
}

.pub-card-authors {
  font-size: 0.78rem;
  color: #64766d;
  line-height: 1.45;
  margin: 0 0 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f4ee;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.pub-btn-pdf {
  background: #eef6e8;
  color: #2b5a19 !important;
  border: 1px solid #cbe0bf;
}

.pub-btn-pdf:hover {
  background: #38610b;
  color: #ffffff !important;
}

.pub-btn-pdf-fr {
  background: #fdf5ea;
  color: #b45309 !important;
  border: 1px solid #fed7aa;
}

.pub-btn-pdf-fr:hover {
  background: #d97706;
  color: #ffffff !important;
}

.pub-btn-details {
  background: #f4f6f2;
  color: #3e463f !important;
  margin-left: auto;
}

.pub-btn-details:hover {
  background: #e2eadf;
  color: #1b2a22 !important;
}

/* 2. NEWS CARDS GRID */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.news-card {
  background: #ffffff;
  border: 1px solid #e3eae4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.news-card-media {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #1b2a22;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #64766d;
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.news-card-title a {
  color: #1b2a22 !important;
  text-decoration: none !important;
}

.news-card-title a:hover {
  color: #38610b !important;
  text-decoration: underline !important;
}

.news-card-snippet {
  font-size: 0.88rem;
  color: #4a574e;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.news-card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid #f0f4ee;
}

.news-read-more {
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38610b !important;
  text-decoration: none !important;
}

.news-read-more:hover {
  text-decoration: underline !important;
}

/* 3. PHOTOS INTERACTIVE SLIDESHOW */
.resources-slideshow {
  max-width: 980px;
  margin: 0 auto;
}

.slideshow-stage {
  position: relative;
  width: 100%;
  height: 520px;
  background: #111d15;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.slideshow-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.slideshow-slide.active {
  display: block;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
}

.slideshow-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 29, 21, 0.92) 40%);
  color: #ffffff;
  padding: 2rem 1.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 29, 21, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.slideshow-arrow:hover {
  background: #38610b;
  border-color: #38610b;
  transform: translateY(-50%) scale(1.08);
}

.slideshow-arrow.prev {
  left: 16px;
}

.slideshow-arrow.next {
  right: 16px;
}

.slideshow-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  overflow-x: auto;
  padding: 6px 0;
  scrollbar-width: thin;
}

.slideshow-thumb-btn {
  width: 72px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #111d15;
}

.slideshow-thumb-btn:hover {
  opacity: 0.85;
}

.slideshow-thumb-btn.active {
  border-color: #38610b;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(56, 97, 11, 0.4);
}

.slideshow-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* 4. VIDEOS GRID */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.video-card {
  background: #ffffff;
  border: 1px solid #e3eae4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  background: #000000;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body {
  padding: 1.35rem;
}

.video-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1b2a22;
  margin: 0 0 0.4rem;
}

.video-card-description {
  font-size: 0.88rem;
  color: #5c6b61;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .slideshow-stage {
    height: 320px;
  }
  .videos-grid,
  .testimonials-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PROJECT TEAM MEMBERS SECTION
   ========================================================================== */

.project-team-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 4.5rem 0 5rem;
  background: #f0f6ec;
  border-top: 2px solid #ddebd6;
  border-bottom: 2px solid #ddebd6;
  box-sizing: border-box;
}

.project-team-section .team-section-header {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 2.5rem;
  text-align: center;
}

.team-section-badge {
  display: inline-block;
  background: #e8f5e2;
  color: #2b5a19;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.team-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #1f3a10;
  margin: 0.4rem 0 0.6rem;
}

.team-section-subtitle {
  font-size: 1rem;
  color: #556;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive grid: 3 columns desktop, 2 tablet, 1 mobile */
.team-grid {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual member card */
.team-member-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(40, 80, 10, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1.5px solid #eef3e8;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(40, 80, 10, 0.14);
  border-color: #b8d899;
}

/* Photo wrapper */
.team-member-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #c8e0b4;
}

.team-member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}

.team-member-card:hover .team-member-photo {
  transform: scale(1.04);
}

/* Fallback avatar (initial letter) */
.team-member-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a7c2e, #2b5a19);
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

/* Country badge overlay on photo */
.team-member-country-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(20, 50, 10, 0.75);
  color: #e8f7d8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

/* Card body */
.team-member-info {
  padding: 1.2rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-member-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f3a10;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.team-member-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: #3e7b1c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.85rem;
  padding: 0.2rem 0.55rem;
  background: #f0f9e8;
  border-radius: 5px;
  display: inline-block;
  align-self: flex-start;
}

.team-member-bio {
  font-size: 0.88rem;
  color: #445;
  line-height: 1.65;
  flex: 1;
}

.team-member-bio p {
  margin: 0;
}

/* ==========================================================================
   SUBPAGE PROSE CONTAINER — constrained width for body text readability
   ========================================================================== */

.subpage-prose-container {
  max-width: 860px;
  margin-left: 0;
  margin-right: auto;
  padding: 1.5rem 0 2.5rem;
  color: #2b382d;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Override any full-bleed section styles coming from the legacy body HTML */
.subpage-prose-container .container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.subpage-prose-container section {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.subpage-prose-container h2,
.subpage-prose-container h3,
.subpage-prose-container h4,
.subpage-prose-container .primary {
  font-family: 'Poppins', sans-serif;
  color: #1f4215 !important;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 0.9rem;
}

.subpage-prose-container h3 {
  font-size: 1.55rem;
  border-bottom: 2px solid #e2ebd8;
  padding-bottom: 0.5rem;
}

.subpage-prose-container h4 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.subpage-prose-container p {
  margin-bottom: 1.35rem;
  color: #38453a;
  line-height: 1.8;
}

.subpage-prose-container strong {
  color: #162919;
  font-weight: 600;
}

.subpage-prose-container ul,
.subpage-prose-container ol {
  padding-left: 1.75rem;
  margin: 1rem 0 1.75rem;
}

.subpage-prose-container li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
  color: #38453a;
}

.subpage-prose-container a {
  color: #266B34;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s;
}

.subpage-prose-container a:hover {
  color: #1a4d24;
}

/* Hide legacy hardcoded green CTA box that may be in the body — replaced by structured CTA */
.subpage-prose-container [style*="background-color:#266B34"],
.subpage-prose-container [style*="background-color: #266B34"],
.subpage-prose-container [style*="background-color:#266b34"] {
  display: none !important;
}

/* ==========================================================================
   PARALLAX FULL-SCREEN CTA SECTION
   ========================================================================== */

.project-cta-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  left: 0;
  right: 0;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #122b0c 0%, #1e5223 50%, #0f2409 100%);
  box-sizing: border-box;
}

/* When a background image is provided — smooth parallax */
.project-cta-has-bg {
  background-image: var(--cta-bg-image);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* Silky-smooth CSS Parallax */
  background-repeat: no-repeat;
}

/* Dark rich overlay */
.project-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 38, 12, 0.82) 0%, rgba(8, 24, 7, 0.88) 100%);
  z-index: 1;
}

/* Inner content */
.project-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem;
}

.project-cta-badge {
  display: inline-block;
  background: rgba(163, 230, 53, 0.2);
  color: #c4f274;
  border: 1px solid rgba(163, 230, 53, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: 30px;
  margin-bottom: 1.25rem;
}

.project-cta-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.25;
  margin: 0 0 1.2rem;
  text-shadow: 0 3px 16px rgba(0,0,0,0.5);
  letter-spacing: -0.01em;
}

.project-cta-subtext {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: rgba(255, 255, 255, 0.92) !important;
  line-height: 1.7;
  margin: 0 auto 2.25rem;
  max-width: 640px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* CTA button — warm vibrant orange on green */
.project-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #F99220;
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 2.6rem;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 6px 24px rgba(249, 146, 32, 0.45);
  letter-spacing: 0.02em;
}

.project-cta-btn:hover {
  background: #e07d0a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(249, 146, 32, 0.6);
  color: #ffffff !important;
}

.project-cta-btn svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.project-cta-btn:hover svg {
  transform: translateX(4px);
}

/* Mobile: fallback from fixed background on small touch screens */
@media (max-width: 768px) {
  .project-cta-has-bg {
    background-attachment: scroll;
    background-position: center center;
  }
  .project-cta-section {
    min-height: 360px;
    padding: 3.5rem 1.25rem;
    margin: 2.5rem 0;
  }
}

/* ==========================================================================
   VOICES OF YOUTH SECTION
   ========================================================================== */
.project-voices-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 4.5rem 0 5.5rem;
  background: #fbfdfa;
  border-top: 2px solid #ddebd6;
  box-sizing: border-box;
}

.project-voices-section .voices-section-header,
.project-voices-section .voices-grid,
.project-voices-section .voices-submit-prompt {
  width: min(1240px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .voices-grid {
    grid-template-columns: 1fr;
  }
}

.voice-card {
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #266B34;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voice-card:nth-child(even) {
  border-color: #F99220;
}

.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.voice-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.voice-card-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f4215;
  margin: 0 0 0.25rem;
}

.voice-card-affiliation {
  font-size: 0.85rem;
  color: #667;
  font-style: italic;
  margin-bottom: 1rem;
}

.voice-card-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334;
  font-style: italic;
  flex-grow: 1;
  margin: 0;
}

.voices-submit-prompt {
  text-align: center;
  margin-top: 3.5rem;
  padding: 2.5rem 1.5rem;
  background: #ffffff;
  border: 2px dashed #b8d8a0;
  border-radius: 14px;
}




/* ==========================================================================
   AFFORUM HUB - Project Profile Design System (from project_profile.html)
   ========================================================================== */

.project-page-shell {
  font-family: 'Poppins', sans-serif;
  color: #1f1e1c;
  background: #eceae3;
  padding-bottom: 3.5rem;
  width: 100%;
}

/* Ensure headings in project shell match design */
.project-page-shell h1,
.project-page-shell h2,
.project-page-shell h3,
.project-page-shell h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #38610b;
  margin: 0;
}

.project-page-shell p {
  line-height: 1.7;
  font-size: 16px;
}

.project-page-shell a {
  color: #38610b;
  text-decoration: none;
}
.project-page-shell a:hover {
  text-decoration: underline;
}

/* 1. FULL BLEED HERO IMAGE */
.project-page-shell .hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
  background-color: #1f301f;
  background-image: linear-gradient(180deg, rgba(20,30,20,0.45), rgba(20,30,20,0.7)),
                    url('https://afforum.org/sites/default/files/AFF-89-compressed.JPG');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  margin: 0;
}

.project-page-shell .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1000px, 100%);
  margin: 0 auto;
}

.project-page-shell .kicker-eyebrow {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a3e635;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.project-page-shell .hero h1 {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  color: #ffffff !important;
  font-family: 'Poppins', 'Fraunces', serif;
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  word-wrap: break-word;
}

/* CONTAINER WRAPPER FOR CONTENT UNDER HERO */
.project-page-shell .wrap {
  max-width: var(--maxw, 1200px) !important;
  margin: 2rem auto 0;
  border: 0.5px solid #e2e0d8;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* STAT STRIP WITH GREEN BACKGROUND & WHITE TEXT */
.project-page-shell .stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  background: #38610b;
  padding: 1.25rem 1rem;
}

.project-page-shell .stat {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-width: 0;
}

.project-page-shell .stat .label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
  word-break: break-word;
}

.project-page-shell .stat .value {
  font-size: 13.5px;
  font-weight: 600;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
}

.project-page-shell .pi-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  margin-top: 2px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.35;
}
.project-page-shell .pi-link:hover {
  text-decoration: underline;
}

.project-page-shell .pi-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.project-page-shell .section {
  padding: 2.25rem 2rem;
  border-top: 0.5px solid #e2e0d8;
}
.project-page-shell .section.tint {
  background: #f4f2ec;
}
.project-page-shell .section-title {
  margin-bottom: 4px;
  font-size: 24px;
  color: #38610b;
}
.project-page-shell .section-desc {
  font-size: 14px;
  color: #5f5e5a;
  margin: 0 0 1.25rem;
}

/* ACCORDIONS */
.project-page-shell .accordion-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-page-shell details.acc {
  border: 0.5px solid #e2e0d8;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.project-page-shell details.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 18px;
  color: #38610b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.project-page-shell details.acc summary::-webkit-details-marker {
  display: none;
}

.project-page-shell details.acc summary .toggle-sign {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #c9c6ba;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  color: #38610b;
  font-weight: 400;
}
.project-page-shell details.acc summary .toggle-sign::before {
  content: "+";
}
.project-page-shell details.acc[open] summary .toggle-sign::before {
  content: "\2212";
}

.project-page-shell details.acc .acc-body {
  padding: 0 1.1rem 1.1rem;
  font-size: 16px;
  color: #1f1e1c;
}
.project-page-shell details.acc .acc-body p {
  margin: 0 0 0.9rem;
}
.project-page-shell details.acc .acc-body p:last-child {
  margin-bottom: 0;
}
.project-page-shell details.acc .acc-body ul {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
}
.project-page-shell details.acc .acc-body li {
  margin-bottom: 4px;
}
.project-page-shell details.acc .acc-body h4 {
  font-size: 16px;
  color: #38610b;
  margin: 0.9rem 0 0.3rem;
}
.project-page-shell details.acc .acc-body h4:first-child {
  margin-top: 0;
}

/* PROGRAMME AREAS PILLARS */
.project-page-shell .pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  text-align: left;
  margin-top: 0.5rem;
}

.project-page-shell .pillar-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}
.project-page-shell .pillar-link:hover .pillar {
  transform: scale(1.02);
}

.project-page-shell .pillar {
  position: relative;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform 0.2s ease-in-out;
}
.project-page-shell .pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,25,15,0.1) 20%, rgba(10,20,10,0.85) 100%);
}
.project-page-shell .pillar .content {
  position: relative;
  padding: 1.25rem 1rem;
  color: #ffffff;
  width: 100%;
  text-align: left;
}
.project-page-shell .pillar .title {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  color: #ffffff !important;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* TARGET GROUPS */
.project-page-shell .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-page-shell .tag {
  background: #eaf4ea;
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  color: #2e6027;
  font-weight: 500;
  display: inline-block;
}

/* LATEST UPDATES — STORIES */
.project-page-shell .stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 0.5rem;
}
.project-page-shell .story-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 0.5px solid #e2e0d8;
  border-radius: 8px;
  padding: 12px;
  height: 100%;
}
.project-page-shell .story-img {
  width: 100%;
  height: 140px;
  border-radius: 6px;
  object-fit: cover;
  background: #f4f2ec;
  border: 0.5px solid #e2e0d8;
  margin-bottom: 10px;
}
.project-page-shell .story-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-page-shell .story-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.4;
  color: #38610b;
}
.project-page-shell .story-title a {
  color: #38610b;
}
.project-page-shell .story-desc {
  font-size: 14px;
  color: #5f5e5a;
  margin: 0 0 12px;
  line-height: 1.5;
}
.project-page-shell .story-link {
  font-size: 14px;
  font-weight: 600;
  color: #38610b;
  text-decoration: none;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* KNOWLEDGE PRODUCTS */
.project-page-shell .kp-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 0.5rem;
}
.project-page-shell .kp-item {
  background: #f7f7f5;
  border: 0.5px solid #e0ded8;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-page-shell .kp-top-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.project-page-shell .kp-img-link {
  display: block;
  flex-shrink: 0;
}
.project-page-shell .kp-img-link:hover .kp-img {
  opacity: 0.9;
}
.project-page-shell .kp-img {
  width: 70px;
  height: 95px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: opacity 0.2s;
}
.project-page-shell .kp-details {
  flex: 1;
}
.project-page-shell .kp-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.35;
}
.project-page-shell .kp-title a {
  color: #38610b;
  text-decoration: none;
}
.project-page-shell .kp-title a:hover {
  text-decoration: underline;
}
.project-page-shell .kp-meta {
  font-size: 12px;
  color: #7a7870;
  font-style: italic;
  margin: 0;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .project-page-shell .kp-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .project-page-shell .stories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .project-page-shell .kp-list { grid-template-columns: 1fr; }
  .project-page-shell .pillars { grid-template-columns: 1fr; }
  .project-page-shell .hero { min-height: 300px; padding: 2rem 1.25rem; }
  .project-page-shell .hero h1 { font-size: 24px; }
  .project-page-shell .stories { grid-template-columns: 1fr; }
  .project-page-shell .stat-strip { grid-template-columns: 1fr 1fr; }
}


/* --- Additional Scoped Styles for Project Sections & Meta Elements --- */
.project-page-shell .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.project-page-shell .info-item {
  background: #fdfdfc;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #38610b;
}
.project-page-shell .info-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.project-page-shell .info-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

/* Tags & Badges */
.project-page-shell .tag-list,
.project-page-shell .target-groups-single {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.25rem 0;
}
.project-page-shell .tag {
  display: inline-block;
  background: #eef6e8;
  color: #274607;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #c9e2b3;
}
.project-page-shell .target-group {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}

/* Alignment List */
.project-page-shell .alignment-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}
.project-page-shell .alignment-list li {
  background: #fafaf9;
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #e7e5e4;
  position: relative;
  padding-left: 2.5rem;
  font-size: 0.9375rem;
  color: #292524;
  font-weight: 500;
}
.project-page-shell .alignment-list li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #38610b;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Manager Card */
.project-page-shell .manager-card-narrow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  margin: 1.5rem 0;
  max-width: 550px;
}
.project-page-shell .manager-photo-left {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #38610b;
}
.project-page-shell .manager-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  color: #111827;
}
.project-page-shell .manager-title {
  margin: 0 0 0.75rem 0;
  color: #4b5563;
  font-size: 0.9375rem;
}
.project-page-shell .manager-link {
  display: inline-block;
  color: #38610b;
  font-weight: 600;
  text-decoration: underline;
  font-size: 0.875rem;
}

/* Resources & Single Resource Grid */
.project-page-shell .resources-grid-single {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.project-page-shell .resource-item-single {
  display: flex;
  gap: 1.25rem;
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.project-page-shell .resource-image img,
.project-page-shell .resource-img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.project-page-shell .resource-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  line-height: 1.35;
  color: #111827;
}
.project-page-shell .resource-content p {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0 0 0.75rem 0;
}
.project-page-shell .resource-link {
  display: inline-block;
  background: #38610b;
  color: #ffffff !important;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

/* Community of Practice */
.project-page-shell .community-card-simple {
  background: #f4f8f0;
  border: 1px solid #c9e2b3;
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
}
.project-page-shell .community-header-simple h3 {
  margin: 0 0 0.25rem 0;
  color: #274607;
  font-size: 1.35rem;
}
.project-page-shell .community-subtitle {
  color: #4d7c0f;
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}
.project-page-shell .community-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem 0;
}
.project-page-shell .highlight-item {
  background: #ffffff;
  color: #38610b;
  border: 1px solid #c9e2b3;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.project-page-shell .community-join-btn {
  display: inline-block;
  background: #38610b;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9375rem;
}

/* Exclusive Project Styles (Youth & Multi-Page Projects) */
/* Ensure site header logo is permanently protected from expanding */
#siteHeader .brand .logo-img,
#siteHeader .logo-img,
.site-header .logo-img,
.brand .logo-img {
  max-height: 52px;
  width: auto !important;
  height: auto !important;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

.exclusive-project-shell {
  font-family: inherit;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}
.exclusive-subnav {
  background: #1f301f;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.exclusive-subnav .brand {
  color: #a3e635;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.exclusive-subnav .links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.exclusive-subnav .links a {
  color: #e5e7eb;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.exclusive-subnav .links a:hover,
.exclusive-subnav .links a.active {
  color: #a3e635;
}
.hero-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  background: rgba(31, 48, 31, 0.9);
  padding: 1.5rem;
  border-radius: 10px;
  margin: -3rem auto 2rem auto;
  max-width: 1000px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  position: relative;
  z-index: 10;
}
.hero-stat {
  text-align: center;
  color: #fff;
}
.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  color: #a3e635;
}
.hero-stat span {
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: #d1d5db;
  letter-spacing: 0.05em;
}


/* ==========================================================================
   Project Subpage Layout with Sticky Left Sidebar
   ========================================================================== */
.project-subpage-shell {
  background: #f8faf6;
  padding: 2.5rem 0 4rem;
  color: #2e382f;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
  overflow-x: clip;
}

.project-subpage-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.project-subpage-full {
  display: block;
  width: 100%;
}

.project-content-full {
  width: 100%;
}

/* Breadcrumb Header */
.project-subpage-header {
  background: linear-gradient(135deg, #1b2a22 0%, #2b4534 100%);
  color: #ffffff;
  padding: 3rem 0 2.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.project-subpage-header .container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3e635;
  margin-bottom: 1rem;
}

.project-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.project-breadcrumb a:hover {
  color: #ffffff;
}

.project-subpage-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

/* Left Sidebar Navigation */
.project-sidebar-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e3eae4;
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.project-sidebar-title {
  padding: 1.25rem 1.5rem;
  background: #1b2a22;
  color: #ffffff;
  font-size: 0.82rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.project-sidebar-title .sidebar-logo-mark {
  width: 24px;
  height: 24px;
  background: #8dc73f;
  color: #1b2a22;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 900;
}

.project-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
}

.project-sidebar-menu li {
  margin: 0;
  padding: 0;
}

.project-sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1.5rem;
  color: #3e463f;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.project-sidebar-menu a:hover {
  background: #f1f6ed;
  color: #549433;
  border-left-color: #549433;
}

.project-sidebar-menu a.is-active,
.project-sidebar-menu a.active {
  background: #eef6e8;
  color: #2d550e;
  font-weight: 700;
  border-left-color: #549433;
}

.project-sidebar-menu .menu-icon {
  font-size: 1rem;
  opacity: 0.7;
}

/* Right Content Area */
.project-content-main {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e3eae4;
  font-size: 1.02rem;
}

.project-content-main h2, 
.project-content-main h3 {
  color: #1b2a22;
  font-family: 'Playfair Display', serif;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.project-content-main p {
  margin-bottom: 1.25rem;
  color: #3e463f;
}

.project-content-main ul, 
.project-content-main ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.project-content-main li {
  margin-bottom: 0.5rem;
}

.project-content-main img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .project-subpage-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-sidebar-card {
    position: static;
  }
  .project-content-main {
    padding: 1.75rem 1.5rem;
  }
}


/* ==========================================================================
   Exclusive Projects: Sticky Header Wrapper & Light Green Subnav
   ========================================================================== */
.aff-exclusive-header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.aff-exclusive-topbar {
  background: rgba(17, 29, 21, 0.98);
  color: #dce6df;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.aff-exclusive-topbar .wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 16px;
}

.aff-exclusive-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.aff-back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #549433;
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none !important;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.aff-back-home-btn:hover {
  background: #447729;
  color: #ffffff !important;
  transform: translateX(-2px);
}

.aff-back-home-btn .aff-back-icon {
  transition: transform 0.2s ease;
}

.aff-back-home-btn:hover .aff-back-icon {
  transform: translateX(-3px);
}

.aff-exclusive-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.aff-exclusive-topbar-right .lang-switch {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.aff-exclusive-topbar-right .lang-switch a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
}

.aff-exclusive-topbar-right .lang-switch a.active {
  color: #a3e635 !important;
  font-weight: 700;
}

.aff-topbar-util {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 500;
}

.aff-topbar-util:hover {
  color: #ffffff !important;
}

.aff-topbar-cta {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.aff-topbar-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
}

/* LIGHT GREEN PROJECT STICKY SUBNAV */
.project-sticky-nav {
  background: #f1f7ec;
  border-bottom: 2px solid #d4e6c8;
  width: 100%;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: all 0.2s ease;
}

.project-sticky-nav-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  gap: 16px;
}

.project-sticky-nav-brand a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: #2b5a19 !important;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.project-sticky-nav-brand .project-logo-mark {
  font-size: 1.25rem;
  line-height: 1;
}

.project-sticky-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  flex-wrap: wrap;
}

.project-sticky-nav-menu li {
  margin: 0;
  padding: 0;
}

.project-sticky-nav-menu a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  color: #2b5a19 !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.project-sticky-nav-menu a:hover {
  background: #e0eed5;
  color: #1b3d0e !important;
}

.project-sticky-nav-menu a.active {
  background: #38610b;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(56, 97, 11, 0.25);
}

@media (max-width: 991px) {
  .project-sticky-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
  }
  .project-sticky-nav-menu {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .project-sticky-nav-menu a {
    white-space: nowrap;
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 600px) {
  .aff-exclusive-topbar .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 6px 0;
  }
  .aff-exclusive-topbar-left,
  .aff-exclusive-topbar-right {
    justify-content: space-between;
    width: 100%;
  }
}

/* ==========================================================================
   Testimonials Grid Component
   ========================================================================== */
.project-testimonials-section {
  margin: 3.5rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e3eae4;
}

.testimonials-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.testimonials-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38610b;
  background: #eef6e8;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.testimonials-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #1b2a22;
  margin: 0 0 0.5rem;
}

.testimonials-subtitle {
  font-size: 0.95rem;
  color: #5c6b61;
  margin: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e3eae4;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.testimonial-card-quote-icon {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: #8dc73f;
  margin-bottom: -0.5rem;
  opacity: 0.6;
}

.testimonial-card-body {
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.testimonial-quote {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2e382f;
  margin: 0;
}

.testimonial-card-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f4ee;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #549433;
  flex-shrink: 0;
}

.testimonial-avatar-fallback {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #38610b;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.testimonial-author-meta {
  min-width: 0;
}

.testimonial-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1b2a22;
  margin: 0 0 2px;
  font-family: 'DM Sans', sans-serif;
}

.testimonial-author-title {
  font-size: 0.8125rem;
  color: #64766d;
  margin: 0;
  line-height: 1.35;
}

/* ==========================================================================
   Resources 4-Tabbed Hub Component
   ========================================================================== */
.project-resources-hub {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 4.5rem 0 5rem;
  background: #edf5e8;
  border-top: 2px solid #dce8d6;
  border-bottom: 2px solid #dce8d6;
  box-sizing: border-box;
}

.project-resources-hub .resources-tabs-nav,
.project-resources-hub .resources-tab-content {
  width: min(1240px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.resources-intro-lead {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e3eae4;
}

.resources-intro-lead h2 {
  font-family: 'Playfair Display', serif;
  color: #1b2a22;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.resources-intro-lead .lead {
  font-size: 1.1rem;
  color: #38610b;
  margin-bottom: 0.75rem;
}

/* TABS NAVIGATION */
.resources-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #d4e6c8;
  margin-bottom: 2.25rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.resources-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #f1f6ed;
  color: #2b5a19;
  border: 1px solid #d4e6c8;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.resources-tab-btn:hover {
  background: #e2eed8;
  color: #1b3d0e;
}

.resources-tab-btn.active {
  background: #38610b;
  color: #ffffff !important;
  border-color: #38610b;
  font-weight: 700;
  box-shadow: 0 -2px 8px rgba(56, 97, 11, 0.15);
}

.resources-tab-panel {
  display: none;
}

.resources-tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.resources-section-intro {
  margin-bottom: 1.75rem;
}

.resources-section-intro h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #1b2a22;
  margin: 0 0 0.4rem;
}

.resources-section-intro p {
  color: #5c6b61;
  font-size: 0.95rem;
  margin: 0;
}

/* 1. PUBLICATIONS CARDS GRID */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.publication-card {
  background: #ffffff;
  border: 1px solid #e3eae4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.pub-card-cover-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #f4f6f2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.publication-card:hover .pub-card-cover {
  transform: scale(1.03);
}

.pub-card-cover-placeholder {
  font-size: 3.5rem;
  color: #a3e635;
}

.pub-card-year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #38610b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.pub-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pub-card-type {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #549433;
  margin-bottom: 0.35rem;
}

.pub-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

.pub-card-title a {
  color: #1b2a22 !important;
  text-decoration: none !important;
}

.pub-card-title a:hover {
  color: #38610b !important;
  text-decoration: underline !important;
}

.pub-card-authors {
  font-size: 0.78rem;
  color: #64766d;
  line-height: 1.45;
  margin: 0 0 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f4ee;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.pub-btn-pdf {
  background: #eef6e8;
  color: #2b5a19 !important;
  border: 1px solid #cbe0bf;
}

.pub-btn-pdf:hover {
  background: #38610b;
  color: #ffffff !important;
}

.pub-btn-pdf-fr {
  background: #fdf5ea;
  color: #b45309 !important;
  border: 1px solid #fed7aa;
}

.pub-btn-pdf-fr:hover {
  background: #d97706;
  color: #ffffff !important;
}

.pub-btn-details {
  background: #f4f6f2;
  color: #3e463f !important;
  margin-left: auto;
}

.pub-btn-details:hover {
  background: #e2eadf;
  color: #1b2a22 !important;
}

/* 2. NEWS CARDS GRID */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.news-card {
  background: #ffffff;
  border: 1px solid #e3eae4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.news-card-media {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #1b2a22;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #64766d;
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.news-card-title a {
  color: #1b2a22 !important;
  text-decoration: none !important;
}

.news-card-title a:hover {
  color: #38610b !important;
  text-decoration: underline !important;
}

.news-card-snippet {
  font-size: 0.88rem;
  color: #4a574e;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.news-card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid #f0f4ee;
}

.news-read-more {
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38610b !important;
  text-decoration: none !important;
}

.news-read-more:hover {
  text-decoration: underline !important;
}

/* 3. PHOTOS INTERACTIVE SLIDESHOW */
.resources-slideshow {
  max-width: 980px;
  margin: 0 auto;
}

.slideshow-stage {
  position: relative;
  width: 100%;
  height: 520px;
  background: #111d15;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.slideshow-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.slideshow-slide.active {
  display: block;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
}

.slideshow-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 29, 21, 0.92) 40%);
  color: #ffffff;
  padding: 2rem 1.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 29, 21, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.slideshow-arrow:hover {
  background: #38610b;
  border-color: #38610b;
  transform: translateY(-50%) scale(1.08);
}

.slideshow-arrow.prev {
  left: 16px;
}

.slideshow-arrow.next {
  right: 16px;
}

.slideshow-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  overflow-x: auto;
  padding: 6px 0;
  scrollbar-width: thin;
}

.slideshow-thumb-btn {
  width: 72px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #111d15;
}

.slideshow-thumb-btn:hover {
  opacity: 0.85;
}

.slideshow-thumb-btn.active {
  border-color: #38610b;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(56, 97, 11, 0.4);
}

.slideshow-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* 4. VIDEOS GRID */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.video-card {
  background: #ffffff;
  border: 1px solid #e3eae4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  background: #000000;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body {
  padding: 1.35rem;
}

.video-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1b2a22;
  margin: 0 0 0.4rem;
}

.video-card-description {
  font-size: 0.88rem;
  color: #5c6b61;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .slideshow-stage {
    height: 320px;
  }
  .videos-grid,
  .testimonials-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PROJECT TEAM MEMBERS SECTION
   ========================================================================== */

.project-team-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 4.5rem 0 5rem;
  background: #f0f6ec;
  border-top: 2px solid #ddebd6;
  border-bottom: 2px solid #ddebd6;
  box-sizing: border-box;
}

.project-team-section .team-section-header {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 2.5rem;
  text-align: center;
}

.team-section-badge {
  display: inline-block;
  background: #e8f5e2;
  color: #2b5a19;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.team-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #1f3a10;
  margin: 0.4rem 0 0.6rem;
}

.team-section-subtitle {
  font-size: 1rem;
  color: #556;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive grid: 3 columns desktop, 2 tablet, 1 mobile */
.team-grid {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual member card */
.team-member-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(40, 80, 10, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1.5px solid #eef3e8;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(40, 80, 10, 0.14);
  border-color: #b8d899;
}

/* Photo wrapper */
.team-member-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #c8e0b4;
}

.team-member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}

.team-member-card:hover .team-member-photo {
  transform: scale(1.04);
}

/* Fallback avatar (initial letter) */
.team-member-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a7c2e, #2b5a19);
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

/* Country badge overlay on photo */
.team-member-country-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(20, 50, 10, 0.75);
  color: #e8f7d8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

/* Card body */
.team-member-info {
  padding: 1.2rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-member-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f3a10;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.team-member-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: #3e7b1c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.85rem;
  padding: 0.2rem 0.55rem;
  background: #f0f9e8;
  border-radius: 5px;
  display: inline-block;
  align-self: flex-start;
}

.team-member-bio {
  font-size: 0.88rem;
  color: #445;
  line-height: 1.65;
  flex: 1;
}

.team-member-bio p {
  margin: 0;
}

/* ==========================================================================
   SUBPAGE PROSE CONTAINER — constrained width for body text readability
   ========================================================================== */

.subpage-prose-container {
  max-width: 860px;
  margin-left: 0;
  margin-right: auto;
  padding: 1.5rem 0 2.5rem;
  color: #2b382d;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Override any full-bleed section styles coming from the legacy body HTML */
.subpage-prose-container .container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.subpage-prose-container section {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.subpage-prose-container h2,
.subpage-prose-container h3,
.subpage-prose-container h4,
.subpage-prose-container .primary {
  font-family: 'Poppins', sans-serif;
  color: #1f4215 !important;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 0.9rem;
}

.subpage-prose-container h3 {
  font-size: 1.55rem;
  border-bottom: 2px solid #e2ebd8;
  padding-bottom: 0.5rem;
}

.subpage-prose-container h4 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.subpage-prose-container p {
  margin-bottom: 1.35rem;
  color: #38453a;
  line-height: 1.8;
}

.subpage-prose-container strong {
  color: #162919;
  font-weight: 600;
}

.subpage-prose-container ul,
.subpage-prose-container ol {
  padding-left: 1.75rem;
  margin: 1rem 0 1.75rem;
}

.subpage-prose-container li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
  color: #38453a;
}

.subpage-prose-container a {
  color: #266B34;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s;
}

.subpage-prose-container a:hover {
  color: #1a4d24;
}

/* Hide legacy hardcoded green CTA box that may be in the body — replaced by structured CTA */
.subpage-prose-container [style*="background-color:#266B34"],
.subpage-prose-container [style*="background-color: #266B34"],
.subpage-prose-container [style*="background-color:#266b34"] {
  display: none !important;
}

/* ==========================================================================
   PARALLAX FULL-SCREEN CTA SECTION
   ========================================================================== */

.project-cta-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  left: 0;
  right: 0;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #122b0c 0%, #1e5223 50%, #0f2409 100%);
  box-sizing: border-box;
}

/* When a background image is provided — smooth parallax */
.project-cta-has-bg {
  background-image: var(--cta-bg-image);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* Silky-smooth CSS Parallax */
  background-repeat: no-repeat;
}

/* Dark rich overlay */
.project-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 38, 12, 0.82) 0%, rgba(8, 24, 7, 0.88) 100%);
  z-index: 1;
}

/* Inner content */
.project-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem;
}

.project-cta-badge {
  display: inline-block;
  background: rgba(163, 230, 53, 0.2);
  color: #c4f274;
  border: 1px solid rgba(163, 230, 53, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: 30px;
  margin-bottom: 1.25rem;
}

.project-cta-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.25;
  margin: 0 0 1.2rem;
  text-shadow: 0 3px 16px rgba(0,0,0,0.5);
  letter-spacing: -0.01em;
}

.project-cta-subtext {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: rgba(255, 255, 255, 0.92) !important;
  line-height: 1.7;
  margin: 0 auto 2.25rem;
  max-width: 640px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* CTA button — warm vibrant orange on green */
.project-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #F99220;
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 2.6rem;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 6px 24px rgba(249, 146, 32, 0.45);
  letter-spacing: 0.02em;
}

.project-cta-btn:hover {
  background: #e07d0a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(249, 146, 32, 0.6);
  color: #ffffff !important;
}

.project-cta-btn svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.project-cta-btn:hover svg {
  transform: translateX(4px);
}

/* Mobile: fallback from fixed background on small touch screens */
@media (max-width: 768px) {
  .project-cta-has-bg {
    background-attachment: scroll;
    background-position: center center;
  }
  .project-cta-section {
    min-height: 360px;
    padding: 3.5rem 1.25rem;
    margin: 2.5rem 0;
  }
}

/* ==========================================================================
   VOICES OF YOUTH SECTION
   ========================================================================== */
.project-voices-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 4.5rem 0 5.5rem;
  background: #fbfdfa;
  border-top: 2px solid #ddebd6;
  box-sizing: border-box;
}

.project-voices-section .voices-section-header,
.project-voices-section .voices-grid,
.project-voices-section .voices-submit-prompt {
  width: min(1240px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .voices-grid {
    grid-template-columns: 1fr;
  }
}

.voice-card {
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #266B34;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voice-card:nth-child(even) {
  border-color: #F99220;
}

.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.voice-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.voice-card-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f4215;
  margin: 0 0 0.25rem;
}

.voice-card-affiliation {
  font-size: 0.85rem;
  color: #667;
  font-style: italic;
  margin-bottom: 1rem;
}

.voice-card-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334;
  font-style: italic;
  flex-grow: 1;
  margin: 0;
}

.voices-submit-prompt {
  text-align: center;
  margin-top: 3.5rem;
  padding: 2.5rem 1.5rem;
  background: #ffffff;
  border: 2px dashed #b8d8a0;
  border-radius: 14px;
}



/* Project News & Stories Component Styles */
.project-news-section {
  margin-top: 2rem;
}

.project-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.project-stories-grid .story-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e2e0d8;
}

.project-stories-grid .story-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.project-stories-grid .story-img-wrapper {
  overflow: hidden;
  height: 180px;
  background: #e8e8e8;
}

.project-stories-grid .story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-stories-grid .story-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.project-stories-grid .story-date {
  font-size: 13px;
  color: #549433;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-stories-grid .story-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.project-stories-grid .story-title a {
  color: #1f1e1c;
  text-decoration: none;
}

.project-stories-grid .story-title a:hover {
  color: #549433;
}

.project-stories-grid .story-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 12px;
}

.project-stories-grid .story-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #549433;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: auto;
}

.project-stories-grid .story-link:hover {
  color: #38610b;
  text-decoration: underline;
}

.project-stories-grid .story-img-wrapper {
  position: relative;
}

.project-stories-grid .story-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-stories-grid .badge-event {
  background: rgb(249, 146, 32);
  color: #ffffff;
}

.project-stories-grid .badge-news {
  background: #549433;
  color: #ffffff;
}

.project-stories-grid .story-type-event .story-date {
  color: rgb(249, 146, 32);
}

.project-stories-grid .story-type-event .story-link {
  color: rgb(249, 146, 32);
}

.project-stories-grid .story-type-event .story-link:hover {
  color: rgb(215, 120, 15);
}

.project-stories-grid .story-venue {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-stories-grid .story-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
