:root {
  --primary: #2E7D32;
  --secondary: #2E86AB;
  --accent: #F4B400;
  --text: #2C3E50;
  --text-soft: #5f7183;
  --bg: #f5f8f6;
  --surface: #ffffff;
  --surface-2: #ecf3ef;
  --border: #dde7df;
  --shadow: 0 22px 50px rgba(22, 52, 38, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
}

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

html,
body {
  width: 100%;
  overflow-x: clip;
}

body {
  font-family: "Open Sans", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 18%, #e3f0e6 0%, transparent 35%), var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.section {
  padding: 96px 0;
}

.eyebrow {
  letter-spacing: 0.12em;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 12px;
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
}

h2 {
  font-size: clamp(34px, 4vw, 54px);
}

h3 {
  font-size: clamp(22px, 2.5vw, 32px);
}

p {
  color: var(--text-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(46, 125, 50, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #266c2a;
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: #277798;
}

.btn-ghost {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  background: rgba(245, 248, 246, 0.88);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo-link img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.logo-text {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.logo-3c {
  font-weight: 700;
}

.logo-uganda {
  font-weight: 600;
}

.site-logo-full {
  width: auto;
  height: auto;
  max-height: 78px;
}

.footer-logo-full {
  width: auto;
  height: auto;
  max-height: 120px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  font-weight: 600;
  color: #3f4f60;
  font-size: 14px;
  position: relative;
  padding: 8px 0;
  display: inline-flex;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  align-items: center;
  gap: 6px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(31, 47, 63, 0.14);
  padding: 8px;
  z-index: 1000;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
}

.dropdown-menu a:hover,
.dropdown-menu a[aria-current="page"] {
  background: #eef5f0;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  display: block;
}

.page-hero {
  padding: 84px 0 42px;
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 56px);
}

.page-hero p {
  margin-top: 10px;
}

.single-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: start;
}

.single-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(17, 38, 56, 0.08);
  padding: 30px;
}

.single-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 22px;
}

.single-main h2,
.single-main h3 {
  margin-top: 16px;
  margin-bottom: 10px;
}

.single-main ul {
  margin-top: 8px;
  padding-left: 20px;
}

.single-main li {
  margin-bottom: 8px;
  color: var(--text-soft);
}

.single-main p + p {
  margin-top: 10px;
}

.single-sidebar {
  display: grid;
  gap: 20px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(17, 38, 56, 0.08);
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.sidebar-card p + p {
  margin-top: 6px;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li + li {
  margin-top: 8px;
}

.sidebar-links a {
  color: var(--secondary);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  font-weight: 600;
  color: #3f4f60;
  font-size: 14px;
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.current {
  color: var(--text);
}

.nav a:hover::after,
.nav a.current::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.caret {
  font-size: 11px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(31, 47, 63, 0.14);
  padding: 8px;
  z-index: 1000;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.current {
  background: #eef5f0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  color: var(--text);
}

.hero {
  padding: 82px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: stretch;
}

.hero-copy {
  padding: 42px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(236, 243, 239, 0.92));
  border: 1px solid #eff4f1;
  box-shadow: var(--shadow);
}

.hero-copy p {
  margin: 18px 0 30px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 540px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: rgba(44, 62, 80, 0.9);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
}

.stats {
  padding: 28px 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
}

.stat strong {
  display: block;
  font-size: 34px;
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.card-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 440px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-split {
  align-items: start;
}

.profile-image {
  min-height: 340px;
  max-height: 420px;
}

.section-mini-title {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 18px;
}

.mini-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mini-member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 38, 56, 0.08);
}

.mini-member img {
  width: 100%;
  height: 145px;
  object-fit: cover;
}

.mini-member h4 {
  font-size: 16px;
  padding: 10px 12px 4px;
}

.mini-member p {
  font-size: 13px;
  padding: 0 12px 8px;
}

.mini-member a {
  display: inline-block;
  font-weight: 700;
  color: var(--secondary);
  font-size: 13px;
  padding: 0 12px 12px;
}

.slider-block {
  margin-top: 24px;
}

.slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.slider-head h3 {
  font-size: 24px;
}

.slider-controls {
  display: inline-flex;
  gap: 8px;
}

.slider-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
}

.slider-track::-webkit-scrollbar {
  height: 8px;
}

.slider-track::-webkit-scrollbar-thumb {
  background: #d5ded8;
  border-radius: 999px;
}

.slider-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.slider-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
}

.slider-card h4 {
  font-size: 16px;
  padding: 10px 12px 4px;
}

.slider-card a {
  display: inline-block;
  padding: 0 12px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px;
}

.content-card p {
  margin-top: 14px;
}

.about-tagline {
  font-weight: 700;
  color: var(--primary);
}

.about-copy h3 {
  font-size: 24px;
}

.about-list {
  margin-top: 12px;
  list-style: disc;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.about-list li {
  color: var(--text-soft);
  font-size: 15px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cause-card,
.event-card,
.news-card,
.contact-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(17, 38, 56, 0.08);
}

.cause-card img,
.news-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.contact-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.team-group-card {
  padding: 24px 26px;
}

.team-group-card h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 8px;
}

.team-member-card .body {
  display: flex;
  flex-direction: column;
  min-height: 270px;
}

.team-name {
  font-size: 22px;
  margin-bottom: 6px;
}

.team-position {
  color: var(--secondary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  min-height: 22px;
}

.team-education {
  font-size: 14px;
  min-height: 66px;
}

.team-summary {
  margin-top: 10px;
  min-height: 74px;
}

.team-btn {
  margin-top: auto;
  align-self: flex-start;
}

.director-message-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.director-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(17, 38, 56, 0.08);
}

.director-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.signature-name {
  margin-top: 10px;
  font-family: "Laga Signatica Handwritten", "Billyonair Signature Handwritten", "Great Vibes", "Brush Script MT", cursive;
  font-size: 44px;
  color: var(--text);
  line-height: 1;
}

.cause-card .body,
.news-card .body,
.contact-card .body {
  padding: 22px;
}

.meta {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.progress-track {
  margin-top: 15px;
  background: #ebefed;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  background: var(--accent);
  height: 100%;
}

.progress-row {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  color: #526171;
  font-size: 13px;
  font-weight: 600;
}

.cta {
  padding: 72px 0;
  background: linear-gradient(120deg, #214e33 0%, #2E7D32 55%, #2E86AB 100%);
  color: #fff;
}

.cta .container {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: center;
}

.cta p,
.cta h2 {
  color: #fff;
}

.cta .eyebrow {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.09em;
}

.cta h2 {
  max-width: 24ch;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.2;
}

.events-list {
  display: grid;
  gap: 16px;
}

.events-list .event-card {
  padding: 22px;
}

.event-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.events-listing-page .page-hero {
  padding-bottom: 30px;
}

.events-listing-page .section {
  padding-top: 48px;
}

.events-listing-page .grid-3 {
  gap: 28px;
}

.events-listing-page .event-card .body {
  padding: 24px;
}

.event-detail-page .section {
  padding-top: 58px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 10px 28px rgba(17, 38, 56, 0.08);
}

.faq-item summary {
  font-size: 20px;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 10px;
}

.event-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 15px;
  align-items: center;
  border-bottom: 1px dashed #d6e3dc;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.event-row:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.event-date {
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
  padding: 10px;
}

.event-date strong {
  font-size: 32px;
  display: block;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  line-height: 1;
}

.news-card .body p {
  margin-top: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.textarea {
  min-height: 150px;
  resize: vertical;
}

.field {
  margin-top: 14px;
}

.site-footer {
  background: #f2f6f4;
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 20px;
  padding: 56px 0 26px;
}

.site-footer h4 {
  color: var(--primary);
  font-size: 17px;
  margin-bottom: 12px;
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--text);
  font-size: 14px;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.copyright {
  border-top: 1px solid #dbe6df;
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #5b6b79;
}

.copyright a {
  color: #2f5d86;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: 0.65s ease;
}

.js .reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .grid-3,
  .footer-grid,
  .mini-members-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-media {
    min-height: 420px;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(1200px, calc(100% - 30px));
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: #f7fbf8;
    border-bottom: 1px solid var(--border);
    padding: 10px 15px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: #f7fbf8;
    border-bottom: 1px solid var(--border);
    padding: 10px 15px 18px;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-nav a {
    width: 100%;
    padding: 12px 8px;
  }

  .has-dropdown {
    width: 100%;
    display: block;
  }

  .has-dropdown > a {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 8px 14px;
    min-width: 0;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav a {
    width: 100%;
    padding: 12px 8px;
  }

  .nav-dropdown {
    width: 100%;
    display: block;
  }

  .nav-dropdown > a {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 8px 14px;
  }

  .nav-actions {
    display: none;
  }

  .section {
    padding: 74px 0;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-copy {
    padding: 28px;
  }

  .stats-grid,
  .grid-3,
  .footer-grid,
  .form-row,
  .mini-members-grid,
  .single-grid {
    grid-template-columns: 1fr;
  }

  .single-main img {
    height: 260px;
  }

  .cta .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1200px) {
  .nav-actions { display: none; }
  .nav { gap: 12px; }
}

