/* Basic styling for the slider */
#myslider {
  position: relative;
  width: 100%;
  height: 47rem;
  overflow: hidden;
  margin: 0 auto;
  background: url(../img/ec-background/school-Photoroom.png);
  background-size: cover;
  background-repeat: no-repeat;
}

#myslider ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

#myslider ul li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 2rem;
  overflow: hidden;
}

#myslider ul li a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#myslider ul li.active {
  opacity: 1;
}

#myslider ul li img {
  aspect-ratio: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Blurred background */
#myslider .blurred-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  /* z-index: -1; */
}

/* Navigation buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  width: calc(100% - 4rem);
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.slider-nav button {
  background: white;
  color: black;
  border: none;
  width: 3rem;
  height: 3rem;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
}

/* Dot navigation */
.dot-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.dot-nav .dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot-nav .dot.active {
  background: white;
}
