/* Blog Styles */
body {
    background: #fff !important;
}

.blog-header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}
.blog-header h1 { font-size: 2rem; color: #2c3e50; margin-bottom: 10px; }
.blog-header p { color: #666; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.post-card .post-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-card .post-content {
    padding: 20px;
}
.post-card h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.post-card h2 a {
    color: #2c3e50;
    text-decoration: none;
}
.post-card h2 a:hover { color: #4a90d9; }

.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}
.post-meta span { margin-right: 15px; }

.post-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #4a90d9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.read-more:hover { text-decoration: underline; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}
.pagination a {
    color: #4a90d9;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #4a90d9;
    border-radius: 5px;
}
.pagination a:hover { background: #4a90d9; color: #fff; }

.no-posts {
    text-align: center;
    padding: 50px;
    color: #666;
}

/* Single Post */
.single-post { max-width: 800px; margin: 0 auto; }

.post-header {
    text-align: center;
    padding: 20px 0 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.post-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 15px;
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}
.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}
.post-body h2 { font-size: 1.5rem; margin: 30px 0 15px; color: #2c3e50; }
.post-body h3 { font-size: 1.25rem; margin: 25px 0 12px; color: #333; }
.post-body p { margin-bottom: 18px; }
.post-body ul, .post-body ol { margin: 15px 0 20px 25px; }
.post-body li { margin-bottom: 8px; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.post-body a { color: #4a90d9; }
.post-body blockquote {
    border-left: 4px solid #4a90d9;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    font-style: italic;
}

.post-footer {
    padding: 30px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
}
.back-link {
    color: #4a90d9;
    text-decoration: none;
    font-weight: 500;
}
.back-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; }
    .post-header h1 { font-size: 1.5rem; }
    .post-body { font-size: 1rem; }
}
