:root {
  --mh-ink: #14213d;
  --mh-deep: #16302b;
  --mh-green: #1f7a5b;
  --mh-mint: #e7f5ef;
  --mh-gold: #f4b942;
  --mh-coral: #dd5a42;
  --mh-paper: #fbfaf6;
  --mh-line: #d9e3dd;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body.mindhub-body {
  background: var(--mh-paper);
  color: var(--mh-ink);
}

.mindhub-body a {
  text-decoration: none;
}

.mindhub-nav {
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06);
}

.brand-mark {
  align-items: center;
  color: var(--mh-ink);
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  gap: 10px;
}

.brand-mark span:first-child {
  align-items: center;
  background: var(--mh-green);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-mark small {
  color: var(--mh-green);
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
  text-transform: uppercase;
}

.mindhub-nav .nav-link {
  color: var(--mh-ink);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 14px;
}

.mindhub-nav .nav-link:hover,
.mindhub-nav .nav-link:focus {
  color: var(--mh-green);
}

.mindhub-nav .navbar-toggler {
  align-items: center;
  border-color: rgba(20, 33, 61, 0.2);
  border-radius: 6px;
  display: inline-flex !important;
  height: 42px;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  width: 46px;
}

.mindhub-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(31, 122, 91, 0.18);
}

.mindhub-nav .navbar-toggler-icon {
  background: var(--mh-ink);
  border-radius: 3px;
  display: block;
  height: 2px;
  position: relative;
  width: 22px;
}

.mindhub-nav .navbar-toggler-icon::before,
.mindhub-nav .navbar-toggler-icon::after {
  background: var(--mh-ink);
  border-radius: 3px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 22px;
}

.mindhub-nav .navbar-toggler-icon::before {
  top: -7px;
}

.mindhub-nav .navbar-toggler-icon::after {
  top: 7px;
}

