     /*bg-image css start */

        .bg-image{
    min-height: 450px;
    background-image: url(./assets/img/oldcampus.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

/*bg-image css end */


  .bannar-Sec {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
  }
  .bannar-Sec video {
    width: 100%;
    height: auto;
    display: block;
  }
  .audio-toggle {
    position: absolute;
    right: 15px;
    bottom: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

   /*GALLERY SECTION STAR*/

/* ===== GALLERY SECTION ===== */
.gallery {
  width: 100%;
  padding: 70px 0 50px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  overflow: hidden;
}

.gallery h2 {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 800;
  color: #202020;
  margin-bottom: 10px;
  position: relative;
}

.gallery h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: #9bb119;
  border-radius: 5px;
}

.gallery p {
  font-size: 17px;
  color: #707070;
  margin-bottom: 45px;
  font-weight: 400;
}

/*GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 20px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
  opacity: 0;
  transform: scale(0.95);
  filter: brightness(0.85);
}

.gallery-grid img.visible {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
}

.gallery-grid img:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ===== POPUP / LIGHTBOX ===== */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-img {
  max-width: 88%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.6);
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.popup.active .popup-img {
  transform: scale(1);
  opacity: 1;
}

.popup .close {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 42px;
  color: #fff;
  cursor: pointer;
  font-weight: 300;
  transition: transform 0.25s ease, color 0.3s ease;
}

.popup .close:hover {
  transform: scale(1.15);
  color: #9bb119;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .gallery h2 { font-size: 28px; }
  .gallery p { font-size: 15px; margin-bottom: 25px; }
  .gallery-grid img { height: 200px; }
}

 /*GALLERY SECTION END*/

        .bg-image2{
    min-height: 450px;
    background-image: url(./assets/img/School\ Building/IMG_9629.webp);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

    .stats-section {
  position: relative;
  width: 100%;
  height: 420px;
  background: url("assets/img/count.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.stats-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}


.stats-container {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  animation: fadeUp 1.2s ease-in-out forwards;
}


.stat-card {
  width: 230px;
  height: 180px;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.3);
  transition: 0.4s ease;
  transform: translateY(20px);
  opacity: 0;
}

.stat-card h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 16px;
  line-height: 1.4;
}


.stat1 { background: #f8f1e8; animation-delay: 0.2s; }
.stat2 { background: #8a1f14; color: #fff; animation-delay: 0.4s; }
.stat3 { background: #c67714; color: #fff; animation-delay: 0.6s; }


.stat-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}


@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}



@media (max-width: 768px) {
  .stats-section {
    height: auto;
    padding: 60px 0;
  }

  .stats-container {
    flex-direction: column;
    gap: 25px;
    padding: 0 20px;
  }

  .stat-card {
    width: 100%;
    max-width: 300px;
    height: auto;
    padding: 20px;
    opacity: 1 !important;   
    transform: none !important;
  }

  .stat-card h2 {
    font-size: 34px;
  }

  .stat-card p {
    font-size: 15px;
  }
}


@media (max-width: 450px) {
  .stat-card h2 {
    font-size: 28px;
  }
 
  .stat-card p {
    font-size: 14px;
  }
}


    .topper-btn {
  padding: 10px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.topper-btn:hover {
  background-color: #003d80;
  transform: translateY(-2px);
}

