.hero-carousel {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-content {
  position: absolute;
  bottom: 25px;
  left: 10%;
  color: white;
  max-width: 80%;
  animation: fadeInUp 1s ease-in-out;
  z-index: 2;
}

.carousel-content h1 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.carousel-content p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.carousel-btn {
  background-color: #c6093b;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
}
.carousel-btn:hover, .carousel-btn:focus {
  background-color: #fff;
  color: #c6093b;
}
.carousel-slide:after {
    content: "";
    width: 100%;
    height: 100%;
    background: #0000006b;
    position: absolute;
    z-index: 0;
}
.hero-carousel .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0) !important;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
  border-radius: 50px;
}

.hero-carousel .carousel-nav:hover {
  background: rgba(0, 0, 0, 0) !important;
}
.carousel-nav.prev {
  left: 1rem;
}

.carousel-nav.next {
  right: 1rem;
}


.carousel-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.carousel-content.animate {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .hero-carousel {
  /*height: 85vh;*/
  height: calc(100vh - 120px);
}

 .carousel-content h1 {
  font-size: 2.5rem;
}

.carousel-content p {
  font-size: 1.5rem;
} 
.carousel-content {
  bottom: 20%;
  max-width: 900px;
}
  
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
