/* =============================================================================
   Blog Premium 2025 — blog-modern.css  (full rewrite)
   Prefix: bm-   |   Scoped to <main> only — navbar & footer NEVER touched
   ============================================================================= */

/* ===========================================================================
   0. CSS CUSTOM PROPERTIES (blog-scoped)
   =========================================================================== */
:root {
    /* Multi-layer shadow system (Framer/Linear-inspired) */
    --bm-shadow-xs: 0 1px 2px rgba(9, 40, 60, 0.05);
    --bm-shadow-sm: 0 2px 8px rgba(9, 40, 60, 0.07), 0 1px 3px rgba(9, 40, 60, 0.04);
    --bm-shadow-md: 0 6px 20px rgba(9, 40, 60, 0.09), 0 2px 6px rgba(9, 40, 60, 0.05);
    --bm-shadow-lg: 0 14px 40px rgba(9, 40, 60, 0.11), 0 4px 10px rgba(9, 40, 60, 0.06);
    --bm-shadow-xl: 0 24px 64px rgba(9, 40, 60, 0.14), 0 8px 20px rgba(9, 40, 60, 0.07);

    /* Category accent palette */
    --bm-cat-career: #2563eb;
    --bm-cat-remote: #0891b2;
    --bm-cat-team: #7c3aed;
    --bm-cat-ai: #d97706;
    --bm-cat-seasonal: #059669;
    --bm-cat-industry: #dc2626;

    /* Border radii */
    --bm-r-sm: 4px;
    --bm-r-md: 6px;
    --bm-r-lg: 10px;
    --bm-r-xl: 12px;
    --bm-r-2xl: 18px;

    /* Premium easing */
    --bm-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --bm-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --bm-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --bm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.22);
    --bm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28), 0 1px 3px rgba(0, 0, 0, 0.18);
    --bm-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.2);
    --bm-shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.38), 0 4px 10px rgba(0, 0, 0, 0.22);
    --bm-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.44), 0 8px 20px rgba(0, 0, 0, 0.28);
}

body:has(.bm-filter-bar) .main-navbar {
    position: relative !important;
}

/* ===========================================================================
   1. GLOBAL FOCUS STATES (accessibility)
   =========================================================================== */
.bm-filter-tab:focus-visible,
.bm-card a:focus-visible,
.bm-card-link:focus-visible,
.bm-read-btn:focus-visible,
.bm-view-all:focus-visible,
.bm-page-link:focus-visible,
.bm-featured-title a:focus-visible,
.bm-nav-article:focus-visible,
.bm-related-title:focus-visible,
.bm-mini-card-title a:focus-visible,
.bm-author-social-btn:focus-visible,
.bm-share-btn:focus-visible,
.bm-share-full-btn:focus-visible,
.bm-newsletter-btn:focus-visible,
.bm-search-btn:focus-visible {
    outline: 2.5px solid var(--theme-green);
    outline-offset: 3px;
    border-radius: 5px;
}

/* ===========================================================================
   2. HERO SECTION
   =========================================================================== */
.bm-hero {
    position: relative;
    overflow: hidden;
}

.bm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.9) 40%,
        rgba(241, 245, 247, 0.78) 100%
    );
    z-index: 1;
}

[data-theme="dark"] .bm-hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(23, 23, 23, 0.97) 0%,
        rgba(23, 23, 23, 0.92) 40%,
        rgba(24, 33, 43, 0.82) 100%
    );
}

/* Decorative radial glow */
.bm-hero::after {
    content: "";
    position: absolute;
    bottom: -70px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(235, 202, 67, 0.11) 0%,
        transparent 65%
    );
    z-index: 1;
    pointer-events: none;
}

.bm-hero .section-content {
    position: relative;
    z-index: 2;
}

/* Hero badge */
.bm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(17, 80, 119, 0.08);
    color: var(--theme-primary-light);
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 50rem;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    border: 1.5px solid rgba(17, 80, 119, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-theme="dark"] .bm-hero-badge {
    background: rgba(52, 103, 136, 0.2);
    color: var(--theme-primary-light-dm);
    border-color: rgba(52, 103, 136, 0.28);
}

/* Hero search bar */
.bm-hero-search {
    width: 100%;
    max-width: 540px;
}

.bm-hero-search-inner {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(219, 229, 235, 0.9);
    border-radius: var(--bm-r-lg);
    padding: 8px 8px 8px 18px;
    box-shadow: var(--bm-shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
    gap: 10px;
    transition: box-shadow 0.3s var(--bm-ease),
    border-color 0.3s var(--bm-ease);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.bm-hero-search-inner:focus-within {
    box-shadow: var(--bm-shadow-xl),
    0 0 0 4px rgba(17, 80, 119, 0.1);
    border-color: var(--theme-primary-light);
}

[data-theme="dark"] .bm-hero-search-inner {
    background: rgba(31, 31, 31, 0.88);
    border-color: var(--border-dm);
    box-shadow: var(--bm-shadow-lg);
}

.bm-search-icon {
    color: var(--muted);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.bm-hero-search-inner:focus-within .bm-search-icon {
    color: var(--theme-primary-light);
}

.bm-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--theme-dark);
    font-family: inherit;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .bm-search-input {
    color: var(--theme-dark-dm);
}

.bm-search-input::placeholder {
    color: var(--muted);
}

.bm-search-btn {
    background: var(--theme-primary-light);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: opacity 0.25s ease,
    transform 0.22s var(--bm-ease-spring),
    box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(9, 40, 60, 0.28);
}

.bm-search-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(9, 40, 60, 0.33);
}

.bm-search-btn:active {
    transform: translateY(0);
}

/* ===========================================================================
   3. CATEGORY FILTER BAR
   =========================================================================== */
.bm-filter-bar {
    background: var(--theme-white);
    border-bottom: 1px solid var(--neutral-white-3);
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--bm-shadow-xs);
}

[data-theme="dark"] .bm-filter-bar {
    background: var(--theme-base);
    border-bottom-color: var(--border-dm);
}

.bm-filter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bm-filter-inner::-webkit-scrollbar {
    display: none;
}

.bm-filter-tabs {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.bm-filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--neutral-dark-1);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.22s var(--bm-ease);
    border: 1.5px solid transparent;
    letter-spacing: -0.01em;
}

.bm-filter-tab:hover {
    background: var(--neutral-white-2);
    color: var(--theme-primary-dark);
}

[data-theme="dark"] .bm-filter-tab:hover {
    background: var(--neutral-white-4);
    color: var(--theme-dark-dm);
}

.bm-filter-tab.active {
    background: var(--theme-primary-dark);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(9, 40, 60, 0.25);
}

[data-theme="dark"] .bm-filter-tab.active {
    background: var(--theme-primary-light-dm);
}

.bm-sort-label {
    font-size: 13px;
    color: var(--muted);
    flex-shrink: 0;
    font-weight: 500;
}

.bm-sort-select {
    border: 1.5px solid var(--neutral-white-3);
    border-radius: var(--bm-r-sm);
    padding: 6px 12px;
    font-size: 13px;
    background: var(--theme-white);
    color: var(--theme-dark);
    cursor: pointer;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease,
    box-shadow 0.2s ease;
    box-shadow: var(--bm-shadow-xs);
}

