/* ============================================
   BLOG STYLES — CodBolt
   Shared across all blog pages (index + articles)
   theme-modern.css must be loaded before this file
   ============================================ */

/* ── Sticky Footer ──────────────────────────────────────────────────────────
   Short blog pages (few cards) don't fill the viewport, which leaves the
   footer floating mid-screen with blank space under it. Pinning it to the
   bottom only affects blog pages — this file isn't loaded anywhere else. */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body > [data-component="footer"] { margin-top: auto; }

/* ── Shared Utilities ──────────────────────────────────────────────────────── */

.section-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: .4rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* ── Category / Tag Pills ──────────────────────────────────────────────────── */

.cat-pills { display: flex; flex-wrap: wrap; gap: .5rem; }

.cat-pill {
    padding: .3rem .85rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.cat-pill:hover,
.cat-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.tag-pill {
    display: inline-block;
    padding: .22rem .65rem;
    border-radius: 6px;
    font-size: .76rem;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all .15s;
}
.tag-pill:hover { background: #eef2ff; color: var(--primary-color); }

/* ── Post Category Badges ──────────────────────────────────────────────────── */

.post-cat-badge {
    font-size: .7rem;
    font-weight: 700;
    padding: .18rem .55rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.badge-tools    { background: #e0e7ff; color: #4338ca; }
.badge-tutorial { background: #d1fae5; color: #065f46; }
.badge-tips     { background: #fef3c7; color: #92400e; }
.badge-coding   { background: #fce7f3; color: #9d174d; }

/* ── Sidebar Widgets (shared) ──────────────────────────────────────────────── */

.sidebar-widget {
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 1.4rem;
    margin-bottom: 1.25rem;
}
.sidebar-widget h6 {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--border-color);
}

.tool-link-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .5rem 0;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
}
.tool-link-item:last-child { border-bottom: none; }
.tool-link-item .tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}
.tool-link-item span { font-size: .83rem; font-weight: 500; color: var(--text-primary); }
.tool-link-item:hover span { color: var(--primary-color); }

/* ── Share Buttons ─────────────────────────────────────────────────────────── */

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    transition: all .2s;
}
.share-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f8faff;
}


/* ── Pagination ────────────────────────────────────────────────────────────── */

.blog-pagination .page-link {
    border-radius: 10px !important;
    margin: 0 2px;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-size: .85rem;
    font-weight: 500;
}
.blog-pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.blog-pagination .page-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* ═══════════════════════════════════════════════════════
   BLOG INDEX PAGE
   ═══════════════════════════════════════════════════════ */

.blog-hero {
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 50%, #f0fdf4 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 3.5rem 0 2.5rem;
}
.blog-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.blog-hero .lead { color: var(--text-secondary); font-size: 1.05rem; max-width: 520px; }

/* ── Blog Index — no-sidebar layout ──────────────────────────────────────── */

.blog-hero { padding: 2rem 0 1.8rem; border-bottom: 1px solid var(--border-color); }
.blog-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.blog-hero .lead { color: var(--text-secondary); font-size: 1rem; max-width: 560px; }

.blog-index-wrap { max-width: 1060px; margin: 0 auto; }

/* Category sections */
.cat-section { margin-bottom: 3.5rem; }

.cat-section-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding-bottom: .9rem;
    border-bottom: 2px solid #f1f5f9;
}
.cat-section-head h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}
.cat-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}
.cat-count {
    margin-left: auto;
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: .2rem .6rem;
    border-radius: 999px;
}

/* Featured link card */
.featured-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    transition: box-shadow .18s, border-color .18s, background .18s;
}
.featured-link-card:hover {
    box-shadow: 0 4px 20px rgba(99,102,241,.12);
    background: #fafbff;
    color: inherit;
    text-decoration: none;
}
.flc-left { flex: 1; min-width: 0; }
.flc-left h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 .4rem;
    line-height: 1.4;
}
.featured-link-card:hover .flc-left h2 { color: var(--primary-color); }
.flc-left p {
    font-size: .85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}
.flc-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .3rem;
    flex-shrink: 0;
    font-size: .72rem;
    color: var(--text-muted);
}
.flc-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    margin-top: .4rem;
    transition: transform .2s;
}
.featured-link-card:hover .flc-arrow { transform: translateX(3px); }

