.news-container {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: repeat(1, minmax(250px, 1fr));
    justify-items: center;
}

.news-card {
    background-color: #fefefe;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    outline: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
@media (min-width: 768px) {
    .news-card {
        width: 70%;
        max-width: 70%;
    }
    .news-card-header img {
        width: 100%;
        height: 10px;
    }

    .news-card-body p {
        font-size: 16px;
    }

    .news-card-body {
        font-size: 2;
    }

    .news-tag {
        font-size: 5px;
        font-weight: bold;
    }
}

@media (max-width: 768px) {
    .news-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .news-card {
        width: 80%;
    }

    .news-card-header img {
        width: 10%;
        height: 100px;
    }
    .news-tag {
        font-size: 2px;
    }
}

.news-card-header img {
    width: 100%;

    object-fit: cover;
}
.news-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
}

.news-tag {
    background: #ffffff;
    border-radius: 50px;

    margin: 0;
    color: #ffffff;
    padding: 2px 10px;
    text-transform: uppercase;
    cursor: pointer;
}
.news-tag-teal {
    background-color: #47bcd4;
}
.tag-purple {
    background-color: #5e76bf;
}
.tag-pink {
    background-color: #80deea;
}

.news-card-body p {
    margin: 0 0 0px;
}
.news-user {
    display: flex;
    margin-top: auto;
}

.news-user-info small {
    color: #545d7a;
}

/* test */

.featured-post {
    padding: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.163);
    display: flex;
    align-items: start;
    gap: 20px;
    transition: 0.25s;
}
.newsdesk {
    width: 100%;
    display: flex;
    align-items: start;
    flex-direction: column;
}

.featured-post:hover {
    box-shadow: 1px 5px 37px 0px #00000035;
    transform: scale(1.01);
}
