*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-purple: hsl(254, 88%, 90%);
  --secondary-purple: hsl(256, 67%, 59%);
  --primary-yellow: hsl(31, 66%, 93%);
  --secondary-yellow: hsl(39, 100%, 71%);
  --normal-while: hsl(0, 0%, 100%);
  --dark-black: hsl(0, 0%, 7%);
}

body {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background: #f4f4f4;
}

img {
  max-width: 100%;
}

.testimonials {
  max-width: 1200px;
  margin: 100px auto;
  padding: 30px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: rgba(17, 12, 46, 0.1) 0 48px 100px 0;
}

.card__image {
  width: 250px;
  margin-top: 10px;
}

.card:first-child {
  grid-row: 1 / 3;
}

.card:nth-child(2) {
  /* grid-row: 3; */
  grid-column: 2 / 4;
}

.card:nth-child(3) {
  grid-row: 1/ 3;
  grid-column: 4;
}
.card:nth-child(6) {
  grid-row: 3;
  grid-column: 2;
}

.card:last-child {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1rem;
  grid-column: 3 /5;
}

/* Background utility classes */
.bg--purple {
  background: var(--secondary-purple);
  color: #fff;
}

.bg--purple-light {
  background: var(--primary-purple);
}

.bg--yellow {
  background: var(--secondary-yellow);
}

.bg--light-yellow {
  background: var(--primary-yellow);
}

/* Text utility classes */
.text-xxl {
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 500;
}

.text-xl {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
}

.text-lg {
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 400;
}

.text-sm {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 400;
}

.text-center {
  text-align: center;
}

/* text */
.purple-txt {
  color: var(--secondary-purple);
}

.yellow-light {
  color: var(--secondary-yellow);
}

/* Margin Utility classes */
.mg-top {
  margin-top: 0.89rem;
}

.mg-bottom {
  margin-bottom: 0.89rem;
}

/* media quaries
 */

@media (min-width: 375px) {
  .testimonials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card:last-child {
    flex-direction: row-reverse;
  }
}
