/* ===== Reset some basics ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* ===== Header (logo + school info) ===== */
.page-header {
  background-color: #004080;
  color: white;
  padding: 20px 10px;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.brand img {
  height: 70px;
}

.school-info h1 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.school-info .location {
  font-size: 1rem;
  margin-bottom: 3px;
}

.school-info .estd {
  font-size: 0.9rem;
  font-style: italic;
  color: #ffcc00;
}

/* ===== Sticky Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  background-color: #003366;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Navbar Links */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-links a:hover {
  background-color: #ffcc00;
  color: #003366;
}

/* Hamburger Menu (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
#backToTop {
  display: none; /* hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #004080;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

#backToTop:hover {
  background-color: #003366;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation - toggle class */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
form {
  max-width: 500px;
  margin: 20px auto;
  background: #f4f7f8;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #003366;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
  font-size: 1rem;
  font-family: inherit;
}

form textarea {
  min-height: 100px;
}
.map-container {
  margin-top: 20px;
  border: 3px solid #004080;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

form button {
  background-color: #004080;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #003366;
}

/* Responsive Navbar for Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #003366;
    position: absolute;
    top: 52px; /* height of navbar */
    right: 0;
    width: 200px;
    padding: 10px 0;
    border-radius: 0 0 0 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 10px 20px;
  }

  .hamburger {
    display: flex;
  }
}

/* ===== Main Content ===== */
main {
  padding: 20px;
  max-width: 1100px;
  margin: 20px auto;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== Gallery Category and Grid ===== */
.gallery-category {
  margin-bottom: 40px;
}

.gallery-category h3 {
  margin-bottom: 15px;
  color: #003366;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  position: relative;
}

.gallery-grid .hidden {
  display: none;
}

.gallery-grid.show-more .hidden {
  display: contents;
}

/* Show more button */
.toggle-btn {
  grid-column: 1 / -1;
  padding: 10px;
  background-color: #004080;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.toggle-btn:hover {
  background-color: #003366;
}

/* Gallery images styling */
.gallery-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* ===== Lightbox Styling ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px white;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #004080;
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  margin: 8px;
  display: inline-block;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffcc00;
}

footer i {
  margin-right: 6px;
}

/* Contact numbers container */
.contact-numbers {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

@media (min-width: 600px) {
  .contact-numbers {
    flex-direction: row;
    gap: 20px;
  }
}
