@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600&display=swap");

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

body {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-content: center;
  background: hsl(210, 46%, 95%);
  font-family: "Barlow Semi Condensed", sans-serif;
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 90%;
  margin: auto;
}

article > div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

article > div > div {
  margin-left: 1rem;
}

article > p:nth-of-type(1) {
  font-size: 1.5rem;
  margin-top: 1rem;
  font-weight: bold;
  line-height: 2rem;
}

article > p:nth-of-type(2) {
  margin-top: 1rem;
  line-height: 1.3rem;
}

article {
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 2.5rem 3.75rem 3rem -3rem hsl(217, 19%, 35%, 0.25);
}

article:nth-child(1) {
  background: hsl(263, 55%, 52%);
  background-image: url("./images/bg-pattern-quotation.svg");
  background-repeat: no-repeat;
  background-position: top right 10%;
}

article:nth-child(2) {
  background: hsl(217, 19%, 35%);
}

article:nth-child(3) {
  background: hsl(0, 0%, 100%);
}

article:nth-child(4) {
  background: hsl(219, 29%, 14%);
}

article:nth-child(5) {
  background: hsl(0, 0%, 100%);
}

img {
  border-radius: 50%;
}

.name-1 {
  color: hsl(0, 0%, 100%);
}

.graduate-1 {
  color: hsl(0, 0%, 100%, 0.5);
}

.review-1 {
  color: hsl(0, 0%, 100%, 0.7);
}

.overview-1 {
  color: hsl(0, 0%, 100%);
}

.name-2 {
  color: hsl(217, 19%, 35%);
}

.graduate-2 {
  color: hsl(217, 19%, 35%, 0.5);
}

.review-2 {
  color: hsl(217, 19%, 35%, 0.7);
}

.overview-2 {
  color: hsl(217 19% 35%);
}

.daniel {
  border: 2px solid #a775f1;
}

.patrick {
  border: 2px solid #8753d6;
}

@media (min-width: 720px) {
  .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(4, 400px);
    gap: 1.5rem;
    margin: 0;
  }

  article:nth-child(1) {
    grid-column: span 2;
  }

  article:nth-child(4) {
    grid-column: 2/4;
  }

  article:nth-child(5) {
    grid-row: 1/3;
    grid-column: 4;
  }
}
