/*
	Theme Name: Michael Baragon
	Theme URI: What is the final domain
	Description: Custom created for Michael Baragon
	Version: 1.0
	Author: KWD Marketing Corp
	Author URI: https://kwdmarketing.ca
	Tags: Blank, HTML5, CSS3
	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

:root {
  /* Original Colors */
  --white: #FFFFFF;
  --faded-blue: #F5F7F7;
  --gray: #E9EEF2;
  --dark-gray: #989A9B;
  --blue-black: #111827;
  --blue: #1D4381;
  --hover-blue: #0C2753;
  --slate-gray: #576069;
  --black: #000000;
  --steel-blue: #5F7182;
}

/* Text Color Classes */
.white { color: var(--white); }
.faded-blue { color: var(--faded-blue); }
.gray { color: var(--gray); }
.dark-gray { color: var(--dark-gray); }
.blue-black { color: var(--blue-black); }
.blue { color: var(--blue); }
.hover-blue { color: var(--hover-blue); }
.slate-gray { color: var(--slate-gray); }
.black { color: var(--pure-black); }
.steel-blue { color: var(--steel-blue); }

.gray-bg {
	background-color: var(--gray);
}
.blue-bg {
	background-color: var(--blue);
}
.blue-black-bg {
	background-color: var(--blue-black);
}
.faded-blue-bg {
	background-color: var(--faded-blue);
}
.off-market-bg {
	background-image: url(images/building-low-angle-blue.webp);
	background-repeat: no-repeat;
	background-size: cover;
	
}
/* Specific styling for the bio block and lists */
.specialist-list li { margin-top: 15px; }
.specialist-list li span { display: block; }
.specialist-list .number { 
    color: var(--blue);
    font-size: 1.5rem;
    font-weight: 700;
}
.specialist-list .title { 
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 5px;
}
ul.blue li::marker {
    color: var(--blue);  
}
.uk-text-small {
	font-size: 15px;
}
.side-border {
	border-left: 4px solid var(--blue);
}
.white{
  color: #fff;
}
/* 1. Base styling for all tabs (The Inactive "slate-gray" State) */
.category-switcher > li > a {
    font-size: 25px !important;  
    color: var(--slate-gray) !important; 
    text-transform: none; /* Prevents UIkit from forcing all-caps */
    padding-bottom: 5px; /* Creates breathing room between the text and the line */
    border-bottom: 3px solid transparent; /* An invisible border prevents the page from jumping when you click! */
    transition: all 0.3s ease; /* Smooth fade when clicking */
}

/* 2. The Active (Open) Tab State */
.category-switcher > li.uk-active > a {
    color: var(--blue-black) !important; 
	font-weight: 600;
    border-bottom: 3px solid var(--blue); 
}

/* 3. Optional: A subtle hover effect so users know it's clickable */
.category-switcher > li > a:hover {
    color: var(--blue-black) !important; 
}

/* 4. Increase the gap between the categories */
.category-switcher > li {
    padding-left: 120px; /* UIkit's default is usually 20px. Adjust this number to dial in the perfect gap! */
}

/* 5. Keep it perfectly centered */
.category-switcher > li:first-child {
    padding-left: 0; /* Removes the padding from the very first item so the entire group doesn't look pushed to the right */
}



.banner h1{
  font-size: 105px;
  font-family: 'urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
}
h1{
  font-size: 86px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
}
h2{
  font-size: 66px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
}

h3{
  font-size: 56px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
}
h4{
  font-size: 30px;
  font-family: 'urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
}
h5{
  font-size: 25px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
}
h6{
  font-size: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
}

em {
    color: #444!important;
}

.icon-circle {
    border: 2px solid var(--blue);
    border-radius: 50px;
    height: 50px;
    width: 50px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #fff;
}


.services-sec-2 {
	background-image: url(images/building-wall-with-slats-and-windows.webp);
	
}
/* 1. Define the overlay and give it a smooth fade transition */
.hover-blue-overlay {
    background-color: #0C275370; 
    transition: opacity 0.4s ease-out; 
}

