﻿/* ═════════════════════════════════════════════════════════════════════════════
   blog.css — Blog Home, Category, Single Post pages
   ═════════════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────────────
   DARK THEME: Override root CSS variables for all blog pages
   This ensures card backgrounds, text, borders, and the navbar all look
   correct against the dark purple page background.
   ────────────────────────────────────────────────────────────────────────────── */
body.page-blog,
body.page-blog-category,
body.page-blog-single {
    --clr-bg:         #08051a;
    --clr-surface:    #0e0b22;
    --clr-card:       rgba(255,255,255,.03);
    --clr-border:     rgba(255,255,255,.07);
    --clr-elevated:   rgba(255,255,255,.06);
    --clr-text:       rgba(255,255,255,.92);
    --clr-text-muted: rgba(255,255,255,.58);
    --clr-text-dim:   rgba(255,255,255,.36);
    --shadow-sm:      0 1px 4px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.2);
    --shadow-md:      0 4px 20px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.25);
    --shadow-lg:      0 8px 40px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.3);
    --shadow-glow:    0 0 40px rgba(159,58,253,.2);
    background-color: #08051a;
    color: rgba(255,255,255,.92);
}

/* Dark navbar on blog pages */
body.page-blog .navbar,
body.page-blog-category .navbar,
body.page-blog-single .navbar {
    background: rgba(8,5,26,.75);
    border-bottom-color: rgba(255,255,255,.06);
}
body.page-blog .navbar.scrolled,
body.page-blog-category .navbar.scrolled,
body.page-blog-single .navbar.scrolled {
    background: rgba(8,5,26,.96);
    box-shadow: 0 2px 24px rgba(0,0,0,.4);
}
body.page-blog .logo-text,
body.page-blog-category .logo-text,
body.page-blog-single .logo-text {
    color: #fff;
}
body.page-blog .nav-link,
body.page-blog-category .nav-link,
body.page-blog-single .nav-link {
    color: rgba(255,255,255,.6);
}
body.page-blog .nav-link:hover,
body.page-blog .nav-link.active,
body.page-blog-category .nav-link:hover,
body.page-blog-category .nav-link.active,
body.page-blog-single .nav-link:hover,
body.page-blog-single .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.08);
}
body.page-blog .navbar__toggle span,
body.page-blog-category .navbar__toggle span,
body.page-blog-single .navbar__toggle span {
    background: rgba(255,255,255,.9);
}
body.page-blog .mobile-menu,
body.page-blog-category .mobile-menu,
body.page-blog-single .mobile-menu {
    background: #0e0b22;
    border-bottom-color: rgba(255,255,255,.07);
}
body.page-blog .mobile-menu .nav-link,
body.page-blog-category .mobile-menu .nav-link,
body.page-blog-single .mobile-menu .nav-link {
    color: rgba(255,255,255,.7);
}


/* ──────────────────────────────────────────────────────────────────────────────
   SHARED: HERO
   ────────────────────────────────────────────────────────────────────────────── */
