@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
    --bg:       #f8fafc;
    --surface:  #ffffff;
    --surface2: #f1f5f9;
    --border:   #e2e8f0;
    --primary:  #0f172a;
    --accent:   #2563eb;
    --text:     #1e293b;
    --muted:    #64748b;
    --radius:   8px;
    --container:1100px;
    --shadow:   0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    --shadow-md:0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}
*,*::before,*::after { box-sizing:border-box;margin:0;padding:0; }
html { font-size:16px; scroll-behavior:smooth; }
body { background:var(--bg);color:var(--text);font-family:'Inter',system-ui,-apple-system,sans-serif;line-height:1.7; }
img { max-width:100%;height:auto; }
a { color:var(--accent); text-decoration:none; }
a:hover { color:var(--primary); }

/* ── Container ────────────────────────────────────────────────────────────── */
.container { max-width:var(--container);margin:0 auto;padding:0 24px; }

/* ── Blog header ─────────────────────────────────────────────────────────── */
.blog-header {
    background:rgba(255,255,255,0.97);
    border-bottom:1px solid var(--border);
    padding:0;
    position:sticky;
    top:0;
    z-index:100;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    box-shadow:0 1px 0 var(--border);
}
.blog-header-inner { display:flex;align-items:center;justify-content:space-between;gap:20px;height:64px; }
.blog-header-logo { display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0; }
.blog-logo-svg { flex-shrink:0;display:block; }
.blog-logo-text {
    font-size:1.05rem;
    font-weight:800;
    letter-spacing:-.03em;
    color:var(--primary);
    line-height:1;
    white-space:nowrap;
}
.blog-nav { display:flex;gap:2px;align-items:center; }
.blog-nav a { padding:6px 12px;border-radius:6px;font-size:.875rem;font-weight:500;color:var(--muted);transition:all .15s ease;white-space:nowrap; }
.blog-nav a:hover { color:var(--primary);background:var(--surface2); }
.blog-nav a.active { color:var(--accent);font-weight:600; }
.blog-search-form { display:flex;gap:0;flex-shrink:0; }
.blog-search-form input { background:var(--surface2);border:1px solid var(--border);border-right:none;border-radius:8px 0 0 8px;padding:8px 14px;color:var(--text);font-size:.85rem;width:190px;font-family:inherit;transition:border-color .15s; }
.blog-search-form input:focus { outline:none;border-color:var(--accent); }
.blog-search-form input::placeholder { color:#94a3b8; }
.blog-search-form button { background:var(--accent);border:none;border-radius:0 8px 8px 0;padding:8px 14px;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s; }
.blog-search-form button:hover { background:#1d4ed8; }

/* ── Blog index ──────────────────────────────────────────────────────────── */

/* == Hero Banner == */
.blog-hero-banner {
    background:linear-gradient(135deg,#0f172a 0%,#1e40af 100%);
    padding:64px 0 72px;
    position:relative;
    overflow:hidden;
}
.blog-hero-banner::before {
    content:"";
    position:absolute;inset:0;opacity:.4;
    background-image:radial-gradient(circle at 20% 50%, rgba(99,102,241,.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(59,130,246,.3) 0%, transparent 40%);
}
.blog-hero-banner-inner { position:relative;z-index:1;text-align:center;max-width:720px;margin:0 auto;padding:0 24px; }
.blog-hero-banner-tag {
    display:inline-flex;align-items:center;gap:6px;
    background:rgba(255,255,255,0.1);color:rgba(255,255,255,0.9);
    border:1px solid rgba(255,255,255,0.2);border-radius:100px;
    padding:5px 16px;font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:24px;
}
.blog-hero-banner h1 {
    font-family:"Playfair Display",Georgia,serif;
    font-size:clamp(2rem,5vw,3.4rem);font-weight:800;color:#fff;line-height:1.2;letter-spacing:-.02em;margin-bottom:18px;
}
.blog-hero-banner p { color:rgba(255,255,255,0.72);font-size:1.1rem;line-height:1.7;max-width:540px;margin:0 auto; }

.blog-hero { padding:56px 0 40px;border-bottom:1px solid var(--border); }
.blog-hero h1 { font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;margin-bottom:10px; }
.blog-hero p { color:var(--muted);font-size:1.05rem;max-width:580px; }

.blog-layout { display:grid;grid-template-columns:1fr 300px;gap:48px;padding:48px 0; }
@media(max-width:860px) { .blog-layout { grid-template-columns:1fr; } }

/* ── Post card ───────────────────────────────────────────────────────────── */
.post-card { display:grid;grid-template-columns:220px 1fr;gap:24px;padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:24px;transition:box-shadow .2s, border-color .2s; }
.post-card:hover { box-shadow:var(--shadow-md);border-color:#cbd5e1; }
@media(max-width:640px) { .post-card { grid-template-columns:1fr;padding:16px;gap:16px; } }
.post-card-img { border-radius:8px;overflow:hidden;aspect-ratio:16/9; }
.post-card-img img { width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s; }
.post-card:hover .post-card-img img { transform:scale(1.04); }
.post-card-meta { display:flex;align-items:center;gap:10px;font-size:.78rem;color:var(--muted);margin-bottom:8px;flex-wrap:wrap; }
.post-card-meta a { color:var(--muted); }
.post-card-meta a:hover { color:var(--primary); }
.post-card h2 { font-size:1.12rem;font-weight:700;line-height:1.4;margin-bottom:8px; }
.post-card h2 a { color:var(--text); }
.post-card h2 a:hover { color:var(--primary); }
.post-card p { color:var(--muted);font-size:.9rem;line-height:1.65;margin-bottom:12px; }
.post-card-footer { display:flex;align-items:center;gap:16px;font-size:.8rem;color:var(--muted); }
.cat-badge { background:#eff6ff;color:var(--accent);padding:4px 12px;border-radius:20px;font-size:.75rem;font-weight:600;letter-spacing:.02em; }
.read-more { color:var(--accent);font-weight:600;font-size:.85rem;display:inline-flex;align-items:center;gap:4px; }
.read-more:hover { color:var(--primary); }

/* Featured post card */
.post-card-featured { grid-template-columns:1fr;padding:32px; }
.post-card-featured .post-card-img { aspect-ratio:21/9;max-height:400px; }
.post-card-featured h2 { font-size:1.5rem; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar-widget { margin-bottom:32px; }
.sidebar-widget h3 { font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-bottom:14px;padding-bottom:8px;border-bottom:1px solid var(--border); }
.sidebar-cats li { list-style:none;padding:7px 0;border-bottom:1px solid var(--border); }
.sidebar-cats li:last-child { border-bottom:none; }
.sidebar-cats a { color:var(--text);font-size:.9rem;display:flex;justify-content:space-between; }
.sidebar-cats a:hover { color:var(--primary); }
.sidebar-cats span { color:var(--muted);font-size:.8rem; }
.tag-cloud { display:flex;flex-wrap:wrap;gap:7px; }
.tag-cloud a { background:var(--surface2);border:1px solid var(--border);color:var(--muted);padding:4px 12px;border-radius:20px;font-size:.78rem; }
.tag-cloud a:hover { border-color:var(--primary);color:var(--primary); }

/* ── Single post ─────────────────────────────────────────────────────────── */
.single-layout { display:grid;grid-template-columns:1fr 280px;gap:56px;padding:48px 0; }
@media(max-width:960px) { .single-layout { grid-template-columns:1fr; } }

.article-header { padding:48px 0 32px;border-bottom:1px solid var(--border); }
.article-cats { display:flex;gap:8px;margin-bottom:14px; }
.article-title { font-size:clamp(1.6rem,4vw,2.6rem);font-weight:800;line-height:1.25;margin-bottom:16px; }
.article-meta { display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:.85rem;color:var(--muted); }
.article-meta-author { display:flex;align-items:center;gap:8px; }
.article-meta-author img { width:32px;height:32px;border-radius:50%;object-fit:cover; }
.article-meta span { display:flex;align-items:center;gap:5px; }
.article-excerpt { font-size:1.1rem;color:var(--muted);line-height:1.7;margin-top:16px; }

.article-featured-img { width:100%;border-radius:12px;overflow:hidden;margin-bottom:32px;aspect-ratio:16/9; }
.article-featured-img img { width:100%;height:100%;object-fit:cover;display:block; }
.article-featured-img figcaption { font-size:.8rem;color:var(--muted);text-align:center;padding:8px 0;font-style:italic; }

/* ── Article body ────────────────────────────────────────────────────────── */
.article-body { font-size:1.02rem;line-height:1.85; }
.article-body h2 { font-size:1.5rem;font-weight:700;margin:2em 0 .7em;padding-top:.3em;border-top:1px solid var(--border);color:var(--text); }
.article-body h3 { font-size:1.2rem;font-weight:700;margin:1.6em 0 .6em;color:var(--text); }
.article-body h4 { font-size:1.05rem;font-weight:700;margin:1.4em 0 .5em;color:var(--text); }
.article-body p { margin-bottom:1.3em; }
.article-body ul,.article-body ol { margin:1em 0 1.3em 1.6em; }
.article-body li { margin-bottom:.4em; }
.article-body a { color:var(--accent);text-decoration:underline;text-underline-offset:3px; }
.article-body a:hover { color:var(--primary); }
.article-body blockquote { border-left:4px solid var(--primary);background:var(--surface);padding:16px 20px;border-radius:0 8px 8px 0;margin:1.5em 0;font-style:italic;color:var(--muted); }
.article-body code { background:var(--surface2);border:1px solid var(--border);border-radius:4px;padding:2px 6px;font-size:.88em;font-family:monospace; }
.article-body pre { background:var(--surface2);border:1px solid var(--border);border-radius:8px;padding:16px 20px;overflow-x:auto;margin:1.5em 0; }
.article-body pre code { background:none;border:none;padding:0; }
.article-body img { border-radius:8px;margin:1.8em auto;max-width:100%;height:auto;display:block;box-shadow:var(--shadow); }
.article-body table { width:100%;border-collapse:collapse;margin:1.5em 0; }
.article-body th,.article-body td { padding:10px 14px;border:1px solid var(--border);text-align:left; }
.article-body th { background:var(--surface2);font-weight:700;font-size:.88rem; }
.article-body hr { border:none;border-top:1px solid var(--border);margin:2em 0; }

/* ── Table of Contents ───────────────────────────────────────────────────── */
.toc-box { background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:20px 24px;margin-bottom:32px; }
.toc-box h4 { font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:12px; }
.toc-list { list-style:none; }
.toc-list li { padding:4px 0; }
.toc-list a { color:var(--muted);font-size:.88rem;display:flex;gap:8px;align-items:baseline; }
.toc-list a:hover { color:var(--primary); }
.toc-list .toc-h3 { padding-left:16px; }
.toc-num { color:var(--border);font-size:.75rem;min-width:18px; }

/* ── Tags strip ──────────────────────────────────────────────────────────── */
.article-tags { display:flex;flex-wrap:wrap;gap:8px;margin:32px 0; }
.article-tags a { background:var(--surface2);border:1px solid var(--border);color:var(--muted);padding:4px 14px;border-radius:20px;font-size:.8rem; }
.article-tags a:hover { border-color:var(--primary);color:var(--primary); }

/* ── Author box ──────────────────────────────────────────────────────────── */
.author-box { background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:28px;display:flex;gap:20px;margin:36px 0; }
.author-box-avatar { flex-shrink:0;width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid var(--border); }
.author-box-avatar-placeholder { width:80px;height:80px;border-radius:50%;background:var(--primary);display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-weight:800;color:#fff;flex-shrink:0; }
.author-box-meta h4 { font-size:1.1rem;font-weight:700;margin-bottom:4px;color:var(--primary); }
.author-box-meta .cred { font-size:.78rem;color:var(--accent);margin-bottom:8px;font-weight:600; }
.author-box-meta p { font-size:.88rem;color:var(--muted);line-height:1.65; }
.author-box-social { display:flex;gap:10px;margin-top:12px; }
.author-box-social a { font-size:.8rem;color:var(--muted);border:1px solid var(--border);padding:4px 10px;border-radius:20px; }
.author-box-social a:hover { border-color:var(--primary);color:var(--primary); }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb-bar { padding:12px 0;border-bottom:1px solid var(--border);font-size:.82rem;color:var(--muted); }
.breadcrumb-bar ol { list-style:none;display:flex;flex-wrap:wrap;gap:6px;align-items:center; }
.breadcrumb-bar li { display:flex;align-items:center;gap:6px; }
.breadcrumb-bar li:not(:last-child)::after { content:'›';color:var(--border); }
.breadcrumb-bar a { color:var(--muted); }
.breadcrumb-bar a:hover { color:var(--text); }
.breadcrumb-bar li:last-child { color:var(--text); }

/* ── Related posts ───────────────────────────────────────────────────────── */
.related-posts { margin-top:48px;padding-top:32px;border-top:1px solid var(--border); }
.related-posts h3 { font-size:1rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:20px; }
.related-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:20px; }
@media(max-width:640px) { .related-grid { grid-template-columns:1fr; } }
.related-card { background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow:hidden;transition:box-shadow .2s;box-shadow:var(--shadow); }
.related-card:hover { box-shadow:var(--shadow-md); }
.related-card-img { display:block;aspect-ratio:16/9;overflow:hidden; }
.related-card-img img { width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s; }
.related-card:hover .related-card-img img { transform:scale(1.04); }
.related-card-placeholder { width:100%;height:100%;background:var(--surface2);display:flex;align-items:center;justify-content:center;color:var(--border); }
.related-card-body { padding:14px; }
.related-card-cat { font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--primary);display:inline-block;margin-bottom:6px; }
.related-card h4 { font-size:.9rem;font-weight:700;line-height:1.4;margin-bottom:6px; }
.related-card h4 a { color:var(--text); }
.related-card h4 a:hover { color:var(--primary); }
.related-card small { color:var(--muted);font-size:.77rem; }

/* ── Sticky sidebar (single) ─────────────────────────────────────────────── */
.sticky-sidebar { position:sticky;top:24px; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination { display:flex;justify-content:center;gap:8px;padding:32px 0; }
.pagination a,.pagination span { display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:8px;background:var(--surface);border:1px solid var(--border);font-size:.88rem;color:var(--text); }
.pagination a:hover,.pagination a.active { background:var(--primary);border-color:var(--primary);color:#fff; }

/* ── Archive header ──────────────────────────────────────────────────────── */
.archive-header { padding:48px 0 32px;border-bottom:1px solid var(--border); }
.archive-header .label { font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--primary);margin-bottom:8px; }
.archive-header h1 { font-size:2rem;font-weight:800; }
.archive-header p { color:var(--muted);margin-top:8px; }

/* ── Blog footer ─────────────────────────────────────────────────────────── */
.blog-footer { background:var(--surface);border-top:1px solid var(--border);padding:28px 0;margin-top:48px; }
.blog-footer-inner { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:.85rem;color:var(--muted); }
.blog-footer a { color:var(--muted); }
.blog-footer a:hover { color:var(--primary); }

/* ── FAQ accordion ───────────────────────────────────────────────────────── */
.faq-section { margin:2.5em 0; }
.faq-heading { font-size:1.35rem;font-weight:800;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--border); }
.faq-list { display:flex;flex-direction:column;gap:0; }
.faq-item { border:1px solid var(--border);border-radius:10px;overflow:hidden;margin-bottom:10px; }
.faq-question {
    width:100%;background:var(--surface);border:none;padding:16px 20px;
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    color:var(--text);font-size:.97rem;font-weight:600;text-align:left;cursor:pointer;
    transition:background .15s;
}
.faq-question:hover { background:var(--surface2); }
.faq-question[aria-expanded="true"] { background:var(--surface2);color:var(--primary); }
.faq-question[aria-expanded="true"] .faq-icon { transform:rotate(180deg);stroke:var(--primary); }
.faq-icon { flex-shrink:0;transition:transform .2s; }
.faq-answer { background:var(--surface2); }
.faq-answer-inner { padding:16px 20px;color:var(--muted);font-size:.93rem;line-height:1.75;border-top:1px solid var(--border); }

/* ── Reading progress bar ────────────────────────────────────────────────── */
#read-progress { position:fixed;top:0;left:0;height:3px;background:linear-gradient(90deg,var(--primary),var(--accent));width:0;z-index:999;transition:width .1s; }

/* ── No-image placeholder ────────────────────────────────────────────────── */
.no-img-placeholder { background:linear-gradient(135deg,var(--surface2),var(--surface));display:flex;align-items:center;justify-content:center;color:var(--border);font-size:2rem; }

/* ── Cookie consent banner ───────────────────────────────────────────────── */
.cookie-consent { position:fixed;left:0;right:0;bottom:0;z-index:10001;background:var(--surface);border-top:1px solid var(--border);box-shadow:0 -4px 24px rgba(0,0,0,.5);transform:translateY(100%);transition:transform .35s ease; }
.cookie-consent.visible { transform:translateY(0); }
.cookie-consent-inner { max-width:var(--container);margin:0 auto;padding:20px 24px;display:flex;align-items:center;gap:24px;flex-wrap:wrap; }
.cookie-consent-text { flex:1 1 420px;margin:0;font-size:.9rem;line-height:1.6;color:var(--muted); }
.cookie-consent-text a { color:var(--accent);text-decoration:underline; }
.cookie-consent-text a:hover { color:var(--primary); }
.cookie-consent-actions { display:flex;gap:12px;flex-shrink:0; }
.cookie-consent-btn { padding:11px 24px;border-radius:20px;font-size:.85rem;font-weight:700;cursor:pointer;white-space:nowrap;transition:all .2s; }
.cookie-consent-decline { background:transparent;border:2px solid var(--border);color:var(--text); }
.cookie-consent-decline:hover { border-color:var(--primary);color:var(--primary); }
.cookie-consent-accept { background:var(--primary);border:2px solid var(--primary);color:#fff; }
.cookie-consent-accept:hover { background:var(--primary);box-shadow:0 4px 12px rgba(15,23,42,.2); }
@media(max-width:640px) {
    .cookie-consent-inner { padding:16px; }
    .cookie-consent-actions { width:100%; }
    .cookie-consent-btn { flex:1; }
}

/* Desktop default for toggle (hidden) */
.blog-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.blog-menu-toggle:hover {
    background: var(--surface2);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media(max-width:768px) {
    .blog-header {
        padding: 10px 0;
    }
    .blog-header-inner {
        flex-wrap: wrap;
        height: auto;
        gap: 12px;
        justify-content: space-between;
        position: relative;
    }
    .blog-header-logo {
        order: 1;
    }
    .blog-menu-toggle {
        display: flex;
        order: 2;
    }
    /* Dropdown Nav menu on mobile */
    .blog-nav {
        order: 4;
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 2px;
        background: var(--surface);
        border-top: 1px solid var(--border);
        padding: 10px 0 6px;
        margin-top: 4px;
    }
    .blog-nav.is-open {
        display: flex;
    }
    .blog-nav a {
        display: block;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 0.95rem;
    }
    .blog-nav a.active {
        background: var(--surface2);
    }
    .blog-search-form {
        order: 3;
        width: 100%;
    }
    .blog-search-form input {
        flex: 1;
        width: 100%;
    }
    .author-box { flex-direction:column; }
    .article-meta { gap:10px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EDITORIAL HOME PAGE
═══════════════════════════════════════════════════════════════════════════ */

/* Container with top breathing room */
.editorial-container { padding-top:48px; padding-bottom:72px; }

/* ── Featured Post Showcase ─────────────────────────────────────────────── */
.featured-post-showcase {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0;
    border-radius:16px;
    overflow:hidden;
    background:var(--surface);
    box-shadow:0 8px 30px rgba(0,0,0,0.08);
    border:1px solid var(--border);
    margin-bottom:56px;
}
@media(max-width:800px) { .featured-post-showcase { grid-template-columns:1fr; } }

.fps-img-link { display:block;overflow:hidden; }
.fps-img {
    width:100%;height:100%;object-fit:cover;display:block;
    min-height:340px;
    transition:transform .5s ease;
}
.fps-img-link:hover .fps-img { transform:scale(1.04); }

.fps-content {
    padding:48px 44px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:14px;
}
.fps-content .cat-badge { align-self:flex-start; }
.fps-content h2 {
    font-family:'Playfair Display', Georgia, serif;
    font-size:clamp(1.6rem,2.5vw,2.2rem);
    font-weight:800;
    line-height:1.25;
    letter-spacing:-.02em;
    color:var(--primary);
}
.fps-content h2 a { color:inherit; }
.fps-content h2 a:hover { color:var(--accent); }
.fps-excerpt { color:var(--muted);font-size:1rem;line-height:1.7; }
.fps-meta { display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:.85rem;color:var(--muted);margin-top:6px;padding-top:16px;border-top:1px solid var(--border); }
.fps-meta a { color:var(--text);font-weight:600; }
.fps-meta a:hover { color:var(--accent); }

/* ── 3-Column Post Grid ─────────────────────────────────────────────────── */
.post-grid-3 {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:32px;
}
@media(max-width:960px) { .post-grid-3 { grid-template-columns:repeat(2,1fr); gap:24px; } }
@media(max-width:600px) { .post-grid-3 { grid-template-columns:1fr; } }

/* ── Grid Card ──────────────────────────────────────────────────────────── */
.grid-card {
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:12px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    transition:transform .25s ease, box-shadow .25s ease;
    box-shadow:var(--shadow);
}
.grid-card:hover {
    transform:translateY(-5px);
    box-shadow:0 16px 40px rgba(0,0,0,0.1);
}

.grid-card-img-wrapper {
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:var(--surface2);
    flex-shrink:0;
}
.grid-card-img-wrapper a { display:block;height:100%; }
.grid-card-img-wrapper img {
    width:100%;height:100%;object-fit:cover;display:block;
    transition:transform .4s ease;
}
.grid-card:hover .grid-card-img-wrapper img { transform:scale(1.06); }

.grid-card-content {
    padding:20px 22px 24px;
    display:flex;
    flex-direction:column;
    flex:1;
    gap:8px;
}
.grid-card-content h3 {
    font-size:1.05rem;
    font-weight:700;
    line-height:1.4;
    letter-spacing:-.01em;
    color:var(--primary);
    flex:1;
}
.grid-card-content h3 a { color:inherit; }
.grid-card-content h3 a:hover { color:var(--accent); }
.grid-card-excerpt {
    font-size:.875rem;
    color:var(--muted);
    line-height:1.65;
    margin-top:2px;
}
.grid-card-footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    flex-wrap:wrap;
    font-size:.78rem;
    color:var(--muted);
    margin-top:8px;
    padding-top:12px;
    border-top:1px solid var(--border);
}
.grid-card-author { font-weight:600;color:var(--text); }

/* Header already styled above */

/* ── Improved Blog Footer ───────────────────────────────────────────────── */
.blog-footer {
    background:#0f172a;
    border-top:none;
    padding:40px 0 28px;
    margin-top:72px;
}
.blog-footer-inner { flex-direction:column;align-items:center;text-align:center;gap:20px; }
.blog-footer-brand {
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size:1.15rem;
    font-weight:800;
    color:#fff;
    letter-spacing:-.02em;
    text-decoration:none;
}
.blog-footer-brand:hover { color:rgba(255,255,255,0.85); }
.blog-footer-links { display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px; }
.blog-footer a { color:rgba(255,255,255,0.65);font-size:.85rem; }
.blog-footer a:hover { color:#fff; }
.blog-footer-copy { color:rgba(255,255,255,0.4);font-size:.8rem;margin-top:8px; }
.blog-footer-copy a { color:rgba(255,255,255,0.55); }
.blog-footer-copy a:hover { color:#fff; }

/* ── Article title serif font ───────────────────────────────────────────── */
.article-title { font-family:'Playfair Display', Georgia, serif; }

/* ── Section divider on home ────────────────────────────────────────────── */
.editorial-section-title {
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:32px;
    font-size:.75rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:var(--muted);
}
.editorial-section-title::after {
    content:'';
    flex:1;
    height:1px;
    background:var(--border);
}
