 /* ---------- RESET & BASE (mobile first) ---------- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
            line-height: 1.6;
            color: #222;
            background-color: #fafafa;
            padding: 1rem;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* main container – max width for large screens */
        .wrapper {
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            flex: 1;
        }

        /* ---------- TYPOGRAPHY & SPACING (fluid) ---------- */
        h1 {
            font-size: clamp(2rem, 8vw, 3.5rem);
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 1.2;
        }

        h2 {
            font-size: clamp(1.5rem, 5vw, 2.2rem);
            margin-bottom: 1rem;
            font-weight: 600;
        }

        h3 {
            font-size: 1.4rem;
            font-weight: 600;
        }

        p {
            margin-bottom: 1.2rem;
            font-size: 1rem;
            color: #333;
        }

        /* subtle separator */
        hr {
            border: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
            margin: 2rem 0;
        }

        /* ---------- HEADER / NAV (adaptive) ---------- */
        .blog-header {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 0;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid #eaeaea;
        }

        .logo a {
            text-decoration: none;
            font-weight: 700;
            font-size: 1.8rem;
            color: #111;
            letter-spacing: -0.02em;
        }

        .logo span {
            color: #3b82f6;
        }

        /* adaptive navigation – stack on small screens */
        .nav-links {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem 1.5rem;
            margin-top: 0.5rem;
        }

        .nav-links a {
            text-decoration: none;
            color: #444;
            font-weight: 500;
            font-size: 1.1rem;
            transition: color 0.2s;
            padding: 0.2rem 0;
            border-bottom: 2px solid transparent;
        }

        .nav-links a:hover {
            color: #3b82f6;
            border-bottom-color: #3b82f6;
        }

        /* ---------- HERO / featured post (responsive) ---------- */
        .featured {
            background: #f0f4ff;
            border-radius: 32px;
            padding: clamp(1.5rem, 5vw, 3rem);
            margin: 2rem 0 3rem 0;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            border: 1px solid rgba(59,130,246,0.2);
        }

        .featured-tag {
            display: inline-block;
            background: #3b82f6;
            color: white;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 0.25rem 1rem;
            border-radius: 30px;
            width: fit-content;
        }

        .featured h2 {
            margin-bottom: 0.2rem;
        }

        .featured p {
            font-size: 1.2rem;
            max-width: 80ch;
        }

        .read-more {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            color: #3b82f6;
            font-weight: 600;
            text-decoration: none;
            border-bottom: 1.5px solid transparent;
            transition: border-color 0.2s;
            width: fit-content;
        }

        .read-more:hover {
            border-bottom-color: #3b82f6;
        }

        /* ---------- BLOG GRID – adaptive cards ---------- */
        .post-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            margin: 2rem 0;
        }

        /* tablet breakpoint */
        @media (min-width: 640px) {
            .post-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* desktop breakpoint */
        @media (min-width: 1024px) {
            .post-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 2.5rem;
            }
        }

        /* card style */
        .post-card {
            background: white;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0,0,0,0.02);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            border: 1px solid #f0f0f0;
            display: flex;
            flex-direction: column;
        }

        .post-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 30px rgba(0,0,0,0.04);
            border-color: #d9e6ff;
        }

        /* card image placeholder (adaptive) */
        .card-img {
            background: #e6eefc;
            height: 180px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #2c5282;
            font-weight: 500;
            font-size: 1.2rem;
            background-image: radial-gradient(circle at 10px 10px, rgba(59,130,246,0.1) 2px, transparent 2px);
            background-size: 20px 20px;
            border-bottom: 1px solid rgba(0,0,0,0.02);
        }

        .card-content {
            padding: 1.5rem 1.2rem 1.8rem 1.2rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .card-meta {
            font-size: 0.9rem;
            color: #6b7280;
            display: flex;
            gap: 1rem;
            margin-bottom: 0.8rem;
            flex-wrap: wrap;
        }

        .card-title {
            font-size: 1.5rem;
            margin-bottom: 0.75rem;
            line-height: 1.3;
        }

        .card-excerpt {
            color: #4b5563;
            margin-bottom: 1.5rem;
        }

        /* tiny inline button */
        .card-link {
            margin-top: auto;
            text-decoration: none;
            font-weight: 600;
            color: #3b82f6;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            border-bottom: 1px solid transparent;
            width: fit-content;
        }

        .card-link:hover {
            border-bottom-color: #3b82f6;
        }

        /* ---------- NEWSLETTER / CTA (fully responsive) ---------- */
        .newsletter {
            background: white;
            border-radius: 28px;
            padding: clamp(2rem, 6vw, 3.5rem);
            margin: 3rem 0 2rem;
            border: 1px solid #e2ecff;
            text-align: center;
        }

        .newsletter p {
            max-width: 550px;
            margin-left: auto;
            margin-right: auto;
            color: #374151;
        }

        .form-row {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1rem;
            margin-top: 2rem;
        }

        .form-row input {
            padding: 1rem 1.2rem;
            font-size: 1rem;
            border: 1px solid #ccc;
            border-radius: 60px;
            flex: 1 1 260px;
            min-width: 240px;
            background: #f9f9f9;
            transition: background 0.2s, border 0.2s;
        }

        .form-row input:focus {
            outline: none;
            border-color: #3b82f6;
            background: white;
        }

        .form-row button {
            background: #3b82f6;
            color: white;
            border: none;
            border-radius: 60px;
            padding: 1rem 2.5rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
            flex: 0 1 auto;
            box-shadow: 0 4px 8px rgba(59,130,246,0.3);
        }

        .form-row button:hover {
            background: #2563eb;
        }

        .form-row button:active {
            transform: scale(0.98);
        }

        /* ---------- FOOTER (adaptive) ---------- */
        .blog-footer {
            margin-top: 4rem;
            padding: 2rem 0 0.5rem 0;
            border-top: 1px solid #eaeaea;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            font-size: 0.95rem;
            color: #6b7280;
        }

        .footer-links {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
        }

        .footer-links a {
            color: #4b5563;
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: #3b82f6;
        }

        /* ---------- UTILITY ---------- */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
        }