/* Link card — minimal, text-only */
.post-link-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.15rem 1.1rem;
    height: 100%;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.post-link-card:hover {
    border-color: var(--primary-color);
    background: #fafbff;
    box-shadow: 0 3px 16px rgba(99,102,241,.1);
    color: inherit;
    text-decoration: none;
}
.plc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .55rem;
}
.plc-top small { font-size: .71rem; color: var(--text-muted); }
.post-link-card h3 {
    font-size: .91rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0 0 auto;
    flex: 1;
}
.post-link-card:hover h3 { color: var(--primary-color); }
.plc-date { font-size: .7rem; color: var(--text-muted); margin-top: .55rem; }

/* ── Card Cover System (no-image design) ──────────────────────────────────── */

.card-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .5rem;
}
.card-cover > i {
    font-size: 2.8rem;
    color: rgba(255,255,255,.88);
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.18));
}
.cover-cat {
    position: absolute;
    bottom: .65rem;
    left: .85rem;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: rgba(255,255,255,.9);
    background: rgba(0,0,0,.2);
    padding: .16rem .52rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

/* Heights per context */
.featured-card .card-cover { height: 240px; }
.post-card     .card-cover { height: 160px; }
.related-card  .card-cover { height: 120px; }

/* Category gradients */
.cc-tools       { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.cc-tutorial    { background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%); }
.cc-tips        { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.cc-coding      { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.cc-performance { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.cc-images      { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.cc-seo         { background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); }
.cc-webp        { background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%); }

/* ── Featured post ──────────────────────────────────────────────────────────── */
/* Featured post */
.featured-card {
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform .25s, box-shadow .25s;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.featured-card .img-placeholder {
    height: 260px;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: linear-gradient(135deg,#6366f1,#818cf8);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    padding: .25rem .7rem;
    border-radius: 999px;
    text-transform: uppercase;
}
.featured-card .card-body { padding: 1.8rem; }

/* Post cards */
.post-card {
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .22s, box-shadow .22s;
    height: 100%;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card .img-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-card .card-body { padding: 1.2rem 1.3rem 1.4rem; }

.post-meta {
    font-size: .76rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.post-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; margin: .5rem 0 .4rem; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--primary-color); }
.post-excerpt { font-size: .83rem; color: var(--text-secondary); line-height: 1.65; }

.read-more-link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: .75rem;
}
.read-more-link:hover { color: var(--primary-hover); }
.read-more-link i { font-size: .75rem; transition: transform .2s; }
.read-more-link:hover i { transform: translateX(3px); }

/* Popular posts sidebar */
.popular-post-item {
    display: flex;
    gap: .75rem;
    padding: .55rem 0;
    border-bottom: 1px solid #f8fafc;
}
.popular-post-item:last-child { border-bottom: none; }
.popular-num { font-size: 1.1rem; font-weight: 800; color: #e2e8f0; line-height: 1; min-width: 24px; }
.popular-post-item h6 { font-size: .8rem; font-weight: 600; color: var(--text-primary); margin-bottom: .15rem; line-height: 1.35; }
.popular-post-item h6 a { color: inherit; text-decoration: none; }
.popular-post-item h6 a:hover { color: var(--primary-color); }
.popular-post-item small { font-size: .7rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   ARTICLE / POST PAGE
   ═══════════════════════════════════════════════════════ */

/* Article header */
.article-header {
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 60%, #f0fdf4 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 2.8rem 0 2.5rem;
}
.breadcrumb-nav { font-size: .78rem; margin-bottom: 1.2rem; }
.breadcrumb-nav a { color: var(--primary-color); text-decoration: none; }
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-muted); margin: 0 .4rem; }

.article-cat-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: .22rem .65rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: #d1fae5;
    color: #065f46;
    margin-bottom: .8rem;
}
.article-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}
.article-meta span { display: flex; align-items: center; gap: .3rem; }

/* Cover image */
.cover-img {
    height: 340px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    border: 1.5px solid var(--border-color);
    margin-bottom: 2.5rem;
}

/* ── Article Body Typography ── */
.article-body { font-size: 1rem; line-height: 1.85; color: #374151; }

.article-body h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 2.5rem 0 .9rem;
    padding-top: .5rem;
    border-top: 2px solid #f1f5f9;
}
.article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.8rem 0 .6rem;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body ul,
.article-body ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.article-body li { margin-bottom: .45rem; }

/* Internal tool link — highlighted chip */
.tool-inline-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #eef2ff;
    color: var(--primary-color);
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    padding: .1rem .5rem;
    font-size: .9em;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.tool-inline-link:hover { background: #e0e7ff; color: var(--primary-hover); }
.tool-inline-link i { font-size: .8em; }

/* Related tools chip row */
.related-tools-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .6rem;
    margin-top: 2rem;
}
.related-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.rtool-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.rtool-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f5f3ff;
}
.rtool-chip i { font-size: .85em; }

/* Callout boxes */
.callout {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    display: flex;
    gap: .8rem;
    align-items: flex-start;
}
.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }
.callout-body { flex: 1; font-size: .9rem; line-height: 1.65; }
.callout-body strong { display: block; margin-bottom: .25rem; font-size: .88rem; }
.callout-tip  { background: #f0fdf4; border: 1px solid #86efac; }
.callout-tip  .callout-icon { color: #16a34a; }
.callout-info { background: #eff6ff; border: 1px solid #93c5fd; }
.callout-info .callout-icon { color: #2563eb; }
.callout-warn { background: #fffbeb; border: 1px solid #fcd34d; }
.callout-warn .callout-icon { color: #d97706; }

/* Code */
.article-body code {
    background: #f1f5f9;
    color: #be185d;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: .85em;
    padding: .1rem .4rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.code-block {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    margin: 1.3rem 0;
    overflow-x: auto;
}
.code-block code {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: .84rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    white-space: pre;
    padding: 0;
}

/* Comparison / data tables */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
}
.compare-table th {
    background: #f8fafc;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-muted);
    padding: .75rem 1rem;
    border-bottom: 1.5px solid var(--border-color);
}
.compare-table td {
    padding: .7rem 1rem;
    font-size: .88rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #f8fafc; }
.badge-yes     { color: #16a34a; font-weight: 700; }
.badge-no      { color: #dc2626; font-weight: 700; }
.badge-partial { color: #d97706; font-weight: 700; }

/* Stat boxes */
.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.stat-box {
    flex: 1;
    min-width: 120px;
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
}
.stat-box .stat-num { font-size: 1.7rem; font-weight: 800; }
.stat-box .stat-lbl { font-size: .72rem; font-weight: 600; color: var(--text-muted); margin-top: .15rem; }

/* Tool CTA banner */
.tool-cta-banner {
    background: linear-gradient(135deg, #eef2ff, #f0fdf4);
    border: 2px solid #c7d2fe;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.tool-cta-banner .tool-cta-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg,#6366f1,#818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}
.tool-cta-banner h5 { font-size: 1rem; font-weight: 800; margin-bottom: .15rem; }
.tool-cta-banner p  { font-size: .83rem; color: var(--text-secondary); margin: 0; }
.tool-cta-btn {
    margin-left: auto;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .6rem 1.3rem;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}
.tool-cta-btn:hover { background: var(--primary-hover); color: #fff; }

/* Reading progress bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    z-index: 9999;
    transition: width .1s linear;
    pointer-events: none;
}

/* Article centered column */
.article-wrap {
    max-width: 1040px;
    margin: 0 auto;
}

/* Inline collapsible TOC */
.inline-toc {
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    margin: 1rem 0 2rem;
    overflow: hidden;
}
.toc-toggle {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.2rem;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: .6px;
}
.toc-toggle:hover { background: #f1f5f9; }
.toc-chevron { transition: transform .25s; }
.toc-toggle.open .toc-chevron { transform: rotate(180deg); }
.toc-items {
    list-style: none;
    padding: .5rem 1.2rem 1rem;
    margin: 0;
    border-top: 1px solid var(--border-color);
    display: none;
}
.toc-items.open { display: block; }
.toc-items li { margin-bottom: .25rem; }
.toc-items a {
    font-size: .84rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .4rem;
    border-radius: 6px;
    transition: all .15s;
}
.toc-items a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.toc-items a:hover,
.toc-items a.active {
    color: var(--primary-color);
    background: #eef2ff;
    padding-left: .7rem;
}

/* Related posts section — full width */
.related-section {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 2px solid #f1f5f9;
}
.related-eyebrow {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: .4rem;
}
.related-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

/* Related posts */
.related-card {
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-card .img-ph { height: 120px; display: flex; align-items: center; justify-content: center; }
.related-card .card-body { padding: 1rem 1.1rem; }
.related-card h6 { font-size: .88rem; font-weight: 700; line-height: 1.4; margin-bottom: .3rem; }
.related-card h6 a { color: inherit; text-decoration: none; }
.related-card h6 a:hover { color: var(--primary-color); }
.related-card small { font-size: .74rem; color: var(--text-muted); }
