/* =========================================================
   HYDROSTOR — FULLWIDTH HERO SLIDER (CLEAN + OPTIMIZED)
   ========================================================= */

/* ========= BASE STRUCTURE ========= */
.hs-slider {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 80vh;
  height: auto !important;
  display: flex;
  flex-direction: column;
}

.hs-slider .et_pb_slides,
.hs-slider .et_pb_slide {
  min-height: 94vh;
  height: 100%;
  background-size: cover !important;
  background-position: center center !important;
}

/* ========= DARK TOP–BOTTOM OVERLAY ========= */
.hs-slider .et_pb_slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    360deg,
    rgba(10, 35, 73, 0.85) 10%,
    rgba(10, 35, 73, 0.75) 50%,
    rgba(10, 35, 73, 0.6) 100%
  );
  z-index: 1;
}

/* ========= OVERLAY LAYOUT ========= */
.hs-slider-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 3;
  padding-bottom: 10vh;
}

.hs-overlay-inner {
  width: 100%;
  max-width: 90%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 60px;
}

/* ========= TEXT STYLES ========= */
.hs-main-title {
  font-size: 4em;
  font-weight: 400;
  line-height: 1.2em;
  color: #fff;
  max-width: 500px;
  margin: 0;
}

.hs-feature {
  max-width: 480px;
}

h3.hs-feature-title {
  font-size: 22px;
  color: #29abe2 !important;
  font-weight: 700;
  margin-top: 10px;
}

.hs-feature-line {
  width: 80px;
  height: 2px;
  background: #4db2ff;
  margin-bottom: 16px;
}

.hs-feature-desc {
  color: #fff;
  font-size: 1.1em;
  line-height: 1.6em;
  max-width: 90%;
}

/* ========= HIDE DIVI DEFAULT CONTENT ========= */
.hs-slider .et_pb_slide_description,
.hs-slider .et_pb_slide_content,
.hs-slider .et_pb_slide_title {
  display: none !important;
}

/* =========================================================
   TRUE CROSSFADE (NO WHITE FLASH)
   ========================================================= */
.hs-slider .et_pb_slide {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  background: #0a2349;
  transition: opacity 0.4s ease-in-out !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.hs-slider .et_pb_slide.et-pb-active-slide {
  opacity: 1;
  z-index: 1;
}

/* Image container */
.hs-slider .et_pb_slide_image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hs-slider .et_pb_slide_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  background: #0a2349 !important;
}

.hs-slider .et_pb_active_slide .et_pb_slide_image img,
.hs-slider .et_pb_slide.et-pb-active-slide .et_pb_slide_image img {
  opacity: 1;
  transform: scale(1);
  animation: zoomInSlow 10s ease-in-out infinite alternate;
}

@keyframes zoomInSlow {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.05);
  }
}

/* =========================================================
   PROGRESS BAR
   ========================================================= */
.hs-progress-bar {
  margin-top: 4px;
  margin-bottom: 20px;
  height: 1px;
  width: 420px;
  max-width: 100% !important;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  z-index: 6;
}

.hs-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
  box-shadow:
    0 0 50px 10px rgba(126, 205, 249, 0.5),
    0 0 100px 50px rgba(126, 205, 249, 0.3),
    0 0 20px 5px rgba(70, 150, 229, 0.5);
  transition:
    width linear,
    box-shadow 0.3s ease-in-out;
}

/* Remove default Divi bullets outside overlay */
.hs-slider > .et-pb-controllers {
  display: none !important;
}

/* =========================================================
   BULLETS INSIDE OVERLAY (CUSTOM)
   ========================================================= */
.hs-overlay-right .et-pb-controllers {
  position: relative;
  display: flex;
  gap: 10px;
  margin-left: 2px;
  z-index: 6;
  margin-top: 3vh;
}

.hs-overlay-right .et-pb-controllers a {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(0.9);
}

.hs-overlay-right .et-pb-active-control {
  background-color: #4db2ff !important;
}

/* =========================================================
   MOBILE RESPONSIVE (UNIFIED BLOCK)
   ========================================================= */
@media (max-width: 981px) {
  /* Break grid into single column */
  .hs-overlay-inner {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Allow lines to wrap properly */
  .hs-main-title,
  .hs-feature-title,
  .hs-feature-desc,
  .hs-feature {
    width: 100% !important;
    max-width: 100% !important;

    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Divi forces nowrap on slide containers—override it */
  .hs-slider .et_pb_slides,
  .hs-slider .et_pb_slide {
    display: block !important;
    white-space: normal !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    overflow: visible !important;
  }

  .hs-slider-overlay {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    white-space: normal !important;
  }

  /* Text scaling */
  .hs-main-title {
    font-size: 32px;
  }
  .hs-feature-title {
    font-size: 18px;
  }
  .hs-feature-desc {
    font-size: 15px;
  }

  .et-pb-controllers {
    margin-bottom: 30px !important;
  }
}

/* Extra small screens */
@media (max-width: 768px) {
  .hs-main-title {
    font-size: 32px;
  }
}

@media (max-width: 981px) {
  .hs-overlay-inner,
  .hs-overlay-inner *,
  .hs-slider-overlay,
  .hs-slider-overlay * {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    text-wrap: normal !important;
    min-width: 0 !important; /* CRITICAL */
  }
}

.hs_fullwidth_slider_bullets {
  background-color: #0c284c !important;
}
