/* ===================================================
   blog-page.css  —  Forge & Finite Blog Article Page
   =================================================== */

/* ── Navbar override — force legible look over dark hero ── */
.bp-hero-banner ~ * header nav,
body:has(.bp-hero-banner) header nav {
    background: transparent;
}

/* Make nav links white while hero is visible */
body:has(.bp-hero-banner) header nav ul.navbar li a.nav-links,
body:has(.bp-hero-banner) header nav .navbar-brand-name {
    color: rgba(255,255,255,0.9) !important;
}

body:has(.bp-hero-banner) header nav ul.navbar li a.nav-links:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
}

body:has(.bp-hero-banner) header nav ul.navbar {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(12px);
}

body:has(.bp-hero-banner) #darkModeToggle {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
}

/* ── CSS Variables ── */
:root {
    --bp-accent:     #4f46e5;
    --bp-accent2:    #7c3aed;
    --bp-text:       #111827;
    --bp-muted:      #6b7280;
    --bp-border:     #e5e7eb;
    --bp-bg:         #f9fafb;
    --bp-white:      #ffffff;
    --bp-radius:     16px;
    --bp-font-body:  'Inter', 'Poppins', sans-serif;
    --bp-font-title: 'Playfair Display', Georgia, serif;
}

/* ── Reading Progress Bar ── */
#bp-progress {
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
    transition: width 0.08s linear;
    border-radius: 0 99px 99px 0;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

/* ── Hero Banner ── */
.bp-hero-banner {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0f172a;
    /* push hero content below the absolute-positioned navbar */
    padding-top: 72px;
}

.bp-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: transform 8s ease;
    filter: brightness(0.35) saturate(0.7);
    pointer-events: none;
}

.bp-hero-banner:hover .bp-hero-bg {
    transform: scale(1);
}

.bp-hero-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(79, 70, 229, 0.15) 40%,
        rgba(15, 23, 42, 0.92) 100%
    );
    pointer-events: none;
}

.bp-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem 3.5rem;
}

