/* =====================================================
   GLOBAL
===================================================== */
* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f9f9f6;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* =====================================================
   HEADER / NAV
===================================================== */
.site-header {
  background-color: #2e7d32;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-img { height: 30px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
}

/* =====================================================
   HERO SLIDER (HOMEPAGE)
===================================================== */
/* HERO SLIDER */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 1s ease, opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.hero-slide.exit-left {
  transform: translateX(-100%);
  opacity: 0;
}

.hero h2,
.hero p {
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

/* HERO ARROWS */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: #ffffff;
  border: none;
  font-size: 36px;
  cursor: pointer;
  z-index: 5;
  padding: 0;
}

.hero-arrow:hover {
  opacity: 0.7;
}


.hero-arrow.left {
  left: 20px;
}

.hero-arrow.right {
  right: 20px;
}

.hero-arrow:hover {
  background: rgba(0,0,0,0.75);
}

/* HERO DOTS */
.hero-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 5;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #ffffff;
}

/*HERO BUTTONS*/
.btn-primary {
  background-color: #1f7a3f;
  color: #ffffff;
  padding: 14px 10px;
  font-size: 15px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 25px;
}

/* Hover lift + glow */
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(31, 122, 63, 0.4);
}

/* Ripple highlight */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 120%;
  left: -100%;
  width: 120%;
  height: 120%;
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 120%;
}

/* Click feedback */
.btn-primary:active {
  transform: scale(0.96);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 122, 63, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(31, 122, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 122, 63, 0); }
}

.btn-primary {
  animation: pulse 3s infinite;
}


/* =====================================================
   ABOUT SUMMARY (HOMEPAGE)
===================================================== */
.about-summary {
  background-color: #fff;         /* keeps section clean and readable */
  padding: 60px 0;
  text-align: center;
}

.about-summary h3 {
  font-size: 26px;               /* slightly larger than default */
  color: #0b2a4a;
  margin-bottom: 25px;
}

.about-summary p {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  max-width: 800px;              /* keeps lines readable */
  margin: 0 auto 20px auto;
}

.about-summary .text-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: bold;
  color: #0b2a4a;
  text-decoration: none;
  transition: all 0.3s ease;
}

.about-summary .text-link:hover {
  color: #081f36;
  text-decoration: underline;
}



