/*
Theme Name: nkha‐v4
Theme URI: https://nokidhungryafrica.org
Author: Reylium Studios
Author URI: https://www.studios.reylium.com
Description: This is a custom NGO theme for No Kid Hungry Africa developed by Reylium Studios.
Version: 3.0
*/



/* ===== Base Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #5E5C5C;
  line-height: 1.6;
}

/* ===== Global Styling ===== */
h3 {
  color: #2BB057;
}


/* ===== Hero Section ===== */



/* Dark to transparent gradient from bottom to top */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 70%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 40px;
  box-sizing: border-box;
}

.hero-content {
  max-width: 600px;
  margin-bottom: 0px; /* ✅ Adjusted spacing for tablets */
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #F1EEEE;
}

.hero-content p {
  font-size: 1.2rem;
  color: #EBE6E6;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .hero {
    height: 90vh;
    align-items: flex-end;
  }

  .hero-inner {
    padding: 40px 20px;
  }

  .hero-content {
    margin-bottom: 0px; /* ✅ Adjusted spacing for tablets */
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 80vh;
  }

  .hero-content {
    margin-bottom: 40px; /* ✅ Lower spacing for mobile */
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }
}

/* ===== Navigation ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background-color: #fff;
  padding: 10px 40px;
  flex-wrap: wrap;
}

.logo img {
  height: 50px;
}

/* Desktop Nav */
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: #444;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
}

.nav-links a:hover {
  color: #ccc;
}

.cta-button {
  padding: 10px 20px;
  background: #2BB057;
  color: #F1EEEE;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.cta-button:hover {
  opacity: 0.9;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 28px;
  color: #2BB057;
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 1100;
}

/* Mobile Nav Fullscreen Menu */
.mobile-nav {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding: 2rem;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.3s ease-in-out;
  text-align: center;
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

.mobile-nav .nav-links {
  flex-direction: column;
  gap: 20px;
  display: flex;
  margin-bottom: 20px;
}

.mobile-nav .nav-links a {
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
}

.mobile-nav .cta-button {
  display: inline-block;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #ffffff;
  cursor: pointer;
  z-index: 1300;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links,
  .cta-button {
    display: none;
  }

  .navbar {
    flex-direction: row;
    align-items: center;
  }
}

.navbar.scroll-up {
  top: 0;
  transition: top 0.3s ease-in-out;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar.scroll-down {
  top: -100px;
  transition: top 0.3s ease-in-out;
  position: fixed;
  width: 100%;
  z-index: 1000;
}


/* Initially hidden spacer */
#navbar-spacer {
  height: 0;
  transition: height 0.3s ease-in-out;
}





/* ===== Our Belief ===== */
.our-belief-card {
  display: flex;
  padding: 80px;
  align-items: center;
  gap: 30px;
  background: linear-gradient(to right, #28873D, #7CC256);
  color: #EBE6E6;
  justify-content: center;
}

.belief-title {
  width: 350px;
}

.belief-title h2 {
  font-size: 1rem;
  color: #EBE6E6;
}

.belief-title h3 {
  font-size: 1.5rem;
  color: #EBE6E6;
}

/* YouTube Video Embed Section */
.video-section {
  background-color: #002b36;
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

.video-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2BB057;
  margin-bottom: 0.5rem;
}

.video-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #ccc;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.youtube-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  max-width: 900px; /* ✅ Sets a max width for desktop */
  width: 100%;
}


.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .video-section h2 {
    font-size: 2rem;
  }

  .video-section p {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* Gallery Styles */

#outreach-gallery {
  padding: 50px;
  background-color: #0E7030;
}
.gallery {
  column-count: 3;
  column-gap: 0.5rem;
  padding: 2rem 1rem;
}

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

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

@media (max-width: 900px) {
  #outreach-gallery {
  padding: 10px;
  }
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery {
    column-count: 2;
  }
}


/* ===== Centered Text ===== */
.centered-text-container {
  margin-bottom: 80px;
  margin-top: 80px;
}

.centered-text {
  padding: 0 50px;
  text-align: center;
}

.centered-text h3 {
  font-size: 2.3rem;
  font-family: 'Times New Roman', Times, serif;
}

/* ===== About Section Styling ===== */
.highlight-section {
  background-color: #002b36;
  color: #f4f4f4;
  padding: 4rem 3rem;
  border-radius: 1px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
}

.about-text {
  flex: 1 1 50%;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2BB057;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.highlight {
  color: #7CC256;
  font-weight: 600;
}

.about-image {
  flex: 1 1 40%;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* ===== Learn More Button Styling ===== */
.about-text .cta-button {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 10px 20px;
  background: #2BB057;
  color: #F1EEEE;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.about-text .cta-button:hover {
  opacity: 0.9;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }

  .about-text {
    text-align: center;
  }

  .about-text .cta-button {
    margin-top: 1rem;
    width: auto;
  }
}

/* ===== What We Do ===== */
#what-we-do h2 {
  padding: 50px;
  text-align: center;
  margin-top: 50px;
  color: #2BB057;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 30px 100px;
}

