/* =======================
   HERO CAROUSEL — 7 Slides
   With Slide + Zoom + Fade
========================= */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 50vh;
  background: #000;
  box-shadow: 6px 6px 6px 6px #003066b5;
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%) scale(1);
  animation: slideZoom 21s infinite ease-in-out;
}

.hero-carousel .slide:nth-child(1)  { animation-delay: 0s; }
.hero-carousel .slide:nth-child(2)  { animation-delay: 3s; }
.hero-carousel .slide:nth-child(3)  { animation-delay: 6s; }
.hero-carousel .slide:nth-child(4)  { animation-delay: 9s; }
.hero-carousel .slide:nth-child(5)  { animation-delay: 12s; }
.hero-carousel .slide:nth-child(6)  { animation-delay: 15s; }
.hero-carousel .slide:nth-child(7)  { animation-delay: 18s; }
.hero-carousel .slide:nth-child(8)  { animation-delay: 21s; }


@keyframes slideZoom {
  0%   { transform: translateX(100%) scale(1); opacity: 0; }
  5%   { transform: translateX(0) scale(1.05); opacity: 1; }
  25%  { transform: translateX(0) scale(1.1); opacity: 1; }
  30%  { transform: translateX(-100%) scale(1.05); opacity: 0; }
  100% { transform: translateX(-100%) scale(1); opacity: 0; }
}

/* Image Styling */
.hero-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  transition: transform 1.2s ease, opacity 1s ease;
}

/* Optional Caption Style */
.hero-carousel .caption {
  position: absolute;
  bottom: 10%;
  left: 5%;
  color: #fff;
  font-size: 2rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  border-left: 4px solid #00bfff;
  border-radius: 4px;
  animation: fadeInText 2s ease-in-out forwards;
  opacity: 0;
}

@keyframes fadeInText {
  0%   { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============== Responsive Heights ============== */
@media (min-width: 1200px)   { .hero-carousel { height: 75vh; } }
@media (min-width: 992px) and (max-width: 1199px) { .hero-carousel { height: 65vh; } }
@media (min-width: 768px) and (max-width: 991px)  { .hero-carousel { height: 55vh; } }
@media (max-width: 767px)    { .hero-carousel { height: 30vh; } }
@media (max-width: 480px)    {
  .hero-carousel { height: 35vh; }
  .hero-carousel .caption {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
  }
}
.hero-carousel .slide:first-child {
  opacity: 1;
  transform: translateX(0) scale(1.05) !important;
  z-index: 1;
}