/* =====================================================
   PROGRAMS
===================================================== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* PROGRAM ITEM */
.program-item {
  background-color: #b2b5df;
  border: 1px solid #ddd;
  padding: 30px 20px 20px 20px;
  text-align: center;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.program-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ICONS */
.program-icon {
  font-size: 40px;
  color: #0b2a4a;
  margin-bottom: 15px;
}

/* HEADINGS */
.program-item h4 {
  font-size: 15px;
  margin-bottom: 15px;
  color: #0b2a4a;
}

/* Center Core Programs heading */
.key-programs h3 {
  text-align: center;
  color: #0b2a4a;       /* optional: match theme color */
  margin-bottom: 40px;    /* spacing from the grid below */
  margin-top: 40px
}


/* TEXT */
.program-item p {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}


/* =====================================================
   COMMITMENT (HOMEPAGE)
===================================================== */
.commitment {
  background-color: #f9f9f6;
  padding: 60px 0;
  text-align: center;
  opacity: 0;                  /* start hidden */
  transform: translateY(30px); /* slight downward offset */
  transition: opacity 6s ease, transform 1s ease; /* smooth transition */
}

.commitment.visible {
  opacity: 1;
  transform: translateY(0);
}

.commitment p {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

.commitment-list {
  list-style: disc inside;
  margin: 20px 0 0 0;
  padding-left: 20px;
}

.commitment-list li {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.6;
}

/* Fade-in animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: trigger animation when scrolled into view (for advanced effect) */


@keyframes gradientAnimation {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}


/* =================== FOOTER =================== */
.site-footer {
  background: linear-gradient(135deg, #70859b, #2e7d32);
  color: #ffffff;
  font-size: 14px;
  padding: 40px 0 20px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  height: 140px;
  margin-bottom: 15px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 250px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0a0e0a; /* subtle green highlight on hover */
}

.footer-contact p {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-about p {
    max-width: 100%;
  }
}



/* =====================================================
   PROGRAMS PAGE
===================================================== */
.page-header {
  background-image: url("heroprogram.jpg");
  background-size: cover;       /* shows full image */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0b2a4a;      /* fallback color */
  padding: 150px 0;
  text-align: center;
  position: relative;
  color: #ffffff;
}

.page-header h1 {
  font-size: 34px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.page-header p {
  font-size: 16px;
  max-width: 700px;
  margin: auto;
  opacity: 1;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}


.programs-overview {
  padding: 50px 0;
  background: #fff;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(98, 91, 119, 0.8);
}

.programs-overview p {
  max-width: 800px;
  margin: auto;
  font-size: 16px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.programs-section {
  padding: 60px 0;
}

.program-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.program-card:hover {
  transform: translateY(-8px);
}

.program-icon {
  font-size: 42px;
  color: #4e9e4e;
  margin-bottom: 15px;
}

.program-card:hover .program-icon {
  color: #182218;
}

.program-card h3 {
  margin-bottom: 10px;
  color: #0b2a4a;
}

.program-card ul {
  margin-top: 15px;
  padding-left: 18px;
}

.program-card li {
  margin-bottom: 6px;
  font-size: 14px;
}

/* =====================================================
   HOW WE IMPLEMENT – STAGGERED ANIMATION
===================================================== */

.implementation {
  padding: 70px 0;
}

.implementation-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 16px;
}

.implementation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

/* Initial hidden state */
.implementation-step {
  background: #e2c8c8;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Revealed state */
.implementation-step.show {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  display: inline-block;
  background: #2e7d32;
  color: #ffffff;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 12px;
}

.implementation-step h4 {
  margin-bottom: 10px;
  color: #0b2a4a;
}

/* CTA */
.programs-cta {
  background: #ffffff;
  color: #3f1d1d;
  text-align: center;
  padding: 10px 10px;
}

.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #629c5a;
  color: #030407;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.cta-btn:hover {
  transform: scale(1.08);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =====================================================
   ABOUT PAGE STYLING
===================================================== */

/* HERO */
.about-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); /* dark overlay for text */
}

.about-hero .container {
  position: relative;
  z-index: 1;
}

.about-hero h1 {
  font-size: 36px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.about-hero p {
  font-size: 18px;
  max-width: 600px;
  margin: auto;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

/* SECTIONS */
.content-section {
  padding: 60px 0;
}

.content-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  color: #0b2a4a;
}

/* LIGHT BACKGROUND SECTIONS */
.light-bg {
  background-color: #f8fafc;
}

/* WHO WE SERVE / PROBLEM / MISSION / VISION */
.problem-list,
.approach-steps {
  list-style: disc inside;
  margin-top: 15px;
  padding-left: 20px;
}

.approach-steps li {
  margin-bottom: 10px;
}

/* CORE VALUES GRID */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.value-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card i {
  color: #0b2a4a;       /* match your primary color */
  margin-bottom: 12px;
}


.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.value-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0b2a4a;
}

.value-card p {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

/* CTA SECTION */
.cta {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  color: #0a0505;
  border-radius: 10px;
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.cta p {
  font-size: 16px;
  margin-bottom: 25px;
}

.btn-primary {
  display: inline-block;
  background-color: #ffd700;
  color: #74787c;
  font-size: 16px;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.4s ease;
}

.btn-primary:hover {
  transform: scale(1.1);
  background-color: #ffea00;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  color: #0b2a4a;
}

/* FOOTER */
.site-footer {
  background-color: #0b2a4a;
  color: #fff;
  padding: 40px 0 20px 0;
}

.site-footer h4 {
  margin-bottom: 15px;
  font-size: 16px;
}

.site-footer p,
.site-footer a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  margin-top: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 28px;
  }

  .about-hero p {
    font-size: 16px;
  }

  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 480px) {
  .about-hero h1 {
    font-size: 24px;
  }

  .about-hero p {
    font-size: 14px;
  }

  .content-section h2 {
    font-size: 24px;
  }
}


/*------CONTACT PAGE-------*/
/* CONTACT INFO SECTION - BLACK & WHITE */
.contact-info-section {
  background: #ffffff; /* black background */
  padding: 60px 0;
  color: #000000;
  display: flex;
  justify-content: center;
}

.contact-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  max-width: 1100px;
  width: 90%;
}

.contact-info, .donation-info {
  flex: 1 1 300px;
  text-align: center;
}

.contact-info h3, .donation-info h3 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #000000;
}

.contact-info p, .donation-info p {
  margin-bottom: 10px;
  font-size: 15px;
  color: #000000;
}

.contact-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
  color: #000000;
}

