/* Employer testimonials — spec/v2/testimonials.md (pad 112/88, gap 44, #EAF0F7) */
.testi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  padding: 112px 88px;
  overflow: hidden;
  background: #eaf0f7;
}

.testi__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1264px;
}

.testi__track {
  display: flex;
  gap: 40px;
  width: 100%;
  justify-content: center;
  margin: -10px 0 -20px;
  padding: 10px 0 20px; /* room for the card shadows */
  overflow: visible; /* 3 x 400 + 2 x 40 = 1280: a little wider than 1264, as in Figma */
  scrollbar-width: none;
}

.testi__track::-webkit-scrollbar {
  display: none;
}

.testi-card {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 400px;
  min-height: 520px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-white);
  box-shadow: 0 10px 6px rgba(0, 0, 0, 0.15), -2px 0 6px rgba(0, 0, 0, 0.15);
  scroll-snap-align: center;
}

.testi-card__photo {
  position: relative;
  height: 265px;
}

.testi-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 80px;
  padding: 3px 0;
  background: #eccc57;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: #000;
}

.testi-card__body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
}

.testi-card__logo {
  align-self: center;
  height: auto; /* size comes from the width/height attributes (Figma sizes) */
}

/* thin rule under the logo (1px #E1E1E1, measured on the Figma export) */
.testi-card__rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: #e1e1e1;
}

.testi-card__quote {
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: var(--color-teal);
}

.testi-card__company {
  font-size: 24px;
  line-height: 35px;
  color: #000;
}

.testi-card__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testi-card__info div {
  display: flex;
  gap: 10px;
}

.testi-card__info dt {
  flex: none;
  width: 88px;
  padding: 3px 12px;
  background: #2d617e;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-white);
}

.testi-card__info dd {
  padding: 3px 0;
  font-size: 14px;
  line-height: 20px;
  color: #000;
}

.testi__desc {
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
  color: var(--color-slate);
}

/* Logo marquee (Figma comment #10: logos flow like web-camp.io/commit/) */
.logo-marquee {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  overflow: hidden;
}

.logo-marquee__row {
  overflow: hidden;
}

.logo-marquee__strip {
  display: flex;
  gap: 19px;
  width: max-content;
  animation: logo-flow 60s linear infinite;
}

.logo-marquee__row.is-reverse .logo-marquee__strip {
  animation-direction: reverse;
}

.logo-marquee__strip img {
  width: 1264px; /* exported strip = the visible 1264px of each logo row */
  max-width: none;
  height: 106px;
}

@keyframes logo-flow {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9.5px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__strip {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .testi {
    padding: 80px 40px;
  }
}

@media (max-width: 767px) {
  .testi {
    gap: 28px;
    padding: 56px 0;
  }

  .testi .sec-title {
    padding: 0 20px;
    font-size: 24px;
  }

  .testi__track {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 6px 20px 16px;
  }

  .testi-card {
    width: 290px;
    min-height: 0;
  }

  .testi-card__photo {
    height: 192px;
  }

  .testi-card__body {
    gap: 10px;
    padding: 16px;
  }

  .testi-card__logo {
    max-height: 40px;
    width: auto;
  }

  .testi-card__quote {
    font-size: 18px;
    line-height: 26px;
  }

  .testi-card__company {
    font-size: 16px;
    line-height: 24px;
  }

  .testi-card__info dt,
  .testi-card__info dd {
    font-size: 12px;
  }

  .testi__desc {
    padding: 0 20px;
    font-size: 13px;
  }

  .logo-marquee,
  .logo-marquee__strip {
    gap: 10px;
  }

  .logo-marquee__strip img {
    width: 811px;
    height: 68px;
  }

  @keyframes logo-flow {
    to {
      transform: translateX(calc(-50% - 5px));
    }
  }
}
