@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --Very-Dark-Blue: hsl(234, 12%, 34%);
  --Grayish-Blue: hsl(229, 6%, 66%);
  --Very-Light-Gray: hsl(0, 0%, 98%);
  --border-color: hsl(0, 0%, 50%);
  --fw-light: 200;
  --fw-regular: 400;
  --fw-bold: 600;

  color: var(--Grayish-Blue);
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  font-weight: var(--fw-regular);
}

/* body {
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
} */

.custom-card_cyan {
  --border-color: hsl(180, 62%, 55%);
  grid-area: 1 / 1 / 3 / 2;
}

.custom-card_red {
  --border-color: hsl(0, 78%, 62%);
}

.custom-card_orange {
  --border-color: hsl(34, 97%, 64%);
}

.custom-card_blue {
  --border-color: hsl(212, 86%, 64%);
  grid-area: 1 / 3 / 3 / 4;
}

.custom-header {
  text-align: center;
}

.custom-header_subtitle,
.custom-header_title {
  font-size: clamp(1.6rem, 5vw, 2rem);
}

.custom-header_subtitle {
  font-weight: var(--fw-light);
}

.custom-header_title {
  margin-bottom: 1rem;
}

.custom-header_title,
.custom-card_title {
  color: var(--Very-Dark-Blue);
  text-align: center;
}

.custom-header_description {
  max-width: 500px;
  margin: 0 auto;
}

.custom-card_grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, -1fr));
  justify-content: center;
  align-items: center;
  gap: 4.5rem;
}

.custom-card {
  max-width: 320px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 5px solid var(--border-color);
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(23, 79, 138, 0.1);
}

.custom-card_title {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: var(--fw-bold);
}

.custom-card_content {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-align: justify;
}

.custom-card_img {
  margin-left: 80px;
  display: block;
}

@media (max-width: 768px) {
  .custom-card_grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    align-items: stretch;
  }

  .custom-card_cyan {
    grid-area: auto;
  }

  .custom-card_blue {
    grid-area: auto;
  }

  .custom-card {
    max-width: 300px;
  }
}

@media screen and (max-width: 500px) {
  .custom-card_grid {
    grid-template-columns: repeat(1, minmax(200px, 1fr));
  }
}
