@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;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --yellow-color: #f4d04e;
  --dark-gray-color: #111111;
  --light-gray-color: #6b6b6b;
  --white-color: #fff;
}

body {
  background-color: var(--yellow-color);
  font-family: "Poppins", sans-serif;
  font-style: normal;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

.card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 6px 6px 5px 0px rgba(0, 0, 0, 0.75);
  max-width: 350px;
  display: flex;
  flex-direction: column;
}

.card-img {
  width: 90%;
  height: auto;
  object-fit: cover;
  margin: 15px auto;
  border-radius: 5px;
}

.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tag {
  background-color: #f4da57;
  color: #000;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  width: fit-content;
}

.publish-date {
  font-size: 0.75rem;
  color: #666;
}

.title {
  font-size: 1.25rem;
  font-weight: bold;
}

.description {
  font-size: 0.85rem;
  color: #444;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.author span {
  font-size: 0.85rem;
  font-weight: bold;
}

@media (max-width: 400px) {
  .card {
    max-width: 300px;
  }
}
