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

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 150%;
    letter-spacing: 0;
    font-family: 'Figtree', sans-serif;
}

.container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: rgb(244, 208, 78);
}

.card{
    width: 384px;
    padding: 24px;
    border: 1px solid rgb(17, 17, 17);
    border-radius: 20px;
    box-shadow: 8px 8px 0px 0px rgb(0, 0, 0);
    background: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-img > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.card-content{
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: start;
    align-items: flex-start;
}

.card-content-category{
    width: 100%;
    border-radius: 4px;
    background: rgb(244, 207, 77);
    padding: 4px 12px 4px 12px;
    font-size: 14px;
    font-weight: 800;
}

.card-content-date{
    font-size: 14px;
    font-weight: 500;
}

.card-content-title{
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
    &:hover{
        color: rgb(244, 207, 77);
    }
}

.card-content-description{
    color: rgb(107, 107, 107);
    font-size: 16px;
    font-weight: 500;
}

.card-author{
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.card-author-name{
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 480px) {
    .card {
        width: 327px;
    }
    .card-content-category{
        font-size: 12px;
    }

    .card-content-date{
        font-size: 12px;
    }
    .card-content-title{
        font-size: 20px;
    }
    .card-content-description{
        font-size: 14px;
    }
}