.mindhub-hero [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

.mindhub-btn,
.mindhub-btn-alt {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.mindhub-btn {
  background: var(--mh-gold);
  color: #171717;
}

.mindhub-btn-alt {
  background: #fff;
  color: var(--mh-ink);
}

.mindhub-btn:hover,
.mindhub-btn-alt:hover {
  color: #171717;
  transform: translateY(-2px);
}

.mindhub-hero {
  background-image: linear-gradient(90deg, rgba(6, 16, 20, 0.96) 0%, rgba(6, 16, 20, 0.84) 42%, rgba(6, 16, 20, 0.2) 78%), url("../images/pic12.jpg");
  background-position: center;
  background-size: cover;
  color: #fff;
  min-height: 760px;
  overflow: hidden;
  padding: 160px 0 96px;
  position: relative;
}

.mindhub-hero .eyebrow,
.section-eyebrow {
  align-items: center;
  color: var(--mh-gold);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 9px;
  text-transform: uppercase;
}

.mindhub-hero h1 {
  color: #fff;
  font-size: 68px;
  font-weight: 900;
  line-height: 1.02;
  margin: 18px 0 18px;
  max-width: 650px;
}

.mindhub-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.65;
  max-width: 680px;
}

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

.hero-note {
  border-left: 4px solid var(--mh-gold);
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 34px;
  max-width: 590px;
  padding-left: 18px;
}

.stats-band {
  background: #fff;
  border-bottom: 1px solid var(--mh-line);
  border-top: 1px solid var(--mh-line);
}

.stat-item {
  border-right: 1px solid var(--mh-line);
  padding: 26px 22px;
}

.stat-item.last {
  border-right: 0;
}

.stat-item strong {
  color: var(--mh-green);
  display: block;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.stat-item span {
  color: #52625b;
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
}

.section-space {
  padding: 96px 0;
}

.section-space-sm {
  padding: 72px 0;
}

.section-title {
  color: var(--mh-ink);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.12;
  margin: 14px 0 18px;
}

.section-copy {
  color: #53635e;
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
}

.snapshot-card,
.value-card,
.track-card,
.impact-card,
.process-step,
.note-panel,
.join-panel {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
}

.snapshot-card {
  height: 100%;
  padding: 28px;
}

.snapshot-card i,
.track-icon,
.impact-card i {
  align-items: center;
  background: var(--mh-mint);
  border-radius: 6px;
  color: var(--mh-green);
  display: inline-flex;
  font-size: 22px;
  height: 52px;
  justify-content: center;
  margin-bottom: 18px;
  width: 52px;
}

.snapshot-card h3,
.value-card h3,
.track-card h3,
.impact-card h3,
.process-step h3 {
  color: var(--mh-ink);
  font-size: 21px;
  font-weight: 850;
  margin-bottom: 12px;
}

.snapshot-card p,
.value-card p,
.track-card p,
.impact-card p,
.process-step p {
  color: #5a6965;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.image-stack {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 0.82fr;
}

.image-stack img {
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-stack .large {
  min-height: 420px;
}

.image-stack .small-wrap {
  display: grid;
  gap: 18px;
}

.image-stack .small-wrap img {
  min-height: 200px;
}

.mission-panel {
  background: var(--mh-deep);
  border-radius: 8px;
  color: #fff;
  padding: 34px;
}

.mission-panel h3 {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 12px;
}

.mission-panel p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  margin: 0;
}

.founder-card {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  margin-top: 56px;
  overflow: hidden;
}

.founder-photo {
  height: 100%;
}

.founder-photo img {
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.founder-copy {
  padding: 44px;
}

.founder-copy h3 {
  color: var(--mh-ink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  margin: 10px 0 12px;
}

.founder-title {
  color: var(--mh-green);
  display: block;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.founder-copy p {
  color: #53635e;
  line-height: 1.8;
  margin: 0 0 18px;
}

.founder-highlights {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
}

.founder-highlights li {
  align-items: center;
  color: #43534e;
  display: flex;
  font-weight: 800;
  gap: 10px;
  list-style: none;
}

.founder-highlights i {
  color: var(--mh-coral);
}

.value-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-card {
  padding: 22px;
}

.value-card i {
  color: var(--mh-coral);
  margin-right: 10px;
}

.serve-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
}

.serve-list li,
.track-card li,
.impact-list li,
.footer-links li {
  list-style: none;
}

.serve-list li {
  align-items: center;
  color: #43534e;
  display: flex;
  font-weight: 700;
  gap: 10px;
}

.serve-list i {
  color: var(--mh-green);
}

.programme-section {
  background: #f1f7f2;
}

.track-card {
  height: 100%;
  padding: 30px;
}

.track-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 22px;
  padding: 0;
}

.track-card li {
  color: #43534e;
  display: flex;
  gap: 10px;
  line-height: 1.55;
}

.track-card li i {
  color: var(--mh-green);
  margin-top: 4px;
}

.outcome {
  background: #fff6df;
  border-left: 4px solid var(--mh-gold);
  border-radius: 6px;
  color: #3f3722;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  padding: 14px 16px;
}

.process-row {
  counter-reset: process;
}

.process-step {
  height: 100%;
  padding: 28px;
  position: relative;
}

.process-step::before {
  background: var(--mh-green);
  border-radius: 50%;
  color: #fff;
  content: counter(process);
  counter-increment: process;
  display: inline-flex;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  margin-bottom: 18px;
  width: 36px;
}

.field-gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr 1fr 1fr;
  margin-top: 42px;
}

.field-gallery img {
  border-radius: 8px;
  height: 238px;
  object-fit: cover;
  width: 100%;
}

.field-gallery img:first-child {
  grid-row: span 2;
  height: 494px;
}

.representation-section {
  background: var(--mh-deep);
  color: #fff;
}

.representation-section .section-title,
.representation-section .snapshot-card h3,
.representation-section .note-panel h3 {
  color: #fff;
}

.representation-section .section-copy {
  color: rgba(255, 255, 255, 0.78);
}

.representation-section .snapshot-card,
.representation-section .note-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.representation-section .snapshot-card p,
.representation-section .note-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.representation-section .snapshot-card i {
  background: rgba(244, 185, 66, 0.18);
  color: var(--mh-gold);
}

.note-panel {
  border-left: 5px solid var(--mh-gold);
  padding: 30px;
}

.note-panel h3 {
  color: var(--mh-ink);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.note-panel p {
  color: #53635e;
  line-height: 1.8;
  margin: 0;
}

.impact-card {
  height: 100%;
  padding: 28px;
}

.impact-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.impact-list li {
  color: #52625b;
  display: flex;
  gap: 10px;
  line-height: 1.55;
}

.impact-list i {
  color: var(--mh-coral);
  margin-top: 4px;
}

.quote-strip {
  background: var(--mh-ink);
  color: #fff;
  padding: 58px 0;
}

.quote-strip blockquote {
  color: #fff;
  font-size: 30px;
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
}

.quote-strip cite {
  color: var(--mh-gold);
  display: block;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  margin-top: 18px;
}

.join-panel {
  background: #fff;
  overflow: hidden;
}

.join-copy {
  padding: 48px;
}

.join-copy h2 {
  color: var(--mh-ink);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}

.join-copy p {
  color: #53635e;
  line-height: 1.8;
  margin-bottom: 28px;
}

.join-image {
  background-image: url("../images/pic5.jpg");
  background-position: center;
  background-size: cover;
  min-height: 420px;
}

.join-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.join-form {
  display: grid;
  gap: 14px;
}

.join-form .form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.join-form input,
.join-form select,
.join-form textarea {
  background: #f7faf7;
  border: 1px solid var(--mh-line);
  border-radius: 6px;
  color: var(--mh-ink);
  font-size: 15px;
  min-height: 50px;
  padding: 13px 14px;
  width: 100%;
}

.join-form textarea {
  min-height: 112px;
  resize: vertical;
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
  border-color: var(--mh-green);
  box-shadow: 0 0 0 3px rgba(31, 122, 91, 0.15);
  outline: 0;
}

.donation-cta-section {
  background: #fff;
  padding: 72px 0 0;
}

.donation-cta {
  align-items: center;
  background: var(--mh-deep);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 42px;
}

.donation-cta h2 {
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.18;
  margin: 10px 0 12px;
}

.donation-cta p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  margin: 0;
  max-width: 760px;
}

.donate-hero {
  background-image: linear-gradient(90deg, rgba(6, 16, 20, 0.96), rgba(6, 16, 20, 0.7)), url("../images/pic6.jpg");
  background-position: center;
  background-size: cover;
  color: #fff;
  padding: 150px 0 86px;
}

.donate-hero h1 {
  color: #fff;
  font-size: 58px;
  font-weight: 900;
  line-height: 1.05;
  margin: 14px 0 18px;
}

.donate-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.7;
  max-width: 760px;
}

.donation-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.15fr 0.85fr;
}

