.testimony {
  margin: 180px auto;
  text-align: center;
}

.testimony .container hgroup div {
  margin-bottom: 34px;
}

.testimony .container hgroup p {
  margin-bottom: 135px;
}

.testimony .container h1 span {
  background: linear-gradient(
    to right,
    #38b6ff,
    #4b97d6,
    #4b8cd6,
    rgb(126, 161, 255)
  );
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.testimony ul {
  padding: 0;
}
.testimony li {
  list-style: none;
}

.container-testi {
  max-width: 1100px;
  width: 100%;
  padding: 0 30px;
  margin: 0 auto;
}

.testi {
  max-width: 900px;
  margin: 0 auto;
}

.testi .wrapper-testi {
  text-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 30px 0;
}

/* thumbnail */
.testi .thumbnail-testi {
  width: 150px;
  height: 150px;
  position: relative;
  flex-shrink: 0;
}

.testi .thumbnail-testi img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: scale(2);
  transition: transform 0.5s;
}

.testi .swiper-slide-active .thumbnail-testi img {
  transform: scale(1);
}

.testi .thumbnail-testi::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(100% + 30px);
  height: calc(100% + 10px);
  background-color: #017fc0;
  border-radius: 50%;
  z-index: -1;
  box-shadow: rgb(0 0 2 / 35%) 0px 20px 30px -10px;
  transition: border-radius 0.5s 0.3s;
}

.testi .swiper-slide-active .thumbnail-testi::before {
  border-radius: 33% 67% 50% 50% / 50% 14% 86% 50%;
}

.testi .aside-testi {
  position: relative;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  align-self: flex-end;
}

.testi .aside-testi > p {
  position: relative;
  font-size: 16px;
  line-height: normal;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateX(10%);
  transition: transform 1s, opacity 1s;
}

.testi .swiper-slide-active .aside-testi > p {
  transform: translateX(0);
  opacity: 1;
}

.testi .aside-testi > p::before,
.testi .aside-testi > p::after {
  font-family: serif;
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  height: 40px;
  z-index: -1;
}

.testi .aside-testi > p::before {
  content: open-quote;
  top: -40px;
  left: 10px;
}

.testi .aside-testi > p::after {
  content: close-quote;
  bottom: -35px;
  right: 0;
}

.testi .aside-testi .name {
  position: relative;
  width: fit-content;
  line-height: 1;
  opacity: 0;
  transform: translateX(30px);
  transition: transform 1s 0.2s, opacity 1s 0.3s;
}

.testi .swiper-slide-active .name {
  transform: translateX(0);
  opacity: 1;
}

.testi .aside-testi .name h4 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 5px;
  color: #017fc0;
  opacity: 0.8;
}

.testi .aside-testi .name p {
  font-size: 14px;
  text-align: right;
}

/* slider */
.testi :is(.swiper-button-next, .swiper-button-prev) {
  background-color: lightgrey;
  top: 30%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background-color 0.3s;
  box-shadow: rgb(0 0 2 / 35%) 0px 20px 30px -10px;
}

.testi :is(.swiper-button-next, .swiper-button-prev):active {
  background-color: #017fc0;
}

.swiper-button-prev,
.swiper-button-next {
  border: none;
}

.testi :is(.swiper-button-next, .swiper-button-prev)::after {
  font-size: 16px;
  font-weight: 800;
  color: white;
}

.testi .swiper-pagination {
  position: relative;
}

.testi .swiper-pagination span {
  background-color: rgba(104, 104, 104, 0.651);
  transition: width 0.3s;
  opacity: 1;
}

.testi .swiper-pagination .swiper-pagination-bullet-active {
  width: 26px;
  border-radius: 4px;
  background-color: #017fc0;
}

@media screen and (min-width: 768px) {
  .testi .wrapper-testi {
    flex-direction: row;
    padding: 30px 100px;
  }

  .testi .aside-testi > p {
    font-size: 100%;
  }

  .testi .thumbnail-testi {
    width: 200px;
    height: 200px;
  }

  .testi :is(.swiper-button-next, .swiper-button-prev) {
    top: 50%;
  }

  .testi .swiper-slide-active .name {
    transform: translateX(-25px);
  }

  .testi .aside-testi .name p {
    font-size: 80%;
    text-align: right;
  }
}
