.posts-section__wrapper {
    padding: 56px 0;
    background: #ffffff;
}

.posts-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.posts-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.posts-section__title {
    font-family: var(--primary-font-family);
    font-size: 24px;
    font-weight: 700;
    line-height: 125%;
    color: #061346;
}

.news_guides_section__more_btn {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: #4B4F74 !important;
    gap: 4px;
}

.news_guides_section__more_btn svg {
    -webkit-transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
}

.news_guides_section__more_btn:hover svg {
    -webkit-transform: translateX(4px);
    transform: translateX(4px);
}

.posts-section__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.posts-section__card {
    flex-basis: calc(100% / 4 - (24px * 3 / 4));
}

.posts-section__card.hidden {
    display: none;
}

.posts-section__thumbnail {
    display: block;
    margin-bottom: 16px;
}

.posts-section__thumbnail img {
    width: 100%;
    height: 152px;
    border-radius: 8px;
    object-fit: cover;
}

.posts-section__post-category {
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 150%;
    display: block;
    margin-bottom: 4px;
    color: #2C67FF;
}

.posts-section__post-title {
    font-family: var(--primary-font-family);
    font-size: 18px;
    font-weight: 700;
    line-height: 125%;
    display: -webkit-box;
    overflow: hidden;
    height: auto;
    max-height: 90px;
    margin-bottom: 8px;
    text-overflow: ellipsis;
    color: #061346;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.posts-section__author-and-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.posts-section__author-avatar img {
    width: 20px;
    height: 20px;
    border-radius: 40px;
    object-fit: cover;
    aspect-ratio: 1;
}

.posts-section__author-name,
.posts-section__date {
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 150%;
    color: #4B4F74;
}

.posts-section__view-all-btn {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 248px;
    height: 40px;
    margin: 0 auto;
    padding: 10px 24px;
    cursor: pointer;
    text-align: center;
    color: #4B4F74;
    border: 1px solid #E4E4EE;
    border-radius: 100px;
}

@media screen and (max-width: 991px) {
    .posts-section__wrapper {
        padding: 32px 0;
    }

    .posts-section {
        gap: 12px;
    }

    .posts-section__header {
        align-items: center;
    }

    .posts-section__title {
        font-size: 20px;
    }

    .posts-section__card {
        flex-basis: 100%;
        padding-bottom: 16px;
        border-bottom: 1px solid #E4E4EE;
    }

    .posts-section__thumbnail img {
        height: 194px;
    }

    .posts-section__post-title {
        height: 68px;
        -webkit-line-clamp: 3;
    }
}
