/**
 * PEC Hero Slider - Full width, full viewport, fade effect
 * No text/content. Image + video slides. Bootstrap 5 carousel.
 */

.pec-hero-slider-wrap {
  margin-top: 0 !important;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

#pecHeroSlider.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 400px;
}

#pecHeroSlider .carousel-inner {
  width: 100%;
  height: 100%;
}

#pecHeroSlider .carousel-item {
  width: 100%;
  height: 100vh;
  min-height: 400px;
  position: relative;
  transition: opacity 0.8s ease-in-out;
  overflow: hidden;
}

/* Image slide: full cover, no empty space */
#pecHeroSlider .carousel-item .pec-slide-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#pecHeroSlider .carousel-item .pec-slide-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Video slide: full cover */
#pecHeroSlider .carousel-item .pec-slide-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#pecHeroSlider .carousel-item .pec-slide-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Hero slide caption - white text, shadow, bold, container width */
.pec-hero-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  z-index: 5;
  text-align: center;
  pointer-events: none;
}

.pec-hero-slide-caption .container {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.pec-hero-slide-caption p {
  margin: 0;
  font-size: clamp(3rem, 9vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.pec-hero-caption-highlight {
  color: var(--pec-red, #be0000);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
  .pec-hero-slide-caption {
    bottom: 14%;
  }

  .pec-hero-slide-caption .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Half size for mobile – both slides */
  .pec-hero-slide-caption p {
    font-size: clamp(1.125rem, 5.5vw, 1.75rem);
  }
}

/* Controls: prev/next arrows */
#pecHeroSlider .carousel-control-prev,
#pecHeroSlider .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  opacity: 0.9;
  z-index: 10;
  transition: background 0.2s, opacity 0.2s;
}

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

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

#pecHeroSlider .carousel-control-prev:hover,
#pecHeroSlider .carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.55);
  opacity: 1;
}

#pecHeroSlider .carousel-control-prev-icon,
#pecHeroSlider .carousel-control-next-icon {
  width: 24px;
  height: 24px;
}

/* Indicators (dots) */
#pecHeroSlider .carousel-indicators {
  margin-bottom: 24px;
  z-index: 10;
}

#pecHeroSlider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  opacity: 1;
  transition: background-color 0.2s, transform 0.2s;
}

#pecHeroSlider .carousel-indicators .active {
  background-color: #fff;
  transform: scale(1.2);
}

/* Responsive: smaller controls on mobile */
@media (max-width: 767px) {
  #pecHeroSlider .carousel-item,
  #pecHeroSlider.carousel {
    min-height: 320px;
  }

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

  #pecHeroSlider .carousel-control-prev {
    left: 12px;
  }

  #pecHeroSlider .carousel-control-next {
    right: 12px;
  }

  #pecHeroSlider .carousel-indicators {
    margin-bottom: 16px;
  }
}