.donation-card {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  height: 100%;
  padding: 30px;
}

.donation-card h2,
.donation-card h3 {
  color: var(--mh-ink);
  font-weight: 900;
}

.donation-card p {
  color: #53635e;
  line-height: 1.75;
}

.donation-methods {
  display: grid;
  gap: 18px;
}

.method-row {
  align-items: flex-start;
  background: #f7faf7;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  padding: 20px;
}

.method-row i {
  align-items: center;
  background: var(--mh-mint);
  border-radius: 6px;
  color: var(--mh-green);
  display: inline-flex;
  flex: 0 0 46px;
  height: 46px;
  justify-content: center;
}

.method-row strong {
  color: var(--mh-ink);
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.method-row span {
  color: #53635e;
  display: block;
  line-height: 1.6;
}

.mpesa-method > div {
  width: 100%;
}

.mpesa-form {
  margin-top: 14px;
}

.mpesa-form input,
.mpesa-form textarea {
  background: #fff;
}

.mpesa-form textarea {
  min-height: 92px;
}

.mpesa-form .mindhub-btn {
  justify-content: center;
  width: 100%;
}

.donation-detail-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
}

.donation-detail-list li {
  align-items: center;
  border-bottom: 1px solid var(--mh-line);
  color: #43534e;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  padding-bottom: 12px;
}

