/* ======================================================================== */
/* Blog Post Fixes - Better Typography, Spacing and Design                 */
/* NOTE: All visual/color changes are scoped to DARK mode only so that     */
/*       light mode remains unchanged.                                      */
/* ======================================================================== */

/* TYPOGRAPHY FIX: Proper blog heading sizes for readability */
html:not([data-theme="light"]) body:has(main .post-image) h1 {
    font-size: 2.5rem !important; /* 40px - Much more reasonable for blog titles */
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 700 !important;
    text-align: left !important;
}

html:not([data-theme="light"]) body:has(main .post-image) h2 {
    font-size: 1.875rem !important; /* 30px - Good for section headers */
    line-height: 1.3 !important;
    margin: 2rem 0 1rem 0 !important;
    font-weight: 600 !important;
    text-align: left !important;
    color: #ffffff !important;
}

html:not([data-theme="light"]) body:has(main .post-image) h3 {
    font-size: 1.5rem !important; /* 24px - Good for subsections */
    line-height: 1.4 !important;
    margin: 1.5rem 0 0.75rem 0 !important;
    font-weight: 600 !important;
    text-align: left !important;
    color: #e5e7eb !important;
}

html:not([data-theme="light"]) body:has(main .post-image) h4 {
    font-size: 1.25rem !important; /* 20px - Good for smaller sections */
    line-height: 1.4 !important;
    margin: 1.25rem 0 0.5rem 0 !important;
    font-weight: 600 !important;
    text-align: left !important;
    color: #d1d5db !important;
}

html:not([data-theme="light"]) body:has(main .post-image) h5 {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.4 !important;
    margin: 1rem 0 0.5rem 0 !important;
    font-weight: 600 !important;
    text-align: left !important;
    color: #d1d5db !important;
}

/* PARAGRAPH AND TEXT IMPROVEMENTS */
html:not([data-theme="light"]) body:has(main .post-image) p {
    font-size: 1rem !important; /* 16px - Standard readable size */
    line-height: 1.7 !important;
    margin-bottom: 1.25rem !important;
    color: #e5e7eb !important;
    text-align: left !important;
}

/* Do NOT add bottom margin inside breadcrumb on blog pages */
html:not([data-theme="light"]) body:has(main .post-image) nav.breadcrumb p,
html:not([data-theme="light"]) body:has(main .post-image) .breadcrumb p,
html:not([data-theme="light"]) body:has(main .post-image) .breadcrumb .current {
    margin-bottom: 0 !important;
}

html:not([data-theme="light"]) body:has(main .post-image) li {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
    color: #e5e7eb !important;
}

html:not([data-theme="light"]) body:has(main .post-image) ul,
html:not([data-theme="light"]) body:has(main .post-image) ol {
    margin: 1rem 0 1.5rem 0 !important;
    padding-left: 2rem !important;
}

html:not([data-theme="light"]) body:has(main .post-image) strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Hide ALL template sidebars on blog pages - we have custom blog sidebar */
html:not([data-theme="light"]) body:has(main .post-image) aside:has(#sidebar) {
    display: none !important;
}

html:not([data-theme="light"]) body:has(main .post-image) aside:has(#search-form-container) {
    position: fixed !important;
    z-index: 9999 !important;
}

/* Ensure no sidebar overlap issues */
html:not([data-theme="light"]) body:has(main .post-image) .section .hero-container {
    position: relative !important;
    z-index: 1 !important;
}

/* BLOG LAYOUT FIX: Better overall structure and spacing */
html:not([data-theme="light"]) body:has(main .post-image) .section .hero-container {
    max-width: 1200px !important; /* Slightly smaller for better readability */
    margin: 0 auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .section .hero-container .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
    gap: 2rem !important; /* Add gap between columns */
}

/* Fix for blog pages - remove row-cols conflict */
html:not([data-theme="light"]) body:has(main .post-image) .section .hero-container .row.row-cols-xl-2 {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

/* Sidebar column - better spacing and fixed width */
html:not([data-theme="light"]) body:has(main .post-image) .section .hero-container .col.col-xl-4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 320px !important; /* Fixed sidebar width */
    flex: 0 0 320px !important;
}

/* Main content column - takes remaining space */
html:not([data-theme="light"]) body:has(main .post-image) .section .hero-container .col.col-xl-8 {
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex: 1 !important;
    max-width: none !important;
}

/* Better section padding for blog pages */
html:not([data-theme="light"]) body:has(main .post-image) .section {
    padding: 3rem 0 !important; /* More reasonable padding */
}