/* 2. When the user hovers, make the overlay invisible */
.uk-transition-toggle:hover .hover-blue-overlay {
   /* background-color: #00000070 ;
	opacity: 0.70;*/
}
.black-sq {
	background: #000000;
	color: #fff;
	padding: 12px;
}
.short-divider {
	border: 1px solid #fff;
	width: 20%;
}
.short-divider-2 {
	border: 1px solid var(--blue);
	width: 20%;
}
.sec-3 {
	background-image: url(images/senior-apartment-complex-overlay.webp);
	color: #fff;
	background-size: cover;
	background-repeat: no-repeat;
	min-height: 764px;
}

form#user-login-form{
	border: 1px solid #ccc;
	margin: 0 auto;
	padding: 20px;
	max-width: 400px;
	width: 100%;
}
select.orderby {
    border-radius: 3px;
    border: 1px solid #ccc;
    color: #6d6d6d;
    background: #fbfbfb;
    font-size: 12px;
    padding: 5px 10px;
}
a.header-btn {
    display: inline-block;
    background: var(--blue);
	border: 1px solid var(--blue);
    padding: 12px;
    margin: 6px 0;
    color: #fff;
    transition: ease-in-out all .2s;
}
a.header-btn:hover {
    text-decoration: none;
	color: #fff;
    background:var(--hover-blue);
}
a.clear-btn {
    display: inline-block;
    background: none;
	border: 1px solid #fff;
    padding: 12px;
    margin: 6px 0;
    color: #fff;
    transition: ease-in-out all .2s;
}
a.clear-btn:hover {
    text-decoration: none;
	color: var(--blue-black);
    background:var(--gray);
}
a.white-btn {
    display: inline-block;
    background: #fff;
	border: 1px solid #fff;
    padding: 12px;
    margin: 6px 0;
    color: var(--blue);
    transition: ease-in-out all .2s;
}
a.white-btn:hover {
    text-decoration: none;
	color: var(--blue );
    background:var(--gray);
}
a.btn {
    display: inline-block;
    background: #222;
    padding: 12px;
    margin: 6px 0;
    border-radius: 3px;
    color: #fff;
    transition: ease-in-out all .2s;
}

a.btn:hover {
    text-decoration: none;
    background: #717171;
}
 .blue-btn {
    display: inline-block;
    background: var(--blue);
    padding: 12px;
    margin: 6px 0;
    border-radius: 3px;
    color: #fff; 
    transition: ease-in-out all .2s;
}
 .blue-btn:hover {
    text-decoration: none;
	color: #fff;
    background: var(--hover-blue);
}
/* 1. Make the group a relative container */
.clickable-group {
    position: relative;
    transition: all 0.3s ease; /* Optional: smooth hover effects */
}

/* Optional: Add a hover state to the whole group so it feels like a button */
.clickable-group:hover {
    cursor: pointer;
    background-color: var(--faded-blue); 
}

/* 2. Stretch the link inside to cover the entire group */
.clickable-group a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}
.tight-leading {
    line-height: 1; /* You can even drop this to 0.9 or 0.8 if you need them overlapping! */
}
.banner{
    width: 100%;
}

a.uk-float-right.uk-hidden-large.menu_pointer {
    color: #fff!important;
}
.uk-offcanvas-bar .logo {
    padding: 10px 20px 0px 20px;
}
.uk-offcanvas-bar ul li.current-menu-item > a {
    border-left: 10px solid #fff;
}
.uk-offcanvas-bar ul li a {
    padding: 9px 20px;
    font-size: 16px;
    display: block;
    margin-bottom: 2px;
    background: var(--blue);
    color: white;
}
.uk-offcanvas-bar ul li a:active, .uk-offcanvas-bar ul li a:hover {
    background: #222;
	color: #fff;
    text-decoration: none;
}
.uk-offcanvas-bar ul {
    list-style: none;
    padding: 0;
	margin: 0;
}
.uk-offcanvas-bar ul li {
    margin: 0;
    padding: 0;
}

