/* ── Blog Hero ── */
.blog-hero {
    padding: 140px 32px 80px; position: relative; overflow: hidden; text-align: center;
}
.blog-hero h1 { font-size: 3rem; font-weight: 900; margin-bottom: 12px; }
.blog-hero-desc { color: var(--text2); font-size: 1.15rem; max-width: 600px; margin: 0 auto 24px; }
.blog-subscribe { display: flex; justify-content: center; }
.nav-links a.active { color: var(--purple); }

/* ── Post Card (list) ── */
.post-card {
    display: flex; gap: 32px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 0; margin-bottom: 24px; overflow: hidden; text-decoration: none; color: inherit;
    transition: .3s;
}
.post-card:hover { border-color: var(--purple); transform: translateY(-3px); color: inherit; }
.post-image { width: 380px; min-height: 200px; flex-shrink: 0; overflow: hidden; background: var(--bg3); }
.post-image img { width: 100%; height: 100%; object-fit: cover; }
.post-content { padding: 28px 28px 28px 0; flex: 1; }
.post-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.post-category {
    padding: 4px 12px; border-radius: 6px; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    background: var(--green-bg); color: var(--green);
}
.post-date { color: var(--text2); font-size: .85rem; }
.post-card h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.post-card p { color: var(--text2); font-size: .9rem; line-height: 1.5; margin-bottom: 14px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 768px) {
    .post-card { flex-direction: column; }
    .post-image { width: 100%; min-height: 180px; }
    .post-content { padding: 20px; }
    .blog-hero h1 { font-size: 2rem; }
}

/* ── Post Article ── */
.post-article { padding: 140px 0 60px; }
.post-article .container { max-width: 900px; padding: 0 16px; }
.post-header { margin-bottom: 40px; }
.post-header h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.3; margin: 12px 0 16px; }

.post-body h2 {
    font-size: 1.6rem; font-weight: 700; margin: 40px 0 16px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border);
    color: var(--purple);
}
.post-body p { color: var(--text); font-size: 1.1rem; line-height: 1.85; margin-bottom: 18px; }
.post-body strong { color: var(--text); }
.post-body ul, .post-body ol { margin: 12px 0 20px 24px; color: var(--text2); }
.post-body li { margin-bottom: 10px; line-height: 1.7; font-size: 1.05rem; }
.post-body img {
    width: 100%; border-radius: 12px; margin: 24px 0;
    border: 1px solid var(--border);
}
.post-body a { color: var(--purple); border-bottom: 1px solid rgba(123,90,255,.3); }
.post-body a:hover { border-bottom-color: var(--purple); }
.post-body code {
    font-family: 'JetBrains Mono', monospace; background: var(--bg3);
    padding: 2px 6px; border-radius: 4px; font-size: .85em;
}
.post-body blockquote {
    border-left: 3px solid var(--purple); padding: 12px 20px; margin: 20px 0;
    background: rgba(123,90,255,.05); border-radius: 0 8px 8px 0;
    font-style: italic; color: var(--text2);
}
.post-body hr {
    border: none; border-top: 1px solid var(--border); margin: 40px 0;
}
.post-body em { color: var(--text2); }

.post-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border);
    flex-wrap: wrap; gap: 16px;
}
.back-link { color: var(--text2); font-weight: 600; transition: .2s; }
.back-link:hover { color: var(--purple); }
