:root {
    --orange: #f57c00;
    --gold: #d4af37;
    --smoke: #2f2f2f;
    --light: #f3f3f3;
    --dark: #121212;
}

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

/* BODY */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--smoke);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* DARK MODE */
body.dark {
    background: var(--dark);
    color: #e0e0e0;
}

/* BACKGROUND LOGO */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../img/logo-mtendere.png") center no-repeat;
    background-size: 60%;
    opacity: 0.05;
    z-index: -1;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* HEADER */
header {
    background: var(--smoke);
    color: white;
    padding: 15px 0;
    border-bottom: 4px solid var(--orange);
}

#branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

#branding img {
    height: 45px;
}

.highlight {
    color: var(--gold);
}

/* NAV */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li.current a,
nav ul li a:hover {
    color: var(--orange);
}

/* SHOWCASE */
#showcase {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(rgba(47, 47, 47, 0.85),
            rgba(47, 47, 47, 0.85));
    color: white;
}

/* SECTIONS */
section {
    padding: 40px 0;
}

/* BOXES */
#boxes .box {
    background: white;
    padding: 20px;
    margin: 10px;
    border-left: 5px solid var(--gold);
    transition: transform 0.3s;
}

/* SCROLL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* BUTTONS */
.button_1 {
    background: var(--orange);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.button_1:hover {
    background: var(--gold);
}


/* DARK MODE BUTTON */
#darkToggle {
    cursor: pointer;
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 5px 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
}

.evidence-based {
    text-align: center;
    margin-top: 40px;
}

.action-buttons {
    margin: 20px 0;
}

.primary-btn,
.secondary-btn {
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin: 10px;
    font-size: 16px;
}

.primary-btn {
    background: #1b7a5f;
    color: #fff;
}

.secondary-btn {
    background: #f0f0f0;
    color: #333;
}

.card {
    background: #ffffff;
    padding: 25px;
    margin-top: 25px;
    border-radius: 10px;
    text-align: left;
}

.hidden {
    display: none;
}

.card label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.card input,
.card textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.program {
    margin-top: 20px;
}

.learn-link {
    color: #1b7a5f;
    font-weight: bold;
    text-decoration: none;
}

/* ABOUT BUTTONS */
/* ABOUT PAGE BUTTON SECTION */
.about-buttons.horizontal {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Stack buttons on mobile */
@media (max-width: 768px) {
    .about-buttons.horizontal {
        flex-direction: column;
    }
}

.about-btn {
    flex: 1;
    padding: 14px;
    background: #1b7a5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.about-btn:hover {
    background: #155c48;
}

/* Smooth slide animation */
.about-content {
    background: #f9f9f9;
    margin-top: 15px;
    padding: 0 15px;
    border-radius: 6px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.about-content.active {
    max-height: 500px;
    padding: 15px;
}

.about-content ul {
    padding-left: 20px;
}

/* Dark mode support */
body.dark .about-content {
    background: #222;
    color: #f0f0f0;
}


/* ABOUT SECTION BUTTONS */
.about-buttons.horizontal {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .about-buttons.horizontal {
        flex-direction: column;
    }
}

.about-btn {
    position: relative;
    flex: 1;
    padding: 14px;
    background: #1b7a5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.about-btn:hover {
    background: #155c48;
}

/* Arrow pointer */
.about-btn .arrow {
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #1b7a5f;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Active arrow */
.about-btn.active .arrow {
    opacity: 1;
}

/* Smooth slide content */
.about-content {
    background: #f9f9f9;
    margin-top: 15px;
    padding: 0 15px;
    border-radius: 6px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.about-content.active {
    max-height: 500px;
    padding: 15px;
}

.about-content ul {
    padding-left: 20px;
}

/* Dark mode */
body.dark .about-content {
    background: #222;
    color: #f0f0f0;
}


#activities {
    margin-top: 50px;
}

#activities h1 {
    text-align: center;
    margin-bottom: 20px;
}

.activity {
    margin-bottom: 35px;
}

.activity h3 {
    color: #1b7a5f;
}

.activity-img {
    width: 100%;
    max-width: 600px;
    margin-top: 15px;
    border-radius: 8px;
    display: block;
}

/* Placeholder for future images */
.image-placeholder {
    margin-top: 15px;
    padding: 40px;
    border: 2px dashed #ccc;
    text-align: center;
    border-radius: 8px;
    color: #777;
}

/* Dark mode support */
body.dark .image-placeholder {
    border-color: #555;
    color: #bbb;
}


/* ACTIVITIES SECTION */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    margin-left: 20px;
    border-left: 3px solid #1b7a5f;
}

.timeline-item {
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-content h2 {
    color: #1b7a5f;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin-top: 10px;
}

/* Gallery grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* Dark mode */
body.dark .timeline {
    border-left-color: #4ad6a7;
}

/* GALLERY PAGE */
#gallery-page {
    margin-top: 40px;
}

.center-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* Dark mode support */
body.dark .center-text {
    color: #ddd;
}


/* Lightbox navigation */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.lightbox .nav {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}


/* GALLERY PAGE */
#gallery-page {
    margin-top: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.center-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.lightbox .nav {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

/* Dark mode */
body.dark .center-text {
    color: #ddd;
}


.gallery-grid img {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


/* TEAM & FOUNDERS */
#team-founders {
    margin-top: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.team-card {
    background: #f4f4f4;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
}

body.dark .team-card {
    background: #1e1e1e;
}

.team-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.team-card h3 {
    margin: 10px 0 5px;
}

.team-card p {
    font-size: 0.9rem;
    color: #555;
}

body.dark .team-card p {
    color: #ccc;
}

/* FOUNDERS PHOTOS */
.founders-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.founders-photos div {
    background: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .founders-photos div {
    background: #1e1e1e;
}

.founders-photos img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Hover effect */
.founders-photos div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* NEWS & UPDATES */
#news-updates {
    margin: 60px 0;
}

.news-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
}

body.dark .news-card {
    background: #1e1e1e;
}

.news-text h2 {
    margin-top: 0;
}

.news-text ul {
    margin-left: 20px;
}

.news-text li {
    margin-bottom: 8px;
}

.news-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    width: 100%;
    height: 220px;
    border: 2px dashed #aaa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #777;
    text-align: center;
    padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-card {
        grid-template-columns: 1fr;
    }
}


/* BACK TO TOP BUTTON */
.back-to-top-wrapper {
    display: flex;
    justify-content: center;
    margin: 60px 0 30px;
}

#backToTop {
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    background: #2c7be5;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

#backToTop:hover {
    background: #1a5fd0;
    transform: translateY(-3px);
}

