html,
body {
  overflow-x: hidden;
  line-height: 1.5;
}

.noto-serif-old-uyghur-regular {
  font-family: "Noto Serif Old Uyghur", serif;
  font-weight: 600;
  font-style: normal;
}

.navbar {
  background-color: purple;
}

a.navbar-brand {
  font-family: "Noto Serif Old Uyghur", serif;
  font-weight: 400;
  font-size: 26px;
  color: black !important;
  padding: 8px; /* Add padding for better appearance */
}

.navbar li a,
.navbar .navbar-brand {
  color: #fff !important;
  margin-inline: 8px;
}

.nav-item {
  font-size: 16px;
}

.navbar-nav li a.nav-link:hover {
  color: rgb(0, 255, 21) !important;
  transition: color 0.4s ease;
}

.dropdown-item:hover {
  color: rgb(0, 255, 21) !important;
  background-color: #0f2f4e; /* Change to your desired hover color */
  width: 90%; /* Ensures background color is constrained to the item */
  transition: color 0.2s ease;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgb(255,255,0)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.navbar-expand-lg .navbar-toggler {
  border-color: transparent;
  color: #fff !important;
}

nav {
  padding: 0%;
}

.dropdown-menu {
  background-color: purple;
}

#myCarousel .carousel-caption {
  position: absolute;
  top: 55%;
  left: 0;
  padding: 10px;
  margin-left: 18%;
  z-index: 1; /* Ensure captions are on top of the overlay */
}

.home-caption {
  color: #fff;
  position: absolute;
  top: 23%;
  left: 0;
  padding: 10px;
  margin-left: 25%;
  z-index: 1; /* Ensure captions are on top of the overlay */
}
#admissions .home-caption {
  margin-left: 40%;
}

#myCarousel .carousel-item {
  height: 600px;
}

#myCarousel .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.6
  ); /* Adjust the color and opacity as needed */
  z-index: 1; /* Place the overlay above the image */
  opacity: 1;
}

#myCarousel .carousel-item img {
  position: absolute;
  object-fit: contain;
  top: 10px;
  left: 0;
  min-height: 600px;
  transition: transform 0.8s ease; /* Define the transition for the zoom effect */
}
#myCarousel .carousel-item.active img {
  transform: scale(1.1); /* Apply the zoom effect to the active carousel item */
}

.carousel-indicators button {
  background-color: #8ffd00;
}

.carousel-indicators .active {
  background-color: #8ffd00;
}

@keyframes fadeIn {
  0% {
    opacity: 0; /* Start with opacity at 0% */
  }
  100% {
    opacity: 1; /* End with opacity at 100% (fully visible) */
  }
}

#aboutLook {
  background-color: #777675;
  background-image: linear-gradient(rgba(0, 0, 0, 0.527), rgba(0, 0, 0, 0.5)),
    url("images/DSC_0772_result.jpg");
  background-size: cover;
  height: 350px;
  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: bottom;
  background-repeat: no-repeat;
}

#academyLook {
  background-color: #777675;
  background-image: linear-gradient(rgba(0, 0, 0, 0.527), rgba(0, 0, 0, 0.5)),
    url("images/DSC_0878_result.jpg");
  background-size: cover;
  height: 350px;
  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: bottom;
  background-repeat: no-repeat;
}

#secondaryLook {
  background-color: #777675;
  background-image: linear-gradient(rgba(0, 0, 0, 0.527), rgba(0, 0, 0, 0.5)),
    url("images/image\ 9-1.jpeg");
  background-size: cover;
  height: 350px;
  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: bottom;
  background-repeat: no-repeat;
}

#vineyardLook {
  background-color: #777675;
  background-image: linear-gradient(rgba(0, 0, 0, 0.527), rgba(0, 0, 0, 0.5)),
    url("images/DSC_0774_result.jpg");
  background-size: cover;
  height: 350px;
  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: top;
  background-repeat: no-repeat;
}

#admissionsLook {
  background-color: #777675;
  background-image: linear-gradient(rgba(0, 0, 0, 0.527), rgba(0, 0, 0, 0.5)),
    url("images/juniorsecondary1.jpeg");
  background-size: cover;
  height: 350px;
  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: bottom;
  background-repeat: no-repeat;
}

.row {
  justify-content: center;
  padding: 10px;
}

.col-lg-4 {
  text-align: center;
  padding: 1px;
  margin: 10px;
  width: 30%;
  height: 520px;
  background-color: rgb(255, 255, 255);
  border-color: #0f2f4e;
  border-width: 1px;
  border-style: solid;
}

.col-lg-3 {
  padding: 10px;
  margin: 10px;
  background-color: #0f2f4e;
  width: 20%;
  height: 200px;
  border-radius: 8px;
}

.col-lg-3:hover {
  height: 220px;
  width: 25%;
  transition: width 0.8s ease;
}

#bluehouse {
  background-color: blue;
  color: #fff;
  font-family: "Noto Serif Old Uyghur", serif;
  font-weight: 600;
}
#bluehouse h4 {
  margin-top: 30%;
}

