.testimonial-heading {
  position: relative;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonial-heading .quote-mark {
  font-family: arial, sans-serif;
  font-size: 90px;
  line-height: 0.7;
  color: #FFD157;
  font-weight: 700;
}

.testimonial-heading .quote-open {
  align-self: flex-start;
}

.testimonial-heading .quote-close {
  align-self: flex-end;
}



.testimonial-card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 90px 60px;
}

.testimonial-card-link {
  display: block;
  width: 340px;
  color: inherit;
  text-decoration: none;
  cursor: url('https://en-test.qrtranslator.net/wp-content/uploads/2026/10/cursor.svg') 5 32, pointer;
}

@media (max-width: 800px) {
  .testimonial-card-link {
    width: 80%;
  }
}

figure.testimonial-card {
  position: relative;
  background: white;
  margin: 0;
  width: 100%;
  height: auto;
  border-radius: 4px;
  padding: 40px 30px;
  box-shadow: 0 4px 4px 0 #00000033;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.testimonial-card-link:hover figure.testimonial-card {
  box-shadow: 2px 5px 8px 0 #00000054;
}

figure.testimonial-card::before {
  position: absolute;
  top: -20px;
  left: 45%;
  content: '';
  height: 40px;
  width: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.testimonial-card-link:hover figure.testimonial-card::before {
  transform: translateY(-15px) scale(1.1);
}

.testimonial-card figcaption.h3-medium {
  color: #0075DE;
  margin-top: 2em;
  font-family: Roboto, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  border-left: 0;
  font-style: normal;
  font-size: 16px;
  color: #002661;
}

.testimonial-card-link,
.testimonial-card-link:hover,
.testimonial-card-link:focus {
  text-decoration: none;
}

.testimonial-card blockquote {
  color: #002661;
}

.testimonial-card figcaption {
  color: #0075DE;
}

/* Change each pin's colour */
.testimonial-card-link:nth-child(1) figure.testimonial-card::before {
  background: #FFD157;
}

.testimonial-card-link:nth-child(2) figure.testimonial-card::before {
  background: #FFFA5B;
}

.testimonial-card-link:nth-child(3) figure.testimonial-card::before {
  background: #0075DE;
}

.testimonial-card-link:nth-child(4) figure.testimonial-card::before {
  background: #0075DE;
}

.testimonial-card-link:nth-child(5) figure.testimonial-card::before {
  background: #73BDFF;
}

.testimonial-card-link:nth-child(6) figure.testimonial-card::before {
  background: #FFD157;
}

/* Rotate each card slightly to create a desktop look */
/* .testimonial-card-link:nth-child(2) figure.testimonial-card {
  transform: rotate(3deg);
}

.testimonial-card-link:nth-child(3) figure.testimonial-card {
  transform: rotate(-3deg);
}

.testimonial-card-link:nth-child(4) figure.testimonial-card {
  transform: rotate(3deg);
}

.testimonial-card-link:nth-child(5) figure.testimonial-card {
  transform: rotate(-3deg);
}

.testimonial-card-link:nth-child(6) figure.testimonial-card {
  transform: rotate(3deg);
} */

/* Hover rotations */
/* Straighten cards on hover */
.testimonial-card-link:nth-child(1):hover figure.testimonial-card {
  transform: rotate(0deg) translateY(-5px) scale(1.05);
}

.testimonial-card-link:nth-child(2):hover figure.testimonial-card {
  transform: rotate(-3deg) translateY(-5px) scale(1.05);
}

.testimonial-card-link:nth-child(3):hover figure.testimonial-card {
  transform: rotate(3deg) translateY(-5px) scale(1.05);
}

.testimonial-card-link:nth-child(4):hover figure.testimonial-card {
  transform: rotate(-3deg) translateY(-5px) scale(1.05);
}

.testimonial-card-link:nth-child(5):hover figure.testimonial-card {
  transform: rotate(3deg) translateY(-5px) scale(1.05);
}

.testimonial-card-link:nth-child(6):hover figure.testimonial-card {
  transform: rotate(-3deg) translateY(-5px) scale(1.05);
}

/* Keyboard accessibility */
.testimonial-card-link:focus-visible {
  outline: 2px solid #0075DE;
  outline-offset: 6px;
}