.blog-hero {
    position: relative;
    padding: var(--sp-4xl, 5rem) 0 var(--sp-3xl, 3.5rem);
    background: linear-gradient(140deg, #0e0620 0%, #1c0848 55%, #0d1330 100%);
    overflow: hidden;
}

/* Animated rings */
.blog-hero__ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
}
.blog-hero__ring::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}
.blog-hero__ring--1 {
    width: 340px; height: 340px;
    top: -80px; left: -100px;
    animation: blog-spin 22s linear infinite;
}
.blog-hero__ring--1::before { background: #FA3DC7; box-shadow: 0 0 10px rgba(250,61,199,.7); }
.blog-hero__ring--2 {
    width: 520px; height: 520px;
    bottom: -160px; right: -120px;
    animation: blog-spin 38s linear infinite reverse;
}
.blog-hero__ring--2::before { background: #46C0DF; box-shadow: 0 0 10px rgba(70,192,223,.7); }
.blog-hero__ring--3 {
    width: 220px; height: 220px;
    top: 50%; right: 8%;
    transform: translateY(-50%);
    animation: blog-breathe 6s ease-in-out infinite;
}
.blog-hero__ring--3::before { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.5); }

@keyframes blog-spin    { to { transform: rotate(360deg); } }
@keyframes blog-breathe { 0%,100% { opacity:.2; } 50% { opacity:.7; } }

/* Breadcrumb */
.blog-hero__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .375rem .5rem;
    margin-bottom: 1.5rem;
    font-size: .8125rem;
    color: rgba(255,255,255,.5);
}
.blog-hero__breadcrumb a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s;
}
.blog-hero__breadcrumb a:hover { color: var(--clr-primary, #9f3afd); }

/* Hero content */
.blog-hero__content { position: relative; z-index: 1; max-width: 620px; }

.section-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--clr-primary, #9f3afd);
    margin-bottom: .75rem;
}
.blog-hero__title {
    font-size: clamp(2.25rem, 7vw, 3.75rem);
    font-family: var(--font-display, 'Cal Sans', sans-serif);
    font-weight: 600;
    color: #fff;
    letter-spacing: -.025em;
    line-height: 1.05;
    margin: 0 0 1rem;
}
.blog-hero__desc {
    font-size: 1.0625rem;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
    max-width: 480px;
}


/* ──────────────────────────────────────────────────────────────────────────────
   FEATURED POST (blog home page 1)
   ────────────────────────────────────────────────────────────────────────────── */
.blog-featured {
    padding-bottom: 0;
    background-color: var(--clr-bg, #08051a);
}

.blog-featured__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--r-xl, 1.25rem);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    transition: border-color .25s, transform .25s;
    background: rgba(255,255,255,.02);
}
.blog-featured__card:hover {
    border-color: rgba(159,58,253,.35);
    transform: translateY(-3px);
}

.blog-featured__image {
    position: relative;
    min-height: 320px;
    background: linear-gradient(135deg, #1c0848, #0d1330);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.blog-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 40%, rgba(14,6,32,.6) 100%);
}
.blog-featured__label {
    position: absolute;
    top: 1rem; left: 1rem;
    padding: .35rem .75rem;
    background: rgba(159,58,253,.85);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: .375rem;
}

.blog-featured__body {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .75rem;
}
.blog-featured__cat {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--clr-primary, #9f3afd);
}
.blog-featured__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-family: var(--font-display, sans-serif);
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.015em;
}
.blog-featured__excerpt {
    font-size: .9875rem;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
}
.blog-featured__meta {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-size: .8125rem;
    color: rgba(255,255,255,.45);
    margin-top: .25rem;
}


/* ──────────────────────────────────────────────────────────────────────────────
   CATEGORY FILTER BAR
   ────────────────────────────────────────────────────────────────────────────── */
.blog-filter {
    padding: 2rem 0 0;
    position: sticky;
    top: 64px;
    z-index: 10;
}
.blog-filter__inner {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .875rem 1.25rem;
    background: rgba(14,6,32,.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--r-full, 9999px);
}
.blog-filter__pill {
    padding: .375rem .9rem;
    border-radius: var(--r-full, 9999px);
    font-size: .8125rem;
    font-weight: 500;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .2s;
    white-space: nowrap;
}
.blog-filter__pill:hover {
    color: #fff;
    border-color: rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
}
.blog-filter__pill.is-active {
    color: #fff;
    background: var(--clr-primary, #9f3afd);
    border-color: var(--clr-primary, #9f3afd);
}


/* ──────────────────────────────────────────────────────────────────────────────
   BLOG LISTING & GRID
   ────────────────────────────────────────────────────────────────────────────── */
.blog-listing { padding: var(--sp-2xl, 2.5rem) 0 var(--sp-3xl, 3.5rem); }

/* Ensure full-width dark backdrop — no white gap below the hero */
.blog-filter,
.blog-listing,
.blog-cat-layout {
    background-color: var(--clr-bg, #08051a);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 3rem;
}
@media (max-width: 1100px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; } }


/* ──────────────────────────────────────────────────────────────────────────────
   BLOG CARD
   ────────────────────────────────────────────────────────────────────────────── */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r-lg, .875rem);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, background .3s ease,
                box-shadow .3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(159,58,253,.4);
    background: rgba(159,58,253,.06);
    box-shadow: 0 16px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(159,58,253,.15);
}

