.testimonial-area-one {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-color: $black_800;
  text-align: center;

  .line-shape {
    .bg-line {
      position: absolute;
      background-color: $black_700;
      z-index: -2;
    }

    .horizontal-1 {
      height: calc(100% + 110px);
      width: 1px;
      left: 8%;
      top: -60px;
    }

    .horizontal-2 {
      height: calc(100% + 110px);
      width: 1px;
      left: 36%;
      top: -60px;
    }

    .horizontal-3 {
      height: calc(100% + 110px);
      width: 1px;
      left: 64%;
      top: -60px;
    }

    .horizontal-4 {
      height: calc(100% + 110px);
      width: 1px;
      right: 8%;
      top: -60px;
    }

    .vertical-1 {
      width: 100%;
      height: 1px;
      left: 0;
      top: -4px;
    }

    .vertical-2 {
      width: 100%;
      height: 1px;
      left: 0;
      bottom: -8px;
    }

    .round {
      position: absolute;
      z-index: -1;
      height: 140px;
      width: 140px;
      border-radius: 50%;
      background-color: rgba(#d1054d, 0.5);
      filter: blur(150px);
      top: 57%;
      transform: translateX(-50%) translateY(-50%);

      &.round-1 {
        left: 8%;
      }

      &.round-2 {
        left: 36%;
      }

      &.round-3 {
        left: 64%;
      }

      &.round-4 {
        left: 92%;
      }
    }
  }

  .title {
    color: $black_50;
    margin-bottom: 60px;
  }

  p {
    font-size: 18px;
    color: $black_100;
    line-height: 40px;
    margin: auto auto 40px;
    max-width: 950px;
  }

  .author {
    font-size: 20px;
    font-weight: 500;
    color: $black_100;
    line-height: 40px;
  }

  .slick-arrow {
    color: $black_300;
    font-size: 40px;
    text-shadow: 0 4px 4px rgba(#000, 0.25);
    top: 50px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    z-index: 1;

    &:hover {
      color: $black_50;
    }

    &.slick-next {
      right: 0;
    }

    &.slick-prev {
      left: 0;
    }
  }
}

.testimonial-area-two {
  .testimonial-box {
    padding: 24px;
    border-radius: 8px;
    @include glass-card;
    transition: all 0.3s ease-in-out;

    &:hover {
      box-shadow: var(--glass-shadow);
    }

    img {
      border-radius: 50%;
      height: 56px;
      width: 56px;
      margin-bottom: 16px;
    }

    h5 {
      font-weight: 600;
      color: $black_800;
      margin-bottom: 0;
    }

    .proff {
      font-size: 14px;
      font-weight: 400;
      color: $black_500;
      line-height: 20px;
    }

    .rating {
      display: inline-flex;
      gap: 4px;
      color: #f6be2e;
      font-size: 14px;
      margin-bottom: 8px;
      margin-top: 11px;
    }

    p {
      font-size: 18px;
      color: $black_700;
      margin-bottom: 0;
      margin-top: 10px;
    }
  }
}

.testimonial-area-three {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-top: 240px;

  &::after {
    content: "";
    position: absolute;
    top: 97px;
    bottom: 130px;
    left: 50%;
    right: 0;
    background-color: rgba(#0fe493, 0.1);
    z-index: -1;
    border-radius: 12px 0 0 12px;
  }

  .single-testimoni-widget {
    padding: 40px;
    width: 370px;
    margin: 12px;
    @include glass-card;
    transition: $transition;
    border-radius: 8px;

    &:hover {
      box-shadow: var(--glass-shadow);
    }

    .user-info {
      display: flex;
      gap: 10px;
      align-items: start;
      margin-top: 25px;

      img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
      }

      h6 {
        font-weight: 600;
        color: $black_800;
        line-height: 11px;
        margin-bottom: 5px;
      }

      .position {
        font-size: 10px;
        line-height: 14px;
        color: $black_500;
        margin-bottom: 5px;
      }

      .rating {
        display: flex;
        font-size: 10px;
        gap: 2px;
        color: #f6be2e;
      }
    }

    p {
      color: $black_600;
      margin-bottom: 0;
    }
  }

  .swiper {
    position: relative;
    width: calc(100% + ((100vw - 1320px) / 2));
    left: 70px;
    margin-bottom: 68px;
    top: -12px;
  }

  .slick-list {
    padding-left: 412px !important;
    padding-bottom: 76px !important;
  }

  .slick-active {
    box-shadow: $long_shadow;
  }

  .slick-dots {
    bottom: 0;
    margin-left: 28px;

    li {
      button {
        display: none;
      }

      height: 10px;
      width: 30px;
      border-radius: 5px;
      background-color: #ffcae6;
      transition: all 0.3s linear;
      margin: 0 8px;

      &.slick-active {
        width: 80px;
        background-color: $brand_color;
      }
    }
  }
}

.testimonial-area-four {
  position: relative;
  overflow: hidden;
  z-index: 1;

  .bg-shape {
    img {
      position: absolute;
      z-index: -1;
      opacity: 0.6; // Subtle background

      &:nth-child(1) {
        left: -30px;
        top: 200px;
      }

      &:nth-child(2) {
        right: 30px;
        top: 380px;
      }

      &:nth-child(3) {
        left: -30px;
        top: 70%;
      }

      &:nth-child(4) {
        right: -10px;
        top: 70%;
      }
    }
  }

  .single-testimoni-widget {
    padding: 35px 35px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, $brand_color, #ff90b5);
      opacity: 0;
      transition: opacity 0.3s;
    }

    &::after {
      content: "";
      height: 200px;
      width: 200px;
      background: radial-gradient(circle, rgba($brand_color, 0.05) 0%, transparent 70%);
      position: absolute;
      right: -50px;
      top: -50px;
      z-index: -1;
      border-radius: 50%;
    }

    &:hover {
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
      transform: translateY(-8px);

      &::before {
        opacity: 1;
      }

      .quote-icon {
        color: rgba($brand_color, 0.2);
      }
    }

    .quote-icon {
      font-size: 32px;
      color: rgba(0, 0, 0, 0.08);
      margin-bottom: 20px;
      transition: all 0.4s ease;
      display: inline-block;
    }

    p {
      color: $black_700;
      margin-bottom: 25px;
      font-size: 17px;
      line-height: 1.7;
      font-weight: 400;
      flex: 1;
      position: relative;
      font-style: italic;
    }

    .user-info {
      display: flex;
      gap: 15px;
      align-items: center;
      padding-top: 20px;
      border-top: 1px solid #f6f7f9;

      .user-img {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        overflow: hidden;
        background-color: $brand_color;
        line-height: 54px;
        text-align: center;
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
        flex-shrink: 0;
        box-shadow: 0 4px 10px rgba($brand_color, 0.2);

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

        &.hasAvatar {
          background-color: transparent;
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        &.grey {
          background-color: #f0f2f5;
          color: $black_600;
          box-shadow: none;

          img {
            filter: grayscale(100%);
            opacity: 0.6;
          }
        }
      }

      .d-flex {
        // Wrapper for text
      }

      h6 {
        font-weight: 700;
        color: $black_800;
        line-height: 1.2;
        margin-bottom: 4px;
        font-size: 16px;
        transition: color 0.3s;

        &:hover {
          color: $brand_color;
        }
      }

      .position {
        font-size: 13px;
        line-height: 1.4;
        color: $black_500;
        margin-bottom: 4px;
        font-weight: 500;
      }

      .rating {
        display: flex;
        font-size: 12px;
        gap: 2px;
        color: #ffa41b;

        i {
          margin-right: 1px;
        }
      }
    }
  }
}