.oa-testimonials {
  background: #f6f7f8;
  color: var(--oa-text-dark);
  box-sizing: border-box;
  overflow: hidden;
}
.oa-testimonials *, .oa-testimonials *::before, .oa-testimonials *::after { box-sizing: border-box; }
.oa-testimonials p, .oa-testimonials h2 { margin: 0; }
.oa-testimonials-frame {
  padding: 126px var(--oa-content-padding) 128px;
}

.oa-testimonials-head {
  display: grid;
  grid-template-columns: minmax(0, 690px) minmax(280px, 415px);
  justify-content: space-between;
  align-items: center;
  gap: 64px;
  margin-bottom: 102px;
}
.oa-testimonials-eyebrow {
  font-family: var(--oa-font-mono);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.45px;
  text-transform: uppercase;
  color: #536070;
  margin-bottom: 28px;
}
.oa-testimonials-title h2 {
  font-family: var(--oa-font-heading);
  font-size: 48px;
  line-height: 1.18;
  font-weight: 400;
  color: #151e29;
}
.oa-testimonials-side {
  max-width: 415px;
  padding-top: 24px;
  padding-bottom: 0;
  font-family: var(--oa-font-body);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: .18px;
  color: #717b87;
  text-align: right;
}
.oa-testimonials-side strong {
  display: inline;
  color: #151e29;
  font-weight: 500;
}

