/* ========== PROFESSIONAL HERO CAROUSEL ========== */
#heroCarousel.carousel.carousel-fade {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#heroCarousel .carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#heroCarousel .carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: opacity 0.8s ease-in-out;
}

#heroCarousel .carousel-item.active,
#heroCarousel .carousel-item-next.carousel-item-left,
#heroCarousel .carousel-item-prev.carousel-item-right {
  display: block;
  opacity: 1;
}

#heroCarousel .carousel-item-next,
#heroCarousel .carousel-item-prev {
  position: absolute;
  top: 0;
  opacity: 0;
}

#heroCarousel .carousel-item-next.carousel-item-left,
#heroCarousel .carousel-item-prev.carousel-item-right {
  opacity: 1;
}

#heroCarousel .active.carousel-item-left,
#heroCarousel .active.carousel-item-right {
  opacity: 0;
}

/* Hero Banner Styles */
#heroCarousel .hero-banner {
  position: relative;
  height: 550px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

#heroCarousel .hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#heroCarousel .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #1a202c;
}

@keyframes kenBurnsZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

#heroCarousel .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

#heroCarousel .hero-content {
  text-align: center;
  color: white;
  animation: fadeInUp 1s ease-out;
  max-width: 800px;
  padding: 0 20px;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#heroCarousel .hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  letter-spacing: 2px;
  line-height: 1.2;
  animation: slideInFromLeft 0.8s ease-out;
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

#heroCarousel .hero-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  opacity: 1;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  animation: slideInFromRight 0.8s ease-out 0.3s both;
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Carousel Controls - Specific to heroCarousel only */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 55px;
  height: 55px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  opacity: 0.85;
  transition: all 0.3s ease;
  z-index: 100;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
  opacity: 1;
}

#heroCarousel .carousel-control-prev {
  left: 25px;
}

#heroCarousel .carousel-control-next {
  right: 25px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
  background: #E31E24;
  box-shadow: 0 4px 15px rgba(227, 30, 36, 0.35);
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
  width: 22px;
  height: 22px;
  background-size: 100% 100%;
}

#heroCarousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

#heroCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#heroCarousel .carousel-control-prev:hover .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

#heroCarousel .carousel-control-next:hover .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Carousel Indicators - Specific to heroCarousel */
#heroCarousel .carousel-indicators {
  bottom: 30px;
  margin-bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 12px;
}

#heroCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  opacity: 0.6;
  transition: all 0.3s ease;
  margin: 0;
}

#heroCarousel .carousel-indicators button.active {
  background: #E31E24;
  opacity: 1;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(227, 30, 36, 0.6);
}

#heroCarousel .carousel-indicators button:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  #heroCarousel .hero-banner {
    height: 420px;
  }

  #heroCarousel .hero-title {
    font-size: 3rem;
  }

  #heroCarousel .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  #heroCarousel .hero-banner {
    height: 360px;
  }

  #heroCarousel .hero-title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  #heroCarousel .hero-subtitle {
    font-size: 1rem;
  }

  #heroCarousel .carousel-control-prev,
  #heroCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  #heroCarousel .carousel-control-prev {
    left: 15px;
  }

  #heroCarousel .carousel-control-next {
    right: 15px;
  }

  #heroCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 576px) {
  #heroCarousel .hero-banner {
    height: 300px;
  }

  #heroCarousel .hero-title {
    font-size: 2rem;
  }

  #heroCarousel .hero-subtitle {
    font-size: 0.9rem;
  }

  #heroCarousel .carousel-control-prev,
  #heroCarousel .carousel-control-next {
    width: 35px;
    height: 35px;
  }

  #heroCarousel .carousel-control-prev-icon,
  #heroCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
  }

  #heroCarousel .carousel-indicators {
    bottom: 20px;
    gap: 8px;
  }

  #heroCarousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-width: 2px;
  }
}