/* Print Styles for Browser Print - Matches Site Appearance */
@media print {
    @page {
        size: A4;
        margin: 15mm;
    }
    
    html, body {
        margin: 0;
        padding: 0;
        background: #ffffff !important;
    }
    
    .pdf-download-container {
        display: none !important;
    }
    
    .main-nav {
        display: none !important;
    }
    
    .pdf-content {
        max-width: 100%;
        padding: 0;
        margin: 0;
        background: transparent !important;
    }
    
    /* Keep the site's appearance - white background, clean design */
    .header {
        background: white !important;
        box-shadow: none !important;
        padding: 60px 0 !important;
        margin-bottom: 40px !important;
        border-radius: 0 !important;
        border-bottom: 2px solid #e0e0e0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .header-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 60px !important;
    }
    
    .main-title {
        font-size: 64px !important;
        font-weight: 400 !important;
        font-family: 'Georgia', 'Times New Roman', serif !important;
        color: #000000 !important;
    }
    
    .subtitle {
        font-size: 16px !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        color: #000000 !important;
    }
    
    /* Section page break controls - each section starts on new page */
    section {
        padding: 60px 0 !important;
        background: white !important;
        page-break-inside: avoid;
        break-inside: avoid;
        page-break-before: always;
        break-before: page;
        page-break-after: auto;
        break-after: auto;
    }
    
    /* First section doesn't need page break */
    section:first-of-type {
        page-break-before: auto !important;
        break-before: auto !important;
    }
    
    .section-title {
        page-break-after: avoid;
        page-break-inside: avoid;
        break-after: avoid;
        break-inside: avoid;
        page-break-before: always;
        break-before: page;
        font-size: 36px !important;
        font-weight: 400 !important;
        font-family: 'Georgia', 'Times New Roman', serif !important;
        color: #000000 !important;
        margin-top: 0 !important;
    }
    
    /* First section title doesn't need page break */
    section:first-of-type .section-title {
        page-break-before: auto !important;
        break-before: auto !important;
    }
    
    /* Prevent breaking within sections */
    .intro-section {
        background: white !important;
        padding: 40px 0 !important;
        border-bottom: 1px solid #e0e0e0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .intro-box {
        background: white !important;
        border: none !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .gpu-rental-section,
    .deployment-section,
    .cluster-section,
    .support-section,
    .pricing-section,
    .contact-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .gpu-card,
    .deployment-card,
    .cluster-content,
    .support-content {
        page-break-inside: avoid;
        break-inside: avoid;
        background: white !important;
        border: 1px solid #e0e0e0 !important;
        border-left: 3px solid #0066cc !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .product-page {
        page-break-before: always;
        break-before: page;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .product-content {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
        break-inside: avoid;
        filter: grayscale(100%) !important;
        -webkit-filter: grayscale(100%) !important;
    }
    
    /* Keep original colors and styling */
    body {
        background: white !important;
        color: #000000 !important;
    }
    
    .gpu-specs h4 {
        color: #0066cc !important;
    }
    
    .pricing-item {
        background: white !important;
        border: 1px solid #e0e0e0 !important;
        border-left: 3px solid #0066cc !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    /* Prevent orphans and widows */
    p, li {
        orphans: 3;
        widows: 3;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        break-after: avoid;
    }
}