#redhouse {
  background-color: red;
  color: #fff;
  font-family: "Noto Serif Old Uyghur", serif;
  font-weight: 600;
}
#redhouse h4 {
  margin-top: 30%;
}

#yellowhouse {
  background-color: yellow;
  font-family: "Noto Serif Old Uyghur", serif;
  font-weight: 600;
}
#yellowhouse h4 {
  margin-top: 30%;
}

.btn-block {
  width: 70%;
  background-color: purple;
  color: #fff;
  text-align: left;
  margin: 10px;
}

.btn-block:hover {
  color: #8ffd00;
  background-color: #05101b;
  transition: background-color 0.8s ease;
}

.end_text {
  display: inline-block;
  text-align: right;
  margin-left: 36%;
}

/* Overlay styles */
.containerize {
  position: relative;
  width: 100%;
  height: 400px;
}

.image-text {
  font-family: "Noto Serif Old Uyghur", serif;
  font-weight: 600;
  color: rgb(0, 0, 0);
  font-size: 25px;
  font-weight: bolder;
}

.overlay {
  position: absolute;
  bottom: 0;
  opacity: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Use rgba for transparency */
  height: 100%;
}

.mapping {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 540px;
  width: 100%;
}

/* CSS for making the overlay a link */
.overlay a {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
  margin-top: 150px;
  color: inherit; /* Inherit text color */
}

/* Apply the overlay height on hover */
.col-lg-4:hover .overlay {
  transition: 0.5s ease; /* Only transition height for smoother animation */
  opacity: 0.6;
}

p {
  font-size: 20px;
  font-weight: 400;
}

.lead {
  font-size: 24px;
  font-weight: 500;
  color: #f0e130;
}

.little {
  font-size: 15px;
  color: #fff;
}

.text-muted {
  font-weight: bolder;
}

.section-heading {
  text-align: center;
  text-decoration: underline;
  text-align: left;
  padding: 12px;
}

/* For setting the event slides */
#upcoming-events {
  padding: 20px;
  background-color: #f4f4f4;
  text-align: center;
}

.event-box {
  display: inline-block;
  background-color: purple;
  color: white;
  margin: 10px;
  padding: 20px;
  width: 250px;
  text-align: left;
  border-radius: 10px;
}

.event-box h3 {
  color: #8ffd00;
}

.event-box a {
  display: inline-block;
  margin-top: 10px;
  color: #f0e130;
  text-decoration: none;
}
/* Swiper specific styling */
.swiper-container {
  width: 100%;
  height: auto;
}

.swiper-slide {
  display: flex;
  width: auto;
  justify-content: center;
}
/* Custom navigation button styles */
.custom-next-button,
.custom-prev-button {
  display: inline-block;
  padding: 10px 10px;
  background-color: rgb(104, 56, 56);
  color: #f0e130;
  cursor: pointer;
  margin: 10px;
  margin-right: 60px;
  margin-left: 60px;
  border-radius: 5px;
  font-weight: bold;
  font-size: larger;
}

.custom-next-button:hover,
.custom-prev-button:hover {
  background-color: purple; /* Change color on hover */
}
/* ----------- */

.container-fluid {
  padding: 30px 30px;
}

.btn-link {
  padding: 1.3%;
}

#top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: rgb(227, 139, 243);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

.linetxt {
  text-decoration: underline;
}

footer p {
  font-size: 15px;
}

footer {
  font-size: 10px;
  background-color: rgb(59, 57, 83);
  color: #fff;
  padding: 30px 30px;
}

footer .row {
  font-size: 10px;
  justify-content: left;
  margin: 10px;
  padding: 0px;
}

.link {
  text-decoration: none;
  color: #fff;
}

.link:hover {
  color: #8ffd00;
  transition: color 0.3s ease;
}

footer .btn-link:hover {
  color: #00fd87;
}

#admissions {
  margin-top: 20px;
}

.btn-outline-primary {
  font-size: large;
  color: black;
  width: 30%;
  padding: 10px;
  border-color: #280281;
}
.btn-outline-primary:hover {
  background-color: #280281;
  transition: background-color 0.6s ease;
}

@media (max-width: 768px) {
  a.navbar-brand {
    font-size: 18px;
  }

  #myCarousel .carousel-item {
    height: 500px;
  }
  #myCarousel .carousel-item img {
    object-fit: cover;
  }

  .col-lg-4 {
    width: 90%;
  }

  #upcoming-events {
    padding: 10px;
  }
  .event-box {
    padding: 10px;
    width: 100%;
  }

  #aboutLook {
    background-position: top;
  }
  #core-values {
    padding: 10px 10px;
  }
  .col-lg-3 {
    width: 43.5%;
    height: auto;
    margin: 8px;
    padding: 5px;
  }
  .col-lg-3:hover {
    width: 45%;
    height: auto;
  }

  .home-caption {
    margin-left: 0%;
  }
  #admissions .home-caption {
    margin-left: 32%;
  }
  .col-md-5 img {
    height: 50;
    width: 50;
  }
}