.uk-offcanvas-bar .sub-menu li a {
	background-color: #4c4c4c;
    font-size: 13px;
    padding: 6px 30px;


}
.uk-offcanvas-bar .sub-menu {
    width: 100%;
    display: block;
    position: relative;
	background-color: #000;
}

.uk-offcanvas-bar .sub-menu li {
    float: none!important;
    text-align: left;
}

a.page-numbers:hover {
    background-color: #D6D6D6;
    color: #666;
    outline: 0;
    background-image: none;
}
a.page-numbers {
    background: #f7f7f7;
    color: #666;
    border: 1px solid rgba(0,0,0,.2);
    border-bottom-color: rgba(0,0,0,.3);
    background-origin: border-box;
    background-image: -webkit-linear-gradient(top,#fff,#eee);
    background-image: linear-gradient(to bottom,#fff,#eee);
    text-shadow: 0 1px 0 #fff;
    display: inline-block;
    min-width: 16px;
    padding: 3px 5px;
    line-height: 20px;
    text-decoration: none;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    text-align: center;
    border-radius: 4px;
}
span.page-numbers.current {
    background: #009dd8;
    color: #fff;
    border: 1px solid rgba(0,0,0,.2);
    border-bottom-color: rgba(0,0,0,.4);
    background-origin: border-box;
    background-image: -webkit-linear-gradient(top,#00b4f5,#008dc5);
    background-image: linear-gradient(to bottom,#00b4f5,#008dc5);
    text-shadow: 0 -1px 0 rgba(0,0,0,.2);
    display: inline-block;
    min-width: 16px;
    padding: 3px 5px;
    line-height: 20px;
    text-decoration: none;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    text-align: center;
    border-radius: 4px;
}
.pagination {
    text-align: center;
    padding: 40px;
    font-size: 16px;
}
.gform_wrapper form {
	overflow: hidden;
}
.gform_wrapper input {
    padding: 10px 10px!important;
    border-radius: 3px;
    border: 1px solid #ccc;
}
.gform_wrapper textarea {
    padding: 14px 10px!important;
    border-radius: 3px;
    border: 1px solid #ccc;
}


.gform_footer.top_label input {
    color: white;
    background: #55a94f;
    border: none;
    padding: 20px 40px!important;
    font-size: 22px!important;
    margin: 0!important;
    transition: ease-in-out all .2s;
	text-decoration: none;
	display: inline-block;
}
.gform_footer.top_label input:hover {
    opacity: .8;
		text-decoration: none;
}
.gform_footer.top_label {
    float: right;
    margin: 0;
}
.menu_pointer{
	cursor: pointer;
}




/*SPECIAL GRAVITY FORM CSS*/
/* ==========================================================
   GRAVITY FORMS CUSTOM STYLING
   ========================================================== */

/* 1. Field Titles (Labels) */
.gform_wrapper .gfield_label {
    text-transform: uppercase !important;
    color: var(--blue-black) !important;
    font-size: 14px; /* Optional: adjust to fit your design */
    font-weight: 600; /* Optional: gives the labels a nice grounded feel */
}

/* 2. Form Fields (Name, Email, Phone, Paragraph) */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper textarea {
    border: none !important; /* Strips the default box border */
    border-bottom: 2px solid var(--blue) !important; /* Adds your custom blue underline */
    background-color: transparent !important; /* Prevents white boxes on colored backgrounds */
    border-radius: 0 !important; /* Removes Apple/browser default rounding */
    box-shadow: none !important; /* Removes default inner shadows */
    padding-left: 0 !important; /* Pulls text flush-left so it aligns perfectly with the label */
    padding-bottom: 10px !important; /* Gives breathing room above the underline */
}

/* 3. Field Focus State (When a user clicks inside the box) */
.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper textarea:focus {
    outline: none !important; /* Stops the ugly blue browser glow */
    border-bottom: 2px solid var(--hover-blue) !important; /* Optional: Darkens the line on focus */
}

/* 4. The Submit Button */
.gform_wrapper .gform_button[type="submit"] {
    background-color: var(--blue) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 15px 40px !important; /* Adjust sizing as needed */
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease !important; /* Smooth color fade */
}

/* 5. Submit Button Hover State */
.gform_wrapper .gform_button[type="submit"]:hover {
    background-color: var(--hover-blue) !important;
    cursor: pointer;
}
/*TOP LEVEL NAV START*/
.nav {
    float:  ;
}
nav ul {
    margin: 0;
    padding: 0;
}
.nav li {
    float: left;
    list-style: none;
}
/* 1. Give the list item the horizontal spacing */
.nav ul li {
    display: inline-block;
    padding: 0 9px; /* This creates the gap between menu items */
    margin: 0 2px;
}

/* 2. Target the link for the text and the underline */
.nav ul li a {
    /* Layout */
    display: inline-block;
    vertical-align: middle;
    position: relative;
    padding: 11px; /* Only vertical padding here so underline hits the text edges */
    
    /* Typography */
    color: var(--blue-black);
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    
    /* Effects & Performance */
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    background: none;
    
    /* Transition */
    transition: color 0.3s ease;
}

/* 3. The Underline (Now restricted to the <a> width) */
.nav ul li a:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 100%;
    bottom: 5px; /* Adjust this to move the line closer/further from text */
    background: var(--blue);
    height: 2px;
    transition: right 0.3s ease-out;
}

.nav ul li a:hover:before, 
.nav ul li a:focus:before, 
.nav ul li a:active:before {
    right: 0;
}
.footer .nav ul li a {

    color: #fff;
    
}
.footer .nav ul li a:hover {
    color: #fff;
}
/* Optional: Change text color on hover to match the line */
.nav ul li a:hover {
    color: var(--blue);
}
li.menu-item-has-children > a {
    cursor: default;
}
/* Keep the underline visible for the current page */
.nav .current_page_item > a:before, 
.nav .current-menu-item > a:before {
    right: 0;
    background: var(--blue); /* Ensures it uses your brand blue */
}

/* Optional: If you want the active text to also change color */
.nav .current_page_item > a, 
.nav .current-menu-item > a {
    color: var(--blue-black); /* Matches the underline for a cohesive look */
}
.nav li:hover > a{
  background-color: ;
  color: var(--blue-black);
}

/*TOP LEVEL NAV END*/

/*Style General Submenus*/
.sub-menu {
    position: absolute;
    background: white;
    width: 215px;
    margin: 0;
    padding: 0;
	    z-index: 99;
}
.sub-menu li {
    float: none;
}
.sub-menu li a {
    color: #222;
    text-decoration: none;
    padding: 10px;
    display: block;
}
.sub-menu li a:hover {
    background: #222;
    color: #fff;
}
/*this one styles the sub highlighted page nav*/
.sub-menu li:hover > a {
    color: #797979;
    background: #eaeaea;
}
/*Style General Submenus*/

/*First Dropdown*/
.nav > ul > li > .sub-menu {
    display: none;
}
.nav > ul > li:hover > .sub-menu {
    display: block;
}

/*2nd Tear Dropdwn*/
.nav > ul > li > .sub-menu > li > .sub-menu {
    display: none;
	margin-left: 216px;
    width: 215px;
    margin-top: -40px;
}
.nav > ul > li > .sub-menu li:hover > .sub-menu {
    display: block;
}

/*3rd level Dropdown*/
.nav > ul > li > .sub-menu > li > .sub-menu > li > .sub-menu {
    display: none;
	margin-left: 216px;
    width: 215px;
    margin-top: -40px;
}
.nav > ul > li > .sub-menu > li >.sub-menu li:hover > .sub-menu {
    display: block;
}
/*WooCommerce*/
.woocommerce-page article, .woocommerce section {
    float: left;
}
.woocommerce .banner img {
    max-width: fit-content;
}
nav.woocommerce-MyAccount-navigation li.is-active a {
    background: #820102;
}

nav.woocommerce-MyAccount-navigation ul a:hover {
    background: #222;
    text-decoration: none;
}
nav.woocommerce-MyAccount-navigation ul a {
    color: #fff;
    background: #be2123;
    display: block;
    padding: 10px;
    margin-bottom: 1px;
    transition: ease-in-out all .2s;
}
nav.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.woocommerce-additional-fields textarea {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    min-height: 200px;
}
form.checkout.woocommerce-checkout input {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
}
input#coupon_code {
    width: 300px!important;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none!important;
    margin: 0 1px!important;
}
.woocommerce nav.woocommerce-pagination ul {
    border: none!important;
}
/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
	font-size:62.5%;
}
body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color:#000;
    font-size: 18px;
	background-color: var(--faded-blue);
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
}
a {
	color:var(--blue-black);
	text-decoration:none;
	display: inline-block;
	transition: ease-in-out all .2s;
}
section a {
    color:var(--blue-black);
    text-decoration: none;
	transition: ease-in-out all .2s;
}
a:hover {
	color:var(--blue);
	text-decoration: none;
}
.footer a:hover {
	color:var(--gray);
	text-decoration: none;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
	border:1px solid #04A4CC;
}
h1, h2, h3{
	margin: 20px 0!important;
	font-family: 'Urbanist', sans-serif;
}
h4, h5, h6{
	margin: 15px 0!important;
	font-family: 'Urbanist', sans-serif;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {

}
.header {
    z-index: 99;
    position: relative;
}
/* logo */
.logo {

}
.logo-img {

}
/* nav */
.nav {

}
/* sidebar */
.sidebar {

}
/* footer */
.footer {
	background-image: url(images/senior-housing-apartment-banner-blue.webp);
}

/*------------------------------------*\
    SMALL
\*------------------------------------*/
@media only screen and (min-width:320px) and (max-width: 767px){


	.ginput_container_text input {
		-webkit-appearance: none!important;
		-moz-appearance:    none!important;
		appearance:         none!important;
	}
  .banner h1{
    font-size: 36px;
  }

  h1{
    font-size: 26px;

  }
  h2{
    font-size: 20px;
  }

  h3{
    font-size: 20px;

  }
  h4{
    font-size: 18px;

  }

}
@media only screen and (min-width:768px) and (max-width: 959px){

}
@media only screen and (min-width:960px){

}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
	   only screen and (min-resolution:144dpi) {

}
/* =========================================
   6. Mobile Responsiveness for Switcher
   ========================================= */

/* For Tablets and smaller (Under 960px - UIkit's '@m' breakpoint) */
@media (max-width: 959px) {
    
    /* Shrink the font size slightly */
    .category-switcher > li > a {
        font-size: 20px !important; 
    }

    /* Reduce the massive gap to something manageable */
    .category-switcher > li {
        padding-left: 40px; 
    }
    
    /* Add vertical spacing just in case the tabs wrap to a second line */
    .category-switcher {
        row-gap: 15px; 
    }
}

/* For Mobile Phones (Under 640px - UIkit's '@s' breakpoint) */
@media (max-width: 639px) {
    
    /* Shrink the font size for small phone screens */
    .category-switcher > li > a {
        font-size: 16px !important; 
    }

    /* Reduce the gap further so they fit side-by-side, or wrap neatly */
    .category-switcher > li {
        padding-left: 20px; 
    }
}
/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-moz-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	a,
	a:visited {
		text-decoration:underline;
	}
	a[href]:after {
		content:" (" attr(href) ")";
	}
	abbr[title]:after {
		content:" (" attr(title) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	tr,img {
		page-break-inside:avoid;
	}
	img {
		max-width:100% !important;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}