*, *::before, *::after { 
        box-sizing: border-box; 
    }
    
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .article-container {
        max-width: 1200px;
        margin: 0px auto 0 auto; 
        padding: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        width: 100%;
    }

    .main-content {
        background: #ffffff;
        padding: 16px;
        width: 100%;
        overflow: hidden;
    }

    @media (min-width: 992px) {
        .article-container {
            margin: 0px auto 40px auto;
            padding: 0 20px;
            grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
            align-items: start;
        }
        .main-content {
            padding: 32px;
            border-radius: 16px;
            border: 1px solid #f3f4f6;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
        }
        .sidebar {
            position: sticky;
            top: 100px;
            height: fit-content;
        }
    }

    .post-title {
        font-size: 20px;
        font-weight: 800;
        color: #111827;
        line-height: 1.35;
        margin-top: 0;
        margin-bottom: 16px;
        letter-spacing: -0.02em;
        word-wrap: break-word;
    }
    .article-body h2, .article-body h3 {
        font-size: 18px; font-weight: 700; !important; line-height: 1.2;}

    @media (min-width: 768px) { 
        .post-title { font-size: 22px; } 
        .article-body h2, .article-body h3 {font-size: 18px; font-weight: 700; !important;}
    }

    .post-meta-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 12px;
    }

    .category-badge {
        background: #eeebff;
        color: #4f46e5;
        font-size: 11px;
        font-weight: 700;
        padding: 4px 12px;
        border-radius: 9999px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .post-date { 
        font-size: 13px; 
        color: #6b7280; 
    }

    .featured-img-wrapper {
        width: 100%;
        max-height: 500px;
        overflow: hidden;
        border-radius: 12px;
        margin-bottom: 32px;
    }

    .featured-img-wrapper img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .adsense-placeholder {
        background: #fafafa;
        border: 1px dashed #e5e7eb;
        padding: 12px;
        margin: 24px 0;
        text-align: center;
        border-radius: 8px;
        min-height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        overflow: hidden;
    }

    /* Core Article Typography Optimization with Zero-Overflow */
    .article-body {
        font-size: 17px;
        line-height: 1.8;
        color: #374151;
        width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }

    @media (min-width: 768px) { 
        .article-body { font-size: 19px; } 
    }

    .article-body p { margin-bottom: .2rem; }
    .article-body h2 { font-size: 18px; font-weight: 700; color: #111827; margin: 1rem 0 1rem 0;line-height: 1.4 }
    .article-body h3 { font-size: 17px; font-weight: 600; color: #1f2937; margin: 1rem 0 1rem 0;line-height: 1.4}
    .article-body ul { margin: 0 0 1.2rem 10px; list-style-type: disc; }
    .article-body li { margin-bottom: 0.5rem; }
    
    .article-body blockquote { 
        border-left: 4px solid #4f46e5; 
        padding: 12px 16px; 
        color: #4b5563; 
        font-style: italic; 
        margin: 1.5rem 0; 
        background: #f9fafb; 
        border-radius: 0 8px 8px 0; 
    }
    
    .article-body a { 
        color: #4f46e5; 
        text-decoration: none; 
        border-bottom: 1px dashed #4f46e5; 
    }
    .article-body a:hover { border-bottom-style: solid; }

    /* Tables responsive fallback */
    .article-body table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1.5rem;
    }

    /* Gallery Auto-Fit Grid */
    .gallery-section {
        margin-top: 10px;
        border-top: 1px solid #f3f4f6;
        padding-top: 32px;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 12px;
    }

    @media (min-width: 768px) {
        .gallery-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }
    }

    .gallery-item {
        aspect-ratio: 4/3;
        overflow: hidden;
        border-radius: 8px;
        background: #f3f4f6;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

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


    .sidebar { 
        display: flex; 
        flex-direction: column; 
        gap: 32px; 
        padding: 0 16px; 
        width: 100%;
        overflow: hidden;
    }
    
    @media (min-width: 992px) { 
        .sidebar { padding: 0; } 
    }

    .sidebar-widget {
        background: #ffffff;
        border: 1px solid #f3f4f6;
        border-radius: 16px;
        padding: 20px;
        width: 100%;
        overflow: hidden;
    }

    .sidebar-widget-title {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
        margin: 0 0 20px 0;
        border-bottom: 2px solid #f3f4f6;
        padding-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .fixed-sidebar-list { 
        display: flex; 
        flex-direction: column; 
        gap: 16px; 
        list-style: none; 
        padding: 0; 
        margin: 0; 
    }

    .sidebar-list-item {
        display: flex;
        gap: 10px;
        text-decoration: none;
        align-items: center;
        background: #f3f4f6;
        border-radius: 15px;
        width: 100%;
        min-width: 0;
        transition: transform 0.2s ease;
    }

    .sidebar-list-item:hover { transform: translateX(4px); }

    .sidebar-img-container {
        width: 80px;
        height: 64px;
        flex-shrink: 0;
        border-radius: 8px;
        overflow: hidden;
        background: #f3f4f6;
    }

    .sidebar-list-img { 
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
    }

    .sidebar-list-title {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
        color: #1f2937;
        flex: 1;
        min-width: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .article-short {
    font-style: italic;
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1rem;
    font-weight: 700;
}
    
    .sidebar-list-item:hover .sidebar-list-title { color: #4f46e5; }