:root {
  --primary-blue: #e0f7fa;
  --accent-yellow: #ffeb3b;
  --dark-blue: #00796b;
  --text-dark: #333;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #fdf6f0); /* Modern gradient */
  color: var(--text-dark);
  scroll-behavior: smooth;
}

.card, .hero-text, .contact form {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 1rem 0;
}

header h1 {
  margin-bottom: 0.5rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slideshow {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5); /* optional for contrast */
  border-radius: 1rem;
}


/* General Section */
.section {
  padding: 3rem 0;
  background-color: var(--white);
  border-top: 4px solid var(--primary-blue);
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--dark-blue);
}

/* Card Grid (e.g. Programs, Team) */
.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--primary-blue);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4; /* Portrait ratio */
  object-fit: cover;
  margin: 0 auto 1rem;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.contact input,
.contact textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact button {
  background: var(--accent-yellow);
  color: var(--dark-blue);
  padding: 1rem;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

.contact button:hover {
  background: #fdd835;
}

/* Footer */
footer {
  background-color: var(--dark-blue);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content p {
  margin: 0.5rem 0;
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  color: var(--white);
  margin: 0 10px;
  font-size: 1.2rem;
  text-decoration: none;
}

/* About Section */
.about-section {
  background-color: var(--white);
}

.about-section p {
  text-align: center;
  max-width: 800px;
  margin: 1.5rem auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 2rem;
}

.about-images img {
  width: 100%;
  max-width: 500px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-section p {
  text-align: center;
  max-width: 800px;
  margin: 1.5rem auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.about-img-box {
  flex: 1 1 45%;
  max-width: 45%;
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.program-card img {
  width: 100%;
  max-height: 160px;
  aspect-ratio: 4 / 3; /* Landscape style */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.read-more-btn {
  text-align: center;
  margin-top: 2rem;
}

.read-more-btn a {
  display: inline-block;
  background-color: var(--accent-yellow);
  color: var(--dark-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.read-more-btn a:hover {
  background-color: #fdd835;
}


/* Responsive stacking on smaller screens */
@media (max-width: 768px) {
  .about-img-box {
    max-width: 100%;
  }
}


/* Responsive Fix for Smaller Screens */
@media (max-width: 768px) {
  .about-images img {
    max-width: 100%;
  }

  .card img {
    max-width: 100%;
  }
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.partners-logos img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: grayscale(100%);
}

.partners-logos img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.donate-section {
  position: relative;
  background: url('images/donate-bg.jpg') center center/cover no-repeat;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--white);
  border-top: 4px solid var(--dark-blue);
  z-index: 1;
}

.donate-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for contrast */
  z-index: -1;
}

.donate-text {
  max-width: 700px;
  margin: 1rem auto 2rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--white);
}

.donate-btn-box {
  margin-top: 1rem;
}

.donate-btn {
  background-color: var(--accent-yellow);
  color: var(--dark-blue);
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.donate-btn:hover {
  background-color: #fdd835;
}

.read-more-btn {
  text-align: center;
  margin-top: 2rem;
}

.read-more-btn a {
  display: inline-block;
  background-color: var(--accent-yellow);
  color: var(--dark-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.read-more-btn a:hover {
  background-color: #fdd835;
}

nav a {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-yellow); /* or white for a subtle effect */
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--accent-yellow);
}

nav a:hover::after {
  width: 100%;
}


/* responsiveness */
/* Enhanced Responsive Fixes for Phones */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 1rem;
  }

  nav a {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background-color: var(--dark-blue);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hero {
    height: auto;
    padding: 4rem 1rem;
    text-align: center;
  }

  .hero-text {
    padding: 1rem;
    font-size: 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1rem;
  }

  .card img,
  .program-card img,
  .about-images img,
  .about-img-box img {
    max-width: 100%;
    height: auto;
  }

  .about-section p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .about-img-box {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .contact form {
    padding: 1rem;
  }

  .contact input,
  .contact textarea {
    padding: 0.75rem;
  }

  .contact button {
    padding: 0.75rem;
  }

  footer {
    padding: 1.5rem 1rem;
  }

  .read-more-btn a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  header h1 {
    font-size: 1.5rem;
  }
}
