/* 
 * BLOG CSS - manhducmci.com
 * File: /assets/css/blog.css
 * Load khi vào trang blog
 */

/* Reset và base styles */
.blog-page,
.blog-container,
.archive-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Main content area */
.content-area {
    max-width: 100% !important;
}

/* Posts grid */
.posts-grid,
.wp-block-query {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Individual post */
.post {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Post image */
.post-image {
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post:hover .post-image img {
    transform: scale(1.05);
}

/* Post content */
.post-content {
    padding: 25px;
}

.post-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 600;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: #007cba;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Read more button */
.read-more {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #005a87;
}

/* Single post */
.single-post .post-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.single-post .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-numbers {
    padding: 10px 18px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #666;
    text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Responsive */
@media (max-width: 1024px) {
    .posts-grid,
    .wp-block-query {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding: 20px 15px;
    }
    
    .posts-grid,
    .wp-block-query {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .single-post .post-title {
        font-size: 1.8rem;
    }
}