/* Header hero carousel */
#myCarousel {
  overflow: hidden;
  background-color: #093243;
}

#myCarousel .carousel-inner {
  background-color: #093243;
}

#myCarousel .carousel-item {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: min(80vh, 800px);
  min-height: clamp(420px, 48vw, 720px);
  overflow: hidden;
}

#myCarousel .carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep people in frame — photos crop from bottom on wide screens */
  object-position: center 38%;
  filter: saturate(1.04) contrast(1.03);
}

#myCarousel .carousel-item:nth-child(1) img { object-position: center 32%; }
#myCarousel .carousel-item:nth-child(2) img { object-position: center 36%; }
#myCarousel .carousel-item:nth-child(3) img { object-position: center 40%; }
#myCarousel .carousel-item:nth-child(4) img { object-position: center 35%; }
#myCarousel .carousel-item:nth-child(5) img { object-position: center 38%; }

#myCarousel .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(9, 50, 67, 0.78) 0%,
      rgba(9, 50, 67, 0.28) 38%,
      rgba(9, 50, 67, 0.04) 62%
    ),
    linear-gradient(
      to right,
      rgba(9, 50, 67, 0.82) 0%,
      rgba(9, 50, 67, 0.45) 30%,
      rgba(9, 50, 67, 0.06) 62%
    );
  pointer-events: none;
  z-index: 1;
}

#myCarousel .carousel-caption {
  z-index: 2;
  top: auto !important;
  bottom: clamp(6.25rem, 13vh, 8.25rem) !important;
  transform: none;
  margin-bottom: 0 !important;
  left: clamp(1.25rem, 7vw, 6rem) !important;
  right: auto !important;
  width: auto;
  max-width: min(560px, 52%);
  text-align: left !important;
  display: flex;
  align-items: flex-start;
  padding: 0 !important;
}

#myCarousel .carousel-caption > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  text-align: left;
  width: 100%;
}

#myCarousel .slider-head {
  color: #fff !important;
  font-size: clamp(2.1rem, 3.7vw, 3.4rem) !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.38),
    0 18px 42px rgba(0, 0, 0, 0.26);
  display: block;
  padding: 0;
  margin: 0;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.34rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.slider-copy {
  max-width: 37rem;
  margin: 0.9rem 0 0 0;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(1rem, 1.55vw, 1.2rem) !important;
  font-weight: 500;
  line-height: 1.45;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.36),
    0 12px 30px rgba(0, 0, 0, 0.22);
}

#myCarousel .seeDemo {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: 1.9rem 0 0 0 !important;
  align-self: flex-start;
  min-height: 46px;
  padding: 0.72rem 1.45rem;
  background-color: #ffffff !important;
  color: #093243 !important;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

#myCarousel .seeDemo:hover,
#myCarousel .seeDemo:focus {
  background-color: #f5fbfd !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28) !important;
  transform: translateY(-1px);
}

#myCarousel .carousel-indicators {
  right: auto;
  bottom: clamp(4.75rem, 8.5vh, 5.75rem);
  left: clamp(1.25rem, 7vw, 6rem);
  justify-content: flex-start;
  margin: 0;
  gap: 0.55rem;
}

#myCarousel .carousel-indicators [data-bs-target],
#myCarousel .carousel-indicators button {
  width: 2rem;
  height: 0.26rem;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.42);
  opacity: 1;
  transition: width 220ms ease, background-color 220ms ease;
}

#myCarousel .carousel-indicators .active {
  width: 3.1rem;
  background-color: #fff;
}

.seeDemo1 {
  background-color: #b7d0de !important;
  color: #0c0c0c;
  width: max-content;
  z-index: 2;
  display: flex;
  justify-content: center;
  list-style: none;
}
.seeDemo {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 2%;
  background-color: #b7d0de !important;
  color: #0c0c0c;
  width: max-content;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-right: 9%;
  margin-bottom: .75rem;
  list-style: none;
}
.carousel-indicators li {
  background-color: transparent;
  border: 2px solid #fff; /* Border color of the inactive dot */
  border-radius: 50%; /* Makes the dots circular */
  width: 10px; /* Adjust dot size as needed */
  height: 10px; /* Adjust dot size as needed */
  margin-right: 5px; /* Adjust spacing between dots */
  cursor: pointer;
}
.demo-link{
  display: flex;
  justify-content: right;
  left:0;

  bottom:20px;
  margin-right: 5px; /* Adjust spacing between dots */
}
.carousel-indicators .active {
  background-color: #fff; /* Background color of the active dot */
  border-color: #fff; /* Border color of the active dot */
}
.align-vertical {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.carousel-caption{
  position: absolute!important;
  right: 15%!important;
  bottom: 1.25rem;
  left: 5%!important;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 5%;
  color: #fff;
  text-align: justify;
}

@media (max-width: 768px) {
  .fw-normal {
    font-size: 1.43rem !important;
  }

  .slider-para {
    font-size: 10px !important;
  }

  #myCarousel .carousel-inner,
  #myCarousel .carousel-item {
    aspect-ratio: auto;
    height: clamp(480px, 82vh, 620px);
    min-height: 0;
    max-height: none;
  }

  #myCarousel .carousel-item img {
    object-position: center 30%;
  }

  #myCarousel .carousel-caption {
    bottom: 6.75rem !important;
    left: 1.25rem !important;
    right: 1.25rem !important;
    max-width: none;
    justify-content: center;
    text-align: center !important;
  }

  #myCarousel .carousel-caption > div {
    align-items: center !important;
    text-align: center;
  }

  #myCarousel .slider-head {
    max-width: 15ch;
    font-size: clamp(1.72rem, 7.7vw, 2.3rem) !important;
    line-height: 1.08 !important;
  }

  .hero-chip {
    margin-bottom: 0.7rem;
    padding: 0.3rem 0.68rem;
    font-size: 0.68rem;
  }

  .slider-copy {
    max-width: 24rem;
    margin-top: 0.72rem;
    font-size: 0.95rem;
    line-height: 1.42;
    text-align: center;
  }

  #myCarousel .seeDemo {
    align-self: center;
    margin-top: 1.45rem !important;
    min-height: 42px;
    padding: 0.62rem 1.15rem;
  }

  #myCarousel .carousel-indicators {
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
  }
}
