/*========================================================
  Home hero slider (Owl Carousel)
=========================================================*/
.hero-slider-wrap {
  background: #fff;
  border-bottom: 1px solid #e8edf2;
}

.hero-slider.owl-carousel {
  background: #fff;
}

.hero-slider .owl-stage-outer {
  overflow: hidden;
}

.hero-slide {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  min-height: 320px;
  padding: 24px 56px 40px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.hero-slide__media {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 56%;
  -ms-flex: 0 0 56%;
  flex: 0 0 56%;
  max-width: 56%;
  text-align: center;
}

.hero-slide__media img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  max-height: 340px;
  margin: 0 auto;
  -o-object-fit: contain;
  object-fit: contain;
}

.hero-slide__copy {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 8px 0 8px 28px;
  color: #171715;
}

.hero-slide__title {
  display: block;
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  color: #0767a3;
  text-decoration: none;
}

.hero-slide__title:hover {
  color: #004c8a;
  text-decoration: underline;
}

.hero-slide__text {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 26px;
  color: #333;
}

.hero-slide__actions {
  margin-top: 4px;
}

.hero-slide__btn {
  display: inline-block;
  float: none !important;
  margin: 0 10px 0 0 !important;
}

.hero-slide__btn--demo {
  background: #808080 !important;
}

.hero-slider .owl-nav {
  margin: 0;
}

.hero-slider .owl-prev,
.hero-slider .owl-next {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5ab7de;
  font-size: 36px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 3;
}

.hero-slider .owl-prev:hover,
.hero-slider .owl-next:hover {
  color: #888;
  background: transparent;
}

.hero-slider .owl-prev {
  left: 12px;
}

.hero-slider .owl-next {
  right: 12px;
}

.hero-slider .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  margin: 0;
  text-align: center;
}

.hero-slider .owl-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: #888;
}

.hero-slider .owl-dot.active,
.hero-slider .owl-dot:hover {
  background: #007dca;
}

@media (max-width: 1134px) {
  .hero-slide {
    min-height: 280px;
    padding: 20px 48px 36px;
  }
  .hero-slide__title {
    font-size: 22px;
    line-height: 28px;
  }
  .hero-slide__text {
    font-size: 16px;
    line-height: 24px;
  }
  .hero-slide__media img {
    max-height: 280px;
  }
}

/* Mobile: image on top, copy below — two clear bands */
@media (max-width: 767px) {
  .hero-slide {
    display: block;
    min-height: 0;
    padding: 12px 16px 36px;
  }
  .hero-slide__media {
    max-width: none;
    width: 100%;
    margin: 0 0 14px;
  }
  .hero-slide__media img {
    max-height: 180px;
  }
  .hero-slide__copy {
    padding: 14px 12px 8px;
    background: #f5f7fa;
    border-radius: 6px;
    text-align: center;
  }
  .hero-slide__title {
    font-size: 17px;
    line-height: 24px;
  }
  .hero-slide__text {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 12px;
  }
  .hero-slide__actions {
    text-align: center;
  }
  .hero-slide__btn {
    margin: 4px 6px !important;
  }
  .hero-slider .owl-prev {
    left: 4px;
    top: 90px;
  }
  .hero-slider .owl-next {
    right: 4px;
    top: 90px;
  }
}
