/* 
 Theme Name:     Ethical HR Solutions
 Author:         Host4Biz
 Author URI:     www.host4biz.co.uk
 Template:       Divi
 Version:        3.3.5
 Description:   A Child Theme built using the elegantmarketplace.com Child theme maker
Developed by Andrew Palmer for Elegant Marketplace www.elegantmarketplace.com Free to use and duplicate as many times as you like
 Wordpress Version: 4.9.6
*/ 


/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */ 

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap');

body{font-family: 'Open Sans', sans-serif;}

/*
// Mocha
:root {
  	--col1: #5d3a23;
	--col2: #6e4e36;
	--col3: #947963;
	--col4: #c3ae93;
	--col5: #e2d5c0;
	--col6: #fffcf7;
}
*/

:root {
  	--col1: #0d1989;
	--col2: #2a3ba4;
	--col3: #4b5bc0;
	--col4: #4b5bc0;
	--col5: #9ba4de;
	--col6: #f5f6fd;.et_pb_with_border h4
}

.et_pb_fullwidth_header h1{text-shadow:1px 1px 1px #000; font-size:40px}
.et_pb_text_inner h1{text-shadow:1px 1px 1px #000; font-size:30px}
body .et_pb_text_inner:first-of-type > h2:first-of-type{padding-top: 30px}


a{color:var(--col1) !important}
a:hover{color:var(--col3) !important}
blockquote{border-left-color:var(--col2) !important; padding-top:20px !important}

.et_pb_slider .et_pb_slide_0{background-color: var(--col6) !important;}

.et_pb_testimonial_author, .et_pb_testimonial_meta{padding-left: 20px !important}
.et_pb_testimonial_meta{padding-bottom: 20px !important}
.et_pb_testimonial_1.et_pb_testimonial{background-color: var(--col6) !important}
.et_pb_testimonial_0.et_pb_testimonial{background-color: var(--col6) !important}

.et_pb_divider:before{border-top:1px solid var(--col3) !important}
.valueBox h4{color:#fff !important; margin: 0px 0 150px !important; font-size:30px !important; padding-top: 15px !important}
.valueBox{color:#fff !important; font-size:18px !important; line-height: 23px !important; text-shadow:1px 1px 2px #000; min-height: 360px !important}
.valueBox p{background-color: rgba(0,0,0,0.5); padding: 10px; border-radius:10px; display:block; min-height: 160px !important}


.et_pb_row_1.et_pb_row {padding-top:0px !important; border:0px}

#post-25 .et_pb_text_inner{padding-top: 0px !important; margin-top: 0px !important}
#post-25 .et_pb_text_inner h2:first-of-type{margin-top: 0px !important; padding-top: 0px !important}
#post-25 .et_pb_section{margin-top: 0px !important; padding-top: 0px !important}
#post-25 .et_pb_row{margin-top: 0px !important; padding-top: 0px !important}

#top-header {z-index: 99999;}
 
#logo {
	max-height: 125%;
	margin-top: -26px;
	z-index: 100000;
}

/* surround for news section */
.entry-content{background-color: #fff}
.entry-content img{float:right; margin: 0 0 30px 30px; max-width:50%}
.entry-content hr{border:0px; border-top:2px solid #efefef; clear: both; margin: 20px 0}


.et-dropcap{color:var(--col1) !important}

#main-footer{background-color: var(--col1) !important; background-size: cover}
#main-footer a{color:#fff !important}
#main-footer .container{background-size: cover}

.newsposts{display:flex; align-items: stretch; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; justify-content: space-around; flex-wrap:wrap}
.newsposts > div{width:100%; max-width:280px; margin: 0 0 30px; background-color: var(--col6); margin: 5px 5px 15px}

.newsPrevPhoto{padding-bottom:75%; background-color: var(--col5); background-size: cover; background-position: center; background-repeat: no-repeat}
.newspad{padding: 20px}
.newsposts h2{font-size:22px}

#top-header{color:var(--col1) !important}
#top-header a{color:var(--col1) !important}

#footer-info{color:#fff; font-size:14px}
#footer-bottom{background-color: transparent !important}
#footer-bottom a {color:#fff !important}

#top-header > div:first-of-type{max-width:100%}

#et-top-navigation a{color:var(--col1) !important}

#top-menu{padding-bottom: 21px; text-transform: uppercase}
#top-menu > li{padding: 0px; margin:0px}
#top-menu > li a{border-bottom:3px solid #fff; color: var(--col1); display: block; padding: 10px 15px !important; margin: 0px}
#top-menu > li a:hover{border-bottom:3px solid var(--col1)}
#top-menu .current_page_item > a{border-bottom:3px solid var(--col1); color:var(--col1) !important}

.et-fixed-header #top-menu li.current-menu-ancestor>a, .et-fixed-header #top-menu li.current-menu-item>a{color:var(--col1) !important}

.et_pb_toggle_close{background-color: var(--col6) !important}
.et_pb_toggle_close .et_pb_toggle_title, .et_pb_toggle_close h5.et_pb_toggle_title{color: var(--col1) !important}

.et-fixed-header #top-menu li.current-menu-ancestor>a, .et-fixed-header #top-menu li.current-menu-item>a{color: var(--col1)}

.et_pb_kkcustom_form_container.et_pb_kkcomplex_form_0 input, .et_pb_kkcustom_form_container.et_pb_kkcomplex_form_0 textarea, .et_pb_kkcustom_form_container.et_pb_kkcomplex_form_0 p select, .et_pb_kkcustom_form_container.et_pb_kkcomplex_form_0 label.lbl{background-color: var(--col5) !important}
#message{margin-bottom: 40px}
body #page-container .et_pb_kkcustom_form_container.et_pb_kkcomplex_form_0 .et_pb_button{border:0px; background-color: var(--col1) !important; color:#fff !important}
.et_pb_button{color: red !important}

/* fix our values box heights */
#fourboxes{padding-bottom: 0px !important; margin-bottom:0px !important}
#fourboxes > div{max-height: 410px; overflow: hidden}

#fourboxes  > div > div{min-height:300px; background-color: var(--col5) !important; border-radius:6px}
#fourboxes  > div{min-height:300px; border-radius:6px}



.et_pb_contact .et_pb_with_border > div > div{min-height:inherit !important; background-color: transparent !important}

.et_pb_with_border h4{color:var(--col1); font-size:22px; font-weight:700}
.et_pb_blurb_3 .et-pb-icon{color: var(--col1) !important}
.et_pb_blurb_2 .et-pb-icon{color: var(--col1) !important}
.et_pb_blurb_1 .et-pb-icon{color: var(--col1) !important}
.et_pb_blurb_0 .et-pb-icon{color: var(--col1) !important}


.et_pb_fullwidth_header{padding-bottom: 15%}

#logoBox1{border:0px; padding: 0px}

/* news carousel on home page*/
#carousel{border:2px solid #efefef}

.newsbox{text-align: center; padding: 40px 0; margin: 60px 0 0; background-color: #f5f6fd}
.newsbox h2{text-shadow: 2px 2px 3px rgb(0,0,0,0.2) }
.newslist{display:flex; justify-content: space-between; align-items: stretch; max-width:1200px; margin: 30px auto; box-sizing: border-box}
.newslist > div{width:100%; max-width:290px; text-align: left; position: relative; word-wrap:break-word; background-color: #fff}
.newsthumb{padding-bottom: 70%; background-position: center; background-size: cover; margin: 0 0 30px; background-color: #efefef; cursor:pointer}
.newslist .excerpt{padding: 15px; min-height:280px}
.newslist .readmore{position: absolute; bottom:10px; right:15px}
.readmorehpnews{font-size:18px; font-weight:700; color: #fff !important; background-color: var(--col1); display: inline-block; margin: 15px auto 0px; padding: 10px 30px; border-radius:4px; transition:all 300ms ease}
.readmorehpnews:hover{color:#fff !important; background-color: #666}

#footer-widgets{box-sizing: border-box}
#footer-bottom{display:none}
.et-social-icons{list-style: none !important; padding: 0px; margin: 0px}
#footer-widgets .footer-widget li:before{display: none}
#footer-widgets .footer-widget li a{font-size: 15px; text-transform: none}
#footer-widgets .footer-widget li a:hover{color: var(--col4)!important}
.et-social-icons > li{position: inherit !important; padding: 0px 5px !important} 

#footer-widgets{align-items: stretch; display: flex; width:100%; max-width: 100vw}
#footer-widgets > div{margin: 0px; padding: 0 0 0 15px; margin-bottom: 50px; border-right:1px solid #fff; font-size:11px; text-transform: uppercase; letter-spacing: 2px}
#footer-widgets > div:nth-of-type(1){min-width: 25%; background-image: url(/wp-content/uploads/2021/08/logo-on-white.png); background-position: top left; background-size: 200px; background-repeat: no-repeat; padding: 80px 0 0 0}
#footer-widgets > div:nth-of-type(2){min-width: 25%}
#footer-widgets > div:nth-of-type(3){min-width:25%}
#footer-widgets > div:nth-of-type(4){min-width: 25%; max-width:10%}
#footer-widgets > div:last-of-type{border:0px}

#footer-widgets > div a{transition:all 300ms ease}
#footer-widgets > div a:hover{opacity:0.6}

.footer-widget #menu-main{font-size:12px}
.footer-widget div{display: block !important; width:100%; margin: 0px !important}

#footer-widgets > div:nth-of-type(2) .menu{column-count: 1; column-width:150px}
#footer-widgets > div:nth-of-type(2) .menu li {padding:0px; margin: 0px}

#footer-widgets li{line-height: 20px}

#block-4 > p{margin-bottom: 15px; line-height: 18px}

.clients{padding: 60px 0 20px; background-color:#fff}
.clients h2{text-align: center; font-size:36px; color:#091a85; text-shadow: 2px 2px 3px rgb(0,0,0,0.2) }
.clients p{font-size:18px; padding: 25px auto 0}

.logoCarouselOuter{width:100%; max-width:1200px; margin: 30px auto; position: relative; height: 250px; overflow: hidden}
.logoCarousel{height:100%; position: absolute; top:0px; left:0px; transition:all 45000ms ease-in-out; display: flex; justify-content: flex-start; align-items: center}
.logoCarousel > div{width:100%; min-width:250px; max-width:250px; height: 250px; margin:0 80px 0 0; background-size: contain; background-repeat: no-repeat; background-position: center; display:inline-block}

.carousel_desc{max-width: 900px; margin: 0 auto}

.ctas{display: flex; justify-content: space-around; align-items: stretch; max-width: 1200px; margin: 0px auto; padding:30px 0; background-color: #fff}
.ctas > div{width:100%; max-width: 290px; padding: 15px; background-position: center; background-size: cover; background-repeat: no-repeat; border-radius:4px}
.ctas h3{color: #fff; text-shadow:1px 1px 3px rgb(0,0,0, 0.7); font-size:22px}
.ctaDesc{background: rgb(255, 255, 255, 0.6); padding: 10px; border-radius:3px; color:#000}
.ctareadmore{color:#fff !important; text-shadow:1px 1px 3px rgb(0,0,0, 0.7); display: block; text-align: right}
.ctareadmore:hover{color:#fff !important}

.et_pb_row{max-width:1200px !important; width:100% !important; margin:0px auto}

.category-video-blog{min-height:320px}
.fluid-width-video-wrapper{min-height: 200px}

h2 img{max-width:24% !important; margin: 20px 0 0}

.et_pb_image_wrap img{max-width:100% !important}
.et_pb_fullwidth_image img{max-width:100%}

#footer-widgets .et-social-icon{transform:scale(1.4)}

.logogrid{display: flex; justify-content: space-around; align-items: center; max-width:1200px; margin: 0 auto; flex-wrap:wrap}
.logogrid > div{width:100%;  max-width: 160px; margin: 20px; height: 160px; background-position: center; background-repeat: no-repeat; background-size: contain}

.et_pb_section_2{padding-bottom: 0px !important}

#footer-widgets{padding: 40px 0px 0px}

#valueschunk img{max-width: 200px; float:right; margin: 0 0 15px 30px}




@media only screen and (min-width : 1200px) { /* MIN WIDTH */
	#post-25 .et_pb_section_2{min-height: inherit !important; margin: 0 auto !important; max-height: 540px !important}
}

@media only screen and (max-width : 1200px) { 
	.newslist{flex-wrap: wrap; max-width:98%}
	.newslist > div{width:48%; max-width: 48%; margin-bottom: 30px; padding-bottom: 30px}
	.newslist .excerpt{min-height: 260px}
    #post-25 .et_pb_section{padding: 60px 30px}
    #post-25 .et_pb_section h2:first-of-type{margin-top: 50px !important}
}

@media only screen and (min-width: 981px){
	.et-fixed-header #top-menu li.current-menu-ancestor>a, .et-fixed-header #top-menu li.current-menu-item>a {
  		color: var(--col1) !important;
	}
}

@media only screen and (max-width : 980px) { 
	#logo { margin-top: 10px}
}

@media only screen and (max-width: 1100px) {
    #footer-widgets > div:nth-of-type(1){nin-width:50%}
    #footer-widgets > div:nth-of-type(2){display: none}
    #footer-widgets > div:nth-of-type(3){display: none}
    #footer-widgets > div:nth-of-type(4){nin-width:50%}
}

@media only screen and (max-width: 800px) {
    #footer-widgets > div:nth-of-type(2){display: none}
    #footer-widgets > div:nth-of-type(3){display: none}
    #footer-widgets > div:nth-of-type(4){display: none}
    #footer-widgets > div{border:0px}
}

@media only screen and (min-width: 768px) {
    #et-info { float:right !important; }
}

@media only screen and (max-width: 699px) {
	.newslist{justify-content: space-around; max-width:96%}
	.newslist > div{width:100%; max-width: 400px}
	.newslist .excerpt{min-height: inherit}
	#footer-widgets > div{min-width:100% !important; max-width:100% !important; width:100% !important; text-align: left !important}
    .entry-content img{float:none; margin: 0 0 30px 0; max-width:100%; width:100%}
}

@media only screen and (max-width: 321px) {
	.newslist > div{width:100%; max-width: 290px}
}