/* === Global Reset & Base Styles === */
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #333333;
  scroll-behavior: smooth;
  line-height: 1.6;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
button {
  cursor: pointer;
}
input, textarea {
  border: none;
  outline: none;
}
:root {
  --clr-primary: #5cbf7b;
  --clr-accent: #45a56a;
  --clr-donate: #FFD700;
  --clr-light-bg: #f8f8f5;
  --clr-dark: #222;
  --clr-muted: #666;
  --shadow-light: 0 4px 10px rgba(0,0,0,0.08);
  --radius: 12px;
  --gap: 1.5rem;
  --transition: 0.3s ease-in-out;
}


/* === Preloader === */
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.preloader-logo {
  width: 100px;
  animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* === Header === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #5cbf7b;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo-container {
  display: flex;
  align-items: center;
}
.logo-container img {
  height: 40px;
  margin-right: 0.5rem;
}
.logo-text {
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
}

/* === Navigation === */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: white;
  transition: background 0.3s ease;
}
.nav-links li a:hover {
  background: rgba(255,255,255,0.2);
  border-radius: 5px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.nav-toggle span {
  background: white;
  height: 3px;
  margin: 4px;
  width: 25px;
}

/* === About Section === */

.about-background {
  position: relative;
  background: url('homepage_background_chi.png') no-repeat center center / cover;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align toward top */
  padding-top: 3rem;
}

.skyline-title {
  position: absolute;
  top: 12%; /* Adjust vertically as needed */
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  z-index: 2;
}


/* === Mission Section === */
.mission {
  display: flex;
  flex-wrap: wrap;
  padding: 3rem 1rem;
  background-color: #f9f9f9;
}
.mission-text {
  flex: 1;
  padding: 1rem;
}
.mission-photo {
  flex: 1;
  padding: 1rem;
}
.mission-photo img {
  border-radius: 12px;
  max-width: 100%;
}
.mission-buttons {
  margin-top: 1rem;
}
.btn-follow,
.btn-contact {
  background-color: #5cbf7b;
  color: white;
  padding: 0.6rem 1.2rem;
  margin-right: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}
.btn-follow:hover,
.btn-contact:hover {
  background-color: #45a56a;
}

.mission-paragraph {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #333;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 0.5rem;
}

.mission-paragraph strong {
  color: #5cbf7b; /* Primary green */
  font-weight: 700;
}

.mission-paragraph .highlight {
  background-color: #e8f9ef; /* Light green background for readability */
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-weight: 500;
  color: #45a56a; /* Accent green text */
}



/* === Impact Highlights === */
.impact-highlights {
  padding: 3rem 1rem;
}
.impact-title {
  text-align: center;
  font-size: 2rem;
}
.impact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.impact-post {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  flex: 1;
  min-width: 280px;
}
.impact-post img {
  width: 100%;
  height: auto;
}
.post-content {
  padding: 1rem;
}

/* === Programs Section === */
.programs-poverty-container {
  background: #f2fef5;
  padding: 2rem 1rem;
}
.programs-text {
  text-align: center;
}
.program-cards-alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.program-card {
  padding: 1rem 2rem;
  background: white;
  border: 2px solid #5cbf7b;
  border-radius: 10px;
  cursor: default;
  font-weight: 600;
  position: relative;
  transition: transform 0.3s;
}
.program-card:hover {
  transform: scale(1.05);
}

/* === Stats Section === */
.stats-section {
  display: flex;
  justify-content: space-around;
  background: #fff;
  padding: 3rem 1rem;
  flex-wrap: wrap;
}
.stat-box {
  text-align: center;
  margin: 1rem;
}
.stat-icon {
  font-size: 2rem;
  color: #5cbf7b;
}
.stat-number {
  font-size: 2rem;
  font-weight: bold;
}
.plus {
  font-size: 1.5rem;
}

/* === Donation Widget === */
.support-section {
  padding: 3rem 1rem;
  background: #fdfdfd;
  text-align: center;
}

/* Center donation icon */
.support-icon {
  display: block;
  margin: 0 auto 1rem;
  width: 60px;
}

/* Boxed container styling */
.donation-widget {
  background: #ffffff;
  border: 2px solid #5cbf7b;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Donation type radio options */
.donation-type {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  font-weight: 600;
}

.donation-type input[type="radio"] {
  margin-right: 0.5rem;
  accent-color: #5cbf7b;
}

/* Donate button */
.donate-btn {
  background: #ffcc00;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  color: #111;
  transition: background 0.3s ease;
}

.donate-btn:hover {
  background: #e6b800;
}

/* Disclaimer */
.donation-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* === Volunteer Interest Box === */
.interest-box {
  background: #e8f9ef;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 1rem;
  text-align: center;
}

/* === CTA Poverty Card with Chicago Background === */
.cta-stats-section {
  background: url('Chicago-CTA-USA-Resize.jpg') center/cover no-repeat;
  color: white;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.poverty-overlay {
  background: rgba(0, 0, 0, 0.65);
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.counter-container {
  font-size: 3rem;
  font-weight: bold;
}

.percent-sign {
  font-size: 1.5rem;
  margin-left: 5px;
}

.poverty-card p {
  font-size: 1.2rem;
  color: white;
  margin-top: 1rem;
  line-height: 1.6;
}

/* === Email Signup === */
.email-signup {
  background: #f7f7f7;
  padding: 2rem 1rem;
}
.signup-container {
  text-align: center;
}
.signup-form input[type="email"] {
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 60%;
  max-width: 300px;
  margin-right: 10px;
}
.signup-form button {
  padding: 0.75rem 1.5rem;
  background: #5cbf7b;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: 600;
}

/* === Partner Carousel === */
.partnerships-carousel {
  padding: 2rem 1rem;
  background: #ffffff;
  text-align: center;
}
.carousel-wrapper {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  animation: scroll 30s linear infinite;
}
.carousel-track img {
  height: 60px;
  margin: 0 1rem;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Footer === */
footer {
  background: #5cbf7b;
  color: white;
  padding: 1rem;
  text-align: center;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-right, .footer-left {
  margin: 0.5rem;
}
.footer-email {
  color: white;
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #5cbf7b;
  color: white;
  padding: 0.7rem;
  border-radius: 50%;
  font-size: 1rem;
  display: none;
  z-index: 1000;
}
.back-to-top.show {
  display: block;
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


