/* ============================================================
 * Blog — Schlickmann Construction
 * Uses tokens from design-system.css:
 *   --color-primary  #12243B (navy)
 *   --color-secondary #6D8BB2 (steel)
 *   --color-gold     #B8924E
 * ============================================================ */

/* ─── Reading progress bar (single article) ─── */
.blog-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-gold));
    z-index: 9999;
    transition: width 0.06s linear;
    pointer-events: none;
}

/* ============================================================
 * 1) BLOG INDEX — hero
 * ============================================================ */
.blog-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    padding: 96px 0 80px;
}
.blog-hero-bg {
    position: absolute; inset: 0;
    z-index: -2;
}
.blog-hero-bg picture,
.blog-hero-bg img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.blog-hero-overlay {
    position: absolute; inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(18, 36, 59, 0.60) 0%, rgba(18, 36, 59, 0.85) 100%),
        linear-gradient(135deg, rgba(18, 36, 59, 0.40), rgba(109, 139, 178, 0.20));
}
.blog-hero-inner {
    max-width: 920px;
    text-align: center;
}
.blog-hero-title {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 18px 0 22px;
    color: #fff;
}
.blog-hero-title > span { display: block; }
.blog-hero-title .text-accent {
    color: #B8C8DC;
    display: block;
    margin-top: 4px;
}
.blog-hero-lead {
    max-width: 680px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}
