/* Homepage-only accessibility contrast tweaks (same orange hue, darker for WCAG AA text) */
.theme_color {
  color: #a83800 !important;
}

.case_studies_item h4 {
  color: #b34700 !important;
}

.about_taglinebox h3.about-tagline-heading {
  font-size: 25px;
  text-align: left;
  font-weight: 600;
  line-height: 36px;
  margin: 0;
}

/* Business Apps / portfolio card titles were h5 (white); keep that look on h3 */
.ba-slide-con-1 h3.ba-slide-title,
.ba-slide-con-1-con h3.ba-slide-title {
  font-size: inherit;
  font-weight: 600;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  color: #fff !important;
  line-height: 1.35;
}
.ba-slide-con-1 p,
.ba-slide-con-1-con p {
  color: #fff;
}

/* Banner captions were h5; mirror .slide-con-custom h5 visuals.
   Titles must stay white on .white-text slides (dark banner art). */
.slide-con-custom .banner-slide-title {
  font-size: 30px;
  font-family: "Segoe UI Emoji", "Segoe UI", sans-serif;
  color: #fff;
  line-height: 1.45;
  font-weight: 400;
  margin: 0 0 0.5rem;
  display: block;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.35);
}
.slide-con-custom .banner-slide-title span {
  display: block;
}

/* Banner caption layout + readability over hero images */
.home-slider .carousel-caption {
  left: 5%;
  right: auto;
  bottom: auto;
  top: 0;
  width: min(42%, 440px);
  max-width: 440px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 1.25rem 0;
  z-index: 3;
  pointer-events: none;
}
.home-slider .carousel-caption .slide-con-custom {
  width: 100%;
  pointer-events: auto;
}
.home-slider .carousel-item.white-text .carousel-caption,
.home-slider .carousel-item.white-text .slide-con-custom,
.home-slider .carousel-item.white-text .banner-slide-title,
.home-slider .carousel-item.white-text .slide-con-custom > p,
.home-slider.carousel-dark .carousel-item.white-text .carousel-caption,
.carousel.carousel-dark .carousel-item.white-text .carousel-caption {
  color: #fff !important;
}
.home-slider .carousel-item.white-text .slide-con-custom > p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.home-slider .slide-btn_2 a {
  display: inline-block;
  line-height: 1.4;
  padding: 8px 16px;
  text-shadow: none;
}
.home-slider .carousel-control-prev,
.home-slider .carousel-control-next {
  z-index: 4;
  width: 6%;
  opacity: 0.85;
}
.home-slider .carousel-indicators {
  z-index: 4;
}

/* Keep Bootstrap .show above any leftover inline display:none on mega menus */
#navbarNavDropdown .dropdown-menu.show,
#navbarNavDropdown .hs-sub-menu.dropdown-menu.show,
#navbarNavDropdown .hs-mega-menu.dropdown-menu.show {
  display: block !important;
}

/* Mobile nav drawer above floating chat / consent overlays */
@media (max-width: 991.98px) {
  #header.navbar,
  #navbarNavDropdown.navbar-collapse.show,
  #navbarNavDropdown.collapsing {
    z-index: 1055;
  }
  #navbarNavDropdown.navbar-collapse.show {
    background: #fff;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .home-slider .carousel-caption {
    left: 4%;
    width: min(48%, 380px);
    max-width: 380px;
  }
  .home-slider .slide-con-custom .banner-slide-title {
    font-size: 24px !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 767px) {
  .home-slider .carousel-caption {
    left: 4%;
    width: 62%;
    max-width: none;
    padding: 0.6rem 0;
  }
  .home-slider .slide-con-custom .banner-slide-title,
  .home-slider .slide-con-custom p.banner-slide-title {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 0.35rem !important;
  }
  .home-slider .carousel-item.white-text .slide-con-custom > p:not(.banner-slide-title) {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 0.55rem !important;
  }
  .home-slider .slide-btn_2 a {
    font-size: 12px !important;
    padding: 6px 12px !important;
    line-height: 1.4 !important;
  }
  .home-slider .carousel-control-prev,
  .home-slider .carousel-control-next {
    width: 10%;
  }
}

@media (max-width: 480px) {
  .home-slider .carousel-caption {
    left: 3%;
    width: 72%;
  }
  .home-slider .slide-con-custom .banner-slide-title,
  .home-slider .slide-con-custom p.banner-slide-title {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }
  .home-slider .carousel-item.white-text .slide-con-custom > p:not(.banner-slide-title) {
    font-size: 12px !important;
  }
}

@media (max-width: 420px) {
  .home-slider .slide-con-custom .banner-slide-title,
  .home-slider .slide-con-custom p.banner-slide-title {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }
  .home-slider .carousel-item.white-text .slide-con-custom > p:not(.banner-slide-title) {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}

.case_studies_item h3.case-study-heading {
  color: #b34700 !important;
}

.visually-hidden-a11y {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Keep LCP on the hero: skip rendering below-fold blocks until needed */
.it-services,
.case_studies_new,
.business-apps,
.companies-tl,
footer.footer-div,
.footer_ewblock {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* Compact banner indicators — light dots readable on dark hero art */
.home-slider .carousel-indicators {
  margin-bottom: 0.85rem;
  bottom: 0;
  z-index: 5;
}
.home-slider .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  margin-right: 5px;
  margin-left: 5px;
  padding: 10px;
  box-sizing: content-box;
  background-clip: content-box;
  border: 0;
  border-top: 0;
  border-bottom: 0;
  border-radius: 100px;
  background-color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}
.home-slider .carousel-indicators .active {
  background-color: #ffffff;
}
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