/* No featured image fallback */
.bp-hero-no-img {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

/* ── Breadcrumb ── */
.bp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--bp-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.bp-breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.bp-breadcrumb a:hover { color: #a5b4fc; }

.bp-breadcrumb .sep {
    opacity: 0.4;
    font-size: 0.65rem;
}

/* ── Category Chip ── */
.bp-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(79, 70, 229, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(165, 180, 252, 0.3);
    color: #e0e7ff;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    font-family: var(--bp-font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

/* ── Hero Title ── */
.bp-hero-title {
    font-family: var(--bp-font-title);
    font-size: clamp(1.875rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* ── Hero Meta Row ── */
.bp-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-family: var(--bp-font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
}

.bp-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.bp-hero-meta-item i {
    color: #a5b4fc;
    font-size: 0.75rem;
}

.bp-author-ava {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.bp-vd {
    width: 1px;
    height: 0.875rem;
    background: rgba(255, 255, 255, 0.2);
}

/* ── Main Grid Layout ── */
.bp-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
}

/* ── Article Body ── */
.bp-article-body {
    font-family: var(--bp-font-body);
    font-size: 1.0625rem;
    line-height: 1.875;
    color: #1f2937;
}

.bp-article-body p { margin-bottom: 1.6rem; }

.bp-article-body h1,
.bp-article-body h2,
.bp-article-body h3,
.bp-article-body h4,
.bp-article-body h5,
.bp-article-body h6 {
    font-family: var(--bp-font-title);
    color: #0f172a;
    margin: 2.5rem 0 1rem;
    line-height: 1.25;
    font-weight: 700;
}

.bp-article-body h2 { font-size: 1.75rem; }
.bp-article-body h3 { font-size: 1.5rem; }
.bp-article-body h4 { font-size: 1.25rem; font-family: var(--bp-font-body); }
.bp-article-body h5 { font-size: 1.1rem;  font-family: var(--bp-font-body); }
.bp-article-body h6 { font-size: 1rem;    font-family: var(--bp-font-body); color: var(--bp-muted); }

.bp-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
}

.bp-article-body blockquote {
    position: relative;
    border: none;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(124, 58, 237, 0.05));
    border-left: 4px solid #4f46e5;
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 1.75rem 1.5rem 2rem;
    margin: 2.5rem 0;
    font-size: 1.1rem;
    font-style: italic;
    color: #374151;
}

.bp-article-body blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: var(--bp-font-title);
    font-size: 4rem;
    color: #4f46e5;
    opacity: 0.3;
    line-height: 1;
}

.bp-article-body ul,
.bp-article-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.bp-article-body li           { margin-bottom: 0.6rem; display: list-item; }
.bp-article-body ul li        { list-style-type: disc; }
.bp-article-body ol li        { list-style-type: decimal; }

.bp-article-body a {
    color: #4f46e5;
    text-decoration-line: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s;
}

.bp-article-body a:hover { color: #7c3aed; }

.bp-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
}

.bp-article-body table th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    padding: 0.875rem 1.125rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.bp-article-body table td {
    padding: 0.75rem 1.125rem;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}

.bp-article-body table tr:last-child td { border-bottom: none; }
.bp-article-body table tr:hover td     { background: #fafafa; }

.bp-article-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.875rem;
    line-height: 1.7;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.bp-article-body code {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: #f0f0ff;
    color: #4f46e5;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    font-size: 0.875em;
}

.bp-article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* TinyMCE inline-style overrides */
.bp-article-body [style*="text-align: center"] { text-align: center !important; }
.bp-article-body [style*="font-size"]           { font-size: inherit !important; }

/* ── Tags Strip ── */
.bp-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bp-border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.bp-tags-label {
    font-family: var(--bp-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bp-muted);
}

.bp-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    font-family: var(--bp-font-body);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.bp-tag:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* ── Author Card ── */
.bp-author-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(124, 58, 237, 0.04));
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.bp-author-card-ava {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bp-font-title);
    font-size: 1.4rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}

.bp-author-card-name {
    font-family: var(--bp-font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.bp-author-card-role {
    font-family: var(--bp-font-body);
    font-size: 0.78rem;
    color: var(--bp-muted);
    font-weight: 500;
}

/* ── Sidebar ── */
.bp-sidebar {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bp-widget {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    padding: 1.375rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.bp-widget-title {
    font-family: var(--bp-font-body);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bp-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bp-widget-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.875rem;
    background: linear-gradient(180deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}

/* Reading Stats Grid */
.bp-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.bp-stat {
    background: var(--bp-bg);
    border-radius: 10px;
    padding: 0.875rem;
    text-align: center;
}

.bp-stat-val {
    font-family: var(--bp-font-title);
    font-size: 1.4rem;
    font-weight: 800;
    color: #4f46e5;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.bp-stat-lbl {
    font-family: var(--bp-font-body);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bp-muted);
}

/* Share Widget */
.bp-share-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bp-share-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.875rem;
    border-radius: 10px;
    font-family: var(--bp-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
    width: 100%;
    color: inherit;
}

.bp-share-item.tw              { background: #eff6ff; color: #2563eb; }
.bp-share-item.tw:hover        { background: #1d9bf0; color: #fff; border-color: #1d9bf0; }
.bp-share-item.li              { background: #f0f9ff; color: #0077b5; }
.bp-share-item.li:hover        { background: #0077b5; color: #fff; border-color: #0077b5; }
.bp-share-item.cp              { background: #f3f4f6; color: #374151; }
.bp-share-item.cp:hover        { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.bp-share-item i               { width: 1rem; text-align: center; }

/* Progress Ring Widget */
.bp-progress-ring-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 0.25rem;
    position: relative;
}

.bp-progress-svg    { transform: rotate(-90deg); }
.bp-progress-track  { fill: none; stroke: #f1f5f9; stroke-width: 7; }
.bp-progress-fill {
    fill: none;
    stroke-width: 7;
    stroke: url(#pg-grad);
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.2s linear;
}

.bp-progress-ring-pct {
    position: absolute;
    font-family: var(--bp-font-title);
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

/* ── More Articles ── */
.bp-more {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 5rem 1.5rem;
}

.bp-more-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.bp-section-eyebrow {
    font-family: var(--bp-font-body);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.bp-section-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 1px;
}

.bp-section-h2 {
    font-family: var(--bp-font-title);
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.bp-section-sub {
    font-family: var(--bp-font-body);
    font-size: 1rem;
    color: var(--bp-muted);
    margin-bottom: 2.75rem;
}

.bp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.bp-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.bp-card-imgwrap {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.bp-card-img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.bp-card:hover .bp-card-img { transform: scale(1.06); }

.bp-card-body {
    padding: 1.375rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bp-card-cat {
    font-family: var(--bp-font-body);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.bp-card-title {
    font-family: var(--bp-font-body);
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex: 1;
}

.bp-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.bp-card-date {
    font-family: var(--bp-font-body);
    font-size: 0.75rem;
    color: var(--bp-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.bp-card-arrow {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.bp-card:hover .bp-card-arrow {
    background: #4f46e5;
    color: #fff;
    transform: translateX(3px);
}

/* ── CTA Section ── */
.bp-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
    padding: 5.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.bp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 20% 50%, rgba(79, 70, 229, 0.3) 0%, transparent 65%),
        radial-gradient(ellipse 45% 55% at 85% 40%, rgba(124, 58, 237, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.bp-cta::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.08);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.bp-cta-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.bp-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #a5b4fc;
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-family: var(--bp-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.bp-cta-title {
    font-family: var(--bp-font-title);
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.bp-cta-desc {
    font-family: var(--bp-font-body);
    font-size: 1.0625rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.bp-cta-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.bp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-family: var(--bp-font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bp-cta-btn.primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.35);
}

.bp-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.45);
}

.bp-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bp-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-3px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .bp-main {
        grid-template-columns: 1fr 240px;
        gap: 2.5rem;
    }
}

@media (max-width: 860px) {
    .bp-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .bp-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .bp-progress-widget { display: none; }
}

@media (max-width: 600px) {
    .bp-hero-content { padding: 2rem 1.25rem 2.5rem; }
    .bp-hero-title   { font-size: 1.75rem; }
    .bp-main         { padding: 2rem 1rem 3rem; }
    .bp-sidebar      { grid-template-columns: 1fr; }
    .bp-article-body { font-size: 1rem; line-height: 1.8; }
    .bp-article-body h2 { font-size: 1.375rem; }
    .bp-cards        { grid-template-columns: 1fr; }
}

/* ── Rich Text Editor Content Adjustments ── */
.bp-article-body [style*="text-align: center"] {
    text-align: center !important;
}

.bp-article-body [style*="font-family"] {
    font-family: inherit;
}

.bp-article-body [style*="font-size"] {
    font-size: inherit !important;
}

.bp-article-body h2[style*="text-align: center"] {
    text-align: center !important;
    margin: 2rem auto;
}

.bp-article-body h2[style*="text-align: center"] span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem !important;
    line-height: 1.2;
    display: inline-block;
}

.bp-article-body p[style*="text-align: center"] {
    text-align: center !important;
    margin: 1rem auto;
}

.bp-article-body p[style*="text-align: center"] span {
    font-size: 1.5rem !important;
    line-height: 1.4;
    display: inline-block;
}

/* Responsive Styles for Editor Content */
@media (max-width: 1200px) {
    .bp-article-body h2[style*="text-align: center"] span {
        font-size: 2.25rem !important;
    }
    .bp-article-body p[style*="text-align: center"] span {
        font-size: 1.35rem !important;
    }
}

@media (max-width: 768px) {
    .bp-article-body h2[style*="text-align: center"] span {
        font-size: 2rem !important;
    }
    .bp-article-body p[style*="text-align: center"] span {
        font-size: 1.25rem !important;
    }
    /* Override inline styles for mobile */
    .bp-article-body [style*="font-size: 36pt"],
    .bp-article-body [style*="font-size:36pt"] {
        font-size: 2rem !important;
    }
    .bp-article-body [style*="font-size: 18pt"],
    .bp-article-body [style*="font-size:18pt"] {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 640px) {
    .bp-article-body h2[style*="text-align: center"] span {
        font-size: 1.75rem !important;
    }
    .bp-article-body p[style*="text-align: center"] span {
        font-size: 1.125rem !important;
    }
    .bp-article-body [style*="font-size: 36pt"],
    .bp-article-body [style*="font-size:36pt"] {
        font-size: 1.75rem !important;
    }
    .bp-article-body [style*="font-size: 18pt"],
    .bp-article-body [style*="font-size:18pt"] {
        font-size: 1.125rem !important;
    }
}

/* ═══════════════════════════════════════════════════════
   DARK MODE — blog-page
   Activated when <body> has .dark-mode class (see dark-mode.js)
   ═══════════════════════════════════════════════════════ */

/* ── Main content area background ── */
.dark-mode .bp-main {
    background: transparent;
}

/* ── Article body text ── */
.dark-mode .bp-article-body {
    color: #cbd5e1 !important;
}

.dark-mode .bp-article-body p,
.dark-mode .bp-article-body li,
.dark-mode .bp-article-body span {
    color: #cbd5e1 !important;
}

.dark-mode .bp-article-body h1,
.dark-mode .bp-article-body h2,
.dark-mode .bp-article-body h3,
.dark-mode .bp-article-body h4,
.dark-mode .bp-article-body h5 {
    color: #e2e8f0 !important;
}

.dark-mode .bp-article-body h6 {
    color: #94a3b8 !important;
}

.dark-mode .bp-article-body a {
    color: #818cf8 !important;
}

.dark-mode .bp-article-body a:hover {
    color: #a5b4fc !important;
}

/* ── Blockquote ── */
.dark-mode .bp-article-body blockquote {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.12)) !important;
    border-left-color: #6366f1 !important;
    color: #94a3b8 !important;
}

.dark-mode .bp-article-body blockquote::before {
    color: #6366f1;
    opacity: 0.4;
}

/* ── Tables ── */
.dark-mode .bp-article-body table {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .bp-article-body table th {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-bottom-color: #334155 !important;
}

.dark-mode .bp-article-body table td {
    border-bottom-color: #1e293b !important;
    color: #94a3b8 !important;
}

.dark-mode .bp-article-body table tr:hover td {
    background: #1e293b !important;
}

/* ── Inline code ── */
.dark-mode .bp-article-body code {
    background: #1e293b;
    color: #a5b4fc;
}

/* ── Images ── */
.dark-mode .bp-article-body img {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Tags strip ── */
.dark-mode .bp-tags {
    border-top-color: #334155;
}

.dark-mode .bp-tags-label {
    color: #64748b;
}

.dark-mode .bp-tag {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

.dark-mode .bp-tag:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* ── Author card ── */
.dark-mode .bp-author-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    border-color: rgba(99, 102, 241, 0.25);
}

.dark-mode .bp-author-card-name {
    color: #e2e8f0;
}

.dark-mode .bp-author-card-role {
    color: #64748b;
}

/* ── Sidebar widgets ── */
.dark-mode .bp-widget {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.dark-mode .bp-widget-title {
    color: #64748b;
}

/* ── Stats ── */
.dark-mode .bp-stat {
    background: #0f172a;
}

.dark-mode .bp-stat-lbl {
    color: #64748b;
}

/* ── Progress ring percentage text ── */
.dark-mode .bp-progress-ring-pct {
    color: #e2e8f0;
}

/* ── Progress ring track ── */
.dark-mode .bp-progress-track {
    stroke: #1e293b;
}

/* ── Share buttons ── */
.dark-mode .bp-share-item {
    border-color: #334155;
}
.dark-mode .bp-share-item.tw {
    background: #1e293b;
    color: #60a5fa;
}

.dark-mode .bp-share-item.tw:hover {
    background: #1d9bf0;
    color: #fff;
    border-color: #1d9bf0;
}

.dark-mode .bp-share-item.li {
    background: #1e293b;
    color: #38bdf8;
}

.dark-mode .bp-share-item.li:hover {
    background: #0077b5;
    color: #fff;
    border-color: #0077b5;
}

.dark-mode .bp-share-item.cp {
    background: #1e293b;
    color: #94a3b8;
}

.dark-mode .bp-share-item.cp:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* ── More Articles section ── */
.dark-mode .bp-more {
    background: #0f172a;
    border-top-color: #1e293b;
}

.dark-mode .bp-section-h2 {
    color: #e2e8f0;
}

.dark-mode .bp-section-sub {
    color: #64748b;
}

/* ── Related post cards ── */
.dark-mode .bp-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .bp-card:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.dark-mode .bp-card-title {
    color: #e2e8f0;
}

.dark-mode .bp-card-date {
    color: #64748b;
}

.dark-mode .bp-card-arrow {
    background: #0f172a;
    color: #818cf8;
}

.dark-mode .bp-card:hover .bp-card-arrow {
    background: #4f46e5;
    color: #fff;
}

/* ── Navbar override in dark mode ── */
body.dark-mode:has(.bp-hero-banner) header nav ul.navbar {
    background: rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ── Article body text ── */
.dark .bp-article-body {
    color: #cbd5e1;
}

.dark .bp-article-body p {
    color: #cbd5e1;
}

.dark .bp-article-body h1,
.dark .bp-article-body h2,
.dark .bp-article-body h3,
.dark .bp-article-body h4,
.dark .bp-article-body h5 {
    color: #e2e8f0;
}

.dark .bp-article-body h6 {
    color: #94a3b8;
}

.dark .bp-article-body a {
    color: #818cf8;
}

.dark .bp-article-body a:hover {
    color: #a5b4fc;
}

/* ── Blockquote ── */
.dark .bp-article-body blockquote {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.12));
    border-left-color: #6366f1;
    color: #94a3b8;
}

.dark .bp-article-body blockquote::before {
    color: #6366f1;
    opacity: 0.4;
}

/* ── Tables ── */
.dark .bp-article-body table {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dark .bp-article-body table th {
    background: #1e293b;
    color: #e2e8f0;
    border-bottom-color: #334155;
}

.dark .bp-article-body table td {
    border-bottom-color: #1e293b;
    color: #94a3b8;
}

.dark .bp-article-body table tr:hover td {
    background: #1e293b;
}

/* ── Inline code ── */
.dark .bp-article-body code {
    background: #1e293b;
    color: #a5b4fc;
}

/* ── Images ── */
.dark .bp-article-body img {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Tags strip ── */
.dark .bp-tags {
    border-top-color: #334155;
}

.dark .bp-tags-label {
    color: #64748b;
}

.dark .bp-tag {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

.dark .bp-tag:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* ── Author card ── */
.dark .bp-author-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    border-color: rgba(99, 102, 241, 0.25);
}

.dark .bp-author-card-name {
    color: #e2e8f0;
}

.dark .bp-author-card-role {
    color: #64748b;
}

/* ── Sidebar widgets ── */
.dark .bp-widget {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.dark .bp-widget-title {
    color: #64748b;
}

/* ── Stats ── */
.dark .bp-stat {
    background: #0f172a;
}

.dark .bp-stat-lbl {
    color: #64748b;
}

/* ── Progress ring percentage text ── */
.dark .bp-progress-ring-pct {
    color: #e2e8f0;
}

/* ── Progress ring track ── */
.dark .bp-progress-track {
    stroke: #1e293b;
}

/* ── Share buttons ── */
.dark .bp-share-item {
    border-color: #334155;
}
.dark .bp-share-item.tw {
    background: #1e293b;
    color: #60a5fa;
}

.dark .bp-share-item.tw:hover {
    background: #1d9bf0;
    color: #fff;
    border-color: #1d9bf0;
}

.dark .bp-share-item.li {
    background: #1e293b;
    color: #38bdf8;
}

.dark .bp-share-item.li:hover {
    background: #0077b5;
    color: #fff;
    border-color: #0077b5;
}

.dark .bp-share-item.cp {
    background: #1e293b;
    color: #94a3b8;
}

.dark .bp-share-item.cp:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* ── More Articles section ── */
.dark .bp-more {
    background: #0f172a;
    border-top-color: #1e293b;
}

.dark .bp-section-h2 {
    color: #e2e8f0;
}

.dark .bp-section-sub {
    color: #64748b;
}

/* ── Related post cards ── */
.dark .bp-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark .bp-card:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.dark .bp-card-title {
    color: #e2e8f0;
}

.dark .bp-card-date {
    color: #64748b;
}

.dark .bp-card-arrow {
    background: #0f172a;
    color: #818cf8;
}

.dark .bp-card:hover .bp-card-arrow {
    background: #4f46e5;
    color: #fff;
}

/* ── Navbar override in dark mode — keep hero-area nav styled correctly ── */
.dark body:has(.bp-hero-banner) header nav ul.navbar {
    background: rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
