
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

        :root {
            /* Exact colors from the screenshot */
            --hero-bg: #F4F7FF;
            --body-bg: #ffffff;
            --page-bg: #f8f9fa;
            --text-primary: #1a202c;
            --text-secondary: #4a5568;
            --text-muted: #718096;
            --text-light: #a0aec0;
            --border-light: #e2e8f0;
            --border-medium: #cbd5e0;
            --blue-primary: #7055E8;
            --blue-light: #8A72F0;
            --purple-primary: #7055E8;
            --purple-light: #8A72F0;
            --green-light: #f0fff4;
            --green-border: #68d391;
            --green-text: #2f855a;
            --gradient-hero: linear-gradient(135deg, #8A72F0 0%, #7055E8 100%);
            --gradient-ad: linear-gradient(135deg, #8A72F0 0%, #7055E8 100%);
            --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.03); /* Reduced shadow */
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Reduced shadow */
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04); /* Reduced shadow */
            --box-pattern-color: rgba(128, 90, 213, 0.02); /* Very subtle purple tint */
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: var(--text-primary);
            background-color: var(--page-bg);
            font-size: 16px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
            /* Prevent horizontal scroll */
        }

        /* Reading Progress */
        .reading-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: rgba(49, 130, 206, 0.1);
            z-index: 1000;
        }

        .reading-progress-bar {
            height: 100%;
            background: var(--blue-primary);
            width: 0%;
            transition: width 0.25s ease-out;
        }

        /* Container */
        .blog-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            width: 100%;
        }

        /* Hero Section - 50/50 Layout */
        .hero-wrapper {
            background-color: var(--hero-bg);
            padding: 48px 0 64px 0;
            overflow: hidden; /* Changed from overflow-x: hidden to overflow: hidden */
            position: relative; /* Added for pseudo-element positioning */
        }

        /* Hero Background Pattern */
        .hero-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(to right, var(--box-pattern-color) 1px, transparent 1px),
                linear-gradient(to bottom, var(--box-pattern-color) 1px, transparent 1px);
            background-size: 40px 40px; /* Increased size for larger, less dense boxes */
            z-index: 0; /* Ensure it's behind content */
        }

        .hero-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            /* 50/50 split */
            gap: 48px;
            align-items: flex-start;
            width: 100%;
            position: relative; /* Ensure content is above pseudo-element */
            z-index: 1; /* Ensure content is above pseudo-element */
        }

        /* Breadcrumb */
        .breadcrumb-nav {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 32px;
            font-size: 14px;
            color: var(--text-muted);
            font-weight: 400;
            flex-wrap: wrap;
        }

        .breadcrumb-nav a {
            color: var(--text-muted);
            /* Muted color for links */
            text-decoration: none;
            transition: color 0.15s ease;
        }

        .breadcrumb-nav a:hover {
            color: var(--blue-primary);
            /* Primary blue on hover */
        }

        .breadcrumb-separator {
            color: var(--text-light);
            /* Light grey for separator */
            font-size: 12px;
        }

        /* Hero Title */
        .hero-text h1 {
            font-size: 40px;
            font-weight: 500;
            /* Changed from 800 to 500 */
            line-height: 1.1;
            color: var(--text-primary);
            margin-bottom: 20px;
            letter-spacing: -0.025em;
            word-wrap: break-word;
        }

        /* Hero Description */
        .hero-description {
            font-size: 18px;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 40px;
            font-weight: 200 !important; /* Changed to font-weight 200 and added !important */
        }

        /* Author Info */
        .author-info {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .author-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--gradient-hero);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 14px;
            flex-shrink: 0;
        }

        .author-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }

        .author-details h4 {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 2px;
            line-height: 1.2;
        }

        .author-details p {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 400;
            line-height: 1.2;
        }

        /* Hero Image Card - Increased height */
        .hero-image-card {
            background: var(--body-bg);
            border-radius: 12px;
            padding: 12px;
            box-shadow: none; /* Removed shadow */
            border: none; /* Removed border */
            width: 100%;
            min-width: 0;
        }

        .featured-image-container {
            background: var(--gradient-hero);
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            color: white;
            min-height: 320px;
            /* Increased from 240px */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .featured-image-container h2 {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 8px;
            letter-spacing: -0.025em;
        }

        .featured-image-container p {
            font-size: 18px;
            opacity: 0.9;
            font-weight: 500;
        }

        .featured-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 4px;
            position: absolute;
            top: 0;
            left: 0;
        }

        /* Main Layout */
        .main-layout {
            background-color: var(--body-bg);
            padding: 64px 0;
            overflow-x: hidden;
            min-height: 100vh; /* Ensure enough height for sticky to work */
        }

        .content-grid {
            display: grid;
            grid-template-columns: 1fr 320px;
            /* Increased sidebar width from 280px */
            gap: 48px;
            width: 100%;
            align-items: start; /* Crucial for sticky sidebar in grid layout */
            position: relative; /* ADDED: To make it a positioning context for absolute children */
        }

        /* Article Content - Desktop width constraint */
        .article-wrapper {
            width: 100%;
            min-width: 0;
            /* Allow shrinking */
            overflow-x: hidden;
        }

        .article-content {
            font-size: 16px;
            line-height: 1.75;
            color: var(--text-primary);
            max-width: 100%;
            overflow-wrap: break-word;
            word-wrap: break-word;
            /* Desktop: Constrain content width without borders */
            width: 100%;
            max-width: 800px;
            /* Limit content width on desktop */
        }

        /* Typography - All HTML Elements */
        .article-content h1,
        .article-content h2,
        .article-content h3,
        .article-content h4,
        .article-content h5,
        .article-content h6 {
            scroll-margin-top: 100px;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .article-content h1 {
            font-size: 28px;
            /* Decreased */
            font-weight: 700;
            line-height: 1.25;
            margin: 48px 0 24px 0;
            color: var(--text-primary);
            letter-spacing: -0.025em;
        }

        .article-content h2 {
            font-size: 24px;
            /* Decreased */
            font-weight: 700;
            line-height: 1.25;
            margin: 40px 0 20px 0;
            color: var(--text-primary);
            letter-spacing: -0.025em;
        }

        .article-content h3 {
            font-size: 20px;
            /* Decreased */
            font-weight: 600;
            line-height: 1.3;
            margin: 32px 0 16px 0;
            color: var(--text-primary);
            letter-spacing: -0.025em;
        }

        .article-content h4 {
            font-size: 18px;
            /* Decreased */
            font-weight: 600;
            line-height: 1.3;
            margin: 24px 0 12px 0;
            color: var(--text-primary);
        }

        .article-content h5 {
            font-size: 16px;
            /* Decreased */
            font-weight: 600;
            line-height: 1.3;
            margin: 20px 0 10px 0;
            color: var(--text-primary);
        }

        .article-content h6 {
            font-size: 14px;
            /* Decreased */
            font-weight: 600;
            line-height: 1.3;
            margin: 16px 0 8px 0;
            color: var(--text-primary);
        }

        /* Paragraph */
        .article-content p {
            margin-bottom: 20px;
            color: #60646b);
            font-weight: 400;
            word-wrap: break-word;
            overflow-wrap: break-word;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        /* Links */
        .article-content a {
            color: #0070f3;
            /* A common blue for links, similar to Vercel docs */
            text-decoration: underline;
            text-underline-offset: 2px;
            transition: color 0.15s ease, text-decoration-color 0.15s ease;
        }

        .article-content a:hover {
            color: #005bb5;
            /* Darker blue on hover */
            text-decoration-color: #005bb5;
        }

        /* Bold and Strong */
        .article-content b,
        .article-content strong {
            font-weight: 600;
            color: #44474b;
        }

        .article-content strong {
            font-weight: 700;
            /* Semantic strong is bolder */
        }

        /* Italic and Emphasis */
        .article-content i,
        .article-content em {
            font-style: italic;
        }

        .article-content em {
            font-style: italic;
            color: var(--text-secondary);
            /* Semantic emphasis has different color */
        }

        /* Underline */
        .article-content u {
            text-decoration: underline;
            text-decoration-color: var(--blue-primary);
            text-underline-offset: 2px;
        }

        /* Small text */
        .article-content small {
            font-size: 14px;
            color: var(--text-secondary);
        }

        /* Highlighted/marked text */
        .article-content mark {
            background: #fef08a;
            padding: 2px 4px;
            border-radius: 3px;
            color: var(--text-primary);
        }

        /* Deleted/strikethrough text */
        .article-content del {
            text-decoration: line-through;
            color: var(--text-muted);
            opacity: 0.7;
        }

        /* Inserted/underlined text */
        .article-content ins {
            text-decoration: underline;
            background: #dcfce7;
            padding: 2px 4px;
            border-radius: 3px;
            color: var(--green-text);
        }

        /* Subscript and Superscript */
        .article-content sub,
        .article-content sup {
            font-size: 12px;
            line-height: 0;
            position: relative;
            vertical-align: baseline;
        }

        .article-content sub {
            bottom: -0.25em;
        }

        .article-content sup {
            top: -0.5em;
        }

        /* Abbreviation */
        .article-content abbr {
            text-decoration: underline dotted;
            cursor: help;
            border-bottom: 1px dotted var(--text-muted);
        }

        /* Citation */
        .article-content cite {
            font-style: italic;
            color: var(--text-secondary);
        }

        /* Inline code */
        .article-content code {
            background: #f6f8fa;
            /* Light grey background */
            border: none; /* Removed border */
            color: #333;
            /* Darker text color */
            padding: 2px 4px;
            border-radius: 4px;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
            font-size: 13px;
            /* Slightly smaller */
            font-weight: 400;
            /* Not bold */
            word-break: break-all;
            overflow-wrap: break-word;
        }

        /* Preformatted text */
        .article-content pre {
            background: #1a202c;
            color: #e2e8f0;
            padding: 24px;
            border-radius: 8px;
            overflow-x: auto;
            margin: 24px 0;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
            font-size: 14px;
            line-height: 1.5;
            max-width: 100%;
        }

        .article-content pre code {
            background: none;
            color: inherit;
            padding: 0;
            border-radius: 0;
            word-break: normal;
        }
        .article-content blockquote {
          margin: 2rem 0;
          padding: 0;
          font-size: 1.25rem;
          line-height: 1.75;
          color: #111;
          font-family: 'Inter', sans-serif;
          font-weight: 500;
          font-style: normal;
          border: none;
          background: none;
        }
        
        .article-content blockquote p {
          margin: 0;
          position: relative;
          padding-left: 1.2rem;
        }
        
        .article-content blockquote cite {
          display: block;
          margin-top: 0.75rem;
          font-size: 0.875rem;
          color: #555;
          font-style: normal;
        }

        /* Inline quotation */
        .article-content q {
            quotes: '"' '"' "'" "'";
            font-style: italic;
            color: var(--text-secondary);
        }

        .article-content q::before {
            content: open-quote;
        }

        .article-content q::after {
            content: close-quote;
        }

        /* Generic inline container */
        .article-content span {
            /* Inherits parent styles by default */
        }

        /* Line break */
        .article-content br {
            line-height: 1;
        }

        /* Horizontal rule */
        .article-content hr {
            border: none;
            height: 1px;
            background: var(--border-light);
            margin: 32px 0;
        }

        /* Keyboard input */
        .article-content kbd {
            background: #f1f3f4;
            border: none; /* Removed border */
            border-radius: 4px;
            padding: 2px 6px;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
            font-size: 13px;
            color: var(--text-primary);
            box-shadow: none; /* Removed shadow */
        }

        /* Sample output */
        .article-content samp {
            background: #f8f9fa;
            padding: 2px 4px;
            border-radius: 3px;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
            font-size: 14px;
            color: var(--text-secondary);
        }

        /* Variable */
        .article-content var {
            font-style: italic;
            color: var(--purple-primary);
            font-weight: 500;
        }

        /* Date/time */
        .article-content time {
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* Definition */
        .article-content dfn {
            font-style: italic;
            font-weight: 600;
            color: var(--blue-primary);
        }

        /* Table - Mobile responsive */
        .article-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 24px 0;
            border-radius: 8px;
            overflow: hidden;
            font-size: 14px;
            display: block;
            overflow-x: auto;
            white-space: nowrap;
            border: none; /* Removed border from table itself */
        }

        .article-content th {
            background: #f7f8f9;
            padding: 12px 16px;
            text-align: left;
            font-weight: 600;
            color: var(--text-primary);
            border-bottom: 1px solid var(--border-light);
            min-width: 100px;
        }

        .article-content td {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border-light);
            color: var(--text-primary);
            min-width: 100px;
        }

        .article-content tr:last-child td {
            border-bottom: none;
        }

        .article-content tr:nth-child(even) {
            background: #fafafa;
        }

        /* Lists */
        .article-content ul {
            list-style-type: disc;
            /* Explicitly set disc for bullet points */
            margin: 16px 0;
            padding-left: 24px;
            max-width: 100%;
        }

        .article-content li {
            margin: 8px 0;
            color: var(--text-primary);
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .article-content ul li::marker {
            color: var(--text-muted);
            /* Darker grey for bullet points */
        }

        .article-content ol {
            list-style-type: decimal;
            /* Explicitly set decimal for numbered lists */
            margin: 16px 0;
            padding-left: 24px;
            max-width: 100%;
        }

        .article-content ol li::marker {
            color: var(--text-primary);
            /* Darker color for numbers */
            font-weight: 600;
        }

        /* Nested lists */
        .article-content ul ul,
        .article-content ol ol,
        .article-content ul ol,
        .article-content ol ul {
            margin: 8px 0;
            padding-left: 20px;
        }

        /* Images */
        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 24px 0;
            box-shadow: none; /* Removed shadow */
            display: block;
        }

        /* Sidebar - Desktop sticky, only TOC scrollable */
        .sidebar-wrapper {
            width: 100%;
            min-width: 0;
            /* REMOVED: transition: all 0.2s ease-in-out; */
        }

        /* Mobile TOC Toggle */
        .mobile-toc-toggle {
            display: none;
            background: #f7f8f9;
            border-radius: 8px;
            padding: 12px 16px;
            margin-bottom: 24px;
            cursor: pointer;
            font-weight: 500;
            color: var(--text-primary);
            box-shadow: none; /* Removed shadow */
            width: 100%;
            text-align: left;
        }

        .mobile-toc-toggle:hover {
            background: #f7f8f9;
        }

        .mobile-toc-toggle .toggle-icon {
            float: right;
            transition: transform 0.2s ease;
        }

        .mobile-toc-toggle.active .toggle-icon {
            transform: rotate(180deg);
        }

        /* Table of Contents - Increased width */
        .toc-card {
            background: var(--body-bg);
            border-radius: 8px;
            border: none; /* Removed border */
            box-shadow: none; /* Removed shadow */
            margin-bottom: 24px;
            overflow: hidden;
            width: 100%;
        }

        .toc-header {
            padding: 16px 20px;
            background: #fafbfc;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .toc-header::before {
            content: "≡"; /* Fixed unicode character */
            font-size: 16px;
            color: var(--text-muted);
            font-weight: 400;
        }

        .toc-title {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            margin: 0;
        }

        /* Table of Contents - Decreased height */
        .toc-content {
            padding: 16px 0;
            max-height: 280px; /* Increased height by 30px */
            overflow-y: auto; /* Only TOC content is scrollable */
            width: 100%;
        }

        .toc-list {
            list-style: none;
            padding: 0;
            margin: 0;
            width: 100%;
        }

        .toc-item {
            margin: 0;
            width: 100%;
        }

        /* Main TOC Links */
        .toc-link {
            display: block;
            padding: 6px 20px;
            color: var(--blue-primary);
            text-decoration: none;
            font-size: 14px;
            line-height: 1.4;
            font-weight: 500;
            transition: all 0.15s ease;
            word-wrap: break-word;
            overflow-wrap: break-word;
            width: 100%;
        }

        .toc-link:hover {
            color: var(--purple-primary);
            background: rgba(128, 90, 213, 0.05);
        }

        .toc-link.active {
            color: var(--purple-primary);
            background: rgba(128, 90, 213, 0.08);
            font-weight: 600;
        }

        /* Sub TOC Links */
        .toc-link.sub-item {
            color: var(--text-muted);
            font-weight: 400;
            padding-left: 40px;
            font-size: 13px;
        }

        .toc-link.sub-item:hover {
            color: var(--text-secondary);
            background: rgba(74, 85, 104, 0.05);
        }

        .toc-link.sub-item.active {
            color: var(--text-secondary);
            background: rgba(74, 85, 104, 0.08);
            font-weight: 500;
        }

        /* Hide mobile TOC by default */
        .mobile-toc {
            display: none;
        }

        .mobile-toc.mobile-open {
            display: block;
        }

        /* Advertisement */
        .ad-card {
            background: var(--body-bg);
            border-radius: 8px;
            border: none; /* Removed border */
            box-shadow: none; /* Removed shadow */
            padding: 20px;
            text-align: center;
            margin-bottom: 24px;
            width: 100%;
        }

        .ad-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-primary);
        }

        .ad-subtitle {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 16px;
        }

        .ad-button {
            background: var(--gradient-ad);
            color: white;
            padding: 10px 20px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            display: inline-block;
            transition: all 0.15s ease;
        }

        .ad-button:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        /* Newsletter Card */
        .newsletter-card {
            background: var(--body-bg);
            border-radius: 8px;
            border: none; /* Removed border */
            box-shadow: none; /* Removed shadow */
            padding: 20px;
            text-align: center;
            width: 100%;
        }

        .newsletter-card h3 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-primary);
        }

        .newsletter-card p {
            color: var(--text-secondary);
            margin-bottom: 16px;
            font-size: 13px;
            line-height: 1.4;
        }

        .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .newsletter-input {
            padding: 10px 12px;
            border: 1px solid var(--border-medium);
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.15s ease;
            width: 100%;
        }

        .newsletter-input:focus {
            outline: none;
            border-color: var(--blue-primary);
            box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
        }

        .newsletter-button {
            background: var(--gradient-ad);
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.15s ease;
            width: 100%;
        }

        .newsletter-button:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        /* Tags */
        .article-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 32px 0;
            padding: 24px 0;
            border-top: 1px solid var(--border-light);
            max-width: 100%;
        }

        .tag-link {
            background: #f7f8f9;
            color: var(--blue-primary);
            padding: 6px 12px;
            border-radius: 16px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .tag-link:hover {
            background: var(--blue-primary);
            color: white;
        }

        /* Share Section */
        .share-section {
            margin-top: 32px;
            padding: 24px 0;
            border-top: 1px solid var(--border-light);
            max-width: 100%;
        }

        .share-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--text-primary);
        }

        .share-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .share-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .share-btn--facebook {
            background: #1877f2;
            color: white;
        }

        .share-btn--twitter {
            background: #1da1f2;
            color: white;
        }

        .share-btn--linkedin {
            background: #0077b5;
            color: white;
        }

        .share-btn--email {
            background: var(--text-primary);
            color: white;
        }

        .share-btn:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        /* Custom scrollbar for TOC */
        .toc-content::-webkit-scrollbar {
            width: 6px;
            /* Increased from 4px */
        }

        .toc-content::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .toc-content::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }

        .toc-content::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
        }

        /* Mobile Responsive Styles */
        @media (max-width: 1024px) {
            .hero-content {
                grid-template-columns: 1fr;
                gap: 32px;
            }

            .hero-image-card {
                order: -1;
                /* Move image to top on tablet */
            }

            .content-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }

            .sidebar-wrapper {
                position: static;
                order: 1;
                max-height: none;
            }

            .article-wrapper {
                order: 2;
            }

            .article-content {
                max-width: 100%;
                /* Full width on tablet */
            }
        }

        @media (max-width: 768px) {
            .blog-container {
                padding: 0 16px;
            }

            .hero-wrapper {
                padding: 24px 0 32px 0;
            }

            .hero-content {
                gap: 24px;
            }

            .hero-text h1 {
                font-size: 28px;
                margin-bottom: 16px;
            }

            .hero-description {
                font-size: 16px;
                margin-bottom: 24px;
            }

            .hero-image-card {
                padding: 8px;
                /* Further reduced for mobile */
            }

            .featured-image-container {
                padding: 16px;
                /* Further reduced for mobile */
                min-height: 240px;
                /* Adjusted for mobile */
            }

            .featured-image-container h2 {
                font-size: 24px;
            }

            .featured-image-container p {
                font-size: 16px;
            }

            .main-layout {
                padding: 32px 0;
            }

            .content-grid {
                gap: 24px;
            }

            /* Show mobile TOC toggle */
            .mobile-toc-toggle {
                display: block;
            }

            /* Mobile sidebar order */
            .sidebar-wrapper {
                order: 2;
                position: static;
            }

            .article-wrapper {
                order: 1;
            }

            .article-content {
                max-width: 100%;
                font-size: 15px;
            }

            /* Typography adjustments for mobile */
            .article-content h1 {
                font-size: 24px;
                margin: 32px 0 16px 0;
            }

            .article-content h2 {
                font-size: 22px;
                margin: 28px 0 14px 0;
            }

            .article-content h3 {
                font-size: 20px;
                margin: 24px 0 12px 0;
            }

            .article-content h4 {
                font-size: 18px;
                margin: 20px 0 10px 0;
            }

            .share-buttons {
                flex-direction: column;
                gap: 8px;
            }

            .share-btn {
                justify-content: center;
            }

            /* Mobile table responsiveness */
            .article-content table {
                font-size: 12px;
                display: block;
                overflow-x: auto;
                white-space: nowrap;
                -webkit-overflow-scrolling: touch;
            }

            .article-content th,
            .article-content td {
                padding: 8px 12px;
                min-width: 80px;
            }

            /* Prevent code blocks from overflowing */
            .article-content pre {
                padding: 16px;
                font-size: 12px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .article-content code {
                font-size: 12px;
                word-break: break-all;
            }
        }

        @media (max-width: 480px) {
            .blog-container {
                padding: 0 12px;
            }

            .hero-wrapper {
                padding: 20px 0 24px 0;
            }

            .hero-text h1 {
                font-size: 24px;
            }

            .hero-description {
                font-size: 15px;
            }

            .hero-image-card {
                padding: 6px;
                /* Minimal padding for small screens */
            }

            .featured-image-container {
                padding: 12px;
                /* Minimal padding for small screens */
                min-height: 180px;
                /* Adjusted for small mobile */
            }

            .featured-image-container h2 {
                font-size: 20px;
            }

            .featured-image-container p {
                font-size: 14px;
            }

            .main-layout {
                padding: 24px 0;
            }

            .article-content {
                font-size: 14px;
            }

            .article-content h1 {
                font-size: 22px;
            }

            .article-content h2 {
                font-size: 20px;
            }

            .article-content h3 {
                font-size: 18px;
            }

            .newsletter-form {
                gap: 8px;
            }

            .toc-content {
                max-height: 300px;
            }

            /* Smaller buttons on mobile */
            .ad-button,
            .newsletter-button {
                padding: 8px 16px;
                font-size: 13px;
            }

            .share-btn {
                padding: 8px 12px;
                font-size: 13px;
            }

            /* Extra small table handling */
            .article-content table {
                font-size: 11px;
            }

            .article-content th,
            .article-content td {
                padding: 6px 8px;
                min-width: 60px;
            }

            .blog-container {
            padding: 20px;
            }
            .breadcrumb-nav {
                display: none;
            }
        }
