#recomendations {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1rem;
}

.reference-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.reference-title h2 {
  font-size: var(--font-size-h2);
  text-transform: uppercase;
  font-family: 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

#horizontal-line-title {
  border-bottom: 0.2rem solid var(--color-text);
  margin: 0.5rem auto;
  width: 10%;
}

.testimonial {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.5rem;
  text-align: center;
}

.testimonial-text {
  order: 0;
  margin: 1.7em 0 2em 2em;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  max-width: 100%;
}

.recommender {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  order: 1;
}

.avatar {
  width: clamp(5rem, 15vw, 7.5rem);
  height: auto;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin: 0.5rem 0;
  text-transform: capitalize;
  color: var(--color-accent);
}

.role {
  font-size: 0.9rem;
  text-transform: initial;
  color: var(--color-text);
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  transition: transform 0.3s ease;
}

.download-icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: all 0.2s ease;
}

.download-link:hover .download-icon {
  filter: invert(40%) sepia(29%) saturate(664%) hue-rotate(303deg) brightness(95%) contrast(92%);
  transform: translateY(-2px);
}

.download-link:hover {
  transform: translateY(-2px);
}

.testimonial-sep {
  order: 2;
  width: 60%;
  border: 0;
  border-bottom: 0.15rem solid var(--color-accent);
  margin: 1rem auto;
}

@media (768px <= width <= 1399px) {
  #recomendations {
    padding: 2rem 3rem;
    gap: 3rem;
  }

  .testimonial {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
  }

  .recommender {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    order: 0;
  }

  figcaption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }

  .name,
  .role {
    text-align: left;
  }

  .download-link {
    justify-content: flex-end;
    margin: 0;
  }

  .testimonial-text {
    order: 1;
    margin: 2em 0 0 0;
  }

  .testimonial-sep {
    order: 2;
    margin-top: 2rem;
  }
}

@media (width >= 1400px) {
  #recomendations {
    padding: 3em 4em;
    gap: 4rem;
    scroll-margin-top: -10em;
  }

  .reference-title {
    text-align: center;
    margin-bottom: 3rem;
    grid-column: 1 / -1;
    margin-top: 7em;
  }

  .reference-title h2 {
    padding-bottom: 0.5em;
  }

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

  .testimonial-text {
    grid-column: 1 / 2;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    padding-right: 3.5em;
  }

  .testimonial-text::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
  }

  .testimonial-sep {
    grid-column: 1 / 2;
  }

  .recommender {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding-left: 4rem;
    border-left: 3px solid var(--color-text);
  }

  .avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    object-fit: cover;
  }

  figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    max-width: 50%;
  }

  .name,
  .role {
    margin: 0.3em 0;
    text-align: left;
  }

  .download-link {
    margin-left: 1rem;
  }

  .download-link:hover {
    transform: translateY(-2px);
  }
}
