body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  background-color: #f9fafb;
  color: #1a1a1a;
  line-height: 1.6;
}

header {
  background-color: #14532d; /* deep green */
  color: #fff;
  padding: 1rem;
  text-align: center;
}

header .logo {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  font-style: italic;
  margin: 0.2rem 0;
}

.logo img {
  width: 80px;   /* adjust size */
  height: auto;
  display: block;
  margin: 0 auto 0.5rem auto; /* centers image */
}


nav {
  background: #166534; /* medium green */
  padding: 0.5rem;
  text-align: center;
}

nav a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: #bbf7d0; /* light green hover */
}

section {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  color: #14532d;
  text-align: center;
  margin-bottom: 1rem;
}

.hero {
  background: linear-gradient(rgba(20, 83, 45, 0.7), rgba(20, 83, 45, 0.7)), url('https://images.unsplash.com/photo-1596495577886-d920f1fb7238') no-repeat center/cover;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
}
  

.about, .admissions, .contact {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 700px;

  /* animation defaults */
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.about.show, .admissions.show, .contact.show {
  opacity: 1;
  transform: translateY(0);
}


.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}


.gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease-out;
}

.gallery img.show {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-link {
  color: #25D366; /* WhatsApp green */
  font-weight: bold;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  animation: pulse 1.5s infinite;
  transition: transform 0.2s ease-in-out;
}

.whatsapp-link i {
  font-size: 1.2rem;
}

.whatsapp-link:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    text-shadow: 0 0 5px #25D366, 0 0 10px #25D366;
  }
  50% {
    text-shadow: 0 0 15px #25D366, 0 0 30px #25D366;
  }
  100% {
    text-shadow: 0 0 5px #25D366, 0 0 10px #25D366;
  }
}



form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

form input, form textarea, form button {
  width: 100%;
  max-width: 500px;  /* keeps form fields from stretching too wide */
  margin: 0.5rem 0;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

form button {
  background: #166534;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

form button:hover {
  background: #14532d;
}

footer {
  background: #14532d;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  nav a {
    display: inline-block;
    margin: 0.5rem;
  }

  section {
    padding: 1rem;
  }
}