.blog-card__img-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1c0848, #0d1330);
    overflow: hidden;
    flex-shrink: 0;
}
.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.blog-card:hover .blog-card__img { transform: scale(1.06); }

.blog-card__badge {
    position: absolute;
    top: .75rem; left: .75rem;
    padding: .3rem .65rem;
    background: rgba(159,58,253,.9);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: .375rem;
    pointer-events: none;
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
    gap: .625rem;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem .5rem;
    font-size: .78rem;
    color: rgba(255,255,255,.45);
}
.blog-card__meta-item {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.blog-card__meta-item svg { opacity: .7; flex-shrink: 0; }
.blog-card__meta-sep { opacity: .35; }

.blog-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    flex-grow: 1;
}
.blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.blog-card__title a:hover { color: var(--clr-primary, #9f3afd); }

.blog-card__excerpt {
    font-size: .875rem;
    color: rgba(255,255,255,.55);
    line-height: 1.55;
}

.blog-card__cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .25rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--clr-primary, #9f3afd);
    text-decoration: none;
    transition: gap .2s;
}
.blog-card__cta:hover { gap: .625rem; }


/* ──────────────────────────────────────────────────────────────────────────────
   PAGINATION
   ────────────────────────────────────────────────────────────────────────────── */
.blog-pagination { display: flex; justify-content: center; margin: 3rem 0 0; }
.blog-pagination__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.blog-pagination__count {
    font-size: .875rem;
    color: rgba(255,255,255,.45);
    white-space: nowrap;
}
.blog-pagination .btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
}


/* ──────────────────────────────────────────────────────────────────────────────
   EMPTY STATE
   ────────────────────────────────────────────────────────────────────────────── */
.blog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--sp-3xl, 3.5rem) 1rem;
    gap: .75rem;
}
.blog-empty__icon {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(159,58,253,.1);
    border: 1px solid rgba(159,58,253,.2);
    color: rgba(159,58,253,.7);
    margin-bottom: .5rem;
}
.blog-empty__title { font-size: 1.25rem; font-weight: 600; color: rgba(255,255,255,.8); }
.blog-empty__desc  { font-size: .9375rem; color: rgba(255,255,255,.45); max-width: 380px; }


/* ──────────────────────────────────────────────────────────────────────────────
   CATEGORY PAGE LAYOUT
   ────────────────────────────────────────────────────────────────────────────── */
.blog-cat-layout { padding: var(--sp-2xl, 2.5rem) 0 var(--sp-3xl, 3.5rem); }
.blog-cat-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .blog-cat-grid { grid-template-columns: 1fr; }
    .blog-cat-sidebar { order: -1; }
}

.blog-cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.blog-cat-list__item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem .75rem;
    border-radius: var(--r-md, .5rem);
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .875rem;
    transition: background .2s, color .2s;
}
.blog-cat-list__item a:hover,
.blog-cat-list__item.is-active a {
    background: rgba(159,58,253,.15);
    color: #fff;
}
.blog-cat-list__item.is-active a { font-weight: 600; }
.blog-cat-list__count {
    background: rgba(255,255,255,.1);
    border-radius: var(--r-full, 9999px);
    padding: .15rem .55rem;
    font-size: .7rem;
}


/* ──────────────────────────────────────────────────────────────────────────────
   SIDEBAR (shared)
   ────────────────────────────────────────────────────────────────────────────── */
.blog-sidebar-widget {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--r-lg, .875rem);
    padding: 1.25rem;
}
.blog-sidebar-widget__title {
    font-size: .775rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: 1rem;
}

