/* Light-theme review section (see _includes/light-review-section.html) */

.light-review-section-root {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.light-review-section-root *,
.light-review-section-root *::before,
.light-review-section-root *::after {
  box-sizing: border-box;
}

.light-review-section-root .testimonials-section {
  width: min(100%, 1152px);
  min-height: 176px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
}

.light-review-section-root .testimonials-section .left-section p:nth-of-type(1),
.light-review-section-root .testimonials-section .left-section p:nth-of-type(2) {
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 140%;
  letter-spacing: 0.01em;
  color: #1e1e1e;
}

.light-review-section-root .testimonials-section .left-section p:nth-of-type(2) {
  color: #2087ec;
  margin-bottom: 24px;
}

.light-review-section-root .testimonials-section .left-section a {
  height: 40px;
  width: 152px;
  background: #2087ec;
  color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  font: 600 14px "Urbanist", sans-serif;
  gap: 8px;
}

.light-review-section-root .testimonials-section .left-section a:hover {
  background: #00359f;
}

.light-review-section-root .testimonials-section .left-section a svg {
  display: inline-block;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

.light-review-section-root .testimonials-section .left-section a:hover svg {
  transform: none;
}

.light-review-section-root .reviews-slider {
  width: 100%;
  max-width: 1152px;
  min-height: 365px;
  margin-bottom: 100px;
  display: flex;
  gap: 30px;
  overflow: hidden;
  position: relative;
}

.light-review-section-root .reviews-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to right,
    #fff 0%,
    rgba(255, 255, 255, 0.92) 6%,
    transparent 14%,
    transparent 86%,
    rgba(255, 255, 255, 0.92) 94%,
    #fff 100%
  );
}

.light-review-section-root .reviews-slider-track {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  width: max-content;
  animation: light-review-marquee 40s linear infinite;
  will-change: transform;
}

@keyframes light-review-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 30px));
  }
}

.light-review-section-root .light-review-card {
  width: min(400px, calc(100vw - 48px));
  min-height: 360px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background-color: #f9f9f9;
}

.light-review-section-root .light-review-card > p:first-of-type {
  font-family: "Urbanist", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0.01em;
  color: #333;
}

.light-review-section-root .light-review-card .author-section {
  display: flex;
  align-items: center;
  gap: 11.76px;
}

.light-review-section-root .light-review-card .author-section > img {
  height: 60px;
  width: 60px;
}

.light-review-section-root .light-review-card .author-section > div {
  flex: 1 1 auto;
  min-width: 0;
}

.light-review-section-root .light-review-card .author-section > div p:nth-child(1) {
  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 160%;
  letter-spacing: 0.01em;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

.light-review-section-root .light-review-card .author-section > div p:nth-child(2),
.light-review-section-root .light-review-card .author-section > div p:nth-child(3) {
  font-family: "Urbanist", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 160%;
  letter-spacing: 0.01em;
  color: #646464;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .light-review-section-root .testimonials-section {
    max-width: 820px;
  }
}

@media (max-width: 786px) {
  .light-review-section-root .reviews-slider,
  .light-review-section-root .testimonials-section {
    max-width: 786px;
  }

  .light-review-section-root .testimonials-section {
    max-width: 706px;
  }
}

@media (max-width: 650px) {
  .light-review-section-root .testimonials-section {
    flex-direction: column-reverse;
    height: 246px;
    align-items: start;
    width: 100%;
    max-width: 375px;
    gap: 12px;
    padding: 0 0 0 16px;
    margin-top: 50px;
  }

  .light-review-section-root .testimonials-section .left-section p:nth-of-type(1),
  .light-review-section-root .testimonials-section .left-section p:nth-of-type(2) {
    font-size: 28px;
  }

  .light-review-section-root .testimonials-section > img {
    width: 85px;
    height: 100px;
  }

  .light-review-section-root .light-review-card {
    width: 280px;
    min-height: 320px;
    height: auto;
  }

  .light-review-section-root .light-review-card > p:first-of-type {
    font-size: 14px;
  }

  .light-review-section-root .light-review-card .author-section > div p:nth-child(1) {
    font-size: 14px;
  }

  .light-review-section-root .light-review-card .author-section > div p:nth-child(2),
  .light-review-section-root .light-review-card .author-section > div p:nth-child(3) {
    font-size: 11px;
    line-height: 150%;
  }

  .light-review-section-root .reviews-slider {
    margin-bottom: 40px;
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .light-review-section-root .reviews-slider-track {
    animation: none;
  }
}
