/* ============================================================
   BLOG PREMIUM STYLES – Montyy Desaii
   Brand: Deep dark charcoal + Crimson red accent
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
    --b-red: #c30009;
    --b-red-2: #a00007;
    /* This was originally --b-red-2: #a00007; */
    /* Layout */
    --b-dark: #050c17;
    --b-dark-2: #0a1220;
    --b-card-bg: #0f1c2e;
    --b-card-hover: #132236;
    --b-border: rgba(255, 255, 255, 0.07);
    --b-text: #e8e8e8;
    --b-muted: #8b9ab5;
    --b-red-hover: #a00007;
    --b-radius: 16px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.6);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    /* Removed: --b-dark-3, --b-glass, --b-white, --b-shadow */
}

/* ─── Base Reset for Blog Pages ─────────────────────────────── */
.blog-page {
    background: var(--b-dark);
    color: var(--b-text);
    min-height: 100vh;
    font-family: 'Sora', 'Inter', sans-serif;
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
.blog-page ::-webkit-scrollbar {
    width: 5px;
}

.blog-page ::-webkit-scrollbar-track {
    background: var(--b-dark-2);
}

.blog-page ::-webkit-scrollbar-thumb {
    background: var(--b-red);
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   NAV BAR
════════════════════════════════════════════════════════════════ */
.blog-nav {
    background: rgba(12, 12, 12, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--b-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.blog-nav a {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: var(--transition);
}

.blog-nav a:hover {
    color: var(--b-red) !important;
}

.blog-nav li.active a,
.blog-nav li.blog.active>a {
    color: var(--b-red) !important;
    font-weight: 700;
}

/* ─── Let's Chat button ──────────────────────────────────────── */
.blog-nav .lets-chat-btn {
    background: var(--b-red) !important;
    border-color: var(--b-red) !important;
    color: #fff !important;
    border-radius: 6px;
    transition: var(--transition);
}

.blog-nav .lets-chat-btn:hover {
    background: var(--b-red-2) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(195, 0, 9, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   HERO / PAGE HEADER
════════════════════════════════════════════════════════════════ */
.blog-hero {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a0606 40%, #0c0c0c 100%);
    position: relative;
    overflow: hidden;
}

/* Animated grid lines */
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(195, 0, 9, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(195, 0, 9, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 18s linear infinite;
}

@keyframes gridShift {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 60px 60px, 60px 60px;
    }
}

/* Glowing orbs */
.blog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 15% 50%, rgba(195, 0, 9, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 85% 20%, rgba(195, 0, 9, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero-inner {
    position: relative;
    z-index: 2;
}

/* Badge pill */
.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--b-red) 0%, #8a0006 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(195, 0, 9, 0.35);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(195, 0, 9, 0.35);
    }

    50% {
        box-shadow: 0 4px 32px rgba(195, 0, 9, 0.6);
    }
}

/* Hero title */
.blog-hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.blog-hero-title span {
    background: linear-gradient(135deg, var(--b-red) 0%, #ff4d4d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Stats bar */
.blog-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-stat-item {
    text-align: center;
}

.blog-stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--b-red);
    line-height: 1;
}

.blog-stat-label {
    font-size: 0.75rem;
    color: var(--b-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ─── Search Bar ─────────────────────────────────────────────── */
.blog-search-wrap {
    position: relative;
    max-width: 520px;
    margin: 2rem auto 0;
}

.blog-search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.blog-search-input:focus {
    border-color: var(--b-red);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(195, 0, 9, 0.15);
}

.blog-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--b-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.blog-search-btn:hover {
    color: var(--b-red);
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════════════════════ */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

.blog-main-area {
    min-width: 0;
}

/* ─── Filter chips ───────────────────────────────────────────── */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: var(--b-muted);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.filter-chip:hover {
    border-color: var(--b-red);
    color: var(--b-red);
    background: rgba(195, 0, 9, 0.06);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--b-red);
    border-color: var(--b-red);
    color: #fff;
    box-shadow: 0 4px 16px rgba(195, 0, 9, 0.3);
}

/* ─── Active filter heading ──────────────────────────────────── */
.filter-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.filter-heading h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--b-white);
}

.filter-heading-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(195, 0, 9, 0.15);
    color: var(--b-red);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(195, 0, 9, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG CARDS GRID
════════════════════════════════════════════════════════════════ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 0.25rem;
}

/* ─── Featured (first) card spans full width ─────────────────── */
.blog-grid .blog-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 440px;
    margin-bottom: 0.5rem;
}

.blog-grid .blog-card:first-child .blog-card-img {
    height: 100%;
    max-height: 440px;
}

@media (max-width: 720px) {
    .blog-grid .blog-card:first-child {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .blog-grid .blog-card:first-child .blog-card-img {
        height: 240px;
    }
}

/* ─── Card Base ──────────────────────────────────────────────── */
.blog-card {
    background: var(--b-card-bg);
    border-radius: var(--b-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    /* Ensure cards never touch each other */
    margin: 0;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--b-radius);
    background: linear-gradient(135deg, rgba(195, 0, 9, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(195, 0, 9, 0.3);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(195, 0, 9, 0.15);
}

.blog-card:hover::before {
    opacity: 1;
}

/* ─── Card Image ─────────────────────────────────────────────── */
.blog-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #1a2a40;
    flex-shrink: 0;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.1);
}

/* image overlay gradient */
.blog-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

/* On white sections — lighter placeholder bg, keep image visible */
section[style*="background:#fff"] .blog-card-img,
section[style*="background: #fff"] .blog-card-img {
    background: #e9ecef;
}

section[style*="background:#fff"] .blog-card-img::after,
section[style*="background: #fff"] .blog-card-img::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 55%);
}

/* placeholder icon */
.blog-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #1e1e1e 0%, #2a1010 100%);
}

.blog-card-img-placeholder svg {
    width: 48px;
    height: 48px;
    color: rgba(195, 0, 9, 0.3);
}

/* reading time float badge */
.img-read-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ─── Card Body ──────────────────────────────────────────────── */
.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* category pill */
.blog-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    transition: var(--transition);
    text-decoration: none;
}

.blog-cat-pill:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* meta row */
.blog-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.blog-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--b-muted);
    opacity: 0.5;
}