.blog-sidebar-posts { display: flex; flex-direction: column; gap: 1rem; }

.blog-sidebar-post-item {
    display: flex;
    gap: .75rem;
    text-decoration: none;
    border-radius: var(--r-md, .5rem);
    padding: .5rem;
    margin: -.5rem;
    transition: background .2s;
}
.blog-sidebar-post-item:hover { background: rgba(159,58,253,.1); }

.blog-sidebar-post-item__img {
    width: 56px; height: 56px;
    border-radius: var(--r-sm, .375rem);
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,.06);
    flex-shrink: 0;
}
.blog-sidebar-post-item__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .2rem; }
.blog-sidebar-post-item__title {
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-sidebar-post-item__meta { font-size: .7rem; color: rgba(255,255,255,.4); }


/* ──────────────────────────────────────────────────────────────────────────────
   SINGLE POST HERO
   ────────────────────────────────────────────────────────────────────────────── */
.blog-single-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    padding: var(--sp-4xl, 5rem) 0 var(--sp-3xl, 3.5rem);
    background: linear-gradient(140deg, #0e0620 0%, #1c0848 55%, #0d1330 100%);
    overflow: hidden;
}
.blog-single-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.blog-single-hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14,6,32,.97) 0%, rgba(14,6,32,.55) 60%, rgba(14,6,32,.3) 100%);
}

.blog-hero-badge {
    display: inline-block;
    padding: .35rem .85rem;
    background: rgba(159,58,253,.9);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    border-radius: .375rem;
    text-decoration: none;
    margin-bottom: .875rem;
    transition: background .2s;
}
.blog-hero-badge:hover { background: var(--clr-primary, #9f3afd); }

.blog-single-hero__content { position: relative; z-index: 1; max-width: 760px; }
.blog-single-hero__title {
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-family: var(--font-display, 'Cal Sans', sans-serif);
    font-weight: 600;
    color: #fff;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin: 0 0 1rem;
}
.blog-single-hero__excerpt {
    font-size: 1.05rem;
    color: rgba(255,255,255,.65);
    max-width: 600px;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.blog-single-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .875rem;
    font-size: .875rem;
    color: rgba(255,255,255,.6);
}
.blog-meta-sep { opacity: .4; }


/* ──────────────────────────────────────────────────────────────────────────────
   SINGLE POST BODY
   ────────────────────────────────────────────────────────────────────────────── */
.blog-single-body { padding: var(--sp-2xl, 2.5rem) 0 var(--sp-3xl, 3.5rem); }

.blog-single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 960px) { .blog-single-layout { grid-template-columns: 1fr; } }

.blog-single-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (max-width: 960px) { .blog-single-sidebar { position: static; } }

/* Article Prose */
.blog-single-prose {
    font-size: 1.0625rem;
    color: rgba(255,255,255,.8);
    line-height: 1.8;
}
.blog-single-prose h2 {
    font-size: 1.65rem;
    font-family: var(--font-display, sans-serif);
    font-weight: 600;
    color: #fff;
    letter-spacing: -.015em;
    margin: 2.5rem 0 .875rem;
    scroll-margin-top: 80px;
}
.blog-single-prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    margin: 2rem 0 .75rem;
    scroll-margin-top: 80px;
}
.blog-single-prose h4 {
    font-size: 1.075rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    margin: 1.5rem 0 .5rem;
}
.blog-single-prose p  { margin-bottom: 1.5rem; }
.blog-single-prose ul,
.blog-single-prose ol { margin: 1.5rem 0; padding-left: 1.75rem; }
.blog-single-prose li { margin-bottom: .625rem; }
.blog-single-prose a  { color: var(--clr-primary, #9f3afd); text-decoration: underline; text-underline-offset: 3px; }
.blog-single-prose a:hover { opacity: .8; }

.blog-single-prose blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.25rem 1.25rem 1.75rem;
    border-left: 3px solid var(--clr-primary, #9f3afd);
    background: rgba(159,58,253,.06);
    border-radius: 0 var(--r-md,.5rem) var(--r-md,.5rem) 0;
    color: rgba(255,255,255,.75);
    font-style: italic;
}
.blog-single-prose blockquote p:last-child { margin-bottom: 0; }

.blog-single-prose code {
    background: rgba(159,58,253,.12);
    border: 1px solid rgba(159,58,253,.2);
    color: #FA3DC7;
    padding: .15rem .45rem;
    border-radius: .3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .875em;
}
.blog-single-prose pre {
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r-md, .5rem);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}
.blog-single-prose pre code { background: none; border: none; padding: 0; color: #A8D8EA; font-size: .9rem; }
.blog-single-prose img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md, .5rem);
    margin: 2rem auto;
    border: 1px solid rgba(255,255,255,.07);
}
.blog-single-prose figure { margin: 2rem 0; }
.blog-single-prose figcaption { text-align: center; font-size: .8125rem; color: rgba(255,255,255,.4); margin-top: .625rem; }
.blog-single-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: .9rem;
}
.blog-single-prose table th,
.blog-single-prose table td {
    padding: .75rem .875rem;
    border: 1px solid rgba(255,255,255,.08);
    text-align: left;
}
.blog-single-prose table th { background: rgba(159,58,253,.1); font-weight: 600; color: rgba(255,255,255,.9); }
.blog-single-prose hr { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 2.5rem 0; }


