@media print {
	
  	@page {
    	margin: 1cm;
    }
  	@page :left {
    	margin: 0.5cm;
    }
    @page :right {
    	margin: 0.5cm;
    }
  	@page :first {
    	margin: 1cm;
    }
  	
  	*, *::before, *::after {
        /* background: transparent !important; */
        /* color: black !important; */
        box-shadow: none !important;
        text-shadow: none !important;
    }
  
  	body:before {
      display: block;
      content: "Thank you for visiting my website at lienhakimngan.vn. This is a printout from a web browser; To view the original version, please visit my website directly.";
      margin-bottom: 15px;
      padding: 5px 8px;
      font-size: 15px;
      font-style: italic;
      color: #6a1000;
      border: 1px solid;
      text-align: center;
    }
  	
	/* Hide sidebars, navigation, and footers */
	header.site-header, footer.site-footer, .orbit-container
  	.rightsidebar #secondary, .leftsidebar #secondary,
  	.bellow_header_sidebars_pkn, .related-articles, .navigation.pagination,
  	.addtoany_content, .readingProgressbar {
		display: none !important;
	}
    #page.site {
    	background: transparent !important;
    }
    .custom-background #page {
		width: 100%;
    }

	/* Force white background and black text for readability */
	body {
		width: 100%;
        margin: 0;
        padding: 0;
	}
  	body.custom-background {
      	background: #FFF;
  	}
	
	/* Make sure the main content takes up the full width */
	.rightsidebar #primary,
  	#content, .wrapper, .site-main {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	
  	article {
    	page-break-before: always;
    }
  	ul {
    	page-break-inside: avoid;
    }
  	h1, h2, h3, h4, h5, h6 {
      page-break-after:avoid;
      page-break-inside:avoid
    }
    img {
      page-break-inside:avoid;
      page-break-after:avoid;
    }
    blockquote, table, pre {
    	page-break-inside:avoid
    }
    ul, ol, dl {
    	page-break-before:avoid
    }
  	img {
    	max-width: 100% !important;
    }
  	
}