.contact-icon:hover, .contact-info p:hover, .donation-info p:hover {
  color: #000000;
  transition: color 0.3s ease;
}
 
.content-section h3 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: #0b2a4a; /* deep blue to stand out */
  font-weight: 600;
  letter-spacing: 0.5px;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0b2a4a;
  box-shadow: 0 0 8px rgba(11,42,74,0.3);
}

.btn-primary {
  display: inline-block;
  background: #0b2a4a;
  color: #fff;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-primary:hover {
  background: #081f36;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  justify-content: center; /* center horizontally */
  gap: 20px; /* space between icons */
  margin-top: 15px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #0b2a4a; /* dark background */
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #081f36;
  transform: scale(1.1);
}


/* ================= NEWS PAGE ================= */
body.news-page {
  background-color: #f9f9f6;
  font-family: Arial, Helvetica, sans-serif;
  color: #1b1616;
}

/* NAVBAR */
body.news-page .site-header {
  background-color: #2e7d32;
  padding: 15px 0;
}
body.news-page .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1100px;
  margin: auto;
}
body.news-page .nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
body.news-page .nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

/* PAGE HEADER */
body.news-page .page-header {
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  position: relative;
}
body.news-page .page-header .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.45);
}
body.news-page .page-header .container { position: relative; z-index: 1; }

/* SECTION TITLE */
body.news-page .section-title {
  text-align: center;
  font-size: 28px;
  margin: 40px 0 20px;
  color: #0b2a4a;
}

/* NEWS GRID */
body.news-page .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

/* ================= NEWS CARD EXPANDABLE ================= */
body.news-page .news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* UNO-style news cards */
.news-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 260px;  /* narrow */
  height: 380px; /* taller */
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.5s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-top {
  display: flex;
  gap: 10px;
  padding: 10px;
  flex-shrink: 0;
}

.news-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.news-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.news-date {
  font-size: 12px;
  color: #555;
}

.news-header h4 {
  font-size: 14px;
  margin: 2px 0;
  color: #0b2a4a;
}

.news-excerpt {
  font-size: 13px;
  padding: 0 10px 10px 10px;
  color: #333;
  line-height: 1.4;
}

/* Expanded Card */
.news-card.expanded {
  width: 700px;
  height: auto;
  flex-direction: column;
  z-index: 10;
}

.news-card.expanded .news-content {
  display: block;
  padding: 15px;
}

/* Word fade-in */
.word {
  opacity: 0;
  display: inline-block;
  animation: fadeInWord 0.05s forwards;
}

@keyframes fadeInWord {
  to { opacity: 1; }
}


/* FOOTER */
body.news-page .site-footer {
  background: linear-gradient(135deg, #70859b, #2e7d32);
  color: #fff;
  padding: 20px 0;
}
body.news-page .footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
body.news-page .footer-links ul {
  list-style: none;
  padding: 0;
}
body.news-page .footer-links li { margin-bottom: 6px; }
body.news-page .footer-links a { color: #fff; text-decoration: none; }
body.news-page .footer-bottom { text-align: center; font-size: 13px; padding-top: 10px; }

.scroll-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: rgba(0,0,0,0.6);
  animation: arrowBounce 1.5s infinite;
  pointer-events: none; /* allows clicks through arrow */
  z-index: 3;
  transition: opacity 0.3s ease;
}

/* Hide arrow when card is expanded/hovered */
.news-card.expanded .scroll-arrow {
  opacity: 0;
}

/* Arrow animation: move down & fade out */
@keyframes arrowBounce {
  0% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, 10px);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, 50px);
    opacity: 0;
  }
}

/* Ensure the card is relative so arrow positions correctly */
.news-card {
  position: relative;
}

/* Optional: smooth transition for hover/expanded state */
.news-card .scroll-arrow {
  transition: opacity 0.3s ease, transform 0.3s ease;
}


/* Make entire card tappable on mobile */
.news-card {
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
}

/* Prevent inner elements from stealing clicks */
.news-card * {
  pointer-events: none;
}

/* Re-enable pointer events ONLY on the card itself */
.news-card {
  pointer-events: auto;
}



/* Responsive */
@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
