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

@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/static/Figtree-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/static/Figtree-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

:root {
  --primary-background: #f4d04e;
  --card-background: #ffffff;
  --gray-900: #111111;
  --gray-500: #6b6b6b;
}

body {
  background-color: #f4d04e;
  display: flex;
  justify-content: center;
  height: 100vh;
  align-items: center;
}

.blog-card-container {
  background-color: var(--card-background);
  /* width: clamp(20.438rem, 24rem, 28rem); */
  width: 24rem;
  padding: 1.5rem;
  border: 0.063rem solid var(--gray-900);
  border-radius: 1.25rem;
  box-shadow: 0.5rem 0.5rem 0 rgba(0, 0, 0, 1);
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  border-radius: 0.625rem;
  display: block;
  margin-block-end: 1.5rem;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-block-end: 1.5rem;
}

/* Blog content */
.blog-card-category span {
  font-family: "Figtree", sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 150%;
  letter-spacing: 0rem;
  color: var(--gray-900);
  background-color: var(--primary-background);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
}

.blog-card-date {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 150%;
  letter-spacing: 0rem;
  color: var(--gray-900);
}

.blog-card-title {
  font-family: "Figtree", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 150%;
  letter-spacing: 0rem;
  color: var(--gray-900);
}

.blog-card-title:hover {
  color: var(--primary-background);
  cursor: url("../assets/images/Pointer.png"), auto;
}

.blog-card-description {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 150%;
  letter-spacing: 0rem;
  color: var(--gray-500);
}

/* Blog card Author */
.blog-card-author {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.blog-card-author img {
  width: 32px;
}

.author-name {
  font-family: "Figtree", sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 150%;
  letter-spacing: 0rem;
  color: var(--gray-900);
}

/* Responsiveness */
@media screen and (max-width: 425px) {
  .blog-card-container {
    width: 20.438rem;
  }

  .blog-card-category span,
  .blog-card-date {
    font-size: 0.75rem;
  }

  .blog-card-title {
    font-size: 1.25rem;
  }

  .blog-card-description {
    font-size: 0.875rem;
  }
}
