/* ──────────────────────────────────────────────────────────────────
   Blog restructure — supplemental styles (Phase 3)
   Loaded AFTER site.css so brand vars are available.
   ────────────────────────────────────────────────────────────────── */

/* Breadcrumb (post pages) ------------------------------------------ */
.post-breadcrumb {
    background: var(--bg-alt, #f6f9fb);
    border-bottom: 1px solid var(--border-blue, #d0dfe6);
    font-size: 13px;
    color: var(--text-secondary, #4a5560);
}
.post-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.post-breadcrumb a {
    color: var(--primary, #0067a3);
    text-decoration: none;
}
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb .sep {
    color: var(--text-muted, #8893a0);
    margin: 0 4px;
}
.post-breadcrumb .current {
    color: var(--text-primary, #0E1B26);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60ch;
}

/* Category badge (used in cards + post-hero meta) ------------------ */
.category-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary, #0067a3);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.5;
}
.category-badge:hover {
    background: var(--primary-dark, #004f7e);
    text-decoration: none;
}
.category-badge.large {
    font-size: 13px;
    padding: 5px 14px;
}
.category-badge[data-cat="cold-chain"]      { background: #00A8B5; }
.category-badge[data-cat="fleet-telematics"]{ background: #335E92; }
.category-badge[data-cat="environmental"]   { background: #2E8B57; }
.category-badge[data-cat="compliance"]      { background: #6B5B95; }
.category-badge[data-cat="engineering"]     { background: #C0392B; }
.category-badge[data-cat="press"]           { background: #6C7889; }
.category-badge[data-cat="company"]         { background: #B8860B; }

/* Tag chips (post bottom) ------------------------------------------ */
.post-tags {
    max-width: 720px;
    margin: 28px auto 0;
    padding: 18px 32px 0;
    border-top: 1px solid var(--border-blue, #d0dfe6);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.post-tags-label {
    color: var(--text-muted, #8893a0);
    font-weight: 600;
    margin-right: 6px;
}
.post-tag {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid var(--border-blue, #d0dfe6);
    border-radius: 999px;
    color: var(--text-secondary, #4a5560);
    background: #fff;
}

/* Related posts ---------------------------------------------------- */
.related-posts, .related-products {
    max-width: 1100px;
    margin: 56px auto 0;
    padding: 0 32px;
}
.related-posts h2, .related-products h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary, #0E1B26);
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 900px) { .related-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .related-posts-grid { grid-template-columns: 1fr; } }

.related-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-blue, #d0dfe6);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
}
.related-post-card:hover {
    box-shadow: var(--shadow-md, 0 6px 20px rgba(0,0,0,.08));
    transform: translateY(-2px);
    text-decoration: none;
}
.related-post-card .thumb {
    height: 140px;
    overflow: hidden;
    background: var(--bg, #f6f9fb);
}
.related-post-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-post-card .body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.related-post-card .cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--primary, #0067a3);
}
.related-post-card h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: var(--text-primary, #0E1B26);
}

/* Related products ------------------------------------------------- */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.related-product-card {
    display: block;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-blue, #d0dfe6);
    border-radius: var(--radius-lg, 12px);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, border-color .15s;
}
.related-product-card:hover {
    border-color: var(--primary, #0067a3);
    box-shadow: 0 4px 14px rgba(0, 103, 163, .08);
    text-decoration: none;
}
.related-product-card .title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #0E1B26);
    margin-bottom: 4px;
}
.related-product-card .more {
    font-size: 12px;
    color: var(--primary, #0067a3);
    font-weight: 600;
}

/* Post-hero meta — when category becomes a link --------------------- */
.post-hero .meta a.cat {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.4);
}
.post-hero .meta a.cat:hover { border-bottom-color: #fff; }

/* Press-release variant — blog index card ribbon ------------------- */
.blog-card[data-post-type="press_release"]::before {
    content: "Press release";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(108,120,137,.95);
    color: #fff;
    font-size: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
}
.blog-card { position: relative; }

/* Pagination ------------------------------------------------------- */
.blog-pagination {
    margin: 48px auto 0;
    padding: 0 32px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}
.blog-pagination a, .blog-pagination span {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-secondary, #4a5560);
    border: 1px solid transparent;
}
.blog-pagination a:hover {
    border-color: var(--border-blue, #d0dfe6);
    text-decoration: none;
}
.blog-pagination .current {
    background: var(--primary, #0067a3);
    color: #fff;
    font-weight: 600;
}

/* Category navigation strip on blog index --------------------------- */
.blog-cat-nav {
    max-width: 1200px;
    margin: 0 auto 28px;
    padding: 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
