/* ── Blog Archive ── */
.blog-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.blog-archive-inner {
    width: 100%;
}

/* ── Filter tabs ── */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.blog-filter-tab {
    display: inline-block;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.blog-filter-tab:hover {
    color: #fff;
    background: #59983E;
    border-color: #59983E;
}
.blog-filter-tab.is-active {
    color: #fff;
    background: #59983E;
    border-color: #59983E;
    font-weight: 600;
}

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

/* ── Card ── */
.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Image */
.blog-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

/* Placeholder (no thumbnail) */
.blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e1 0%, #d4edcc 100%);
    color: #8abb78;
}
.blog-card-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

/* Body */
.blog-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category badge */
.blog-card-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #59983E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* Title */
.blog-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #222;
    margin: 0 0 8px;
}
.blog-card:hover .blog-card-title {
    color: #59983E;
}

/* Excerpt */
.blog-card-excerpt {
    font-size: 13px;
    line-height: 1.55;
    color: #666;
    margin: 0 0 12px;
    flex: 1;
}

/* Date */
.blog-card-date {
    font-size: 11px;
    color: #aaa;
}

/* ── Pagination ── */
.blog-pagination {
    margin-top: 48px;
    text-align: center;
}
.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.blog-pagination .nav-links a,
.blog-pagination .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.blog-pagination .nav-links a {
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}
.blog-pagination .nav-links a:hover {
    color: #fff;
    background: #59983E;
    border-color: #59983E;
}
.blog-pagination .nav-links .current {
    color: #fff;
    background: #59983E;
    border: 1px solid #59983E;
    font-weight: 600;
}
.blog-pagination .nav-links .dots {
    border: none;
    background: none;
    color: #999;
}
.blog-pagination .nav-links .prev,
.blog-pagination .nav-links .next {
    font-size: 13px;
}

/* Empty state */
.blog-empty {
    text-align: center;
    color: #888;
    font-size: 16px;
    padding: 60px 20px;
}

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

@media (max-width: 560px) {
    .blog-archive {
        padding: 24px 16px 40px;
    }
    .blog-filters {
        gap: 6px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    .blog-filter-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .blog-card-title {
        font-size: 15px;
    }
}
