
/* static/css/style.css */

/* Reset and base */

/* Variables */
:root {
  --orange: #F47A1F;
  --green: #7BBE3C;
  --blue: #2CA9E1;
  --yellow: #F9C32D;
  --red: #EF3E2B;
  --nav-text: white;
  --nav-bg: var(--green);
  --bg-color: linear-gradient(to right, #F47A1F, #EF3E2B);
  --focus-bg: #FFFFFF;
}



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

body {
    font-family: 'Segoe UI', sans-serif;
    background: #FFFDF8;
    color: #333;
}

/* =======SECTION 01 | ANNOUNCEMENTS================ */

.announcement-bar {
  background-color: #EF3E2B; /* Brand Red */
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  overflow: hidden;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.announcement-content {
  display: flex;
  animation: slideMessages 30s linear infinite;
}

.announcement-message {
  flex: 0 0 100%;
  padding-right: 2rem;
}

@keyframes slideMessages {
  0% { transform: translateX(0%); }
  25% { transform: translateX(-100%); }
  50% { transform: translateX(-200%); }
  75% { transform: translateX(-300%); }
  100% { transform: translateX(0%); }
}


/*=============== SECTION 02 | NAVIGATION ===============*/

/* =============== NAVIGATION ENHANCED =============== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px); /* Background Blur */
  background: rgba(255, 255, 255, 0.85); /* Transparent White Overlay */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  color: #F47A1F;
}

.brand img {
  height: 60px;
  max-height:100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 5px;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--orange);
}

.dropdown .submenu,
.dropdown-sub .submenu-right {
  display: none;
  position: absolute;
  background-color: #fff;
  top: 100%;
  left: 0;
  min-width: 200px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  animation: fadeIn 0.3s ease-in-out;
  z-index: 20;
}

.dropdown-sub .submenu-right {
  left: 100%;
  top: 0;
}

.dropdown:hover > .submenu,
.dropdown-sub:hover > .submenu-right {
  display: block;
}

.submenu li a,
.submenu-right li a {
  padding: 10px 15px;
  display: block;
  white-space: nowrap;
}

.submenu li a:hover,
.submenu-right li a:hover {
  background-color: var(--yellow);
  color: #000;
  border-radius: 4px;
}

/* Mobile Nav */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  background-color: #fefefe;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin: 15px 0;
}

.mobile-menu a {
  text-decoration: none;
  color: #444;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu.show {
  display: block;
}

/*========== HERO SLIDER SECTION ==========*/
/*========== HERO SLIDER SECTION ==========*/
.hero-slider-section {
  position: relative;
  top: 0;
  width: 100%;
  height: calc(100vh - 130px); /* adjusted for navbar + announcement */
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, transform 5s ease;
  opacity: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomSlide 20s ease infinite;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide:nth-child(1) { background-image: url('/static/images/hero01.png'); }
.hero-slide:nth-child(2) { background-image: url('/static/images/hero02.png'); }
.hero-slide:nth-child(3) { background-image: url('/static/images/hero03.png'); }

@keyframes zoomSlide {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.2));
  backdrop-filter: blur(3px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease both;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #fff;
}
.hero-title span { color: var(--orange); }

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #eee;
}

/* Navigation Arrows */
.hero-nav {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 3;
}
.hero-prev, .hero-next {
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 12px;
  margin: 0 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}
.hero-prev:hover, .hero-next:hover {
  background-color: rgba(0,0,0,0.6);
}


/* Floating Icon Wrapper */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Floating Image Icons */
.floating-icons img.float-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  animation: float 6s ease-in-out infinite;
  opacity: 0.9;
  z-index: 5;
}

/* Individual Positions */
.float-icon.edu001      { top: 20%; left: 10%; animation-delay: 0s; }
.float-icon.tree001     { top: 30%; left: 85%; animation-delay: 1s; }
.float-icon.hlth001     { top: 70%; left: 15%; animation-delay: 1.5s; }
.float-icon.empwr001    { top: 30%; left: 40%; animation-delay: 2s; }
.float-icon.note001     { top: 55%; left: 5%; animation-delay: 2.5s; }
.float-icon.hlth002     { top: 65%; left: 90%; animation-delay: 3s; }
.float-icon.tree002     { top: 45%; left: 75%; animation-delay: 3.5s; }
.float-icon.empwr002    { top: 10%; left: 30%; animation-delay: 4s; }

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-15px); }
}


