.posts {
    padding: 32px 0;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    position: relative;
    background-image: url(../../assets/images/latest-post-bg.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;
}

/* 
.posts::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(../../assets/images/latest-post-bg.svg);
    background-repeat: no-repeat;
    background-size: contain;
} */

.posts .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.posts .btn-wrapper {
    margin: 0 auto;
}

.posts .posts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.posts .post-single {
    width: calc(50% - 20px);
    display: flex;
    align-items: center;
    gap: 20px;
}

.posts .post-single .post-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.posts .post-thumb {
    min-width: 190px;
    max-width: 190px;
    height: 136px;
    width: 100%;
    display: flex;
    overflow: hidden;
}

.posts .post-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform .3s ease;
}

.posts .post-single:hover .post-thumb img {
    transform: scale(1.05);
}

.posts .post-date {
    color: var(--brick);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
}

.posts .post-data h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 22px;
    font-weight: 500;
}

.posts .post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 14px;
}

.posts .post-single .post-button {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.posts .post-data h3 {
    color: var(--antracyte);
}

.posts .btn-wrapper {
    justify-content: center;
}

.posts .related-posts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.posts .related-posts-wrapper>* {
    width: calc(50% - 20px);
}

.posts .related-posts-wrapper .related-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.posts .related-posts-wrapper .post-single {
    width: 100%;
}

.posts .related-posts-wrapper .post-thumb {
    min-width: 280px;
    max-width: 280px;
    width: 100%;
    height: 225px;
}

.posts .post-featured {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 40px 30px;
    color: #fff;
}

.posts .post-featured .post-data {
    z-index: 4;
    position: relative;
    gap: 10px;
}

.posts .post-featured .post-date {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Alegreya Sans';
}

.posts .post-featured h3 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

.posts .post-featured .post-excerpt {
    -webkit-line-clamp: 1;
    line-clamp: 1;
    column-rule: #fff;
    font-size: 18px;
}

.posts .post-featured::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.20) 48.44%, rgba(0, 0, 0, 0.50) 100%);
}

.posts .post-single.post-promoted {
    border: 1px solid var(--red);
    position: relative;
    padding: 32px;
}

.posts .post-single.post-promoted::after {
    content: 'ARTYKUŁ SPONSOROWANY';
    position: absolute;
    right: 5px;
    top: 5px;
    font-family: 'Alegreya';
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--red);
    width: auto;
    height: auto;
    text-align: right;
}

@media (max-width:1199px) {
    .posts {
        padding: 64px 0;
    }

    .posts .posts-wrapper {
        gap: 16px;
    }

    .posts .content-wrapper {
        gap: 32px;
    }

    .posts .post-location {
        font-size: 16px;
    }

    .posts .related-posts-wrapper>* {
        width: 100%;
    }

    .posts .post-featured {
        aspect-ratio: 4/2;
    }
}


@media (max-width:991px) {

    .posts .related-posts-wrapper .related-right,
    .posts .posts-wrapper {
        gap: 20px;
    }

    .posts .post-single {
        width: 100%;
    }

    .posts .related-posts-wrapper .post-thumb {
        min-width: 190px;
        max-width: 190px;
        width: 100%;
        height: 136px;
    }

    .posts .post-single.post-promoted {
        padding: 16px;
    }

    .posts .post-single.post-promoted::after {
        right: 2px;
        top: 2px;
    }
}

@media (max-width:768px) {
    .posts .post-featured {
        aspect-ratio: auto;
        min-height: 340px;
    }

    .posts .post-thumb,
    .posts .related-posts-wrapper .post-thumb {
        min-width: 150px;
        width: 100%;
        max-width: 150px;
        height: 120px;
    }

    .posts .post-excerpt {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}