:root {
  --violet: hsl(263, 55%, 52%);
  --grayish--blue: hsl(217, 19%, 35%);
  --light_grayish-blue: hsl(210, 46%, 95%);
  --blackish--blue: hsl(219, 29%, 14%);
  --white: hsl(0, 0%, 100%);
  --gray: hsl(0, 0%, 81%);
  --font: 'Barlow Semi Condensed', sans-serif;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font);
  font-size: 13px;
}
main {
  display: flex;
  max-width: 1100px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  height: 100%;
  margin-top: 100px;
}
main .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.test {
  padding: 20px 25px;
  background-color: red;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  position: relative;
}
.test .person {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.test .person img {
  border-radius: 50%;
  height: 30px;
  width: 30px;
}

.test .person h4 {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--light_grayish-blue);
  font-family: var(--font);
  opacity: 1;
}
.test .person h4 span {
  opacity: 0.5;
}
h1 {
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}
.testimonial {
  opacity: 0.7;
  color: var(--light_grayish-blue);
  line-height: 1.6;
  font-size: 12px;
}

.container .test:nth-child(3) p,
.container .test:nth-child(3) h1,
.container .test:nth-child(3) h4,
.container .test:nth-child(5) p,
.container .test:nth-child(5) h1,
.container .test:nth-child(5) h4 {
  color: var(--grayish--blue);
}
.container .test:nth-child(1) h1 {
  z-index: 2;
}
.container .test:nth-child(1) img {
  border: 1px solid #ccc;
}
.container .test:nth-child(1):after {
  position: absolute;
  content: '';
  background: url(/images/bg-pattern-quotation.svg) no-repeat center
    center/cover;
  top: 0%;
  right: 15%;
  height: 90px;
  width: 90px;
  z-index: 1;
  opacity: 0.7;
}
@media (min-width: 600px) {
  .container .test:nth-child(1) {
    background-color: var(--violet);
    grid-row-start: 1;
    grid-column-start: 1;
    grid-column-end: 3;
  }

  .container .test:nth-child(2) {
    background-color: var(--grayish--blue);
  }
  body {
    background-color: var(--light_grayish-blue);
  }
  .container .test:nth-child(3) {
    background-color: var(--white);
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
  }
  .container .test:nth-child(4) {
    grid-column-start: 2;
    grid-column-end: 4;
    background-color: var(--blackish--blue);
  }
  .container .test:nth-child(5) {
    background-color: var(--white);
    grid-column-start: 4;
    grid-row-start: 1;
    grid-row-end: 3;
  }
}
@media (max-width: 600px) {
  main .container {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin: 0px 40px;
  }
  .container .test:nth-child(1) {
    background-color: var(--violet);
  }

  .container .test:nth-child(2) {
    background-color: var(--grayish--blue);
  }

  .container .test:nth-child(3) {
    background-color: var(--white);
  }
  .container .test:nth-child(4) {
    background-color: var(--blackish--blue);
  }
  .container .test:nth-child(5) {
    background-color: var(--white);
  }
}