.bm-sort-select:focus {
    border-color: var(--theme-primary-light);
    box-shadow: 0 0 0 3px rgba(17, 80, 119, 0.1);
}

[data-theme="dark"] .bm-sort-select {
    background: var(--theme-base);
    border-color: var(--border-dm);
    color: var(--theme-dark-dm);
}

/* ===========================================================================
   4. SHARED PRIMITIVES
   =========================================================================== */

/* — Category badge — */
.bm-category-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.22s var(--bm-ease);
    border: 1.5px solid transparent;
    background: rgba(17, 80, 119, 0.09);
    color: var(--theme-primary-light);
    border-color: rgba(17, 80, 119, 0.15);
}

.bm-category-badge:hover {
    background: var(--theme-primary-light);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

[data-theme="dark"] .bm-category-badge {
    background: rgba(88, 167, 200, 0.15);
    color: var(--theme-primary-light-dm);
    border-color: rgba(88, 167, 200, 0.2);
}

/* Category color variants */
.bm-cat--career {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.18);
}

.bm-cat--remote {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    border-color: rgba(8, 145, 178, 0.18);
}

.bm-cat--team {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.18);
}

.bm-cat--ai {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.18);
}

.bm-cat--seasonal {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border-color: rgba(5, 150, 105, 0.18);
}

.bm-cat--industry {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.18);
}

.bm-cat--career:hover {
    background: #2563eb;
    color: #fff;
    border-color: transparent;
}

.bm-cat--remote:hover {
    background: #0891b2;
    color: #fff;
    border-color: transparent;
}

.bm-cat--team:hover {
    background: #7c3aed;
    color: #fff;
    border-color: transparent;
}

.bm-cat--ai:hover {
    background: #d97706;
    color: #fff;
    border-color: transparent;
}

.bm-cat--seasonal:hover {
    background: #059669;
    color: #fff;
    border-color: transparent;
}

.bm-cat--industry:hover {
    background: #dc2626;
    color: #fff;
    border-color: transparent;
}

/* — Read time — */
.bm-read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

/* — Author row — */
.bm-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--bm-shadow-sm);
}

.bm-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bm-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bm-author-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-primary-dark);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .bm-author-name {
    color: var(--theme-primary-dark-dm);
}

.bm-date {
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.01em;
}

/* — Read more CTA button — */
.bm-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--theme-primary-light);
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(9, 40, 60, 0.28);
    transition: opacity 0.25s ease,
    transform 0.22s var(--bm-ease-spring),
    box-shadow 0.25s ease;
}

.bm-read-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 8px 26px rgba(9, 40, 60, 0.34);
}

.bm-read-btn:active {
    transform: translateY(0);
}

[data-theme="dark"] .bm-read-btn {
    color: #FFFFFF;
}

/* ===========================================================================
   5. FEATURED HERO CARD
   =========================================================================== */
.bm-featured-card {
    border-radius: var(--bm-r-xl);
    overflow: hidden;
    background: var(--theme-white);
    box-shadow: var(--bm-shadow-lg);
    border: 1px solid rgba(219, 229, 235, 0.6);
    transition: box-shadow 0.38s var(--bm-ease),
    transform 0.38s var(--bm-ease);
}

.bm-featured-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--bm-shadow-xl);
}

[data-theme="dark"] .bm-featured-card {
    background: var(--theme-base);
    border-color: var(--border-dm);
}

.bm-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    background: var(--theme-secondary);
    color: var(--theme-primary-dark);
    font-size: 10px;
    font-weight: 900;
    padding: 5px 13px;
    border-radius: 50rem;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.bm-featured-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
}

/* Subtle cinematic top-left vignette */
.bm-featured-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(9, 40, 60, 0.18) 0%,
        transparent 55%
    );
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 991px) {
    .bm-featured-img-wrap {
        min-height: 240px;
    }
}

.bm-featured-img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.62s var(--bm-ease);
}

@media (max-width: 991px) {
    .bm-featured-img {
        min-height: 240px;
    }
}

.bm-featured-card:hover .bm-featured-img {
    transform: scale(1.05);
}

.bm-featured-body {
    padding: 2.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Animated green-to-yellow accent stripe on right */
.bm-featured-body::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    /* background: var(--gradient-secondary); */
    opacity: 0;
    transition: opacity 0.4s var(--bm-ease);
    border-radius: 0 var(--bm-r-xl) var(--bm-r-xl) 0;
}

.bm-featured-card:hover .bm-featured-body::after {
    opacity: 1;
}

@media (max-width: 991px) {
    .bm-featured-body {
        padding: 1.75rem;
    }
}

.bm-featured-title {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 800;
    line-height: 1.27;
    margin-bottom: 1rem;
    letter-spacing: -0.028em;
}

.bm-featured-title a {
    color: var(--theme-primary-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}

.bm-featured-title a:hover {
    color: var(--theme-green);
}

[data-theme="dark"] .bm-featured-title a {
    color: var(--theme-primary-light-dm);
}

.bm-featured-excerpt {
    color: var(--neutral-dark-1);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 1.75rem;
    flex: 1;
}

[data-theme="dark"] .bm-featured-excerpt {
    color: var(--neutral-dark-1-dm);
}

.bm-featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===========================================================================
   6. SECTION HEADER
   =========================================================================== */
.bm-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 1.25rem;
    border-bottom: 1.5px solid var(--neutral-white-3);
    position: relative;
}

.bm-section-header::after {
    content: "";
    position: absolute;
    bottom: -1.5px;
    left: 0;
    width: 48px;
    height: 2.5px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

[data-theme="dark"] .bm-section-header {
    border-bottom-color: var(--border-dm);
}

.bm-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--theme-primary-dark);
    margin-bottom: 3px;
    letter-spacing: -0.028em;
}

[data-theme="dark"] .bm-section-title {
    color: var(--theme-primary-light-dm);
}

.bm-section-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.bm-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-primary-light);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
    padding: 6px 0;
    transition: color 0.22s ease,
    gap 0.22s ease;
}

.bm-view-all:hover {
    color: var(--theme-green);
    gap: 8px;
}

[data-theme="dark"] .bm-view-all {
    color: var(--theme-primary-light-dm);
}

/* ===========================================================================
   7. BLOG CARD — Premium redesign
   =========================================================================== */
.bm-card {
    background: var(--theme-white);
    border-radius: var(--bm-r-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(219, 229, 235, 0.75);
    box-shadow: var(--bm-shadow-sm);
    transition: transform 0.34s var(--bm-ease),
    box-shadow 0.34s var(--bm-ease),
    border-color 0.34s ease;
}

/* Gradient bottom-edge accent strip — slides in on hover */
.bm-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.38s var(--bm-ease);
    border-radius: 0 0 var(--bm-r-lg) var(--bm-r-lg);
}

.bm-card:hover {
    transform: translateY(-9px);
    box-shadow: var(--bm-shadow-xl);
    border-color: rgba(219, 229, 235, 0.3);
}

.bm-card:hover::after {
    transform: scaleX(1);
}

[data-theme="dark"] .bm-card {
    background: var(--theme-base);
    border-color: rgba(31, 47, 56, 0.85);
}

[data-theme="dark"] .bm-card:hover {
    box-shadow: var(--bm-shadow-xl);
}

/* Card image */
.bm-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}

