.testimonial-sec {

  & .intro-sec {
    * [class*="heading-"] {
      margin-bottom: 5px;
    }

    & p {
      font-weight: 600;
    }
  }

  & .testimonial-card-wrap {

    & .testimonial-card {
      background: #F3F3F3;
      border-radius: 20px;
      overflow: hidden;
      /* display: flex;
      flex-wrap: wrap;
      flex-direction: column; */

      & .testimonial-content {
        position: relative;
        padding: 90px 28px 30px;

        & .inner-tesimonial-content-wrap {
          overflow-y: auto;
          height: 165px;
          padding-right: 10px;
        }

        /* TEXT ONLY */
        &::before {
          content: '';
          position: absolute;
          top: 47px;
          left: 40px;
          width: 38px;
          height: 24px;
          background: url('../images/icon/quote.svg') no-repeat;
          background-size: contain;
        }

        & p {
          line-height: 1.34;
        }
      }

      /* VIDEO CARD */
      &--video {

        & .testimonial-content {

          & .video-testimonial {
            border-radius: 20px 20px 0 0;

            img {
              width: 100%;
            }
          }
        }
      }

      & .testimonial-author {
        display: flex;
        justify-content: space-between;
        padding: 30px 40px 47px 40px;
        border-top: 1px solid rgba(52, 52, 52, 0.1);

        & .author-info {
          width: calc(100% - 46px);

          & .author-name {
            font-family: var(--sitefonts);
            font-size: clamp(14px, 14px + (18 - 14) * ((100vw - 375px) / (1920 - 375)), 18px);
            font-weight: 600;
            line-height: 1;
            letter-spacing: 0;
            color: var(--black);
            margin-bottom: 6px;
          }

          & .rating-box {
            display: flex;
            flex-wrap: wrap;
            gap: 2px;
            width: fit-content;
          }
        }
      }
    }

    & .testimonial-card.testimonial-card--video .testimonial-content {
      padding: 0;
    }

    & .testimonial-card.testimonial-card--video .testimonial-author {
      padding: 30px 40px 35px 40px;
    }

    & .testimonial-card.testimonial-card--video .testimonial-content:before {
      display: none;
    }

    & .testimonial-card.testimonial-card--video .testimonial-content .video-testimonial {
      position: relative;
      border-radius: 20px 20px 0 0;

      img {
        width: 100%;
      }

      ::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.2);
        pointer-events: none;
      }
    }
  }
}


/* Slick specific */
.testimonial-js {

  &.slick-initialized {
    margin-inline: -15px;
    width: calc(100% + 30px);

    & .slick-slide {
      padding-inline: 15px;
    }
  }
}

/* ----------Custom Scroll--------- */
.inner-tesimonial-content-wrap::-webkit-scrollbar-track {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #F5F5F5;
}

.inner-tesimonial-content-wrap::-webkit-scrollbar {
  width: 2px;
  background-color: #F5F5F5;
  border-radius: 10px
}

.inner-tesimonial-content-wrap::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background-color: var(--themegreen);
}

/* TESTIMONIAL PAGE SECTION */
.testimonial-pagesec {

  & .testimonial-card-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
  }

  & .testimonial-card {
    width: calc(25% - 19px);

    &--video {

      & .testimonial-content {
        padding: 0 !important;
      }

      & .testimonial-content::before {
        display: none;
      }
    }
  }

  & .testimonial-card-wide {
    width: calc(50% - 13px);
  }
}


/* BUTTON CENTER */
.testimonial-pagesec .testimonial-center {
  margin-top: 35px;
  text-align: center;

  & .button {
    margin: 0 auto;
    display: inline-block;
    font-size: 16px;
    text-transform: none;
  }
}

/* ---------------- Pagination ---------------- */
.pagination {
  margin-top: 40px;
  margin-inline: auto;
  width: fit-content;

  .page-numbers {
    display: inline-flex;
    column-gap: 12px;
    align-items: center;

    li {
      padding-left: 0;
      margin-bottom: 0;

      .page-numbers:not(.prev):not(.next) {
        background: transparent;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        line-height: 1.4;
        border: 1px solid var(--themegreen);

        &.current {
          background: var(--themegreen);
          color: #fff;
        }
      }
    }
  }
}


.prev.page-numbers,
.next.page-numbers {
  position: relative;

  &:after {
    content: '';
    position: absolute;
    top: 4px;
    left: -16px;
    width: 7px;
    height: 13px;
    background: url(../images/icon/slider-left.svg) no-repeat center;
    background-size: contain;
    filter: brightness(0) saturate(100%) invert(39%) sepia(2%) saturate(2%) hue-rotate(354deg) brightness(93%) contrast(95%);
  }

  &:hover {
    &:after {
      filter: brightness(0) saturate(100%) invert(93%) sepia(52%) saturate(5708%) hue-rotate(65deg) brightness(86%) contrast(95%);
    }
  }
}

