:root {
  --green: #008000;
  --green-dark: #008000;
  --sky: #87CEEB;
  --yellow: #FFFF00;
  --black: #151a17;
  --white: #ffffff;
  --soft: #f4f8f5;
  --text: #303b34;
  --muted: #657168;
  --border: #e0e8e2;
  --shadow: 0 12px 32px rgba(18, 54, 31, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--green-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid #1775a8;
  outline-offset: 3px;
}
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--sky);
  box-shadow: 0 3px 15px rgba(0,0,0,.05);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  text-decoration: none;
  flex-shrink: 0;
}
.brand .logo { width: 62px; height: 62px; object-fit: contain; }
.brand strong { display: block; font-size: 1.15rem; line-height: 1.3; letter-spacing: .3px; }
.brand small { display: block; font-size: .73rem; color: var(--muted); }
nav { display: flex; align-items: center; gap: 20px; }
nav a {
  color: var(--black);
  font-size: .91rem;
  font-weight: 700;
  text-decoration: none;
}
nav a:hover { color: var(--green); }
nav .navbtn {
  padding: 9px 15px;
  color: var(--black);
  background: var(--yellow);
  border-radius: 5px;
}
.menu {
  display: none;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--green);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1.2;
  cursor: pointer;
}

.contact-ticker {
  overflow: hidden;
  background: var(--yellow);
  color: var(--black);
  border-bottom: 2px solid var(--sky);
}
.ticker-track {
  width: max-content;
  display: flex;
  gap: 42px;
  padding: 8px 24px;
  animation: ticker-scroll 42s linear infinite;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 700;
}
.ticker-track a { color: var(--black); text-decoration: none; }
.contact-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-35%); }
}

