    /*
     * Force 75% width on "Full HTML" pages
     * like the Material Cost Calculator.
     */
    body .container,
    body div.container,
    body main.container,
    body div.container.mt-4 {
        width: 92% !important;
        max-width: none !important; 
    }

/* Modern CSS Variables matching Index Page */
        :root {
            --primary-color: #6366f1;
            --primary-dark: #4f46e5;
            --secondary-color: #f1f5f9;
            --accent-color: #06b6d4;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --border-color: #e2e8f0;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --danger-color: #ef4444;
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
            --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
            --radius-sm: 0.375rem;
            --radius-md: 0.5rem;
            --radius-lg: 0.75rem;
            --radius-xl: 1rem;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: var(--text-primary);
            background: linear-gradient(160deg, #eef2ff 0%, #f8faff 50%, #f0f7ff 100%);
        }

/* Hero Section for Post View */
.post-hero-section {
    margin-bottom: 0;
}

.post-hero-content {
    position: relative;
    height: 420px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.22),
        0 0 0 1px rgba(255,255,255,0.04);
    background: linear-gradient(135deg, #111040 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
    z-index: 1;
    transform: perspective(1200px) rotateX(1.5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.post-hero-content:hover {
    transform: perspective(1200px) rotateX(0deg);
    box-shadow:
        0 40px 80px rgba(0,0,0,0.28),
        0 0 60px rgba(99,102,241,0.18);
}

/* Fallback background for posts without featured image */
.post-hero-content.no-image {
    background: 
        linear-gradient(135deg, rgba(30, 58, 138, 1) 0%, rgba(30, 64, 175, 1) 50%, rgba(29, 78, 216, 1) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

/* Strong additional overlay at the bottom for maximum text readability */
.post-hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    pointer-events: none;
}

.post-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Strong overlay for better text visibility */
        linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.9) 100%);
    display: flex;
    align-items: end;
    padding: 2rem;
}

.post-hero-text {
    color: white;
    max-width: 95%;
    background: rgba(0,0,0,0.72);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.post-hero-category {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white !important;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* Override for category */
.post-hero-content .post-hero-category {
    color: white !important;
}

.post-hero-title {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff !important;
    /* Strong text shadow for maximum readability */
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.9),
        2px 2px 4px rgba(0,0,0,1),
        1px 1px 2px rgba(0,0,0,1),
        0 0 10px rgba(0,0,0,0.8);
}

/* Override dark theme styles with higher specificity */
.post-hero-content .post-hero-title {
    color: #ffffff !important;
}

.post-hero-excerpt {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 1;
    line-height: 1.5;
    color: #ffffff !important;
    font-weight: 400;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.9),
        1px 1px 2px rgba(0,0,0,1);
}

/* Override dark theme styles for excerpt */
.post-hero-content .post-hero-excerpt {
    color: #ffffff !important;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 1;
    color: #ffffff !important;
    font-weight: 400;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.9),
        1px 1px 2px rgba(0,0,0,1);
}

/* Override dark theme styles for meta */
.post-hero-content .post-hero-meta,
.post-hero-content .post-hero-meta * {
    color: #ffffff !important;
}

/* Comprehensive override for all hero text elements */
.post-hero-text,
.post-hero-text *:not(img):not(svg):not(iframe) {
    color: #ffffff !important;
}

/* Nuclear option: Force all hero overlay text to be white */
.post-hero-overlay h1,
.post-hero-overlay h2, 
.post-hero-overlay h3,
.post-hero-overlay h4,
.post-hero-overlay h5,
.post-hero-overlay h6,
.post-hero-overlay p,
.post-hero-overlay span,
.post-hero-overlay div,
.post-hero-overlay *:not(img):not(svg):not(iframe):not(.post-hero-category) {
    color: #ffffff !important;
}