/* Main content container improvements */
html:not([data-theme="light"]) body:has(main .post-image) .d-flex.flex-column.gspace-2 {
    padding-left: 0 !important;
    margin-left: 0 !important;
    max-width: 100% !important;
}

/* Blog content area - better spacing and isolation */
html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8 .d-flex.flex-column.gspace-2 {
    background: rgba(15, 15, 15, 0.6) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin-top: 0 !important;
    border: 1px solid rgba(139, 92, 246, 0.1) !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Ensure sidebar stays in its lane */
html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-4 {
    position: relative !important;
    z-index: 2 !important;
}

/* Clear any float issues */
html:not([data-theme="light"]) body:has(main .post-image) .row.row-cols-xl-2 {
    clear: both !important;
}

/* Fix any overlay issues */
html:not([data-theme="light"]) body:has(main .post-image) main {
    position: relative !important;
    z-index: 1 !important;
    overflow-x: hidden !important;
}

/* Blog post image improvements */
html:not([data-theme="light"]) body:has(main .post-image) .post-image {
    margin-bottom: 1.5rem !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .post-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}

/* Meta information styling */
html:not([data-theme="light"]) body:has(main .post-image) .meta-data-post,
html:not([data-theme="light"]) body:has(main .post-image) .meta-data {
    font-size: 0.875rem !important;
    color: #9ca3af !important;
}

/* Underline separator styling */
html:not([data-theme="light"]) body:has(main .post-image) .underline-muted-full {
    background: linear-gradient(90deg, transparent 0%, #8b5cf6 50%, transparent 100%) !important;
    height: 2px !important;
    margin: 1.5rem 0 2rem 0 !important;
    border-radius: 2px !important;
}

/* ======================================================================== */
/* Improve Color Contrast for Info Boxes - DARK THEME COMPATIBLE */
/* Neutral Gray Box (e.g., ROI formula) → Dark theme variant */
html:not([data-theme="light"]) body:has(main .post-image) p[style*="background-color: #f5f5f5"],
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #f5f5f5"] {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
    color: #e5e7eb !important;
    padding: 25px !important;
    border-left: 6px solid #8b5cf6 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

html:not([data-theme="light"]) body:has(main .post-image) p[style*="background-color: #f5f5f5"] strong,
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #f5f5f5"] strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}
/* ======================================================================== */

/* Info Box (Light Blue) → Rich Dark Blue with White Text */
html:not([data-theme="light"]) body:has(main .post-image) p[style*="background-color: #d1ecf1"],
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #d1ecf1"] {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    padding: 25px !important;
    border-left: 6px solid #60a5fa !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
    font-weight: 500 !important;
}

html:not([data-theme="light"]) body:has(main .post-image) p[style*="background-color: #d1ecf1"] strong,
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #d1ecf1"] strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Previous Agency Box (Light Pink) → Rich Dark Red with White Text */
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #f8d7da"] {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%) !important;
    color: #ffffff !important;
    padding: 25px !important;
    border-left: 6px solid #ef4444 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #f8d7da"] h4,
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #f8d7da"] h5,
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #f8d7da"] strong,
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #f8d7da"] p {
    color: #ffffff !important;
}

html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #f8d7da"] ul {
    color: #ffffff !important;
}

html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #f8d7da"] li {
    color: #ffffff !important;
}

/* Success/Stratagem Box (Light Green) → Rich Dark Green with White Text */
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #d4edda"] {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
    color: #ffffff !important;
    padding: 25px !important;
    border-left: 6px solid #10b981 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #d4edda"] h4,
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #d4edda"] h5,
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #d4edda"] strong,
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #d4edda"] p {
    color: #ffffff !important;
}

html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #d4edda"] ul {
    color: #ffffff !important;
}

html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #d4edda"] li {
    color: #ffffff !important;
}

/* Warning Box (Light Yellow) → Rich Dark Orange with White Text */
html:not([data-theme="light"]) body:has(main .post-image) p[style*="background-color: #fff3cd"],
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #fff3cd"] {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    padding: 25px !important;
    border-left: 6px solid #fb923c !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
    font-weight: 500 !important;
}

html:not([data-theme="light"]) body:has(main .post-image) p[style*="background-color: #fff3cd"] strong,
html:not([data-theme="light"]) body:has(main .post-image) div[style*="background-color: #fff3cd"] strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* ======================================================================== */
/* Table Styling Improvements - DARK THEME */
/* ======================================================================== */

