/* ====== General Reset ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  line-height: 1.6;
  background: #f9fbff;
  color: #333;
}

/* ====== Admission Banner ====== */
.admission-banner {
  background: #0056a3;
  color: #fff;
  text-align: center;
  padding: 10px;
  position: relative;
}

.admission-banner b {
  color: #ffeb3b;
}

.close-banner {
  position: absolute;
  right: 15px;
  top: 5px;
  background: none;
  border: none;
  font-size: 20px;
  color: white;
  cursor: pointer;
}

/* ====== Header ====== */
.school-header {
  position: relative;   /* anchor for burger */
  text-align: center;
  padding: 20px;
  background: #e8f3ff;
}

.school-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.school-info .logo {
  width: 90px;
  height: auto;
}

.school-text {
  text-align: left;
}

.school-text h1 {
  font-size: 1.8rem;
  color: #0056a3;
}

/* ====== Slider ====== */
.hero {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 400px;
}

.slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  width: calc(200%); /* doubled for infinite loop */
  animation: slideLoop 30s linear infinite;
}

.slides img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Infinite sliding keyframes */
@keyframes slideLoop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ====== About Section ====== */
.about {
  padding: 40px 20px;
  text-align: center;
  background: #fff;
}

.about h2 {
  color: #0056a3;
  margin-bottom: 15px;
}

/* ====== Gallery ====== */
.gallery {
  padding: 40px 20px;
  text-align: center;
}

.gallery h2 {
  margin-bottom: 20px;
  color: #0056a3;
}

.gallery-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.gallery-grid img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* ====== Admission Form ====== */
.admission-form {
  background: #f1f7ff;
  padding: 40px 20px;
  text-align: center;
}

.admission-form h2 {
  color: #0056a3;
  margin-bottom: 20px;
}

.admission-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: auto;
}

.admission-form input,
.admission-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.admission-form button {
  background: #0056a3;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.admission-form button:hover {
  background: #004080;
}

/* ====== Contact Section ====== */
.contact {
  padding: 40px 20px;
  background: #fff;
  text-align: center;
}

.contact h2 {
  color: #0056a3;
  margin-bottom: 15px;
}

iframe {
  margin-top: 15px;
  border-radius: 10px;
}

/* ====== Footer ====== */
footer {
  background: #0056a3;
  color: #fff;
  text-align: center;
  padding: 10px;
}

/* ====== Burger Menu ====== */
.burger {
  position: absolute;   /* anchored to .school-header */
  top: 15px;
  left: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #0056a3;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1002;
  transition: all 0.3s ease;
}

.burger:hover {
  background: #0056a3;
  color: #fff;
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  left: -250px; /* hidden initially */
  width: 250px;
  height: 100%;
  background: #0056a3;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  transition: 0.3s ease-in-out;
  z-index: 1001;
}

.side-menu a {
  padding: 15px 20px;
  text-decoration: none;
  color: white;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.side-menu a:hover {
  background: #004080;
}

/* Active menu (visible) */
.side-menu.active {
  left: 0;
}

/* Overlay for background dim */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}
