   /* Hide elements when printing */
    @media print {
        /* Hide everything before startPrint */
        body * {
            visibility: hidden;
        }
        
        /* Show only startPrint and its contents */
        #startPrint, #startPrint * {
            visibility: visible;
        }
        
        /* Position startPrint at the top of the page */
        #startPrint {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
        }
        
        /* Force page break after each heading card */
        .card {
            page-break-after: always;
        }
        
        /* Ensure the last card doesn't create an extra blank page */
        .card:last-child {
            page-break-after: auto;
        }
        
        /* Hide the print button when printing */
        .print-button {
            display: none;
        }
    }
    
    /* Optional: Style for print layout */
    @media print {
        body {
            font-size: 12pt;
            line-height: 1.5;
        }
        
        .card {
            margin: 0;
            border: none;
            box-shadow: none;
        }
        
        img {
            max-width: 100% !important;
            height: auto !important;
        }
    }