/** banner-section **/
.banner-section {
  position: relative;
  overflow: hidden;
}

/* Core slide structure */
.banner-carousel .slide-item {
  position: relative;
  padding: 120px 0px 150px 0px;
  overflow: hidden;
  height: 560px !important;
  min-height: 560px !important;
  max-height: 560px !important;
  box-sizing: border-box;
}

/* Gradient overlay */
.banner-carousel .slide-item:before {
  position: absolute;
  content: '';
  /* background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0.63%, rgba(0, 0, 0, 0.7) 37.58%, rgba(0, 0, 0, 0.16) 75.48%, rgba(255, 255, 255, 0) 99.13%); */
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
}

/* Background layer for each slide */
.banner-carousel .slide-item .bg-layer {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  overflow: hidden;
  transform: scale(1);
  transition: all 8000ms linear;
}

/* Zoom effect on active slide */
.banner-carousel .active .slide-item .bg-layer {
  transform: scale(1.15);
}

/* Content container */
.banner-carousel .content-box {
  position: relative;
  display: block;
  max-width: 710px;
  z-index: 5;
}

/* Headline animation */
.banner-carousel .content-box h2 {
  font-size: 72px;
  line-height: 80px;
  color: #fff;
  margin-bottom: 19px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1000ms ease;
}

.banner-carousel .active .content-box h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 700ms;
}

/* Paragraph animation */
.banner-carousel .content-box p {
  font-size: 18px;
  line-height: 30px;
  color: #fff;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1000ms ease;
}

.banner-carousel .active .content-box p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1000ms;
}

/* Button animation */
.banner-carousel .content-box .btn-box {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1000ms ease;
}

.banner-carousel .active .content-box .btn-box {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1300ms;
}

/* Owl Dots (slide indicators) */
.banner-carousel .owl-dots {
  position: absolute;
  left: 30px;
  top: 50%;
  height: 160px;
  width: 15px;
  margin-top: -80px;
  counter-reset: slides-num;
}

.banner-carousel .owl-dots::after {
  position: absolute;
  right: -4px;
  top: -2px;
  content: "0" counter(slides-num);
  display: inline-block;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.50);
  font-weight: 500;
  transform: rotate(-90deg);
}

.banner-carousel .owl-dots .owl-dot span {
  position: absolute;
  display: inline-block;
  left: 18px;
  top: 8px;
  width: 33px;
  height: 2px;
  background: rgba(255, 255, 255, 0.20) !important;
  margin: 0 !important;
}

.banner-carousel .owl-dots .owl-dot.active span {
  background: var(--theme-color) !important;
}

.banner-carousel .owl-dots button {
  position: absolute;
  bottom: 12px;
  left: -3px;
  counter-increment: slides-num;
  font-size: 18px;
  line-height: 20px;
  font-weight: 500;
  transform: rotate(-90deg);
}

.banner-carousel .owl-dots button.active:before {
  position: absolute;
  content: counter(slides-num);
}

.banner-carousel .owl-dots button.active:after {
  position: absolute;
  content: '0';
  top: 0;
  right: 0;
}

/* Theme Button */
.theme-btn.btn-one {
  display: inline-block;
  padding: 14px 35px;
  border: 2px solid var(--theme-color);
  background: var(--theme-color);
  color: black;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.4s ease;
}

.theme-btn.btn-one:hover {
  background: transparent;
  color: var(--theme-color);
  border-color: var(--theme-color);
}

/* Responsive adjustments */
@media only screen and (max-width: 1200px) {
  .banner-carousel .content-box {
    padding-left: 50px;
  }
}

@media only screen and (max-width: 991px) {
  .banner-carousel .content-box h2 {
    font-size: 56px;
    line-height: 64px;
  }

  .banner-carousel .content-box p br {
    display: none;
  }

  .banner-carousel .slide-item {
    padding: 100px 0px 120px 0px;
    height: 480px !important;
    min-height: 480px !important;
    max-height: 480px !important;
    box-sizing: border-box;
  }
}

@media only screen and (max-width: 767px) {
  .banner-carousel .content-box h2 {
    font-size: 44px;
    line-height: 54px;
  }

  .banner-carousel .content-box p {
    font-size: 16px;
    line-height: 26px;
  }

  .banner-carousel .slide-item {
    padding: 70px 0px 95px 0px;
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
    box-sizing: border-box;
  }

  .banner-carousel .content-box {
    padding: 0 20px;
  }

  .banner-carousel .owl-dots {
    display: none;
  }
}

@media only screen and (max-width: 499px) {
  .banner-carousel .content-box h2 {
    font-size: 36px;
    line-height: 46px;
  }

  .banner-carousel .content-box p {
    font-size: 15px;
  }

  .theme-btn.btn-one {
    padding: 12px 28px;
    font-size: 14px;
  }
}

/* Fixed height for the banner section */
.banner-section {
  height: 560px !important;
  min-height: 560px !important;
  max-height: 560px !important;
}

@media only screen and (max-width: 991px) {
  .banner-section {
    height: 480px !important;
    min-height: 480px !important;
    max-height: 480px !important;
  }
}

@media only screen and (max-width: 767px) {
  .banner-section {
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
  }
}