.donation-detail-list b {
  color: var(--mh-ink);
}

.paypal-box {
  background: #f7faf7;
  border: 1px dashed rgba(31, 122, 91, 0.45);
  border-radius: 8px;
  margin-top: 20px;
  min-height: 120px;
  padding: 18px;
}

.paypal-help {
  color: #53635e;
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 0;
}

.paypal-placeholder {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 6px;
  color: #43534e;
  font-weight: 800;
  padding: 16px;
  text-align: center;
}

.site-footer {
  background: #0f1f1c;
  color: rgba(255, 255, 255, 0.74);
  padding: 72px 0 28px;
}

.site-footer .brand-mark {
  color: #fff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin: 18px 0 0;
}

.site-footer h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 20px;
}

.footer-links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--mh-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 46px;
  padding-top: 24px;
}

@media (max-width: 991px) {
  .mindhub-nav .navbar-collapse {
    padding: 18px 0;
  }

  .mindhub-hero {
    background-position: 60% center;
    min-height: auto;
    padding: 132px 0 76px;
  }

  .mindhub-hero h1 {
    font-size: 48px;
  }

  .mindhub-hero p {
    font-size: 18px;
  }

  .stat-item {
    border-bottom: 1px solid var(--mh-line);
  }

  .stat-item.last {
    border-bottom: 0;
  }

  .section-title,
  .join-copy h2 {
    font-size: 34px;
  }

  .donation-cta,
  .donation-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .image-stack {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
  }

  .image-stack .large,
  .image-stack .small-wrap img,
  .join-image {
    min-height: 280px;
  }

  .founder-photo img {
    min-height: 360px;
  }

  .founder-copy {
    padding: 34px;
  }

  .field-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-gallery img:first-child {
    grid-column: span 2;
    grid-row: auto;
    height: 360px;
  }
}

@media (min-width: 992px) {
  .mindhub-nav .navbar-toggler {
    display: none !important;
  }
}

@media (max-width: 575px) {
  .brand-mark {
    font-size: 18px;
  }

  .brand-mark span:first-child {
    height: 38px;
    width: 38px;
  }

  .mindhub-nav .container {
    margin-left: 0;
    margin-right: 0;
    max-width: 390px;
  }

  .mindhub-hero {
    background-image: linear-gradient(90deg, rgba(6, 16, 20, 0.97) 0%, rgba(6, 16, 20, 0.86) 100%), url("../images/pic12.jpg");
    background-position: 54% center;
    padding: 118px 0 64px;
  }

  .mindhub-hero h1 {
    font-size: 34px;
    max-width: 340px;
  }

  .mindhub-hero p {
    font-size: 16px;
    line-height: 1.75;
    max-width: 342px;
  }

  .hero-actions,
  .hero-note {
    max-width: 342px;
  }

  .stats-band .col-6 {
    width: 100%;
  }

  .stat-item {
    padding: 24px 20px;
  }

  .stat-item span {
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: break-word;
  }

  .hero-actions,
  .join-options {
    flex-direction: column;
  }

  .mindhub-btn,
  .mindhub-btn-alt {
    width: 100%;
  }

  .join-form .form-row {
    grid-template-columns: 1fr;
  }

  .section-space {
    padding: 72px 0;
  }

  .section-space-sm {
    padding: 58px 0;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .mission-panel,
  .join-copy,
  .founder-copy {
    padding: 28px;
  }

  .founder-copy h3 {
    font-size: 28px;
  }

  .field-gallery {
    grid-template-columns: 1fr;
  }

  .field-gallery img,
  .field-gallery img:first-child {
    grid-column: auto;
    height: 240px;
  }

  .quote-strip blockquote {
    font-size: 24px;
  }

  .donation-cta {
    padding: 28px;
  }

  .donation-cta h2,
  .donate-hero h1 {
    font-size: 34px;
  }

  .donate-hero {
    padding: 118px 0 64px;
  }

  .method-row,
  .donation-detail-list li {
    align-items: flex-start;
    flex-direction: column;
  }
}