/* Dark bottom gradient overlay — fades in on hover */
.bm-card-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(9, 40, 60, 0.5) 0%,
        rgba(9, 40, 60, 0.12) 40%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.38s var(--bm-ease);
    z-index: 1;
}

.bm-card:hover .bm-card-img-wrap::after {
    opacity: 1;
}

.bm-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.58s var(--bm-ease);
}

.bm-card:hover .bm-card-img {
    transform: scale(1.09);
}

/* Category overlay badge */
.bm-card-category {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    background: rgba(9, 40, 60, 0.76);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 50rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.25s ease;
}

.bm-card-category:hover {
    background: var(--theme-green);
    color: #fff;
}

/* Card body */
.bm-card-body {
    padding: 1.15rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 9px;
}

.bm-card-meta-top {
    display: flex;
    align-items: center;
    gap: 0;
}

.bm-card-date,
.bm-card-read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
}

/* Dot separator */
.bm-card-meta-top > .bm-card-date::after {
    content: "·";
    margin: 0 8px;
    opacity: 0.45;
    font-weight: 700;
}

.bm-card-title {
    font-size: 0.975rem;
    font-weight: 700;
    line-height: 1.44;
    margin: 0;
    letter-spacing: -0.016em;
}

.bm-card-title a {
    color: var(--theme-primary-dark);
    text-decoration: none;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-card-title a:hover {
    color: var(--theme-green);
}

[data-theme="dark"] .bm-card-title a {
    color: var(--theme-primary-light-dm);
}

.bm-card-excerpt {
    font-size: 13.5px;
    color: var(--neutral-dark-1);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .bm-card-excerpt {
    color: var(--neutral-dark-1-dm);
}

/* Card footer */
.bm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--neutral-white-3);
}

[data-theme="dark"] .bm-card-footer {
    border-top-color: var(--border-dm);
}

.bm-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bm-card-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gradient-primary);
    flex-shrink: 0;
    overflow: hidden;
}

.bm-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bm-card-author-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-dark-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .bm-card-author-name {
    color: var(--neutral-dark-2-dm);
}

.bm-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--theme-primary-light);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
    transition: color 0.22s ease,
    gap 0.22s ease;
}

.bm-card-link:hover {
    color: var(--theme-green);
    gap: 7px;
}

[data-theme="dark"] .bm-card-link {
    color: var(--theme-primary-light-dm);
}

/* ===========================================================================
   8. SIDEBAR NEWSLETTER CARD
   =========================================================================== */
.bm-newsletter-card {
    background: var(--gradient-primary) !important;
    border-color: transparent !important;
    color: #fff;
    text-align: center;
    box-shadow: var(--bm-shadow-lg) !important;
    position: relative;
    overflow: hidden;
}
.bm-newsletter-card::before {
    content: "";
    position: absolute;
    top: -55px;
    right: -55px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(235, 202, 67, 0.1);
    pointer-events: none;
}
.bm-newsletter-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    position: relative;
    z-index: 1;
}
.bm-newsletter-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
    letter-spacing: -0.022em;
    position: relative;
    z-index: 1;
}
.bm-newsletter-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}
.bm-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.bm-newsletter-input {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--bm-r-sm);
    padding: 10px 14px;
    font-size: 13.5px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
    font-family: inherit;
    transition:
        border-color 0.25s ease,
        background 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.bm-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}
.bm-newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}
.bm-newsletter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--bm-r-sm);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: var(--theme-secondary);
    color: var(--theme-primary-dark);
    font-family: inherit;
    letter-spacing: 0.01em;
    text-align: center;
    transition:
        opacity 0.25s ease,
        transform 0.22s var(--bm-ease-spring);
}
.bm-newsletter-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.bm-newsletter-roles {
    display: flex;
    justify-content: space-between;
}
.bm-newsletter-role-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}
.bm-newsletter-feedback {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

/* ===========================================================================
   8b. IN-FEED NEWSLETTER STRIP (blog listing only)
   =========================================================================== */
.bm-newsletter-strip {
    border-radius: var(--bm-r-xl);
    background: var(--gradient-primary);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    box-shadow: var(--bm-shadow-lg);
    position: relative;
    overflow: hidden;
}

.bm-newsletter-strip::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(235, 202, 67, 0.13);
    pointer-events: none;
}

.bm-newsletter-strip::after {
    content: "";
    position: absolute;
    bottom: -70px;
    left: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.bm-newsletter-strip-text {
    flex: 1;
    min-width: 220px;
    position: relative;
    z-index: 1;
}

.bm-newsletter-strip-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--theme-secondary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.bm-newsletter-strip-title {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
    letter-spacing: -0.025em;
    line-height: 1.28;
}

.bm-newsletter-strip-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    line-height: 1.6;
}

.bm-newsletter-strip-form-wrap {
    flex-shrink: 0;
    min-width: 400px;
    position: relative;
    z-index: 1;
}

/* Email column + button side by side */
.bm-newsletter-strip-row {
    display: flex;
    gap: 8px;
    align-items: flex-start; /* button aligns to top of email input */
}

.bm-newsletter-strip-email-col {
    flex: 1;
    min-width: 0;
}

.bm-newsletter-strip-email-col .bm-newsletter-input {
    width: 100%;
    display: block;
}

.bm-newsletter-strip-email-col .bm-newsletter-roles {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    width: 100%;
}

.bm-newsletter-strip-email-col .bm-newsletter-role-label {
    flex: 1;
    white-space: nowrap;
    padding-right: 12px;
}

.bm-newsletter-strip-email-col [data-email-feedback],
.bm-newsletter-strip-email-col [data-role-feedback] {
    margin-top: 6px;
}

.bm-newsletter-strip-row .bm-newsletter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    align-self: flex-start;
}

@media (max-width: 767px) {
    .bm-newsletter-strip {
        padding: 1.75rem;
        gap: 1.5rem;
        flex-direction: column;
    }

    .bm-newsletter-strip-form-wrap {
        width: 100%;
        min-width: 0;
    }

    .bm-newsletter-strip-row {
        flex-direction: column;
    }

    .bm-newsletter-strip-row .bm-newsletter-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================================================
   9. PAGINATION
   =========================================================================== */
.bm-pagination-wrap {
    display: flex;
    justify-content: center;
}

.bm-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

/*.bm-page-link {*/
/*  display: inline-flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  width: 42px;*/
/*  height: 42px;*/
/*  border-radius: 6px;*/
/*  border: 1.5px solid var(--neutral-white-3);*/
/*  background: var(--theme-white);*/
/*  color: var(--neutral-dark-2);*/
/*  font-size: 14px;*/
/*  font-weight: 600;*/
/*  text-decoration: none;*/
/*  box-shadow: var(--bm-shadow-xs);*/
/*  transition: all 0.22s var(--bm-ease);*/
/*}*/
/*.bm-page-link:hover {*/
/*  border-color: var(--theme-primary-light);*/
/*  color: var(--theme-primary-light);*/
/*  background: rgba(17, 80, 119, 0.05);*/
/*  transform: translateY(-2px);*/
/*  box-shadow: var(--bm-shadow-sm);*/
/*}*/
/*.bm-page-item.active .bm-page-link {*/
/*  background: var(--gradient-primary);*/
/*  border-color: transparent;*/
/*  color: #fff;*/
/*  box-shadow: 0 4px 16px rgba(9, 40, 60, 0.3);*/
/*}*/
/*.bm-page-link.bm-page-nav {*/
/*  font-size: 13px;*/
/*  background: var(--neutral-white-1);*/
/*}*/
/*[data-theme="dark"] .bm-page-link {*/
/*  background: var(--theme-base);*/
/*  border-color: var(--border-dm);*/
/*  color: var(--neutral-dark-1-dm);*/
/*}*/
/*[data-theme="dark"] .bm-page-link.bm-page-nav {*/
/*  background: var(--neutral-white-1-dm);*/
/*}*/

/* ===========================================================================
   10. READING PROGRESS BAR
   =========================================================================== */
.bm-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-secondary);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ===========================================================================
   11. ARTICLE HERO HEADER
   =========================================================================== */
