/* Mobile-first blog styles */
.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0.9rem 3rem;
}

.blog-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.blog-top-nav a {
    color: var(--brand-primary, #059669);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-top-nav a:hover {
    text-decoration: underline;
}

.blog-top-nav-cta {
    border: 1px solid var(--brand-primary, #059669);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 1rem;
}

.blog-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 0.35rem;
    line-height: 1.15;
}

.blog-tagline {
    font-size: 0.9rem;
    color: var(--text-muted, #6b7280);
    margin: 0;
}

.blog-intro {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary, #374151);
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 1.5rem;
}

.blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.blog-post {
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-post-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--bg-accent, #f3f4f6);
}

.blog-post-title {
    margin: 0;
    padding: 0.95rem 1rem 0.3rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.blog-post-title a {
    color: var(--text-primary, #111827);
    text-decoration: none;
}

.blog-post-title a:hover {
    color: var(--brand-primary, #059669);
}

.blog-meta {
    margin: 0;
    padding: 0 1rem;
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
}

.blog-post-body {
    padding: 0.65rem 1rem 1rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-secondary, #374151);
}

.blog-post-body p {
    margin: 0 0 0.8rem;
}

.blog-post-body p:last-child {
    margin-bottom: 0;
}

.blog-post-body a {
    color: var(--brand-primary, #059669);
    font-weight: 600;
}

/* Single article page */
.blog-post-page {
    max-width: 860px;
}

.blog-post-single .blog-post-image {
    aspect-ratio: 16 / 8.5;
}

.blog-post-single .blog-post-title {
    font-size: clamp(1.35rem, 3.7vw, 2rem);
    line-height: 1.25;
}

.blog-post-single .blog-post-body {
    font-size: 1rem;
    line-height: 1.75;
}

.blog-post-single .blog-post-body h2 {
    margin: 1.2rem 0 0.65rem;
    font-size: 1.2rem;
    line-height: 1.35;
}

.blog-post-single .blog-post-body h3 {
    margin: 1rem 0 0.6rem;
    font-size: 1.05rem;
}

.related-posts {
    margin-top: 1rem;
    padding: 1rem;
}

.related-posts h2 {
    margin: 0 0 0.65rem;
    font-size: 1.1rem;
}

.related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.related-posts-list li a {
    display: inline-block;
    color: var(--brand-primary, #059669);
    text-decoration: none;
    line-height: 1.45;
}

.related-posts-list li a:hover {
    text-decoration: underline;
}

.blog-footer-links {
    text-align: center;
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light, #e5e7eb);
    font-size: 0.9rem;
}

.blog-footer-links a {
    color: var(--brand-primary, #059669);
    text-decoration: none;
}

.blog-footer-links a:hover {
    text-decoration: underline;
}

@media (min-width: 640px) {
    .blog-container {
        padding: 1.5rem 1.2rem 3.5rem;
    }

    .blog-posts {
        gap: 1.25rem;
    }

    .blog-post-title {
        padding: 1.1rem 1.15rem 0.35rem;
        font-size: 1.2rem;
    }

    .blog-meta {
        padding: 0 1.15rem;
    }

    .blog-post-body {
        padding: 0.7rem 1.15rem 1.15rem;
    }
}

@media (min-width: 960px) {
    .blog-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.4rem;
    }

    .blog-post-page .blog-posts {
        grid-template-columns: 1fr;
    }
}
