:root{
    --primary-color: #010F19;
    --secondary-color: hsla(205, 13%, 51%, 1);
    --darker-secondary-color: hsla(205, 13%, 45%, 1);
    --bg-primary: hsla(220, 12%, 95%, 1);
}
#lastposts-container h2{
    text-align: center;
}

.posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.posts a {
    color: var(--primary-color);
}
.post {
    width: 400px;
    height: 550px;
    margin: 0 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: flex-start;
}
.post .fa-check{
    font-size: 1rem;
    color: var(--bg-primary);
    background-color: var(--darker-secondary-color);
    margin: 0px 3px;
    border-radius: 50px;
    padding: 1px 2px;
}
.post img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.post .post_name{
    text-align: center;
    font-weight: 600;
    margin: 5px 0;
}
.post p{
    overflow: hidden;
    text-overflow: ellipsis;
}
.post .post_location {
    margin: 5px 0;
}
.post .post_date{
    margin: 5px 0;
}
.post .post_description{
    margin: 10px 0;
    height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
    color: var(--darker-secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.post_categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px; 
    overflow: hidden;
    text-overflow: ellipsis;
}
.post .post_category {
    position: relative;
    padding: 1px 10px;
    border-radius: 50px;
    color: var(--bg-primary);
    background-color: var(--darker-secondary-color);
}
@media screen and (max-width: 768px) {
    .post {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .posts a {
        width: 90%;
        display: block;
        margin: 0;
        padding: 0;
    }
}