/* === Global Styles === */
body {
  font-family: 'Roboto', sans-serif; /* Google Font: Roboto (Body) */
  margin: 0;
  color: #495057; /* Darker text color - Good contrast */
  background-color: #f8f9fa; /* Light gray background */
  line-height: 1.6;
}

/* Hide navbar by moving it up */
/* Ensure both navbars have smooth transitions */
.navbar {
  width: 100%;
  position: fixed;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

/* Hide both navbars by moving them up */
.hide-navbar {
  transform: translateY(-100%);
}

/* Styling for the first two nav links */
/* Add spacing between nav items */
.navbar-nav .nav-item {
  margin-right: 15px; /* Adjust space between items */
}

/* Remove margin from the last nav item to prevent extra spacing */
.navbar-nav .nav-item:last-child {
  margin-right: 0;
}

.special-link {
  background-color: #004080; /* Dark Blue background */
  color: white; /* White text - Good contrast */
  font-weight: bold; /* Make text bold */
  padding: 10px 15px; /* Adjust padding */
  border-radius: 5px; /* Rounded corners */
}

/* Hover effect */
.special-link:hover {
  background-color: #003366; /* Darker blue on hover */
  color: #fff;
}

.special-link-donate {
  background-color: #e9c70a; /* Yellow background */
  color: #212529; /* Dark text for better contrast on yellow */ /* FIXED */
  font-weight: bold; /* Make text bold */
  padding: 10px 15px; /* Adjust padding */
  border-radius: 5px; /* Rounded corners */
}

.special-link-donate:hover {
  background-color: #d0b109; /* Slightly darker yellow on hover */ /* ADJUSTED */
  color: #212529; /* Keep dark text */ /* FIXED */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif; /* Google Font: Montserrat (Headings) */
  color: #004080; /* Dark blue heading color - Good contrast on light backgrounds */
  font-weight: 700;
  margin-bottom: 0.75rem; /* Consistent margin */
}

a {
  color: #006400; /* Darker Primary Green for better contrast */ /* FIXED */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #033307; /* Very dark green - Good contrast */
}

/* === Reusable Button Style === */
.button {
  background-color: #006400; /* Darker Primary Green for better contrast */ /* FIXED */
  color: white; /* White text - Good contrast on new darker green */
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.button:hover {
  background-color: #033307; /* Darker Green - Good contrast with white text */
}

/* === Hero Section === */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  overflow: hidden;
  background-color: #e9ecef;
  padding: 2rem; /* Added padding */
}

.hero-container {
  position: relative;
  text-align: left;
  padding: 2rem;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5em; /* Increased size */
  color: #011802; /* Very dark - excellent contrast */
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.6rem;
  color: #011802; /* Very dark - excellent contrast */
  margin-bottom: 2rem;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .hero {
    height: 400px;
    padding: 1rem;
  }

  .hero-container {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* === About Us Section === */
.about-us {
  padding: 60px 0;
  text-align: center;
  background-color: #cddbe7; /* Light blue-gray background */
}

.about-us h2 {
  font-size: 2.8em; /* Increased size */
  padding-bottom: 25px;
  color: #004080; /* Dark blue - Contrast: 4.13:1 (OK for large text) */
}

.about-us p {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.7;
  color: #495057; /* Darker gray text - Contrast: 5.09:1 (Good) */
}

/* === Benefits Section === */
.benefits {
  padding: 60px 0;
  margin: 0px;
  text-align: center;
  background-color: #f8f9fa;
}

.benefits h2 {
  font-size: 2.4em;
  padding-bottom: 25px;
  color: #004080;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stack items in a single column */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.benefit {
  padding: 30px;
  background-color: white;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

/* Adjusting Image Size */
.benefit-image {
  width: 70%; /* Limit width to prevent oversized images */
  max-width: 250px; /* Set a max width */
  margin-bottom: 20px;
}

.benefit-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.benefit-content {
  text-align: center;
  width: 100%;
}

.benefit-content h3 {
  font-size: 1.5em;
  margin-bottom: 0.5rem;
  color: #004080; /* Ensuring heading color is applied */
}

.benefit-content p {
  color: #495057; /* Consistent darker gray text - Contrast: 7.06:1 on white (Good) */
  line-height: 1.6;
}

/* === Responsive Design === */
@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Adaptive grid */
  }

  .benefit-image {
    width: 50%; /* Reduce image width slightly on large screens */
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .benefit {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .benefit-image {
    width: 70%; /* Make images slightly larger for mobile */
    max-width: 180px;
  }
}

/* === How It Works Section === */
.how-it-works {
  padding: 60px 0;
  text-align: center;
  background-color: #e9ecef;
}

.how-it-works h2 {
  font-size: 2.4em;
  padding-bottom: 25px;
  color: #2c3e50; /* Good contrast on #e9ecef */
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjusted minmax */
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px; /* Added horizontal padding */
}

.step {
  padding: 30px;
  background-color: white;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.step h3 {
  font-size: 2em;
  color: #2c3e50; /* Good contrast on white */
  margin-bottom: 0.5rem; /* Added margin */
}

/* === Doctors Section === */
.doctors {
  padding: 60px 0;
  text-align: center;
  background-color: #f0f0f0;
}

.doctors h2 {
  font-size: 2.4em;
  padding-bottom: 25px;
  color: #2c3e50; /* Good contrast on #f0f0f0 */
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px; /* Added horizontal padding */
}

.doctor-card {
  padding: 30px;
  background-color: white;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out;
}

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

.doctor-card img {
  width: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* === Services Section === */
.services {
  padding: 60px 0;
  text-align: center;
  background-color: #e9ecef;
}

.services p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #495057; /* Ensuring good contrast for paragraphs */
}

.services h2 {
  font-size: 2.4em;
  padding-bottom: 25px;
  color: #2c3e50; /* Good contrast on #e9ecef */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px; /* Added horizontal padding */
}

.service-card {
  padding: 30px;
  background-color: white;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out;
}

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

/* === Who Is It For Section === */
.who-is-it-for {
  padding: 60px 0;
  text-align: center;
  background-color: #e9ecef;
}

.who-is-it-for h2 {
  font-size: 2.4em;
  padding-bottom: 25px;
  color: #2c3e50; /* Good contrast on #e9ecef */
}

.who-is-it-for-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted minmax */
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px; /* Added horizontal padding */
}

.for-group {
  padding: 30px;
  background-color: white;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* === FAQ Section (Using Bootstrap) === */
.faq {
  padding: 60px 0;
  text-align: center;
  background-color: #f0f0f0;
}

.faq h2 {
  font-size: 2.4em;
  padding-bottom: 25px;
  color: #2c3e50; /* Good contrast on #f0f0f0 */
}

.accordion {
  max-width: 1000px;
  margin: 0 auto;
}

.accordion-button:not(.collapsed) {
  color: #2c3e50; /* Good contrast */
  background-color: white;
  box-shadow: none;
}

.accordion-button {
  font-weight: bold;
  color: #2c3e50; /* Good contrast */
  background-color: white;
  box-shadow: none;
}

.accordion-button:focus {
  border-color: #ced4da;
  box-shadow: none;
}

.accordion-body {
  padding: 20px;
  color: #495057; /* Ensuring body text has good contrast */
}

/* === Footer Section === */
footer {
  background-color: #033307; /* Dark green - good for white text */
  color: white;
  padding: 40px 0; /* Increased padding */
  text-align: left;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Add horizontal padding */
}

.footer-logo {
  max-height: 50px;
  width: auto;
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links a {
  color: #fff; /* Good contrast on footer background */
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #a8ffb3; /* Light green - Good contrast on footer background */
}

footer h3 {
  margin-bottom: 15px;
  color: white; /* Ensuring headings in footer are white */
}

@media (max-width: 768px) {
  footer {
    text-align: center;
  }
}

.testimonials {
  text-align: center;
}

.testimonial-text {
  font-style: italic;
  color: #495057; /* Consistent darker gray text - Good contrast on #f8f9fa */
  font-size: 1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  padding: 15px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #004080; /* Dark blue - Assumes white icon inside for good contrast */
  border-radius: 50%;
  padding: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .testimonial-text {
    font-size: 0.9rem; /* Reduce font size on smaller screens */
    padding: 10px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 10%; /* Adjust control button size */
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    padding: 6px;
  }
}

/* Call to Action Section */
#call-to-action {
  background: linear-gradient(to right, #00796b, #004d40); /* Teal gradient */
  text-align: center;
  padding: 60px 20px;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

#cta-title {
  font-size: 2rem;
  margin-bottom: 15px;
  color: white; /* Good contrast on gradient */
}

.cta-container p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  line-height: 1.5;
  color: white; /* Good contrast on gradient */
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  /* color: white; (this on the container doesn't style the buttons themselves) */
}

.btn { /* General .btn styling - Bootstrap might provide its own */
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
  /* Ensure .btn styles have good contrast if they are not styled by .button class */
  /* For example, if these are Bootstrap buttons, their default styling might be okay */
  /* If you are custom styling them here, ensure background and text color contrast */
  color: white; /* Assuming a dark background or using a specific class like .button */
}
.donate{
  color: black;
}

.btn:hover {
  transform: scale(1.05);
  /* background-color: #495057; (This would need white text for contrast) */
  /* color: white; (already white) */
}

/* Primary button - if .btn is also styled by .button then it will inherit its green */
/* .btn {
  color: white;
} This is redundant if .button styles it */

/* Secondary button */
.btn-secondary {
  /* If using Bootstrap, this might be a light gray. If custom, ensure contrast. */
  /* Example: background-color: #6c757d; color: white; (Bootstrap default) */
  color: white; /* Assuming a dark background */
}

/* Tertiary button */
.btn-tertiary {
  /* Example: background-color: transparent; border: 1px solid #006400; color: #006400; */
  color: white; /* Assuming a dark background */
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
  }
}

.mission-vision {
  text-align: center;
  padding: 60px 20px;
  background-color: #f9f9f9; /* Very light gray */
  color: #333; /* Good contrast */
}

.mission-vision h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #004080; /* Deep blue for emphasis - good contrast */
}

.mission-vision p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 20px;
  color: #333; /* Good contrast */
}

@media (max-width: 768px) {
  .mission-vision {
    padding: 40px 15px;
  }

  .mission-vision h2 {
    font-size: 1.8rem;
  }

  .mission-vision p {
    font-size: 1rem;
  }
}