/* Print Stylesheet - Assemblée Nationale de Madagascar */
@media print {
    /* Hide non-essential elements */
    .dynamic-header,
    .main-menu,
    .mobile-menu-close,
    .dynamic-footer,
    .footer-bottom-bar,
    .skip-link,
    .search-container form,
    .search-modal,
    .social-share,
    .social-links,
    .social-icons-centered,
    .footer-social-bar,
    .comment-form-wrapper,
    .comment-reply-btn,
    .error-search,
    .sidebar-widget,
    .article-sidebar,
    .deputes-filters-section,
    .page-hero-tabs,
    .filter-btn,
    .annuaire-download-btn,
    .next-article-btn,
    .submit-btn,
    .cta-button,
    .error-home-btn,
    .depute-link,
    .pagination,
    .flag-line,
    video,
    iframe,
    .sticky-spacer {
        display: none !important;
    }

    /* Reset backgrounds and colors for print */
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.5;
    }

    * {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Ensure text is black */
    h1, h2, h3, h4, h5, h6,
    p, li, td, th, span, a, div {
        color: #000 !important;
    }

    /* Show URLs for links */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555 !important;
    }

    a[href^="#"]:after,
    a[href^="javascript"]:after {
        content: "";
    }

    /* Page hero - simplify for print */
    .page-hero {
        background: #f5f5f5 !important;
        padding: 15px 20px !important;
        margin-bottom: 20px;
    }

    .page-hero-title {
        font-size: 18pt !important;
        margin-bottom: 5px;
    }

    .page-hero-breadcrumb {
        font-size: 9pt !important;
    }

    /* Content area - full width */
    .container,
    .article-page-container,
    .article-main-content {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Page breaks */
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }

    table, figure, img {
        page-break-inside: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }

    /* Table styling */
    table {
        border-collapse: collapse !important;
    }

    table th, table td {
        border: 1px solid #ccc !important;
        padding: 6px 8px !important;
    }

    /* Print header */
    @page {
        margin: 2cm;
    }
}
