/* PDF-specific styles */ @page { size: A4; margin: 15mm; } @media print { body { margin: 0; padding: 0; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; } * { box-sizing: border-box; } /* Ensure all text is left-aligned */ p, h1, h2, h3, h4, h5, h6, li, span, div { text-align: left !important; } /* Force page breaks */ .page-break { page-break-after: always; break-after: page; } /* Prevent unwanted page breaks */ .no-break { page-break-inside: avoid !important; break-inside: avoid !important; } /* Red Hat colors */ .red-hat-red { color: #ee0000 !important; } /* Education section styling */ .pdf-generator h2:contains("EDUCATION") + .chakra-stack { margin-top: 8pt; } .pdf-generator h2:contains("EDUCATION") + .chakra-stack > div { margin-bottom: 6pt; } .pdf-generator h2:contains("EDUCATION") + .chakra-stack strong { font-weight: 600; } .pdf-generator h2:contains("EDUCATION") + .chakra-stack em { font-style: italic; color: #4c4c4c; } /* Prevent page breaks inside individual items */ .pdf-generator .chakra-stack > div { page-break-inside: avoid !important; break-inside: avoid !important; } /* Allow page breaks between items in certain sections */ .allow-section-break { page-break-inside: auto !important; break-inside: auto !important; } /* Keep section headings with at least some of their content */ .pdf-generator h2 { page-break-after: avoid !important; break-after: avoid !important; margin-top: 15pt !important; /* Add space before new sections */ } /* Keep list items together */ .pdf-generator ul li, .pdf-generator ol li, .pdf-generator .chakra-stack > div { page-break-inside: avoid !important; break-inside: avoid !important; } /* If a section must break across pages, ensure it has some padding at the bottom of the page */ .pdf-generator > div { padding-bottom: 5mm; } /* Widows and orphans control */ .pdf-generator p { orphans: 3; widows: 3; } /* Allow page breaks between main sections if needed */ .pdf-generator > div + div { page-break-before: auto; break-before: auto; } /* Ensure headers and sections have sufficient space around them */ .pdf-generator h2 { margin-bottom: 10pt !important; } /* Ensure footer stays at bottom of the page */ .pdf-generator .footer { position: relative; margin-top: 20mm; } /* Special handling for section boundaries */ .pdf-generator section { margin-bottom: 15pt; } } /* Fix SVG images in PDF */ img[src$=".svg"] { width: auto; height: auto; max-width: 100%; } /* Specifically target the Red Hat logo */ .pdf-generator img[src*="red-hat-logo"] { max-width: 45px !important; max-height: 30px !important; width: auto !important; height: auto !important; } /* Force left alignment for text in the CV */ .cv-template-preview *, .pdf-generator * { text-align: left; } /* Only center the footer */ .cv-template-preview .footer, .pdf-generator .footer { text-align: center !important; }