.testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 100px 6vw 110px;
  border-bottom: 3px solid var(--ink);
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(255, 255, 255, .24) 72% 100%),
    var(--rose);
}

.testimonials-section::before {
  content: "“";
  position: absolute;
  top: -80px;
  right: 3vw;
  color: rgba(37, 19, 33, .12);
  font-family: Georgia, serif;
  font-size: 420px;
  line-height: 1;
  pointer-events: none;
}

.testimonials-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 50px;
  max-width: 1180px;
  margin: 0 auto 55px;
}

.testimonials-heading .ink-kicker {
  grid-column: 1 / -1;
  margin-bottom: -28px;
  color: var(--ink);
}

.testimonials-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 6.2vw, 88px);
}

.testimonials-heading p {
  max-width: 330px;
  margin: 0 0 7px;
  color: #4d253d;
  font-size: 16px;
  line-height: 1.65;
}

.testimonial-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 42px;
}

.testimonial-all-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  border-bottom: 3px solid var(--ink);
  padding: 0 5px;
  font-size: 14px;
  font-weight: 900;
}

.testimonial-all-link b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .2s;
}

.testimonial-all-link:hover b,
.testimonial-all-link:focus-visible b {
  transform: translate(5px, -1px);
}

.testimonial-open-button {
  border: 3px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s, box-shadow .2s;
}

.testimonial-open-button:hover,
.testimonial-open-button:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--ink);
}

.testimonial-open-button .button-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-2);
  overflow: hidden;
  transform-origin: 50% 70%;
}

.testimonial-open-button .button-icon svg {
  width: 23px;
  height: 23px;
  overflow: visible;
  transition: transform .25s ease;
}

.testimonial-open-button .button-icon path {
  fill: var(--rose);
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.testimonial-open-button .button-icon circle {
  fill: var(--ink);
  transform-origin: center;
}

.testimonial-action-row.is-visible .button-icon {
  animation: testimonial-icon-arrive .65s cubic-bezier(.2, .9, .25, 1.3) both;
}

.testimonial-open-button:hover .button-icon svg,
.testimonial-open-button:focus-visible .button-icon svg {
  transform: rotate(-7deg) scale(1.08);
}

.testimonial-open-button:hover .button-icon circle,
.testimonial-open-button:focus-visible .button-icon circle {
  animation: testimonial-dot-wave .55s ease both;
}

.testimonial-open-button:hover .button-icon circle:nth-of-type(2),
.testimonial-open-button:focus-visible .button-icon circle:nth-of-type(2) {
  animation-delay: .08s;
}

.testimonial-open-button:hover .button-icon circle:nth-of-type(3),
.testimonial-open-button:focus-visible .button-icon circle:nth-of-type(3) {
  animation-delay: .16s;
}

.testimonial-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.testimonial-card,
.testimonial-empty {
  border: 3px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 9px 9px 0 var(--ink);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 28px;
}

.testimonial-card:nth-child(3n + 2) {
  background: var(--acid);
}

.testimonial-card:nth-child(3n + 3) {
  background: var(--powder);
}

.testimonial-quote {
  margin: 0;
  color: #4e3946;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-line;
}

.testimonial-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 30px;
  border-top: 2px solid rgba(37, 19, 33, .22);
}

.testimonial-person strong {
  font-size: 18px;
}

.testimonial-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.testimonial-socials a {
  border: 2px solid var(--ink);
  background: var(--paper-2);
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 1000;
}

.testimonial-empty {
  grid-column: 1 / -1;
  padding: 45px;
  text-align: center;
}

.testimonial-empty strong {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
}

.testimonial-empty p {
  margin: 0;
  color: #6d5262;
  font-size: 16px;
}

.testimonial-flash {
  max-width: 1180px;
  margin: 0 auto 30px;
  border: 2px solid var(--ink);
  background: var(--acid);
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 900;
}

.testimonial-flash .flash-bn,
.site-frame.lang-bn .testimonial-flash .flash-en {
  display: none;
}

.site-frame.lang-bn .testimonial-flash .flash-bn {
  display: inline;
}