.hero {
  padding: 88px 0;
  background: linear-gradient(120deg, #FFFFFF 0%, #fff 58%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; color: var(--black); line-height: 1.25; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(2.25rem, 4.5vw, 3.8rem); letter-spacing: -1.5px; }
h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { margin-bottom: 12px; font-size: 1.25rem; }
.hero p { max-width: 650px; color: var(--muted); font-size: 1.1rem; }
.hero-panel {
  padding: 38px;
  background: var(--white);
  border-top: 6px solid var(--sky);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.motto { color: var(--green); font-size: 1.7rem; font-weight: 900; letter-spacing: 1.5px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.mini-stats div { padding: 12px 8px; background: var(--soft); border-radius: 6px; text-align: center; }
.mini-stats b, .mini-stats span { display: block; }
.mini-stats b { color: var(--green-dark); font-size: 1.5rem; }
.mini-stats span { color: var(--muted); font-size: .8rem; }

.section { padding: 76px 0; }
.section.soft { background: var(--soft); }
.section.green { background: var(--green-dark); color: var(--white); }
.section.green h2, .section.green p { color: var(--white); }
.section-title { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.section-title p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards article {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(0,0,0,.035);
}
.number { display: block; margin-bottom: 16px; color: var(--green); font-size: 1.9rem; font-weight: 900; }
.cards article p { margin-bottom: 0; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillars div {
  padding: 20px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
}
.project-label { color: var(--green); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.quote {
  padding: 34px;
  background: var(--white);
  border-left: 5px solid var(--sky);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--green-dark);
  font-size: 1.6rem;
  font-weight: 800;
}
.quote small { display: block; margin-top: 10px; color: var(--muted); font-size: .9rem; font-weight: 400; }
.partner-note { padding: 24px; background: var(--soft); border-radius: 8px; text-align: center; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px;
  background: #FFFFFF;
  border: 1px solid #d4edf8;
  border-radius: 12px;
}
.cta h2 { margin-bottom: 8px; }
.cta p { margin-bottom: 0; color: var(--muted); }
.btn {
  display: inline-block;
  padding: 12px 21px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}
.btn.primary { flex-shrink: 0; background: var(--green); color: var(--white); }
.btn.primary:hover { background: var(--green-dark); }

.site-footer { background: var(--white); color: var(--black); border-top: 1px solid var(--border); border-bottom: 8px solid var(--green); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-top: 48px; padding-bottom: 42px; }
.footer-brand { font-size: 1.2rem; }
.footer-grid h2 { margin-bottom: 12px; font-size: 1rem; }
.footer-grid p { color: var(--muted); }
.footer-grid a { display: block; width: fit-content; margin: 6px 0; color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--green); text-decoration: underline; }
.copyright { padding: 14px 20px; background: var(--yellow); color: var(--black); text-align: center; font-size: .86rem; font-weight: 800; }

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 30px;
  background: #128c50;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  text-decoration: none;
  font-weight: 800;
}
.whatsapp-float span:first-child { font-size: 1.4rem; }
.whatsapp-float:hover { background: #008000; }

@media (max-width: 980px) {
  .nav { gap: 12px; }
  nav { gap: 12px; }
  nav a { font-size: .83rem; }
  .brand .logo { width: 54px; height: 54px; }
  .hero-grid { gap: 30px; }
}
@media (max-width: 800px) {
  .container { width: min(100% - 30px, 650px); }
  .nav { min-height: 70px; }
  .brand .logo { width: 50px; height: 50px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .68rem; }
  .menu { display: block; flex-shrink: 0; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 14px 20px 20px;
    background: var(--white);
    border-bottom: 3px solid var(--sky);
    box-shadow: 0 10px 16px rgba(0,0,0,.09);
  }
  nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  nav a { padding: 11px 8px; font-size: .95rem; }
  nav .navbtn { margin-top: 6px; text-align: center; }
  .hero { padding: 58px 0; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-panel { padding: 26px; }
  .cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 12px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta { align-items: flex-start; flex-direction: column; padding: 26px; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 28px); }
  .brand { gap: 8px; }
  .brand .logo { width: 44px; height: 44px; }
  .brand strong { font-size: .9rem; }
  .brand small { max-width: 170px; font-size: .62rem; }
  .hero h1 { font-size: 2.2rem; }
  .mini-stats { gap: 6px; }
  .mini-stats b { font-size: 1.2rem; }
  .mini-stats span { font-size: .7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .copyright { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

#main-content { min-height: 40vh; }
#main-content:focus { outline: none; }

.page-intro {
  background: linear-gradient(135deg, #FFFFFF, #f4f8f5);
  border-bottom: 1px solid #e0e8e2;
}
.page-intro h1 {
  margin: 12px 0;
  max-width: 850px;
}
.page-intro p {
  max-width: 760px;
  line-height: 1.7;
}
.page-content {
  max-width: 1000px;
}
.content-block,
.search-result {
  padding: 22px 0;
  border-bottom: 1px solid #e0e8e2;
}
.content-block h2,
.search-result h2 {
  margin-top: 0;
}
.content-block p,
.search-result p {
  line-height: 1.8;
}
.page-contact-links,
.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.public-search {
  max-width: 720px;
  margin-bottom: 24px;
}
.public-search label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.public-search input[type="search"] {
  flex: 1 1 250px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #657168;
  border-radius: 6px;
  font: inherit;
}
.btn.secondary {
  display: inline-block;
  padding: 12px 18px;
  border: 2px solid #008000;
  border-radius: 6px;
  color: #008000;
  background: #ffffff;
  text-decoration: none;
  font-weight: 700;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #008000;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .page-contact-links,
  .search-row {
    align-items: stretch;
    flex-direction: column;
  }
  .page-contact-links a,
  .search-row button {
    width: 100%;
    text-align: center;
  }
}

/* KRCBO PUBLIC CONTACT AND VOLUNTEER DESIGN — CONSOLIDATED REPLACEMENT */
.contact-page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(54px, 8vw, 100px) 20px;
    color: #fff;
    background: linear-gradient(120deg, #008000 0%, #87CEEB 55%, #174b68 100%);
}
.contact-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(3,35,54,.45), rgba(3,35,54,.08));
}
.contact-page-hero .container { position: relative; z-index: 1; }
.contact-page-hero .eyebrow { margin: 0 0 12px; color: #FFFF00; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-page-hero h1 { max-width: 850px; margin: 0 0 14px; color: #fff; font-size: clamp(2.2rem,5vw,3.8rem); line-height: 1.08; }
.contact-page-hero p:last-child { max-width: 720px; margin: 0; color: #FFFFFF; font-size: clamp(1rem,2vw,1.18rem); line-height: 1.7; }
.contact-page-section { padding: clamp(32px,6vw,70px) 20px; }
.contact-layout { display: grid; grid-template-columns: minmax(250px,.82fr) minmax(0,1.45fr); align-items: start; gap: clamp(22px,4vw,42px); width: min(100%,1160px); margin: 0 auto; }
.contact-sidebar { min-width: 0; padding: clamp(22px,3vw,34px); border-radius: 16px; background: #FFFFFF; border: 1px solid #d5eaf3; color: #000000; }
.contact-sidebar h2 { margin: 0 0 12px; color: #000000; font-size: 1.5rem; line-height: 1.25; }
.contact-sidebar > p { margin: 0 0 22px; line-height: 1.7; color: #303030; }
.contact-sidebar h3 { margin: 0 0 7px; color: #000000; font-size: 1rem; }
.contact-sidebar p, .contact-sidebar address { margin-top: 0; line-height: 1.65; overflow-wrap: anywhere; }
.contact-sidebar address { font-style: normal; }
.contact-sidebar a { color: #008000; text-decoration: underline; text-underline-offset: 3px; }
.contact-info-item { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid #d7e7ee; }
.contact-info-item:first-of-type { padding-top: 4px; }
.contact-info-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.contact-info-item p { margin-bottom: 0; }
.contact-info-icon { display: inline-flex; align-items: flex-start; justify-content: center; color: #87CEEB; }
.contact-info-icon svg { display: block; width: 24px; height: 24px; }
.contact-info-icon.location-icon { color: #d93025; }
.contact-info-icon.postal-icon { color: #87CEEB; }
.contact-info-icon.phone-icon { color: #198754; }
.contact-info-icon.hours-icon { color: #a36c00; }
.contact-sidebar .sidebar-highlight { margin-top: 24px; padding: 15px; border-left: 4px solid #f5c542; border-radius: 5px; background: #fff; line-height: 1.65; }
.public-form { box-sizing: border-box; min-width: 0; width: 100%; margin: 0; padding: clamp(22px,4vw,40px); border: 1px solid #dfe9ef; border-radius: 16px; background: #fff; color: #000000; box-shadow: 0 16px 42px rgba(18,54,78,.10); }
.public-form > p { line-height: 1.6; }
.public-form > p:first-of-type { color: #303030; font-size: .94rem; }
.public-form form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 22px; }
.public-form .form-field { min-width: 0; margin: 0; }
.public-form .form-field:has(textarea), .public-form fieldset.form-field, .public-form .form-consent, .public-form form > .form-trap, .public-form form > input[type="hidden"], .public-form form > button { grid-column: 1 / -1; }
.public-form label, .public-form legend { display: block; margin-bottom: 8px; color: #000000; font-size: .94rem; font-weight: 650; }
.public-form input:not([type="checkbox"]):not([type="hidden"]), .public-form textarea { box-sizing: border-box; display: block; width: 100%; min-height: 49px; padding: 12px 14px; border: 1px solid #cbd9e2; border-radius: 9px; background: #fbfdff; color: #000000; font: inherit; line-height: 1.5; }
.public-form textarea { min-height: 150px; resize: vertical; }
.public-form input::placeholder, .public-form textarea::placeholder { color: #738594; }
.public-form input:focus, .public-form textarea:focus { outline: none; border-color: #87CEEB; background: #fff; box-shadow: 0 0 0 4px rgba(22,130,181,.13); }
.public-form fieldset { min-width: 0; padding: 18px; border: 1px solid #d6e3ea; border-radius: 12px; background: #FFFFFF; }
.public-form legend { padding: 0 7px; }
.public-form .form-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.public-form .form-option, .public-form .form-consent label { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px; border: 1px solid #dce7ed; border-radius: 9px; background: #fff; color: #000000; font-size: .92rem; font-weight: 400; line-height: 1.5; }
.public-form .form-option { cursor: pointer; }
.public-form .form-option:hover { border-color: #87b9d2; background: #FFFFFF; }
.public-form input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: #198754; }
.public-form .form-consent label { background: #f7fbf8; border-color: #d6e9dc; }
.public-form .btn { justify-self: start; min-height: 49px; padding: 13px 25px; border: 0; border-radius: 9px; background: #f5c542; color: #000000; font: inherit; font-weight: 750; cursor: pointer; }
.public-form--volunteer .btn { background: #198754; color: #fff; }
.public-form .btn:hover { filter: brightness(.96); }
.public-form .form-notice { padding: 15px 17px; border-radius: 10px; }
.public-form .form-success { border: 1px solid #b8dfc5; background: #effaf2; color: #185b32; }
.public-form .form-errors { border: 1px solid #f0c5c5; background: #fff5f5; color: #8b2424; }
.public-form .word-counter { margin: 6px 0 0; color: #637786; text-align: right; font-size: .85rem; }
.public-form .word-counter.word-limit-reached { color: #b42318; font-weight: 700; }
.public-form .form-contact-help.contact-methods { display: grid; gap: 13px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #e0e8ed; }
.public-form .contact-method { display: flex; align-items: center; gap: 10px; min-width: 0; color: #000000; font-size: .94rem; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.public-form .contact-icon { display: block; width: 22px; height: 22px; flex: 0 0 22px; }
.public-form .whatsapp-icon { color: #25D366; }
.public-form .contact-method:hover span { text-decoration: underline; text-underline-offset: 3px; }
.public-form .contact-method:focus-visible, .public-form .btn:focus-visible, .contact-sidebar a:focus-visible { outline: 3px solid #008000; outline-offset: 3px; }
.public-form .form-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 600px) { .contact-page-hero { padding: 48px 18px; } .contact-page-section { padding: 28px 14px; } .public-form { padding: 22px 17px; } .public-form form, .public-form .form-options { grid-template-columns: minmax(0,1fr); } .public-form .btn { width: 100%; justify-self: stretch; } }
@media (prefers-reduced-motion: reduce) { .public-form * { scroll-behavior: auto !important; } }


/* Keep the anti-spam honeypot out of the visible form layout */
.public-form .form-trap {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* Compact contact form spacing */
.public-form > p:first-of-type {
    margin-top: 0;
    margin-bottom: 12px;
}
.public-form form {
    row-gap: 13px;
}
.public-form .form-field {
    margin-top: 0;
    margin-bottom: 0;
}
.public-form .word-counter {
    margin-top: 3px;
}


/* KRCBO CONTACT SIDEBAR SOCIAL LINKS */
.contact-social {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #d7e7ee;
}
.contact-social h3 {
    margin: 0 0 14px;
    color: #000000;
    font-size: 1.05rem;
}
.contact-social .social-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
}
.contact-social .social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #dce8ee;
    border-radius: 10px;
    background: #fff;
    color: #000000;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}
.contact-social .social-link:hover {
    border-color: #87b9d2;
    background: #FFFFFF;
}
.contact-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eef5f8;
    color: #000000;
}
.contact-social .social-icon svg {
    display: block;
    width: 21px;
    height: 21px;
}
.contact-social .social-link > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.contact-social .social-link strong {
    color: #000000;
    font-size: .9rem;
}
.contact-social .social-link small {
    color: #5d7180;
    font-size: .82rem;
    overflow-wrap: anywhere;
}
.contact-social .social-facebook .social-icon { color: #1877f2; }
.contact-social .social-instagram .social-icon { color: #c13584; }
.contact-social .social-youtube .social-icon { color: #ff0033; }
.contact-social .social-linkedin .social-icon { color: #0a66c2; }
.contact-social .social-x .social-icon { color: #111; }
.contact-social .social-spotify .social-icon { color: #1db954; }
@media (prefers-reduced-motion: reduce) {
    .contact-social .social-link { transition: none; }
}


/* Social media section positioned below the contact form */
.contact-social {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    margin-top: 28px;
    padding: 24px;
    border: 1px solid #d5eaf3;
    border-radius: 16px;
    background: #FFFFFF;
}
.contact-social h3 {
    margin: 0 0 18px;
    color: #000000;
    font-size: 1.35rem;
}
.contact-social .social-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.contact-social .social-link {
    min-height: 58px;
}
@media (max-width: 700px) {
    .contact-social { padding: 18px; }
    .contact-social .social-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 420px) {
    .contact-social .social-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Keep the X (Twitter) social card on one line */
.contact-social .social-x {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.contact-social .social-x .social-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.contact-social .social-x a,
.contact-social .social-x span {
  white-space: nowrap;
}

/* KAKUMA READ CBO map */
.krcbo-location-map {
    width: 100%;
    margin: 24px 0;
    color: #000000;
}

.krcbo-location-map h2 {
    color: #000000;
    margin-bottom: 14px;
}

.krcbo-map-frame {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border: 2px solid #87CEEB;
    border-radius: 8px;
}

.krcbo-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.krcbo-map-directions a {
    color: #000000;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #008000;
    text-underline-offset: 4px;
}

@media (max-width: 600px) {
    .krcbo-map-frame {
        height: 250px;
    }
}



/* Donate page only */
.donate-design {
  max-width: 1120px;
  margin: 0 auto;
}
.donate-design-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.donate-design-heading h2 {
  margin: 0 0 .65rem;
  color: var(--black);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.donate-design-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.donate-design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.donate-method {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(21, 26, 23, .07);
}
.donate-method-label {
  align-self: flex-start;
  margin-bottom: .8rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
}
.donate-method h2 {
  margin: 0 0 .65rem;
  color: var(--black);
  font-size: 1.45rem;
}
.donate-method-description {
  margin: 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}
.donate-details {
  display: grid;
  gap: .7rem;
  margin: 0 0 1rem;
}
.donate-details div {
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.donate-details dt {
  margin-bottom: .15rem;
  color: var(--muted);
  font-size: .82rem;
}
.donate-details dd {
  margin: 0;
  color: var(--black);
  font-weight: 750;
  overflow-wrap: anywhere;
}
.donate-note {
  margin: auto 0 0;
  padding-top: .5rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.55;
}
.donate-method-equity {
  border: 2px solid #5bb5d6;
  border-top: 6px solid #000;
  background: #87CEEB;
}
.donate-method-equity .donate-method-label {
  background: #fff;
  color: #000;
}
.donate-method-equity .donate-method-description,
.donate-method-equity .donate-details dt {
  color: #17252b;
}
.donate-method-equity .donate-details div {
  border-color: rgba(0, 0, 0, .18);
}
.donate-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding: .8rem 1rem;
  border: 2px solid #000;
  border-radius: 9px;
  background: #fff;
  color: #000 !important;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.donate-action:hover,
.donate-action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.donate-method-equity .donate-action {
  background: #fff;
  color: #000 !important;
}
.donate-method-mpesa .donate-action,
.donate-method-mchanga .donate-action {
  margin-top: auto;
  background: var(--green);
  border-color: var(--green);
  color: #fff !important;
}
.donate-contact-note {
  margin: 1.75rem 0 0;
  padding: 1rem;
  border-radius: 12px;
  background: var(--soft);
  color: var(--text);
  line-height: 1.7;
  text-align: center;
}
.donate-contact-note a {
  font-weight: 700;
}
@media (max-width: 850px) {
  .donate-design-grid {
    grid-template-columns: 1fr;
  }
  .donate-method {
    padding: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .donate-action {
    transition: none;
  }
  .donate-action:hover,
  .donate-action:focus-visible {
    transform: none;
  }
}

/* Donation-method visual distinction — Donate section only */

/* M-PESA: green identity */
.donate-design .donate-method-mpesa {
  border: 2px solid #008000;
  border-top: 7px solid #008000;
  background: #f3fbf5;
}

.donate-design .donate-method-mpesa .donate-method-label {
  background: #008000;
  border-color: #008000;
  color: #ffffff;
}

.donate-design .donate-method-mpesa .donate-details div {
  border-color: #cfe8d3;
}

.donate-design .donate-method-mpesa .donate-action {
  background: #008000;
  border-color: #008000;
  color: #ffffff !important;
}

/* Equity Bank: approved sky blue with black and white */
.donate-design .donate-method-equity {
  border: 2px solid #5bb5d6;
  border-top: 7px solid #151a17;
  background: #87CEEB;
}

.donate-design .donate-method-equity .donate-method-label {
  background: #ffffff;
  border-color: #151a17;
  color: #151a17;
}

.donate-design .donate-method-equity .donate-details div {
  border-color: rgba(21, 26, 23, .2);
}

.donate-design .donate-method-equity .donate-action {
  background: #ffffff;
  border: 2px solid #151a17;
  color: #151a17 !important;
}

/* M-Changa: yellow identity within the organization's palette */
.donate-design .donate-method-mchanga {
  border: 2px solid #d8c900;
  border-top: 7px solid #e1ce00;
  background: #fffef0;
}

.donate-design .donate-method-mchanga .donate-method-label {
  background: #ffff00;
  border-color: #d8c900;
  color: #151a17;
}

.donate-design .donate-method-mchanga .donate-details div {
  border-color: #eee8a7;
}

.donate-design .donate-method-mchanga .donate-action {
  background: #151a17;
  border-color: #151a17;
  color: #ffffff !important;
}

/* Consistent keyboard focus and hover behaviour */
.donate-design .donate-action:focus-visible {
  outline: 3px solid #ffff00;
  outline-offset: 3px;
}

@media (hover: hover) {
  .donate-design .donate-method-mpesa:hover {
    box-shadow: 0 12px 28px rgba(0, 128, 0, .14);
  }

  .donate-design .donate-method-equity:hover {
    box-shadow: 0 12px 28px rgba(33, 112, 145, .18);
  }

  .donate-design .donate-method-mchanga:hover {
    box-shadow: 0 12px 28px rgba(180, 155, 0, .15);
  }
}


/* Center contact heading and links on Donate page only */
.donate-design .donate-contact,
.donate-design .donate-contact-note {
  text-align: center;
}

.donate-design .donate-contact-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.donate-design .donate-contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  text-align: center;
}

/* Add breathing room above Contact Us on the Donate page */
.donate-design .donate-contact-title {
  margin-top: 32px;
}

.donate-design .donate-contact h3 {
  margin-top: 32px;
}

/* KAKUMA READ CBO — Projects clickable feature cards */
.project-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 12px 0 36px;
}

.project-feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: var(--white, #fff);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.project-feature-card:focus-visible {
  outline: 3px solid #087f8c;
  outline-offset: 4px;
}

.project-feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e5f5fa;
  color: #123c52;
  font-weight: 800;
}

.project-feature-card h2 {
  margin: 0 0 12px;
}

.project-feature-card p {
  margin: 0 0 22px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.project-feature-action {
  margin-top: auto;
  font-weight: 700;
  color: #087f8c;
}

.project-feature-details {
  display: grid;
  gap: 16px;
}

@media (max-width: 760px) {
  .project-feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-feature-card {
    transition: none;
  }

  .project-feature-card:hover {
    transform: none;
  }
}

/* KAKUMA READ CBO — responsive clickable Programs cards */
.program-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 12px 0 36px;
}

.program-feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 190px;
  padding: 26px;
  color: inherit;
  text-decoration: none;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #d8e2e8);
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.program-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .10);
  border-color: #87CEEB;
}

.program-feature-card:focus-visible,
.program-back-link:focus-visible {
  outline: 3px solid #176b8a;
  outline-offset: 4px;
}

.program-feature-number {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #176b8a;
}

.program-feature-card h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.program-feature-action {
  margin-top: auto;
  font-weight: 700;
  color: #176b8a;
}

.program-feature-details {
  display: grid;
  gap: 18px;
  scroll-margin-top: 24px;
}

.program-detail {
  scroll-margin-top: 24px;
}

.program-back-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .program-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .program-feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .program-feature-card {
    min-height: 150px;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .program-feature-card {
    transition: none;
  }

  .program-feature-card:hover {
    transform: none;
  }
}


/* Homepage: certification indicator and visible thematic heading */
.registration-note .certification-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  margin-left: 0.25em;
  border-radius: 50%;
  background: #16803c;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.section.green .section-title .thematic-areas-heading {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
}

/* Meet Our Team: accessible, responsive category layout */
.team-directory {
  display: grid;
  gap: 28px;
  margin: 28px 0;
}

.team-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border: 1px solid #d5e7ef;
  border-radius: 14px;
  background: #f5fbfe;
}

.team-section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #87CEEB;
  border-radius: 8px;
  background: #ffffff;
  color: #173b50;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.team-section-nav a:hover {
  background: #e1f4fc;
  color: #102f43;
}

.team-section-nav a:focus-visible {
  outline: 3px solid #174f70;
  outline-offset: 3px;
}

.team-category {
  scroll-margin-top: 24px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #d8e5eb;
  border-top: 5px solid #87CEEB;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(20, 55, 75, 0.06);
}

.team-category h2 {
  margin: 0 0 12px;
  color: #173b50;
  line-height: 1.3;
}

.team-category > p {
  max-width: 70ch;
  line-height: 1.7;
}

.team-category .team-empty-state {
  margin: 22px 0 0;
  padding: 16px;
  border-left: 4px solid #87CEEB;
  border-radius: 0 8px 8px 0;
  background: #f4f9fc;
  color: #435867;
}

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

  .team-section-nav a {
    width: 100%;
  }

  .team-category {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-section-nav a {
    transition: none;
  }
}

/* Meet Our Team: distinct KAKUMA READ CBO brand colours */
.team-section-nav a:nth-child(1) {
  background: #dff3fc;
  border-color: #1685b5;
  color: #123e56;
}

.team-section-nav a:nth-child(2) {
  background: #e2f4e7;
  border-color: #218344;
  color: #174c2a;
}

.team-section-nav a:nth-child(3) {
  background: #fff4c2;
  border-color: #b58a00;
  color: #493800;
}

.team-section-nav a:nth-child(4) {
  background: #e9e9e9;
  border-color: #333333;
  color: #171717;
}

.team-section-nav a:hover {
  filter: brightness(0.94);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Match each independent section to its navigation colour */
.team-category:nth-of-type(2) {
  border-top-color: #1685b5;
  background: #f5fbfe;
}

.team-category:nth-of-type(3) {
  border-top-color: #218344;
  background: #f5fbf6;
}

.team-category:nth-of-type(4) {
  border-top-color: #d0a000;
  background: #fffdf3;
}

.team-category:nth-of-type(5) {
  border-top-color: #333333;
  background: #f7f7f7;
}

/* Meet Our Team: polished, accessible SVG icon system */
.team-sketch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 0 20px;
  padding: 17px;
  border: 1px solid currentColor;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(20, 55, 75, 0.09);
  transform: none;
}

.team-sketch-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.team-category-board-of-directors .team-sketch-icon {
  color: #0877B9;
  background: #EAF6FC;
  border-color: #B7DFF2;
}

.team-category-executive-committee .team-sketch-icon {
  color: #218344;
  background: #EAF7EE;
  border-color: #BDE2C7;
}

.team-category-volunteers-and-interns .team-sketch-icon {
  color: #987000;
  background: #FFF7D6;
  border-color: #EBD98A;
}

.team-category-former-team-members .team-sketch-icon {
  color: #333333;
  background: #F0F0F0;
  border-color: #D4D4D4;
}

@media (max-width: 600px) {
  .team-sketch-icon {
    width: 76px;
    height: 76px;
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-sketch-icon {
    transform: none;
  }
}


/* Search and Language Support sketch icons */
.utility-sketch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 18px 0 0;
  padding: 12px;
  border: 2px dashed currentColor;
  border-radius: 50% 44% 48% 42%;
  background: rgba(255, 255, 255, 0.72);
}

.utility-sketch-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.utility-sketch-icon-search {
  color: #1685b5;
}

.utility-sketch-icon-languages {
  color: #218344;
}


/* Footer utility-link icons */
.footer-grid a.footer-utility-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 32px;
  padding: 4px 0;
}

.footer-utility-icon {
  display: block;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-search-icon {
  color: #1685b5;
}

.footer-language-icon {
  color: #218344;
}

.footer-grid a.footer-utility-link:focus-visible {
  outline: 2px solid #1685b5;
  outline-offset: 4px;
  border-radius: 3px;
}

@media (max-width: 480px) {
  .footer-grid a.footer-utility-link {
    min-height: 36px;
  }
}


/* Footer volunteer, donate and contact icons */
.footer-volunteer-icon {
  color: #218344;
}

.footer-donate-icon {
  color: #a77b00;
}

.footer-contact-icon {
  color: #1685b5;
}


/* HD mobile menu icon */
.menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 9px;
}
.menu-icon {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Professional high-clarity navigation and footer icons */
.menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 8px;
  color: #111111;
  cursor: pointer;
}
.menu-icon {
  display: block;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-utility-icon {
  display: inline-block;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.footer-utility-link {
  align-items: center;
  gap: 10px;
}
.footer-utility-link:focus-visible,
.menu:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .menu-icon {
    width: 32px;
    height: 32px;
    stroke-width: 2.6;
  }
  .footer-utility-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}


/* KRCBO HD header menu icon */
.menu-icon {
  display: block;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu {
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}


/* KRCBO HD footer icons */
.footer-utility-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.footer-utility-link {
  align-items: center;
  gap: 10px;
}
.footer-utility-link:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

/* KRCBO COORDINATED VISIBLE HOVER UPDATE */
@media (hover: hover) {
  nav a:not(.navbtn):hover {
    color: #102f43;
    background: #e1f4fc;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  nav .navbtn:hover,
  .btn.primary:hover,
  .public-form .btn:hover {
    filter: brightness(0.88);
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
  }

  .footer-grid a:hover {
    color: #006400;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .project-feature-card:hover,
  .program-feature-card:hover {
    border-color: #1685b5;
    box-shadow: 0 12px 28px rgba(22, 133, 181, 0.2);
  }

  .public-form .form-option:hover {
    border-color: #1685b5;
    background: #eaf7fc;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.project-feature-card:focus-visible,
.program-feature-card:focus-visible {
  outline: 3px solid #087f8c;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  nav a,
  nav .navbtn,
  .btn.primary,
  .public-form .btn,
  .footer-grid a,
  .project-feature-card,
  .program-feature-card,
  .public-form .form-option {
    transition:
      color 0.18s ease,
      background-color 0.18s ease,
      border-color 0.18s ease,
      box-shadow 0.18s ease,
      transform 0.18s ease,
      filter 0.18s ease;
  }
}
/* END KRCBO COORDINATED VISIBLE HOVER UPDATE */

/* KRCBO FOUR-COLOUR PAGE FRAME */
html {
  min-height: 100%;
  background: #ffffff;
}

body {
  min-height: 100vh;
  background-color: #ffffff;
  background-image:
    linear-gradient(#008000, #008000),
    linear-gradient(#87CEEB, #87CEEB),
    linear-gradient(#87CEEB, #87CEEB),
    linear-gradient(#008000, #008000),
    linear-gradient(#FFFF00, #FFFF00),
    linear-gradient(#FFFF00, #FFFF00);
  background-repeat: no-repeat;
  background-size:
    5px 100%,
    4px 100%,
    4px 100%,
    5px 100%,
    100% 4px,
    100% 4px;
  background-position:
    left top,
    5px top,
    calc(100% - 9px) top,
    right top,
    center top,
    center bottom;
  background-attachment: fixed;
}

@media (max-width: 600px) {
  body {
    background-size:
      3px 100%,
      3px 100%,
      3px 100%,
      3px 100%,
      100% 3px,
      100% 3px;
    background-position:
      left top,
      3px top,
      calc(100% - 6px) top,
      right top,
      center top,
      center bottom;
  }
}
/* END KRCBO FOUR-COLOUR PAGE FRAME */


/* KRCBO VISIBLE FOUR-COLOUR FRAME */
.site-color-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}
.site-color-frame span {
  position: absolute;
  display: block;
}
.site-color-frame .frame-top,
.site-color-frame .frame-bottom {
  left: 0;
  right: 0;
  height: 4px;
  background: #FFD700;
}
.site-color-frame .frame-top { top: 0; }
.site-color-frame .frame-bottom { bottom: 0; }
.site-color-frame .frame-left,
.site-color-frame .frame-right {
  top: 4px;
  bottom: 4px;
  width: 9px;
  background: linear-gradient(to right, #008000 0 5px, #87CEEB 5px 9px);
}
.site-color-frame .frame-left { left: 0; }
.site-color-frame .frame-right {
  right: 0;
  transform: scaleX(-1);
}
.menu-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.menu-label { display: inline-block; }
.footer-utility-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.whatsapp-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.menu, .footer-utility-link, .whatsapp-float {
  align-items: center;
  gap: 8px;
}
@media print {
  .site-color-frame { display: none; }
}
/* END KRCBO VISIBLE FOUR-COLOUR FRAME */

/* Navigation icon size and colour */
#main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#main-nav .nav-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  color: #0877b9;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  vertical-align: middle;
}

/* KAKUMA READ CBO navigation brand colours */
#main-nav a:nth-of-type(1) .nav-icon { color: #87CEEB; } /* Home */
#main-nav a:nth-of-type(2) .nav-icon { color: #008000; } /* About Us */
#main-nav a:nth-of-type(3) .nav-icon { color: #FFD700; } /* Team */
#main-nav a:nth-of-type(4) .nav-icon { color: #87CEEB; } /* Programs */
#main-nav a:nth-of-type(5) .nav-icon { color: #008000; } /* Projects */
#main-nav a:nth-of-type(6) .nav-icon { color: #FFD700; } /* Impact */
#main-nav a:nth-of-type(7) .nav-icon { color: #008000; } /* Volunteer */
#main-nav a:nth-of-type(8) .nav-icon { color: #DC2626; } /* Donate */
#main-nav a:nth-of-type(9) .nav-icon { color: #87CEEB; } /* Contact Us */


/* KAKUMA READ CBO footer brand refinements */
.site-footer .footer-brand {
  color: #0369A1;
}

.site-footer .footer-grid h2 {
  color: #0369A1;
}

.site-footer .footer-grid a.footer-utility-link[href*="volunteer"] .footer-utility-icon {
  color: #008000;
}

.site-footer .footer-grid a.footer-utility-link[href*="donate"] .footer-utility-icon {
  color: #DC2626;
}

.site-footer .footer-grid a.footer-utility-link[href*="contact"] .footer-utility-icon {
  color: #0369A1;
}

.site-footer .footer-grid a.footer-utility-link[href*="search"] .footer-utility-icon {
  color: #0369A1;
}

.site-footer .footer-grid a.footer-utility-link[href*="languages"] .footer-utility-icon {
  color: #008000;
}

.site-footer .footer-grid a.footer-utility-link:hover .footer-utility-icon {
  opacity: 0.75;
}


/* KAKUMA READ CBO — Three-line mobile menu button */
#mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 9px;
  margin-left: 8px;

  color: #0877B9;
  background: #FFFFFF;
  border: 2px solid #87CEEB;
  border-radius: 8px;

  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

/* Three lines */
#mobile-menu-toggle .menu-icon {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: inherit;
  stroke: currentColor;
}

/* Mouse hover */
#mobile-menu-toggle:hover {
  color: #FFFFFF;
  background: #0877B9;
  border-color: #0877B9;
  box-shadow: 0 3px 8px rgba(8, 119, 185, 0.22);
}

/* Pressed state */
#mobile-menu-toggle:active {
  background: #055A8C;
  border-color: #055A8C;
  transform: scale(0.96);
}

/* Keyboard accessibility */
#mobile-menu-toggle:focus-visible {
  outline: 3px solid #FFD700;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #FFFFFF;
}

/* Keep the button compact on small screens */
@media (max-width: 900px) {
  #mobile-menu-toggle {
    display: inline-flex;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  #mobile-menu-toggle {
    transition: none;
  }
}



/* KRCBO mobile dropdown navigation fix */
@media (max-width: 900px) {
  .site-header .container.nav {
    position: relative;
    flex-wrap: wrap;
  }

  #mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  #main-nav {
    display: none;
    flex: 0 0 100%;
    width: 100%;
  }

  #main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  #main-nav.open a {
    width: 100%;
  }
}


/* Social Media footer: crisp SVG marks aligned with existing utility links */
.site-footer .footer-social-column > a.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.7rem;
  text-decoration: none;
  line-height: 1.35;
}
.site-footer .footer-social-icon {
  display: block;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}
.site-footer .footer-social-link > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}
.site-footer .footer-social-link small {
  display: block;
  margin-top: 2px;
  font-size: 0.82em;
  opacity: 0.82;
}
.site-footer .footer-social-facebook { color: #1877F2; }
.site-footer .footer-social-instagram { color: #E4405F; }
.site-footer .footer-social-youtube { color: #FF0033; }
.site-footer .footer-social-linkedin { color: #0A66C2; }
.site-footer .footer-social-spotify { color: #1DB954; }
.site-footer .footer-social-x { color: #FFFFFF; }
.site-footer .footer-social-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}



/* Original brand colours */
.footer-social-column a:nth-of-type(1) svg { color: #1877F2; }
.footer-social-column a:nth-of-type(2) svg { color: #E4405F; }
.footer-social-column a:nth-of-type(3) svg { color: #FF0000; }
.footer-social-column a:nth-of-type(4) svg { color: #0A66C2; }
.footer-social-column a:nth-of-type(5) svg { color: #1DB954; }
.footer-social-column a:nth-of-type(6) svg { color: #FFFFFF; }

/* Subtle hover feedback */
.footer-social-column a:hover svg,
.footer-social-column a:focus-visible svg {
  transform: scale(1.12);
  opacity: .82;
}

.footer-social-column a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}

/* Keep the social column consistent with the footer layout */
@media (max-width: 760px) {
  .footer-social-column {
    min-width: 0;
  }
}




/* KRCBO social-only two-column layout */
.footer-grid > .footer-social-column {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  align-content: flex-start;
  gap: 6px 10px;
}

.footer-social-column h2 {
  flex: 0 0 100%;
  width: 100%;
  text-align: center;
  margin-bottom: 4px;
}

.footer-social-column a.footer-social-link {
  box-sizing: border-box;
  width: calc(50% - 5px);
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 4px 1px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.footer-social-column a.footer-social-link:nth-of-type(2n + 3)::before {
  content: none;
}

.footer-social-column .footer-social-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex: 0 0 18px;
}

.footer-social-column .footer-social-facebook { color: #1877F2; }
.footer-social-column .footer-social-instagram { color: #E4405F; }
.footer-social-column .footer-social-youtube { color: #FF0000; }
.footer-social-column .footer-social-linkedin { color: #0A66C2; }
.footer-social-column .footer-social-spotify { color: #1DB954; }
.footer-social-column .footer-social-x { color: #FFFFFF; }

.footer-social-column a.footer-social-link:hover,
.footer-social-column a.footer-social-link:focus-visible {
  opacity: .82;
  text-decoration: underline;
}

.footer-social-column a.footer-social-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.footer-social-column a.footer-social-link small {
  display: none;
}

/* Center Social Media in the footer on desktop and mobile */
footer .social-media,
footer .social-links,
footer .social-icons {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center the heading */
footer .social-media h3,
footer .social-links h3,
footer .social-icons h3 {
    text-align: center !important;
    width: 100%;
}

/* Center the social links as a group */
footer .social-media,
footer .social-links,
footer .social-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Keep each link neatly aligned */
footer .social-media a,
footer .social-links a,
footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    line-height: 1.8;
    margin: 5px 8px;
}

/* Maintain larger icons */
footer .social-media a i,
footer .social-links a i,
footer .social-icons a i,
footer .social-media a svg,
footer .social-links a svg,
footer .social-icons a svg {
    width: 24px;
    height: 24px;
    font-size: 24px;
}



/* KAKUMA READ CBO Floating Search */
.krcbo-floating-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 12px;
  z-index: 110;
}
.krcbo-search-toggle {
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
.krcbo-search-toggle:hover { background: #146c43; }
.krcbo-search-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.krcbo-search-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 350px;
  max-width: calc(100vw - 30px);
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
  color: #183653;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
  z-index: 9999;
}
.krcbo-search-dropdown[hidden] { display: none; }
.krcbo-search-dropdown form {
  display: flex;
  gap: 6px;
}
.krcbo-search-dropdown input {
  min-width: 0;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #d5dce5;
  border-radius: 5px;
  font-size: 15px;
}
.krcbo-search-dropdown form button {
  border: 0;
  border-radius: 5px;
  padding: 0 14px;
  background: #087ff5;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.krcbo-search-dropdown p {
  margin: 18px 0 8px;
  font-weight: 700;
  color: #102b50;
}
.krcbo-search-dropdown > a {
  display: block;
  padding: 9px 2px;
  color: #183653;
  text-decoration: none;
}
.krcbo-search-dropdown > a:hover { color: #087ff5; }

@media (max-width: 800px) {
  .krcbo-floating-search {
    margin-left: auto;
    margin-right: 8px;
  }
  .krcbo-search-toggle {
    width: 34px;
    height: 34px;
  }
  .krcbo-search-dropdown {
    position: fixed;
    top: 80px;
    right: 12px;
    width: 350px;
    max-width: calc(100vw - 24px);
  }
}
