.post-hero {
            background: var(--gradient-light);
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }

        .post-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)),
                        url('[[${post.featuredImageUrl}]]') center/cover no-repeat;
            z-index: 0;
        }

        .post-hero-content {
            position: relative;
            z-index: 1;
            color: white;
            max-width: 800px;
            margin: 0 auto;
            padding: 0 20px;
            text-align: center;
        }

        .post-hero .post-category {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 25px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .post-hero h1 {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 25px;
            line-height: 1.2;
            color: white;
        }

        .post-hero .post-meta {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 30px;
            font-size: 1rem;
            opacity: 0.9;
        }

        .post-hero .post-meta span {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .post-hero .post-meta i {
            font-size: 1rem;
        }

        .author-info {
            display: flex;
            align-items: center;
            gap: 15px;
            justify-content: center;
            margin-top: 40px;
            padding-top: 40px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }

        .author-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            overflow: hidden;
            border: 3px solid white;
        }

        .author-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .author-details h4 {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .author-details p {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Blog Post Content */
        .post-content-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 60px 20px;
        }

        .post-content {
            font-size: 1.125rem;
            line-height: 1.8;
            color: var(--darker);
        }

        .post-content h2 {
            font-size: 2rem;
            font-weight: 700;
            margin: 50px 0 20px;
            color: var(--darker);
            line-height: 1.3;
        }

        .post-content h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin: 40px 0 15px;
            color: var(--darker);
        }

        .post-content p {
            margin-bottom: 25px;
        }

        .post-content img {
            max-width: 100%;
            height: auto;
            border-radius: var(--radius);
            margin: 30px 0;
            box-shadow: var(--shadow);
        }

        .post-content blockquote {
            border-left: 4px solid var(--primary);
            padding-left: 25px;
            margin: 40px 0;
            font-style: italic;
            color: var(--secondary);
            font-size: 1.25rem;
            line-height: 1.6;
        }

        .post-content ul, .post-content ol {
            margin-left: 25px;
            margin-bottom: 25px;
        }

        .post-content li {
            margin-bottom: 10px;
        }

        .post-content code {
            background: var(--light);
            padding: 2px 8px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
            font-size: 0.95em;
        }

        .post-content pre {
            background: var(--darker);
            color: white;
            padding: 20px;
            border-radius: var(--radius);
            overflow-x: auto;
            margin: 30px 0;
        }

        .info-box {
            background: rgba(37, 99, 235, 0.05);
            border-left: 4px solid var(--primary);
            padding: 25px;
            margin: 40px 0;
            border-radius: 0 var(--radius) var(--radius) 0;
        }

        .info-box h4 {
            color: var(--primary);
            margin-bottom: 10px;
            font-weight: 600;
        }

        /* Post Tags */
        .post-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 50px;
            padding-top: 30px;
            border-top: 1px solid var(--light);
        }

        .post-tags a {
            display: inline-block;
            background: var(--light);
            color: var(--secondary);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            text-decoration: none;
            transition: var(--transition);
        }

        .post-tags a:hover {
            background: var(--primary);
            color: white;
        }

        /* Share Buttons */
        .share-section {
            background: var(--light);
            padding: 40px;
            border-radius: var(--radius);
            margin: 50px 0;
            text-align: center;
        }

        .share-section h3 {
            font-size: 1.3rem;
            margin-bottom: 25px;
            color: var(--darker);
        }

        .share-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .share-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 24px;
            border-radius: var(--radius);
            color: white;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            min-width: 140px;
            justify-content: center;
        }

        .share-btn.facebook {
            background: #1877F2;
        }

        .share-btn.twitter {
            background: #1DA1F2;
        }

        .share-btn.linkedin {
            background: #0A66C2;
        }

        .share-btn.whatsapp {
            background: #25D366;
        }

        .share-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }

        /* Related Posts */
        .related-posts {
            padding: 60px 0;
            background: var(--light);
        }

        .related-posts h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 40px;
            text-align: center;
            color: var(--darker);
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .related-card {
            background: white;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .related-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .related-card img {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }

        .related-card-content {
            padding: 25px;
        }

        .related-card h3 {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .related-card h3 a {
            color: var(--darker);
            text-decoration: none;
        }

        .related-card h3 a:hover {
            color: var(--primary);
        }

        .related-card .post-meta {
            font-size: 0.85rem;
            color: var(--secondary-light);
        }

        /* Comments Section */
        .comments-section {
            max-width: 800px;
            margin: 60px auto;
            padding: 0 20px;
        }

        .comments-section h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 40px;
            color: var(--darker);
        }

        .comment-form {
            background: var(--light);
            padding: 40px;
            border-radius: var(--radius);
            margin-bottom: 50px;
        }

        .comment-form h3 {
            font-size: 1.3rem;
            margin-bottom: 25px;
            color: var(--darker);
        }

        .comment-form .form-group {
            margin-bottom: 20px;
        }

        .comment-form label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--secondary);
        }

        .comment-form input,
        .comment-form textarea {
            width: 100%;
            padding: 14px;
            border: 2px solid var(--light);
            border-radius: var(--radius);
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            transition: var(--transition);
        }

        .comment-form input:focus,
        .comment-form textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .comment-form textarea {
            min-height: 150px;
            resize: vertical;
        }

        /* Breadcrumb */
        .breadcrumb {
            padding: 20px 0;
            font-size: 0.9rem;
            color: var(--secondary);
            background: white;
            border-bottom: 1px solid var(--light);
        }

        .breadcrumb a {
            color: var(--secondary);
            text-decoration: none;
            transition: var(--transition);
        }

        .breadcrumb a:hover {
            color: var(--primary);
        }

        .breadcrumb span {
            margin: 0 8px;
        }

        /* Table of Contents */
        .toc-container {
            position: sticky;
            top: 100px;
            max-height: calc(100vh - 120px);
            overflow-y: auto;
            background: white;
            padding: 25px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            border: 1px solid var(--light);
            margin-bottom: 40px;
        }

        .toc-container h3 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            color: var(--darker);
            padding-bottom: 10px;
            border-bottom: 2px solid var(--light);
        }

        .toc-list {
            list-style: none;
        }

        .toc-list li {
            margin-bottom: 10px;
        }

        .toc-list a {
            color: var(--secondary);
            text-decoration: none;
            display: block;
            padding: 8px 0;
            transition: var(--transition);
            border-left: 3px solid transparent;
            padding-left: 15px;
        }

        .toc-list a:hover,
        .toc-list a.active {
            color: var(--primary);
            border-left-color: var(--primary);
            background: rgba(37, 99, 235, 0.05);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .post-hero h1 {
                font-size: 2.2rem;
            }

            .post-hero .post-meta {
                flex-direction: column;
                gap: 15px;
            }

            .post-content-container {
                padding: 40px 15px;
            }

            .post-content h2 {
                font-size: 1.7rem;
            }

            .post-content h3 {
                font-size: 1.3rem;
            }

            .share-buttons {
                flex-direction: column;
                align-items: stretch;
            }

            .share-btn {
                min-width: auto;
            }

            .related-grid {
                grid-template-columns: 1fr;
            }

            .comment-form {
                padding: 30px 20px;
            }
        }

        @media (max-width: 576px) {
            .post-hero h1 {
                font-size: 1.8rem;
            }

            .post-hero {
                padding: 60px 0;
            }

            .post-content {
                font-size: 1rem;
            }
        }

        /* Reading Progress Bar */
        .reading-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--light);
            z-index: 9999;
        }

        .reading-progress-bar {
            height: 100%;
            background: var(--gradient);
            width: 0%;
            transition: width 0.3s ease;
        }

        /* Print Styles */
        @media print {
            .post-hero::before {
                display: none;
            }

            .post-hero {
                background: white !important;
                color: black !important;
                padding: 20px 0 !important;
            }

            .post-hero h1,
            .post-hero .post-meta,
            .post-hero .post-category {
                color: black !important;
            }

            .share-section,
            .related-posts,
            .comments-section,
            .toc-container {
                display: none;
            }

            .post-content {
                font-size: 12pt;
                line-height: 1.6;
            }
        }
        /* ===== RESPONSIVE DESIGN FOR BLOG POST PAGE ===== */

