.slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  /* overflow: hidden; */
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slider-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: background-image 1s ease-in-out;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  background: linear-gradient(
    180deg,
    #000 0%,
    #000000d9 10%,
    #000000d9 85%,
    #000 100%
  );
  z-index: 1;
}

.slider-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
  position: relative;
  padding: 1% 0% 1%;
}

/* Animate content elements */
.slide-content h2,
.slide-content p,
.slide-images .main-image,
.slide-images .preview-image {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Delays for each element when slide is active */
.slide.active .slide-content h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.slide.active .slide-content p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.slide-images {
  width: 50%;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  position: relative;
  justify-content: flex-end;
}

/* .slide-images .preview-image {
  width: 40%;
  max-width: 342px;
  height: 270px;
  border-radius: 12px;
  opacity: 0.85;
  transition: all 0.5s ease;
  object-fit: cover;
  object-position: center center;
} */
.slide-images .main-image {
  width: 60%;
  max-width: 348px;
  height: 396px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  transition: transform 1s ease;
  object-fit: cover;
  object-position: center center;
}

.slide.active .slide-images .main-image {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
  border: solid 3px #cf8788;
}

.slide-images .preview-image {
  width: 40%;
  max-width: 215px;
  height: 270px;
  border-radius: 12px;
  opacity: 0.75;
  transition: all 1s ease;
  object-fit: cover;
  object-position: center center;
}

.slide.active .slide-images .preview-image {
  opacity: 0.7;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.slide-content {
  width: 50%;
  padding: 0 4%;
}
.slide-content .inr {
  max-width: 490px;
  margin: auto;
}

.slide-content h2 {
  max-width: 90%;
  font-family: "Piazzolla", serif;
  color: #cf8788;
  font-weight: 400;
  font-size: 37px;
  line-height: 1.25;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 0 13px;
  border-bottom: 1px solid #fff;
}

.slide-content p {
  font-family: "Poppins", sans-serif;
  color: #fff;
  max-width: 90%;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: capitalize;
  margin-top: 22px;
}

/* .dots-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  z-index: 2;
  position: relative;
}

.dot {
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #fff;
} */

.dots-nav {
  position: absolute;
  bottom: 6em;
  left: 58%;
  right: 0;
  /* bottom: 0px; */
  /* transform: translateX(-50%); */
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dots-nav .dot {
  width: 40px;
  height: 4px;
  background-color: #fff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border-radius: 2px;
}

.dots-nav .dot.active {
  background-color: #cf8788;
  transform: scaleX(1);
}
.dots-nav .dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/*******chacter slider ******/
#character-slider .slider-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 70vh;
}
#character-slider .heading {
  display: flex;
  max-width: 100%;
  justify-content: center;
  margin-bottom: 30px;
}
#character-slider .heading h2 {
  font-family: "Piazzolla", serif;
  color: #cf8788;
  font-weight: 400;
  font-size: 37px;
  line-height: 1.25;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 0 7px;
}
#character-slider .slider-bg {
  background-position: right center;
}
#character-slider .slider-overlay {
  background: linear-gradient(
    180deg,
    #000 0%,
    #00000000 16%,
    #00000000 86%,
    #000 100%
  );
}

.nav-buttons {
  position: absolute;
  bottom: 2em;
  left: 45%;
  right: 0;
  /* bottom: 0px; */
  /* transform: translateX(-50%); */
  display: flex;
  gap: 0px;
  z-index: 10;
  flex-direction: column;
  align-content: flex-start;
  align-items: flex-start;
}
button.prev-slide,
button.next-slide {
  background: none;
  padding: 2px;
}

/* .nav-buttons .dot {
  width: 40px;
  height: 4px;
  background-color: #fff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border-radius: 2px;
}

.nav-buttons .dot.active {
  background-color: #cf8788;
  transform: scaleX(1);
}
.nav-buttons .dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
} */

@media (max-width: 1140px) {
  #character-slider .heading h2 {
    font-size: 25px;
  }
  .slide-content h2 {
    font-size: 25px;
  }

  .slide-content p {
    font-size: 14px;
  }
}
@media (max-width: 840px) {
  .slide {
    display: flex;
    flex-direction: column;
  }

  .slide.active {
    padding: 8% 6% 20%;
  }

  .slide-content {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .slide-content .inr {
    max-width: 100%;
  }
  .slide-content h2,
  .slide-content p {
    max-width: 100%;
  }
  .slide-images {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .dots-nav {
    display: flex;
    bottom: 5%;
    left: 50%;
    /* right: 0; */
    transform: translateX(-50%);
    width: auto;
    /* text-align: center; */
    justify-content: center;
  }

  /* .slide {
    flex-direction: column;
    text-align: center;
    padding-top: 60px;
    height: auto;
  }

  .slide-content,
  .slide-images {
    width: 100%;
    padding: 0;
  }

  .main-image,
  .preview-image {
    width: 100%;
    max-width: 100%;
  }

  .slide-images {
    flex-direction: column;
    align-items: center;
  } */
}
