.hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-carousel {
  width: 100%;
  height: 88vh;
  position: relative;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: 80%;
  max-width: 800px;
}

.carousel-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 100%;
}

.carousel-description {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  max-height: 6em;
  overflow: hidden;
}

.carousel-button {
  display: inline-block;
  background-color: #256035;
  color: white;
  padding: 0.75rem 2rem;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.carousel-title {
  color: #cec1a6;
}

.carousel-button:hover {
  background-color: #1a4626;
  transform: translateY(-2px);
}

.swiper.hero-carousel {
  width: 100%;
  height: 87vh;
}

.swiper-slide {
  height: 100%;
}

/* Style for the carousel slide background */
.carousel-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Navigation arrows */
.hero-carousel .swiper-button-next,
.hero-carousel .swiper-button-prev {
  color: white;
  background: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel .swiper-button-next:after,
.hero-carousel .swiper-button-prev:after {
  font-size: 1.5rem;
}

/* Pagination dots */
.hero-carousel .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0.7;
}

.hero-carousel .swiper-pagination-bullet-active {
  background: white;
  opacity: 1;
}

/* No slides message */
.no-slides {
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #666;
  font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-title {
    font-size: 2rem;
  }

  .carousel-description {
    font-size: 1rem;
  }

  .carousel-button {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
}