.oa-testimonials-cards {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  height: 545px;
  min-height: 545px;
  overflow: hidden;
}
.oa-testimonials-card {
  flex: 0 0 223px;
  min-width: 0;
  overflow: hidden;
  transition: flex-basis .42s ease, flex-grow .42s ease, opacity .24s ease;
}
.oa-testimonials-card.is-open {
  flex: 1 1 calc(100% - 494px);
  min-width: 0;
}
.oa-testimonials-card-button {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 545px;
  display: block;
  padding: 0;
  border: 0 !important;
  border-radius: 4px;
  background: #fff !important;
  background-color: #fff !important;
  color: inherit !important;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: none !important;
  appearance: none;
  font: inherit;
  line-height: normal;
  text-transform: none;
  white-space: normal !important;
}
.oa-testimonials-card-button:hover,
.oa-testimonials-card-button:active,
.oa-testimonials-card-button:focus {
  background: #fff !important;
  background-color: #fff !important;
  color: inherit !important;
  border-color: transparent !important;
}
.oa-testimonials-card-button:focus-visible {
  outline: 2px solid var(--oa-green-500);
  outline-offset: 3px;
}
.oa-testimonials-card-inner {
  position: relative;
  isolation: isolate;
  height: 100%;
  min-height: 545px;
  display: flex;
  flex-direction: column;
  padding: 40px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-align: left !important;
}
.oa-testimonials-card-inner::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 49px;
  width: 237px;
  height: 447px;
  background: url('../images/shield.svg') center / contain no-repeat;
  opacity: 0;
  transition: opacity .28s ease;
  z-index: -1;
}
.oa-testimonials-card.is-open .oa-testimonials-card-inner::after { opacity: 1; }
.oa-testimonials-card-top {
  display: flex;
  align-items: center;
  min-height: 28px;
}
.oa-testimonials-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--oa-font-heading);
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  color: #4f555d;
  opacity: .12;
  filter: grayscale(1);
  transition: opacity .28s ease, filter .28s ease;
  max-width: 100%;
}
.oa-testimonials-logo img {
  display: block;
  max-width: 154px;
  max-height: 32px;
  object-fit: contain;
}
.oa-testimonials-card.is-open .oa-testimonials-logo {
  opacity: 1;
  filter: none;
}
.oa-testimonials-card.is-open .oa-testimonials-card-top,
.oa-testimonials-card.is-open .oa-testimonials-card-bottom {
  padding-left: 0;
}
.oa-testimonials-logo-mark {
  display: grid;
  grid-template-columns: repeat(3, 10px);
  gap: 3px;
  width: 36px;
  height: 20px;
  transform: skew(18deg);
}
.oa-testimonials-logo-mark i {
  display: block;
  background: #f06c2d;
}
.oa-testimonials-logo-mark i:nth-child(1) { background: #f06c2d; }
.oa-testimonials-logo-mark i:nth-child(2) { background: #111923; }
.oa-testimonials-logo-mark i:nth-child(3) { background: #f06c2d; }
.oa-testimonials-card:not(.is-open) .oa-testimonials-logo-mark i { background: #dfe3e7; }

.oa-testimonials-quote {
  width: min(100%, 690px);
  max-width: 100%;
  margin-top: 132px;
  display: none;
  font-family: var(--oa-font-body);
  font-size: 24px;
  line-height: 1.34;
  letter-spacing: .1px;
  color: #4d5761;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .26s ease, transform .26s ease, visibility .26s ease;
  white-space: normal !important;
  overflow-wrap: normal;
  text-align: left !important;
}
.oa-testimonials-quote::before { content: '"'; }
.oa-testimonials-quote::after { content: '"'; }
.oa-testimonials-card.is-open .oa-testimonials-quote {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.oa-testimonials-card.is-open .oa-testimonials-card-inner {
  align-items: flex-start;
}
.oa-testimonials-card-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 34px;
  width: 100%;
  min-width: 0;
}
.oa-testimonials-plus {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  transition: opacity .22s ease;
  display: block;
  background: url('../images/more.svg') center / contain no-repeat;
}
.oa-testimonials-plus img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.oa-testimonials-card.is-open .oa-testimonials-plus {
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.oa-testimonials-card.is-open .oa-testimonials-card-bottom { gap: 0; }
.oa-testimonials-person {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  text-align: left !important;
}
.oa-testimonials-person strong {
  font-family: var(--oa-font-body);
  font-size: 17px;
  line-height: 1.1;
  font-weight: 700;
  color: #151e29;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oa-testimonials-person small {
  display: block;
  max-width: 168px;
  font-family: var(--oa-font-mono);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 1.35px;
  text-transform: uppercase;
  color: #737f8b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oa-testimonials-card.is-open .oa-testimonials-person small { max-width: 520px; }

/* At intermediate desktop widths the active quote uses more lines. Moving it
   slightly upward preserves the same breathing room above the author block. */
@media (min-width: 1101px) and (max-width: 1300px) {
  .oa-testimonials-quote { margin-top: 100px; }
}

@media (max-width: 1100px) {
  .oa-testimonials-head {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }
  .oa-testimonials-side { max-width: 620px; padding-bottom: 0; text-align: left; }
  .oa-testimonials-cards {
    min-height: 500px;
    gap: 16px;
  }
  .oa-testimonials-card-inner { padding: 32px; }
  .oa-testimonials-quote { margin-top: 100px; font-size: 22px; }
}

@media (max-width: 900px) {
  .oa-testimonials-frame { padding-top: 64px; }
  .oa-testimonials-title h2 { font-size: 36px; }
  .oa-testimonials-side { font-size: 16px; }
  .oa-testimonials-cards {
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .oa-testimonials-card,
  .oa-testimonials-card.is-open {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }
  .oa-testimonials-card-button,
  .oa-testimonials-card-inner {
    min-height: 188px;
  }
  .oa-testimonials-card.is-open .oa-testimonials-card-button,
  .oa-testimonials-card.is-open .oa-testimonials-card-inner {
    min-height: 430px;
  }
  .oa-testimonials-quote {
    margin-top: 64px;
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .oa-testimonials-frame {
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .oa-testimonials-head {
    gap: 28px;
    margin-bottom: 48px;
  }
  .oa-testimonials-eyebrow { margin-bottom: 18px; }
  .oa-testimonials-title h2 {
    font-size: 32px;
    line-height: 1.16;
  }
  .oa-testimonials-cards { gap: 12px; }
  .oa-testimonials-card-button,
  .oa-testimonials-card-inner { min-height: 172px; }
  .oa-testimonials-card-inner { padding: 26px 22px; }
  .oa-testimonials-card.is-open .oa-testimonials-card-button,
  .oa-testimonials-card.is-open .oa-testimonials-card-inner {
    min-height: 410px;
  }
  .oa-testimonials-card-inner::after {
    right: -58px;
    width: 210px;
    height: 396px;
  }
  .oa-testimonials-quote {
    width: 100%;
    margin-top: 48px;
    font-size: 18px;
    line-height: 1.4;
  }
  .oa-testimonials-card-bottom { gap: 22px; }
  .oa-testimonials-person strong,
  .oa-testimonials-person small {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .oa-testimonials-card.is-open .oa-testimonials-person small { max-width: 100%; }
}

@media (max-width: 480px) {
  .oa-testimonials-card-inner { padding: 24px 20px; }
  .oa-testimonials-title h2 { font-size: 31px; }
  .oa-testimonials-quote { font-size: 18px; }
}
