/*
 Theme Name:     Elite Safety (Divi Child Theme)
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Leech Printing
 Author URI:     https://leechprint.com/
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */


/* CHANGE MOBILE NAV BREAKPOINT */

@media only screen and ( max-width: 1300px ) { /* Change this number to modify breakpoint width */
    #top-menu-nav, #top-menu {display: none;}
    #et_top_search {display: none;}
    #et_mobile_nav_menu {display: block;}
	.et_fixed_nav #main-header{position: absolute;}
}

/* decrease left and right padding on main menu items */
#top-menu li li {
    padding: 0 10px;
    margin: 0;
}

#page-container .nav li li {
    line-height: 1.7em !important;
}

#page-container .nav li li a {
    font-size: 1.4em !important;
    text-transform: none !important;
}



/* MOBILE / NON-MOBILE */

@media all and (max-width: 480px) {
    
    .esafe-non-mobile-only {
        display: none;
    }

    .esafe-mobile-only {
        display: inline;   
    }

}

@media all and (min-width: 481px) {
    
    .esafe-non-mobile-only { 
        display: inline; 
    }

    .esafe-mobile-only {
        display: none;   
    }

}



/* REMOVE DROP SHADOW FROM HEADER */

#main-header {
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}



/* TYPOGRAPHY */

.mainContent h1,
.mainContent h2 {
    margin-bottom: 20px !important;
}

.mainContent h3 {
    margin-bottom: 10px !important;
}

.mainContent p+h1,
.mainContent p+h2,
.mainContent p+h3 {
    margin-top: 25px !important;
}

.mainContent p+ul {
    margin-top: 20px !important;
}

.ess-footer-widget h1,
.ess-footer-widget h2,
.ess-footer-widget h3,
.ess-footer-widget h4 {
    margin-bottom: 20px !important;
}

.et_pb_widget {
    margin-bottom: 0 !important;   
}



/* LATEST NEWS */

.esafety-latest-news .et_pb_post {
    margin-bottom: 30px;
    background-color: #EEEEEE;
    padding: 20px;
    border-radius: 10px;
}


/* LOGIN MODULE */

.et_pb_login_form input[type="text"],
.et_pb_login_form input[type="password"] {
    background-color: #EEE !important;
}


/* GRAVITY FORMS */

.gform_button {
	background-color: #80010a; /* burgundy */
	padding: 10px 15px;
	color: #FFFFFF;
	border: none;
    text-transform: uppercase;
}

	.gform_button:hover {
		background-color: #000000; /* black */
	}

.gform-body input[type="text"],
.gform-body input[type="tel"],
.gform-body input[type="email"],
.gform-body textarea {
    background-color: #EEEEEE;
    border: none;
    -moz-border-radius: 5px !important;
    -webkit-border-radius: 5px !important;
    border-radius: 5px;
    padding: 10px !important;
}



/* LINK AS BUTTON */

a.ess-button {
	background-color: #80010a; /* burgundy */
	padding: 10px 15px;
	color: #FFFFFF;
	border: none;
    display: inline-block;
}

	a.ess-button:hover {
		background-color: #000000; /* black */
	}



/* DIVI STACKING ORDER */

@media all and (max-width: 980px) {

    /*** wrap row in a flex box ***/
    .customStackingOrder {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap; /* Safari 6.1+ */
        flex-wrap: wrap;
    }

    /*** custom classes that will designate the order of columns in the flex box row ***/
    .first-on-mobile {
        -webkit-order: 1;
        order: 1;
    }

    .second-on-mobile {
        -webkit-order: 2;
        order: 2;
    }

    .third-on-mobile {
        -webkit-order: 3;
        order: 3;
    }

    .fourth-on-mobile {
        -webkit-order: 4;
        order: 4;
    }
    
    /*** add margin to last column ***/
    .customStackingOrder:last-child .et_pb_column:last-child {
        margin-bottom: 30px;
    }
 
}


/* MOBILE MENU STYLING */

.et_mobile_menu {
    margin-top: 20px;
    
    /*
    width: 230%;
    margin-left: -65%;
    */
}

.et_mobile_menu .first-level > a {
    background-color: transparent;
    position: relative;
}

.et_mobile_menu .first-level > a:after {
    font-family: 'ETmodules';
    content: '\4c';
    font-weight: normal;
    position: absolute;
    font-size: 16px;
    top: 13px;
    right: 10px;
}

.et_mobile_menu .first-level > .icon-switch:after {
    content: '\4d';
}

.et_mobile_menu .second-level {
    display: none;
}

.et_mobile_menu .reveal-items {
    display: block;
}

.et_mobile_menu .menu-item a{
	font-weight:700 !important;
}

.et_mobile_menu .menu-item .sub-menu .menu-item a{
	font-weight: 500 !important;
}

/* EQUALIZE BLOG GRID BOX HEIGHTS - used with JQuery - see Divi "Theme Options" -> "Integrations" */

.et_blog_grid_equal_height article {
	overflow: hidden;
}



/* SIDEBAR MENUS */

.ess-sidebar-menu {
	width: 100%;	
}

    .ess-sidebar-menu h4 {
        padding-bottom: 20px;    
    }

	.ess-sidebar-menu li {
		margin-bottom: 15px !important;
	}

		.ess-sidebar-menu li a {
			display: block;
			background-color: #80010A; /* burgundy */
			color: #FFFFFF !important;
			padding: 8px 15px;
            -moz-border-top-left-radius: 5px !important;
            -webkit-border-top-left-radius: 5px !important;
            border-top-left-radius: 5px;
		}

			.ess-sidebar-menu li a::before {
				font-family: "ETModules"; 
				font-weight: 900; 
				content: "\3d";
				padding-right: 8px;
			}

			.ess-sidebar-menu li a:hover,
			.ess-sidebar-menu li.current-menu-item a,
            .ess-sidebar-menu li.esafe-active-menu-item a {
				background-color: #17355b; /* blue */
				color: #FFFFFF;
			}

				.ess-sidebar-menu li a:hover::before,
				.ess-sidebar-menu li.current-menu-item a::before {
					font-family: "ETModules"; 
					font-weight: 900; 
					content: "\3d";
					padding-right: 8px;
					color: #FFFFFF; /* white */
				}
