.hero-carousel {
  height: 120vh;
  overflow: hidden;
  position: relative;
  background-color: #000;
}

.hero-image {
  height: auto;
  width: 100%;
  object-fit: cover;
  transition: transform 1.2s ease, filter 1.2s ease;
  filter: brightness(0.9);
}

.hero-carousel:hover .hero-image {
  transform: scale(1.05);
  filter: brightness(1);
}

.carousel-caption {
  bottom: 15%;
  position: absolute;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
  max-width: 90vw;
  pointer-events: none;
}

.carousel-caption h3 {
  background-color: rgba(9, 44, 92, 0.85);
  color: #ffcc00;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 2rem;
  font-weight: 800;
  display: inline-block;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  animation: slideUpText 1s ease forwards;
  text-shadow: 0 0 10px #663d00;
}

.carousel-control-prev,
.carousel-control-next {
  width: 56px;
  height: 56px;
  bottom: 100%;
  background-color: rgba(9, 44, 92, 0.65);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 15;
  cursor: pointer;
  border: 2px solid transparent;
}

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

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

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-next:focus {
  background-color: #ffcc00;
  box-shadow: 0 0 12px 4px #ffcc00aa;
  border-color: #fff;
  outline: none;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: none;
}

.carousel-control-prev::before,
.carousel-control-next::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5));
}

.carousel-control-prev::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
}

.carousel-control-next::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z'/%3E%3C/svg%3E");
}

@media screen and (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 44px;
    height: 44px;
  }
  .carousel-control-prev::before,
  .carousel-control-next::before {
    width: 16px;
    height: 16px;
  }
  .carousel-control-prev {
    left: 8px;
  }
  .carousel-control-next {
    right: 8px;
  }
  .hero-carousel {
    height: 60vh;
  }
  .hero-image {
    height: 60vh;
  }
  .carousel-caption h3 {
    font-size: 1.5rem;
    padding: 10px 20px;
  }
}

@keyframes slideUpText {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
