/* Blog-specific styles */

.blog-hero {
    background: linear-gradient(to bottom, #e6faf8 0%, #fff 100%);
    padding: 120px 24px 48px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.blog-hero p {
    font-size: 18px;
    color: #555;
    margin: 0;
}

/* Blog listing grid */
.blog-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

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

.blog-card-tag {
    display: inline-block;
    background: #e6faf8;
    color: #0a8a7a;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a2332;
    margin: 0 0 10px;
    line-height: 1.35;
}

.blog-card-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.blog-card-meta {
    font-size: 13px;
    color: #999;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* Blog post article */
.blog-post {
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.blog-post-header {
    margin-bottom: 40px;
}

.blog-post-tag {
    display: inline-block;
    background: #e6faf8;
    color: #0a8a7a;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-post-header h1 {
    font-size: 38px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-post-meta {
    font-size: 14px;
    color: #888;
}

.blog-post-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: #1a2332;
    margin: 40px 0 16px;
    line-height: 1.3;
}

.blog-post-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a2332;
    margin: 32px 0 12px;
}

.blog-post-content p {
    font-size: 17px;
    line-height: 1.75;
    color: #333;
    margin: 0 0 20px;
}

.blog-post-content ul,
.blog-post-content ol {
    font-size: 17px;
    line-height: 1.75;
    color: #333;
    margin: 0 0 20px;
    padding-left: 24px;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content strong {
    color: #1a2332;
}

.blog-post-content a {
    color: #0a8a7a;
    text-decoration: underline;
}

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

.blog-post-content blockquote {
    border-left: 4px solid #53F7E6;
    margin: 24px 0;
    padding: 16px 24px;
    background: #f8fffe;
    border-radius: 0 8px 8px 0;
}

.blog-post-content blockquote p {
    margin: 0;
    color: #444;
    font-style: italic;
}

/* CTA box inside posts */
.blog-cta {
    background: linear-gradient(135deg, #e6faf8 0%, #f0fffe 100%);
    border: 1px solid #c8f0eb;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 40px 0;
}

.blog-cta h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a2332;
    margin: 0 0 10px;
}

.blog-cta p {
    font-size: 16px;
    color: #555;
    margin: 0 0 20px;
}

.blog-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #08CFBB 0%, #06b5a3 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(8, 207, 187, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-cta .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 207, 187, 0.4);
    color: #fff;
}

/* Table of contents */
.blog-toc {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 36px;
}

.blog-toc h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin: 0 0 12px;
}

.blog-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-toc li {
    margin-bottom: 6px;
}

.blog-toc a {
    font-size: 15px;
    color: #444;
    text-decoration: none;
    transition: color 0.15s;
}

.blog-toc a:hover {
    color: #0a8a7a;
}

/* Back to blog link */
.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #888;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.15s;
}

.blog-back:hover {
    color: #0a8a7a;
}

/* Language content blocks: Chinese hidden by default, toggled by i18n.js */
.i18n-zh { display: none; }

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 20px 32px;
    }

    .blog-hero h1 {
        font-size: 30px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        padding: 32px 20px 60px;
        gap: 24px;
    }

    .blog-post {
        padding: 100px 20px 60px;
    }

    .blog-post-header h1 {
        font-size: 28px;
    }

    .blog-post-content h2 {
        font-size: 22px;
    }

    .blog-post-content p,
    .blog-post-content ul,
    .blog-post-content ol {
        font-size: 16px;
    }

    .blog-cta {
        padding: 24px 20px;
    }
}
