.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Blog filter pills aligned to shared sg-pill design tokens */
.blog-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: var(--sg-radius-md, 14px);
    background: rgba(255, 255, 255, 0.7);
    color: var(--sg-ink, #031E47);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--sg-border, #e6edf5);
    box-shadow: 0 6px 18px rgba(3, 30, 71, 0.06);
}

.blog-filter:focus-visible {
    outline: 2px solid var(--sg-accent, #00DF7A);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 223, 122, 0.15);
}

.blog-filter:hover {
    background: var(--sg-ink, #031E47);
    color: #ffffff;
    border-color: var(--sg-ink, #031E47);
    box-shadow: 0 8px 24px rgba(3, 30, 71, 0.15);
    transform: translateY(-1px);
}

.blog-filter.active {
    background: var(--sg-ink, #031E47);
    color: #ffffff;
    border-color: var(--sg-ink, #031E47);
    box-shadow: 0 8px 24px rgba(3, 30, 71, 0.15);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eeeeee;
}

.blog-card__image {
    height: 200px;
    background: #f5f5f5;
    overflow: hidden;
    display: block;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__image--placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cccccc;
}

.blog-card__image--placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

.blog-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.blog-card__category {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.blog-card__author {
    color: #4b5563;
}

.blog-card__author a {
    color: inherit;
}

.blog-card__author a:hover {
    color: #031E47;
}

.blog-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    color: #031E47;
}

.blog-card__title a {
    text-decoration: none;
    color: inherit;
}

.blog-card__excerpt {
    color: #555555;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #031E47;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    min-height: 44px;
}

.blog-card__link:hover {
    color: #00DF7A;
}

.blog-empty {
    text-align: center;
    padding: 4rem 1rem;
    background: #f9f9f9;
    border-radius: 12px;
}

.blog-empty h3 {
    color: #031E47;
}

.blog-empty p {
    color: #666666;
    margin-bottom: 2rem;
}

.blog-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: #cccccc;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    text-decoration: none;
    color: #031E47;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.page-link.active {
    background: #00DF7A;
    color: #031E47;
    font-weight: 700;
}

.page-link:hover:not(.active) {
    background: #e0e0e0;
}

@media (max-width: 480px) {
    .blog-card__image {
        height: 180px;
    }

    .blog-card__content {
        padding: 1.25rem;
    }

    .blog-card__title {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-filter,
    .page-link,
    .blog-card__link {
        transition: none;
    }
}
