.testimonials__container {
  max-width: 1600px;
  padding-left: 55px;
  padding-right: 55px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991.98px) {
  .testimonials__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/*
      PX to REM converter with root in 16px!
  
      https://nekocalc.com/px-to-rem-converter
  */
.testimonials {
  padding: 1.875rem 0;
}

.testimonials__title,
.testimonials__desc {
  text-align: center;
}

.testimonials__carousel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (max-width: 575.98px) {
  .testimonials__carousel {
    margin-bottom: 1rem;
  }

  .testimonials__carousel::-webkit-scrollbar {
    height: 0px;
    width: 0px;
    background-color: transparent;
  }
}

.testimonials__arrowLeft,
.testimonials__arrowRight {
  border: none;
  background: none;
  padding: 0 calc(1.45833rem + 3.88895vw);
  transition-property: opacity;
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

@media (min-width: 1199.98px) {
  .testimonials__arrowLeft,
  .testimonials__arrowRight {
    padding: 0 4.375rem;
  }
}

@media not all and (hover: none) {
  .testimonials__arrowLeft:hover,
  .testimonials__arrowRight:hover {
    opacity: 0.7;
  }
}

.testimonials__arrowLeft:active,
.testimonials__arrowRight:active {
  opacity: 0.4;
}

@media (max-width: 767.98px) {
  .testimonials__arrowLeft,
  .testimonials__arrowRight {
    padding: 0 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .testimonials__arrowLeft,
  .testimonials__arrowRight {
    display: none;
  }
}

.testimonials__arrowLeft svg,
.testimonials__arrowRight svg {
  display: block;
  width: 25px;
  height: auto;
}

@media (max-width: 767.98px) {
  .testimonials__arrowLeft svg,
  .testimonials__arrowRight svg {
    width: 12px;
  }
}

.testimonials__arrowLeft svg path,
.testimonials__arrowRight svg path {
  stroke: #383838;
}

@media (max-width: 767.98px) {
  .testimonials__arrowLeft svg path,
  .testimonials__arrowRight svg path {
    stroke-width: 8px;
  }
}

.testimonials__list {
  flex: 1;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 4px;
}

@media (max-width: 575.98px) {
  .testimonials__list {
    flex-wrap: initial;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 20px;

    ::-webkit-scrollbar {
      height: 0px;
      width: 0px;
      background-color: transparent;
    }
  }

  .testimonials__list::-webkit-scrollbar {
    height: 0px;
    width: 0px;
    background-color: transparent;
  }
}

.testimonials__item {
  background-color: #fff;
  box-shadow: 0px 0px 8px 0px rgba(186, 186, 186, 0.6);
  border-radius: 30px;
  overflow: hidden;
  flex: 1 100%;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem;
  display: none;
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 300ms;
  transition-timing-function: ease-in-out;
}

.testimonials__item.--display {
  display: flex;
}

.testimonials__item.--show {
  opacity: 1;
}

@media (max-width: 1199.98px) {
  .testimonials__item {
    gap: 1.875rem;
    padding: 2.5rem 1.875rem;
  }
}

@media (max-width: 991.98px) {
  .testimonials__item {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 575.98px) {
  .testimonials__item {
    padding: 1.875rem 1.25rem;
    margin-bottom: 10px;
    display: flex;
    opacity: 1;
    min-width: 90%;
    max-width: 90%;
    scroll-snap-align: center;
  }

  .testimonials__item::-webkit-scrollbar {
    height: 0px;
    width: 0px;
    background-color: transparent;
  }
}

.testimonials__photo {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
}

@media (max-width: 1199.98px) {
  .testimonials__photo {
    width: 140px;
    height: 140px;
  }
}

.testimonials__photo img {
  border-radius: 50%;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.testimonials__content {
  display: flex;
  flex-direction: column;
}

@media (max-width: 991.98px) {
  .testimonials__content {
    text-align: center;
  }
}

.testimonials__testimonial {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
  .testimonials__testimonial {
    order: 1;
    margin-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .testimonials__testimonial {
    font-size: 1rem;
  }
}

.testimonials__name {
  font-size: 1rem;
  margin-bottom: 0.375rem;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .testimonials__name {
    margin-bottom: 0.25rem;
  }
}

.testimonials__stars {
  display: flex;
  column-gap: 4px;
}

@media (max-width: 991.98px) {
  .testimonials__stars {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.875rem;
  }
}

@media (max-width: 575.98px) {
  .testimonials__stars {
    margin-bottom: 1.25rem;
  }
}

.testimonials__stars > svg {
  display: block;
  width: 17px;
  height: auto;
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.testimonials__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: #dddbdb;
  transition-property: background-color;
  transition-duration: 300ms;
  transition-timing-function: ease-in-out;
}

.testimonials__dot.--active {
  cursor: default;
}
