@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Outfit:wght@100..900&display=swap");

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

body {
  background-color: hsl(47, 88%, 63%);
  font-family: "Outfit", sans-serif;
}

a {
  color: black;
  text-decoration: none;
}

.container {
  height: 565px;
  width: 384px;
  background-color: white;
  border-radius: 20px;
  border: 1px solid black;
  box-shadow: 8px 8px 0px 0px black;
  padding: 1.2rem;
  margin: 3rem auto;
}

.blog-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image img {
  border-radius: 10px;
}

.card-text {
  margin-top: 1.2rem;
  margin-left: 5px;
}

.yellow-bg {
  background-color: hsl(47, 88%, 63%);
  padding: 4px 12px;
  border-radius: 4px;
  width: 90px;
}

.published-date {
  font-size: 14px;
  font-weight: 500;
  margin-top: 0.7rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 0.7rem;
  margin-bottom: 1rem;
}

.content {
  color: hsl(0, 0%, 42%);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-avatar {
  display: flex;
  align-items: center;
}

.blog-avatar h4 {
  margin-left: 1rem;
  font-size: 14px;
  font-weight: 800;
}

@media screen and (max-width: 500px) {
  .container {
    width: 90%;
    margin: 2rem auto;
  }

  .blog-image img {
    width: 100%;
  }
}
