/* Essential for touch sliding */
.fn_cs_slider {
    overflow: hidden;
    position: relative;
}

.slider_top {
    display: flex;
    width: 100%;
    touch-action: pan-y; /* Critical for touch devices */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.slider_top li {
    flex-shrink: 0;
    width: 100%;
    user-select: none;
}

/* Quote icon */
/* Style for the quote images */
.quote {
  position: absolute; /* Absolute positioning to place the image inside the container */
  z-index: 1; /* Ensure the image stays behind the slider content */
  opacity: 0.5; /* Adjust opacity as needed */
}

/* Position for the top-left quote image */
.quote-left {
  top: 2em;
  left: 1em;
  width: 100px; /* Adjust the image size */
  height: auto;
}

/* Position for the bottom-right quote image */
.quote-right {
  bottom: 2em;
  right: 1em;
  width: 100px; /* Adjust the image size */
  height: auto;
}
/* End Quote icon */

.fn_cs_slider {
  display: flex;
  align-items: center; 
  justify-content: space-between; 
}

.slider_nav {
  display: flex;
  align-items: center; 
}

.slider_top {
  flex-grow: 1; 
  margin: 0 65px;
}

.slider_nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.slider_nav .icon {
  display: flex;
  align-items: center;
}

.slider_nav .icon img {
  width: 24px; 
  height: 24px;
}  
/*========= pop up ============ */
.popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  z-index: 99;
}
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}
.close-btn {
  cursor: pointer;
  color: red;
  font-weight: bold;
  float: right;
  font-size: 18px;
}

.popup .testimonial__item img {
  border-radius: 50px;
  height: 70px;
  width: 70px;
}
}

.btn-readmore button {
  text-align: left; 
}
.btn-readmore {
  display: inline;
}

.btn-readmore button {
  background: none;
  border: none;
  color: #ba191f;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.btn-readmore button:hover {
  color: #ff000a;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 5px;
  z-index: 1000;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
}
/*========= END pop up ============ */
.slider_nav.slider_nav-mobile {
  display: none;
}
.testimonial__item p {
  font-size: 16px;
  line-height: 23px;
}

@media screen  and (max-width: 425px) {
      .fn_cs_slider {
         min-height: 24rem !important;
        overflow: hidden;
        padding: 0 30px;
    }
  .slider_top {
    flex-grow: 1;
    margin: 0;
    margin-top: 70px;
}
  .fn_cs_slider .slider_top img {
    height: 70px;
    width: 70px;
  }
  .fn_cs_slider .slider_top .item_in:after {
    height: 18rem;
  }
  .fn_cs_slider .slider_top {
    padding: 100px 0 280px;

  }
  .fn_cs_slider {
     min-height: 34rem;
  }
  .popup {
    width: 100%;
  }
}
 .slider_nav.slider_nav-desktop {
    display: none;
  }

@media (max-width: 768px) {
  .slider_nav.slider_nav-mobile {
        display: none;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    position: absolute;
    bottom: -2em; /* Adjust as needed */
    left: 50%; /* Move to the horizontal center */
    transform: translateX(-50%); /* Adjust to truly center the element */
  }
  .quote-right {
    right: 0;
  }
  .slider_nav.slider_nav-mobile:after{
    content: '';
    position: absolute;
    width: 40px;
    height: 1px;
    background-color:#0D4852;
    left: 50%;
    margin-left: -20px;
    top: 50%;
    margin-top: -1px;
    margin-top: -0.5px;
  }
  .slider_nav.slider_nav-desktop {
    display: none;
  }
  .fn_cs_slider .slider_top .img {
    left: 10px;
    right: 10px;
    top: 10px;
    bottom: 10px;
  }
  .fn_cs_slider {
   min-height: 17rem;
    overflow: hidden;
    padding: 0 30px;
  }
}
@media screen and (min-width: 769px) and (max-width: 991px) {
  .fn_cs_slider[data-responsive=on] .slider_top li.prev {
    left: -100%;
    margin-left: -100px;
  }
  .fn_cs_slider[data-responsive=on] .slider_top li.next {
    left: 100%;
    margin-left: 100px;
  }
  .fn_cs_slider[data-responsive=on] .slider_top li {
    width: 100%;
  }
  .fn_cs_slider[data-responsive=on] .slider_top li.active {
    left: 0;
  }
  .fn_cs_slider {
    padding: 0 50px;
  }


}
@media screen and (min-width: 992px) and (max-width: 1024px) {
.banner__content span {
  font-size: 80px;
  }
  .fn_cs_slider .slider_top {
    padding: 100px 0 230px;

  }


  .fn_cs_slider {
    min-height: 23rem;
    padding: 0;
  }
  .fn_cs_slider .slider_top img {
    height: 58px;
    width: 58px;
  }
  .testimonial__item span {
    font-size: 12px;
        line-height: 15px;
  }

  .fn_cs_slider .slider_top .item_in:after {
    height: 18rem;
  }

}

@media screen and (min-width: 1025px) and (max-width: 1199px) {
  .fn_cs_slider[data-responsive=on] .slider_top li.prev {
    left: -100%;
    margin-left: -100px;
  }
  .fn_cs_slider[data-responsive=on] .slider_top li.next {
    left: 100%;
    margin-left: 100px;
  }
  .fn_cs_slider[data-responsive=on] .slider_top li {
    width: 100%;
  }
  .fn_cs_slider[data-responsive=on] .slider_top li.active {
    left: 0;
  }
  .fn_cs_slider {
    padding: 0 50px;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
  .fn_cs_slider {
    height: 34rem;
    overflow: hidden;
    padding: 0;
  }
  .fn_cs_slider .slider_top {
    padding: 100px 0 350px;
    position: relative;
  }
  .fn_cs_slider .slider_top img {
    border-radius: 50px;
    height: 70px;
    width: 70px;
  }
  .fn_cs_slider .slider_top .item_in:after {
    height: 19rem;
  }
}

@media (max-width: 425px) {
    .banner-video {
        margin-top: -280px;
    }
}
@media (min-width:450px) and (max-width: 768px) {
    .banner-video {
        margin-top: -240px;
    }
  .slider_top {
    flex-grow: 1;
    margin: 0;
}
}