/* ========== TESTIMONIALS SECTION ========== */
.testimonials-section-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  height: auto;
  background: #F4F5F4;
}

.testimonials-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 56px;
  position: relative;
  width: 100%;
  max-width: 1440px;
  min-width: 320px;
  background: #F4F5F4;
}

.testimonials-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 16px;
  width: 650px;
  max-width: 90vw;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.testimonials-title {
  width: 650px;
  max-width: 90vw;
  font-family: 'Inria Serif', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: #1A1A1A;
  text-align: center;
  margin: 0;
}

.testimonials-subtitle {
  width: 544px;
  max-width: 90vw;
  font-family: 'Inria Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 116%;
  color: #3D2F25;
  text-align: center;
  letter-spacing: -1px;
  margin: 0 auto;
}

.testimonials-bg-mask {
  position: absolute;
  width: 1440px;
  height: 524px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: linear-gradient(270deg, rgba(244, 245, 244, 0) 0%, rgba(244, 245, 244, 0.975722) 30%, rgba(244, 245, 244, 0.976448) 70%, rgba(244, 245, 244, 0) 100%);
  z-index: 0;
}

.testimonials-list-outer {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  left: unset;
  transform: unset;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 204px;
}

.testimonials-row {
  display: flex;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  position: relative;
}

.testimonials-row:nth-child(3) {
  transform: translateX(72px);
}

.testimonials-row-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: testimonials-loop-right 80s linear infinite;
  width: max-content;
}

.testimonials-row.reverse .testimonials-row-inner {
  animation-name: testimonials-loop-left;
  animation-duration: 80s;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  width: 240px;
  height: 218px;
  background: #FFFFFF;
  background: color(display-p3 1.000 1.000 1.000);
  border-radius: 28px;
  flex: none;
  order: 0;
  flex-grow: 0;
  box-sizing: border-box;
}

.testimonial-card-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 12px;
  width: 192px;
  height: 170px;
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

.testimonial-avatar {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  background-size: cover;
  background-position: center;
  border: 1px solid #FAFAFA;
  border: 1px solid color(display-p3 0.980 0.980 0.980);
  border-radius: 30px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 8px;
  width: 192px;
  height: 118px;
  flex: none;
  order: 1;
  align-self: stretch;
  flex-grow: 0;
}

.testimonial-author {
  width: 192px;
  height: 40px;
  font-family: 'Inria Serif';
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  display: flex;
  align-items: center;
  letter-spacing: -0.04em;
  color: #3A3A3A;
  color: color(display-p3 0.302 0.302 0.302);
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

.testimonial-text {
  width: 192px;
  height: 70px;
  font-family: 'Inria Serif';
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  color: #000000;
  color: color(display-p3 0.000 0.000 0.000);
  flex: none;
  order: 1;
  align-self: stretch;
  flex-grow: 0;
}

.testimonials-gradient-mask {
  position: absolute;
  top: 0;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.testimonials-gradient-mask.left {
  left: 0;
  width: 22vw;
  max-width: 320px;
  min-width: 80px;
  background: linear-gradient(90deg, #F4F5F4 0%, rgba(244,245,244,0) 100%);
}
.testimonials-gradient-mask.right {
  right: 0;
  width: 22vw;
  max-width: 320px;
  min-width: 80px;
  background: linear-gradient(270deg, #F4F5F4 0%, rgba(244,245,244,0) 100%);
}

@keyframes testimonials-loop-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes testimonials-loop-left {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}


/* ========== TESTIMONIALS SECTION: DESK 1441px+ ========== */
@media (min-width: 1441px) {
  .testimonials-section-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
  }
  .testimonials-title {
    font-size: 48px;
    line-height: 56px;
  }
  .testimonials-subtitle {
    font-size: 32px;
    line-height: 120%;
  }
}

/* ========== TESTIMONIALS SECTION: DESK 1024px–1440px ========== */
@media (min-width: 1024px) and (max-width: 1440px) {
  .testimonials-section-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
  }
  .testimonials-title {
    font-size: 40px;
    line-height: 48px;
  }
  .testimonials-subtitle {
    font-size: 28px;
    line-height: 116%;
  }
}

/* ========== TESTIMONIALS SECTION: TAB 600px–1023px ========== */
@media (min-width: 600px) and (max-width: 1023px) {
  .testimonials-section-wrapper {
    width: 95vw;
    max-width: 600px;
  }
  .testimonials-header {
    width: 95vw;
    max-width: 600px;
  }
  .testimonials-title {
    width: 95vw;
    max-width: 600px;
    font-size: 32px;
    line-height: 40px;
  }
  .testimonials-subtitle {
    width: 90vw;
    max-width: 500px;
    font-size: 24px;
    line-height: 120%;
  }
  .testimonials-list {
    width: 95vw;
    max-width: 600px;
    gap: 12px;
  }
  .testimonial-card {
    flex: 0 0 240px;
    min-width: 240px;
    width: 240px;
    height: 218px;
    padding: 24px;
  }
  .testimonial-card-row {
    width: 192px;
    height: 170px;
    padding: 0px;
    gap: 12px;
  }
  .testimonial-content {
    width: 192px;
    height: 118px;
  }
  .testimonial-author {
    width: 192px;
    height: 40px;
    font-size: 14px;
    line-height: 140%;
  }
  .testimonial-text {
    width: 192px;
    height: 70px;
    font-size: 12px;
    line-height: 14px;
  }
}

/* ========== TESTIMONIALS SECTION: MOB 420px–600px ========== */
@media (min-width: 420px) and (max-width: 600px) {
  .testimonials-section-wrapper {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin: 88px auto 100px auto;
  }
  .testimonials-header {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
  .testimonials-title {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    font-size: 28px;
    line-height: 36px;
  }
  .testimonials-subtitle {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    font-size: 20px;
    line-height: 120%;
  }
  .testimonials-list {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    gap: 12px;
    margin-bottom: 24px;
  }
  .testimonial-card {
    flex: 0 0 240px;
    min-width: 240px;
    width: 240px;
    height: 218px;
    padding: 24px;
  }
  .testimonial-card-row {
    width: 192px;
    height: 170px;
    padding: 0px;
    gap: 12px;
  }
  .testimonial-content {
    width: 192px;
    height: 118px;
  }
  .testimonial-author {
    width: 192px;
    height: 40px;
    font-size: 14px;
    line-height: 140%;
  }
  .testimonial-text {
    width: 192px;
    height: 70px;
    font-size: 12px;
    line-height: 14px;
  }
}

/* ========== TESTIMONIALS SECTION: MOB 320px–420px ========== */
@media (min-width: 320px) and (max-width: 420px) {
  .testimonials-section-wrapper {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin: 88px auto 100px auto;
  }
  .testimonials-header {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
  .testimonials-title {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    font-size: 24px;
    line-height: 32px;
  }
  .testimonials-subtitle {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    font-size: 18px;
    line-height: 120%;
  }
  .testimonials-list {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    gap: 12px;
    margin-bottom: 24px;
  }
  .testimonial-card {
    flex: 0 0 240px;
    min-width: 240px;
    width: 240px;
    height: 218px;
    padding: 24px;
  }
  .testimonial-card-row {
    width: 192px;
    height: 170px;
    padding: 0px;
    gap: 12px;
  }
  .testimonial-content {
    width: 192px;
    height: 118px;
  }
  .testimonial-author {
    width: 192px;
    height: 40px;
    font-size: 14px;
    line-height: 140%;
  }
  .testimonial-text {
    width: 192px;
    height: 70px;
    font-size: 12px;
    line-height: 14px;
  }
} 