.blog-hero-lead strong { color: #fff; }
.blog-hero-clear {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.blog-hero-clear:hover { color: var(--color-gold); }

/* ============================================================
 * 2) CONTENT SECTION
 * ============================================================ */
.blog-content {
    padding: 72px 0 80px;
    background: #F4F7FB;
}

/* Filter bar */
.blog-filterbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(18, 36, 59, 0.10);
}
.blog-filterbar-info {
    color: var(--text-muted, #5C6F84);
    font-size: 14.5px;
}
.blog-filterbar-info strong { color: var(--color-primary); font-weight: 700; }
.blog-filterbar-info a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.blog-search {
    position: relative;
    display: flex; align-items: center;
}
.blog-search svg {
    position: absolute; left: 14px;
    color: var(--text-muted, #5C6F84);
    pointer-events: none;
}
.blog-search input {
    padding: 10px 16px 10px 40px;
    border: 1.5px solid rgba(18, 36, 59, 0.12);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    width: 280px;
    color: var(--color-primary);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.blog-search input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(109, 139, 178, 0.14);
}

/* Two-column layout */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

/* ============================================================
 * 3) POST CARDS (list)
 * ============================================================ */
.blog-list {
    display: flex; flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.blog-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid rgba(18, 36, 59, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(18, 36, 59, 0.10);
    border-color: rgba(109, 139, 178, 0.30);
}

.blog-card--featured {
    grid-template-columns: 1fr;
}
.blog-card--featured .blog-card-img {
    aspect-ratio: 16 / 7;
    height: auto;
}
.blog-card--featured .blog-card-title {
    font-size: 28px;
    line-height: 1.2;
}
.blog-card--featured .blog-card-body { padding: 28px 32px 32px; }

.blog-card-img {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2c4a 0%, #2d4664 100%);
    aspect-ratio: 4 / 3;
}
.blog-card-img picture, .blog-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card-cat-pill {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 12px;
    background: rgba(18, 36, 59, 0.85);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 999px;
    text-decoration: none;
}
.blog-card-cat-pill--inline {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
    background: rgba(109, 139, 178, 0.14);
    color: var(--color-secondary);
    backdrop-filter: none;
}

.blog-card-body {
    padding: 22px 24px 24px;
    display: flex; flex-direction: column;
    min-width: 0;
}
.blog-card-title {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -0.005em;
}
.blog-card-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.18s ease;
}
.blog-card-title a:hover { color: var(--color-secondary); }
.blog-card-excerpt {
    color: var(--text-muted, #5C6F84);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}
.blog-card-meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    color: var(--text-muted, #5C6F84);
    font-size: 12.5px;
    margin-bottom: 14px;
}
.blog-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap 0.2s ease, color 0.2s ease;
}
.blog-card-link:hover {
    gap: 10px;
    color: var(--color-primary);
}

/* Empty state */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(18, 36, 59, 0.08);
}
.blog-empty svg { color: var(--color-secondary); opacity: 0.6; }
.blog-empty h2 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 22px;
    color: var(--color-primary);
    margin: 14px 0 6px;
}
.blog-empty p { color: var(--text-muted, #5C6F84); margin: 0 0 20px; }
.blog-empty-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.18s ease;
}
.blog-empty-btn:hover { background: var(--color-secondary); transform: translateY(-1px); }

/* ============================================================
 * 4) PAGINATION
 * ============================================================ */
.blog-pagination {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(18, 36, 59, 0.10);
}
.blog-pagination-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    background: #fff;
    border: 1.5px solid rgba(18, 36, 59, 0.12);
    border-radius: 999px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}
.blog-pagination-arrow:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-1px);
}
.blog-pagination-info {
    color: var(--text-muted, #5C6F84);
    font-size: 13.5px;
}
.blog-pagination-info strong { color: var(--color-primary); }

/* ============================================================
 * 5) SIDEBAR (shared by index + show)
 * ============================================================ */
.blog-sidebar {
    display: flex; flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.blog-widget {
    background: #fff;
    border: 1px solid rgba(18, 36, 59, 0.08);
    border-radius: 14px;
    padding: 22px;
}
.blog-widget-title {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(184, 146, 78, 0.50);
    letter-spacing: -0.005em;
}

.blog-widget-cats {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.blog-widget-cats a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px;
    margin: 0 -12px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.18s ease, color 0.18s ease;
}
.blog-widget-cats a:hover {
    background: rgba(109, 139, 178, 0.08);
    color: var(--color-secondary);
}
.blog-widget-count {
    background: rgba(18, 36, 59, 0.08);
    color: var(--text-muted, #5C6F84);
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
}

.blog-widget-recent {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
    gap: 14px;
}
.blog-widget-recent a {
    display: flex; gap: 12px;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.18s ease;
}
.blog-widget-recent a:hover { opacity: 0.75; }
.blog-widget-recent-img {
    flex-shrink: 0;
    width: 72px; height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2c4a 0%, #2d4664 100%);
}
.blog-widget-recent-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.blog-widget-recent span {
    display: flex; flex-direction: column;
    min-width: 0;
}
.blog-widget-recent strong {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.blog-widget-recent em {
    font-style: normal;
    color: var(--text-muted, #5C6F84);
    font-size: 11.5px;
    margin-top: 4px;
}

/* CTA widget */
.blog-widget--cta {
    background: linear-gradient(140deg, var(--color-primary) 0%, #1a2c4a 100%);
    color: #fff;
    border-color: transparent;
}
.blog-widget--cta .blog-widget-title {
    color: #fff;
    border-color: rgba(184, 146, 78, 0.65);
}
.blog-widget--cta p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13.5px;
    line-height: 1.55;
}
.blog-widget-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%;
    padding: 12px 18px;
    gap: 8px;
    background: var(--color-gold);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.3px;
    transition: background 0.18s ease, transform 0.18s ease;
}
.blog-widget-btn:hover {
    background: #a07e3f;
    transform: translateY(-1px);
}
.blog-widget-phone {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.70);
    text-decoration: none;
}
.blog-widget-phone strong { color: #fff; }
.blog-widget-phone:hover { color: rgba(255, 255, 255, 0.95); }

/* ============================================================
 * 6) BLOG SINGLE — hero
 * ============================================================ */
.blog-single-hero {
    position: relative;
    color: #fff;
    padding: 78px 0 64px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a2c4a 100%);
}
.blog-single-hero-bg {
    position: absolute; inset: 0;
    z-index: -2;
}
.blog-single-hero-bg picture,
.blog-single-hero-bg img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.blog-single-hero-overlay {
    position: absolute; inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(18, 36, 59, 0.55) 0%, rgba(18, 36, 59, 0.92) 100%);
}
.blog-single-hero-inner {
    max-width: 880px;
}

.blog-single-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.70);
    margin-bottom: 18px;
}
.blog-single-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.blog-single-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.blog-single-breadcrumb-current { color: rgba(255, 255, 255, 0.95); }