.testimonial-modal[hidden] {
  display: none;
}

.testimonial-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(22, 10, 19, .78);
  backdrop-filter: blur(7px);
}

body.testimonial-modal-open {
  overflow: hidden;
}

.testimonial-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 3px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 13px 13px 0 var(--marigold);
}

.testimonial-dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 3px solid var(--ink);
  background: var(--sea);
  color: white;
  padding: 28px 30px;
}

.testimonial-dialog-header h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.05;
}

.testimonial-dialog-header p {
  margin: 10px 0 0;
  color: #def4eb;
  font-size: 14px;
}

.testimonial-close {
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  background: var(--acid);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

.testimonial-form {
  padding: 30px;
}

.testimonial-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.testimonial-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.testimonial-field.full-width {
  grid-column: 1 / -1;
}

.testimonial-field label,
.testimonial-social-title {
  font-size: 13px;
  font-weight: 1000;
}

.testimonial-field .optional {
  color: #806b77;
  font-size: 11px;
  font-weight: 700;
}

.testimonial-field input,
.testimonial-field textarea {
  width: 100%;
  border: 2px solid var(--ink);
  background: white;
  color: var(--ink);
  border-radius: 0;
  padding: 12px 13px;
  font-size: 15px;
  outline: none;
}

.testimonial-field input {
  min-height: 46px;
}

.testimonial-field textarea {
  min-height: 135px;
  resize: vertical;
  line-height: 1.55;
}

.testimonial-field input:focus,
.testimonial-field textarea:focus {
  box-shadow: 5px 5px 0 var(--marigold);
}

.testimonial-social-title {
  grid-column: 1 / -1;
  margin: 7px 0 -6px;
  padding-top: 17px;
  border-top: 2px solid var(--ink);
}

.testimonial-human-check {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-human-check .math-question {
  border: 2px solid var(--ink);
  background: var(--acid);
  min-width: 112px;
  padding: 11px 12px;
  text-align: center;
  font-weight: 1000;
}

.testimonial-human-check input {
  max-width: 120px;
}

.testimonial-privacy-note {
  margin: 22px 0 0;
  color: #715d69;
  font-size: 12px;
  line-height: 1.6;
}

.testimonial-response {
  display: none;
  margin: 18px 0 0;
  border: 2px solid var(--ink);
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 900;
}

.testimonial-response.visible {
  display: block;
}

.testimonial-response.success {
  background: var(--acid);
}

.testimonial-response.error {
  background: #ffd4bf;
}

.testimonial-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.testimonial-form-actions button {
  border: 2px solid var(--ink);
  min-height: 48px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 1000;
}

.testimonial-cancel {
  background: white;
}

.testimonial-submit {
  background: var(--vermilion);
  color: white;
  box-shadow: 5px 5px 0 var(--ink);
}

.testimonial-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.testimonial-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .testimonials-section {
    padding: 75px 18px 85px;
  }

  .testimonials-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 35px;
  }

  .testimonials-heading .ink-kicker {
    margin-bottom: 0;
  }

  .testimonials-heading h2 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .testimonial-grid,
  .testimonial-form-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-field.full-width,
  .testimonial-social-title {
    grid-column: auto;
  }

  .testimonial-dialog-header,
  .testimonial-form {
    padding: 22px 18px;
  }

  .testimonial-form-actions {
    flex-direction: column-reverse;
  }

  .testimonial-form-actions button {
    width: 100%;
  }
}

@keyframes testimonial-icon-arrive {
  0% { opacity: 0; transform: translateY(8px) rotate(-12deg) scale(.65); }
  70% { opacity: 1; transform: translateY(-2px) rotate(5deg) scale(1.08); }
  100% { opacity: 1; transform: none; }
}

@keyframes testimonial-dot-wave {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-action-row.is-visible .button-icon,
  .testimonial-open-button:hover .button-icon circle,
  .testimonial-open-button:focus-visible .button-icon circle {
    animation: none;
  }

  .testimonial-open-button .button-icon svg {
    transition: none;
  }
}
