/*
Theme Name: HQTheme Child Theme
Theme URI: 
Description: This is a child theme for HQTheme
Author: HQThemes
Author URI: 
Template: hqtheme
Version: 1.0
*/

/*************** ADD YOUR CUSTOM CSS IN THIS AREA ***************/

.content-wrapper > .row {width: auto;}
hr {border-top: solid 1px #e1e1e1;}
.header_topline {
    -moz-box-shadow:    2px 0px 10px 0px #ccc;
    -webkit-box-shadow: 2px 0px 10px 0px #ccc;
    box-shadow:         2px 0px 10px 0px #ccc;
}
header .header_topline .widget {
    display: inline-block;
}
header .widget_polylang ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
header .widget_polylang ul li img {
    position: relative;
    top: -1px;
}
header .header_topline li {
    display: inline-block;
}
#main-menu-state:checked ~ .sm {margin: 0 -15px;}
.main-navigation .sm ul:before {
    content: "";
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
    border-bottom-color: rgba(0,0,0,0.9);
    position: absolute;
    left: 24px;
    top: -10px;
    opacity: 1;
}
.sm-main a span.sub-arrow {
    position: relative;
    top: 6px;
    left: 2px;
    color: transparent;
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #00A550;
}
.sm-main li.current-menu-item a span.sub-arrow {border-top: 5px solid #fff;}
.sm-main li.current-menu-item a:hover span.sub-arrow,
.sm-main a:hover span.sub-arrow {border-top: 5px solid #999;}

.breadcrumbs {
    background-color: #f1f1f1;
    margin: -15px -15px 0;
}
body.siteorigin-panels #content:not(.right):not(.left) .breadcrumbs {margin: 0;}

#left-sidebar .menu > li.current-menu-item,
#left-sidebar .menu > li.current-menu-parent {
    background-color: #f1f1f1;
    border-left: solid 4px #00652e;
}
#left-sidebar .menu li.current-menu-item > a {font-weight: bold;}

#left-sidebar .menu li .sub-menu {display: none;}
#left-sidebar .menu > li.current-menu-item .sub-menu,
#left-sidebar .menu > li.current-menu-parent .sub-menu {display: block;}
#left-sidebar .widget_nav_menu .sub-menu li {position: relative; padding: 0.5em 1em;}
#left-sidebar .widget_nav_menu .sub-menu li:before {
    font-family: 'FontAwesome';
    display: inline-block;
    position: absolute;
    left: 0.3em;
    top: 0.6em;
    content: "\f105";
    color: #00652e;
    line-height: 1;
}
#left-sidebar .widget_nav_menu .sub-menu li:last-of-type {padding-bottom: 0;}

.sow-image-container:not(.no-hover-effect), .entry-thumb {
    background: transparent;
}
#topcontrol {background: #FFCB05;}
#topcontrol:hover {background: #eaba00;}

/* SECTION WITH TRIANGLE ON THE TOP */
.section-triangle {position: relative;}
.section-triangle:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 0; 
    height: 0; 
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 15px solid #F9F9F9;
}
.section-triangle-green:before {border-top-color: #009142;}
.section-triangle-grey:before {border-top-color: #eaeaea;}
/* SOW FEATURES*/
.sow-features-feature.sow-icon-container-position-right .sow-icon-container {margin-left: 0!important;}
.sow-features-list .sow-features-feature .textwidget {margin: 0!important;}
.text-bold .sow-features-list .sow-features-feature .textwidget > h5 a {font-weight: bold;}

/* HQ ACCORDION */
.hqw-accordion.style1 .hqw-panel .hqw-panel-title {
    padding: 0.5em 0 0.5em 2.2em;
    position: relative;
}
.hqw-accordion.style1 .hqw-panel .hqw-panel-title span {
    position: absolute;
    right: auto;
    left: 0;
    top: 0.2em;
    padding: 10px;
    line-height: 0.5;
}
.hqw-accordion.style1 .hqw-panel .hqw-panel-content {
    padding: 1em;
    margin-left: 2.5em;
    border: solid 1px #e1e1e1;
    position: relative;
}
.hqw-accordion.style1 .hqw-panel .hqw-panel-content:before {
    display: inline-block;
    font-family: 'FontAwesome';
    content: "\f10e";
    color: #e1e1e1;
    font-size: 2em;
    line-height: 1;
    position: absolute;
    top: 0.2em;
    left: 0.3em;
}
.hqw-accordion.style1 .hqw-panel .hqw-panel-content p:first-of-type {
    text-indent: 2em;
}
.hqw-accordion.style1 .hqw-panel .hqw-panel-content p:last-of-type {
    margin-bottom: 0;
}

/* HQ SERVICES */
.hqw-services.hqw-style2 {
    display: flex;
    flex-wrap: wrap;
}
.hqw-services.hqw-style2 .hqw-service {
    background-color: #fff;
    margin-bottom: 30px;
}
.hqw-services.hqw-style2 .hqw-icon-container {
    color: #00a550;
}
.hqw-services.hqw-style2 .hqw-service-details {
    font-size: 14px;
}

@media screen and (min-width: 768px) {
    header .header_topline .widget:last-of-type {border-right: none;}
}

/* Annual Awards */
.annual-awards .sow-icon-container {display: none;}
.annual-awards .sow-features-list {margin: 0 -15px;}
.annual-awards .sow-features-list .sow-features-feature {padding: 0 15px; margin-bottom: 15px;}
.annual-awards .sow-features-list .sow-features-feature h5 {margin: 0.5em -15px 0; display: inline-block; padding: 5px 15px; background-color: #ccc;}
.annual-awards blockquote {font-size: 14px; border-color: #ccc;}

/* ARTICLES */
.entry-header .entry-thumb, .entry-header .audio-image, .entry-header .oembed-container, .entry-header .wp-video {
    margin: 5px -10px 5px;
}
#articles .entry-thumb {margin-top: -10px; margin-bottom: 10px;}
.entry-header h1.entry-title, .page-title {
	margin-top: 0;
    margin-left: -15px;
    margin-right: -15px;
    padding: 15px;
    background: #ffcb05;
    color: #fff;
    font-size: 26px;
}
body.siteorigin-panels #content:not(.right):not(.left) .entry-header h1.entry-title {
    margin-left: 0;
    margin-right: 0;
}
#articles .entry-title {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: normal;
    text-overflow: initial;
}
#articles .entry-title a {font-weight: bold;}
#articles .entry-content {font-size: 13px;}
.sow-carousel-title a.sow-carousel-next, .sow-carousel-title a.sow-carousel-previous,
.sow-carousel-title a.sow-carousel-next:hover, .sow-carousel-title a.sow-carousel-next:focus,
.sow-carousel-title a.sow-carousel-previous:hover, .sow-carousel-title a.sow-carousel-previous:focus {color: #fff!important; text-decoration: none;}
#gallery-carousel .sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item h3 {font-size: 13px;}
.so-widget-sow-post-carousel {position: relative;}
.sow-carousel-title {position: absolute; top: -25px; width: 100%;}

.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item .sow-carousel-thumbnail a span.overlay {background: none;}
.entry-header .entry-thumb img {
    -webkit-transition: all 0.5s ease; /* Safari and Chrome */
    -moz-transition: all 0.5s ease; /* Firefox */
    -ms-transition: all 0.5s ease; /* IE 9 */
    -o-transition: all 0.5s ease; /* Opera */
    transition: all 0.5s ease;
}
.entry-header .entry-thumb:hover img {
    -webkit-transform:scale(1.15); /* Safari and Chrome */
    -moz-transform:scale(1.15); /* Firefox */
    -ms-transform:scale(1.15); /* IE 9 */
    -o-transform:scale(1.15); /* Opera */
    transform:scale(1.15);
}

/* NEWSLETTER FORM */
.pum-overlay {background: rgba(0,0,0,0.5);}
.popup-title {margin-top: 10px; margin-bottom: 0;}
.popup-decoration {
	width: 20%;
    border-bottom: solid 5px #e1e1e1;
	margin: 5px 0 10px;
}
.widget_wysija:after {clear: both: display: table; clear: both;}
.widget_wysija p {font-size: 13px; margin-bottom: 5px;}
.wysija-paragraph {margin-bottom: 0; float: left; width: 70%;}
.wysija-input {height: 40px; color: #333; border: solid 1px #ccc!important; border-width: 1px 0 1px 1px; outline: none;}
.widget_wysija_cont .wysija-submit {
	float: left;
	width: 30%;
	margin-top: 0;
	height: 40px;
	text-align: center;
}
.widget_wysija .formError {
	display: none;
}
.widget_wysija_cont .updated {
	margin-top: 20px;
	font-size: 16px;
	background: none;
	border: none;
	padding: 0;
}

/* MEDIA QUERY */
@media(min-width:768px){
    #main-menu-state:checked ~ .sm {margin: auto;}
}
@media(min-width: 992px) {
    .header-main {
        background-image: url('images/leaves.png');
        background-position: 99.5% center;
        background-repeat: no-repeat;
        background-size: auto;
    }
}
@media(min-width: 1170px) {
    .header-main {background-position: 99% center;}
}
@media(min-width: 1800px) {
    .header-main {background-position: 85% center;}
}

/* PRELOADER */
#cool-preloader{
    position: fixed;
    width: 100%;
    height: 100%;
    padding-top: 20%;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
}

.sk-folding-cube {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    position: relative;
    -webkit-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
}

.sk-folding-cube .sk-cube {
    float: left;
    width: 50%;
    height: 50%;
    position: relative;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1); 
}
.sk-folding-cube .sk-cube:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
    animation: sk-foldCubeAngle 2.4s infinite linear both;
    -webkit-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
}
.sk-folding-cube .sk-cube2 {
    -webkit-transform: scale(1.1) rotateZ(90deg);
    transform: scale(1.1) rotateZ(90deg);
}
.sk-folding-cube .sk-cube3 {
    -webkit-transform: scale(1.1) rotateZ(180deg);
    transform: scale(1.1) rotateZ(180deg);
}
.sk-folding-cube .sk-cube4 {
    -webkit-transform: scale(1.1) rotateZ(270deg);
    transform: scale(1.1) rotateZ(270deg);
}
.sk-folding-cube .sk-cube2:before {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}
.sk-folding-cube .sk-cube3:before {
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s; 
}
.sk-folding-cube .sk-cube4:before {
    -webkit-animation-delay: 0.9s;
    animation-delay: 0.9s;
}
@-webkit-keyframes sk-foldCubeAngle {
    0%, 10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0; 
    } 25%, 75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1; 
    } 90%, 100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0; 
    } 
}

@keyframes sk-foldCubeAngle {
    0%, 10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0; 
    } 25%, 75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1; 
    } 90%, 100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0; 
    }
}