.blog-single-cat-pill {
    display: inline-block;
    padding: 4px 14px;
    background: var(--color-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 16px;
}
.blog-single-cat-pill:hover { background: #a07e3f; }

.blog-single-title {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: clamp(1.8rem, 4.4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 18px;
    color: #fff;
    letter-spacing: -0.015em;
}
.blog-single-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 0 22px;
}
.blog-single-meta {
    display: flex; gap: 22px; flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.blog-single-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* ============================================================
 * 7) BLOG SINGLE — content + sidebar layout
 * ============================================================ */
.blog-single-content {
    padding: 60px 0 72px;
    background: #F4F7FB;
}
.blog-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
}
.blog-single-main {
    background: #fff;
    border: 1px solid rgba(18, 36, 59, 0.08);
    border-radius: 14px;
    padding: 44px 48px;
    min-width: 0;
}

/* Article prose */
.blog-prose {
    color: var(--text-default, #2A3949);
    font-size: 17px;
    line-height: 1.78;
}
.blog-prose > * + * { margin-top: 1.1em; }
.blog-prose h2 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 2em 0 0.6em;
    letter-spacing: -0.01em;
    line-height: 1.25;
    scroll-margin-top: 100px;
}
.blog-prose h3 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1.6em 0 0.5em;
    line-height: 1.3;
    scroll-margin-top: 100px;
}
.blog-prose h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1.4em 0 0.4em;
}
.blog-prose p { margin: 0; }
.blog-prose a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.blog-prose a:hover { color: var(--color-primary); }
.blog-prose strong, .blog-prose b { color: var(--color-primary); font-weight: 700; }
.blog-prose ul, .blog-prose ol { padding-left: 1.4em; }
.blog-prose li + li { margin-top: 0.4em; }
.blog-prose li::marker { color: var(--color-secondary); }
.blog-prose blockquote {
    border-left: 4px solid var(--color-gold);
    padding: 8px 0 8px 22px;
    margin: 1.6em 0;
    font-style: italic;
    color: var(--text-muted, #5C6F84);
    font-size: 18px;
}
.blog-prose blockquote p { margin: 0; }
.blog-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.4em 0;
}
.blog-prose figure { margin: 1.6em 0; }
.blog-prose figcaption {
    font-size: 13px;
    color: var(--text-muted, #5C6F84);
    text-align: center;
    margin-top: 8px;
}
.blog-prose code {
    background: rgba(18, 36, 59, 0.06);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, monospace;
    font-size: 0.92em;
    color: var(--color-primary);
}
.blog-prose pre {
    background: var(--color-primary);
    color: #fff;
    padding: 18px 22px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}
.blog-prose pre code { background: transparent; color: inherit; padding: 0; }
.blog-prose hr {
    border: 0;
    border-top: 1px solid rgba(18, 36, 59, 0.12);
    margin: 2em 0;
}
.blog-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 15px;
}
.blog-prose th, .blog-prose td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(18, 36, 59, 0.10);
    text-align: left;
}
.blog-prose th {
    background: rgba(109, 139, 178, 0.08);
    font-weight: 700;
    color: var(--color-primary);
}

/* ─── Tags ─── */
.blog-single-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(18, 36, 59, 0.10);
}
.blog-tag {
    display: inline-block;
    padding: 5px 13px;
    background: rgba(109, 139, 178, 0.10);
    color: var(--color-secondary);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.blog-tag:hover {
    background: var(--color-secondary);
    color: #fff;
}

/* ─── Share buttons ─── */
.blog-single-share {
    display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 18px 22px;
    background: rgba(109, 139, 178, 0.06);
    border-radius: 10px;
}
.blog-share-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted, #5C6F84);
}
.blog-share-buttons { display: flex; gap: 8px; }
.blog-share-btn {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid rgba(18, 36, 59, 0.10);
    border-radius: 50%;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}
