/**
 * Print styles for project pages
 */

@media print {
    /* Hide unnecessary elements */
    header.site-header,
    footer.site-footer,
    .site-navigation,
    .project-navigation,
    .related-projects,
    .social-share,
    #back-to-top,
    .breadcrumbs {
        display: none !important;
    }
    
    /* Full width for content */
    .site-main,
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Better typography for print */
    body {
        font-size: 12pt !important;
        line-height: 1.5 !important;
        color: #000 !important;
        background: #fff !important;
    }
    
    /* Improve headings */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }
    
    h1 {
        font-size: 24pt !important;
        margin: 0 0 1cm !important;
    }
    
    h2 {
        font-size: 18pt !important;
    }
    
    h3 {
        font-size: 14pt !important;
    }
    
    /* Prevent breaks inside important content */
    p, blockquote, ul, ol, dl, table {
        page-break-inside: avoid !important;
    }
    
    /* Ensure images fit on page */
    img {
        max-width: 100% !important;
        page-break-inside: avoid !important;
    }
    
    /* Project-specific styles */
    .project-details {
        margin-bottom: 1cm !important;
        border: 1px solid #ddd !important;
        padding: 1cm !important;
    }
    
    .project-meta {
        margin-top: 1cm !important;
        border-top: 1px solid #ddd !important;
        padding-top: 0.5cm !important;
    }
    
    /* Show URLs after links */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        font-style: italic;
    }
    
    /* But not for internal links or ones with classes suggesting they're UI */
    a[href^="#"]:after,
    a[href^="javascript:"]:after,
    a.button:after,
    a.btn:after,
    a.nav-link:after {
        content: "";
    }
    
    /* Add the site name and URL at the top of the page */
    body:before {
        content: "Anambas Foundation - Projects";
        display: block;
        font-size: 16pt;
        font-weight: bold;
        margin-bottom: 1cm;
        text-align: center;
    }
}
