/* ── Page shell ── */
.blog-page {
    background: #eef2f7;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    overflow-x: clip;
    --blog-card-img-h: 220px;
}

html:has(.blog-page),
body.blog-layout {
    overflow-x: clip;
    --blog-card-img-h: 220px;
}
.blog-container {
    width: min(1380px, 96vw);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
@media (min-width: 640px) {
    .blog-container {
        width: min(1400px, 94vw);
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ── Blog listing cards ── */
.blog-list-grid {
    align-items: stretch;
}
.blog-list-grid > article {
    height: 100%;
}

/* ── Hero ── */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #173978 0%, #0f2d5c 55%, #052c65 100%);
    color: #fff;
    overflow: hidden;
}
.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background:
        radial-gradient(circle at 15% 25%, #2fcaf0 0, transparent 42%),
        radial-gradient(circle at 85% 0%, #fff 0, transparent 32%);
    pointer-events: none;
}
.blog-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    padding-bottom: 3.25rem;
}
@media (min-width: 1024px) {
    .blog-hero-inner { padding-bottom: 3.75rem; }
}
.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: rgba(191, 219, 254, 0.85);
    margin-bottom: 1.75rem;
    overflow-x: auto;
    white-space: nowrap;
}
.blog-breadcrumb a { color: inherit; transition: color 0.2s; }
.blog-breadcrumb a:hover { color: #fff; }
.blog-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
}
.blog-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    color: rgba(191, 219, 254, 0.95);
}
.blog-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    max-width: 52rem;
}

/* ── Hero (centered — reference layout) ── */
.blog-hero--centered .blog-hero-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
    text-align: center;
}
.blog-breadcrumb--center { justify-content: center; }
.blog-hero-title--center {
    margin: 0 auto 1.5rem;
    max-width: 100%;
    text-align: center;
}
.blog-meta-row--center {
    justify-content: center;
    margin-bottom: 0;
}
.blog-meta-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 0.375rem;
    background: #2fcaf0;
    color: #052c65;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}
.blog-meta-category:hover { background: #fff; color: #173978; }

/* ── Magazine grid (image + sidebar | content + sidebar) ── */
.blog-body-wrap {
    position: relative;
    z-index: 20;
    padding: 2rem 0 4rem;
    background: #eef2f7;
}
.blog-magazine {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .blog-magazine {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
        gap: 1.25rem 1.75rem;
    }
    .blog-magazine--orphan {
        grid-template-columns: minmax(0, 1fr);
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
    }
    .blog-magazine--orphan .blog-magazine-main {
        grid-column: 1;
        grid-row: auto;
    }
    .blog-magazine--orphan .blog-magazine-featured {
        grid-column: 1;
        grid-row: auto;
    }
    .blog-magazine-featured { grid-column: 1; grid-row: 1; }
    .blog-magazine-aside {
        grid-column: 2;
        grid-row: 1 / -1;
        align-self: start;
        min-width: 0;
    }
    .blog-magazine-main { grid-column: 1; grid-row: 2; }

    .blog-aside-sticky {
        position: sticky;
        top: 6.5rem;
        max-height: calc(100dvh - 7.25rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding-right: 2px;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }
    .blog-aside-sticky::-webkit-scrollbar { width: 4px; }
    .blog-aside-sticky::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
}

.blog-magazine-featured {
    margin: 0;
    border-radius: 0.875rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    line-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-magazine-featured-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    vertical-align: middle;
}

.blog-magazine-main {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    padding: 1.5rem 1.25rem 2rem;
}
@media (min-width: 640px) {
    .blog-magazine-main { padding: 1.75rem 1.5rem 2.25rem; }
}

/* Author card */
.blog-author-card {
    display: flex;
    gap: 1.15rem;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fafbfc;
}
.blog-author-info { flex: 1; min-width: 0; }
.blog-author-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2fcaf0;
    margin: 0 0 0.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.blog-author-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 0.25rem;
    background: rgba(23, 57, 120, 0.08);
    color: #173978;
    font-size: 0.62rem;
}
.blog-author-bio {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0.5rem 0 0.75rem;
}
.blog-author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}
.blog-author-meta i { color: #2fcaf0; margin-right: 0.25rem; }

/* Table of contents */
.blog-toc {
    margin-bottom: 2rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(47, 202, 240, 0.25);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
}
.blog-toc-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #173978;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-toc-title i { color: #2fcaf0; }
.blog-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}
.blog-toc-item {
    margin-bottom: 0.45rem;
    padding-left: 0;
}
.blog-toc-item--h3 { padding-left: 1.25rem; }
.blog-toc-item a {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
}
.blog-toc-item a:hover { color: #173978; text-decoration: underline; }

/* Sidebar panels (Related — NOT sponsored) */
.blog-magazine-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.blog-aside-sticky {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.blog-aside-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem 1.15rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    flex-shrink: 0;
}
.blog-aside-panel-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin: 0 0 0.85rem;
}