/* Dark mode */
body.dark #backToTop {
    background: #4da3ff;
    color: #000;
}

body.dark #backToTop:hover {
    background: #78baff;
}


/* FOOTER */
.site-footer {
    background: #1f1f1f;
    /* dark smoke */
    color: #f5f5f5;
    padding: 50px 20px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    /* FORCE CENTER STACK */
    align-items: center;
    gap: 35px;
}

/* INFO */
.footer-info h3 {
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-info p {
    line-height: 1.7;
    margin: 5px 0;
}

.footer-info a {
    color: #dcdcdc;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* SOCIAL */
.footer-social h4 {
    margin-bottom: 14px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    /* CENTER ICON + TEXT */
    gap: 10px;
    margin: 10px 0;
    color: #f5f5f5;
    text-decoration: none;
}

.social-link img {
    width: 28px;
    height: 28px;
}

/* BOTTOM BAR */
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 15px;
    font-size: 14px;
    color: #bdbdbd;
}


.site-footer {
    background: #2b2b2b;
    color: #f1f1f1;
    text-align: center;
    padding: 40px 20px;
}

.footer-social img {
    width: 22px;
    vertical-align: middle;
    margin-right: 6px;
}

.back-to-top-wrapper {
    text-align: center;
    margin: 40px 0;
}

#backToTop {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    background: #2f3e46;
    color: white;
    cursor: pointer;
}


#take-a-tour {
    padding: 60px 0;
    text-align: center;
}

.video-wrapper {
    max-width: 900px;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    height: 480px;
    border: none;
}

@media (max-width: 768px) {

    .video-wrapper video,
    .video-wrapper iframe {
        height: 220px;
    }
}


/* DONATE SECTION */
.footer-donate {
    text-align: center;
    max-width: 600px;
}

.footer-donate h4 {
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-donate p {
    margin-bottom: 15px;
    color: #dcdcdc;
    line-height: 1.6;
}

.donate-btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 30px;
    background: var(--orange);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.donate-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

/* DONATE SECTION */
.footer-donate {
    max-width: 650px;
    margin: 0 auto;
    /* CENTER HORIZONTALLY */
    text-align: center;
    /* CENTER TEXT */
}

.footer-donate h4 {
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-donate p {
    margin-bottom: 18px;
    color: #dcdcdc;
    line-height: 1.6;
}

.donate-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    background: var(--orange);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.donate-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
}


.footer-sponsor {
    display: flex;
    flex-direction: column;
    /* stack image above text */
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 12px;
    text-align: center;
}

.footer-sponsor img {
    width: 192px;
    /* same size as other icons */
    height: auto;
    opacity: 0.9;
}

.footer-sponsor p {
    font-size: 0.85rem;
    margin: 0;
}

/* ===============================
   MODERN ARTICLE CARD DESIGN
=================================*/

.news-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Image on top like modern blog */
.news-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Text section */
.news-text {
  padding: 30px;
}

/* Article titles */
.news-text h2 {
  font-size: 26px;
  margin-bottom: 10px;
  color: #222;
}

/* Metadata styling */
.article-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
}

/* Paragraph styling */
.news-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* Modern button style */
.read-more {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: #0a4f8a; /* your theme blue */
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease;
}

.read-more:hover {
  background: #083b66;
}

/* Reduce article & news image size */

.news-image img {
  width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.section-highlight {
  color: #1c7c3c;        /* Professional green */
  font-weight: 700;
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 15px;
  border-left: 5px solid #1c7c3c;
  padding-left: 10px;
}

.hero {
  height: 90vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  animation: slideBackground 20s infinite;
}

@keyframes slideBackground {

  0% {
    background-image: url("../img/bg1.jpg");
  }

  25% {
    background-image: url("../img/bg2.jpg");
  }

  50% {
    background-image: url("../img/bg3.jpg");
  }

  75% {
    background-image: url("../img/bg4.jpg");
  }

  100% {
    background-image: url("../img/bg1.jpg");
  }

}

.hero-text{
  color: white;
  text-align: center;
  padding-top: 200px;
  background: rgba(0,0,0,0.4);
  height: 100%;
}


/* FEEDBACK SECTION */
.feedback-form {
  margin-top: 20px;
}

.feedback-form textarea,
.feedback-form input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 32px;
  color: #ccc;
  cursor: pointer;
  padding: 0 3px;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f4b400;
}