.next.page-numbers {
  &:after {
    left: unset;
    right: -16px;
    background: url(../images/icon/slider-right.svg) no-repeat center;
    background-size: contain;
  }
}

/* ---------------- Media Query ---------------- */

@media (max-width:1599.98px) {

  .testimonial-pagesec {
    & .testimonial-card-wrap {
      gap: 20px;
    }

    & .testimonial-card {
      width: calc(25% - 15px);

    }

    & .testimonial-card-wide {
      width: calc(50% - 10px);
    }
  }

  .testimonial-sec {
    & .testimonial-card-wrap {
      & .testimonial-card.testimonial-card--video .testimonial-content .video-testimonial {
        img {
          height: 285px;
        }
      }
    }
  }
}

@media (max-width:1439.98px) {

  .testimonial-pagesec {
    & .testimonial-card-wrap {
      gap: 20px;
    }

    & .testimonial-card {
      width: calc(33.455% - 15px);

    }

    & .testimonial-card-wide {
      width: calc(66.545% - 10px);
    }
  }

  .testimonial-sec {
    & .testimonial-card-wrap {
      & .testimonial-card.testimonial-card--video .testimonial-content .video-testimonial {
        img {
          height: 285px;
        }
      }
    }
  }

}

@media (max-width:1199.98px) {
  .testimonial-pagesec {
    & .testimonial-card-wrap {
      gap: 12px;
    }

    & .testimonial-card {
      width: calc(33.33% - 8px);

      & .testimonial-author {
        padding: 30px;
      }

    }

    & .testimonial-card-wide {
      width: calc(66.66% - 4px);
    }
  }

  .testimonial-sec {
    & .testimonial-card-wrap {
      & .testimonial-card {
        &.testimonial-card--video .testimonial-content .video-testimonial {
          img {
            height: 255px;
          }
        }

        &.testimonial-card--video .testimonial-author {
          padding: 25px 30px 25px 30px;
        }

        & .testimonial-content {
          padding: 60px 30px 30px;

          &::before {
            top: 30px;
            left: 30px;
            width: 26px;
            height: 18px;
          }
        }

        & .testimonial-author {
          padding: 30px;

          & .author-info {
            width: calc(100% - 40px);
          }

          & .author-img {
            width: 40px;
          }
        }
      }
    }
  }

  .testimonial-card-wrap.testimonial-js {
    &.slick-initialized {
      .slick-arrow {
        top: unset;
        bottom: -12px;

        &.slick-prev {
          left: calc(50% - 45px);
          margin-bottom: 0;
        }

        &.slick-next {
          right: calc(50% - 45px);
          margin-bottom: 0;
        }
      }
    }
  }

  .testimonial-card-wrap.testimonial-js:has(.slick-arrow){
    padding-bottom: 60px;
  }

}

@media (max-width:991.98px) {
  .testimonial-pagesec {
    & .testimonial-card-wrap {
      gap: 8px;
    }

    & .testimonial-card {
      width: calc(50% - 4px);

    }

    & .testimonial-card-wide {
      width: calc(50% - 4px);
    }
  }
}

@media (max-width:767.98px) {
  .testimonial-pagesec {
    & .testimonial-card-wrap {
      gap: 0px;
      row-gap: 8px;
    }

    & .testimonial-card {
      width: 100%;

    }

    & .testimonial-card-wide {
      width: 100%;
    }
  }

  .testimonial-sec {
    & .testimonial-card-wrap {
      & .testimonial-card {
        &.testimonial-card--video .testimonial-content img {
          display: block;
          margin: 0 auto;
        }

        &.testimonial-card--video .testimonial-author {
          padding: 15px 20px 15px 20px;
        }

        &.testimonial-card--video .testimonial-content .video-testimonial {
          img {
            height: 235px;
          }
        }

        & .testimonial-content {
          padding: 50px 20px 20px;

          .inner-tesimonial-content-wrap {
            p {
              font-size: 17px;
            }
          }

          &::before {
            top: 20px;
            left: 20px;
          }
        }

        & .testimonial-author {
          padding: 20px;
        }
      }
    }
  }

  .testimonial-pagesec .testimonial-center {
    margin-top: 30px;
  }
}

@media (max-width:575.98px) {

  .testimonial-sec {
    & .testimonial-card-wrap {
      & .testimonial-card {
        & .testimonial-content {
          & .inner-tesimonial-content-wrap {
            height: 164px;
          }
        }

        & .testimonial-author {
          & .author-img {
            width: 35px;
          }

          & .author-info {
            width: calc(100% - 35px);
          }
        }
      }
    }
  }

  .testimonial-js {
    &.slick-initialized {
      margin-inline: -10px;
      width: calc(100% + 20px);

      & .slick-slide {
        padding-inline: 10px;
      }
    }
  }
}