.blog-author-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #e2e8f0;
}
.blog-author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #173978, #2fcaf0);
    color: #fff;
    font-weight: 800;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(23, 57, 120, 0.25);
}
.blog-author-name {
    font-weight: 800;
    color: #173978;
    font-size: 1rem;
    line-height: 1.3;
}
.blog-author-role {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.15rem;
}

.blog-lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #475569;
    font-weight: 500;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    background: linear-gradient(90deg, #f0f9ff 0%, #f8fafc 100%);
    border-left: 4px solid #2fcaf0;
    border-radius: 0 0.625rem 0.625rem 0;
}

/* ── Sidebar share (magazine) ── */
.blog-aside-title {
    font-weight: 800;
    color: #173978;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.blog-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.blog-share-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 1rem;
}
.blog-share-btn:hover { color: #fff; transform: translateY(-1px); }
.blog-share-btn--linkedin:hover { background: #0077b5; border-color: #0077b5; }
.blog-share-btn--twitter:hover { background: #0f172a; border-color: #0f172a; }
.blog-share-btn--whatsapp:hover { background: #25D366; border-color: #25D366; }
.blog-share-btn--email:hover { background: #173978; border-color: #173978; }
.blog-aside-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}
.blog-aside-meta dt {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}
.blog-aside-meta dd {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 600;
    margin: 0 0 1rem;
}
.blog-aside-meta dd.highlight { color: #173978; }
.blog-aside-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #173978, #0f2d5c);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    transition: box-shadow 0.2s, transform 0.2s;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(23, 57, 120, 0.2);
}
.blog-aside-cta:hover {
    box-shadow: 0 8px 20px rgba(23, 57, 120, 0.3);
    transform: translateY(-1px);
}

/* ── Article typography ── */
.blog-article {
    color: #334155;
    font-size: 1.0625rem;
    line-height: 1.9;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    max-width: none;
}
.blog-article--full { max-width: none; }
.blog-article > *:first-child { margin-top: 0 !important; }
.blog-article h1, .blog-article h2, .blog-article h3, .blog-article h4 {
    color: #173978;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    scroll-margin-top: 120px;
}
.blog-article h1 { font-size: 1.85rem; margin: 1.5em 0 0.55em; }
.blog-article h2 {
    font-size: 1.5rem;
    margin: 2em 0 0.7em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}
.blog-article h3 { font-size: 1.25rem; margin: 1.6em 0 0.45em; }
.blog-article h4 { font-size: 1.05rem; margin: 1.35em 0 0.35em; color: #0f172a; }
.blog-article p { margin: 0 0 1.2em; }
.blog-article p:empty, .blog-article p:has(br:only-child) { display: none !important; }
.blog-article ul, .blog-article ol { margin: 0.65em 0 1.35em; padding-left: 0; }
.blog-article ul { list-style: none; }
.blog-article ol { list-style: decimal; padding-left: 1.35rem; }
.blog-article li {
    position: relative;
    margin-bottom: 0.55em;
    padding-left: 1.25rem;
    line-height: 1.75;
}
.blog-article ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2fcaf0, #173978);
}
.blog-article strong, .blog-article b { color: #0f172a; font-weight: 700; }
.blog-article a {
    color: #173978;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.blog-article a:hover { color: #2fcaf0; }
.blog-article img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0.75rem;
    margin: 1.75rem 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}
.blog-article blockquote {
    border-left: 4px solid #2fcaf0;
    background: #f8fafc;
    padding: 1.15rem 1.35rem;
    margin: 1.75rem 0;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #1e293b;
}
.blog-article hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}
.blog-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.925rem;
}
.blog-article th, .blog-article td {
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.85rem;
    text-align: left;
}
.blog-article th {
    background: #f1f5f9;
    color: #173978;
    font-weight: 700;
}
.blog-article tr:nth-child(even) td {
    background: #fafbfc;
}
.blog-article table caption {
    caption-side: bottom;
    font-size: 0.85rem;
    color: #64748b;
    padding-top: 0.5rem;
}

/* ── Tags ── */
.blog-tags-block {
    padding-top: 1.75rem;
    margin-top: 1.75rem;
    border-top: 1px solid #e2e8f0;
}
.blog-tags-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}
.blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    background: #eef2ff;
    color: #173978;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid #dbeafe;
    transition: all 0.2s;
}
.blog-tag:hover { background: #173978; color: #fff; border-color: #173978; }
.blog-tags-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.blog-magazine-aside .blog-tags-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
}
.blog-magazine-aside .blog-tag--link {
    display: block;
    width: 100%;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.35;
    word-break: break-word;
    box-sizing: border-box;
}

/* ── FAQ ── */
.blog-faq-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}
.blog-faq-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.blog-faq-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: rgba(23, 57, 120, 0.08);
    color: #173978;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.blog-faq-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #173978;
    line-height: 1.25;
}
.blog-faq-sub { font-size: 0.85rem; color: #64748b; margin-top: 0.15rem; }
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fafbfc;
    margin-bottom: 0.65rem;
}
.faq-item[open] { background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,0.04); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    font-weight: 700;
    color: #173978;
    font-size: 0.95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: #2fcaf0; transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item .faq-answer {
    padding: 0 1.15rem 1.15rem;
    color: #475569;
    line-height: 1.75;
    font-size: 0.95rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.85rem;
    margin: 0 1.15rem 1.15rem;
}

