/* ================= Banner Carousel Styles ================= */
.banner-carousel {
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.carousel-item {
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* ✅ Center caption */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  color: #fff;
}

.carousel-caption h2 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 0.8s ease-out;
}

.carousel-caption p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ✅ Button */
.btn-banner {
  padding: 0.75rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-banner-primary {
  background: linear-gradient(45deg, #0d6efd, #0dcaf0);
  border: none;
  color: #fff;
}

.btn-banner-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  margin: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

/* Indicators */
.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  border: 2px solid #fff;
  background: transparent;
  opacity: 0.8;
}

.carousel-indicators button.active {
  background: #fff;
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= Responsive ================= */
@media (max-width: 992px) {
  .carousel-caption h2 {
    font-size: 2.5rem;
  }
  .carousel-caption p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .banner-carousel {
    height: 70vh;
  }

  .carousel-caption h2 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .btn-banner {
    padding: 0.6rem 1.8rem;
    font-size: 1rem;
  }

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

@media (max-width: 576px) {
  .banner-carousel {
    height: 60vh;
  }

  .carousel-caption h2 {
    font-size: 1.6rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .btn-banner {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }

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

  .carousel-indicators button {
    width: 6px;
    height: 6px;
  }
}