/* ========== SECTION | ABOUT US ========== */
.about-us-section {
  padding: 100px 20px;
  background-color: #fdfdfd;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 50px;
  align-items: center;
  justify-content: center;
}

.about-image-box {
  flex: 1 1 500px;
  text-align: center;
}

.about-image-box img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.about-content-box {
  flex: 1 1 500px;
}

.about-content-box h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #2CA9E1;
}

.about-content-box h2 span {
  color: #F47A1F;
}

.about-content-box p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
}

.about-content-box .btn {
  padding: 12px 28px;
  border-radius: 10px;
}

/* ====== MVO Subsection ====== */
.mvo-subsection {
  margin-top: 80px;
  background-color: #f9f9f9;
  padding: 60px 20px 40px;
  border-top: 3px solid #F47A1F;
}

.subsection-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2CA9E1;
}

.mvo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.mvo-box {
  flex: 1 1 300px;
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mvo-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.mvo-box h4 {
  color: #2CA9E1;
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.mvo-box p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.mvo-icon {
  height: 70px;
  width: auto;
}

/* Animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.animate-fade-in.delay-1 { animation-delay: 0.3s; }
.animate-fade-in.delay-2 { animation-delay: 0.6s; }
.animate-fade-in.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*============ SECTION | Our Focus Area =============*/
.focus-card-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); */
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.focus-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  border-top: 6px solid var(--orange);
}

.focus-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.focus-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