/* Make table headers dark and prominent */
html:not([data-theme="light"]) body:has(main .post-image) .comparison-table thead tr {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    color: #ffffff !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .comparison-table thead th {
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 18px 15px !important;
    border: 1px solid #334155 !important;
}

/* Dark theme table body */
html:not([data-theme="light"]) body:has(main .post-image) .comparison-table {
    background-color: #1f2937 !important;
    border: 1px solid #334155 !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .comparison-table tbody td {
    color: #e5e7eb !important;
    border: 1px solid #374151 !important;
    padding: 15px 12px !important;
}

/* Improve table row readability with dark theme */
html:not([data-theme="light"]) body:has(main .post-image) .comparison-table tbody tr:nth-child(even) {
    background-color: #111827 !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .comparison-table tbody tr:hover {
    background-color: #374151 !important;
    transition: background-color 0.2s ease;
}

/* Make highlighted table rows stand out with rich colors */
html:not([data-theme="light"]) body:has(main .post-image) .comparison-table tbody tr[style*="background-color: #d4edda"] {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
    color: #ffffff !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .comparison-table tbody tr[style*="background-color: #d4edda"] td {
    color: #ffffff !important;
    font-weight: 600 !important;
    border-color: #10b981 !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .comparison-table tbody tr[style*="background-color: #fff3cd"] {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%) !important;
    color: #ffffff !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .comparison-table tbody tr[style*="background-color: #fff3cd"] td {
    color: #ffffff !important;
    font-weight: 600 !important;
    border-color: #fb923c !important;
}

/* Generic fallback for any table inside blog content (without custom class) */
html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8 table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1f2937 !important;
    border: 1px solid #334155 !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8 table thead tr {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    color: #ffffff !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8 table thead th,