.bm-article-hero {
    background: linear-gradient(
        160deg,
        var(--foundation-blue-4) 0%,
        var(--foundation-blue-3) 55%,
        var(--foundation-blue-4) 100%
    );
    padding: 2.5rem 0 3.25rem;
    border-bottom: 1px solid var(--neutral-white-3);
    position: relative;
    overflow: hidden;
}

/* Decorative radial accents */
.bm-article-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -90px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(17, 80, 119, 0.07) 0%,
        transparent 65%
    );
    pointer-events: none;
}

.bm-article-hero::after {
    content: "";
    position: absolute;
    bottom: -130px;
    left: -90px;
    width: 370px;
    height: 370px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(235, 202, 67, 0.07) 0%,
        transparent 65%
    );
    pointer-events: none;
}

[data-theme="dark"] .bm-article-hero {
    background: linear-gradient(160deg, #17212b 0%, #1b2734 55%, #17212b 100%);
    border-bottom-color: var(--border-dm);
}

.bm-breadcrumb {
    --bs-breadcrumb-item-padding-x: 0.55rem;
    margin-bottom: 1.75rem;
}

.bm-breadcrumb .breadcrumb-item a {
    color: var(--theme-primary-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bm-breadcrumb .breadcrumb-item a:hover {
    color: var(--theme-green);
}

.bm-breadcrumb .breadcrumb-item.active {
    font-size: 13px;
    color: var(--muted);
}

.bm-article-title {
    font-size: clamp(1.6rem, 4vw, 2.55rem);
    font-weight: 900;
    line-height: 1.19;
    color: var(--theme-primary-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.035em;
}

[data-theme="dark"] .bm-article-title {
    color: var(--theme-primary-dark-dm);
}

.bm-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.bm-share-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-share-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.bm-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--bm-r-sm);
    background: var(--theme-white);
    border: 1.5px solid var(--neutral-white-3);
    color: var(--neutral-dark-2);
    text-decoration: none;
    box-shadow: var(--bm-shadow-xs);
    transition: all 0.25s var(--bm-ease);
}

.bm-share-btn:hover {
    background: var(--theme-primary-dark);
    border-color: var(--theme-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--bm-shadow-sm);
}

[data-theme="dark"] .bm-share-btn {
    background: var(--theme-base);
    border-color: var(--border-dm);
    color: var(--neutral-dark-1-dm);
}

.bm-copy-link--copied {
    background: #e6f9f0 !important;
    border-color: #22c55e !important;
    color: #16a34a !important;
    transform: translateY(-2px);
}

.bm-copy-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bm-copy-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%) translateY(4px);
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.bm-copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #16a34a;
}

.bm-copy-wrap--copied .bm-copy-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===========================================================================
   12. ARTICLE BODY
   =========================================================================== */
.bm-article-body {
    padding: 2.25rem;
    background: var(--theme-white);
    border-radius: var(--bm-r-xl);
    border: 1px solid rgba(219, 229, 235, 0.65);
    box-shadow: var(--bm-shadow-md);
}

[data-theme="dark"] .bm-article-body {
    background: var(--theme-base);
    border-color: var(--border-dm);
}

@media (max-width: 767px) {
    .bm-article-body {
        padding: 1.25rem;
    }
}

/* Cover image */
.bm-article-cover {
    border-radius: var(--bm-r-md);
    overflow: hidden;
    border: 1px solid var(--neutral-white-3);
    box-shadow: var(--bm-shadow-sm);
}

[data-theme="dark"] .bm-article-cover {
    border-color: var(--border-dm);
}

.bm-article-cover img {
    width: 100%;
    display: block;
}

.bm-image-caption {
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
    padding: 0.55rem 1rem;
    margin: 0;
    font-style: italic;
    background: var(--neutral-white-1);
    border-top: 1px solid var(--neutral-white-3);
    letter-spacing: 0.01em;
}

[data-theme="dark"] .bm-image-caption {
    background: var(--neutral-white-1-dm);
    border-top-color: var(--border-dm);
}

/* — Key Takeaways Box — */
.bm-key-takeaways {
    background: linear-gradient(
        135deg,
        rgba(17, 80, 119, 0.07) 0%,
        rgba(40, 160, 19, 0.05) 100%
    );
    border: 1.5px solid rgba(17, 80, 119, 0.16);
    border-radius: var(--bm-r-md);
    padding: 1.5rem 1.75rem;
    position: relative;
    overflow: hidden;
}

.bm-key-takeaways::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px 0 0 2px;
}

[data-theme="dark"] .bm-key-takeaways {
    background: rgba(17, 80, 119, 0.1);
    border-color: rgba(17, 80, 119, 0.22);
}

.bm-key-takeaways-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--theme-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.65px;
    margin-bottom: 1rem;
}

[data-theme="dark"] .bm-key-takeaways-title {
    color: var(--theme-primary-light-dm);
}

.bm-key-takeaways-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bm-key-takeaways-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14.5px;
    color: var(--neutral-dark-3);
    line-height: 1.55;
    font-weight: 500;
}

[data-theme="dark"] .bm-key-takeaways-list li {
    color: var(--neutral-dark-3-dm);
}

.bm-key-takeaways-list li::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--gradient-secondary);
}

/* — Article prose — */
.bm-article-content p {
    color: var(--neutral-dark-3);
    font-size: 16.5px;
    line-height: 1.88;
    margin-bottom: 1.4rem;
    letter-spacing: -0.005em;
}

[data-theme="dark"] .bm-article-content p {
    color: var(--neutral-dark-3-dm);
}

/* Lead paragraph (large intro) */
.bm-article-content p.bm-lead-para {
    font-size: 18.5px;
    font-weight: 400;
    color: var(--theme-primary-dark);
    line-height: 1.72;
    letter-spacing: -0.018em;
}

[data-theme="dark"] .bm-article-content p.bm-lead-para {
    color: var(--theme-primary-dark-dm);
}

/* H2 with accent underline */
.bm-article-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--theme-primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.028em;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--neutral-white-3);
    position: relative;
}

.bm-article-content h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2.5px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

[data-theme="dark"] .bm-article-content h2 {
    color: var(--theme-primary-dark-dm);
    border-bottom-color: var(--border-dm);
}

.bm-article-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-primary-dark);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .bm-article-content h3 {
    color: var(--theme-primary-dark-dm);
}

/* Lists */
.bm-article-content ul,
.bm-article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.4rem;
}

