/* Enhanced Carousel and Button Styling */

/* Carousel Caption */
.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 5px;
  max-width: 600px;
  margin: 0 auto;
  bottom: 30px;
}

.carousel-caption h1 {
  font-size: 34px;
  margin: 10px 0;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-caption h4 {
  font-size: 18px;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-caption a.button {
  background: #e63946;
  color: white;
  padding: 12px 25px;
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  text-transform: none;
  font-size: 16px;
  transition: all 0.3s ease;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.carousel-caption a.button:hover {
  background: #c1272d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Better indicators */
.carousel-indicators li {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  border-radius: 50%;
}

.carousel-indicators .active {
  width: 14px;
  height: 14px;
  background-color: #e63946;
  border: 2px solid white;
}

/* Carousel controls */
.carousel-control {
  opacity: 0.7;
  width: 8%;
}

.carousel-control:hover {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .carousel-caption {
    padding: 15px;
    max-width: 90%;
    bottom: 20px;
  }
  
  .carousel-caption h1 {
    font-size: 24px;
  }
  
  .carousel-caption h4 {
    font-size: 16px;
  }
  
  .carousel-caption a.button {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Ensure readability of carousel captions on small screens */
@media (max-width: 480px) {
  .carousel-caption {
    bottom: 10px;
    padding: 10px;
  }
  
  .carousel-caption h1 {
    font-size: 20px;
  }
  
  .carousel-caption h4 {
    font-size: 14px;
    margin-bottom: 5px;
  }
}
