.blog-posts-section {
    padding: 58px 0 74px;
    background: #fff;
    color: #4d3766;
}

.blog-posts-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.blog-posts-header h2 {
    margin: 0;
    color: #4d3766;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.1;
}

.blog-posts-link {
    display: inline-block;
    margin-top: 4px;
    color: #4d3766;
    font-size: 11px;
    text-decoration: underline;
}

.blog-posts-link:hover {
    color: #4d3766;
}

.blog-posts-controls {
    display: flex;
    gap: 8px;
    padding-top: 4px;
}

.blog-posts-controls a {
    display: inline-flex;
    width: 72px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #755394;
    color: #fff;
    text-decoration: none;
}

.blog-posts-controls a:hover {
    background: #62447e;
    color: #fff;
}

/* .blog-posts-grid {
    margin-left: -18px;
}

.blog-posts-grid>li {
    box-sizing: border-box;
    width: 33.333%;
    padding-left: 18px;
} */

.blog-card,
.blog-card a {
    height: 100%;
}

.blog-card a {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: #eef8fc;
    color: #4d3766;
    text-decoration: none;
}

.blog-card a:hover {
    color: #4d3766;
    text-decoration: none;
}

.blog-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 14px 16px;
}

.blog-card h3 {
    margin: 0 0 8px;
    color: #4d3766;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
}

.blog-card time {
    display: inline-block;
    color: #4d3766;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.blog-card p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: #5f5278;
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

.blog-card-link {
    color: #4d3766;
    font-size: 14px;
    text-decoration: underline;
    font-weight: 500;
}

@media (max-width: 767px) {
    .blog-posts-section {
        padding: 44px 0 56px;
    }

    .blog-posts-header {
        align-items: center;
        margin-bottom: 24px;
    }

    .blog-posts-header h2 {
        font-size: 28px;
    }

    .blog-posts-grid {
        margin-left: 0;
    }

    .blog-posts-grid>li {
        width: 100%;
        padding-left: 0;
    }

    .blog-card h3 {
        font-size: 20px;
    }
}