/* styles.css */
:root{
  --green: #3a5a40;
  --light-green: #2d6a4f;
  --blue: #00b4d8;
  --white: #fff;
  --black: #1A1A29;
}
/* Font and base setup */
html{
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #f9f7f1;
  color: #333;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  color: var(--green);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--green);
}

.NavBrandName{
  display: none;
  color: var(--green);
  font-size: large;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.logo img {
  width: 50px;
}
.nav-links a {
  text-decoration: none;
  color: var(--green);
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Home Section */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 4rem 2rem;
  background: linear-gradient(to bottom right, #e0f7fa, #ffffff);
}

.home-content {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.text-section {
  flex: 1;
}

.text-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.text-section p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  color: var(--white);
  background-color: var(--green);
  transition: background-color 0.3s ease;
}
.cta i {
  margin-right: 0.5rem;
}
.cta.secondary {
  background-color:var(--blue);
}

.cta:hover {
  background-color: var(--light-green);
}

.image-section {
  flex: 1;
  max-width: 300px;
}

.image-section img {
  width: 100%;
  border-radius: 20px;
}
.mission-content{
  display: flex;
  flex-wrap: wrap;
}
.mission-content .text-section{
  align-self: center;
}
/* Section Styling */
section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

input, textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

button {
  padding: 1rem;
  background-color: var(--green);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background-color: #2d6a4f;
}

footer {
  background-color: #ffffff;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

/* Testimonials */
.testimonials {
  background-color: #e6f0e6;
  padding: 4rem 2rem;
}

.testimonial-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Programs Section */
.programs {
  background-color: #f1f9f1;
  padding: 4rem 2rem;
}

.program-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  text-align: left;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s forwards;
}


.program-card:hover {
  transform: translateY(-8px);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.program-card h3 {
  color: #3a5a40;
  margin-bottom: 1rem;
}

.program-card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Animation Keyframes */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    transition: all 0.3s ease;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: absolute;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    top: 65px;
    right: 0;
    width: 50%;
    padding: 4rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.show {
    display: flex;
    opacity: 1; 
    transform: translateY(0)
  }

  .logo img {
    width: 90px;
  }
  .NavBrandName{
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .home{
    padding-top: 5px;
  }
  .home-content {
    flex-direction: column;
    text-align: center;
  }
  .home-content .image-section {
    order: 2; /* Move image section to the bottom */
  }

  .home-content .text-section {
      order: 1; /* Keep text section on top */
  }
  .mission-content{
    flex-direction: column;
  }
  .image-section {
    max-width: 80%;
    margin: 2rem auto 0;
  }

  .testimonial-card {
    padding: 1.5rem;
  }
}

/* Testimonial Section Styles */
.testimonial-section {
  padding: 4rem 2rem;
  text-align: center;
}

.testimonial-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #3a5a40;
}

.testimonial-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
}

.testimonial-section .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-section .card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
}


.testimonial-section .card h3 {
  margin-bottom: 0.5rem;
  color: #2d6a4f;
}

.testimonial-section .card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.testimonial-section .card span {
  display: block;
  font-size: 0.9rem;
  margin-top: 1rem;
  color: #777;
  font-style: italic;
}
/*--GALLERY--*/
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.gallery-preview {
  margin-bottom: 20px;
  width: 70%;
  max-width: 800px; 
  aspect-ratio: 4 / 3;
}

.gallery-preview img {
  width: 100%;
  height: 100%; 
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-images {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.images {
  width: 150px;
  height: 100px; 
  cursor: pointer;
  transition: transform 0.2s;
  overflow: hidden; 
  border-radius: 5px;
  position: relative; 
}

.images img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.images:hover {
  transform: scale(1.05);
}
.gallery-images:hover > .images:not(:hover){
  filter: blur(3px);
  opacity: 0.5px;
}
.images img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio */
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
