/* ==================== DESIGN TOKENS ==================== */
        :root {
            --primary: #6f42c1;
            --primary-light: #e8d9f7;
            --primary-dark: #4a2a7f;

            --secondary: #0d6efd;
            --secondary-light: #cfe2ff;

            --accent: #0dcaf0;
            --accent-light: #cff4fc;

            --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(13, 148, 136, 0.05) 0%, rgba(0, 0, 0, 0.05) 100%);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #6f42c1 0%, #0d6efd 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, #5a3ba8 0%, #0dcaf0 100%);
            background-clip: content-box;
        }

        /* Firefox scrollbar */
        * {
            scrollbar-color: #6f42c1 rgba(111, 66, 193, 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, #6f42c1 0%, #0d6efd 50%, #0dcaf0 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(13, 148, 136, 0.05);
            padding: 20px;
            border-radius: var(--radius-md);
        }

        .blog-detail-content code {
            background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%);
            padding: 4px 8px;
            border-radius: 3px;
            font-family: 'Courier New', monospace;
            color: var(--primary);
            font-weight: 600;
            border: 1px solid rgba(13, 148, 136, 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(13, 148, 136, 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, #6f42c1 0%, #0d6efd 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, #0d6efd 0%, #0dcaf0 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(13, 148, 136, 0.05) 0%, rgba(8, 145, 178, 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(13, 148, 136, 0.1);
        }

        .blog-related-card:hover {
            background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%);
            border-left-color: var(--primary);
            border-color: rgba(13, 148, 136, 0.3);
            transform: translateX(8px);
            box-shadow: 0 5px 15px rgba(13, 148, 136, 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%;
            }
        }

        /* ==================== DARK MODE SUPPORT ==================== */
        @media (prefers-color-scheme: dark) {
            body {
                background: linear-gradient(135deg, #2a1855 0%, #1a0e2e 100%);
            }

            .blog-detail-container {
                background: rgba(25, 15, 40, 0.95);
                color: var(--text-primary);
                border-color: rgba(111, 66, 193, 0.2);
            }

            .blog-detail-content {
                color: #e0e0e0;
            }

            .blog-detail-content p {
                color: #d0d0d0;
            }

            .blog-detail-content h2,
            .blog-detail-content h3,
            .blog-detail-content h4 {
                color: #14b8a6;
            }

            .blog-detail-content a {
                color: #14b8a6;
                border-bottom-color: #14b8a6;
            }

            .blog-detail-content a:hover {
                color: #2dd4bf;
                border-bottom-color: #2dd4bf;
            }

            .blog-detail-content code {
                background: linear-gradient(135deg, rgba(111, 66, 193, 0.2) 0%, rgba(13, 110, 253, 0.2) 100%);
                color: #a78bfa;
                border-color: rgba(111, 66, 193, 0.3);
            }

            .blog-detail-content pre {
                background: linear-gradient(135deg, #2a1855 0%, #1a0e2e 100%);
                color: #e0e0e0;
                border-color: rgba(111, 66, 193, 0.3);
            }

            .blog-detail-content blockquote {
                color: #a0a0a0;
                background: rgba(111, 66, 193, 0.1);
            }

            .blog-detail-footer {
                border-top-color: #444;
            }

            .blog-detail-sidebar {
                border-top-color: #444;
            }

            .blog-related-card {
                background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%);
                border-color: rgba(13, 148, 136, 0.2);
            }

            .blog-related-card:hover {
                background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(8, 145, 178, 0.15) 100%);
                border-color: rgba(13, 148, 136, 0.4);
            }

            .blog-related-card h5 {
                color: #14b8a6;
            }
        }