.bm-article-content li {
    color: var(--neutral-dark-3);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 0.55rem;
}

[data-theme="dark"] .bm-article-content li {
    color: var(--neutral-dark-3-dm);
}

/* Excerpt callout */
.bm-article-excerpt {
    background: linear-gradient(
        135deg,
        rgba(17, 80, 119, 0.06) 0%,
        rgba(17, 80, 119, 0.02) 100%
    ) !important;
    border-inline-start-color: rgba(17, 80, 119, 0.72) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.bm-article-excerpt p,
.bm-article-excerpt .text-muted {
    color: var(--neutral-dark-2) !important;
}

[data-theme="dark"] .bm-article-excerpt {
    background: linear-gradient(
        135deg,
        rgba(250, 204, 21, 0.12) 0%,
        rgba(23, 34, 45, 0.96) 100%
    ) !important;
    border-inline-start-color: var(--dm-accent) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .bm-article-excerpt p,
[data-theme="dark"] .bm-article-excerpt .text-muted {
    color: var(--neutral-dark-1) !important;
}

.bm-article-content ul li::marker {
    color: var(--theme-green);
}

.bm-article-content ol li::marker {
    color: var(--theme-primary-light);
    font-weight: 700;
}

/* Blockquote / pull quote */
.bm-pull-quote {
    border-left: 4px solid var(--theme-green);
    padding: 1.15rem 1.5rem 1.15rem 1.85rem;
    margin: 2rem 0;
    background: linear-gradient(
        135deg,
        rgba(40, 160, 19, 0.06) 0%,
        rgba(17, 80, 119, 0.04) 100%
    );
    border-radius: 0 var(--bm-r-md) var(--bm-r-md) 0;
    position: relative;
}

/* Giant quotation mark */
.bm-pull-quote::before {
    content: "\201C";
    position: absolute;
    top: -12px;
    left: 14px;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--theme-green);
    opacity: 0.18;
    font-family: Georgia, serif;
    pointer-events: none;
}

[data-theme="dark"] .bm-pull-quote {
    background: rgba(40, 160, 19, 0.09);
}

.bm-pull-quote p {
    font-size: 17.5px !important;
    font-style: italic !important;
    color: var(--theme-primary-dark) !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    line-height: 1.68 !important;
    letter-spacing: -0.016em !important;
}

[data-theme="dark"] .bm-pull-quote p {
    color: var(--theme-primary-dark-dm) !important;
}

/* Article tags */
.bm-article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 1.5rem;
    border-top: 1px solid var(--neutral-white-3);
}

[data-theme="dark"] .bm-article-tags {
    border-top-color: var(--border-dm);
}

.bm-tags-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--neutral-dark-2);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .bm-tags-label {
    color: var(--neutral-dark-2-dm);
}

.bm-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Share block */
.bm-share-section {
    background: linear-gradient(
        135deg,
        var(--foundation-blue-4) 0%,
        var(--foundation-blue-3) 100%
    );
    border-radius: var(--bm-r-md);
    padding: 1.35rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid var(--foundation-blue-5);
}

[data-theme="dark"] .bm-share-section {
    background: linear-gradient(135deg, #17212b 0%, #1b2734 100%);
    border-color: var(--border-dm);
}

.bm-share-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-primary-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .bm-share-text {
    color: var(--theme-primary-dark-dm);
}

.bm-share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bm-share-full-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--bm-r-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all 0.25s var(--bm-ease);
}

.bm-share-facebook {
    background: #1877f2;
    color: #fff;
}

.bm-share-facebook:hover {
    background: #1260cc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.bm-share-twitter {
    background: #000;
    color: #fff;
}

.bm-share-twitter:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bm-share-linkedin {
    background: #0077b5;
    color: #fff;
}

.bm-share-linkedin:hover {
    background: #005f8e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.35);
}

.bm-share-copy {
    background: var(--neutral-white-3);
    color: var(--theme-primary-dark);
}

.bm-share-copy:hover {
    background: var(--neutral-white-4);
    transform: translateY(-2px);
}

[data-theme="dark"] .bm-share-copy {
    background: var(--neutral-white-4-dm);
    color: var(--theme-dark-dm);
}

.bm-share-copy.bm-copy-link--copied {
    background: #e6f9f0 !important;
    border-color: #22c55e !important;
    color: #16a34a !important;
}

/* ===========================================================================
   13. "YOU MAY ALSO LIKE" SECTION
   =========================================================================== */
.bm-also-like {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1.5px solid var(--neutral-white-3);
}

[data-theme="dark"] .bm-also-like {
    border-top-color: var(--border-dm);
}

[data-theme="dark"] .blog-article-page__related {
    border-top-color: var(--border-dm) !important;
}

.bm-also-like-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.bm-also-like-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--theme-primary-dark);
    margin: 0;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

[data-theme="dark"] .bm-also-like-title {
    color: var(--theme-primary-dark-dm);
}

.bm-also-like-line {
    flex: 1;
    height: 1.5px;
    background: var(--gradient-secondary);
    opacity: 0.35;
    border-radius: 1px;
}

/* Mini cards */
.bm-mini-card {
    border-radius: var(--bm-r-md);
    overflow: hidden;
    background: var(--theme-white);
    border: 1px solid rgba(219, 229, 235, 0.75);
    box-shadow: var(--bm-shadow-xs);
    transition: all 0.3s var(--bm-ease);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

.bm-mini-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--bm-ease);
    border-radius: 0 0 var(--bm-r-md) var(--bm-r-md);
}

.bm-mini-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bm-shadow-lg);
    border-color: transparent;
}

.bm-mini-card:hover::after {
    transform: scaleX(1);
}

[data-theme="dark"] .bm-mini-card {
    background: var(--theme-base);
    border-color: var(--border-dm);
}

.bm-mini-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    flex-shrink: 0;
}

.bm-mini-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--bm-ease);
}

.bm-mini-card:hover .bm-mini-card-img-wrap img {
    transform: scale(1.07);
}

