/* ==================================================
   TESTIMONIAL
================================================== */

/* ==================================================
   TESTIMONIAL SECTION
================================================== */

.testimonial {
  background: #f7f8fa;

  padding-block: 5rem;
}

/* ==================================================
   SECTION HEADER
================================================== */

.testimonial .section-header {
  max-width: 680px;

  margin-inline: auto;
  margin-bottom: 3.5rem;

  text-align: center;
}

/* ==================================================
   TESTIMONIAL GRID
================================================== */

.testimonial__grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1.5rem;
}

/* ==================================================
   TESTIMONIAL CARD
================================================== */

.testimonial-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 260px;

  padding: 1.75rem;

  background: #ffffff;

  border: 1px solid #e5e7eb;

  border-radius: 0.85rem;

  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);

  border-color: #d9dde3;

  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.07);
}

/* ==================================================
   RATING
================================================== */

.testimonial-card__rating {
  margin-bottom: 1rem;

  color: #f59e0b;

  font-size: 0.8rem;

  letter-spacing: 0.15em;
}

/* ==================================================
   TESTIMONIAL TEXT
================================================== */

.testimonial-card__text {
  margin-bottom: 1.5rem;

  color: #374151;

  font-size: 0.9rem;

  line-height: 1.75;
}

.testimonial-card__text::before {
  content: "“";

  margin-right: 0.15rem;

  color: #f59e0b;

  font-size: 1.5rem;
  font-weight: 700;

  line-height: 0;
}

.testimonial-card__text::after {
  content: "”";

  margin-left: 0.1rem;

  color: #f59e0b;

  font-size: 1.5rem;
  font-weight: 700;

  line-height: 0;
}

/* ==================================================
   TESTIMONIAL AUTHOR
================================================== */

.testimonial-card__author {
  display: flex;
  align-items: center;

  gap: 0.75rem;

  margin-top: auto;
}

/* ==================================================
   AVATAR
================================================== */

.testimonial-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 2.5rem;
  height: 2.5rem;

  background: #14213d;

  border-radius: 50%;

  color: #ffffff;

  font-size: 0.7rem;
  font-weight: 700;
}

/* ==================================================
   AUTHOR INFO
================================================== */

.testimonial-card__author strong {
  display: block;

  margin-bottom: 0.1rem;

  color: #181a1f;

  font-size: 0.8rem;
  font-weight: 700;
}

.testimonial-card__author span {
  display: block;

  color: #9ca3af;

  font-size: 0.7rem;
}

/* ==================================================
   TABLET
   1024px
================================================== */

@media (max-width: 1024px) {
  .testimonial {
    padding-block: 4.5rem;
  }

  .testimonial .section-header {
    margin-bottom: 3rem;
  }

  .testimonial__grid {
    gap: 1.25rem;
  }

  .testimonial-card {
    min-height: 240px;

    padding: 1.4rem;
  }

  .testimonial-card__text {
    font-size: 0.85rem;

    line-height: 1.7;
  }
}

/* ==================================================
   MOBILE
   768px
================================================== */

@media (max-width: 768px) {
  .testimonial {
    padding-block: 4rem;
  }

  .testimonial__grid {
    grid-template-columns: 1fr;

    gap: 1rem;
  }

  .testimonial-card {
    min-height: auto;

    padding: 1.35rem;

    max-width: 600px;

    margin-inline: auto;
  }

  .testimonial-card__text {
    font-size: 0.85rem;
  }
}

/* ==================================================
   SMALL MOBILE
   480px
================================================== */

@media (max-width: 480px) {
  .testimonial {
    padding-block: 3.5rem;
  }

  .testimonial .section-header {
    margin-bottom: 2rem;
  }

  .testimonial-card {
    padding: 1.15rem;
  }

  .testimonial-card__rating {
    margin-bottom: 0.8rem;

    font-size: 0.7rem;
  }

  .testimonial-card__text {
    margin-bottom: 1.25rem;

    font-size: 0.8rem;

    line-height: 1.65;
  }

  .testimonial-card__avatar {
    width: 2.25rem;
    height: 2.25rem;

    font-size: 0.65rem;
  }

  .testimonial-card__author strong {
    font-size: 0.75rem;
  }

  .testimonial-card__author span {
    font-size: 0.65rem;
  }
}
