p {
  text-align: justify !important;
}

.author-position {
  font-style: italic;
}

.testimonial-logo-placeholder {
  padding: 10px;
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 3rem;
  line-height: 3rem;
  color: var(--color-navy);
  background: #f5f5f5;
  border-radius: 6px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Logo strip ("Trusted By") ---- */
.logo-strip {
  padding-top: 50px;
  padding-bottom: 10px;
}

.logo-strip .eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-green);
  border-left: 4px solid var(--color-green);
  padding-left: 8px;
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.logo-strip h2 {
  text-align: center;
  color: var(--color-navy);
  margin-top: 10px;
  margin-bottom: 36px;
  font-size: 1.6rem;
}

.logo-strip-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 10px;
}

.logo-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-strip-logo {
  max-height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter .25s ease, opacity .25s ease;
}

.logo-strip-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-strip-placeholder {
  padding: 6px 18px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
  background: #f5f5f5;
  border-radius: 6px;
  opacity: 0.8;
}

/* ---- Testimonial carousel ---- */
.testimonial-carousel-section {
  margin-top: 20px;
}

.testimonial-carousel {
  position: relative;
}

.testimonial-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.testimonial-track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  gap: 32px;
  padding: 10px 0 60px;
  will-change: transform;
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.testimonial-arrow:hover,
.testimonial-arrow:focus-visible {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

.testimonial-arrow-left {
  left: 4px;
}

.testimonial-arrow-right {
  right: 4px;
}

@media screen and (max-width: 820px) {
  .testimonial-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

.testimonial-card {
  background: #fff;
  border: 1px solid #ccc;
  border-top: 4px solid var(--color-navy);
  border-radius: 10px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  flex: 0 0 700px;
  width: 1200px;
  height: 650px;
}

.testimonial-card.accent-blue {
  border-top-color: var(--color-blue);
}

.testimonial-card.accent-green {
  border-top-color: var(--color-green);
}

.testimonial-card a {
  color: #666;
}

.testimonial-card a:hover {
  color: var(--color-green);
  text-decoration: underline;
}

.testimonial-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.testimonial-card-logo {
  flex: 0 0 auto;
  max-height: 56px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}

.testimonial-card-header .testimonial-logo-placeholder {
  font-size: 1.3rem;
  line-height: 1.3rem;
  padding: 10px 16px;
  margin-left: 0;
  margin-right: 0;
}

.testimonial-card-blurb {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  text-align: left !important;
}

.testimonial-card .company-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
  flex-shrink: 0;
}

.testimonial-card h3 {
  font-size: 1.05rem;
  margin-top: 4px;
  margin-bottom: 16px;
}

.testimonial-card-body {
  border-top: 1px solid #eee;
  padding-top: 20px;
  padding-right: 12px;
  margin-top: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.testimonial-card-body::-webkit-scrollbar {
  width: 6px;
}

.testimonial-card-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.testimonial-card-body::-webkit-scrollbar-track {
  background: transparent;
}

.testimonial-card-body .bi-quote {
  font-size: 32px;
  line-height: 1;
  margin-right: 4px;
  color: var(--color-navy);
}

.testimonial-card-body p:last-child {
  margin-bottom: 0;
}

.testimonial-card .author {
  flex-shrink: 0;
  padding-top: 0px;
  border-top: 1px solid #eee;
}

@media screen and (max-width: 820px) {
  #testimonials, .header-container {
    background-attachment: scroll !important;
    background-position: center !important;
  }

  .logo-strip-track {
    gap: 28px;
  }

  .logo-strip-logo {
    max-height: 38px;
  }

  .testimonial-track {
    gap: 20px;
  }

  .testimonial-card {
    flex-basis: 300px;
    width: 300px;
    height: 440px;
    padding: 26px 22px;
  }

  .testimonial-card-header {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-card-blurb {
    text-align: center !important;
  }
}

@media screen and (max-width: 480px) {
  .testimonial-card {
    flex-basis: 260px;
    width: 260px;
    height: 420px;
    padding: 22px 18px;
  }
}