html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8 table th {
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 14px 12px !important;
    border: 1px solid #334155 !important;
    text-align: left !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8 table td {
    color: #e5e7eb !important;
    border: 1px solid #374151 !important;
    padding: 12px !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8 table tbody tr:nth-child(even) {
    background-color: #111827 !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8 table tbody tr:hover {
    background-color: #374151 !important;
    transition: background-color 0.2s ease;
}

/* ======================================================================== */
/* Code, Blockquote and Links - DARK THEME                                  */
/* ======================================================================== */

/* Pre/code blocks */
html:not([data-theme="light"]) body:has(main .post-image) pre {
    background: #0f172a !important; /* slate-900 */
    color: #e5e7eb !important;      /* text-slate-200 */
    padding: 16px !important;
    border-radius: 8px !important;
    border: 1px solid #334155 !important;
    overflow-x: auto !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

html:not([data-theme="light"]) body:has(main .post-image) code {
    background: rgba(15, 23, 42, 0.7) !important;
    color: #f8fafc !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

/* Blockquotes */
html:not([data-theme="light"]) body:has(main .post-image) blockquote {
    margin: 1.5rem 0 !important;
    padding: 1rem 1.25rem !important;
    border-left: 4px solid #8b5cf6 !important;
    background: rgba(17, 24, 39, 0.65) !important; /* gray-900/65 */
    color: #e5e7eb !important;
    border-radius: 8px !important;
}

/* Links inside blog content */
html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8 a {
    color: #a78bfa !important; /* violet-300 */
    text-decoration: underline;
    text-underline-offset: 2px;
}

html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8 a:hover {
    color: #c4b5fd !important; /* violet-200 */
}

/* ======================================================================== */
/* Mobile Responsive Adjustments */
/* ======================================================================== */

@media (max-width: 1199px) {
    /* Tablet and mobile layout */
    html:not([data-theme="light"]) body:has(main .post-image) .section .hero-container .col.col-xl-4 {
        max-width: 100% !important;
        flex: 1 !important;
        margin-bottom: 2rem !important;
    }
    
    html:not([data-theme="light"]) body:has(main .post-image) .section .hero-container .col.col-xl-8 {
        max-width: 100% !important;
        flex: 1 !important;
    }
    
    html:not([data-theme="light"]) body:has(main .post-image) .section .hero-container .row {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

@media (max-width: 768px) {
    html:not([data-theme="light"]) body:has(main .post-image) .section {
        padding: 1.5rem 0 !important;
    }
    
    html:not([data-theme="light"]) body:has(main .post-image) .section .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    html:not([data-theme="light"]) body:has(main .post-image) .section .hero-container .col.col-xl-4,
    html:not([data-theme="light"]) body:has(main .post-image) .section .hero-container .col.col-xl-8 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Smaller typography on mobile */
    html:not([data-theme="light"]) body:has(main .post-image) h1 {
        font-size: 2rem !important; /* 32px */
    }
    
    html:not([data-theme="light"]) body:has(main .post-image) h2 {
        font-size: 1.5rem !important; /* 24px */
    }
    
    html:not([data-theme="light"]) body:has(main .post-image) h3 {
        font-size: 1.25rem !important; /* 20px */
    }
    
    /* Less padding in content area on mobile */
    html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8 .d-flex.flex-column.gspace-2 {
        padding: 1.25rem !important;
        margin: 0 !important;
    }
}

/* ======================================================================== */
/* Blog Content Container Refinements */
/* ======================================================================== */

/* Ensure content doesn't have excessive margins */
html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8.order-1.order-xl-2 .d-flex.flex-column.gspace-2 > div {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Fix blog post image container */
html:not([data-theme="light"]) body:has(main .post-image) .post-image {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

/* Improve overall text readability */
html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8.order-1.order-xl-2 p {
    text-align: left;
    line-height: 1.7;
}

html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8.order-1.order-xl-2 ul,
html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8.order-1.order-xl-2 ol {
    padding-left: 25px !important;
}

html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8.order-1.order-xl-2 h2,
html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8.order-1.order-xl-2 h3,
html:not([data-theme="light"]) body:has(main .post-image) .col.col-xl-8.order-1.order-xl-2 h4 {
    margin-left: 0 !important;
}

/* ======================================================================== */
/* Blog Sidebar - "More From Our Blog" Section (Inside Card) */
/* ======================================================================== */

/* Make the card sticky; move scrolling to inner container to avoid clipping */
html:not([data-theme="light"]) body:has(main .post-image) .card.recent-post {
    position: sticky;
    top: 100px;
}

/* Inner scroll area for sidebar posts */
html:not([data-theme="light"]) body:has(main .post-image) .card.recent-post .sidebar-posts-container {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-right: 8px; /* keep content clear of scrollbar */
    scrollbar-gutter: stable both-edges;
}

/* Custom scrollbar for the card */
html:not([data-theme="light"]) body:has(main .post-image) .card.recent-post .sidebar-posts-container::-webkit-scrollbar {
    width: 6px;
}

html:not([data-theme="light"]) body:has(main .post-image) .card.recent-post .sidebar-posts-container::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 10px;
}

html:not([data-theme="light"]) body:has(main .post-image) .card.recent-post .sidebar-posts-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 10px;
}

html:not([data-theme="light"]) body:has(main .post-image) .card.recent-post .sidebar-posts-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%);
}

/* Blog sidebar section within the card */
html:not([data-theme="light"]) body:has(main .post-image) .blog-sidebar-section {
    margin-bottom: 16px;
}

html:not([data-theme="light"]) body:has(main .post-image) .blog-sidebar-section h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Divider between sections */
html:not([data-theme="light"]) body:has(main .post-image) .sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #8b5cf6 50%, transparent 100%);
    margin: 16px 0;
    border-radius: 2px;
}

/* Blog item styling */
html:not([data-theme="light"]) body:has(main .post-image) .sidebar-blog-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 16px;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

html:not([data-theme="light"]) body:has(main .post-image) .sidebar-blog-item:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

html:not([data-theme="light"]) body:has(main .post-image) .sidebar-blog-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

html:not([data-theme="light"]) body:has(main .post-image) .sidebar-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

html:not([data-theme="light"]) body:has(main .post-image) .sidebar-blog-item:hover .sidebar-blog-image img {
    transform: scale(1.1);
}

html:not([data-theme="light"]) body:has(main .post-image) .sidebar-blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

html:not([data-theme="light"]) body:has(main .post-image) .sidebar-blog-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html:not([data-theme="light"]) body:has(main .post-image) .sidebar-blog-excerpt {
    color: #9ca3af;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html:not([data-theme="light"]) body:has(main .post-image) .sidebar-blog-category {
    color: #8b5cf6;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Mobile responsive - hide blog sidebar section on small screens */
@media (max-width: 991px) {
    html:not([data-theme="light"]) body:has(main .post-image) .blog-sidebar-section {
        display: none;
    }
    
    html:not([data-theme="light"]) body:has(main .post-image) .sidebar-divider {
        display: none;
    }
}
