body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #eff9bb;
  color: #313a44;
}
/* Typography Scale */
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #313a44;
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  letter-spacing: 0.3px;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h5 { font-size: 18px; }

/* Paragraph */
p {
  color: #555;
  font-size: 15px;
}

section {
  margin-top: 60px;
}

/* Navbar */
.navbar {
  padding: 10px 0;
}

/* Donate Button */
.donate-btn {
  background-color: #ebcb00;
  color: #313a44;
  font-weight: bold;
  border-radius: 20px;
  padding: 6px 15px;
}

/* Cards */
.project-card {
  border: none;
  transition: 0.3s;
}

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

/* Impact Section */
.impact-section {
  background-color: #f8f9fa;
  border-radius: 10px;
}

.icon {
  font-size: 30px;
  color: #ebcb00;
}

/* Footer */
.footer {
  background-color: #313a44;
  color: white;
  margin-top: 18px;
  padding: 36px 0;
}

.subscribe-btn {
  background-color: #cbeb00;
  border-radius: 999px;
  color: #313a44;
  font-weight: 750;
  padding: 9px 20px;
}

.subscribe-btn:hover {
  background-color: #b5d800;
  color: #313a44;
}

/* Remove link underline */
.project-link {
  text-decoration: none;
  color: inherit;
}

/* Card container */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* Image styling */
.project-img {
  width: 100%;
  height: 250px;   /* FIXED HEIGHT */
  object-fit: cover; /* ensures same size without distortion */
  transition: transform 0.4s ease;
}

/* Overlay */
/* .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
} */

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
  color: white;
}

/* Text */
/* .overlay h5 {
  margin: 0;
  font-weight: 600;
} */

.overlay h5 {
  font-size: 18px;
  letter-spacing: 0.5px;
}

.overlay h5 {
  font-size: 18px;
  font-weight: 600;
}

.project-card:hover .overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
}

/* Hover effect */
.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-card {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Impact Section */
.impact-section {
  background-color: #f8f9fa;
}

.impact-card {
  padding: 20px;
  transition: 0.3s;
}

.impact-card h2 {
  font-size: 32px;
  font-weight: 700;
  margin-top: 10px;
  color: #313a44;
}

.impact-card p {
  margin: 0;
  font-size: 14px;
}

/* Icon circle */
.icon-circle {
  width: 60px;
  height: 60px;
  margin: auto;
  background-color: #cbeb00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle i {
  font-size: 24px;
  color: #313a44;
}

/* Hover subtle */
.impact-card:hover {
  transform: translateY(-5px);
}

.impact-section {
  background-color: #f8f9fa;
  border-radius: 12px;
}

/* Bigger numbers */
.impact-card h2 {
  font-size: 36px;
}

/* Add subtle card feel */
.impact-card {
  background: white;
  border-radius: 10px;
  padding: 25px 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.donate-btn {
  background-color: #cbeb00;
  color: #313a44;
  font-weight: 600;
  border-radius: 25px;
  padding: 6px 18px;
  transition: 0.2s;
}

.donate-btn:hover {
  background-color: #b5d800;
  transform: translateY(-1px);
}

.hero-section {
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

/* Section spacing */
section {
  padding: 60px 0;
}

/* Reduce container top spacing */
.container {
  max-width: 1100px;
}

.impact-card {
  padding: 30px 20px;
}

/* Better hierarchy */
.impact-card h2 {
  font-size: 34px;
  margin-top: 12px;
}

.impact-card p {
  font-size: 14px;
  color: #666;
}

.icon-circle {
  margin-bottom: 10px;
}

/* Improve heading */
.footer h5 {
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter-input {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  height: 42px;
  max-width: 210px;
  padding: 8px 14px;
}

h3 {
  margin-bottom: 20px;
}

/* Homepage impact section */
.impact-section {
  background-color: #ffffff;
  border-radius: 16px;
  margin-top: 18px;
  padding: 54px 0;
}

.impact-title {
  margin-bottom: 34px;
}

.impact-card {
  background: #ffffff;
  border: 1px solid rgba(49, 58, 68, 0.08);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(49, 58, 68, 0.08);
  height: 100%;
  padding: 28px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.impact-card:hover {
  box-shadow: 0 18px 36px rgba(49, 58, 68, 0.12);
  transform: translateY(-3px);
}

.impact-card h2 {
  color: #313a44;
  font-size: 34px;
  font-weight: 800;
  margin: 14px 0 4px;
}

.impact-card p {
  color: #5f6871;
  font-size: 14px;
  font-weight: 650;
  margin: 0;
}

.icon-circle {
  background-color: #cbeb00;
  box-shadow: 0 10px 22px rgba(203, 235, 0, 0.28);
  height: 62px;
  margin: 0 auto;
  width: 62px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 16px;
}

.footer-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.social-icons {
  margin-top: 24px;
}

.social-icons a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  margin: 0 5px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  width: 40px;
}

.social-icons a:hover {
  background-color: #cbeb00;
  color: #313a44;
  transform: translateY(-1px);
}

.social-icons i {
  font-size: 18px;
}

.footer-contact {
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 0;
}

.footer-contact a {
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
}

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

.footer-contact span::before {
  content: "• ";
}

@media (max-width: 480px) {
  .footer-form {
    display: grid;
  }

  .newsletter-input,
  .subscribe-btn {
    max-width: none;
    width: 100%;
  }

  .footer-contact {
    display: grid;
  }

  .footer-contact span::before {
    content: "";
  }
}

@media (max-width: 767px) {
  .impact-section {
    border-radius: 12px;
    margin-top: 18px;
    padding: 38px 0;
  }

  .impact-card {
    padding: 24px 12px;
  }

  .impact-card h2 {
    font-size: 28px;
  }
}