.bm-mini-card-body {
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.bm-mini-card-cat {
    font-size: 10px;
    font-weight: 800;
    color: var(--theme-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .bm-mini-card-cat {
    color: var(--theme-primary-light-dm);
}

.bm-mini-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.015em;
    margin: 0;
}

.bm-mini-card-title a {
    color: var(--theme-primary-dark);
    text-decoration: none;
    transition: color 0.22s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-mini-card-title a:hover {
    color: var(--theme-green);
}

[data-theme="dark"] .bm-mini-card-title a {
    color: var(--theme-primary-dark-dm);
}

.bm-mini-card-date {
    font-size: 11px;
    color: var(--muted);
    margin-top: auto;
    padding-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===========================================================================
   14. PREV / NEXT NAVIGATION
   =========================================================================== */
.bm-nav-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 1.5rem;
    border-top: 1px solid var(--neutral-white-3);
}

[data-theme="dark"] .bm-nav-articles {
    border-top-color: var(--border-dm);
}

@media (max-width: 576px) {
    .bm-nav-articles {
        grid-template-columns: 1fr;
    }
}

.bm-nav-article {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 1rem 1.25rem;
    background: var(--neutral-white-1);
    border-radius: var(--bm-r-md);
    border: 1.5px solid var(--neutral-white-3);
    text-decoration: none;
    box-shadow: var(--bm-shadow-xs);
    transition: all 0.28s var(--bm-ease);
}

.bm-nav-article:hover {
    border-color: var(--theme-primary-light);
    background: rgba(17, 80, 119, 0.04);
    transform: translateY(-3px);
    box-shadow: var(--bm-shadow-md);
}

[data-theme="dark"] .bm-nav-article {
    background: var(--neutral-white-1-dm);
    border-color: var(--border-dm);
}

.bm-nav-next {
    text-align: right;
}

.bm-nav-direction {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--theme-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

[data-theme="dark"] .bm-nav-direction {
    color: var(--theme-primary-light-dm);
}

.bm-nav-article-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-primary-dark);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .bm-nav-article-title {
    color: var(--theme-primary-dark-dm);
}

/* ===========================================================================
   15. SIDEBAR
   =========================================================================== */

/* Sticky wrapper on desktop */
@media (min-width: 992px) {
    .bm-sidebar-sticky {
        position: sticky;
        top: 5.5rem;
        align-self: flex-start;
    }
}

.bm-sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bm-sidebar-card {
    background: var(--theme-white);
    border-radius: var(--bm-r-lg);
    border: 1px solid rgba(219, 229, 235, 0.7);
    padding: 1.5rem;
    box-shadow: var(--bm-shadow-sm);
}

[data-theme="dark"] .bm-sidebar-card {
    background: var(--theme-base);
    border-color: var(--border-dm);
}

.bm-sidebar-card-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--theme-primary-dark);
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid var(--neutral-white-3);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bm-sidebar-card-title::after {
    content: "";
    position: absolute;
    bottom: -1.5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

[data-theme="dark"] .bm-sidebar-card-title {
    color: var(--theme-primary-dark-dm);
    border-bottom-color: var(--border-dm);
}

/* Author card */
.bm-author-card {
    text-align: center;
}

.bm-author-card-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--neutral-white-3);
    box-shadow: var(--bm-shadow-md);
}

.bm-author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bm-author-card-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--theme-primary-dark);
    margin-bottom: 0.4rem;
    letter-spacing: -0.022em;
}

[data-theme="dark"] .bm-author-card-name {
    color: var(--theme-primary-dark-dm);
}

.bm-author-card-bio {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.bm-author-card-social {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.bm-author-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--bm-r-sm);
    background: var(--neutral-white-2);
    color: var(--neutral-dark-2);
    text-decoration: none;
    box-shadow: var(--bm-shadow-xs);
    transition: all 0.25s var(--bm-ease);
}

.bm-author-social-btn:hover {
    background: var(--theme-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--bm-shadow-sm);
}

[data-theme="dark"] .bm-author-social-btn {
    background: var(--neutral-white-4-dm);
    color: var(--neutral-dark-1-dm);
}

/* Related posts */
.bm-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bm-related-item {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 7px;
    border-radius: var(--bm-r-sm);
    transition: background 0.22s ease;
    margin: 0 -7px;
}

.bm-related-item:hover {
    background: var(--neutral-white-1);
}

[data-theme="dark"] .bm-related-item:hover {
    background: var(--neutral-white-2-dm);
}

.bm-related-img-wrap {
    width: 70px;
    height: 52px;
    border-radius: var(--bm-r-sm);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--bm-shadow-xs);
}

.bm-related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bm-related-item:hover .bm-related-img-wrap img {
    transform: scale(1.08);
}

.bm-related-info {
    flex: 1;
    min-width: 0;
}

.bm-related-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-primary-dark);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.22s ease;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.bm-related-title:hover {
    color: var(--theme-green);
}

[data-theme="dark"] .bm-related-title {
    color: var(--theme-primary-dark-dm);
}

.bm-related-date {
    font-size: 11.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Popular tags */
.bm-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ===========================================================================
   16. SEARCH RESULTS PAGE
   =========================================================================== */

/* Compact gradient header */
.bm-search-header {
    background: var(--gradient-primary);
    padding: 2.75rem 0 2.25rem;
    position: relative;
    overflow: hidden;
}

.bm-search-header::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -60px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    pointer-events: none;
}

.bm-search-header::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: 4%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(40, 160, 19, 0.1);
    pointer-events: none;
}

.bm-search-header-inner {
    position: relative;
    z-index: 1;
}

.bm-search-results-label {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bm-search-results-query {
    font-size: clamp(1.45rem, 4vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.55rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.bm-search-results-query em {
    font-style: normal;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bm-search-results-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Sticky refine bar */
.bm-refine-bar {
    background: var(--theme-white);
    border-bottom: 1.5px solid var(--neutral-white-3);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--bm-shadow-sm);
}

[data-theme="dark"] .bm-refine-bar {
    background: var(--theme-base);
    border-bottom-color: var(--border-dm);
}

.bm-refine-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.bm-refine-search {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--neutral-white-1);
    border: 1.5px solid var(--neutral-white-3);
    border-radius: var(--bm-r-sm);
    padding: 8px 13px;
    transition: border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.bm-refine-search:focus-within {
    border-color: var(--theme-primary-light);
    box-shadow: 0 0 0 3px rgba(17, 80, 119, 0.09);
}

[data-theme="dark"] .bm-refine-search {
    background: var(--neutral-white-1-dm);
    border-color: var(--border-dm);
}

.bm-refine-search iconify-icon {
    color: var(--muted);
    flex-shrink: 0;
}

.bm-refine-input {
    border: none;
    background: transparent;
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    color: var(--theme-primary-dark);
}

[data-theme="dark"] .bm-refine-input {
    color: var(--theme-dark-dm);
}

.bm-refine-input::placeholder {
    color: var(--muted);
}

.bm-refine-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--bm-r-sm);
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: opacity 0.22s ease,
    transform 0.2s var(--bm-ease-spring);
}

.bm-refine-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.bm-refine-sort {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.bm-refine-sort-label {
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
}

.bm-refine-sort-select {
    border: 1.5px solid var(--neutral-white-3);
    background: var(--theme-white);
    color: var(--theme-primary-dark);
    border-radius: var(--bm-r-sm);
    padding: 7px 11px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color 0.22s ease;
}

.bm-refine-sort-select:focus {
    border-color: var(--theme-primary-light);
}

[data-theme="dark"] .bm-refine-sort-select {
    background: var(--theme-base);
    border-color: var(--border-dm);
    color: var(--theme-dark-dm);
}

/* Results context bar */
.bm-results-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.bm-results-context-text {
    font-size: 13.5px;
    color: var(--muted);
}

.bm-results-context-text strong {
    color: var(--theme-primary-dark);
    font-weight: 700;
}

[data-theme="dark"] .bm-results-context-text strong {
    color: var(--theme-primary-dark-dm);
}

/* No results empty state */
.bm-no-results {
    text-align: center;
    padding: 5rem 1.5rem;
    display: none;
}

.bm-no-results.is-visible {
    display: block;
}

.bm-no-results-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--neutral-white-1);
    border: 2px solid var(--neutral-white-3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--muted);
}

[data-theme="dark"] .bm-no-results-icon {
    background: var(--neutral-white-1-dm);
    border-color: var(--border-dm);
}

.bm-no-results-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--theme-primary-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .bm-no-results-title {
    color: var(--theme-primary-dark-dm);
}