.card {
  background: #2bb057;
  padding: 2rem;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

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

.card:hover {
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #F1EEEE;
}

.card p {
  font-size: 1rem;
  color: #ede9e9; 
}

/* Desktop effect: Left-to-right fade-in */
@media (min-width: 769px) {
  .card {
    transform: translateX(-50px);
  }

  .card.reveal {
    transform: translateX(0);
  }
}

/* ===== Impact Stats ===== */
.impact-section {
  padding: 5rem 1rem;
  margin-bottom: 3rem;
  text-align: center;
}

.impact-stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0px auto;
}

.stat {
  text-align: center;
  width: 160px;
}

.stat h3 {
  font-size: 3.2rem;
  font-weight: bold;
  font-family: 'Times New Roman', Times, serif;
  color: #2BB057;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.stat p {
  font-size: 1.1rem;
  color: #444;
}

@media (max-width: 768px) {
  .impact-stats {
    gap: 30px;
  }

  .stat h3 {
    font-size: 2.4rem;
  }

  .stat p {
    font-size: 1rem;
  }
}

/* ===== Our Programs ===== */
#our-programs {
  padding: 50px 0;
  background-color: #002b36;
}

#our-programs h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem;
  padding: 50px 0px;
}

.programs-grid {
  padding: 0 100px 50px 100px;
}

.program-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  height: 450px;
}

.program-card:hover {
  transform: scale(1.03);
}

.program-card .card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.program-card .overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #ffffff;
}

.program-card h3 {
  color: #2BB057;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.program-card p {
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-cards,
  .programs-grid {
    padding: 0 30px;
  }

  .program-card {
    height: 450px;
  }
}

@media (max-width: 480px) {
  .program-card {
    height: 450px;
  }
}


/* ===== Why We Exist ===== */
.why-we-exist {
  background-color: #d5efdd;
  padding: 150px 20px;
}

.exist-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

/* Left Column */
.exist-left {
  flex: 1 1 45%;
}

.exist-left h3 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  color: #2BB057;
}

.exist-left p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #5E5C5C;
}

/* Right Column: Stats Grid */
.exist-right {
  flex: 1 1 50%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: left;
  padding: 0;
  background: none;
  box-shadow: none;
}

.stat-card h3 {
  font-size: 2.2rem;
  color: #2BB057;
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 1rem;
  color: #5E5C5C;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .exist-container {
    flex-direction: column;
  }

  .exist-left,
  .exist-right {
    flex: 1 1 100%;
  }

  .exist-right {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .exist-right {
    grid-template-columns: 1fr;
  }
}


/* === CEO Section === */
#ceo {
  padding: 100px 20px;
  margin-bottom: 30px;
  background-color: #f9f9f9;
  text-align: center;
}

#ceo h2 {
  color: #28873D;
  font-size: 2rem;
  margin-bottom: 20px;
}

#ceo img {
  width: 180px;
  border-radius: 100px;
  margin-bottom: 20px;
}

#ceo h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#ceo p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  color: #333;
}

/* === Contact Us Section === */
#contact-us {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

#contact-us h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.contact-item {
  margin-bottom: 20px;
}

.whatsapp-link {
  text-decoration: none;
  font-size: 1.2rem;
  display: inline-block;
  color: #25D366;
}

.email-link {
  text-decoration: none;
  font-size: 1.2rem;
  display: inline-block;
  color: #5e5c5c;
}


.whatsapp-link i {
  color: #25D366;
  margin-right: 10px;
}

.email-link i {
  color: #5c5e5e;
  margin-right: 10px;
}


/* ===== Donation Section ===== */
.donation-section {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 600px;
  margin-top: 120px;
  overflow: hidden;
}

.donation-image {
  flex: 1;
}

.donation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.impact-form {
  flex: 1;
  background-color: #d5efdd;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.impact-form h3 {
  font-size: 28px;
  color: #2BB057;
  margin-bottom: 10px;
}

.impact-form p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #444;
}

.impact-form form input,
.impact-form form button {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.impact-form form button {
  background: #2BB057;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.impact-form form button:hover {
  background: #228846;
}


/* ===== Footer ===== */
.footer {
  background-color: #002b36;
  color: #2BB057;
  padding: 60px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer h3,
.footer h4 {
  margin-bottom: 15px;
  color: #2BB057;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1 1 250px;
  min-width: 220px;
}

.footer-about .footer-logo {
  margin-bottom: 20px;
}

.footer-about p,
.footer-contact p,
.footer-links ul {
  font-size: 14px;
  line-height: 1.7;
  color: #cccccc;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #ffffff;
}

.footer-contact a {
  color: #cccccc;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #ffffff;
}

.social-icons a {
  margin-right: 12px;
  color: #cccccc;
  font-size: 18px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #2BB057;
}

.footer-donate {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 200px;
}

.donate-btn {
  background-color: #2BB057;
  color: #002b36;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.donate-btn:hover {
  background-color: #28873D;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 20px;
  font-size: 13px;
  color: #2BB057;
}

.footer-bottom a {
  color: #aaaaaa;
  text-decoration: none;
  margin: 0 5px;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 768px) {

  .donation-section {
    flex-direction: column;
    height: auto;
  }

  .donation-image,
  .impact-form {
    width: 100%;
    height: auto;
  }

  .impact-form {
    padding: 30px;
  }

  .desc-card {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .desc-card img,
  .text-card {
    width: 100%;
    height: auto;
  }
  
}


.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2BB057;
  color: #fff;
  font-size: 20px;
  padding: 0px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  z-index: 999;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  background-color: #28873D;
}

/* Image Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}