.blog-share-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}
.blog-share-btn[data-share="facebook"]:hover { background: #1877F2; border-color: #1877F2; }
.blog-share-btn[data-share="twitter"]:hover  { background: #000; border-color: #000; }
.blog-share-btn[data-share="linkedin"]:hover { background: #0A66C2; border-color: #0A66C2; }
.blog-share-btn.is-copied { background: #10B981; color: #fff; border-color: #10B981; }

/* ─── Author strip ─── */
.blog-single-author {
    display: flex; gap: 18px;
    margin-top: 32px;
    padding: 22px;
    background: linear-gradient(140deg, rgba(109, 139, 178, 0.08) 0%, rgba(184, 146, 78, 0.06) 100%);
    border-radius: 12px;
    border: 1px solid rgba(18, 36, 59, 0.08);
}
.blog-single-author-avatar {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.blog-single-author-info strong {
    display: block;
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 4px;
}
.blog-single-author-info p {
    margin: 0;
    color: var(--text-muted, #5C6F84);
    font-size: 13.5px;
    line-height: 1.55;
}

/* ─── Sticky sidebar (single) ─── */
.blog-single-sidebar {
    display: flex; flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 100px;
}

/* Table of Contents */
.blog-toc {
    background: #fff;
    border: 1px solid rgba(18, 36, 59, 0.08);
    border-radius: 12px;
    padding: 20px;
}
.blog-toc-header {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(18, 36, 59, 0.08);
}
.blog-toc-list {
    list-style: none;
    margin: 0; padding: 0;
    font-size: 13.5px;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
}
.blog-toc-item { margin: 4px 0; }
.blog-toc-item a {
    display: block;
    padding: 6px 10px;
    border-left: 2px solid transparent;
    color: var(--text-muted, #5C6F84);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.blog-toc-item a:hover {
    color: var(--color-primary);
    background: rgba(109, 139, 178, 0.06);
}
.blog-toc-item a.is-active {
    color: var(--color-primary);
    border-left-color: var(--color-gold);
    font-weight: 600;
    background: rgba(184, 146, 78, 0.05);
}
.blog-toc-item--sub a { padding-left: 24px; font-size: 12.5px; }

/* Mobile TOC (collapsible) */
.blog-toc-mobile { display: none; }
.blog-toc-collapsible {
    background: #fff;
    border: 1px solid rgba(18, 36, 59, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
}
.blog-toc-collapsible summary {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.blog-toc-collapsible summary::-webkit-details-marker { display: none; }
.blog-toc-collapsible[open] summary { margin-bottom: 12px; }
.blog-toc-collapsible .blog-toc-list { padding-left: 8px; }

/* ============================================================
 * 8) RELATED POSTS (single)
 * ============================================================ */
.blog-related {
    padding: 64px 0 72px;
    background: #fff;
    border-top: 1px solid rgba(18, 36, 59, 0.08);
}
.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.blog-related-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(18, 36, 59, 0.08);
    background: #fff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.blog-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(18, 36, 59, 0.10);
    border-color: rgba(109, 139, 178, 0.30);
}
.blog-related-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.blog-related-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2c4a 0%, #2d4664 100%);
}
.blog-related-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.blog-related-card:hover .blog-related-card-img img { transform: scale(1.04); }
.blog-related-card-img--placeholder {
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.30);
}
.blog-related-card-body { padding: 18px 20px 22px; }
.blog-related-card-body h3 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin: 0 0 8px;
    letter-spacing: -0.005em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.blog-related-card-meta {
    display: block;
    color: var(--text-muted, #5C6F84);
    font-size: 12px;
}

/* ============================================================
 * 9) BACK TO TOP
 * ============================================================ */
.blog-back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(18, 36, 59, 0.30);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.18s ease;
    z-index: 50;
    display: flex; align-items: center; justify-content: center;
}
.blog-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.blog-back-to-top:hover { background: var(--color-secondary); }

/* ============================================================
 * 10) RESPONSIVE
 * ============================================================ */
@media (max-width: 1024px) {
    .blog-layout,
    .blog-single-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .blog-sidebar,
    .blog-single-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .blog-sidebar > .blog-widget,
    .blog-single-sidebar > * {
        flex: 1 1 280px;
    }
    .blog-toc-mobile { display: block; }
    .blog-single-sidebar .blog-toc { display: none; }
    .blog-single-main { padding: 32px 28px; }
}

@media (max-width: 720px) {
    .blog-hero { padding: 64px 0 56px; }
    .blog-content { padding: 48px 0 56px; }

    .blog-card { grid-template-columns: 1fr; }
    .blog-card-img { aspect-ratio: 16 / 9; }

    .blog-filterbar { flex-direction: column; align-items: stretch; }
    .blog-search input { width: 100%; }

    .blog-single-hero { padding: 56px 0 44px; }
    .blog-single-meta { gap: 14px; font-size: 12.5px; }

    .blog-single-content { padding: 40px 0 56px; }
    .blog-single-main { padding: 26px 22px; }
    .blog-prose { font-size: 16px; }
    .blog-prose h2 { font-size: 22px; }
    .blog-prose h3 { font-size: 18px; }

    .blog-related { padding: 48px 0 56px; }
    .blog-related-grid { grid-template-columns: 1fr; gap: 16px; }

    .blog-pagination { flex-wrap: wrap; justify-content: center; }
    .blog-pagination-info { order: -1; width: 100%; text-align: center; }

    .blog-single-share { gap: 12px; padding: 14px 16px; }

    .blog-back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}
