.latest-posts {
    padding: 64px 0;
    position: relative;
}

.latest-posts .boxes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow: hidden;
}

.latest-posts .btn-wrapper {
    display: flex;
    justify-content: center;
}

.latest-posts .posts-outer-wrapper {
    display: flex;
    gap: 32px;
}

.latest-posts.blog-posts .posts-outer-wrapper{
    flex-wrap: wrap;
}

.latest-posts .posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.latest-posts .posts-outer-wrapper>* {
    width: calc(50% - 16px)
}

.latest-posts h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1.4px;
}

.latest-posts .post-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    height: 100%;
}

.latest-posts .post-content h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    font-family: 'Ysabeau';
}

.latest-posts .read-more {
    font-size: 18px;
    font-weight: 500;
    color: var(--Color-1);
    display: flex;
    justify-content: flex-end;
}

.latest-posts .single-post {
    position: relative;
}

.latest-posts .post-thumb {
    position: relative;
}

.latest-posts .post-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.40);
    font-weight: 900;
    line-height: 100%;
    text-transform: uppercase;
}

.latest-posts .single-post .post-thumb {
    line-height: 0.8;
    height: auto;
}

/* latest post */

.latest-posts .single-post.post-latest .post-thumb img {
    aspect-ratio: 768 / 380;
    object-fit: cover;
    width: 100%;
    height: auto;
}

.latest-posts .single-post.post-latest {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.latest-posts .single-post.post-latest .post-badge {
    font-size: 64px;
    letter-spacing: -3.2px;
}

/* latest post */

.latest-posts .single-post:not(.post-latest) .post-thumb img {
    aspect-ratio: 244 / 143;
    width: 100%;
    height: 100%;
    height: auto;
    object-fit: cover;
    min-width: 244px;
    max-width: 244px;
}

.latest-posts .single-post:not(.post-latest) {
    display: flex;
    align-items: center;
    gap: 16px;
}

.latest-posts .single-post:not(.post-latest) .post-badge {
    font-size: 28px;
    letter-spacing: -1.4px;
}

@media (max-width:1440px) {
    .latest-posts .single-post.post-latest .post-badge {
        font-size: 48px;
    }

    .latest-posts .single-post:not(.post-latest) .post-badge {
        font-size: 22px;
        left: 8px;
        bottom: 8px;
    }

    .latest-posts h3 {
        font-size: 24px;
    }
}

@media (max-width:1199px) {
    .latest-posts {
        padding: 48px 0;
    }
}

@media (max-width:991px) {
    .latest-posts .posts-outer-wrapper {
        flex-wrap: wrap;
    }

    .latest-posts .posts-outer-wrapper>* {
        width: 100%;
    }

    .latest-posts .single-post.post-latest .post-badge {
        font-size: 64px;
    }

    .latest-posts .single-post.post-latest .post-thumb img {
        aspect-ratio: 343 / 240;
    }

    .latest-posts .single-post:not(.post-latest) .post-thumb img {
        aspect-ratio: 1;
        min-width: 136px;
        max-width: 136px;
    }

    .latest-posts .single-post h3 {
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .latest-posts .single-post:not(.post-latest) h3 {
        font-size: 20px;
    }

}

@media (max-width:768px) {
    .latest-posts {
        padding: 32px 0;
    }
}