/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: #dfd3b9;
  color: #2e4989;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  background-color: #2e4989;
  color: #dfd3b9;
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin: 20px 0;
}

/* CTA button styles */
.cta-button {
  background-color: #2e4989;
  color: #dfd3b9;
  padding: 15px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  width: 80%; /* Makes the button responsive */
  max-width: 300px; /* Optional: sets a max width */
  margin: 0 auto; /* Centers the button */
  display: block; /* Makes sure it occupies a block-level space */
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .cta-button {
      padding: 12px 15px; /* Slightly reduce padding */
      font-size: 1rem; /* Adjust font size for better fit */
  }

  .hero h1 {
      font-size: 2rem; /* Adjust heading size for mobile */
  }

  .overlay-text {
      font-size: 2rem; /* Adjust overlay text size */
  }

  .hero-content {
      padding: 0 10px; /* Add padding for smaller screens */
  }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
  .cta-button {
      font-size: 0.9rem; /* Reduce font size further for smaller screens */
  }

  .hero h1 {
      font-size: 1.5rem; /* Further reduce heading size */
  }

  .overlay-text {
      font-size: 1.5rem; /* Further reduce overlay text size */
  }
}

.cta-button:hover {
  background-color: #dfd3b9;
  color: #2e4989;
  border: 2px solid #2e4989;
}

/* Donation Form Section */
.donation-section {
  text-align: center;
}

.form-container {
  max-width: 600px;
  margin: auto;
}

.donation-form label {
  display: block;
  margin: 10px 0 5px;
}

.donation-form input,
.donation-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 2px solid #2e4989;
  border-radius: 5px;
}

.checkbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submit-button {
  background-color: #2e4989;
  color: #dfd3b9;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.submit-button:hover {
  background-color: #dfd3b9;
  color: #2e4989;
  border: 2px solid #2e4989;
}

.total {
  margin: 20px 0;
  font-size: 1.5rem;
}

/* How It Works Section */
.how-it-works {
  padding: 50px 20px;
  background-color: #f5f0e1;
}

/* FAQ Section */
.faq {
  padding: 50px 20px;
  background-color: #2e4989;
  color: #dfd3b9;
}

.faq h2 {
  text-align: center;
  margin-bottom: 20px;
}

.faq-item {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #dfd3b9;
  border-radius: 5px;
  background-color: #2e4989;
}

.faq-item h3 {
  margin-bottom: 10px;
}

/* Footer */
.footer {
  background-color: #2e4989;
  color: #dfd3b9;
  text-align: center;
  padding: 20px;
  position: relative;
}

.footer p {
  margin: 5px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .faq-item {
      padding: 15px; /* Reduce padding for mobile */
  }
}

/* Image styles */
.image-container {
  position: relative;
}

.responsive-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  max-width: 600px; /* Optional: limits the size of the image */
  border-radius: 10px; /* Optional: gives the image rounded corners */
}

.overlay-text {
  position: absolute;
  bottom: 15%; /* Position it 25% from the bottom of the image */
  left: 50%;
  transform: translate(-50%, 50%); /* Center it horizontally and adjust it up */
  text-align: center;
  font-size: 1.5rem;
}

.overlay-text a {
  color: #dfd3b9;
  text-decoration: none;
  background-color: #2e4989;
  padding: 10px 15px;
  border-radius: 5px;
  display: inline-block; /* Ensures the background color wraps around the text */
}

