/* General Print Styles */
@media print {

    /* Reset styles */
    * {
        background: none !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Body */
    body {
        font-family: Arial, sans-serif;
        font-size: 12pt;
        line-height: 1.6;
        margin: 0;
        padding: 0;
    }

    /* Remove unnecessary elements */
    nav,
    footer,
    aside,
    .no-print,
    .ads,
    .sidebar,
    .menu,
    .social-icons {
        display: none !important;
    }

    /* Headings */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
        font-weight: bold;
    }

    h1 {
        font-size: 20pt;
    }

    h2 {
        font-size: 18pt;
    }

    h3 {
        font-size: 16pt;
    }

    /* Paragraphs & Text */
    p {
        widows: 3;
        orphans: 3;
        page-break-before: auto;
        page-break-after: avoid;
    }

    /* Tables */
    table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        font-size: 10pt;
    }

    table,
    th,
    td {
        border: 1px solid #000;
    }

    th,
    td {
        padding: 8px;
        text-align: left;
    }

    th {
        background-color: #f8f8f8 !important;
        font-weight: bold;
    }

    /* Links */
    a {
        text-decoration: none;
        color: #000 !important;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }

    /* Lists */
    ul,
    ol {
        padding-left: 20px;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
        page-break-before: avoid;
        page-break-after: avoid;
    }

    /* Page Break Rules */
    .page-break {
        page-break-before: always;
    }

    /* Prevent breaking inside elements */
    blockquote,
    pre,
    figure,
    code {
        page-break-inside: avoid;
    }

    /* Prevent breaking inside table rows */
    tr {
        page-break-inside: avoid;
    }

    /* Page size and margins */
    @page {
        size: A4;
        margin: 2cm;
    }
}