/* testimonials page */
.bwc-testimonials {
  --bento-navy: #08427c;
  --bento-gold: #c8b530;
  --bento-red: #ed383b;
  --bento-ink: #0d1b2e;
  --bento-text: #4a5b7a;
  --bento-line: #e3e9f1;
  padding: 100px 0 110px;
  background-color: #fff;
}

.bwc-testimonials-header {
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}

.bwc-testimonials-header .title {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 18px;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--bento-ink);
}

.bwc-testimonials-header .title:after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--bento-navy) 0 33.33%, var(--bento-gold) 33.33% 66.66%, var(--bento-red) 66.66% 100%);
  transform: translateX(-50%);
  content: '';
}

.bwc-testimonials-header .description {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--bento-text);
}

.bwc-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 24px;
}

.bwc-bento-cols-2 {
  grid-column: span 2;
}

.bwc-bento-cols-3 {
  grid-column: span 3;
}

.bwc-bento-rows-2 {
  grid-row: span 2;
}

.bwc-bento-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 32px;
  background-color: #fff;
  border: 1px solid var(--bento-line);
  border-radius: 16px;
  transition: box-shadow .3s, transform .3s;
}

.bwc-bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgb(8 66 124 / 9%);
}

.bwc-bento-quote-mark {
  flex-shrink: 0;
  margin-bottom: 20px;
}

.bwc-bento-quote {
  flex-grow: 1;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.bwc-bento-quote p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--bento-text);
}

.bwc-bento-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bwc-bento-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
}

.bwc-bento-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--bento-navy);
  background-color: #e7eef6;
}

.bwc-bento-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bwc-bento-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bento-ink);
}

.bwc-bento-role {
  font-size: 13px;
  line-height: 1.4;
  color: #6b7a92;
}

/* featured card */
.bwc-bento-card.is-featured {
  justify-content: center;
  padding: 44px 40px;
  background-color: var(--bento-navy);
  border-color: var(--bento-navy);
}

.bwc-bento-card.is-featured .bwc-bento-quote-mark {
  width: 38px;
  height: 30px;
}

.bwc-bento-card.is-featured .bwc-bento-quote {
  flex-grow: 0;
  margin-bottom: 36px;
}

.bwc-bento-card.is-featured .bwc-bento-quote p {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.7;
  color: #fff;
}

.bwc-bento-card.is-featured .bwc-bento-name {
  color: #fff;
}

.bwc-bento-card.is-featured .bwc-bento-role {
  color: rgb(255 255 255 / 72%);
}

.bwc-bento-card.is-featured .bwc-bento-avatar {
  border: 2px solid rgb(255 255 255 / 35%);
}

.bwc-bento-card.is-featured .bwc-bento-initials {
  color: #fff;
  background-color: rgb(255 255 255 / 14%);
}

@media (prefers-reduced-motion: reduce) {
  .bwc-bento-card {
    transition: none;
  }
  .bwc-bento-card:hover {
    transform: none;
  }
}

@media only screen and (max-width: 991px) {
  .bwc-testimonials {
    padding: 80px 0 90px;
  }
  .bwc-testimonials-header .title {
    font-size: 36px;
  }
  .bwc-bento {
    grid-template-columns: 1fr;
  }
  .bwc-bento-cols-2,
  .bwc-bento-cols-3 {
    grid-column: auto;
  }
  .bwc-bento-rows-2 {
    grid-row: auto;
  }
}

@media only screen and (max-width: 575px) {
  .bwc-testimonials {
    padding: 60px 0 70px;
  }
  .bwc-testimonials-header {
    margin-bottom: 40px;
  }
  .bwc-testimonials-header .title {
    font-size: 30px;
  }
  .bwc-bento {
    gap: 16px;
  }
  .bwc-bento-card,
  .bwc-bento-card.is-featured {
    padding: 26px 22px;
  }
  .bwc-bento-card.is-featured .bwc-bento-quote p {
    font-size: 17px;
  }
}