/* Tablet Devices (768px to 1023px) */
@media (max-width: 1023px) {
    .post-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .post-hero h1 {
        font-size: 2.5rem !important;
    }

    .post-content h2 {
        font-size: 1.8rem !important;
    }

    .post-content h3 {
        font-size: 1.4rem !important;
    }

    .toc-container {
        position: static !important;
        max-height: none !important;
        margin-bottom: 30px !important;
    }

    .mobile-toc {
        display: block !important;
        margin-bottom: 30px !important;
    }

    #tableOfContents {
        display: none !important;
    }

    .author-info {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .post-meta {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }
}

/* Large Mobile Devices (576px to 767px) */
@media (max-width: 767px) {
    .post-hero {
        padding: 60px 0 !important;
    }

    .post-hero h1 {
        font-size: 2rem !important;
        margin-bottom: 20px !important;
    }

    .post-hero .post-category {
        margin-bottom: 20px !important;
        padding: 6px 16px !important;
        font-size: 0.8rem !important;
    }

    .post-hero .post-meta {
        font-size: 0.9rem !important;
        gap: 10px !important;
    }

    .post-content-container {
        padding: 40px 15px !important;
    }

    .post-content {
        font-size: 1.05rem !important;
        line-height: 1.7 !important;
    }

    .post-content h2 {
        font-size: 1.6rem !important;
        margin: 40px 0 15px !important;
    }

    .post-content h3 {
        font-size: 1.3rem !important;
        margin: 30px 0 12px !important;
    }

    .post-content p {
        margin-bottom: 20px !important;
    }

    .post-content img {
        margin: 20px 0 !important;
    }

    .post-content blockquote {
        padding-left: 20px !important;
        margin: 30px 0 !important;
        font-size: 1.1rem !important;
    }

    .info-box {
        padding: 20px !important;
        margin: 30px 0 !important;
    }

    .share-section {
        padding: 30px 20px !important;
        margin: 40px 0 !important;
    }

    .share-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .share-btn {
        width: 100% !important;
        min-width: auto !important;
        justify-content: center !important;
    }

    .comments-section {
        margin: 40px auto !important;
    }

    .comment-form {
        padding: 25px 20px !important;
    }

    .related-posts {
        padding: 40px 0 !important;
    }

    .related-posts h2 {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }

    .breadcrumb {
        padding: 15px 0 !important;
        font-size: 0.85rem !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .breadcrumb span {
        margin: 0 6px !important;
    }

    .reading-progress {
        height: 3px !important;
    }
}

/* Small Mobile Devices (up to 575px) */
@media (max-width: 575px) {
    .post-hero h1 {
        font-size: 1.7rem !important;
    }

    .post-hero .post-meta {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .post-content {
        font-size: 1rem !important;
    }

    .post-content h2 {
        font-size: 1.4rem !important;
    }

    .post-content h3 {
        font-size: 1.2rem !important;
    }

    .post-tags {
        gap: 8px !important;
    }

    .post-tags a {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
    }

    .related-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .related-card-content {
        padding: 20px !important;
    }

    .related-card h3 {
        font-size: 1.1rem !important;
    }

    .cta-section h2 {
        font-size: 1.8rem !important;
    }

    .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }

    .cta-button {
        width: 100% !important;
        max-width: 300px !important;
        text-align: center !important;
    }

    /* Sidebar adjustments for mobile */
    .post-sidebar .sidebar-section {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }

    .post-sidebar .author-avatar {
        width: 60px !important;
        height: 60px !important;
    }

    .post-sidebar h3 {
        font-size: 1.1rem !important;
    }

    .related-sidebar-item {
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
    }
}

/* Extra Small Devices (up to 375px) */
@media (max-width: 375px) {
    .post-hero h1 {
        font-size: 1.5rem !important;
    }

    .post-content h2 {
        font-size: 1.3rem !important;
    }

    .post-content h3 {
        font-size: 1.1rem !important;
    }

    .post-meta span {
        font-size: 0.85rem !important;
    }

    .share-btn {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
    }

    .comment-form input,
    .comment-form textarea {
        padding: 12px !important;
        font-size: 0.95rem !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Improve touch targets */
    .post-tags a,
    .share-btn,
    .cta-button,
    .pagination-btn {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Remove hover effects for touch devices */
    .post-card:hover,
    .related-card:hover {
        transform: none !important;
    }

    /* Improve form inputs for touch */
    .comment-form input,
    .comment-form textarea,
    .newsletter-form input {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .post-hero::before {
        background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)),
                    url('[[${post.featuredImageUrl}]]') center/cover no-repeat;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Optimization */
@media print {
    .post-layout {
        display: block !important;
    }

    .post-sidebar,
    .share-section,
    .comments-section,
    .related-posts,
    .cta-section,
    .breadcrumb,
    .reading-progress {
        display: none !important;
    }

    .post-hero {
        background: white !important;
        padding: 20px 0 !important;
    }

    .post-hero::before {
        display: none !important;
    }

    .post-hero h1,
    .post-hero .post-meta,
    .post-hero .post-category,
    .author-info {
        color: black !important;
    }

    .post-content-container {
        padding: 0 !important;
    }

    .post-content {
        font-size: 12pt !important;
        line-height: 1.6 !important;
        color: black !important;
    }

    .post-content h2 {
        font-size: 16pt !important;
        margin: 30pt 0 15pt !important;
    }

    .post-content h3 {
        font-size: 14pt !important;
        margin: 25pt 0 12pt !important;
    }

    .post-content a {
        color: black !important;
        text-decoration: underline !important;
    }

    .post-content a:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* Landscape Mode for Tablets and Mobiles */
@media (max-width: 1023px) and (orientation: landscape) {
    .post-hero {
        padding: 40px 0 !important;
        min-height: auto !important;
    }

    .post-hero h1 {
        font-size: 2rem !important;
    }

    .post-content-container {
        padding: 30px 15px !important;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .post-content {
        color: #e2e8f0 !important;
    }

    .post-content h2,
    .post-content h3 {
        color: #f1f5f9 !important;
    }

    .post-content code {
        background: #334155 !important;
        color: #cbd5e1 !important;
    }

    .post-content pre {
        background: #1e293b !important;
    }

    .info-box {
        background: rgba(37, 99, 235, 0.1) !important;
    }

    .post-sidebar .sidebar-section {
        background: #1e293b !important;
        color: #e2e8f0 !important;
    }

    .post-sidebar h3,
    .post-sidebar h4 {
        color: #f1f5f9 !important;
    }
}

/* Accessibility Improvements for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reading-progress-bar,
    .post-card,
    .share-btn,
    .cta-button {
        transition: none !important;
    }

    .post-card:hover,
    .related-card:hover {
        transform: none !important;
    }
}

/* Container Queries for Component-based Responsiveness */
@container (max-width: 600px) {
    .post-content-wrapper {
        /* Styles for narrow containers */
    }
}

/* Font Size Adjustments for Very Large Screens */
@media (min-width: 1600px) {
    .post-content-container {
        max-width: 900px !important;
    }

    .post-content {
        font-size: 1.2rem !important;
        line-height: 1.9 !important;
    }

    .post-content h2 {
        font-size: 2.3rem !important;
    }

    .post-content h3 {
        font-size: 1.8rem !important;
    }
}

/* Utility Classes for Responsive Text */
.responsive-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: clamp(1.5, 2vw, 1.8);
}

.responsive-heading {
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.2;
}

/* Responsive Image Containers */
.responsive-image {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.responsive-image-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.responsive-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Grid Utilities */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

/* Responsive Spacing */
@media (max-width: 767px) {
    .mobile-spacing {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .mobile-padding {
        padding: 1.5rem !important;
    }
}

/* Hide/Show Elements Based on Screen Size */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

@media (max-width: 767px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* Responsive Navigation for Breadcrumbs */
@media (max-width: 575px) {
    .breadcrumb {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .breadcrumb::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
}

/* Ensure Proper Touch Scrolling */
@media (max-width: 1023px) {
    html {
        -webkit-overflow-scrolling: touch;
    }

    body {
        overflow-x: hidden;
        position: relative;
    }
}

/* Prevent Layout Shifts */
.post-image img,
.featured-image img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Responsive Typography Scale */
:root {
    --fluid-min-width: 320;
    --fluid-max-width: 1200;
    --fluid-min-size: 16;
    --fluid-max-size: 18;

    --fluid-screen: 100vw;
    --fluid-bp: calc(
        (var(--fluid-screen) - var(--fluid-min-width) / 16 * 1rem) /
        (var(--fluid-max-width) - var(--fluid-min-width))
    );
}

@media screen and (min-width: 1200px) {
    :root {
        --fluid-screen: calc(var(--fluid-max-width) * 1px);
    }
}

/* Responsive Font Sizes */
.responsive-font {
    font-size: clamp(
        var(--fluid-min-size) * 1px,
        calc(
            var(--fluid-min-size) * 1px +
            (var(--fluid-max-size) - var(--fluid-min-size)) *
            var(--fluid-bp) *
            1
        ),
        var(--fluid-max-size) * 1px
    );
}