/* ──────────────────────────────────────────────────────────────────────────────
   POST PREV/NEXT NAV
   ────────────────────────────────────────────────────────────────────────────── */
.blog-post-nav { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.blog-post-nav__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.blog-post-nav__item {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--r-lg, .875rem);
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.blog-post-nav__item:hover { background: rgba(159,58,253,.08); border-color: rgba(159,58,253,.25); }
.blog-post-nav__item--next { text-align: right; align-items: flex-end; }
.blog-post-nav__label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
}
.blog-post-nav__title {
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 580px) { .blog-post-nav__inner { grid-template-columns: 1fr; } }


/* ──────────────────────────────────────────────────────────────────────────────
   TABLE OF CONTENTS
   ────────────────────────────────────────────────────────────────────────────── */
.blog-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.blog-toc__item a {
    display: block;
    font-size: .8125rem;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    padding: .3rem .5rem;
    border-radius: .35rem;
    border-left: 2px solid transparent;
    transition: color .2s, background .2s, border-color .2s;
}
.blog-toc__item a:hover { color: #fff; background: rgba(159,58,253,.1); border-left-color: var(--clr-primary, #9f3afd); }
.blog-toc__item--h3 a { padding-left: 1.25rem; font-size: .77rem; }


/* ──────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-hero { padding: var(--sp-2xl, 2.5rem) 0; }
    .blog-hero__ring { display: none; }
    .blog-hero__title { font-size: 1.875rem; }

    .blog-featured__card { grid-template-columns: 1fr; }
    .blog-featured__image { min-height: 200px; }

    .blog-filter { top: 56px; }
    .blog-filter__inner { border-radius: var(--r-xl, 1.25rem); }

    .blog-single-hero { min-height: 320px; padding: var(--sp-2xl, 2.5rem) 0; }
    .blog-single-hero__title { font-size: 1.625rem; }
    .blog-single-hero__excerpt { font-size: .9375rem; }

    .blog-single-prose { font-size: 1rem; line-height: 1.75; }
    .blog-single-prose h2 { font-size: 1.375rem; }
    .blog-single-prose h3 { font-size: 1.125rem; }
}

@media (max-width: 480px) {
    .blog-filter__inner { border-radius: 1rem; }
    .blog-listing { padding: var(--sp-xl, 2rem) 0 var(--sp-2xl, 2.5rem); }
    .blog-pagination__inner { flex-direction: column; gap: 1rem; }
    .blog-pagination .btn { width: 100%; justify-content: center; }
}

