﻿/* =========================================
   BlueGrammar - Blog
   Lightweight & Fast
   ========================================= */
.blog-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 45px 20px 70px;
}

.blog-header {
    margin-bottom: 40px;
}

    .blog-header h1 {
        margin-bottom: 12px;
        font-size: 40px;
        line-height: 1.25;
        color: var(--bg-h1);
    }

    .blog-header p {
        margin: 0;
        max-width: 700px;
        color: #546e7a;
        line-height: 1.7;
    }


/* ---------- Posts ---------- */

.blog-post {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-h2);
}

    .blog-post:last-child {
        margin-bottom: 0;
    }

.blog-thumbnail {
    flex: 0 0 400px;
    width: 400px;
    height: 225px;
    overflow: hidden;
}

    .blog-thumbnail img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        border-radius: 5px;
    }

.blog-post-content {
    flex: 1;
    min-width: 0;
}

.blog-post-title {
    margin: 0 0 5px;
    font-size: 22px;
    line-height: 1.3;
}

    .blog-post-title a {
        color: var(--bg-h1);
        text-decoration: none;
    }

        .blog-post-title a:hover {
            color: #a0343a;
        }

.blog-post-date {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bg-h2);
}

.blog-post-excerpt {
    color: #455a64;
    line-height: 1.7;
}

.blog-read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    border: 1px solid var(--bg-button);
    border-radius: 5px;
    background: var(--bg-button);
    color: var(--bg-h1);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

    .blog-read-more:hover {
        background: #f2c9cc;
    }


/* ---------- Pagination ---------- */

.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination-info {
    margin-bottom: 15px;
    color: #607d8b;
    font-size: 14px;
}

.pagination-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #dbe4ea;
    border-radius: 4px;
    background: #ffffff;
    color: var(--bg-h2);
    text-decoration: none;
}

    .pagination-link:hover {
        background: var(--bg-header);
    }

    .pagination-link.current {
        background: var(--bg-h2);
        border-color: var(--bg-h2);
        color: #ffffff;
    }


/* ---------- Empty State ---------- */

.no-posts {
    color: #607d8b;
}


/* ---------- Mobile ---------- */

@media (max-width: 768px) {

    .blog-page {
        padding: 30px 17px 50px;
    }

    .blog-header h1 {
        font-size: 31px;
    }

    .blog-post {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog-thumbnail {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

        .blog-thumbnail img {
            height: auto;
        }

    .blog-post-title {
        margin-bottom: 5px;
    }

    .blog-read-more {
        margin-left: auto;
        margin-right: auto;
    }
}
