#testimonials {
  background-image: url("images/backgroundAll.png");
  background-size: cover;
  background-position: center;
  padding-top: 20px;
}

#testimonials-heading {
  padding-left: 40px;
  padding-top: 30px;
  color: #fff;
}

#testimonials-heading p {
  opacity: 0.75;
}

#testimonials-heading h3 {
  margin: 0;
  font-size: 2.5em;
  line-height: 0.8em;
  margin-bottom: 10px;
  position: relative;
}

#testimonials-heading h3::before {
  content: "";
  position: absolute;
  width: 458px;
  height: 1px;
  background-color: #fff;
  top: 35px;
  left: -40px;
}

#testimonials-heading a {
  color: #fff;
  position: relative;
}

#testimonials-heading a::after {
  content: "→";
  margin-left: 10px;
  position: absolute;
  top: -4px;
  font-weight: bolder;
  font-size: 1.2em;
}

#testimonila-cards {
  display: flex;
  justify-content: center;
  padding: 50px;
  margin-top: 1500px;
}

/* CAROUSEL */
#slider-testimonial {
  padding: 50px 50px 0px 50px;
}

#slider-testimonial .owl-item.active.center .slider-card {
  background: #111111cb; /* fallback for old browsers */
  color: #fff;
  border-radius: 5px;
  transform: scale(1);
}

#slider-testimonial .slider-card {
  transition: all 0.3s;
  border: 1px solid #535353;
  border-radius: 5px;
  transform: scale(0.8);
}

#slider-testimonial .slider-card img {
  border-radius: 5px 5px 0px 0px;
}

#slider-testimonial .owl-nav .owl-prev {
  position: absolute;
  top: calc(50% - 25px);
  left: 0;
  opacity: 1;
  font-size: 30px !important;
  z-index: 1;
  color: #fff;
}

#slider-testimonial .owl-nav .owl-next {
  position: absolute;
  top: calc(50% - 25px);
  right: 0;
  opacity: 1;
  font-size: 30px !important;
  z-index: 1;
  color: #fff;
}

#slider-testimonial .owl-nav .owl-prev:hover,
#slider-testimonial .owl-nav .owl-next:hover {
  color: #ff5a00;
}

#slider-testimonial .owl-dots {
  text-align: center;
}

#slider-testimonial .owl-dots .owl-dot {
  height: 10px;
  width: 10px;
  border-radius: 10px;
  background: #ccc !important;
  margin-left: 3px;
  margin-right: 3px;
  outline: none;
}

#slider-testimonial .owl-dots .owl-dot.active {
  background: #ff5a00 !important;
}

#slider-testimonial .owl-carousel .owl-stage {
  display: flex;
  align-items: center;
}

#slider-testimonial .testimonials-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #535353;
  border-radius: 5px;
  padding: 20px 20px 20px 0px;
}

#slider-testimonial .content-testimonial {
  display: flex;
  flex-direction: column;
}

#slider-testimonial .credit-testimonial {
  display: flex;
  flex-direction: row;
  padding-top: 20px;
}

#slider-testimonial .credit-testimonial img {
  max-height: 45px;
}

#slider-testimonial .quote-testimonial {
  display: flex;
  align-items: center;
  justify-content: baseline;
  position: relative;
  margin-right: 10px;
  border-right: 1px solid rgb(180, 180, 180);
}

#slider-testimonial .content-testimonial-text {
  padding-left: 20px;
}

#slider-testimonial .google-rating {
  display: flex;
  align-items: center;
}

#slider-testimonial .google-rating img {
  max-width: 50px;
}

#slider-testimonial .rating {
  margin-left: 3px;
}

#slider-testimonial .credit-inner-testimonial {
  margin-left: 20px;
}

#slider-testimonial .credit-inner-testimonial p {
  margin-bottom: 0;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  #testimonials-heading {
    padding-left: 20px;
    padding-right: 20px;
  }

  #testimonials-heading h3 {
    font-size: 1.8em;
  }

  #testimonials-heading h3::before {
    width: 465px;
    top: 25px;
    left: 12%;
    transform: translateX(-50%);
  }

  #slider-testimonial {
    padding: 20px 20px 0px 20px;
  }

  #slider-testimonial .slider-card {
    transform: scale(1);
  }

  #slider-testimonial .testimonials-card {
    padding: 15px;
  }

  #slider-testimonial .content-testimonial-text {
    padding-left: 10px;
  }

  #slider-testimonial .credit-testimonial {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #slider-testimonial .credit-inner-testimonial {
    margin-left: 0;
    margin-top: 10px;
  }

  #slider-testimonial .google-rating {
    justify-content: center;
    margin-top: 10px;
  }

  #slider-testimonial .google-rating img {
    max-width: 30px;
  }

  #slider-testimonial .rating {
    margin-left: 5px;
  }

 
}

@media (max-width: 400px) {
  #testimonials-heading h3 {
    font-size: 1.5em;
  }
  #testimonials-heading p {
    font-size: 0.8em;
  }
  #testimonials-heading h3::before {
    width: 429px;
  }
  #testimonials-heading p {
    font-size: 0.6em;
  }
  #slider-testimonial .testimonials-card {
    padding: 15px;
    margin: 0 20px;
}
}
