@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --Purple-50: hsl(260, 100%, 95%);
  --Purple-300: hsl(264, 82%, 80%);
  --Purple-500: hsl(263, 55%, 52%);

  --Grey-100: hsl(214, 17%, 92%);
  --Grey-200: hsl(0, 0%, 81%);
  --Grey-400: hsl(224, 10%, 45%);
  --Grey-500: hsl(217, 19%, 35%);
  --Dark-blue: hsl(219, 29%, 14%);
  --Black: hsl(0, 0%, 7%);
}

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

img {
  max-width: 100%;
  display: block;
}

body {
  background-color: var(--Grey-100);
  min-height: 100vh;
  font-size: 13px;
  font-family: "Barlow Semi Condensed", sans-serif;
  display: grid;
  place-content: center;
}

.testimonials-grid {
  max-width: 1440px;
  margin: 1rem;
  display: grid;
  grid-template-areas: "item1 item1 item2 item3" "item4 item5 item5 item3";
  grid-auto-columns: 1fr;
  gap: 1.5rem;
}

.testimonials-grid .item {
  padding: 2rem 2.65rem;
  border-radius: 0.5rem;
  box-shadow: 12px 12px 10px var(--Grey-200);
}

.testimonials-grid .item .preson {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.testimonials-grid .item:nth-child(1) {
  grid-area: item1;
  background-color: var(--Purple-500);
  position: relative;
  z-index: 2;
}

.testimonials-grid .item:nth-child(1) .quote-icon {
  width: 130px;
  position: absolute;
  top: 0;
  right: 100px;
  z-index: -1;
}

.testimonials-grid .item:nth-child(2) {
  grid-area: item2;
  background-color: var(--Grey-500);
}

.testimonials-grid .item:nth-child(3) {
  grid-area: item3;
  background-color: white;
}

.testimonials-grid .item:nth-child(3) .preson,
.testimonials-grid .item:nth-child(4) .preson {
  color: var(--Dark-blue);
}

.testimonials-grid .item:nth-child(3) .top-quote,
.testimonials-grid .item:nth-child(4) .top-quote {
  color: var(--Black) !important;
}

.testimonials-grid .item:nth-child(3) .bottom-quote,
.testimonials-grid .item:nth-child(4) .bottom-quote {
  color: var(--Dark-blue) !important;
}

.testimonials-grid .item:nth-child(4) {
  grid-area: item4;
  background-color: white;
}

.testimonials-grid .item:nth-child(5) {
  grid-area: item5;
  background-color: var(--Dark-blue);
}

.testimonials-grid .item .preson h2 {
  font-size: 1.15rem;
}

.testimonials-grid .item .preson img {
  width: 35px;
  border-radius: 50%;
}

.testimonials-grid .item .top-quote {
  margin-bottom: 1.5rem;
  font-size: 1.65rem;
  font-weight: 600;
  color: white !important;
}

.testimonials-grid .item .bottom-quote {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--Grey-100) !important;
}

footer {
  margin-block: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-areas:
      "item1 item1 item2 item2"
      "item4 item4 item3 item3"
      "item5 item5 item5 item5"
  }

  .testimonials-grid .item:nth-child(1) .quote-icon {
    right: 40px;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-areas:
      "item1"
      "item2"
      "item4"
      "item5"
      "item3"
  }

  .testimonials-grid .item:nth-child(1) .quote-icon {
    right: 40px;
  }
}