/*
 * ESS Blog Posts
 * Version 0.1.0
 */

.ess-blog-posts {
    width: 100%;
}

.ess-blog-article {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid #e5e5e5;
}

.ess-blog-article:first-child {
    padding-top: 0;
}

.ess-blog-article:last-of-type {
    border-bottom: none;
}

.ess-blog-thumbnail {
    flex: 0 0 30%;
    max-width: 300px;
}

.ess-blog-thumbnail a {
    display: block;
}

.ess-blog-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.ess-blog-details {
    flex: 1;
    min-width: 0;
}

.ess-blog-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.35;
}

.ess-blog-title a {
    color: inherit;
    text-decoration: none;
}

.ess-blog-title a:hover {
    text-decoration: underline;
}

.ess-blog-date {
    margin-bottom: 14px;
    font-size: 13px;
    color: #777;
}

.ess-blog-excerpt {
    margin-bottom: 18px;
    line-height: 1.65;
}

.ess-blog-excerpt p {
    margin: 0;
}

.ess-blog-read-more a {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid currentColor;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ess-blog-read-more a:hover {
    background-color: #333;
    color: #fff;
}

.ess-blog-pagination {
    margin-top: 30px;
}

.ess-blog-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ess-blog-pagination a,
.ess-blog-pagination .current {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.ess-blog-pagination .current {
    font-weight: bold;
}

@media (max-width: 767px) {
    .ess-blog-article {
        flex-direction: column;
        gap: 18px;
    }

    .ess-blog-thumbnail {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .ess-blog-title {
        font-size: 20px;
    }
}
