* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --clr-primary-400: #7541c8;
  --clr-secondary-400: #48556a;
  --clr-secondary-500: #19212e;
  --clr-neutral-100: #ffffff;
  --clr-neutral-200: #cfcfcf;
  --clr-neutral-300: #ecf2f8;

  --ff-primary: "Barlow Semi Condensed", sans-serif;

  --fw-400: 500;
  --fw-700: 600;

  --fs-300: 0.6875rem;
  --fs-400: 0.8125rem;
  --fs-500: 1.25rem;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 50%;
  aspect-ratio: 1;
}
body {
  background-color: var(--clr-neutral-200);
  font-family: var(--ff-primary);
  font-weight: var(--fw-400);
  padding: 1rem;
}
h1,
h2,
h3 {
  font-weight: var(--fw-700);
}

.testimonial {
  font-size: var(--fs-400);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 2.5rem 3.75rem 3rem -3rem (var(--clr-secondary-400) / 0.25);
}
.text-neutral-100 {
  color: var(--clr-neutral-100);
}
.text-secondary-400 {
  color: var(--clr-secondary-400);
}
.testimonial.quote {
  background-image: url("./images/bg-pattern-quotation.svg");
  background-repeat: no-repeat;
  background-position: top right 10%;
}
.main {
  display: grid;
  gap: 1.5rem;
}
.first-article {
  background-color: var(--clr-primary-400);
}

.second-article {
  background-color: var(--clr-secondary-400);
}
.third-article {
  background-color: var(--clr-neutral-100);
}
.fourth-article {
  background-color: var(--clr-secondary-500);
  color: var(--clr-neutral-100);
}
.fifth-article {
  background-color: var(--clr-neutral-100);
}
.intro {
  display: flex;
  gap: 20px;
}
.img-div {
  width: 10%;
}

.testimonial .name {
  font-size: var(--fs-400);
  font-weight: var(--fw-400);
  line-height: 1;
}

.testimonial .position {
  font-size: var(--fs-300);
  opacity: 0.5;
}

.testimonial > p:first-of-type {
  font-size: var(--fs-500);
  line-height: 1.2;
  margin: 1rem 0;
}
/* .testimonial-grid {
  display: grid;
  gap: 1.5rem;
  grid-auto-columns: 1fr;
  grid-template-areas:
   'one'
   'two'
   'three'
   'four'
   'five';

  padding-block: 2rem;
  width: min(95%, 70rem);
  margin-inline: auto;
} */

/* .testimonial > p:last-of-type {
    opacity: 0.7;
}
.testimonial:nth-child(1) {
  grid-area: one;
}
.testimonial:nth-child(2) {
  grid-area: two;
}
.testimonial:nth-child(3) {
  grid-area: three;
}
.testimonial:nth-child(4) {
  grid-area: four;
}
.testimonial:nth-child(5) {
  grid-area: five;
} */
/* @media screen and (min-width: 33em) {
  .testimonial-grid {
      grid-template-areas:
      "one one"
      "two three"
      "five five"
      "four four";
  }
}

@media screen and (min-width: 38em) {
  .testimonial-grid {
    grid-template-areas:
     'one one'
     'two five'
     'three five'
     'four four';
  }
}

@media screen and (min-width: 54em) {
  .testimonial-grid {
      grid-template-areas:
      "one one two"
      "five five five"
      "three four four";
  }
}

@media screen and (min-width: 75em) {
  .testimonial-grid {
      grid-template-areas:
      "one one two five"
      "three four four five";
  }
} */

/* Large screen */
@media (min-width: 64rem) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem 2rem;
  }
  main {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .first-article {
    grid-column: span 2;
    order: 1;
    margin: 0;
  }
  .second-article {
    order: 2;
    margin: 0;
  }
  .third-article {
    order: 4;
    margin: 0;
  }
  .fourth-article {
    grid-column: span 2;
    order: 5;
    margin: 0;
  }
  .fifth-article {
    order: 3;
    grid-row: span 2;
    margin: 0;
  }
}
