/* Blog Styles */

.blog-search {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.blog-search input {
    max-width: 480px;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
}

.blog-filters {
    background: #f8f9fa;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filters-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f0f2f5;
}

.post-body {
    padding: 1.25rem;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: .5rem;
}

.post-excerpt {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: .5rem;
    align-items: center;
    color: #6c757d;
    font-size: .9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 3rem;
}

/* Article page */
.article-hero {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.article-hero h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: .5rem;
}

.article-content-section {
    padding: 2rem 0;
}

.post-content p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.post-categories {
    margin-top: 1.5rem;
    color: #6c757d;
}

.comments-section {
    background: #f8f9fa;
    padding: 2rem 0;
}

.comments-list {
    margin-bottom: 2rem;
}

.comment-item {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    margin-bottom: .75rem;
}

.comment-author {
    font-weight: 700;
    color: #2c3e50;
}

.comment-date {
    color: #6c757d;
    font-size: .9rem;
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
}

.form-message {
    margin-top: .75rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .filters-container { gap: 1rem; }
    .post-image { height: 160px; }
    .article-hero h1 { font-size: 1.5rem; }
}





