/* ==================== DESIGN TOKENS ==================== */
        :root {
            --primary: #4f46e5;
            --primary-light: #eef2ff;
            --primary-dark: #3730a3;

            --secondary: #6366f1;
            --secondary-light: #e0e7ff;

            --accent: #818cf8;
            --accent-light: #e0e7ff;

            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;

            --bg-primary: #ffffff;
            --bg-secondary: #f9fafb;
            --bg-tertiary: #f3f4f6;

            --text-primary: #111827;
            --text-secondary: #6b7280;
            --text-tertiary: #9ca3af;

            --border: #e5e7eb;
            --border-light: #f3f4f6;

            /* Shadows */
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

            /* Radius */
            --radius-sm: 6px;
            --radius-md: 8px;
            --radius-lg: 12px;
            --radius-xl: 16px;
        }

        /* ==================== SCROLLBAR STYLING ==================== */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(0, 0, 0, 0.05) 100%);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
            border-radius: 10px;
            border: 2px solid transparent;
            background-clip: content-box;
            transition: all 0.3s ease;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #4338ca 0%, #818cf8 100%);
            background-clip: content-box;
        }

        /* Firefox scrollbar */
        * {
            scrollbar-color: #4f46e5 rgba(99, 102, 241, 0.1);
            scrollbar-width: thin;
        }

        /* ==================== BODY & BACKGROUND ==================== */
        body {
            overflow-x: hidden;
            background: var(--bg-secondary);
            min-height: 100vh;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
        }

        /* ==================== BLOG DETAIL HERO ==================== */
        .blog-detail-hero {
            background: linear-gradient(135deg, #4f46e5 0%, #4338ca 55%, #818cf8 100%);
            position: relative;
            overflow: hidden;
            padding: 80px 20px;
            margin-bottom: 40px;
            margin-top: -30px;
            color: white;
        }

        .blog-detail-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
            background-size: 40px 40px;
            opacity: 0.3;
        }

        .blog-detail-hero::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
            border-radius: 50%;
            animation: float 20s ease-in-out infinite;
            z-index: 0;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) translateX(0px); }
            25% { transform: translateY(-20px) translateX(-10px); }
            50% { transform: translateY(-40px) translateX(20px); }
            75% { transform: translateY(-20px) translateX(10px); }
        }

        .blog-detail-hero h1 {
            font-size: clamp(2rem, 8vw, 3rem);
            font-weight: 800;
            margin-bottom: 20px;
            font-family: 'League Spartan', sans-serif;
            line-height: 1.2;
            position: relative;
            z-index: 2;
            animation: slideInDown 0.8s ease-out;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            letter-spacing: -1px;
        }

        .blog-detail-hero p {
            font-size: clamp(1rem, 3vw, 1.25rem);
            margin-bottom: 20px;
            opacity: 0.95;
            position: relative;
            z-index: 2;
            animation: slideInUp 0.8s ease-out 0.2s backwards;
            max-width: 700px;
            line-height: 1.6;
        }

        @keyframes slideInDown {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes slideInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .blog-detail-back {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: white;
            text-decoration: none;
            font-weight: 600;
            margin-bottom: 30px;
            position: relative;
            z-index: 2;
            animation: slideInLeft 0.8s ease-out;
            transition: all 0.3s ease;
        }

        .blog-detail-back:hover {
            gap: 12px;
            opacity: 0.8;
        }

        .blog-detail-back i {
            transition: transform 0.3s ease;
        }

        .blog-detail-back:hover i {
            transform: translateX(-4px);
        }

        .blog-detail-back a {
            color: white;
            text-decoration: none;
        }

        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-30px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .blog-detail-meta {
            display: flex;
            align-items: center;
            gap: 20px;
            font-size: 0.95rem;
            flex-wrap: wrap;
            position: relative;
            z-index: 2;
            animation: slideInUp 0.8s ease-out 0.4s backwards;
        }

        .blog-detail-meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 16px;
            border-radius: var(--radius-lg);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .blog-detail-meta-item:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .blog-detail-meta-item i {
            color: #fff;
            opacity: 0.9;
        }

        /* ==================== CONTAINER & GLASSMORPHISM ==================== */
        .blog-detail-container {
            max-width: 900px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.2);
            margin-bottom: 50px;
            animation: slideUp 0.8s ease-out 0.6s backwards;
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .blog-detail-featured-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

        .blog-detail-container:hover .blog-detail-featured-image {
            transform: scale(1.02);
        }

        /* ==================== CONTENT STYLING ==================== */
        .blog-detail-content {
            padding: 50px 40px;
        }

        .blog-detail-content h2,
        .blog-detail-content h3,
        .blog-detail-content h4 {
            font-family: 'League Spartan', sans-serif;
            color: var(--primary);
            margin-top: 30px;
            margin-bottom: 15px;
            font-weight: 600;
            position: relative;
            padding-left: 15px;
        }

        .blog-detail-content h2::before,
        .blog-detail-content h3::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 60%;
            background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
            border-radius: 2px;
        }

        .blog-detail-content h2 {
            font-size: 1.8rem;
            border-bottom: 2px solid #e0e0e0;
            padding-bottom: 10px;
        }

        .blog-detail-content h3 {
            font-size: 1.4rem;
        }

        .blog-detail-content p {
            font-size: 1rem;
            line-height: 1.8;
            color: #333;
            margin-bottom: 15px;
        }

        .blog-detail-content ul,
        .blog-detail-content ol {
            margin-bottom: 20px;
            padding-left: 30px;
        }

        .blog-detail-content li {
            margin-bottom: 10px;
            line-height: 1.6;
        }

        .blog-detail-content a {
            color: var(--primary);
            text-decoration: none;
            border-bottom: 2px solid var(--primary);
            transition: all 0.3s ease;
        }

        .blog-detail-content a:hover {
            color: var(--secondary);
            border-bottom-color: var(--secondary);
            padding-bottom: 2px;
        }

        .blog-detail-content img {
            max-width: 100%;
            height: auto;
            margin: 20px 0;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            transition: transform 0.3s ease;
        }

        .blog-detail-content img:hover {
            transform: scale(1.02);
        }

        .blog-detail-content blockquote {
            border-left: 4px solid var(--primary);
            padding-left: 20px;
            margin: 20px 0;
            font-style: italic;
            color: var(--text-secondary);
            background: rgba(99, 102, 241, 0.05);
            padding: 20px;
            border-radius: var(--radius-md);
        }

        .blog-detail-content code {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
            padding: 4px 8px;
            border-radius: 3px;
            font-family: 'Courier New', monospace;
            color: var(--primary);
            font-weight: 600;
            border: 1px solid rgba(99, 102, 241, 0.2);
        }

        .blog-detail-content pre {
            background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
            padding: 15px;
            border-radius: var(--radius-md);
            overflow-x: auto;
            margin: 20px 0;
            border: 1px solid rgba(99, 102, 241, 0.2);
            color: var(--text-primary);
        }

        /* ==================== FOOTER & SHARING ==================== */
        .blog-detail-footer {
            border-top: 2px solid #e0e0e0;
            padding-top: 30px;
            margin-top: 40px;
        }

        .blog-detail-share {
            display: flex;
            gap: 12px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .blog-detail-share a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 1.1rem;
            border: 2px solid transparent;
        }

        .blog-detail-share a:hover {
            background: linear-gradient(135deg, #4338ca 0%, #818cf8 100%);
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
            border-color: rgba(13, 110, 253, 0.3);
        }

        /* ==================== RELATED ARTICLES ==================== */
        .blog-detail-sidebar {
            margin-top: 50px;
            padding-top: 40px;
            border-top: 2px solid #e0e0e0;
        }

        .blog-detail-sidebar h3 {
            font-size: 1.5rem;
            font-family: 'League Spartan', sans-serif;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .blog-related-card {
            display: block;
            padding: 20px;
            margin-bottom: 20px;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
            border-radius: var(--radius-lg);
            text-decoration: none;
            transition: all 0.3s ease;
            border-left: 4px solid transparent;
            border: 1px solid rgba(99, 102, 241, 0.1);
        }

        .blog-related-card:hover {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
            border-left-color: var(--primary);
            border-color: rgba(99, 102, 241, 0.3);
            transform: translateX(8px);
            box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
        }

        .blog-related-card h5 {
            font-family: 'League Spartan', sans-serif;
            color: var(--primary);
            margin-bottom: 8px;
            font-weight: 600;
        }

        .blog-related-card p {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin: 0;
            line-height: 1.5;
        }

        .blog-related-card .date {
            font-size: 0.85rem;
            color: var(--text-tertiary);
            margin-top: 8px;
        }

        /* ==================== RESPONSIVE ==================== */
        @media (max-width: 768px) {
            .blog-detail-hero {
                padding: 60px 20px;
            }

            .blog-detail-hero h1 {
                font-size: 1.8rem;
            }

            .blog-detail-meta {
                gap: 10px;
            }

            .blog-detail-featured-image {
                height: 250px;
            }

            .blog-detail-content {
                padding: 30px 20px;
            }

            .blog-detail-content h2 {
                font-size: 1.4rem;
            }

            .blog-detail-content h3 {
                font-size: 1.2rem;
            }
        }

        @media (max-width: 640px) {
            .blog-detail-meta {
                flex-direction: column;
                align-items: flex-start;
            }

            .blog-detail-meta-item {
                width: 100%;
            }
        }

        @media (max-width: 768px) {
            body {
                background: #f6f3eb !important;
            }

            .blog-detail-hero {
                background: linear-gradient(135deg, #f8f5ef 0%, #f3efe7 100%);
                color: #1f2937;
                box-shadow: none;
            }

            .blog-detail-hero h1,
            .blog-detail-hero p,
            .blog-detail-back,
            .blog-detail-back a {
                color: #1f2937;
                text-shadow: none;
            }

            .blog-detail-meta-item {
                background: rgba(255, 255, 255, 0.84);
                border-color: #e5dcc3;
                color: #374151;
            }

            .blog-detail-meta-item i {
                color: #0f766e;
            }

            .blog-detail-container {
                background: #ffffff;
                border-color: #efe7d8;
                box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
            }

            .blog-detail-content {
                color: #334155;
            }

            .blog-detail-content h2,
            .blog-detail-content h3,
            .blog-detail-content h4 {
                color: #1f2937;
            }
        }

        /* ==================== DARK MODE SUPPORT ==================== */
        @media (prefers-color-scheme: dark) {
            body {
                background: #f6f3eb;
            }

            .blog-detail-container {
                background: #ffffff;
                color: #1f2937;
                border-color: #efe7d8;
            }

            .blog-detail-content {
                color: #334155;
            }

            .blog-detail-content p {
                color: #475569;
            }

            .blog-detail-content h2,
            .blog-detail-content h3,
            .blog-detail-content h4 {
                color: #1f2937;
            }

            .blog-detail-content a {
                color: #0f766e;
                border-bottom-color: #0f766e;
            }

            .blog-detail-content a:hover {
                color: #115e59;
                border-bottom-color: #115e59;
            }

            .blog-detail-content code {
                background: rgba(15, 118, 110, 0.08);
                color: #0f766e;
                border-color: rgba(15, 118, 110, 0.2);
            }

            .blog-detail-content pre {
                background: #f8f4ea;
                color: #1f2937;
                border-color: rgba(15, 118, 110, 0.2);
            }

            .blog-detail-content blockquote {
                color: #475569;
                background: rgba(15, 118, 110, 0.06);
            }

            .blog-detail-footer {
                border-top-color: #e5dcc3;
            }

            .blog-detail-sidebar {
                border-top-color: #e5dcc3;
            }

            .blog-related-card {
                background: linear-gradient(135deg, rgba(15, 118, 110, 0.05) 0%, rgba(21, 128, 61, 0.05) 100%);
                border-color: rgba(15, 118, 110, 0.15);
            }

            .blog-related-card:hover {
                background: linear-gradient(135deg, rgba(15, 118, 110, 0.08) 0%, rgba(21, 128, 61, 0.08) 100%);
                border-color: rgba(15, 118, 110, 0.3);
            }

            .blog-related-card h5 {
                color: #0f766e;
            }
        }

        @media (max-width: 768px) {
            body {
                background: #f6f3eb !important;
            }

            .blog-detail-hero {
                background: linear-gradient(135deg, #f8f5ef 0%, #f3efe7 100%);
                color: #1f2937;
                box-shadow: none;
            }

            .blog-detail-hero h1,
            .blog-detail-hero p,
            .blog-detail-back,
            .blog-detail-back a {
                color: #1f2937;
                text-shadow: none;
            }

            .blog-detail-meta-item {
                background: rgba(255, 255, 255, 0.84);
                border-color: #e5dcc3;
                color: #374151;
            }

            .blog-detail-meta-item i {
                color: #0f766e;
            }

            .blog-detail-container {
                background: #ffffff;
                border-color: #efe7d8;
                box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
            }

            .blog-detail-content {
                color: #334155;
            }

            .blog-detail-content h2,
            .blog-detail-content h3,
            .blog-detail-content h4 {
                color: #1f2937;
            }
        }

        .blog-detail-hero {
            margin: 0 0 28px;
            padding: 52px 20px 42px;
            background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
            color: #172554;
        }

        .blog-detail-hero::before,
        .blog-detail-hero::after {
            pointer-events: none;
        }

        .blog-detail-hero-content {
            position: relative;
            z-index: 1;
            max-width: 900px;
            margin: 0 auto;
        }

        .blog-detail-hero h1 {
            color: #172554;
            font-size: clamp(2rem, 5vw, 3.25rem);
            text-shadow: none;
            animation: none;
        }

        .blog-detail-hero p {
            color: #475569;
            animation: none;
        }

        .blog-detail-back,
        .blog-detail-back a {
            color: #4338ca;
            animation: none;
        }

        .blog-detail-meta {
            animation: none;
        }

        .blog-detail-meta-item {
            background: rgba(255, 255, 255, .8);
            border-color: #dbe3f0;
            color: #334155;
            backdrop-filter: none;
        }

        .blog-detail-meta-item i {
            color: #4f46e5;
        }

        .blog-detail-container {
            max-width: 920px;
            margin: 0 auto 56px;
            overflow: hidden;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            background: #fff;
            box-shadow: 0 10px 32px rgba(15, 23, 42, .08);
            animation: none;
        }

        .blog-detail-featured-image {
            display: block;
            width: 100%;
            max-height: 480px;
            object-fit: cover;
        }

        .blog-detail-audio {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 12px 24px;
            align-items: center;
            padding: 20px clamp(20px, 5vw, 48px);
            border-bottom: 1px solid #e2e8f0;
            background: #f8fafc;
        }

        .blog-detail-audio-label {
            color: #1e293b;
            font-weight: 700;
        }

        .blog-detail-audio-label i {
            margin-right: 6px;
            color: #4f46e5;
        }

        .blog-detail-audio-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
            flex-wrap: wrap;
        }

        .blog-audio-button {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            min-height: 40px;
            padding: 8px 14px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            background: #fff;
            color: #334155;
            font: inherit;
            font-weight: 600;
            cursor: pointer;
        }

        .blog-audio-button:hover:not(:disabled) {
            border-color: #4f46e5;
            color: #3730a3;
        }

        .blog-audio-button:focus-visible {
            outline: 3px solid rgba(79, 70, 229, .35);
            outline-offset: 2px;
        }

        .blog-audio-button:disabled {
            cursor: not-allowed;
            opacity: .55;
        }

        .blog-audio-primary {
            border-color: #4338ca;
            background: #4338ca;
            color: #fff;
        }

        .blog-audio-primary:hover:not(:disabled) {
            background: #3730a3;
            color: #fff;
        }

        .blog-detail-audio-status {
            grid-column: 1 / -1;
            min-height: 1.4em;
            color: #64748b;
            font-size: .9rem;
        }

        .blog-detail-content {
            max-width: 76ch;
            margin: 0 auto;
            padding: clamp(28px, 5vw, 52px);
            color: #293548;
            font-size: 1.08rem;
            line-height: 1.85;
        }

        .blog-detail-content p,
        .blog-detail-content li {
            color: inherit;
            font-size: inherit;
            line-height: inherit;
        }

        .blog-detail-content h2,
        .blog-detail-content h3,
        .blog-detail-content h4 {
            color: #1e293b;
        }

        .blog-detail-content figure {
            margin: 1.75rem 0;
            text-align: center;
        }

        .blog-detail-content figure img {
            width: auto;
            max-width: 100%;
            max-height: 480px;
            margin: 0 auto;
            object-fit: contain;
        }

        .blog-detail-content figcaption {
            margin-top: 9px;
            color: #64748b;
            font-size: .88rem;
            line-height: 1.5;
        }

        .blog-detail-footer,
        .blog-detail-sidebar {
            margin: 0 clamp(20px, 5vw, 52px);
        }

        .blog-detail-footer h2,
        .blog-detail-sidebar h2 {
            color: #1e293b;
            font-size: 1.35rem;
        }

        .blog-share-card-toggle {
            margin-top: 4px;
        }

        .blog-share-card-panel {
            margin-top: 20px;
            padding: clamp(18px, 4vw, 30px);
            border: 1px solid #dbe3f0;
            border-radius: 14px;
            background: #f8fafc;
        }

        .blog-share-card-panel[hidden] {
            display: none;
        }

        .blog-share-card-heading h3 {
            margin: 0 0 6px;
            color: #1e293b;
            font-size: 1.2rem;
        }

        .blog-share-card-heading p {
            margin: 0 0 18px;
            color: #64748b;
            line-height: 1.55;
        }

        .blog-share-card-editor {
            display: grid;
            gap: 8px;
            margin-bottom: 18px;
        }

        .blog-share-card-editor label {
            margin-top: 6px;
            color: #334155;
            font-size: .92rem;
            font-weight: 700;
        }

        .blog-share-card-editor input,
        .blog-share-card-editor textarea {
            width: 100%;
            padding: 11px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            background: #fff;
            color: #1e293b;
            font: inherit;
            line-height: 1.5;
        }

        .blog-share-card-editor input:focus,
        .blog-share-card-editor textarea:focus {
            border-color: #4f46e5;
            outline: 3px solid rgba(79, 70, 229, .16);
        }

        .blog-share-card-preview-wrap {
            overflow: hidden;
            margin-bottom: 16px;
            border: 1px solid #cbd5e1;
            border-radius: 10px;
            background: #e2e8f0;
        }

        #blog-share-card-preview {
            display: block;
            width: 100%;
            height: auto;
        }

        .blog-share-card-actions {
            display: flex;
            gap: 9px;
            flex-wrap: wrap;
        }

        .blog-share-card-status {
            min-height: 1.4em;
            margin: 14px 0 0;
            color: #475569;
            font-size: .92rem;
        }

        .blog-detail-sidebar h3 {
            padding-left: 0;
            color: #3730a3;
            font-size: 1.1rem;
        }

        @media (max-width: 640px) {
            .blog-detail-hero {
                padding: 36px 16px 30px;
            }

            .blog-detail-container {
                margin: 0 12px 36px;
                border-radius: 12px;
            }

            .blog-detail-audio {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .blog-detail-audio-actions {
                justify-content: flex-start;
            }

            .blog-detail-content {
                font-size: 1rem;
            }
        }