/** testimonial-section **/

.testimonial-section{
  position: relative;
  background: #F6F6F6;
}

.testimonial-section .bg-layer{
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.05;
}

.testimonial-block-one{
  margin-top: 0px;
}

.testimonial-block-one .inner-box{
  position: relative;
  display: block;
  background: #fff;
  padding: 40px 30px 40px 30px;
}

.testimonial-block-one .inner-box h4{
  display: block;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 0px;
}

.testimonial-block-one .inner-box .designation{
  position: relative;
  display: block;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 10px;
}

.testimonial-block-one .inner-box .rating li{
  position: relative;
  display: inline-block;
  font-size: 16px;
  color: #FFB13D;
}


/** testimonial-style-two **/

.testimonial-style-two{
  position: relative;
  background: #F6F6F6;
}

.testimonial-style-two .bg-layer{
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.05;
}

.testimonial-block-two .inner-box{
  position: relative;
  display: block;
  background: #fff;
  box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.05);
  padding: 40px 40px 40px 40px;
}

.testimonial-block-two .inner-box .author-box{
  position: relative;
  padding: 0px;
  margin-bottom: 30px;
}

.testimonial-block-two .inner-box .author-box h4{
  position: relative;
  display: block;
  font-size: 20px;
  line-height: 28px;
}

.testimonial-block-two .inner-box .author-box .designation{
  position: relative;
  display: block;
  font-size: 16px;
  line-height: 22px;
}

.testimonial-block-two .inner-box .rating li{
  position: relative;
  display: inline-block;
  font-size: 16px;
  color: #FFB13D;
}

.testimonial-style-two .owl-nav{
  position: absolute;
  left: -440px;
  bottom: -39px;
}

.testimonial-style-two .owl-nav .owl-prev{
  margin-right: 20px;
}


/** =========================================
    Cool Light Sweep & Glow Effect on Hover
============================================= **/

.testimonial-block-one .inner-box,
.testimonial-block-two .inner-box {
    transition: all 0.4s ease-in-out;
    overflow: hidden; /* Prevents the shine effect from overflowing */
}

/* Glow Effect on Hover */
.testimonial-block-one .inner-box:hover,
.testimonial-block-two .inner-box:hover {
    box-shadow: 0px 15px 35px rgba(255, 177, 61, 0.25) !important;
    transform: translateY(-5px); /* Elevates the box slightly */
}

/* Light Sweep (Shine) Effect Setup */
.testimonial-block-one .inner-box::before,
.testimonial-block-two .inner-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 1;
    pointer-events: none;
}

/* Trigger the light sweep animation on hover */
.testimonial-block-one .inner-box:hover::before,
.testimonial-block-two .inner-box:hover::before {
    left: 150%;
    transition: all 0.8s ease-in-out; /* Speed of the light sweeping across */
}


/** RTL **/

.rtl .testimonial-style-two .owl-nav{
  left: inherit;
  right: -440px;
}

.rtl .testimonial-style-two .sec-title{
  margin-right: 0px;
  margin-left: 70px;
}

.rtl .testimonial-block-two .inner-box{
  text-align: right;
}

.rtl .testimonial-block-two .inner-box .author-box{
  padding-left: 0px;
  padding-right: 0px;
}


/** home-testimonials: robust nav fix **/
Testimonials
.testimonial-style-two.home-testimonials{
  background: #F6F6F6;
}

.testimonial-style-two.home-testimonials .owl-nav{
  position: static;
  left: auto;
  bottom: auto;
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.testimonial-style-two.home-testimonials .owl-nav .owl-prev{
  margin-right: 20px;
}


/** responsive-css **/

@media only screen and (max-width: 1200px){
  .testimonial-style-two .owl-nav{
    display: none;
  }
  .testimonial-style-two.home-testimonials .owl-nav{
    display: flex;
  }
}

@media only screen and (max-width: 991px){
  .testimonial-style-two .sec-title{
    margin: 0px 0px 30px 0px !important;
  }
  .testimonial-style-two.home-testimonials .owl-nav{
    margin-top: 30px;
  }
}

@media only screen and (max-width: 767px){
  .testimonial-section{
    padding: 70px 0px;
  }

  .testimonial-style-two{
    padding: 70px 0px;
  }
}

@media only screen and (max-width: 499px){
  .testimonial-block-two .inner-box{
    padding-left: 30px;
    padding-right: 30px;
  }
  .testimonial-style-two.home-testimonials .owl-nav button{
    width: 55px;
    height: 55px;
    line-height: 63px;
    font-size: 18px;
  }
}