/**
 * Hero caption centering styles
 * Created: 2025-05-14 for task CU87
 */

/* Target the carousel caption to center it in the hero image */
.carousel-caption {
  /* Position in the center of the image */
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  bottom: auto !important;
  right: auto !important;
  
  /* Styling - no background box with increased padding */
  background-color: transparent !important;
  padding: 20px !important;
  width: 80% !important;
  max-width: 800px !important;
  
  /* Text styling - enhanced for better visibility */
  text-align: center !important;
  font-weight: 700 !important;
  letter-spacing: 0.7px !important;
  color: white !important;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5) !important; */
}

/* Make sure the caption is visible on all screen sizes */
.carousel-caption.d-none.d-md-block {
  display: block !important;
}

/* Ensure the text inside the caption is properly styled */
.carousel-caption p {
  margin: 0 0 15px 0 !important;
  padding: 0 !important;
  font-size: 1.5rem !important;
  line-height: 1.8 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.7) !important;
  font-weight: 600 !important;
}

/* Add extra margin to the last paragraph */
.carousel-caption p:last-child {
  margin-bottom: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .carousel-caption {
    width: 85% !important;
  }
  
  .carousel-caption p {
    font-size: 1.4rem !important;
  }
}

@media (max-width: 768px) {
  .carousel-caption {
    width: 90% !important;
  }
  
  .carousel-caption p {
    font-size: 1.3rem !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.7) !important;
  }
}

@media (max-width: 576px) {
  .carousel-caption {
    width: 95% !important;
  }
  
  .carousel-caption p {
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.8) !important;
  }
}
