/*=============================
Carousel Section Styling
===============================*/

/* Main carousel wrapper and height settings */
.carousel-wrapper,
#homeCarousel,
.carousel-inner,
.carousel-item {
  height: auto !important;
  max-height: auto !important;
  overflow: hidden;
  position: relative;
  background-color: rgb(253, 241, 221);
}

/* Responsive image setup */
.carousel-item picture,
.carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Smooth slide transition */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* Previous and Next Button Placement */
.carousel-control-prev {
  left: -60px;
}
.carousel-control-next {
  right: -60px;
}

/* Carousel button icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  padding: 20px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* Indicators (dots) */
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ffffff;
  opacity: 0.7;
}
.carousel-indicators .active {
  opacity: 1;
  background-color: #ff5555;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #ffffff;
  opacity: 0.8;
  animation: bounce 2s infinite;
  z-index: 10;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/*=============================
Mobile Styling
===============================*/

@media (max-width: 767px) {
  .carousel-wrapper,
  #homeCarousel,
  .carousel-inner,
  .carousel-item {
    height: auto;
    max-height: none;
    padding-bottom: 0;
    margin-bottom: 0;
    background-color: papayawhip;
  }

  .carousel-item picture,
  .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  body {
    overflow-x: hidden;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  #hero-carousel {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .carousel-control-prev {
    left: 0px;
  }

  .carousel-control-next {
    right: 0px;
  }

  .scroll-down-indicator {
    font-size: 1.5rem;
    bottom: 10px;
  }
}
