/* Hero Carousel Styles */
.hero-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.1);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  position: relative;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Carousel Controls */
.hero-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
}

.hero-carousel-container:hover .hero-carousel-control {
  opacity: 1;
}

.hero-carousel-control:hover {
  background: #2280bb;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(34, 128, 187, 0.4);
}

.hero-carousel-control.prev {
  left: 20px;
}

.hero-carousel-control.next {
  right: 20px;
}

.hero-carousel-control i {
  font-size: 24px;
  color: #2280bb;
  transition: color 0.3s ease;
}

.hero-carousel-control:hover i {
  color: white;
}

/* Carousel Indicators */
.hero-carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.hero-carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-carousel-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.hero-carousel-indicators .indicator.active {
  background: #2280bb;
  border-color: white;
  width: 30px;
  border-radius: 10px;
}

/* Image Overlay */
.hero-carousel-container .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
}

.hero-carousel-container .badge-accredited {
  position: absolute;
  bottom: 80px;
  left: 30px;
  background: linear-gradient(135deg, rgba(34, 128, 187, 0.95), rgba(74, 159, 216, 0.95));
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 25px rgba(34, 128, 187, 0.4);
  backdrop-filter: blur(10px);
  animation: badgePulse 3s ease-in-out infinite;
  pointer-events: all;
}

.hero-carousel-container .badge-accredited i {
  font-size: 24px;
  animation: shieldRotate 4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(34, 128, 187, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(34, 128, 187, 0.6);
  }
}

@keyframes shieldRotate {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-carousel-control {
    width: 40px;
    height: 40px;
  }
  
  .hero-carousel-control i {
    font-size: 20px;
  }
  
  .hero-carousel-control.prev {
    left: 10px;
  }
  
  .hero-carousel-control.next {
    right: 10px;
  }
  
  .hero-carousel-container .badge-accredited {
    bottom: 70px;
    left: 20px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .hero-carousel-indicators {
    bottom: 15px;
    padding: 8px 15px;
  }
}

@media (max-width: 768px) {
  .hero-carousel-container {
    border-radius: 15px;
  }
  
  .hero-slide img {
    border-radius: 15px;
  }
  
  .hero-carousel-container .badge-accredited {
    bottom: 60px;
    left: 15px;
    padding: 10px 18px;
    font-size: 0.85rem;
    gap: 8px;
  }
  
  .hero-carousel-container .badge-accredited i {
    font-size: 20px;
  }
  
  .hero-carousel-indicators .indicator {
    width: 10px;
    height: 10px;
  }
  
  .hero-carousel-indicators .indicator.active {
    width: 25px;
  }
}

@media (max-width: 480px) {
  .hero-carousel-control {
    width: 35px;
    height: 35px;
  }
  
  .hero-carousel-control i {
    font-size: 18px;
  }
  
  .hero-carousel-container .badge-accredited {
    bottom: 50px;
    left: 10px;
    padding: 8px 15px;
    font-size: 0.75rem;
  }
  
  .hero-carousel-indicators {
    bottom: 10px;
    padding: 6px 12px;
    gap: 8px;
  }
}

/* Animation for slide entrance */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%) scale(1.1);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOutToLeft {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(-100%) scale(0.9);
    opacity: 0;
  }
}