.bm-no-results-text {
    color: var(--muted);
    font-size: 15px;
    max-width: 420px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.bm-no-results-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===========================================================================
   17. 404 PAGE
   =========================================================================== */

.bm-404-section {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.bm-404-glow-a {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(17, 80, 119, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.bm-404-glow-b {
    position: absolute;
    bottom: -80px;
    right: -100px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(40, 160, 19, 0.07) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.bm-404-glow-c {
    position: absolute;
    top: 20%;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(235, 202, 67, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.bm-404-inner {
    position: relative;
    z-index: 1;
}

.bm-404-display {
    font-size: clamp(110px, 18vw, 190px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: -0.1em;
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
}

.bm-404-icon {
    width: 68px;
    height: 68px;
    border-radius: var(--bm-r-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -1.5rem auto 1.5rem;
    color: #fff;
    box-shadow: var(--bm-shadow-lg);
    position: relative;
}

.bm-404-title {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    color: var(--theme-primary-dark);
    margin-bottom: 0.65rem;
    letter-spacing: -0.03em;
}

[data-theme="dark"] .bm-404-title {
    color: var(--theme-primary-dark-dm);
}

.bm-404-text {
    font-size: 15.5px;
    color: var(--muted);
    max-width: 460px;
    margin: 0 auto 2.25rem;
    line-height: 1.72;
}

.bm-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.bm-404-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--bm-r-sm);
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    box-shadow: var(--bm-shadow-md);
    letter-spacing: 0.01em;
    transition: opacity 0.25s ease,
    transform 0.22s var(--bm-ease-spring),
    box-shadow 0.25s ease;
}

.bm-404-btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: var(--bm-shadow-lg);
}

.bm-404-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--theme-primary-dark);
    padding: 11px 26px;
    border-radius: var(--bm-r-sm);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    border: 1.5px solid var(--neutral-white-3);
    letter-spacing: 0.01em;
    transition: border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

.bm-404-btn-secondary:hover {
    border-color: var(--theme-primary-dark);
    background: var(--neutral-white-1);
    color: var(--theme-primary-dark);
}

[data-theme="dark"] .bm-404-btn-secondary {
    color: var(--theme-dark-dm);
    border-color: var(--border-dm);
}

[data-theme="dark"] .bm-404-btn-secondary:hover {
    background: var(--neutral-white-1-dm);
    color: var(--theme-dark-dm);
}

.bm-404-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.bm-404-divider-line {
    flex: 1;
    height: 1.5px;
    background: var(--neutral-white-3);
    border-radius: 2px;
}

[data-theme="dark"] .bm-404-divider-line {
    background: var(--border-dm);
}

.bm-404-divider-text {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    white-space: nowrap;
}

.bm-404-suggestions-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--theme-primary-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    text-align: left;
}

[data-theme="dark"] .bm-404-suggestions-title {
    color: var(--theme-primary-dark-dm);
}

/* ===========================================================================
   17. DARK MODE REFINEMENT
   =========================================================================== */
[data-theme="dark"] .bm-hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 17, 23, 0.96) 0%,
        rgba(12, 21, 30, 0.94) 42%,
        rgba(16, 30, 42, 0.82) 100%
    );
}

[data-theme="dark"] .bm-article-hero {
    background: linear-gradient(180deg, #132130 0%, #101821 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .bm-hero-badge,
[data-theme="dark"] .bm-category-badge,
[data-theme="dark"] .bm-card-category,
[data-theme="dark"] .bm-mini-card-cat {
    background: rgba(var(--theme-primary-light-rgb), 0.1);
    color: var(--neutral-dark-1);
    border-color: rgba(var(--theme-primary-light-rgb), 0.16);
}

[data-theme="dark"] .bm-hero-search-inner,
[data-theme="dark"] .bm-filter-bar,
[data-theme="dark"] .bm-featured-card,
[data-theme="dark"] .bm-card,
[data-theme="dark"] .bm-article-body,
[data-theme="dark"] .bm-key-takeaways,
[data-theme="dark"] .bm-share-section,
[data-theme="dark"] .bm-mini-card,
[data-theme="dark"] .bm-nav-article,
[data-theme="dark"] .bm-sidebar-card,
[data-theme="dark"] .bm-refine-bar,
[data-theme="dark"] .bm-refine-search,
[data-theme="dark"] .bm-no-results-icon {
    background: linear-gradient(180deg, rgba(23, 34, 45, 0.98) 0%, rgba(18, 27, 36, 0.98) 100%);
    border-color: var(--surface-border-dm);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .bm-hero-search-inner:focus-within,
[data-theme="dark"] .bm-refine-search:focus-within {
    border-color: rgba(var(--theme-primary-light-rgb), 0.52);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26),
    0 0 0 4px rgba(var(--theme-primary-light-rgb), 0.12);
}

[data-theme="dark"] .bm-filter-tab,
[data-theme="dark"] .bm-sort-select,
[data-theme="dark"] .bm-share-btn,
[data-theme="dark"] .bm-share-copy,
[data-theme="dark"] .bm-author-social-btn {
    background: var(--surface-3-dm);
    border-color: var(--surface-border-dm);
    color: var(--neutral-dark-1);
}

[data-theme="dark"] .bm-filter-tab:hover,
[data-theme="dark"] .bm-filter-tab.active,
[data-theme="dark"] .bm-share-btn:hover,
[data-theme="dark"] .bm-share-copy:hover,
[data-theme="dark"] .bm-author-social-btn:hover {
    background: rgba(var(--theme-primary-light-rgb), 0.1);
    border-color: rgba(var(--theme-primary-light-rgb), 0.2);
    color: var(--neutral-dark);
}

[data-theme="dark"] .bm-featured-card:hover,
[data-theme="dark"] .bm-card:hover,
[data-theme="dark"] .bm-mini-card:hover,
[data-theme="dark"] .bm-nav-article:hover {
    border-color: var(--surface-border-strong-dm);
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .bm-search-input,
[data-theme="dark"] .bm-refine-input,
[data-theme="dark"] .bm-sort-select {
    color: var(--neutral-dark);
}

[data-theme="dark"] .bm-search-input::placeholder,
[data-theme="dark"] .bm-refine-input::placeholder {
    color: var(--muted);
}

[data-theme="dark"] .bm-section-title,
[data-theme="dark"] .bm-featured-title a,
[data-theme="dark"] .bm-card-title a,
[data-theme="dark"] .bm-article-title,
[data-theme="dark"] .bm-key-takeaways-title,
[data-theme="dark"] .bm-article-content h2,
[data-theme="dark"] .bm-article-content h3,
[data-theme="dark"] .bm-pull-quote p,
[data-theme="dark"] .bm-share-text,
[data-theme="dark"] .bm-also-like-title,
[data-theme="dark"] .bm-mini-card-title a,
[data-theme="dark"] .bm-nav-article-title,
[data-theme="dark"] .bm-sidebar-card-title,
[data-theme="dark"] .bm-author-card-name,
[data-theme="dark"] .bm-related-title,
[data-theme="dark"] .bm-results-context-text strong,
[data-theme="dark"] .bm-no-results-title,
[data-theme="dark"] .bm-404-title,
[data-theme="dark"] .bm-404-suggestions-title,
[data-theme="dark"] .bm-author-name,
[data-theme="dark"] .bm-card-author-name {
    color: var(--neutral-dark);
}

[data-theme="dark"] .bm-featured-excerpt,
[data-theme="dark"] .bm-card-excerpt,
[data-theme="dark"] .bm-card-footer,
[data-theme="dark"] .bm-image-caption,
[data-theme="dark"] .bm-key-takeaways-list li,
[data-theme="dark"] .bm-article-content p,
[data-theme="dark"] .bm-article-content li,
[data-theme="dark"] .bm-card-date,
[data-theme="dark"] .bm-card-read-time,
[data-theme="dark"] .bm-read-meta,
[data-theme="dark"] .bm-nav-direction,
[data-theme="dark"] .bm-share-copy,
[data-theme="dark"] .bm-share-text,
[data-theme="dark"] .bm-results-context-text,
[data-theme="dark"] .bm-no-results-text {
    color: var(--neutral-dark-1);
}

/* ===========================================================================
   18. LIGHT MODE REFINEMENT
   =========================================================================== */
html[data-theme="light"] .bm-hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(246, 250, 253, 0.94) 0%,
        rgba(239, 246, 250, 0.9) 44%,
        rgba(219, 233, 242, 0.76) 100%
    );
}

html[data-theme="light"] .bm-article-hero {
    background: linear-gradient(180deg, #ecf4f9 0%, #e7f0f6 100%);
    border-bottom: 1px solid var(--surface-border-lm);
}

html[data-theme="light"] .bm-hero-badge,
html[data-theme="light"] .bm-category-badge,
html[data-theme="light"] .bm-card-category,
html[data-theme="light"] .bm-mini-card-cat {
    background: rgba(var(--theme-primary-light-rgb), 0.08);
    border-color: rgba(var(--theme-primary-light-rgb), 0.14);
}

html[data-theme="light"] .bm-hero-search-inner,
html[data-theme="light"] .bm-filter-bar,
html[data-theme="light"] .bm-featured-card,
html[data-theme="light"] .bm-card,
html[data-theme="light"] .bm-article-body,
html[data-theme="light"] .bm-key-takeaways,
html[data-theme="light"] .bm-share-section,
html[data-theme="light"] .bm-mini-card,
html[data-theme="light"] .bm-nav-article,
html[data-theme="light"] .bm-sidebar-card,
html[data-theme="light"] .bm-refine-bar,
html[data-theme="light"] .bm-refine-search,
html[data-theme="light"] .bm-no-results-icon {
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.98) 0%, rgba(243, 248, 251, 0.98) 100%);
    border-color: var(--surface-border-lm);
    box-shadow: var(--surface-shadow-lm);
}

html[data-theme="light"] .bm-hero-search-inner:focus-within,
html[data-theme="light"] .bm-refine-search:focus-within {
    border-color: rgba(var(--theme-primary-light-rgb), 0.34);
    box-shadow: 0 18px 42px rgba(11, 45, 69, 0.12),
    0 0 0 4px rgba(var(--theme-primary-light-rgb), 0.1);
}

html[data-theme="light"] .bm-filter-tab,
html[data-theme="light"] .bm-sort-select,
html[data-theme="light"] .bm-share-btn,
html[data-theme="light"] .bm-share-copy,
html[data-theme="light"] .bm-author-social-btn {
    background: var(--surface-1-lm);
    border-color: var(--surface-border-lm);
    color: var(--neutral-dark-2);
}

html[data-theme="light"] .bm-filter-tab:hover,
html[data-theme="light"] .bm-filter-tab.active,
html[data-theme="light"] .bm-share-btn:hover,
html[data-theme="light"] .bm-share-copy:hover,
html[data-theme="light"] .bm-author-social-btn:hover {
    background: var(--surface-3-lm);
    border-color: var(--surface-border-strong-lm);
}

html[data-theme="light"] .bm-featured-card:hover,
html[data-theme="light"] .bm-card:hover,
html[data-theme="light"] .bm-mini-card:hover,
html[data-theme="light"] .bm-nav-article:hover {
    border-color: var(--surface-border-strong-lm);
    box-shadow: var(--surface-shadow-strong-lm);
}


/* ============================================================================
   BLOG PREMIUM REFINEMENTS
   Additional elevation layer for blog components.
   ============================================================================ */

/* ── Filter tab active state — richer, glowing pill ──────────────────────── */
.bm-filter-tab.active {
    background: linear-gradient(
        135deg,
        var(--theme-primary-dark) 0%,
        var(--theme-primary-light) 100%
    );
    /*box-shadow: 0 2px 8px rgba(9, 40, 60, 0.28),*/
    /*0 0 0 1px rgba(15, 94, 146, 0.18);*/
    letter-spacing: -0.01em;
}

[data-theme="dark"] .bm-filter-tab.active {
    background: linear-gradient(
        135deg,
        rgba(var(--theme-primary-light-rgb), 0.80) 0%,
        rgba(var(--theme-primary-light-rgb), 0.55) 100%
    );
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(var(--theme-primary-light-rgb), 0.22);
    color: #fff;
}

/* ── Reading progress bar — vibrant gradient ──────────────────────────────── */
.bm-reading-progress {
    background: linear-gradient(
        90deg,
        var(--theme-primary-light) 0%,
        var(--theme-teal) 50%,
        var(--theme-secondary) 100%
    );
    box-shadow: 0 0 8px rgba(var(--theme-primary-light-rgb), 0.45);
    height: 3px;
}

/* ── Hero badge — crisper tracking ────────────────────────────────────────── */
.bm-hero-badge {
    letter-spacing: 0.65px;
    font-weight: 800;
}

/* ── Category badges — tighter letter-spacing ────────────────────────────── */
.bm-category-badge {
    letter-spacing: 0.45px;
}

/* ── Featured card — stronger hover shadow in dark mode ──────────────────── */
[data-theme="dark"] .bm-featured-card:hover,
[data-theme="dark"] .bm-card:hover,
[data-theme="dark"] .bm-mini-card:hover {
    border-color: rgba(var(--theme-primary-light-rgb), 0.24);
    box-shadow: var(--bm-shadow-xl),
    0 0 0 1px rgba(var(--theme-primary-light-rgb), 0.12);
}

/* ── Read-more button — slightly richer shadow ────────────────────────────── */
.bm-read-btn {
    box-shadow: 0 2px 6px rgba(9, 40, 60, 0.22),
    0 6px 20px rgba(9, 40, 60, 0.22);
}

.bm-read-btn:hover {
    box-shadow: 0 4px 10px rgba(9, 40, 60, 0.26),
    0 10px 30px rgba(9, 40, 60, 0.28);
}

/* ── Search button — tighter letter-spacing ──────────────────────────────── */
.bm-search-btn {
    letter-spacing: -0.01em;
}

/* ── Author name — sharper weight ────────────────────────────────────────── */
.bm-author-name {
    letter-spacing: -0.014em;
}

/* ── Article hero — slightly richer ambient gradient in dark mode ─────────── */
[data-theme="dark"] .bm-article-hero {
    background: linear-gradient(
        160deg,
        rgba(12, 22, 32, 1) 0%,
        rgba(17, 27, 38, 1) 55%,
        rgba(14, 23, 33, 1) 100%
    );
}
