/* Final Refined Premium Print Styles */
@media print {
    /* Global Overrides to save space */
    * {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 5pt !important;
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-family: 'Segoe UI', Arial, sans-serif;
        font-size: 11pt;
        line-height: 1.3;
        margin: 0.3cm !important;
    }

    /* Hide EVERYTHING by default */
    header, footer, nav, aside, .sidebar, .btn, .breadcrumb, .post-meta, 
    .post-details-meta, .post-summary, .post-share-buttons, .post-tags, 
    .post-reactions, .emoji-reactions-container, .post-next-prev, 
    .author-box, .about-author, .comments-area, .section-comments,
    .related-posts, .section-related-posts, .newsletter-section,
    /* actual ad container classes used by this theme */
    .container-bn, .bn-content, .bn-inner, .container-bn-ds, .container-bn-mb,
    /* generic fallbacks */
    .ad-space, .ad-section, .ads-section, .ads-container, .ad-container,
    .advertisement, .ad-wrap, .ad-wrapper, .adsbygoogle, ins.adsbygoogle,
    [class*="ad-space"], [class*="ads-"], [id*="google_ads"],
    .scrollup, .mobile-menu-button, .search-icon, .bd-highlight, .badge,
    iframe {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }


    /* Show ONLY the core article content and logo */
    .print-header {
        display: block !important;
        text-align: center !important; /* Center the logo */
        margin-bottom: 5pt !important;
        padding-bottom: 0pt !important;
    }
    .print-header img {
        max-height: 80px !important;
        width: auto !important;
        display: inline-block !important;
    }

    .print-header h2 {
        display: block !important;
        font-size: 24pt !important;
        color: #000 !important;
        margin-top: 10pt !important;
    }

    .print-footer {
        display: block !important;
        margin-top: 20pt !important;
        border-top: 1px solid #ccc !important;
        padding-top: 10pt !important;
        text-align: left !important;
    }

    .post-content {
        display: block !important;
        width: 100% !important;
    }

    .post-title {
        display: block !important;
        font-size: 18pt !important;
        font-weight: bold;
        line-height: 1.1;
        margin: 10pt 0 10pt 0 !important;
        text-align: left;
    }

    .post-image {
        display: block !important;
        text-align: center;
        margin-bottom: 10pt !important;
    }
    .post-image img {
        max-width: 50% !important;
        height: auto !important;
    }

    .post-text {
        display: block !important;
        font-size: 11pt !important;
    }

    /* Ensure deep nested elements are shown if they are part of the text */
    .post-text * {
        display: inline !important;
    }
    .post-text p, .post-text div, .post-text h1, .post-text h2, .post-text h3 {
        display: block !important;
    }

    /* Remove URL injection in print for links */
    a[href]:after {
        content: "" !important;
    }
}

/* Ensure print items are hidden on web */
.print-header, .print-footer {
    display: none !important;
}
