/* Blog listing page — v2 */

.blog-header {
    padding: 64px 0 40px;
    text-align: center;
}

.blog-header h1 {
    font-family: var(--v2-font);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--v2-fg);
    margin-bottom: 12px;
}

.blog-header p {
    font-family: var(--v2-font);
    font-size: 1rem;
    color: var(--v2-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Grid ── */

.blog-grid-section {
    padding-bottom: 64px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-empty {
    font-family: var(--v2-font);
    color: var(--v2-muted);
    text-align: center;
    padding: 48px 0;
}

/* ── Card ── */

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--v2-bg-card);
    border: 1px solid var(--v2-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
    color: inherit;
    text-decoration: none;
}

/* ── Image ── */

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

/* ── Body ── */

.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    flex: 1;
}

/* ── Meta (date · author) ── */

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--v2-font);
    font-size: 0.8125rem;
    color: var(--v2-muted);
}

.blog-card-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.blog-card-meta .meta-sep {
    color: var(--v2-border);
    line-height: 1;
}

/* ── Title ── */

.blog-card-title {
    font-family: var(--v2-font);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--v2-primary);
    margin: 0;
    line-height: 1.4;
}

/* ── Excerpt ── */

.blog-card-excerpt {
    font-family: var(--v2-font);
    font-size: 0.9rem;
    color: var(--v2-muted);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

/* ── Read more link ── */

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--v2-font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--v2-primary);
    margin-top: 4px;
}

.blog-card-link svg {
    width: 14px;
    height: 14px;
    display: block;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-link svg {
    transform: translateX(4px);
}

/* ── Responsive ── */

@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .blog-header {
        padding: 40px 0 28px;
    }

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

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-grid-section {
        padding-bottom: 40px;
    }
}
