/* Blog Listing */
.blog-listing-header {
    margin-bottom: 2rem;
}

.blog-listing-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
}

.blog-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-cat-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.blog-cat-link:hover,
.blog-cat-link.active {
    background: #d32f2f;
    color: #fff;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-placeholder {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.blog-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #d32f2f;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-date {
    font-size: 0.8rem;
    color: #999;
}

.blog-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #999;
    font-size: 1.1rem;
}

/* Blog Article (Single Post) */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

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

.blog-header {
    margin-bottom: 2rem;
}

.blog-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
    margin: 0 0 0.75rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #888;
}

.blog-date i {
    margin-right: 0.25rem;
}

.blog-category-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
    background: #d32f2f;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-category-badge:hover {
    background: #b71c1c;
    color: #fff;
}

/* Blog Content Typography */
.blog-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.blog-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: #222;
}

.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: #333;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.35rem;
}

.blog-content blockquote {
    border-left: 4px solid #d32f2f;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: #fafafa;
    color: #555;
    font-style: italic;
}

.blog-content a {
    color: #d32f2f;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #b71c1c;
}

.blog-back-link {
    max-width: 800px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.blog-back-link a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
}

.blog-back-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .blog-header h1 {
        font-size: 1.4rem;
    }

    .blog-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
