/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 0.9375rem;
  color: hsla(234, 12%, 34%, 0.5);
}

.main-container {
  background-color: hsl(0, 0%, 98%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.component {
  padding: 4.875rem 2rem;
}
.component__title {
  font-weight: 200;
  font-size: clamp(1.5rem, 1.2359rem + 1.1268vw, 2.25rem);
  color: hsl(234, 12%, 34%);
}
.component__highlight {
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2359rem + 1.1268vw, 2.25rem);
  color: hsl(234, 12%, 34%);
}
.component__description {
  line-height: 1.625rem;
  max-width: 33.75rem;
  margin: 1rem auto 0 auto;
}
.component__cards-container {
  margin-top: 4.75rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 1.5rem;
}
.component__card {
  background-color: white;
  text-align: left;
  padding: 1.75rem;
  border-top-width: 0.25rem;
  border-top-style: solid;
  border-radius: 0.5rem;
  -webkit-box-shadow: 0px 15px 30px -11px hsla(213, 47%, 67%, 0.5);
  -moz-box-shadow: 0px 15px 30px -11px hsla(213, 47%, 67%, 0.5);
  box-shadow: 0px 15px 30px -11px hsla(213, 47%, 67%, 0.5);
}
.component__card:nth-child(1) {
  border-top-color: hsl(180, 62%, 55%);
}
.component__card:nth-child(2) {
  border-top-color: hsl(0, 78%, 62%);
}
.component__card:nth-child(3) {
  border-top-color: hsl(34, 97%, 64%);
}
.component__card:nth-child(4) {
  border-top-color: hsl(212, 86%, 64%);
}
.component__card-title {
  font-size: 1.25rem;
  color: hsl(234, 12%, 34%);
  font-weight: 600;
}
.component__card-description {
  font-size: 0.8125rem;
  line-height: 1.5rem;
}
.component__card-img-container {
  margin-top: 2rem;
  display: flex;
  justify-content: end;
}

@media only screen and (min-width: 37.5rem) {
  .component__cards-container {
    margin-top: 4rem;
    grid-template-columns: repeat(2, 1fr);
    max-width: 69.375rem;
  }
  .component__card {
    min-height: 15.625rem;
  }
}
@media only screen and (min-width: 64rem) {
  .component__cards-container {
    grid-template-columns: repeat(3, 1fr);
    max-width: 69.375rem;
    gap: 1.875rem;
    align-items: center;
    grid-template-areas: "card-1 card-2 card-4" "card-1 card-3 card-4";
  }
  .component__card:nth-child(1) {
    grid-area: card-1;
  }
  .component__card:nth-child(2) {
    grid-area: card-2;
  }
  .component__card:nth-child(3) {
    grid-area: card-3;
  }
  .component__card:nth-child(4) {
    grid-area: card-4;
  }
}
