 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
        --primary: #6366f1;
        --secondary: #ec4899;
        --dark: #ffffff;              /* White background */
        --dark-lighter: #f8fafc;      /* Light gray background */
        --text: #0f172a;              /* Dark text */
        --text-soft: #64748b;         /* Medium gray text */
        --gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    }

        body {
        font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        background: #f1f5f9;          /* Light background */
        color: var(--text);
        overflow-x: hidden;
    }

        h1, h2, h3 {
            font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 20px;
        }

        /* NAVBAR */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px 20px;
            position: sticky;
            top: 0;
            background: rgba(255, 255, 255, 0.95);  
            backdrop-filter: blur(10px);
            z-index: 1000;
            border-bottom: 1px solid rgba(99, 102, 241, 0.15);
            animation: slideDown 0.5s ease;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .logo {
            font-size: 35px;
            font-weight: 800;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-links {
            display: flex;
            gap: 35px;
            list-style: none;
            flex-wrap: wrap;
        }

        .nav-links a {
            color: var(--text);
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary);
        }

        /* HERO SECTION */
        .blog-hero {
            text-align: center;
            padding: 120px 20px 60px;
            position: relative;
            overflow: hidden;
        }

        .blog-hero::before {
            content: '';
            position: absolute;
            top: -50%;
            left: 50%;
            transform: translateX(-50%);
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
            pointer-events: none;
            animation: pulse 4s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
            50% { transform: translateX(-50%) scale(1.1); opacity: 0.8; }
        }

        .blog-hero h1 {
            font-size: 56px;
            font-weight: 800;
            margin-bottom: 20px;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: fadeInUp 0.8s ease;
            position: relative;
            z-index: 1;
        }

        .blog-hero p {
            font-size: 20px;
            color: var(--text-soft);
            max-width: 600px;
            margin: 0 auto;
            animation: fadeInUp 0.8s ease 0.2s backwards;
            position: relative;
            z-index: 1;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* BLOG CONTROLS */
        .blog-controls {
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 20px;
        }

        .categories {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 30px;
        }

        .category-btn {
            padding: 12px 28px;
            background: var(--dark-lighter);
            border: 1px solid rgba(99, 102, 241, 0.2);
            color: var(--text);
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .category-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--gradient);
            transition: left 0.3s ease;
            z-index: -1;
        }

        .category-btn:hover::before,
        .category-btn.active::before {
            left: 0;
        }

        .category-btn:hover,
        .category-btn.active {
            border-color: transparent;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
        }

        .search-wrapper {
            max-width: 500px;
            margin: 0 auto;
            position: relative;
        }

        .search-wrapper i {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-soft);
            font-size: 18px;
        }

        #blogSearch {
            width: 100%;
            padding: 16px 20px 16px 55px;
            background: var(--dark-lighter);
            border: 1px solid rgba(99, 102, 241, 0.2);
            border-radius: 50px;
            color: var(--text);
            font-size: 15px;
            transition: all 0.3s ease;
        }

        #blogSearch:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
        }

        #blogSearch::placeholder {
            color: var(--text-soft);
        }

        /* BLOG GRID */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 35px;
            max-width: 1200px;
            margin: 60px auto 100px;
            padding: 0 20px;
        }

        .blog-post {
            background: var(--dark-lighter);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.4s ease;
            border: 1px solid rgba(99, 102, 241, 0.2);
            cursor: pointer;
            animation: fadeInUp 0.6s ease backwards;
        }

        .blog-post:nth-child(1) { animation-delay: 0.1s; }
        .blog-post:nth-child(2) { animation-delay: 0.2s; }
        .blog-post:nth-child(3) { animation-delay: 0.3s; }
        .blog-post:nth-child(4) { animation-delay: 0.4s; }

        .blog-post:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
            border-color: rgba(99, 102, 241, 0.3);
        }

        .blog-post-img {
            width: 100%;
            height: 250px;
            overflow: hidden;
            position: relative;
        }

        .blog-post-img::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
        }

        .blog-post-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .blog-post:hover .blog-post-img img {
            transform: scale(1.1);
        }

        .blog-post-content {
            padding: 30px;
        }

        .blog-category-tag {
            display: inline-block;
            padding: 6px 16px;
            background: rgba(99, 102, 241, 0.15);
            border: 1px solid rgba(99, 102, 241, 0.3);
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .blog-post h3 {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--text);
            line-height: 1.4;
        }

        .blog-post p {
            color: var(--text-soft);
            line-height: 1.7;
            margin-bottom: 25px;
            font-size: 15px;
        }

        .btn {
            display: inline-block;
            background: var(--gradient);
            color: white;
            text-decoration: none;
            padding: 12px 30px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 50px;
            transition: all 0.3s ease;
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transition: left 0.5s ease;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
        }

        .no-results {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-soft);
            font-size: 18px;
            display: none;
        }

        .no-results i {
            font-size: 48px;
            margin-bottom: 20px;
            opacity: 0.5;
        }

        /* FOOTER */
        footer {
            background: var(--dark-lighter);
            padding: 40px 20px;
            text-align: center;
            border-top: 1px solid rgba(99, 102, 241, 0.08);
        }

        footer p {
            color: var(--text-soft);
            font-size: 14px;
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .blog-hero h1 {
                font-size: 36px;
            }

            .blog-hero p {
                font-size: 16px;
            }

            .nav-links {
                gap: 15px;
                font-size: 14px;
            }

            .blog-grid {
                grid-template-columns: 1fr;
            }

            .categories {
                gap: 10px;
            }

            .category-btn {
                padding: 10px 20px;
                font-size: 13px;
            }
        }