/* Add overlay to each slide */
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35); /* dark overlay – adjust opacity as needed */
  z-index: 1;
}

/* Ensure caption is above overlay */
.carousel-caption {
  position: absolute;
  z-index: 2; /* higher than the overlay */
  top: 50% !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100%;
  padding: 0 15px;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .carousel-caption h2 {
    font-size: 1.5rem !important;
  }
  .carousel-caption p {
    font-size: 1rem !important;
  }
}

/* Hide duplicate arrows on mobile */
@media (max-width: 767.98px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
}


