/* Restored original simple carousel implementation */
.carousel-section {
  width: 100%;
  /* Removed gradient background, using solid grey */
  background: #f8f9fa;
  padding: 60px 20px;
  min-height: 60vh;
}

.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

/* Added title and subtitle styling for carousel section */
.carousel-container h2 {
  font-size: 2.8rem;
  color: rgb(0, 0, 0);
  margin-bottom: 15px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}

.carousel-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 50px;
  font-family: "Roboto", sans-serif;
  line-height: 1.5;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: white;
  max-width: 400px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 900%; /* 9 slides * 100% */
}

.carousel-slide {
  flex: 0 0 11.111%; /* 100% / 9 slides */
  position: relative;
  aspect-ratio: 4 / 5; /* Matches 1080x1350 ratio */
  max-height: 500px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.carousel-slide:hover .slide-overlay {
  transform: translateY(0);
}

.slide-overlay h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: "Poppins", sans-serif;
}

.slide-overlay p {
  font-size: 1rem;
  line-height: 1.4;
  opacity: 0.9;
  font-family: "Roboto", sans-serif;
}

/* Navigation arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: #0f0d11;
}

.carousel-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* Dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .carousel-section {
    padding: 40px 15px;
  }

  /* Added mobile responsive styles for title */
  .carousel-container h2 {
    font-size: 2.2rem;
  }

  .carousel-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  .carousel-wrapper {
    max-width: none;
    max-height: none;
  }

  .carousel-slide {
    max-height: none;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .slide-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .slide-overlay h3 {
    font-size: 1.1rem;
  }

  .slide-overlay p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .carousel-container h2 {
    font-size: 1.8rem;
  }

  .carousel-subtitle {
    font-size: 1rem;
  }
}
