/* Carousel Container */
.carousel {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 450px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Stacked Slides for the "Leafing Through" Cross-Fade Effect */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: block;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease; /* Subtle zoom effect while active */
}

.carousel-slide.active img {
  transform: scale(1.03);
}

/* Descriptive Text Overlay */
.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #ffffff;
}

.carousel-content h2 {
  margin: 0 0 10px 0;
  font-size: 24px;
}

.carousel-content p {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #e0e0e0;
}

/* Visual Button Styling (Inside the link) */
.carousel-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color:rgb(205, 133, 1);
  color: #000000;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.carousel-slide:hover .carousel-btn {
  background-color:  goldenrod;
}

/* Navigation Arrow Buttons */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 18px;
  padding: 12px 16px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev { left: 15px; }
.carousel-control.next { right: 15px; }

/* Navigation Dots */
.carousel-dots {
  position: absolute;
  bottom: 15px;
  right: 30px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
}

.dot.active {
  background-color: #ffffff;
  transform: scale(1.2);
}