/* Branded Card Borders */
.card-orange  { border-color: var(--orange); }
.card-red     { border-color: var(--red); }
.card-green   { border-color: var(--green); }
.card-blue    { border-color: var(--blue); }
.card-yellow  { border-color: var(--yellow); }
.card-purple  { border-color: #8E44AD; } /* Custom purple for community */

.focus-cta {
  text-align: center;
  margin-top: 40px;
}

.focus-cta .btn {
  background-color: var(--orange);
  color: white;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  margin:10px;
  transition: background-color 0.3s ease;
}

.focus-cta .btn:hover {
  background-color: #d9671c;
}



@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.animate-fade-in.delay-1 { animation-delay: 0.2s; }
.animate-fade-in.delay-2 { animation-delay: 0.4s; }
.animate-fade-in.delay-3 { animation-delay: 0.6s; }
.animate-fade-in.delay-4 { animation-delay: 0.8s; }
.animate-fade-in.delay-5 { animation-delay: 1s; }
.animate-fade-in.delay-6 { animation-delay: 1.2s; }

@media (max-width: 992px) {
  .focus-card-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

@media (max-width: 600px) {
  .focus-card-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
}


/* =========== SECTION | Projects ============== */
.projects-section {
  background: linear-gradient(to right, #f9f9f9, #fff);
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: #222;
  margin-bottom: 30px;
}

.project-filters {
  margin-bottom: 20px;
}

.filter-btn {
  background: #eee;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #2ca9e1;
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.project-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: left;
  position: relative;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.6s ease-in-out;
}

.project-card:hover {
  transform: translateY(-5px);
}

.emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.desc {
  color: #555;
  margin-bottom: 10px;
}

.progress-bar {
  background: #eee;
  border-radius: 20px;
  overflow: hidden;
  height: 10px;
  margin-bottom: 10px;
}

.progress {
  height: 100%;
  background: #7bbe3c;
  transition: width 0.5s;
}

.project-cta {
  margin-top: 15px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

.btn.volunteer {
  background: #f47a1f;
  color: #fff;
}

.btn.register {
  background: #2ca9e1;
  color: #fff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/*  SECTION 11 | How You Can Help / Get Involved */	

.enhanced-help {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),  url("../images/get-involved-bg.png") no-repeat center center/cover;
  position: relative;
  padding: 100px 20px;
  text-align: center;
  color: white;
}

.enhanced-help .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.65);
  z-index: 0;
  border-radius: 0;
}

.enhanced-help .container {
  position: relative;
  z-index: 2;
}

.enhanced-help .section-title {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.enhanced-help .section-subtitle {
  font-size: 1.3rem;
  margin-bottom: 60px;
  color: #eaeaea;
}

.help-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.help-card {
  background: #ffffff;
  color: #333;
  border-radius: 16px;
  padding: 30px 20px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.help-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.help-icon {
  height: 80px;
  width: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.help-card h3 {
  font-size: 1.6rem;
  margin: 20px 0 10px;
}

.help-card p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  color: white;
}

.btn-orange { background-color: #F47A1F; }
.btn-orange:hover { background-color: #d9671c; }

.btn-green { background-color: #7BBE3C; }
.btn-green:hover { background-color: #67a931; }

.btn-blue { background-color: #2CA9E1; }
.btn-blue:hover { background-color: #2198d0; }

@media (max-width: 768px) {
  .help-cards {
    flex-direction: column;
    align-items: center;
  }
}


/* SECTION 12 | Newsletter Signup / Contact Callout */

.newsletter-section {
  background-color: #7BBE3C10; /* light green tint */
  padding: 80px 20px;
  text-align: center;
}

.newsletter-title {
  font-size: 2.2rem;
  color: #2CA9E1;
  margin-bottom: 10px;
}

.newsletter-subtitle {
  font-size: 1rem;
  color: #444;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.newsletter-input {
  padding: 12px 18px;
  border: 2px solid #2CA9E1;
  border-radius: 30px;
  min-width: 250px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: #F47A1F;
}

.newsletter-btn {
  background-color: #2CA9E1;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
  background-color: #1d92c0;
}

.newsletter-messages {
  text-align: center;
  margin-top: 10px;
}

.alert {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 5px auto;
}

.alert.success { background-color: #d4edda; color: #155724; }
.alert.warning { background-color: #fff3cd; color: #856404; }
.alert.error   { background-color: #f8d7da; color: #721c24; }


.contact-callout {
  font-size: 0.95rem;
  color: #555;
}

.contact-callout .link-highlight {
  color: #F47A1F;
  font-weight: bold;
  text-decoration: none;
}

.contact-callout .link-highlight:hover {
  text-decoration: underline;
}



/* Responsive */

@media (max-width: 768px) {

 /*** ANNOUNCEMENTS *****/
  .announcement-bar {
    font-size: 0.9rem;
    padding: 0.4rem 0.5rem;
  }


  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }


.hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-prev, .hero-next {
    font-size: 1.2rem;
    padding: 10px;
  }

  .about-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .about-content-box h2 {
    font-size: 2rem;
  }
  .about-content-box p {
    font-size: 1rem;
  }
  .subsection-title {
    font-size: 1.8rem;
  }

}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Buttons */
button,
.btn {
  background-color: #F9C32D; /* Yellow CTA */
  color: #333;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover,
.btn:hover {
  background-color: #F47A1F;
  color: white;
}


#scrollTopBtn:hover {
  background-color: #2198d0;
}


/* ========SECTION | FOOTER============== */

.footer-wave {
  margin-bottom: -2px;
  overflow: hidden;
  line-height: 0;
}



.site-footer {
  background-color: #101820;
  color: #fff;
  padding: 60px 20px 20px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-logo {
  width: 140px;
  margin-bottom: 15px;
}

.tagline {
  font-size: 0.95rem;
  color: #ccc;
}

.footer-column h3 {
  font-size: 1.2rem;
  color: #F47A1F;
  margin-bottom: 15px;
}

.footer-contact li,
.footer-links li {
  list-style: none;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #ccc;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.social-icons a {
  color: #F9C32D;
  font-size: 1.2rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding: 20px 0 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #aaa;
}


/* Alerts (Red) */
.alert {
  background-color: #EF3E2B;
  color: white;
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
}

/* =========SECTION | Scroll to Top========= */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background-color: #2CA9E1;
  color: white;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background-color: #2198d0;
}




