@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@500;800&display=swap');

body{
    background-color: hsl(47, 88%, 63%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    min-height: 100vh;
}

.card{
    background-color: hsl(0, 0%, 100%);
    max-width: 320px;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 10px 10px black;
}
.category{
    background-color: #F4D04E;
    padding: 12px 4px;
    width: 25%;
    text-align: center;
    border-radius: 5px;
}

img{
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

h2:hover{
    color: #F4D04E;
    cursor: pointer;
}

.publish-date{
    margin-top: 12px;
    margin-bottom: 12px;
    color: hsl(0, 0%, 42%);
}

.title{
    margin-top: 16px;
    margin-bottom: 12px;
}

h2.title{
    font-weight: 800;
    white-space: nowrap;
}

.author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.description{
    color: hsl(0, 0%, 42%);
    line-height: 1.5;
    margin-bottom: 16px;
}

.card > img {
    margin-bottom: 16px;
}

.card-content {
    margin-bottom: 16px;
}

@media (min-width: 1440px) {
    .card {
      max-width: 280px; 
      padding: 32px;
    }
  }
  

  @media (max-width: 374px) {
    .card {
      max-width: 300px;
      padding: 20px;
    }
  }