/* Extra specificity for theme overrides */
body .post-hero-overlay h1,
body .post-hero-overlay h2, 
body .post-hero-overlay h3,
body .post-hero-overlay h4,
body .post-hero-overlay h5,
body .post-hero-overlay h6,
body .post-hero-overlay p,
body .post-hero-overlay span,
body .post-hero-overlay div,
body .post-hero-overlay *:not(img):not(svg):not(iframe):not(.post-hero-category) {
    color: #ffffff !important;
}

/* Ultra-specific override for dark theme h1 rule */
.post-hero-content h1.post-hero-title {
    color: #ffffff !important;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.9),
        2px 2px 4px rgba(0,0,0,1),
        1px 1px 2px rgba(0,0,0,1),
        0 0 10px rgba(0,0,0,0.8) !important;
}

/* Maximum specificity for h1 title - matching exact DOM structure */
.post-hero-content .post-hero-overlay .post-hero-text h1.post-hero-title,
div.post-hero-content div.post-hero-overlay div.post-hero-text h1.post-hero-title {
    color: #ffffff !important;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.9),
        2px 2px 4px rgba(0,0,0,1),
        1px 1px 2px rgba(0,0,0,1),
        0 0 10px rgba(0,0,0,0.8) !important;
}

/* Override CSS variables for hero section */
.post-hero-content {
    --dark-contrast-text: #ffffff !important;
    --dark-readable-text: #ffffff !important;
}

/* Force override with highest specificity */
html body .post-hero-content h1.post-hero-title {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: initial !important;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.9),
        2px 2px 4px rgba(0,0,0,1),
        1px 1px 2px rgba(0,0,0,1),
        0 0 10px rgba(0,0,0,0.8) !important;
}

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

/* Main Post Content */
.post-content-area {
    background: #FAFAFA;
    border-radius: 0 0 12px 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: none;
    margin-top: -2px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.post-content-body {
    font-size: 1.125rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/*
 * SOLUTION: Give a default color to icons in the main content area
 * This targets common Font Awesome classes and applies the site's primary theme color.
 */
.post-content-body .fas,
.post-content-body .fab,
.post-content-body .far,
.post-content-body .fa {
   color: var(--primary-color);
}

.post-content-body h1, .post-content-body h2, .post-content-body h3, 
.post-content-body h4, .post-content-body h5, .post-content-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    word-wrap: break-word;
    max-width: 100%;
}

.post-content-body h1:first-child, .post-content-body h2:first-child, 
.post-content-body h3:first-child, .post-content-body h4:first-child, 
.post-content-body h5:first-child, .post-content-body h6:first-child {
    margin-top: 0;
}

.post-content-body p {
    margin-bottom: 1.2rem;
    word-wrap: break-word;
    max-width: 100%;
}

.post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

.post-content-body table {
    width: 100%;
    margin: 1.5rem 0;
    table-layout: auto;
    word-wrap: break-word;
}

.post-content-body pre, .post-content-body code {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
}

.post-content-body pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    line-height: 1.4;
}

.post-content-body blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}

.post-content-body ul, .post-content-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content-body li {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

/* Container and Column Fixes */
.container {
    max-width: 92% !important;
    padding-left: 15px;
    padding-right: 15px;
    background: transparent;
}

/* Remove any gray background */
body {
    background: white;
}

.row {
    background: transparent;
}

.row {
    --bs-gutter-x: 1.5rem;
}

.post-layout {
    --bs-gutter-x: 2rem;
    align-items: flex-start;
}

@media (min-width: 992px) {
    .post-layout > .col-lg-9 {
        flex: 0 0 auto;
        width: 75%;
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }

    .post-layout > .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }
}

/* Remove gap between hero and content */
.post-hero-section + .row {
    margin-top: 0 !important;
}

.post-hero-section .row:last-child {
    margin-bottom: 0 !important;
}

/* Seamless connection between hero and content */
.post-hero-section .col-lg-8 .post-hero-content {
    margin-bottom: 0;
}

.post-hero-section + .row .col-lg-8 .post-content-area {
    border-top: none;
}

