﻿/* ========================================
   MetaNfo – Premium Front-End Styles
   Ultra-Modern Dark Theme v3.0 (Mobile First)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #030014;
    --bg-alt: #0a0a2e;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(99, 102, 241, 0.3);
    --text: #f0f0ff;
    --text-secondary: rgba(240, 240, 255, 0.7);
    --text-muted: rgba(240, 240, 255, 0.4);
    --accent: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #ec4899;
    --cyan: #22d3ee;
    --emerald: #34d399;
    --amber: #f59e0b;
    --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    --gradient-2: linear-gradient(135deg, #06b6d4, #6366f1);
    --gradient-3: linear-gradient(135deg, #ec4899, #f97316);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-brand: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --glow-purple: rgba(99, 102, 241, 0.15);
    --glow-pink: rgba(236, 72, 153, 0.12);
    --glow-cyan: rgba(34, 211, 238, 0.12);
    --radius: 20px;
    --radius-lg: 32px;
    --radius-sm: 10px;
    --max-width: 1240px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 70px;

    /* Category-Specific Color Accents */
    --cat-technology: #6366f1;
    --cat-ai-healthcare: #22d3ee;
    --cat-quantum-computing: #a855f7;
    --cat-cloud-security: #f43f5e;
    --cat-saas-architecture: #3b82f6;
    --cat-green-tech: #34d399;
    --cat-fintech: #f59e0b;
    --cat-business: #f97316;
    --cat-lifestyle: #ec4899;
    --cat-science: #8b5cf6;

    /* Fluid Typography */
    --fs-h1: clamp(2.8rem, 9vw, 5rem);
    --fs-h2: clamp(2rem, 6vw, 3.2rem);
    --fs-h3: clamp(1.4rem, 4vw, 2rem);
    --fs-body: 1.15rem;

    /* Glassmorphism 2.0 */
    --glass-border: 1px solid rgba(255, 255, 255, 0.12);
    --glass-inner-glow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);

    /* Animation Tokens */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg-alt: #eef2f7;
    --bg-card: rgba(0, 0, 0, 0.025);
    --bg-card-hover: rgba(0, 0, 0, 0.06);
    --bg-glass: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.1);
    --border-glow: rgba(99, 102, 241, 0.25);
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --glow-purple: rgba(99, 102, 241, 0.06);
    --glow-pink: rgba(236, 72, 153, 0.05);
    --glow-cyan: rgba(34, 211, 238, 0.05);
}

/* Light Theme: Mesh Background */
[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 50% 80% at 20% 40%, rgba(99, 102, 241, 0.04), transparent),
        radial-gradient(ellipse 50% 80% at 80% 50%, rgba(236, 72, 153, 0.03), transparent);
}

