/* ===== BLOG ===== */

/* ── Listing ── */
.blog-listing-wrap {
    padding-bottom: 3rem;
}

.blog-listing-header {
    padding: 2rem 1.5rem 2.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    margin-bottom: 2.5rem;
}

.blog-listing-title {
    color: #1a202c;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem !important;
}

.blog-listing-subtitle {
    color: #718096;
    max-width: 620px;
    margin: 0 auto !important;
}

/* ── Cards ── */
.blog-cards {
    margin-top: 0 !important;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem 1.5rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s, transform 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.blog-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    transform: translateY(-2px);
    color: inherit;
}

.blog-card-body {
    flex: 1;
}

.blog-card-date {
    font-size: 0.78rem;
    color: #a0aec0;
    margin-bottom: 0.6rem;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.blog-card-desc {
    font-size: 0.88rem;
    color: #4a5568;
    line-height: 1.6;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f4f8;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-read-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e53e3e;
    white-space: nowrap;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.blog-tag {
    font-size: 0.72rem !important;
    border-radius: 6px !important;
}

/* ── Single post ── */
.blog-post-wrap {
    padding-bottom: 3rem;
}

.blog-back-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 1.25rem;
    text-decoration: none;
    transition: color 0.15s;
}

.blog-back-link:hover {
    color: #1a202c;
}

/* ── Post topbar (back + lang switcher) ── */
.blog-post-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-post-topbar .blog-back-link {
    margin-bottom: 0;
}

.blog-lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5568;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.3em 0.75em;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.blog-lang-switch-btn:hover {
    background: #edf2f7;
    color: #1a202c;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.blog-post-date {
    font-size: 0.82rem;
    color: #a0aec0;
}

/* ── Post content (Bulma .content overrides) ── */
.blog-post-content h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.4px;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.blog-post-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #e53e3e;
    padding-left: 0.75rem;
}

.blog-post-content p {
    color: #4a5568;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.blog-post-content p.blog-intro {
    font-size: 1.05rem;
    color: #2d3748;
    border-left: 3px solid #cbd5e0;
    padding-left: 1rem;
    margin-bottom: 1.75rem;
}

.blog-post-content ol,
.blog-post-content ul {
    color: #4a5568;
    line-height: 1.8;
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.blog-post-content li {
    margin-bottom: 0.35rem;
}

/* ── CTA box inside post ── */
.blog-cta-box {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-top: 2.5rem;
    color: #2d3748;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-cta-box a {
    color: #e53e3e;
    font-weight: 600;
    text-decoration: none;
}

.blog-cta-box a:hover {
    text-decoration: underline;
}