/* ── Actions ── */
.blog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e2e8f0;
}
.blog-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.35rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.blog-btn--outline {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
}
.blog-btn--outline:hover { border-color: #173978; color: #173978; }
.blog-btn--primary {
    background: #173978;
    color: #fff;
    box-shadow: 0 4px 14px rgba(23, 57, 120, 0.25);
}
.blog-btn--primary:hover { background: #2fcaf0; color: #173978; }

/* ── Related ── */
.blog-related {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 3.5rem 0;
}
.blog-related-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.blog-related-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 800;
    color: #173978;
}
.blog-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
}
@media (min-width: 640px) {
    .blog-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .blog-related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Category pill link (hero) ── */
.blog-category-pill--link {
    text-decoration: none;
    color: #fff;
    transition: background 0.2s, border-color 0.2s;
}
.blog-category-pill--link:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
}

/* ── Tag links ── */
.blog-tag--link {
    text-decoration: none;
}
.blog-tag--link:hover {
    background: #173978;
    color: #fff;
    border-color: #173978;
}

/* ── Inline content links to other posts ── */
.blog-inline-link {
    color: #173978;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #2fcaf0;
}
.blog-inline-link:hover { color: #2fcaf0; }

/* ── Continue reading block ── */
.blog-continue-reading {
    margin-top: 2.25rem;
    padding: 1.5rem 1.35rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
}
.blog-continue-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #173978;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-continue-title i { color: #2fcaf0; font-size: 0.95rem; }
.blog-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-link-list li {
    border-bottom: 1px solid #e2e8f0;
}
.blog-link-list li:last-child { border-bottom: none; }
.blog-link-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 0;
    text-decoration: none;
    transition: padding-left 0.2s;
}
.blog-link-item:hover { padding-left: 0.35rem; }
.blog-link-item-title {
    font-weight: 700;
    color: #173978;
    font-size: 0.925rem;
    line-height: 1.45;
}
.blog-link-item:hover .blog-link-item-title { color: #2fcaf0; }
.blog-link-item-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.blog-continue-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #173978;
    text-decoration: none;
}
.blog-continue-all:hover { color: #2fcaf0; }

/* ── Prev / Next navigation ── */
.blog-post-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e2e8f0;
}
@media (min-width: 640px) {
    .blog-post-nav { grid-template-columns: 1fr 1fr; }
}
.blog-post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fafbfc;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-post-nav-item:hover {
    border-color: #2fcaf0;
    box-shadow: 0 4px 12px rgba(47, 202, 240, 0.12);
}
.blog-post-nav-item--next { text-align: right; }
.blog-post-nav-item--empty { display: none; }
@media (min-width: 640px) {
    .blog-post-nav-item--empty { display: block; visibility: hidden; }
}
.blog-post-nav-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}
.blog-post-nav-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #173978;
    line-height: 1.4;
}
.blog-post-nav-item:hover .blog-post-nav-title { color: #2fcaf0; }

/* ── Sidebar article links ── */
.blog-aside-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-aside-links li {
    margin-bottom: 0.65rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}
.blog-aside-links li:last-child {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.blog-aside-viewall {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #2fcaf0;
    text-decoration: none;
    margin-top: 0.85rem;
}
.blog-aside-links a {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-aside-links a:hover { color: #173978; }
.blog-aside-viewall:hover { color: #173978; }
.blog-aside-meta dd.highlight a {
    color: #173978;
    text-decoration: none;
    font-weight: 700;
}
.blog-aside-meta dd.highlight a:hover {
    color: #2fcaf0;
    text-decoration: underline;
}

/* ── Blog card thumbnails (listing + related) ── */
.blog-card-thumb {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.blog-card-thumb-media {
    position: relative;
    width: 100%;
    height: var(--blog-card-img-h);
    min-height: var(--blog-card-img-h);
    max-height: var(--blog-card-img-h);
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-thumb-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}
.blog-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #cbd5e1;
}
.blog-card-thumb-badge {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff;
    color: #173978;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 0.45rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-top: 1px solid #e2e8f0;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.blog-card-thumb-badge:hover {
    background: #173978;
    color: #fff;
}
