.section-reviews {
  margin: 5em 0;
}
.section-reviews .container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}
.section-reviews .container :is(h1, h2) {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  text-align: center;
  text-transform: uppercase;
}
.section-reviews .container p.subheading {
  margin-left: auto;
  margin-right: auto;
}
.section-reviews .container .header-container {
  text-align: center;
}
.section-reviews .container .header-container:not(:last-child) {
  margin-bottom: 50px;
}
.section-reviews .container .header-container > .text {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-reviews .container .header-container .buttons {
  justify-content: center;
}
.section-reviews .reviews {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.section-reviews .reviews > svg {
  width: 200px;
  margin: 0 0 -40px -60px;
  opacity: 0.1;
}
.section-reviews .reviews .outer {
  width: 100%;
  display: flex;
  overflow: hidden;
  margin-top: 20px;
}
.section-reviews .reviews .inner {
  display: flex;
  flex-wrap: nowrap;
  grid-gap: 20px;
  transition: margin-left 0.6s ease;
}
.section-reviews .reviews .inner .review {
  flex: 0 0 auto;
  text-align: left;
  background-color: var(--gray);
  padding: 50px 50px 60px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.section-reviews .reviews .inner .review:before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(100% calc(100% - 75px), 100% 100%, calc(100% - 50px) 100%);
  background-color: var(--primary);
}
.section-reviews .reviews .inner .review:after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 50px;
  width: 1px;
  height: 50px;
  transform: rotate(38deg);
  background-color: var(--primary);
}
.section-reviews .reviews .inner .review img.stars {
  margin-bottom: 40px;
  width: 120px;
}
.section-reviews .reviews .inner .review .text {
  font-size: 1.1em;
  font-weight: 300;
  line-height: 1.3em;
}
.section-reviews .reviews .inner .review .text *:last-child {
  margin-bottom: 0;
}
.section-reviews .reviews .inner .review .details {
  display: flex;
  align-items: center;
  grid-gap: 10px;
  margin-top: 30px;
}
.section-reviews .reviews .inner .review .details > div {
  flex: 1;
}
.section-reviews .reviews .inner .review .details > div .name, .section-reviews .reviews .inner .review .details > div .title {
  margin: 0;
}
.section-reviews .reviews .inner .review .details > div .name.name, .section-reviews .reviews .inner .review .details > div .title.name {
  font-size: 1.1em;
  font-weight: 500;
}
.section-reviews .reviews .inner .review .details > div .name.title, .section-reviews .reviews .inner .review .details > div .title.title {
  font-size: 0.8em;
  opacity: 0.75;
}
.section-reviews .reviews .inner .review .details img.icon {
  width: 30px;
}
.section-reviews .reviews .arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 10px;
  pointer-events: none;
  margin: 50px auto 0;
}
.section-reviews .reviews .arrows > div {
  pointer-events: auto;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}
.section-reviews .reviews .arrows > div:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.section-reviews .reviews .arrows > div.disabled {
  background-color: var(--white);
  cursor: default;
  pointer-events: none;
}
.section-reviews .reviews .arrows > div.disabled svg path {
  fill: var(--black);
}
.section-reviews .reviews .arrows > div svg {
  width: 20px;
}
.section-reviews .reviews .arrows > div svg path {
  fill: var(--white);
}
.section-reviews .reviews .arrows.hidden {
  display: none;
}

@media (max-width: 1000px) {
  .section-reviews .container {
    padding: 0 60px;
  }
  .section-reviews .reviews .arrows {
    width: calc(100% + 120px);
    left: -60px;
  }
  .section-reviews .reviews .arrows > div {
    width: 44px;
    height: 44px;
  }
  .section-reviews .reviews .inner .review {
    padding-left: 30px;
    padding-right: 30px;
  }
}
@media (max-width: 600px) {
  .section-reviews .container {
    padding: 0 50px;
  }
  .section-reviews .reviews .inner .review .text {
    font-size: 1em;
  }
  .section-reviews .reviews .arrows {
    width: calc(100% + 100px);
    left: -50px;
  }
  .section-reviews .reviews .arrows > div {
    width: 36px;
    height: 36px;
  }
  .section-reviews .reviews .arrows > div svg {
    width: 12px;
  }
}
/*

Options > Background Gray

*/
.section-reviews[options~=background-gray] .reviews .inner .review {
  background-color: var(--white);
}

/*

Options > Show as list

*/
.section-reviews[options~=show-as-list] .reviews .outer .inner {
  width: 100%;
  margin-left: 0 !important;
  flex-wrap: wrap;
}
.section-reviews[options~=show-as-list] .reviews .arrows {
  display: none;
}

/*

Loading transitions

*/
.section-reviews .reviews {
  margin-top: -100px;
  opacity: 0;
}
.section-reviews.scrolled-to .reviews {
  animation: reviewsReveal 1.5s forwards;
}

@keyframes reviewsReveal {
  0%, 50% {
    margin-top: -100px;
    opacity: 0;
  }
  100% {
    margin-top: 0;
    opacity: 1;
  }
}