.blog-meta-date {
    font-size: 0.78rem;
    color: var(--b-muted);
}

.blog-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--b-muted);
}

.blog-views svg {
    width: 13px;
    height: 13px;
}

/* title */
.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--b-white);
    line-height: 1.45;
    margin-bottom: 0.65rem;
    transition: color 0.3s;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card:hover .blog-card-title {
    color: var(--b-red);
}

/* excerpt */
.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--b-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    flex: 1;
}

/* tags row */
.blog-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.blog-tag-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(195, 0, 9, 0.1);
    color: #e06060;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(195, 0, 9, 0.2);
    text-decoration: none;
    transition: var(--transition);
}

.blog-tag-pill:hover {
    background: var(--b-red);
    color: #fff;
    border-color: var(--b-red);
    transform: translateY(-2px);
}

/* card footer */
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--b-red);
    text-decoration: none;
    transition: gap 0.3s;
}

.blog-read-more:hover {
    gap: 10px;
}

.blog-read-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.blog-read-more:hover svg {
    transform: translateX(4px);
}

/* ─── Empty State ────────────────────────────────────────────── */
.blog-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--b-card-bg);
    border-radius: var(--b-radius);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.blog-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    color: rgba(195, 0, 9, 0.3);
}

.blog-empty h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--b-white);
    margin-bottom: 0.75rem;
}

.blog-empty p {
    color: var(--b-muted);
    margin-bottom: 2rem;
}

/* ─── Pagination ─────────────────────────────────────────────── */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}

.blog-pagination span,
.blog-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--b-muted);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    text-decoration: none;
    background: var(--b-card-bg);
}

.blog-pagination a:hover {
    border-color: var(--b-red);
    color: var(--b-red);
    background: rgba(195, 0, 9, 0.08);
    transform: translateY(-2px);
}

.blog-pagination .active,
.blog-pagination span[aria-current="page"] {
    background: var(--b-red) !important;
    border-color: var(--b-red) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(195, 0, 9, 0.35);
}

