/*====================================================
  23. Testimonials Section
======================================================*/
.cs_testimonial_section_1 {
  @media (max-width: 991px) {
    padding: 70px 0;

    .cs_controller_2 {
      position: initial;
      bottom: initial;
      right: initial;
      margin-top: 30px;
    }
  }
}

.cs_testimonial_content {
  padding: 120px 112px 120px 0;

  @media (max-width: 1399px) {
    padding-right: 0;
  }

  @media (max-width: 991px) {
    padding: 0;
  }
}

.cs_testimonial_style_1,
.cs_testimonial_style_4 {
  .cs_testimonial_header {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .cs_rating {
    flex: none;
    width: 152px;
  }

  blockquote {
    font-size: 20px;
    font-style: normal;
    line-height: 1.5em;
    color: var(--primary-color);
    margin-bottom: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cs_testimonial_author {
    display: flex;
    align-items: center;
    gap: 20px;

    .cs_author_img {
      width: 100px;
      height: 100px;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }

  @media (max-width: 991px) {
    blockquote {
      margin-bottom: 30px;
    }

    .cs_testimonial_author {
      gap: 15px;

      .cs_author_img {
        width: 70px;
        height: 70px;
      }
    }
  }
}

.cs_testimonial_img {
  width: min(50vw, 948px);
  height: 100%;

  >img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cs_ticker_container {
    width: calc(100% - 30px);
    padding-left: 38px;
    position: absolute;
    right: 0;
    bottom: 24px;
    border-radius: 50px 0 0 50px;
    background: rgba(19, 109, 244, 0.8);
  }

  @media (max-width: 991px) {
    width: 100%;
    border-radius: 20px;
  }
}

.cs_testimonial_style_2 {
  width: 100%;
  height: 100%;
  padding: 24px 24px 40px;

  .cs_rating {
    width: 124px;
    letter-spacing: 3px;
  }

  blockquote {
    font-size: 20px;
    line-height: 1.5em;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
  }

  .cs_testimonial_author {
    display: flex;
    gap: 25px;
    align-items: center;
    padding-bottom: 24px;
    position: relative;

    &::before {
      content: "";
      width: 100%;
      height: 1px;
      position: absolute;
      left: 0;
      bottom: 0;
      opacity: 0.4;
      background: rgba(134, 148, 167, 0.5);
    }

    .cs_author_img {
      width: 75px;
      height: 75px;
      flex: none;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .cs_author_name {
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
  }

  @media (max-width: 991px) {
    padding: 24px 15px;
  }

  @media (max-width: 575px) {
    .cs_testimonial_author {
      gap: 15px;

      .cs_author_img {
        width: 55px;
        height: 55px;
      }

      .cs_author_name {
        font-size: 16px;
      }
    }

    blockquote {
      font-size: 16px;
    }
  }
}

.cs_testimonial_style_3 {
  width: 100%;
  padding-bottom: 75px;

  .cs_testimonial_content {
    padding: 0;
  }

  blockquote {
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5em;
    color: var(--primary-color);
    font-family: var(--primary-font);
    margin-bottom: 48px;
  }

  .cs_testimonial_author {
    display: flex;
    align-items: center;
    gap: 20px;

    .cs_author_icon {
      width: 75px;
      height: 75px;
      flex: none;
      padding: 15px;
      background-color: var(--gray6-color);

      img {
        border-radius: 0;
      }
    }
  }

  @media (max-width: 1199px) {
    blockquote {
      font-size: 20px;
    }
  }

  @media (max-width: 991px) {
    padding-bottom: 30px;
  }

  @media (max-width: 575px) {
    blockquote {
      font-size: 18px;
    }
  }
}

.cs_testimonial_style_4 {
  blockquote {
    font-size: 40px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.25em;
    color: var(--primary-color);
    font-family: var(--primary-font);
    margin-bottom: 56px;
    display: block;
  }

  .cs_testimonial_author {
    gap: 33px;
  }

  @media (max-width: 991px) {
    blockquote {
      font-size: 30px;
      margin-bottom: 30px;
    }

    .cs_testimonial_author {
      gap: 16px;
    }
  }

  @media (max-width: 575px) {
    blockquote {
      font-size: 20px;
    }
  }
}

.cs_testimonial_style_5 {
  width: 424px;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(134, 148, 167, 0.5);

  .cs_testimonial_author {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(134, 148, 167, 0.2);

    .cs_author_img {
      width: 75px;
      height: 75px;
      flex: none;
      border-radius: 50%;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }

  blockquote {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5em;
    font-style: normal;
    color: var(--primary-color);
    font-family: var(--secondary-font);
  }

  @media (max-width: 991px) {
    padding: 15px;
  }

  @media (max-width: 575px) {
    width: 300px;

    .cs_testimonial_author {
      gap: 15px;
      padding-bottom: 20px;
      margin-bottom: 20px;

      .cs_author_img {
        width: 50px;
        height: 50px;
      }

      .cs_author_name {
        font-size: 18px;
      }
    }

    blockquote {
      font-size: 16px;
    }
  }
}

.cs_testimonial_info_container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  padding: 25px 30px;

  .cs_testimonial_info_item {
    display: flex;
    gap: 10px;
  }

  @media (max-width: 991px) {
    gap: 15px;
    padding: 20px 15px;
  }
}

/*====================================================
  Testimonials Sections
======================================================*/
.cs_testimonial_section_2 {
  width: calc(100% - 24px);
  max-width: 1872px;
  margin: 0 auto;
  padding: 120px 0;
  border-radius: 20px 20px 0 20px;

  @media (max-width: 991px) {
    padding: 60px 0;
    border-radius: 10px 10px 0 0;
  }
}

.cs_testimonial_section_3 {
  padding: 120px 0;

  .cs_controller_4 {
    right: initial;
    transform: translateX(0);
  }

  @media (max-width: 991px) {
    padding: 60px 0;
  }
}

.cs_testimonial_image_wrap {
  width: 100%;
  height: 100%;
  position: relative;
  padding-right: 100px;

  >img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
  }

  .cs_testimonial_badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    min-height: 219px;
    padding: 14px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: cs_badge_floating 3.2s ease-in-out infinite;

    >img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .cs_badge_label {
      line-height: 1.8em;
    }

    .cs_badge_brand {
      margin-top: auto;
    }
  }

  @media (max-width: 1199px) {
    padding-right: 50px;
  }

  @media (max-width: 575px) {
    padding-right: 0;

    .cs_testimonial_badge {
      min-height: auto;
      right: 10px;
      bottom: 10px;
    }
  }
}

.cs_testimonial_section_4 {
  padding: 120px 0;

  .cs_testimonial_container {
    width: min(100%, 760px);
  }

  .cs_controller_4 {
    margin-top: 56px;
  }

  @media (max-width: 991px) {
    padding: 70px 0;

    .cs_controller_4 {
      margin-top: 30px;
    }
  }
}

.cs_testimonial_section_5 {
  width: min(100%, 1920px);
  padding: 120px 0;
  margin: 0 auto;

  @media (max-width: 991px) {
    padding: 70px 0;
  }

  .cs_customer_rating_container,
  .cs_section_heading_style_1 {
    width: min(100%, 1096px);
  }
}

/*====================================================
 Animations
======================================================*/
@keyframes cs_badge_floating {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}