: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: 680px !important;
  margin: 0 auto !important;
  color: #ffffff !important;
  font-size: 2.2rem !important;
  line-height: 1.25 !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.8rem !important;
  }
}

@media (max-width: 600px) {
  .banner.prg h1,
  .hero h1 {
    font-size: 1.5rem !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;
  }
}