.blog-pagination [disabled] {
    opacity: 0.35;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════════════════ */
.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.sidebar-widget {
    background: var(--b-card-bg);
    border-radius: var(--b-radius);
    border: 1px solid var(--b-border);
    overflow: hidden;
    transition: border-color 0.3s;
}

.sidebar-widget:hover {
    border-color: rgba(195, 0, 9, 0.2);
}

.sidebar-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--b-border);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-widget-header svg {
    width: 18px;
    height: 18px;
    color: var(--b-red);
    flex-shrink: 0;
}

.sidebar-widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--b-white);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sidebar-widget-body {
    padding: 1.1rem 1.4rem;
}

/* categories list */
.cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-list-item {
    margin: 0;
}

.cat-list-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--b-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.cat-list-link:hover {
    background: rgba(195, 0, 9, 0.06);
    border-left-color: var(--b-red);
    color: var(--b-white);
    padding-left: 1rem;
}

.cat-list-link.active {
    background: rgba(195, 0, 9, 0.1);
    border-left-color: var(--b-red);
    color: var(--b-red);
    font-weight: 700;
}

.cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 8px;
}

.cat-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--b-muted);
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
}

/* tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--b-muted);
    text-decoration: none;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.03);
}

.tag-cloud-item:hover {
    border-color: var(--b-red);
    background: rgba(195, 0, 9, 0.1);
    color: var(--b-red);
    transform: translateY(-2px);
}

.tag-cloud-item.active {
    background: var(--b-red);
    border-color: var(--b-red);
    color: #fff;
    box-shadow: 0 3px 12px rgba(195, 0, 9, 0.3);
}

/* newsletter widget */
.newsletter-widget {
    background: linear-gradient(135deg, #1a0505 0%, #200a0a 100%);
    border: 1px solid rgba(195, 0, 9, 0.2);
}

.newsletter-widget .sidebar-widget-header {
    background: rgba(195, 0, 9, 0.08);
    border-bottom-color: rgba(195, 0, 9, 0.15);
}

.newsletter-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 0.75rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-input:focus {
    border-color: var(--b-red);
}

.newsletter-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--b-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-btn:hover {
    background: var(--b-red-2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(195, 0, 9, 0.35);
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST SHOW PAGE
════════════════════════════════════════════════════════════════ */

/* ─── Post Hero ──────────────────────────────────────────────── */
.post-hero {
    position: relative;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a0606 100%);
    overflow: hidden;
    padding-bottom: 80px;
}

.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(195, 0, 9, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(195, 0, 9, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridShift 22s linear infinite;
}

.post-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 10% 50%, rgba(195, 0, 9, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 30% 50% at 90% 30%, rgba(195, 0, 9, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.post-hero-inner {
    position: relative;
    z-index: 2;
}

/* back link */
.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    margin-bottom: 1.75rem;
    display: inline-flex;
}

.post-back-link:hover {
    color: #fff;
    background: rgba(195, 0, 9, 0.12);
    border-color: rgba(195, 0, 9, 0.3);
    transform: translateX(-4px);
}

.post-back-link svg {
    width: 16px;
    height: 16px;
}

/* post title */
.post-hero-title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    max-width: 780px;
    margin-bottom: 1.5rem;
}

/* post meta pills */
.post-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.post-meta-pill svg {
    width: 14px;
    height: 14px;
}

.post-meta-pill.cat-pill {
    color: #fff;
    font-weight: 700;
}

/* ─── Featured Image ─────────────────────────────────────────── */
.post-featured-img {
    position: relative;
    border-radius: var(--b-radius);
    overflow: hidden;
    max-width: 860px;
    margin: -40px auto 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 5;
}

.post-featured-img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* ─── Post Content Card ──────────────────────────────────────── */
.post-content-card {
    background: #ffffff;
    border-radius: var(--b-radius);
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 860px;
    margin: 0 auto;
}

/* excerpt callout */
.post-excerpt-box {
    border-left: 4px solid var(--b-red);
    background: rgba(195, 0, 9, 0.04);
    border-radius: 0 12px 12px 0;
    padding: 1.4rem 1.75rem;
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    font-style: italic;
    color: #4b5563;
    line-height: 1.7;
}

/* article content */
.post-article {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #374151;
}

.post-article p {
    margin-bottom: 1.6rem;
}

.post-article strong {
    font-weight: 700;
    color: #111827;
}

.post-article h2,
.post-article h3 {
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.post-article h2 {
    font-size: 1.5rem;
}

.post-article h3 {
    font-size: 1.2rem;
}

.post-article ul,
.post-article ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-article li {
    margin-bottom: 0.5rem;
}

.post-article blockquote {
    border-left: 4px solid var(--b-red);
    padding: 1rem 1.5rem;
    background: #fef2f2;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

.post-article img {
    border-radius: 12px;
    max-width: 100%;
    margin: 1rem 0;
}

/* divider */
.post-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 2.5rem 0;
}

/* post tags */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tags-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin-right: 0.25rem;
}

.post-tag-link {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.post-tag-link:hover {
    background: var(--b-red);
    color: #fff;
    border-color: var(--b-red);
    transform: translateY(-2px);
}

/* Author card */
.author-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 1px solid rgba(195, 0, 9, 0.12);
    border-radius: 16px;
    padding: 1.75rem;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--b-red), #8a0006);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(195, 0, 9, 0.3);
}

.author-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
}

.author-role {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--b-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.author-bio {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.55;
}

/* Share row */
.share-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-row-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.share-btn-x {
    background: linear-gradient(135deg, #1a1a1a, #333);
}

.share-btn-fb {
    background: linear-gradient(135deg, #1877F2, #0d5abf);
}

.share-btn-li {
    background: linear-gradient(135deg, #0077b5, #005277);
}

.share-btn-copy {
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

/* Table of Contents */
.post-toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.post-toc-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-toc-title svg {
    width: 16px;
    height: 16px;
    color: var(--b-red);
}

.post-toc ol {
    margin: 0;
    padding-left: 1.4rem;
}

.post-toc li {
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.post-toc a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s;
}

.post-toc a:hover {
    color: var(--b-red);
}

/* ─── Related Posts ──────────────────────────────────────────── */
.related-section {
    background: var(--b-dark-2);
    border-top: 1px solid var(--b-border);
}

.related-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--b-white);
    text-align: center;
    margin-bottom: 0.5rem;
}

.related-section-sub {
    text-align: center;
    color: var(--b-muted);
    margin-bottom: 3rem;
    font-size: 0.92rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--b-card-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translateY(-8px);
    border-color: rgba(195, 0, 9, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.related-card-img {
    height: 180px;
    overflow: hidden;
    background: var(--b-dark-3);
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card-img img {
    transform: scale(1.08);
}

.related-card-body {
    padding: 1.25rem;
}

.related-card-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
    display: block;
}

.related-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--b-white);
    line-height: 1.45;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card:hover .related-card-title {
    color: var(--b-red);
}

.related-card-meta {
    font-size: 0.75rem;
    color: var(--b-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ─── Progress bar ───────────────────────────────────────────── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--b-red), #ff4d4d);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(195, 0, 9, 0.5);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.blog-footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 0;
}

.blog-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-footer-copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.blog-footer-links {
    display: flex;
    gap: 1.5rem;
}

.blog-footer-link {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-footer-link:hover {
    color: var(--b-red);
}

/* ─── Utility ────────────────────────────────────────────────── */
.section-py {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.results-count {
    font-size: 0.82rem;
    color: var(--b-muted);
    margin-bottom: 2rem;
}

.results-count span {
    color: var(--b-red);
    font-weight: 700;
}

/* ─── Responsive Tweaks ──────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-hero {
        padding-top: 120px;
        padding-bottom: 3rem;
    }

    .post-content-card {
        padding: 1.75rem 1.25rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .blog-stats {
        gap: 1.5rem;
    }

    .blog-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .blog-layout {
        gap: 2rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .post-hero {
        padding-bottom: 60px;
    }

    .post-featured-img {
        margin-top: -20px;
    }

    .post-featured-img img {
        max-height: 280px;
    }
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease both;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}