.col-lg-8, .col-lg-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.post-layout > .col-lg-9,
.post-layout > .col-lg-3 {
    margin-top: 0;
}

.post-layout .sidebar .welcome-section {
    transform: none !important;
    margin-bottom: 0;
    border-radius: 20px 20px 0 0;
}

.post-layout .sidebar .welcome-section:hover {
    transform: none !important;
}

/* Inline Table of Contents — inside article, not a floating overlay */
.table-of-contents {
    display: none;
    margin-bottom: 1.75rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-of-contents.is-visible {
    display: block;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border-bottom: 1px solid var(--border-color);
}

.toc-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-toggle {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.toc-toggle:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.toc-content {
    padding: 0.75rem 1rem 1rem;
    max-height: 280px;
    overflow-y: auto;
}

.toc-content.collapsed {
    display: none;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin: 0.2rem 0;
}

.toc-link {
    display: block;
    padding: 0.45rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    line-height: 1.4;
    border-left: 2px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.toc-link:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
    border-left-color: var(--primary-color);
}

.toc-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

.toc-level-3 { margin-left: 0.75rem; }
.toc-level-4 { margin-left: 1.5rem; }
.toc-level-5 { margin-left: 2.25rem; }
.toc-level-6 { margin-left: 3rem; }

/* Ensure no horizontal overflow */
* {
    box-sizing: border-box;
}

.post-content-area * {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Post Meta Badges */
.featured-badge, .sticky-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.sticky-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Post Format Styles */
.post-format-content {
    background: var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Video Post Styles */
.video-embed-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Gallery Post Styles */
.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.gallery-item:hover .gallery-image {
    filter: brightness(1.1);
}

/* Quote Post Styles */
.post-quote {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: none;
    position: relative;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
}

.quote-text {
    position: relative;
    font-style: italic;
    margin-bottom: 1rem;
}

.quote-icon {
    font-size: 1.5rem;
    opacity: 0.7;
    vertical-align: middle;
}

.quote-author {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    opacity: 0.9;
}

/* Link Post Styles */
.link-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.link-preview:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.link-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.external-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: var(--primary-dark);
}

/* Tags Section */
.post-tags-section {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Engagement Section */
.post-engagement-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.engagement-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Enhanced Engagement Buttons */
.post-engagement-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.engagement-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.engagement-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid transparent;
    border-radius: 50px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-width: 140px;
    justify-content: center;
}

.engagement-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.engagement-btn:hover::before {
    left: 100%;
}

.engagement-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.engagement-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.engagement-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.engagement-btn:hover i {
    transform: scale(1.2);
}

.engagement-btn.active i {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Like Button Enhanced */
.like-btn {
    background: linear-gradient(145deg, #ffffff 0%, #fef2f2 100%);
    border: 2px solid #fecaca;
}

.like-btn:hover {
    background: linear-gradient(145deg, #fef2f2 0%, #fecaca 100%);
    border-color: #f87171;
    color: #dc2626;
}

.like-btn.active {
    background: linear-gradient(145deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: white;
    animation: likeAnimation 0.6s ease-in-out;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Bookmark Button Enhanced */
.bookmark-btn {
    background: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%);
    border: 2px solid #fde68a;
}

.bookmark-btn:hover {
    background: linear-gradient(145deg, #fffbeb 0%, #fde68a 100%);
    border-color: #fbbf24;
    color: #d97706;
}

.bookmark-btn.active {
    background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
    border-color: #d97706;
    color: white;
    animation: bookmarkAnimation 0.6s ease-in-out;
}

@keyframes bookmarkAnimation {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Print Button Enhanced */
.print-btn {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
    border: 2px solid #bbf7d0;
}

.print-btn:hover {
    background: linear-gradient(145deg, #f0fdf4 0%, #bbf7d0 100%);
    border-color: #4ade80;
    color: #16a34a;
}

.print-btn:active {
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    border-color: #16a34a;
    color: white;
    transform: translateY(-1px) scale(0.98);
}

/* Count badges */
.like-count,
.bookmark-count {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.like-btn.active .like-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.bookmark-btn.active .bookmark-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .engagement-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .engagement-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1.2rem 2rem;
        font-size: 1rem;
        /* Better touch targets */
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .engagement-btn:active {
        transform: scale(0.98);
    }
    
    .post-engagement-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .engagement-btn {
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .post-engagement-section {
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* Enhanced Modern Sidebar - Matching Index.php */
.sidebar {
    background: rgba(255,255,255,0.84);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 20px;
    padding: 0;
    box-shadow:
        0 16px 44px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.68);
    height: fit-content;
    position: sticky;
    top: 2rem;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.sidebar:hover {
    transform: translateY(-3px);
    box-shadow:
        0 28px 60px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.95);
}

.sidebar-section {
    margin: 0;
    padding: 1.75rem 2rem;
    border-bottom: none;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(168, 85, 247, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.sidebar-section:hover::before {
    opacity: 1;
}

.sidebar-section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.1) 20%, 
        rgba(99, 102, 241, 0.3) 50%, 
        rgba(99, 102, 241, 0.1) 80%, 
        transparent 100%);
}

.sidebar-section > * {
    position: relative;
    z-index: 1;
}

.sidebar-separator {
    display: none;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.sidebar-section:hover .sidebar-title::after {
    width: 50px;
}

/* Enhanced colored icons and accents for sidebar titles */
.sidebar-title i {
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.welcome-section .sidebar-title i {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}
.welcome-section .sidebar-title::after {
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
}

.categories-section .sidebar-title i {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}
.categories-section .sidebar-title::after {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.categories-section:hover .sidebar-title i {
    background: rgba(245, 158, 11, 0.2);
    transform: rotate(5deg) scale(1.1);
}

.author-info-section .sidebar-title i {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}
.author-info-section .sidebar-title::after {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.author-info-section:hover .sidebar-title i {
    background: rgba(59, 130, 246, 0.2);
    transform: rotate(-5deg) scale(1.1);
}

.related-posts-section .sidebar-title i {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}
.related-posts-section .sidebar-title::after {
    background: linear-gradient(90deg, #10b981, #34d399);
}
.related-posts-section:hover .sidebar-title i {
    background: rgba(16, 185, 129, 0.2);
    transform: rotate(-5deg) scale(1.1);
}

.popular-posts-section .sidebar-title i {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}
.popular-posts-section .sidebar-title::after {
    background: linear-gradient(90deg, #ff6b35, #ff8f65);
}
.popular-posts-section:hover .sidebar-title i {
    background: rgba(255, 107, 53, 0.2);
    transform: rotate(5deg) scale(1.1);
}

.tags-cloud-section .sidebar-title i {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}
.tags-cloud-section .sidebar-title::after {
    background: linear-gradient(90deg, #ec4899, #f472b6);
}
.tags-cloud-section:hover .sidebar-title i {
    background: rgba(236, 72, 153, 0.2);
    transform: rotate(5deg) scale(1.1);
}

.featured-posts-section .sidebar-title i {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}
.featured-posts-section .sidebar-title::after {
    background: linear-gradient(90deg, #fbbf24, #fde047);
}
.featured-posts-section:hover .sidebar-title i {
    background: rgba(251, 191, 36, 0.2);
    transform: rotate(5deg) scale(1.1);
}

.newsletter-section .sidebar-title i {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}
.newsletter-section .sidebar-title::after {
    background: linear-gradient(90deg, #10b981, #34d399);
}
.newsletter-section:hover .sidebar-title i {
    background: rgba(16, 185, 129, 0.2);
    transform: rotate(-5deg) scale(1.1);
}

.main-pages-section .sidebar-title i {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}
.main-pages-section .sidebar-title::after {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.main-pages-section:hover .sidebar-title i {
    background: rgba(59, 130, 246, 0.2);
    transform: rotate(-5deg) scale(1.1);
}

.recent-activity-section .sidebar-title i {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}
.recent-activity-section .sidebar-title::after {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}
.recent-activity-section:hover .sidebar-title i {
    background: rgba(139, 92, 246, 0.2);
    transform: rotate(-5deg) scale(1.1);
}

/* Enhanced sidebar items and links */
.sidebar-item {
    padding: 0.875rem 0;
    border-bottom: none;
    position: relative;
    transition: all 0.3s ease;
    text-align: left;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    right: -2rem;
    top: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.sidebar-item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1;
    line-height: 1.4;
    text-align: left;
    justify-content: flex-start;
}

.sidebar-link:hover {
    color: var(--primary-color);
    transform: translateX(8px);
    text-decoration: none;
}

.sidebar-link i {
    font-size: 0.875rem;
    width: 18px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    margin-right: 6px;
    min-width: 25px;
}

.sidebar-link:hover i {
    opacity: 1;
    transform: scale(1.2);
}

.category-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.category-count {
    background: var(--secondary-color);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Welcome Section Styles */
.welcome-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.welcome-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: white;
}

.welcome-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.85;
    color: white;
}

.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-mini-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.stat-mini-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-mini-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    color: white;
}

/* Newsletter Form Styles */
.newsletter-form .form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.newsletter-form .btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
}

.newsletter-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.popular-posts-sidebar {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

.popular-posts-sidebar::-webkit-scrollbar {
    width: 6px;
}

.popular-posts-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.popular-posts-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.popular-posts-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.popular-posts-sidebar h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.popular-post-item {
    display: flex;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.popular-post-content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.popular-post-content h6 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-content h6 a:hover {
    color: #3498db;
}

.popular-post-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.popular-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.categories-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.categories-sidebar h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
    text-decoration: none;
    transform: translateX(5px);
    border-color: #e9ecef;
}

.category-item .badge {
    background-color: #3498db;
    color: white;
}

.our-picks-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.our-picks-sidebar h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .post-hero-section {
        margin-bottom: 0;
    }
    
    .post-hero-content {
        height: 400px;
        border-radius: 12px 12px 0 0;
    }
    
    .post-hero-title {
        font-size: 1.6rem;
    }
    
    .post-hero-excerpt {
        display: none;
    }
    
    .post-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-content-area {
        padding: 2rem;
        margin-top: -1px;
        margin-bottom: 1.5rem;
        border-radius: 0 0 12px 12px;
    }
    
    .post-content-body {
        font-size: 1.05rem;
    }
    
    .popular-posts-sidebar,
    .categories-sidebar,
    .our-picks-sidebar {
        margin-top: 1.5rem;
    }
    
    .popular-posts-sidebar {
        height: 400px;
    }
}

@media (max-width: 767.98px) {
    .post-hero-section {
        margin-bottom: 0;
    }
    
    .post-content-area {
        padding: 1.5rem;
        margin-top: -1px;
        border-radius: 0 0 12px 12px;
    }
    
    .post-content-body {
        font-size: 1rem;
    }
    
    .post-content-body h1, .post-content-body h2, .post-content-body h3, 
    .post-content-body h4, .post-content-body h5, .post-content-body h6 {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .post-hero-content {
        height: 300px;
        border-radius: 8px 8px 0 0;
    }
    
    .post-hero-overlay {
        padding: 1rem;
    }
    
    .post-hero-title {
        font-size: 1.3rem;
    }
    
    .post-content-area {
        padding: 1.25rem;
        border-radius: 0 0 8px 8px;
        margin-top: -1px;
    }
    
    .post-content-body {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .post-content-body h1, .post-content-body h2, .post-content-body h3, 
    .post-content-body h4, .post-content-body h5, .post-content-body h6 {
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .post-content-body p {
        margin-bottom: 1rem;
    }
    
    .post-content-body img {
        margin: 1rem 0;
    }
    
    .post-content-body table {
        font-size: 0.9rem;
        margin: 1rem 0;
    }
    
    .post-content-body pre {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .post-content-body blockquote {
        padding-left: 1rem;
        margin: 1rem 0;
        font-size: 0.95rem;
    }
    
    .post-content-body ul, .post-content-body ol {
        padding-left: 1.5rem;
    }
    
    .popular-posts-sidebar,
    .categories-sidebar,
    .our-picks-sidebar {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .popular-posts-sidebar {
        height: 300px;
    }
}

.social-sharing-section {
                    border-top: 1px solid #eee;
                    border-bottom: 1px solid #eee;
                    padding: 2rem 0;
                    margin: 2rem 0;
                }
                
                .social-sharing-buttons {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 0.75rem;
                }
                
                .btn-social {
                    display: flex;
                    align-items: center;
                    gap: 0.5rem;
                    padding: 0.5rem 1rem;
                    border-radius: 25px;
                    border: none;
                    color: white;
                    font-weight: 500;
                    transition: transform 0.2s ease, box-shadow 0.2s ease;
                    text-decoration: none;
                }
                
                .btn-social:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
                    color: white;
                }
                
                .btn-facebook { background: #3b5998; }
                .btn-twitter { background: #1da1f2; }
                .btn-linkedin { background: #0077b5; }
                .btn-whatsapp { background: #25d366; }
                .btn-copy { background: #6c757d; }
                .btn-email { background: #dc3545; }
                
                @media (max-width: 576px) {
                    .social-sharing-buttons {
                        justify-content: center;
                    }
                    
                    .btn-social span {
                        display: none;
                    }
                    
                    .btn-social {
                        width: 45px;
                        height: 45px;
                        justify-content: center;
                        padding: 0;
                    }
                }

.content-article {
    line-height: 1.8;
    padding: 0;
    margin: 0;
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 20px 0;
}

.content-body h1, .content-body h2, .content-body h3, .content-body h4, .content-body h5, .content-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.content-body table {
    width: 100%;
    margin: 1rem 0;
}

.content-body pre, .content-body code {
    max-width: 100%;
    overflow-x: auto;
}

/* Enhanced styles for collapsible content */
.content-body .accordion-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

.content-body .accordion-button:not(.collapsed) {
    background-color: #e7f3ff;
    color: #0d6efd;
}

.content-body .card {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.content-body .collapse-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-body .collapse-trigger:hover {
    background-color: #f8f9fa;
}

/* Page-specific styles */
.page-title {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.page-meta {
    margin-bottom: 1rem;
}

.page-featured-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.page-tags {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}


/* Mobile Responsive Design - Main content before sidebar */
@media (max-width: 991.98px) {
    .post-layout > .col-lg-9 {
        order: 1;
    }
    
    .post-layout > .col-lg-3 {
        order: 2;
        margin-top: 2rem;
    }
}

/* Mobile Responsive Design for Hero Section */
@media (max-width: 768px) {
    .post-hero-content {
        height: 400px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .post-hero-overlay {
        padding: 1.5rem;
        /* Mobile overlay - strong for better text visibility */
        background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.7) 80%, rgba(0,0,0,0.95) 100%);
    }
    
    .post-hero-text {
        max-width: 90%;
        padding: 1.2rem 1.5rem;
        background: rgba(0,0,0,0.9);
        border: 1px solid rgba(255,255,255,0.25);
    }
    
    .post-hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    }
    
    .post-hero-excerpt {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    }
    
    .post-hero-meta {
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.8rem;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
    }
    
    .post-hero-meta span {
        gap: 0.3rem;
    }
    
    .post-hero-category {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 
            0 3px 8px rgba(243, 156, 18, 0.7),
            0 1px 4px rgba(0,0,0,0.5);
        text-shadow: 
            2px 2px 4px rgba(0,0,0,0.9),
            1px 1px 2px rgba(0,0,0,1);
    }
    
    .featured-badge, .sticky-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        text-shadow: 
            2px 2px 4px rgba(0,0,0,0.8),
            1px 1px 2px rgba(0,0,0,1);
        -webkit-text-stroke: 0.5px rgba(0,0,0,0.3);
    }
}

@media (max-width: 480px) {
    .post-hero-content {
        height: 350px;
    }
    
    .post-hero-overlay {
        padding: 1rem;
        /* Strong overlay for small mobile screens */
        background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.95) 100%);
    }
    
    .post-hero-text {
        padding: 1rem 1.25rem;
        background: rgba(0,0,0,0.95);
        border: 1px solid rgba(255,255,255,0.4);
        max-width: 95%;
    }
    
    .post-hero-title {
        font-size: 1.25rem;
        font-weight: 800;
        text-shadow: 
            3px 3px 6px rgba(0,0,0,1),
            2px 2px 4px rgba(0,0,0,1),
            0 0 12px rgba(0,0,0,1);
        -webkit-text-stroke: 1px rgba(0,0,0,1);
    }
    
    .post-hero-excerpt {
        font-size: 0.85rem;
        text-shadow: 
            2px 2px 4px rgba(0,0,0,1),
            0 0 8px rgba(0,0,0,1);
        -webkit-text-stroke: 0.5px rgba(0,0,0,0.8);
    }
    
    .post-hero-meta {
        gap: 0.75rem;
        font-size: 0.75rem;
        text-shadow: 
            2px 2px 4px rgba(0,0,0,1),
            0 0 6px rgba(0,0,0,1);
        -webkit-text-stroke: 0.5px rgba(0,0,0,0.8);
    }
    
    .post-hero-category {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
        text-shadow: 
            2px 2px 4px rgba(0,0,0,1),
            1px 1px 2px rgba(0,0,0,1);
    }
    
    .featured-badge, .sticky-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.7rem;
        text-shadow: 
            2px 2px 4px rgba(0,0,0,1),
            1px 1px 2px rgba(0,0,0,1);
    }
}

/* Enhanced Mobile Responsive Design for Content Pages */
@media (max-width: 575.98px) {
    .content-body {
        font-size: 1rem;
        padding: 15px 0;
        line-height: 1.6;
    }
    
    .content-body h1 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .content-body h2 {
        font-size: 1.3rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .content-body h3 {
        font-size: 1.1rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .content-body h4,
    .content-body h5,
    .content-body h6 {
        font-size: 1rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .content-body p {
        margin-bottom: 1rem;
    }
    
    .content-body img {
        margin: 0.75rem 0;
        border-radius: 6px;
    }
    
    .content-body table {
        font-size: 0.9rem;
        margin: 0.75rem 0;
    }
    
    .content-body .table-responsive {
        font-size: 0.85rem;
    }
    
    .content-body pre {
        font-size: 0.85rem;
        padding: 0.75rem;
        border-radius: 6px;
    }
    
    .content-body code {
        font-size: 0.9em;
        padding: 0.2rem 0.4rem;
    }
    
    .content-body .accordion-button {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
    
    .content-body .card {
        margin-bottom: 0.75rem;
        border-radius: 6px;
    }
    
    .content-body .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .content-body .alert {
        padding: 0.75rem;
        margin: 0.75rem 0;
        font-size: 0.9rem;
    }
    
    .content-body blockquote {
        padding: 0.75rem 1rem;
        margin: 0.75rem 0;
        font-size: 0.95rem;
        border-left: 4px solid #dee2e6;
    }
    
    .content-body ul,
    .content-body ol {
        padding-left: 1.25rem;
    }
    
    .content-body li {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 767.98px) {
    .content-body {
        padding: 20px;
        font-size: 1.05rem;
    }
    
    .content-body h1 {
        font-size: 1.75rem;
    }
    
    .content-body h2 {
        font-size: 1.5rem;
    }
    
    .content-body h3 {
        font-size: 1.25rem;
    }
    
    .content-body table {
        font-size: 0.95rem;
    }
    
    .content-body .accordion-button {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
}