/* Light Theme: Navbar */
[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.92);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248, 250, 252, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* Light Theme: Gradient Text Fix */
[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #4338ca, #7c3aed, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light Theme: Hero Glows */
[data-theme="light"] .hero-glow {
    opacity: 0.06 !important;
}

/* Light Theme: Cards */
[data-theme="light"] .post-card,
[data-theme="light"] .bento-item {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .post-card:hover,
[data-theme="light"] .bento-item:hover {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}

/* Light Theme: Author Box */
[data-theme="light"] .author-box {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.06);
}

/* Light Theme: TOC */
[data-theme="light"] .table-of-contents {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Light Theme: Footer */
[data-theme="light"] .footer {
    background: #0f172a;
    color: #e2e8f0;
}

[data-theme="light"] .footer h4,
[data-theme="light"] .footer .footer-brand span {
    color: #f8fafc;
}

[data-theme="light"] .footer-links a {
    color: #94a3b8;
}

/* Light Theme: Newsletter */
[data-theme="light"] .newsletter-card {
    background: linear-gradient(135deg, #eef2ff, #fce7f3);
    border-color: rgba(99, 102, 241, 0.15);
}

/* Light Theme: Search */
[data-theme="light"] .search-dropdown-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] #ajax-search-input {
    background: #f8fafc;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Light Theme: Cookie Consent */
[data-theme="light"] .cookie-content {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08);
}

/* Light Theme: Code Blocks */
[data-theme="light"] .single-post-content pre,
[data-theme="light"] .single-post-content code {
    background: #f1f5f9;
    color: #1e293b;
}

/* Light Theme: Buttons */
[data-theme="light"] .btn-load-more {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

/* Light Theme: Blog Disclaimer */
[data-theme="light"] .blog-disclaimer {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Light Theme: Share Buttons */
[data-theme="light"] .share-btn {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Light Theme: Section Headers */
[data-theme="light"] .section-label {
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
}

/* Light Theme: Category Tag */
[data-theme="light"] .category-tag {
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
}

/* Light Theme: SVG fills */
[data-theme="light"] .social-icon svg {
    fill: currentColor;
}

/* Light Theme: Stat Cards */
[data-theme="light"] .stat-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
}

/* Light Theme: Ad Slots */
[data-theme="light"] .ad-placeholder {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Light Theme: Affiliate Disclosure */
[data-theme="light"] .affiliate-disclosure {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Light Theme: Mobile Menu */
[data-theme="light"] .navbar-links.active {
    background: rgba(248, 250, 252, 0.98);
}

.btn-theme-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.btn-theme-toggle:hover {
    background: var(--bg-card-hover);
    transform: rotate(15deg);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile fallback: auto-reveal after 2s if IntersectionObserver doesn't trigger */
@media (max-width: 768px) {
    .animate-on-scroll {
        animation: mobileReveal 0.6s ease forwards;
        animation-delay: 0.3s;
    }

    @keyframes mobileReveal {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}


html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    letter-spacing: -0.01em;
    padding-top: var(--header-height);
}

/* Navbar Fixes */
.navbar-links {
    display: flex !important;
    gap: 20px;
    align-items: center;
    list-style: none;
    margin-left: auto;
    /* Push to right */
}

.navbar-links li {
    opacity: 1 !important;
    transform: none !important;
}

.navbar-links a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem !important;
}

@media (max-width: 768px) {
    .navbar-links {
        display: none !important;
    }

    .navbar-links.active {
        display: flex !important;
    }
}

.navbar-links a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-links a:hover {
    color: var(--accent);
}

[data-theme="light"] .navbar-links a {
    color: #1e293b;
}

[data-theme="light"] .navbar-links a:hover {
    color: var(--accent);
}

/* FAQ Accordion Styles */
.faq-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

[data-theme="light"] .faq-section {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

.faq-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

[data-theme="light"] .faq-item {
    border-color: rgba(0, 0, 0, 0.05);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item details {
    padding: 15px 0;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
    color: var(--text);
    font-size: 1.1rem;
}

[data-theme="light"] .faq-item summary {
    color: #1e293b;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    padding-right: 20px;
}

[data-theme="light"] .faq-item p {
    color: #475569;
}

/* ========= MOBILE OPTIMIZATIONS (v99.0) ========= */
@media (max-width: 768px) {

    /* 1. Hero Adjustments */
    .hero {
        padding: 90px 16px 40px;
        overflow: hidden;
    }

    .hero h1 {
        font-size: 2.8rem;
        /* Prevent massive text */
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-stats {
        gap: 15px;
        margin-top: 30px;
    }

    .hero-stat .value {
        font-size: 24px;
    }

    /* 2. Responsive Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 20px;
        margin-top: 30px;
    }

    .bento-main {
        grid-row: auto;
        /* Reset row span */
        min-height: 400px;
    }

    .bento-item {
        min-height: 250px;
    }

    .bento-content {
        padding: 20px;
    }

    .bento-main .bento-content h3 {
        font-size: 1.8rem;
    }

    /* 3. Footer Stacking */
    .footer {
        padding: 40px 0 20px;
        text-align: center;
        /* Center align on mobile for better balance */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }

    .footer h4 {
        margin-bottom: 15px;
        margin-top: 10px;
    }

    /* 4. General Section Padding */
    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 16px;
        /* Slightly tighter edges */
    }

    /* 5. Author Box Stacking */
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 15px;
    }

    .author-avatar {
        margin: 0 auto;
    }

    /* 6. Share Buttons Scroll */
    .share-buttons {
        justify-content: center;
    }

    /* 7. Navbar Adjustments */
    .navbar-brand {
        font-size: 18px;
    }

    .navbar {
        height: 60px;
        /* Slightly shorter navbar */
    }

    body {
        padding-top: 60px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0.8em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    max-width: var(--max-width);
}

/* ========= NAVBAR ========= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(3, 0, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(3, 0, 20, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand,
.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.navbar-brand .logo-icon,
.footer-brand .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 2001;
    /* Above mobile menu overlay */
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Premium Mobile Menu Overlay */
.navbar-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(3, 0, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.navbar-links.active {
    opacity: 1;
    visibility: visible;
}

.navbar-links li {
    list-style: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.navbar-links.active li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.navbar-links.active li:nth-child(1) {
    transition-delay: 0.1s;
}

.navbar-links.active li:nth-child(2) {
    transition-delay: 0.15s;
}

.navbar-links.active li:nth-child(3) {
    transition-delay: 0.2s;
}

.navbar-links.active li:nth-child(4) {
    transition-delay: 0.25s;
}

.navbar-links.active li:nth-child(5) {
    transition-delay: 0.3s;
}

.navbar-links.active li:nth-child(6) {
    transition-delay: 0.35s;
}

.navbar-links.active li:nth-child(7) {
    transition-delay: 0.4s;
}

.navbar-links a {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
    letter-spacing: -0.5px;
}

.navbar-links a:hover {
    color: var(--accent);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-links .btn-admin {
    background: var(--gradient-1);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    text-align: center;
    margin-top: 10px;
    border: none;
}

/* Desktop Navbar */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }

    .navbar-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: transparent;
        padding: 0;
        border: none;
        gap: 20px;
        box-shadow: none;
    }

    .navbar-links a {
        font-size: 14px;
        padding: 8px 16px;
        border: none;
        border-radius: 8px;
        transition: all 0.3s;
    }

    .navbar-links a:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.05);
    }

    .navbar-links .btn-admin {
        margin-top: 0;
        padding: 8px 20px;
    }
}

/* ========= HERO SECTION ========= */
.hero {
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero {
        padding: 160px 0 100px;
    }
}

/* Hero Glows */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.hero-glow-1 {
    width: 300px;
    height: 300px;
    background: var(--glow-purple);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

@media (min-width: 768px) {
    .hero-glow-1 {
        width: 700px;
        height: 700px;
        opacity: 0.4;
        top: -250px;
    }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 80%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .badge-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-h1);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero h1 .gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    min-width: 80px;
}

.hero-stat .value {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ========= MARQUEE ========= */
.marquee-section {
    padding: 15px 0;
    overflow: hidden;
    border-block: 1px solid var(--border);
    background: rgba(99, 102, 241, 0.02);
}

.marquee-track {
    display: flex;
    gap: 20px;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

@keyframes marqueeScroll {
    to {
        transform: translateX(-50%);
    }
}

/* ========= SECTION COMMONS ========= */
.section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ========= GRADIENT TEXT ========= */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ========= TEXT COLORS ========= */
.text-secondary {
    color: var(--text-secondary) !important;
}

/* ========= GLASS BACKGROUND ========= */
.bg-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ========= CTA CARD ========= */
.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.cta-card h2,
.cta-card h3 {
    margin-bottom: 12px;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ========= STEP CARDS ========= */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.step-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Legacy typography removed - Consolidated in v9.0 suite */

/* ========= POST CONTENT EXTRAS ========= */
.post-content ul,
.post-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.post-content li {
    margin-bottom: 0.75em;
    line-height: 1.7;
    color: var(--text-secondary);
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
}

.post-content blockquote,
blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 1.5em 0;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-content blockquote p,
blockquote p {
    margin: 0;
    font-style: italic;
}

/* ========= CARD COMPONENT ========= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5em;
}

.card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
}

/* ========= FEATURE ICON ========= */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    line-height: 1;
}

/* ========= FEATURED POST (BENTO STYLE) ========= */
.featured-post {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
}

@media (min-width: 768px) {
    .featured-post {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
    }
}

.featured-post:hover {
    border-color: var(--border-glow);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.featured-post-image {
    min-height: 250px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .featured-post-image {
        min-height: 400px;
    }
}

.featured-post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .featured-post-content {
        padding: 48px;
    }
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.featured-post-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.featured-post-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========= POST CARDS ========= */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background: var(--bg-glass);
    border: var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s var(--ease-out);
    height: 100%;
    position: relative;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    will-change: transform, box-shadow;
}

.post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: var(--glass-inner-glow);
    pointer-events: none;
    z-index: 2;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(99, 102, 241, 0.2);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-alt);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .card-image img {
    transform: scale(1.08);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-meta .category {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.post-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.post-card:hover h3 {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}


/* ========= ROBUST HERO (v15.8) ========= */
.post-hero-robust {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    /* Deep generic background */
    margin-top: -80px;
    /* Pull behind transparent navbar */
    padding-top: 80px;
    overflow: hidden;
    margin-bottom: 50px;
    color: #fff;
}

/* Fallback Gradient Pattern */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(34, 211, 238, 0.15) 0px, transparent 50%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.6);
    transform: scale(1.05);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.9));
    z-index: 1;
}

/* Content */
.post-hero-robust .hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

.post-title-hero {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

/* Meta Pills in Hero */
.post-hero-robust .category-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.post-hero-robust .category-pill:hover {
    background: #fff;
    color: var(--accent);
}

.author-meta-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 8px 20px 8px 8px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-meta-hero .author-name {
    color: #fff;
    font-weight: 700;
}

.author-meta-hero .date {
    color: rgba(255, 255, 255, 0.7);
}

/* ========= MODERN HEADER (v15.7 - Mobile First & Attractive) ========= */
.post-header-modern {
    position: relative;
    padding: 100px 20px 40px 20px;
    /* adjusted for mobile navbar clearance */
    background: radial-gradient(circle at top center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    text-align: center;
    overflow: hidden;
}

/* Background Pattern (Subtle Dots) */
.post-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.post-header-modern .container {
    position: relative;
    z-index: 1;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-decoration: none;
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1);
}

.category-pill:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.meta-sep {
    color: var(--text-muted);
    opacity: 0.5;
    margin: 0 8px;
}

.read-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.post-title-modern {
    font-size: clamp(2rem, 5vw, 3.8rem);
    /* Responsive Fluid Typography */
    font-weight: 800;
    line-height: 1.15;
    margin: 24px 0 32px 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback for readability if gradient fails (though text-fill handles it) */
}

/* Dark Mode Title adjustment for better contrast */
[data-theme="dark"] .post-title-modern {
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.author-meta-modern {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    padding: 8px 20px 8px 8px;
    border-radius: 50px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.author-meta-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-body);
    box-shadow: 0 0 0 2px var(--accent);
}

.meta-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.date {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Featured Image Container - Attractive Pop */
.featured-image-container {
    margin: 0 auto 50px auto;
    position: relative;
    z-index: 20;
    border-radius: 20px;
    /* Fancy Glow based on Primary Color */
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
    transition: transform 0.4s ease;
}

.featured-image-container:hover {
    transform: scale(1.01);
}

.featured-image-container img {
    width: 100%;
    border-radius: 20px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .post-header-modern {
        padding: 90px 16px 30px 16px;
        /* Tighter on mobile */
    }

    .post-title-modern {
        margin: 20px 0;
    }

    .featured-image-container {
        margin-bottom: 30px;
        box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.2);
    }
}


.post-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.post-card-meta .category {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

.post-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========= UTILITIES ========= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-hero {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
}

.btn-hero-primary {
    background: var(--gradient-1);
    color: #fff;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--border);
}

/* ========= FOOTER ========= */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ========= PARTICLES ========= */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* ========= SINGLE POST ========= */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.single-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    color: var(--cyan);
    margin-top: 2em;
}

.post-content p {
    margin-bottom: 1.5em;
}

/* ========= UTILITY CLASSES ========= */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-20 {
    margin-top: 5rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.grid-cols-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 10px;
    display: inline-block;
    padding: 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
}

/* ========= FAQ ACCORDION ========= */
details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

details[open] {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 3rem;
    font-size: 1.1rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========= FORM & ALERTS ========= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ========= MORE UTILITIES ========= */
.w-full {
    width: 100%;
}

.block {
    display: block;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.hover-underline:hover {
    text-decoration: underline;
}

.flex {
    display: flex;
}

.items-start {
    align-items: flex-start;
}

.gap-4 {
    gap: 1rem;
}

.text-accent {
    color: var(--accent);
}

/* Fix line-clamp lints */
.featured-post-content p,
.post-card h3,
.post-card .excerpt {
    line-clamp: 3;
    -webkit-line-clamp: 3;
}

.post-card h3 {
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

/* ========= CINEMATIC POST HEADER ========= */
.single-post-header {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .single-post-header {
        padding: 100px 0 60px;
    }
}

.single-post-header h1 {
    margin: 24px auto;
    max-width: 900px;
}

.category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.single-post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 20px;
}

.single-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========= CATEGORY HEADER ========= */
.category-header {
    text-align: center;
    padding: 80px 0 60px;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05), transparent 70%);
    position: relative;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.category-header h2 {
    font-size: var(--fs-h1);
    margin: 16px 0;
    letter-spacing: -2px;
    line-height: 1.1;
}

.category-header .section-label {
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

/* ========= SECTION POLISH ========= */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
}

/* ========= AUTHOR BOX (E-E-A-T) ========= */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding: 32px;
    background: var(--bg-glass);
    border: var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.author-box::before {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: var(--glass-inner-glow);
    pointer-events: none;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--glow-purple);
}

.author-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text);
}

.author-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========= SHARE SECTION ========= */
.share-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.share-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.share-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* ========= BLOG DISCLAIMER ========= */
.blog-disclaimer {
    margin-top: 40px;
    padding: 20px 24px;
    background: rgba(255, 200, 0, 0.05);
    border: 1px solid rgba(255, 200, 0, 0.15);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-disclaimer strong {
    color: var(--text);
}

/* ========= SINGLE POST CONTENT TYPOGRAPHY (Mobile Optimized) ========= */
.single-post-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.single-post-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 800;
    color: var(--text);
    margin-top: 3rem;
    margin-bottom: 1rem;
    line-height: 1.25;
    background: linear-gradient(to right, var(--accent), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.single-post-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.3rem, 4vw, 1.65rem);
    font-weight: 700;
    color: var(--text);
    margin-top: 2.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.single-post-content p {
    margin-bottom: 28px;
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 32px;
}

.single-post-content li {
    margin-bottom: 14px;
    line-height: 1.75;
}

/* Mobile Table Scroll Wrapper - CRITICAL */
.table-responsive {
    width: 100%;
    margin: 2.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.single-post-content table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.single-post-content table th,
.single-post-content table td {
    padding: 16px 20px;
    border: 1px solid var(--border);
    text-align: left;
    white-space: normal;
}

.single-post-content table th {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.single-post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 24px 32px;
    margin: 3rem 0;
    background: rgba(99, 102, 241, 0.04);
    border-radius: 4px 16px 16px 4px;
    font-style: italic;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.6;
    position: relative;
}

/* Responsive Code & Diagrams */
.single-post-content pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.single-post-content .mermaid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 24px;
    text-align: center;
}

.single-post-content strong {
    color: var(--text);
    font-weight: 700;
}

.single-post-content section {
    margin-bottom: 2rem;
}

/* ========= DATA VISUALIZATION MODULES ========= */
.data-dashboard {
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin: 2rem 0;
}

.data-dashboard-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding-bottom: 10px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

/* ========= TABLE OF CONTENTS & STICKY SIDEBAR ========= */
.table-of-contents {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.toc-toggle {
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    line-height: 1.4;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--accent);
}

/* Create the Sidebar Layout on Desktop */
@media (min-width: 992px) {
    .row.layout-center.has-sidebar {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 40px;
        align-items: start;
    }

    .row.layout-center.has-sidebar>.col-lg-8 {
        grid-column: 2;
        /* Main content goes to the right */
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .post-sidebar {
        grid-column: 1;
        /* Sidebar goes on the left */
        grid-row: 1;
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        /* Custom scrollbar for TOC */
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
    }

    .stat-value {
        font-size: 2.5rem;
        font-weight: 800;
        background: var(--gradient-1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 5px;
    }

    .stat-label {
        font-size: 0.9rem;
        color: var(--text-secondary);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Custom Progress Bars */
    .progress-container {
        margin-bottom: 15px;
    }

    .progress-header {
        display: flex;
        justify-content: space-between;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 6px;
    }

    .progress-track {
        width: 100%;
        height: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        overflow: hidden;
        position: relative;
    }

    .progress-fill {
        height: 100%;
        background: var(--gradient-1);
        border-radius: 10px;
        transition: width 1s ease-in-out;
    }

    /* Timeline */
    .timeline {
        position: relative;
        padding-left: 30px;
        margin: 2rem 0;
    }

    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 11px;
        width: 2px;
        background: rgba(99, 102, 241, 0.2);
    }

    .timeline-item {
        position: relative;
        margin-bottom: 24px;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -24px;
        top: 6px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    }

    .timeline-item h4 {
        margin-top: 0;
        margin-bottom: 8px;
        color: var(--text-primary);
        font-size: 1.1rem;
    }

    .timeline-item p {
        margin: 0;
        color: var(--text-secondary);
        font-size: 0.95rem;
    }

    /* Rich Quote */
    .rich-quote {
        position: relative;
        padding: 30px 40px;
        margin: 3rem 0;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    .rich-quote::before {
        content: '"';
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 60px;
        color: var(--accent);
        line-height: 1;
        font-family: serif;
        opacity: 0.4;
    }

    .rich-quote p {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        line-height: 1.5;
    }

    /* Reference Item styling */
    .reference-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.3s ease;
        margin-bottom: 10px;
    }

    .reference-item:hover {
        background: rgba(99, 102, 241, 0.05);
        border-color: rgba(99, 102, 241, 0.3);
        transform: translateX(4px);
    }

    .reference-icon {
        color: var(--accent);
        flex-shrink: 0;
        margin-top: 2px;
    }

    .reference-title {
        color: var(--text-primary);
        font-size: 0.95rem;
        line-height: 1.4;
        transition: color 0.3s ease;
    }

    .reference-item:hover .reference-title {
        color: var(--accent);
    }

    /* ========= SINGLE POST META ========= */
    .single-post-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
        font-size: 13px;
        color: var(--text-muted);
        margin-top: 16px;
    }

    /* ========= SINGLE POST HERO IMAGE ========= */
    .single-post-hero-image {
        width: 100%;
        height: 200px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.3);
        margin-bottom: 36px;
    }

    @media (min-width: 768px) {
        .single-post-hero-image {
            height: 300px;
        }
    }

    /* ========= BENTO GRID ========= */
    .bento-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }

    @media (min-width: 768px) {
        .bento-grid {
            grid-template-columns: 2fr 1fr;
            grid-template-rows: repeat(2, 280px);
        }
    }

    .bento-item {
        position: relative;
        border-radius: var(--radius-lg);
        overflow: hidden;
        background: var(--bg-glass);
        border: var(--glass-border);
        box-shadow: var(--glass-shadow);
        transition: all 0.5s var(--transition);
        display: flex;
        flex-direction: column;
        text-decoration: none;
        z-index: 1;
    }

    .bento-item::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        box-shadow: var(--glass-inner-glow);
        pointer-events: none;
        z-index: 2;
    }

    .bento-item:hover {
        transform: translateY(-8px) scale(1.01);
        border-color: var(--accent);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.3), 0 0 60px rgba(99, 102, 241, 0.1);
    }

    .bento-main {
        grid-row: span 2;
    }

    .bento-image {
        position: absolute;
        inset: 0;
        z-index: -2;
    }

    .bento-image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 20%, rgba(3, 0, 20, 0.95) 90%);
    }

    .bento-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s var(--transition);
    }

    .bento-item:hover .bento-image img {
        transform: scale(1.1);
    }

    .bento-content {
        margin-top: auto;
        padding: 30px;
    }

    .bento-main .bento-content h3 {
        font-size: var(--fs-h2);
        margin-bottom: 15px;
        font-weight: 800;
        color: #fff;
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .bento-minor .bento-content h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    .category-pill {
        display: inline-block;
        padding: 4px 12px;
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid rgba(99, 102, 241, 0.2);
        border-radius: 50px;
        color: var(--accent);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 10px;
    }

    .bento-main p {
        color: var(--text-secondary);
        font-size: 16px;
        max-width: 600px;
        margin-bottom: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .read-more {
        font-weight: 700;
        font-size: 14px;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 8px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .read-more span {
        transition: transform 0.3s;
    }

    .bento-item:hover .read-more span {
        transform: translateX(5px);
    }

    .gradient-text {
        background: var(--gradient-1);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 800;
    }

    .outline-text {
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
        color: transparent;
        font-weight: 800;
    }

    /* ========= CATEGORY MARQUEE ========= */
    .marquee-section {
        background: var(--bg-alt);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 15px 0;
        overflow: hidden;
        position: relative;
        z-index: 5;
    }

    .marquee-track {
        display: flex;
        white-space: nowrap;
        animation: marquee 40s linear infinite;
        gap: 40px;
        width: fit-content;
    }

    .marquee-item {
        font-size: 14px;
        font-weight: 700;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .marquee-dot {
        width: 6px;
        height: 6px;
        background: var(--accent);
        border-radius: 50%;
        /* Remove shadow for performance */
        /* box-shadow: 0 0 10px var(--accent); */
    }

    .marquee-track {
        display: flex;
        gap: 40px;
        animation: marquee 40s linear infinite;
        width: max-content;
        will-change: transform;
        /* Hardware Acceleration */
    }

    @keyframes marquee {
        0% {
            transform: translate3d(0, 0, 0);
        }

        100% {
            transform: translate3d(-33.33%, 0, 0);
        }
    }

    /* ========= NEWSLETTER ========= */
    .newsletter-section {
        padding: 100px 0;
        background: var(--bg);
        position: relative;
        overflow: hidden;
    }

    .newsletter-card {
        background: var(--bg-glass);
        border: 1px solid var(--border);
        border-radius: 32px;
        padding: 60px 40px;
        text-align: center;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        max-width: 800px;
        margin: 0 auto;
    }

    .newsletter-card h2 {
        font-size: 42px;
        margin-bottom: 20px;
        background: var(--gradient-1);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .newsletter-card p {
        color: var(--text-secondary);
        font-size: 18px;
        margin-bottom: 40px;
    }

    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 15px;
        max-width: 500px;
        margin: 0 auto;
    }

    @media (min-width: 768px) {
        .newsletter-form {
            flex-direction: row;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border);
            padding: 8px;
            border-radius: 50px;
        }
    }

    .newsletter-form input {
        flex: 1;
        background: transparent;
        border: 1px solid var(--border);
        padding: 15px 25px;
        border-radius: 50px;
        color: var(--text);
        outline: none;
    }

    @media (min-width: 768px) {
        .newsletter-form input {
            border: none;
        }
    }

    /* ========= SOCIAL ICONS & SHARING ========= */
    .share-section {
        margin-top: 4rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .share-buttons {
        display: flex;
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .share-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: var(--bg-glass);
        border: 1px solid var(--border);
        color: var(--text-secondary);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .share-btn svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .share-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        color: #fff;
    }

    .share-btn.x-twitter:hover {
        background: #000;
        border-color: #333;
    }

    .share-btn.linkedin:hover {
        background: #0077b5;
        border-color: #0077b5;
    }

    .share-btn.facebook:hover {
        background: #1877f2;
        border-color: #1877f2;
    }

    .footer-social {
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
    }

    .footer-social .social-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border);
        color: var(--text-secondary);
        transition: all 0.3s ease;
    }

    .footer-social .social-icon svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    .footer-social .social-icon:hover {
        background: var(--accent);
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    /* ========= PREMIUM UX v7.0: TABLE OF CONTENTS ========= */
    .table-of-contents {
        background: var(--bg-glass);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 25px;
        margin-bottom: 3rem;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .toc-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border);
        cursor: pointer;
        /* Make entire header clickable */
    }

    .toc-header:hover span {
        color: var(--accent);
    }

    .toc-header span {
        font-weight: 700;
        font-size: 18px;
        color: var(--text-primary);
    }

    .toc-toggle {
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text-secondary);
        padding: 5px 12px;
        border-radius: 8px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .toc-toggle:hover {
        background: var(--bg-alt);
        color: var(--text-primary);
    }

    .toc-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .toc-list li a {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 15px;
        transition: all 0.3s ease;
        display: block;
    }

    .toc-list li a:hover {
        color: var(--accent);
        padding-left: 8px;
    }

    /* ========= PREMIUM UX v7.0: AJAX SEARCH ========= */
    .nav-search-wrap {
        position: relative;
        display: flex;
        align-items: center;
    }

    .btn-search-toggle {
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 18px;
        cursor: pointer;
        padding: 0 10px;
        opacity: 0.8;
        transition: opacity 0.3s;
    }

    .btn-search-toggle:hover {
        opacity: 1;
    }

    .search-dropdown-card {
        position: absolute;
        top: 100%;
        right: 0;
        width: 350px;
        background: var(--bg-glass);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        display: none;
        /* Managed by JS */
        z-index: 1000;
        transform-origin: top right;
        animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: scale(0.95) translateY(-10px);
        }

        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .search-input-inner {
        position: relative;
        margin-bottom: 15px;
    }

    .search-input-inner input {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border);
        padding: 12px 15px;
        border-radius: 12px;
        color: var(--text-primary);
        outline: none;
        font-size: 14px;
    }

    .search-loading-icon {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
    }

    #ajax-search-results {
        max-height: 400px;
        overflow-y: auto;
    }

    .search-result-item {
        display: flex;
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
        text-decoration: none;
        transition: background 0.3s;
        margin-bottom: 8px;
    }

    .search-result-item:hover {
        background: rgba(255, 255, 255, 0.03);
    }

    .search-result-img {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        object-fit: cover;
        background: var(--bg-alt);
    }

    .search-result-info {
        flex: 1;
        overflow: hidden;
    }

    .search-result-info h5 {
        font-size: 14px;
        margin-bottom: 4px;
        color: var(--text-primary);
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .search-result-info span {
        font-size: 11px;
        color: var(--accent);
        text-transform: uppercase;
    }

    /* ========= PREMIUM FOOTER (v9.0) ========= */
    .footer {
        background: rgba(3, 0, 20, 0.95);
        border-top: 1px solid var(--border);
        padding: 100px 0 60px;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        margin-top: 80px;
    }

    .footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.05), transparent 70%);
        pointer-events: none;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 40px;
        margin-bottom: 60px;
    }

    .footer-brand span {
        font-size: 24px;
        font-weight: 800;
        background: var(--gradient-brand);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .footer h4 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 24px;
    }

    .footer-links {
        list-style: none;
        padding: 0;
    }

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: var(--text-secondary);
        transition: all 0.3s;
    }

    .footer-links a:hover {
        color: var(--accent);
        padding-left: 5px;
    }

    .footer-bottom {
        padding-top: 30px;
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        color: var(--text-muted);
        font-size: 14px;
    }

    /* ========= INTERNAL LINKS ========= */
    a.internal-link {
        color: var(--accent);
        text-decoration: underline;
        text-decoration-color: rgba(99, 102, 241, 0.3);
        text-underline-offset: 3px;
        transition: all 0.3s var(--transition);
        font-weight: 500;
    }

    a.internal-link:hover {
        color: var(--accent-2);
        text-decoration-color: var(--accent-2);
    }

    /* ========= AD SLOTS ========= */
    .ad-slot {
        padding: 20px 0;
    }

    .ad-placeholder {
        min-height: 90px;
        background: var(--bg-card);
        border: 1px dashed var(--border);
        border-radius: var(--radius);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        font-size: 0.8rem;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .ad-placeholder:empty::after {
        content: '';
    }

    .ad-slot-inline {
        margin: 2rem 0;
    }

    /* ========= LOAD MORE BUTTON ========= */
    .btn-load-more {
        background: var(--bg-card);
        color: var(--text);
        border: 1px solid var(--border);
        padding: 14px 40px;
        border-radius: 50px;
        font-size: 0.95rem;
        font-weight: 600;
        font-family: 'Outfit', sans-serif;
        cursor: pointer;
        transition: all 0.4s var(--transition);
        letter-spacing: 0.5px;
    }

    .btn-load-more:hover {
        background: var(--accent);
        border-color: var(--accent);
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
    }

    .btn-load-more:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

    .btn-load-more span {
        display: inline-block;
        transition: transform 0.3s;
    }

    .btn-load-more:hover span {
        transform: translateY(3px);
    }

    /* ========= COOKIE CONSENT ========= */
    .cookie-consent {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        padding: 16px 20px;
        animation: slideUp 0.5s ease forwards;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .cookie-content {
        max-width: var(--max-width);
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        background: rgba(10, 10, 46, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 18px 28px;
        flex-wrap: wrap;
    }

    .cookie-content p {
        font-size: 0.88rem;
        color: var(--text-secondary);
        line-height: 1.5;
        flex: 1;
    }

    .cookie-content a {
        color: var(--accent);
        text-decoration: underline;
    }

    .btn-cookie-accept {
        background: var(--gradient-1);
        color: #fff;
        border: none;
        padding: 10px 28px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.88rem;
        cursor: pointer;
        transition: all 0.3s;
        white-space: nowrap;
    }

    .btn-cookie-accept:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }

    /* ========= CATEGORY COLOR ACCENTS ========= */
    .category-section {
        border-top: 1px solid var(--border);
    }

    .category-section .section-label {
        color: var(--cat-accent, var(--accent));
    }

    .category-section h2 {
        background: linear-gradient(135deg, var(--cat-accent, var(--accent)), var(--accent-2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    @media (max-width: 768px) {
        .cookie-content {
            flex-direction: column;
            text-align: center;
        }

        .btn-load-more {
            padding: 12px 30px;
            font-size: 0.88rem;
        }
    }

    /* Light Mode Fixes (v15.3) */
    [data-theme="light"] h1,
    [data-theme="light"] h2,
    [data-theme="light"] h3,
    [data-theme="light"] h4,
    [data-theme="light"] h5,
    [data-theme="light"] h6 {
        color: #0f172a !important;
    }

    [data-theme="light"] p,
    [data-theme="light"] li,
    [data-theme="light"] span,
    [data-theme="light"] div {
        color: inherit;
    }

    [data-theme="light"] body {
        color: #334155;
    }

    [data-theme="light"] .post-content p {
        color: #334155;
    }

    [data-theme="light"] .post-meta,
    [data-theme="light"] .post-meta span,
    [data-theme="light"] .breadcrumb,
    [data-theme="light"] .breadcrumb a {
        color: #64748b !important;
    }

    [data-theme="light"] .breadcrumb a:hover {
        color: #4338ca !important;
    }

    /* =========================================
   NUCLEAR OVERRIDE: FORCE DESKTOP MENU
   ========================================= */
    @media (min-width: 769px) {
        .navbar-links {
            display: flex !important;
            position: static !important;
            opacity: 1 !important;
            visibility: visible !important;
            transform: none !important;
            pointer-events: auto !important;
            height: auto !important;
            width: auto !important;
            overflow: visible !important;
            flex-direction: row !important;
            gap: 25px !important;
            z-index: 9999 !important;
            background: transparent !important;
        }

        .navbar-links li {
            display: block !important;
            opacity: 1 !important;
            visibility: visible !important;
            transform: none !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .navbar-links a {
            display: inline-block !important;
            opacity: 1 !important;
            visibility: visible !important;
            color: var(--text) !important;
            font-size: 1rem !important;
            font-weight: 500 !important;
            text-transform: none !important;
            letter-spacing: normal !important;
        }

        [data-theme="light"] .navbar-links a {
            color: #1e293b !important;
        }

        [data-theme="light"] .navbar-links a:hover {
            color: var(--accent) !important;
        }
    }

    /* =========================================
   INFOGRAPHICS & VISUALS (v2.0)
   ========================================= */

    /* Mermaid Diagrams */
    .mermaid {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 20px;
        margin: 30px 0;
        text-align: center;
        overflow-x: auto;
    }

    [data-theme="light"] .mermaid {
        background: #fff;
        border-color: rgba(0, 0, 0, 0.1);
    }

    /* (Comparison Tables moved to PREMIUM section below) */

    /* AEO Box */
    .aeo-box {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
        border: 1px solid var(--border-glow);
        border-left: 4px solid var(--accent);
        padding: 24px;
        border-radius: var(--radius);
        margin: 30px 0;
        font-size: 1.1rem;
        font-weight: 500;
    }

    [data-theme="light"] .aeo-box {
        background: #eff6ff;
        border-color: #bfdbfe;
        border-left-color: #2563eb;
        color: #1e3a8a;
    }

    /* Pros and Cons */
    /* =========================================
   PREMIUM INFOGRAPHICS v4.0
   ========================================= */

    /* (Consolidated in Premium Components at the end) */

    /* Comparison Tables */
    .comparison-table {
        width: 100%;
        margin: 40px 0;
        border-collapse: separate;
        border-spacing: 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--border);
    }

    /* Catch-all: style ANY table inside blog post content */
    .single-post-content table:not(.comparison-table) {
        width: 100%;
        margin: 2rem 0;
        border-collapse: separate;
        border-spacing: 0;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid var(--border);
    }

    .single-post-content table:not(.comparison-table) th {
        background: rgba(99, 102, 241, 0.15);
        color: var(--text-primary);
        padding: 14px 18px;
        font-size: 0.85rem;
        font-weight: 700;
        text-align: left;
    }

    .single-post-content table:not(.comparison-table) td {
        padding: 14px 18px;
        border-bottom: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.02);
    }

    .single-post-content table:not(.comparison-table) tr:last-child td {
        border-bottom: none;
    }

    .comparison-table th {
        background: var(--accent);
        color: #fff;
        padding: 18px;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 1px;
        font-weight: 700;
    }

    .comparison-table td {
        padding: 18px;
        background: rgba(255, 255, 255, 0.02);
        border-bottom: 1px solid var(--border);
    }

    .comparison-table tr:hover td {
        background: rgba(255, 255, 255, 0.05);
    }

    .comparison-table tr:last-child td {
        border-bottom: none;
    }

    [data-theme="light"] .comparison-table {
        border-color: rgba(0, 0, 0, 0.1);
    }

    [data-theme="light"] .comparison-table th {
        background: #6366f1;
    }

    [data-theme="light"] .comparison-table td {
        background: #fff;
        border-color: rgba(0, 0, 0, 0.05);
    }

    [data-theme="light"] .comparison-table tr:hover td {
        background: #f8fafc;
    }

    /* Pros & Cons */
    .pros-icons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        margin: 40px auto;
        max-width: 900px;
    }

    .pros-icons ul {
        list-style: none;
        padding: 25px;
        margin: 0;
        border-radius: 16px;
        border: 1px solid;
    }

    .pros-icons ul:first-child {
        background: rgba(16, 185, 129, 0.05);
        border-color: rgba(16, 185, 129, 0.2);
    }

    .pros-icons ul:last-child {
        background: rgba(239, 68, 68, 0.05);
        border-color: rgba(239, 68, 68, 0.2);
    }

    .pros-icons li {
        padding-left: 30px;
        position: relative;
        margin-bottom: 12px;
        font-weight: 500;
    }

    .pros-icons li::before {
        content: '✅';
        position: absolute;
        left: 0;
        top: 2px;
    }

    .pros-icons ul:last-child li::before {
        content: '❌';
    }

    /* Disclaimer */
    .blog-disclaimer {
        background: rgba(255, 193, 7, 0.08);
        border: 1px solid rgba(255, 193, 7, 0.2);
        border-left: 4px solid #f59e0b;
        padding: 20px;
        border-radius: 12px;
        margin: 40px 0;
        font-size: 0.9rem;
    }

    /* Mobile */
    @media (max-width: 768px) {
        .pros-icons {
            grid-template-columns: 1fr;
        }

        .comparison-table {
            display: block;
            overflow-x: auto;
        }
    }

    /* Related Reading Box */
    .related-reading {
        background: rgba(99, 102, 241, 0.05);
        border: 1px solid rgba(99, 102, 241, 0.15);
        border-left: 4px solid var(--accent);
        padding: 24px;
        border-radius: 12px;
        margin: 40px 0;
    }

    .related-reading h4 {
        margin-top: 0;
        color: var(--accent);
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .related-reading ul {
        margin-bottom: 0;
        list-style: none;
        padding-left: 0;
    }

    .related-reading li {
        margin-bottom: 12px;
        position: relative;
        padding-left: 24px;
        line-height: 1.4;
    }

    .related-reading li::before {
        content: "→";
        position: absolute;
        left: 0;
        color: var(--accent);
        font-weight: bold;
    }

    .related-reading a {
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

    .related-reading a:hover {
        color: var(--accent);
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    [data-theme="light"] .related-reading {
        background: rgba(99, 102, 241, 0.06);
        border-color: rgba(99, 102, 241, 0.2);
    }

    [data-theme="light"] .related-reading a {
        color: #1e293b;
    }

    [data-theme="light"] .related-reading a:hover {
        color: var(--accent);
    }

    /* Internal Links */
    .internal-link {
        color: var(--accent);
        text-decoration: underline;
        text-decoration-style: dotted;
        text-underline-offset: 3px;
        transition: color 0.2s;
    }

    .internal-link:hover {
        color: var(--accent);
        text-decoration-style: solid;
    }

    /* ================================================================
   PROS / CONS BLOCK (AI: <div class="pros-cons"> or <div class="collapsibles">)
   ================================================================ */
    .pros-cons,
    .collapsibles {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        margin: 2rem 0;
    }

    /* AI Hallucination Defense: If AI forgets closing </div>, force remaining content to span full width */
    .pros-cons> :not(div.pros):not(div.cons),
    .collapsibles> :not(div.pros):not(div.cons) {
        grid-column: 1 / -1;
    }

    @media (max-width: 640px) {

        .pros-cons,
        .collapsibles {
            grid-template-columns: 1fr;
        }
    }

    .pros-cons div.pros,
    .pros-cons div.cons,
    .collapsibles div.pros,
    .collapsibles div.cons {
        border-radius: 12px;
        padding: 1.25rem 1.5rem;
    }

    .pros-cons div.pros,
    .collapsibles div.pros {
        background: rgba(16, 185, 129, .1);
        border: 1px solid rgba(16, 185, 129, .3);
    }

    .pros-cons div.pros h4,
    .collapsibles div.pros h4 {
        color: #10b981;
        font-weight: 700;
        margin-bottom: .75rem;
    }

    .pros-cons div.cons,
    .collapsibles div.cons {
        background: rgba(239, 68, 68, .08);
        border: 1px solid rgba(239, 68, 68, .3);
    }

    .pros-cons div.cons h4,
    .collapsibles div.cons h4 {
        color: #ef4444;
        font-weight: 700;
        margin-bottom: .75rem;
    }

    .pros-cons ul,
    .collapsibles ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }

    .pros-cons ul li,
    .collapsibles ul li {
        font-size: .9rem;
        line-height: 1.5;
        color: var(--text-secondary);
        position: relative;
        padding-left: 24px;
    }

    .pros-cons div.pros ul li::before,
    .collapsibles div.pros ul li::before {
        content: '✅';
        position: absolute;
        left: 0;
        top: 2px;
    }

    .pros-cons div.cons ul li::before,
    .collapsibles div.cons ul li::before {
        content: '❌';
        position: absolute;
        left: 0;
        top: 2px;
    }

    /* ================================================================
   MYTH vs FACT GRID (AI: <div class="myth-fact-grid">...)
   ================================================================ */
    .myth-fact-grid {
        margin: 2.5rem 0;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .myth-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .myth-row:last-child {
        border-bottom: none;
    }

    .myth-col,
    .fact-col {
        padding: 1.25rem 1.5rem;
    }

    .myth-col {
        background: rgba(239, 68, 68, 0.07);
        border-right: 1px solid rgba(239, 68, 68, 0.12);
    }

    .fact-col {
        background: rgba(16, 185, 129, 0.07);
    }

    .myth-label,
    .fact-label {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        padding: 2px 8px;
        border-radius: 50px;
        margin-bottom: 0.6rem;
    }

    .myth-label {
        background: rgba(239, 68, 68, 0.18);
        color: #f87171;
    }

    .fact-label {
        background: rgba(16, 185, 129, 0.18);
        color: #34d399;
    }

    .myth-col p,
    .fact-col p {
        margin: 0;
        font-size: 0.925rem;
        line-height: 1.7;
        color: var(--text-secondary);
    }

    @media (max-width: 640px) {
        .myth-row {
            grid-template-columns: 1fr;
        }

        .myth-col {
            border-right: none;
            border-bottom: 1px solid rgba(239, 68, 68, 0.12);
        }
    }

    /* ================================================================
   ACTION CHECKLIST (AI: <div class="action-checklist">...)
   ================================================================ */
    .action-checklist {
        background: rgba(16, 185, 129, 0.05);
        border: 1px solid rgba(16, 185, 129, 0.2);
        border-top: 4px solid #10b981;
        border-radius: 12px;
        padding: 1.5rem 2rem;
        margin: 2.5rem 0;
    }

    .action-checklist h3 {
        color: #10b981;
        font-size: 1.35rem;
        margin-top: 0;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .action-checklist ol {
        margin: 0;
        padding-left: 1rem;
        list-style: none;
        counter-reset: checklist-counter;
    }

    .action-checklist ol li {
        position: relative;
        margin-bottom: 12px;
        line-height: 1.6;
        color: var(--text);
        padding-left: 28px;
    }

    .action-checklist ol li::before {
        counter-increment: checklist-counter;
        content: counter(checklist-counter) ".";
        position: absolute;
        left: 0;
        color: #10b981;
        font-weight: 700;
    }

    .action-checklist strong {
        color: #10b981;
    }

    /* (Pros-Icons replaced by consolidated .pros-cons) */

    /* ================================================================
   FAQ ACCORDION SECTION
   ================================================================ */
    .faq-section {
        margin: 3rem 0;
        padding: 1.75rem;
        background: var(--bg-glass);
        border: 1px solid var(--border);
        border-radius: 16px;
    }

    .faq-section-title {
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 1.25rem;
        padding-bottom: .75rem;
        border-bottom: 1px solid var(--border);
    }

    .faq-item {
        border: 1px solid var(--border);
        border-radius: 10px;
        margin-bottom: .75rem;
        overflow: hidden;
        transition: border-color .2s;
    }

    .faq-item[open] {
        border-color: var(--accent);
    }

    .faq-question {
        padding: 1rem 1.25rem;
        cursor: pointer;
        font-weight: 600;
        font-size: .95rem;
        color: var(--text);
        background: var(--bg-card);
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        user-select: none;
        transition: background .2s;
    }

    .faq-question::-webkit-details-marker {
        display: none;
    }

    .faq-question::after {
        content: '+';
        font-size: 1.2rem;
        color: var(--accent);
        transition: transform .25s;
        flex-shrink: 0;
        margin-left: 1rem;
    }

    .faq-item[open] .faq-question::after {
        transform: rotate(45deg);
    }

    .faq-question:hover {
        background: var(--bg-card-hover);
    }

    .faq-answer {
        padding: 1rem 1.25rem;
        font-size: .92rem;
        line-height: 1.7;
        color: var(--text-secondary);
        border-top: 1px solid var(--border);
    }

    /* ================================================================
   MERMAID CONTAINER
   ================================================================ */
    .mermaid {
        background: var(--bg-glass);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.5rem;
        margin: 2rem auto;
        overflow-x: auto;
        text-align: center;
        max-width: 100%;
    }

    .mermaid svg {
        max-width: 100%;
        height: auto;
    }

    /* ================================================================
   TL;DR QUICK ANSWER BOX
   ================================================================ */
    .tldr-box {
        background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(139, 92, 246, .08));
        border: 1px solid rgba(99, 102, 241, .35);
        border-radius: 14px;
        padding: 1.5rem 1.75rem;
        margin: 1.75rem 0;
    }

    .tldr-box h3 {
        color: var(--accent);
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: .75rem;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .tldr-box p {
        font-size: 1.05rem;
        line-height: 1.65;
        color: var(--text);
        margin-bottom: .75rem;
    }

    .tldr-box ul {
        padding-left: 1.25rem;
        margin: 0;
    }

    .tldr-box ul li {
        font-size: .92rem;
        color: var(--text-secondary);
        margin-bottom: .35rem;
    }

    /* ================================================================
   ACTION CHECKLIST
   ================================================================ */
    .action-checklist {
        background: rgba(16, 185, 129, .06);
        border: 1px solid rgba(16, 185, 129, .25);
        border-radius: 14px;
        padding: 1.5rem 1.75rem;
        margin: 2rem 0;
    }

    .action-checklist h3 {
        color: #10b981;
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .action-checklist ol {
        padding-left: 1.5rem;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: .6rem;
    }

    .action-checklist ol li {
        font-size: .92rem;
        color: var(--text-secondary);
        line-height: 1.55;
    }

    .action-checklist ol li strong {
        color: var(--text);
    }

    /* ================================================================
   BLOG DISCLAIMER BOX
   ================================================================ */
    .blog-disclaimer {
        margin: 2rem 0;
        padding: 1rem 1.25rem;
        background: rgba(245, 158, 11, 0.07);
        border-left: 4px solid rgba(245, 158, 11, 0.55);
        border-radius: 0 10px 10px 0;
        font-size: 0.88rem;
        color: var(--text-muted);
        line-height: 1.65;
    }

    .blog-disclaimer strong {
        color: rgba(245, 158, 11, 0.9);
        margin-right: .35rem;
    }
}


/* ================================================================
   COMPREHENSIVE MOBILE OVERHAUL (375px–768px)
   Modern, clean, properly spaced mobile layout
   ================================================================ */

@media (max-width: 768px) {

    /* --- GLOBAL MOBILE SPACING --- */
    body {
        font-size: 15px;
    }

    .container,
    .main-content,
    section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* --- HEADER & NAV --- */
    .site-header,
    .header,
    header,
    nav {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .site-header .container,
    header .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* --- HERO SECTION --- */
    .hero-title,
    .hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
        line-height: 1.15;
        padding: 0 8px;
    }

    .hero-subtitle,
    .hero p {
        font-size: 0.95rem !important;
        padding: 0 8px;
        line-height: 1.6;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .hero-stats .stat-item {
        min-width: 80px;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-cta-group a,
    .hero-cta-group button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* --- SECTION TITLES --- */
    .section-title,
    h2.section-title {
        font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
        text-align: center;
    }

    /* --- BENTO GRID / FEATURED CARDS --- */
    .bento-grid,
    .insights-grid,
    .featured-grid,
    .blog-grid,
    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .bento-item,
    .insight-card,
    .featured-card,
    .blog-card,
    .post-card {
        padding: 20px !important;
    }

    .bento-item h3,
    .insight-card h3,
    .blog-card h3 {
        font-size: 1.15rem !important;
    }

    /* --- MARQUEE / CATEGORY CHIPS --- */
    .marquee-container {
        overflow: hidden !important;
        max-width: 100vw !important;
    }

    /* --- BLOG POST PAGE --- */
    .post-hero-title,
    .single-post-title,
    .post-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
        line-height: 1.2;
        padding: 0 8px;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.85rem;
    }

    /* Breadcrumbs */
    .breadcrumbs,
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 0;
    }

    /* Table of Contents */
    .table-of-contents {
        margin: 0 0 20px 0 !important;
        padding: 16px !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .toc-list a,
    .table-of-contents a {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    /* Post content area */
    .single-post-content,
    .post-content,
    .article-content {
        padding: 0 4px !important;
        overflow-x: hidden;
    }

    .single-post-content h2 {
        font-size: 1.35rem !important;
        line-height: 1.3;
        word-break: break-word;
    }

    .single-post-content h3 {
        font-size: 1.1rem !important;
        line-height: 1.3;
    }

    .single-post-content p {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .single-post-content img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 10px;
    }

    /* --- INFOGRAPHIC COMPONENTS (all must fit mobile) --- */

    /* TL;DR Box */
    .tldr-box {
        margin: 16px 0 !important;
        padding: 16px !important;
        border-radius: 10px;
    }

    .tldr-box h3 {
        font-size: 1.05rem !important;
    }

    /* Data Dashboard / KPI */
    .data-dashboard {
        padding: 16px !important;
        margin: 16px 0 !important;
    }

    .data-dashboard-title {
        font-size: 0.95rem !important;
    }

    .stat-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .stat-box {
        padding: 16px !important;
    }

    .stat-value {
        font-size: 1.5rem !important;
    }

    /* Comparison Table — horizontal scroll wrapper */
    .single-post-content table,
    .comparison-table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        margin: 16px 0 !important;
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td,
    .single-post-content table th,
    .single-post-content table td {
        padding: 10px 12px !important;
        white-space: normal;
        min-width: 120px;
    }

    /* Progress Tracker */
    .progress-container {
        margin-bottom: 10px;
    }

    .progress-header {
        font-size: 0.85rem;
    }

    /* Pros/Cons Grid */
    .pros-cons {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
    }

    .pros-cons .pros,
    .pros-cons .cons {
        padding: 16px !important;
    }

    /* Action Checklist */
    .action-checklist {
        padding: 16px !important;
        margin: 16px 0 !important;
    }

    .action-checklist h3 {
        font-size: 1.05rem !important;
    }

    /* Timeline */
    .timeline {
        padding-left: 16px !important;
    }

    .timeline-item {
        padding: 12px 16px !important;
    }

    .timeline-item h4 {
        font-size: 0.95rem !important;
    }

    /* Rich Quote */
    .rich-quote {
        padding: 16px 20px !important;
        margin: 16px 0 !important;
        font-size: 1rem !important;
    }

    /* Myth vs Fact Grid */
    .myth-fact-grid {
        margin: 16px 0 !important;
    }

    .myth-row {
        grid-template-columns: 1fr !important;
    }

    .myth-col,
    .fact-col {
        padding: 12px 16px !important;
    }

    .myth-col {
        border-right: none !important;
        border-bottom: 1px solid rgba(239, 68, 68, 0.12);
    }

    /* Blog Disclaimer */
    .blog-disclaimer {
        margin: 16px 0 !important;
        padding: 12px 16px !important;
        font-size: 0.85rem !important;
    }

    /* --- FAQ Section --- */
    .faq-item {
        padding: 14px 16px !important;
    }

    .faq-question {
        font-size: 0.95rem !important;
    }

    /* --- REFERENCES SECTION --- */
    .references-list,
    .post-references {
        padding: 16px !important;
    }

    .references-list a {
        word-break: break-all;
        font-size: 0.85rem;
    }

    /* --- SIDEBAR --- */
    .blog-sidebar,
    .sidebar,
    aside {
        margin-top: 24px;
        padding: 0 !important;
    }

    /* Stack main+sidebar vertically */
    .blog-layout,
    .post-layout,
    .two-column-layout {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
    }

    /* --- FOOTER --- */
    .footer-grid,
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 24px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* --- CATEGORY PAGE --- */
    .category-header {
        padding: 24px 16px !important;
    }

    .category-title {
        font-size: 1.5rem !important;
    }

    /* --- GENERAL UTILITY --- */
    .hide-on-mobile {
        display: none !important;
    }

    /* Prevent ANY horizontal overflow */
    *,
    *::before,
    *::after {
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Fix overflow from code blocks */
    pre,
    code {
        overflow-x: auto;
        white-space: pre-wrap;
        word-break: break-word;
        max-width: 100%;
    }
}

/* ================================================================
   SMALL PHONE REFINEMENTS (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {

    .hero-title,
    .hero h1 {
        font-size: clamp(1.5rem, 8vw, 2rem) !important;
    }

    .post-hero-title,
    .single-post-title,
    .post-title {
        font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
    }

    .stat-grid {
        gap: 8px !important;
    }

    .stat-box {
        padding: 12px !important;
    }

    .stat-value {
        font-size: 1.3rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-stats .stat-item {
        font-size: 0.85rem;
    }

    .single-post-content h2 {
        font-size: 1.2rem !important;
    }

    .single-post-content h3 {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.3rem !important;
    }

    .bento-item,
    .insight-card,
    .blog-card {
        padding: 16px !important;
    }
}