body {
  font-family: var(--bs-body-font-family);
  background: #f9f9f9;
  margin: 0;
  padding: 0;
}

nav.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

section {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero {
  background: linear-gradient(135deg, #40ada8 0%, #40ada8 100%);
  color: #fff;

  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.card img {
  height: 220px;
  object-fit: cover;
}

.gallery img {
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  width: 100%;
}

footer {
  background: #222;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

#about {
  background: #fffdf2;
}

.nav-link.active {
  font-weight: bold;
  color: #40ada8 !important;
}

/* Footer code */
.footer {
  background-color: #40ada8;
  color: #e1f8ff;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  text-align: start;
  color: #fff;
}

.footer-heading {
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  text-align: start;
}

.footer-link {
  color: #e1f8ff;
  text-decoration: none;
  display: block;
  margin: 6px 0;
}

.footer-link:hover {
  color: #ffffff;
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff;
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s;
}

.social-icon:hover {
  background-color: #ffffff;
  color: #003f54;
}

.btn-submit {
  background-color: #1cbdd4;
  color: #fff;
  font-weight: bold;
  border-radius: 30px;
  padding: 10px;
  border: none;
}

.btn-submit:hover {
  background-color: #17a2b8;
}

.form-control {
  border-radius: 8px;
}

.align-start {
  text-align: start;
}

/* Home page start */
.school-banner {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 90vh;
  object-fit: cover;
}

/* dark overlay */
.school-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* text */
.banner-content {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 2;
  max-width: 500px;
  text-align: center;
}

.homeHide {
  display: none;
}

.banner-content h1,
.banner-content h4 {
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  color: white;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
}

.hero-text p {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #eaf9fa;
  max-width: 550px;
}

.hero-text .btn {
  margin-top: 30px;
  padding: 12px 30px;
  border-radius: 50px;

  font-weight: bold;
  border: none;
}

.hero-text .btn:hover {
  background-color: #f5a0c2;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 50%;
  height: 50%;
  object-fit: cover;
  border-radius: 25px;
}

.school-label {
  position: absolute;
  bottom: 20px;
  right: 30px;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 1.1rem;
  color: #012c3d;
  font-weight: bold;
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    padding: 30px 20px;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text h4 {
    font-size: 1rem;
  }

  .school-label {
    position: static;
    margin-top: 15px;
    text-align: center;
    width: 100%;
  }

  .hero-text .btn {
    margin-bottom: 10px;
  }
}

.about-heading {
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-weight: 700;
  color: #0b1016;
}

.btn-info {
  background: linear-gradient(to right, #ebc2a0, #f5d3b5, #fbe8d5);
  border: none !important;
  color: rgb(0, 0, 0);
  font-weight: bold !important;
  transition: all 0.3s ease-in-out;
}

/* .btn-info:hover {
  background: linear-gradient(to right, #ebc2a0, #f5d3b5, #fbe8d5);
  font-weight: bold;
  color: #000000;
} */

.fas.fa-check-circle {
  font-size: 1.2rem;
}

.align-start {
  text-align: start;
}

/* --------------------------------- */

/* ------------------------ */
.teachers-section,
.testimonial-section,
.book-seat-section,
.classes-section {
  display: block;
}

.teacher-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.teacher-name {
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #002f4b;
}

/* ------------------------ */
.testimonial-img-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ccc;
}

.testimonial-card {
  background-color: #f9f9f9;
}

.testimonial-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.section-title {
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-weight: bold;
}

/* Add directional icons as masks */
/* ------------------------------------ */

.about-heading {
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-weight: 600;
}

.book-seat-section {
  background-color: #fff;
}

.card .bg-dark {
  background-color: #70e0d5 !important;
}

.card .bg-info {
  background-color: #70e0d5 !important;
}

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

/* Home page end */

/* About Start */
.about-heading {
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-weight: 600;
}

/* About Section */
.about-us {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  padding: 40px 0;
}

/* Carousel Styles */
.carousel1 {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.carousel-img1 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transition: opacity 0.5s ease-in-out;
}

.carousel-img1.active {
  display: block;
}

/* Info Section */
.info {
  flex: 1;
  min-width: 280px;
}

.info h2 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: #333;
  margin-bottom: 16px;
  font-family: "Comic Sans MS", cursive;
}

.info p {
  font-size: 20px;
  color: #555;
  line-height: 1.6;
  text-align: center;
}

.container-about-us {
  display: flex;
  gap: 25px;
  padding: 2rem;
}

/* ---------------------- */
.director-section {
  background-color: #f9f9f9;
}

.director-img {
  width: 100%;
  max-width: 300px;
  max-height: 300px;
  height: auto;
  border-radius: 100%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 4px solid #9e2627;
}

.director-name {
  font-size: 2rem;
  font-weight: 600;
}

.director-bio {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* ------------------------------------------ */
.gallery-img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  margin: 0 10px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
}

#galleryBottom .carousel-inner {
  direction: rtl;
}

#galleryBottom .carousel-item {
  direction: ltr;
}

/* About End */

/* Events start */
.section-title {
  color: #08082c;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.event-card {
  background-color: #fff;
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.icon-box {
  font-size: 2.5rem;
  color: #ffc107;
}

.highlight-card {
  background: #08082c;
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
}

.highlight-card img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.highlight-card .content {
  padding: 2rem;
}

.highlight-card .btn {
  background-color: gold;
  border: none;
  color: #000;
}

.highlight-card .btn:hover {
  background-color: #d4af37;
}

.event-div {
  padding: 80px 0;
}

.event-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #1e1e2f;
}

.event-description {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
}

.event-image {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 400px;
}

.highlight {
  color: #d99000;
}


.nav-pills.gallery-nav .nav-link {
  background: linear-gradient(135deg, #ff8c00, #ffb347);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  margin: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.3s, color 0.3s;
}

.nav-pills.gallery-nav .nav-link:hover {
  background: linear-gradient(135deg, #ffb347, #ffcc70);
  transform: translateY(-2px);
}

.nav-pills.gallery-nav .nav-link.active {
  background: linear-gradient(135deg, #ffb347, #ffcc70);
  color: #000 !important;
  /* Force black text */
}

/* Events end */

/* Make all images clickable */
.popup-img {
  cursor: pointer;
}

/* Custom modal */
#customImageModal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

#customImageModal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

#closeModal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

#testimonialCarousel .carousel-inner {
  max-width: 760px;
  margin: auto;
  padding: 30px;
}

#testimonialCarousel .carousel-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #007bff;
}

.stars {
  font-size: 1.2rem;
}


.kid-study-img {
  max-height: 450px;
  object-fit: cover;
  max-width: 350px;
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-img {
    width: 90%;
    margin: 10px auto;
  }

  .carousel-item>.d-flex {
    flex-direction: column;
    align-items: center;
  }

  .container-about-us {
    flex-direction: column;
  }

  .carousel1 {
    order: 1;
  }

  .about-us, .container-about-us {
    padding-bottom: 0;
  }
  .info {
    order: 2;
  }
}

@media (max-width: 767px) {
  .footer {
    text-align: center;
  }

  .footer .row>div {
    margin-bottom: 30px;
  }

  .event-title {
    font-size: 1.8rem;
  }

  .event-description {
    font-size: 1rem;
  }

  .highlight-card .content {
    padding: 1.5rem;
  }

  .event-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 425px) {
  .navbar-brand img.logo {
    height: 50px;
  }
}