/* Basic CSS reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #e0f7fa, #c8e6c9); /* Soft teal to light green gradient */
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: linear-gradient(135deg, #36d1dc, #5b86e5); /* Vibrant teal to blue gradient */
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo img {
  max-height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

nav ul li a {
  color: #ffffff; /* White text for better contrast */
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 50px; /* Rounded button style */
  background: #ff6b6b; /* Coral red */
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul li a:hover {
  background: #e63946; /* Darker coral on hover */
  transform: translateY(-3px); /* Lifting effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.donate-side {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  padding: 10px;
}

.donate-side a img {
  max-width: 100px;
  margin: 10px;
  border: 3px solid #36d1dc;
  border-radius: 12px;
  transition: transform 0.3s, border-color 0.3s;
}

.donate-side a img:hover {
  transform: scale(1.1);
  border-color: #5b86e5;
}

main {
  flex: 1;
  padding: 40px 40px;
  background: #f9fbfc; /* Light, soft pastel color for main content */
  border-radius: 15px;
  margin: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-ngo {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px;
  background: #e3f2fd; /* Light blue to match the overall theme */
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-ngo h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #36d1dc; /* Teal */
  font-weight: 700;
}

.about-ngo p {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

.centers {
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.centers h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #36d1dc;
  font-size: 2.2rem;
  font-weight: 600;
}

.center-block {
  background: #f1faff; /* Soft pastel blue */
  padding: 25px;
  margin: 10px 0;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left: 6px solid #5b86e5;
  transition: transform 0.3s, box-shadow 0.3s;
}

.center-block:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.center-block h3 {
  color: #333;
  margin-bottom: 8px;
  font-weight: 600;
}

.recent-projects {
  text-align: center;
  margin-bottom: 40px;
}

.recent-projects h2 {
  color: #5b86e5;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.slideshow {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.slideshow img {
  width: 100%;
  display: none; /* Hide all images initially */
  border-radius: 15px;
}

.slideshow img.active {
  display: block; /* Show only the active image */
  animation: slideIn 1s ease-in-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

footer {
  background: #36d1dc; /* Vibrant teal for footer */
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 30px 40px;
  border-top: 4px solid #5b86e5;
  gap: 30px;
}

footer address {
  flex: 1;
  text-align: center;
  min-width: 200px;
  margin-bottom: 15px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  transition: color 0.3s, border-bottom 0.3s, background 0.3s;
  border-bottom: 2px solid transparent;
  border-radius: 50px;
}

.footer-nav ul li a:hover {
  color: #36d1dc; /* Teal text on hover */
  background: #ffffff; /* White background on hover */
  border-bottom: 2px solid #ffffff;
}

footer p {
  text-align: center;
  width: 100%;
  margin-top: 20px;
  font-size: 1rem;
  color: #e0f7fa; /* Soft light text */
}

/* Responsive Styles */
@media (max-width: 768px) {
  header,
  nav ul {
    flex-direction: column;
    text-align: center;
    padding: 15px 0;
  }

  nav ul li a {
    padding: 8px 16px;
    margin-bottom: 10px;
    font-size: 0.95rem;
  }

  .donate-side {
    position: static;
    transform: none;
    margin-top: 20px;
    text-align: center;
  }

  .slideshow {
    flex-direction: column;
    align-items: center;
  }

  .slideshow img {
    max-width: 90%;
  }

  footer {
    padding: 20px 20px;
    flex-direction: column;
    text-align: center;
  }

  .footer-nav ul {
    gap: 10px;
  }
}

.logo img {
  background-color: transparent;
  mix-blend-mode: multiply;
  width: 130px;
  height: 120px;
}
