/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Navigation */
nav {
  background: #004080;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: relative;
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: #fff;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  z-index: 2000;
}

#nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 2rem;
}

#nav-menu li {
  position: relative;
}

#nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  display: block;
  border-radius: 6px;
  transition: background 0.3s ease;
}

#nav-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #0059b3;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 1000;
  border-radius: 6px;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu li:last-child {
  border-bottom: none;
}


.hero .container {
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  padding: 2rem;
  border-radius: 12px;
}


/* Hero Section */
.hero {
  background: url('images/school_banner.jpg') no-repeat center top;
  background-size: cover;
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}

.hero h1 span {
  color: white;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 
    -1px -1px 0 blue,
     1px -1px 0 blue,
    -1px  1px 0 blue,
     1px  1px 0 blue;
}

.hero .buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  background-color: #fff;        /* White background */
  color: #004080;                /* Navy blue text */
  border: 2px solid #004080;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background-color: #004080;     /* Navy blue background on hover */
  color: #fff;                   /* White text on hover */
}


/* Features Section */
.features {
  background-color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #f1f1f1;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery {
  background-color: #f0f8ff;
  padding: 4rem 2rem;
  text-align: center;
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

/* CTA Section */
.cta {
  background-color: #004080;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cta .btn {
  font-size: 1rem;
  background-color: #ffd700;
  color: #000;
}

/* Footer */
footer {
  background-color: #00264d;
  color: #ccc;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta h2,
  .features h2,
  .gallery h2 {
    font-size: 1.5rem;
  }

  .hamburger {
    display: block;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #004080;
    padding: 1rem 0;
    z-index: 1500;
  }

  #nav-menu.show {
    display: flex;
  }

  #nav-menu li {
    text-align: center;
    width: 100%;
  }

  .hero .buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 80%;
  }
}
