* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  background: #f5f5f5;
  color: #333;
}

main {
  flex: 2; /* pushes footer down */
}

header {
  background: #06402B; /* dark green */
  color: white;
  padding: 20px;
  display: block;
}
header h1 {
  margin-bottom: 5px;
}
nav {
  background: #FFFDD0; /* forest green */
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
}
nav a {
  color: #006400;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  color: #FFD700; /* yellow */
}
.container {
  padding: 40px;
  max-width: 1000px;
  margin: auto;
}
h2 {
  color: white;
  margin-bottom: 15px;
}
.card {
  background: #06402B;
  padding: 20px;
  border-left: 5px solid #FFD700;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: white;
}
footer {
  background: #06402B;
  color: white;
  text-align: center;
  padding: 20px;
  display: flex;
  margin-top: 40px;
  justify-content: center;
}
.hero-carousel {
  position: relative;
  height: 70vh;
  overflow: hidden;
  color: white;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  background: rgba(0, 0, 0, 0.4); /* optional overlay */
  padding: 20px;
  border-radius: 10px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev { left: 20px; }
.next { right: 20px; }


@media (max-width: 480px) {
  .hero {
    height: 50vh; /* even shorter */
    padding: 0 10px;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.9rem;
  }
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay with 50% transparency */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.2rem;
}
/* Responsive Design */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .hero {
    height: 50vh; /* smaller hero section */
    padding: 20px;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }

  .container {
    padding: 20px;
  }

  footer {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  nav a {
    font-size: 0.9rem;
  }
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.about-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.about-card:hover {
  transform: scale(1.02);
}

.about-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.about-card .info {
  padding: 15px;
}

.about-card h3 {
  color: #006400;
  margin-bottom: 10px;
}
/* Hamburger button */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}
.header-brand {
  display: flex;
  align-items: center;
  justify-content: center; /* center whole block */
  gap: 15px; /* space between logo and text */
}

.school-logo {
  width: 60px;
  height: auto;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.6rem;
  color: white;
}

.brand-text .motto {
  margin: 0;
  font-size: 1rem;
  color: #FFD700; /* yellow */
  font-style: italic;
}
.messages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
  color: #f5f5f5;
}

.message-card {
  background:  #06402B;
  border-left: 5px solid #FFD700; /* green accent */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.message-card:hover {
  transform: translateY(-5px);
}

.message-card h3 {
  margin-bottom: 10px;
  color: #FFD700;
}
@media (max-width: 480px) {
  .messages {
    gap: 15px;
  }
  .message-card {
    padding: 15px;
  }
  .message-card h3 {
    font-size: 1rem;
  }
  .message-card p {
    font-size: 0.9rem;
  }
}
/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button */
.dropbtn {
  display: inline-block;
  padding: 10px 15px;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  z-index: 1;
  border-radius: 5px;
}

/* Dropdown links */
.dropdown-content a {
  color: #006400;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}


/* galary */


.gallery {
  padding: 50px 20px;
  text-align: center;
  background: #f9f9f9;
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}
#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

#lightbox .close {
  position: absolute;
  top: 20px; right: 40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}


