/*
 Theme Name:     Convergix Automation
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Cliff Antone
 Author URI:     https://www.etoolsmith.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

.et_header_style_left #et-top-navigation {
    padding-top: 20px;
}

.et_header_style_left #et-top-navigation nav > ul > li > a {
    padding-bottom: 13px;
    padding-top: 13px;
}

.et_header_style_left #et-top-navigation nav > ul > li {
    padding-bottom: 20px;
}

#top-menu li.nav-button a {
    color: #fff;
    background: #e10a0a;
    padding-left: 10px;
    padding-right: 10px;
}

#top-menu li.current-menu-ancestor.nav-button > a, 
#top-menu li.current-menu-item.nav-button > a, 
#top-menu li.current_page_item.nav-button > a, 
.et-fixed-header #top-menu li.current-menu-ancestor.nav-button > a, 
.et-fixed-header #top-menu li.current-menu-item.nav-button > a, 
.et-fixed-header #top-menu li.current_page_item.nav-button > a,
.et-fixed-header #top-menu li.nav-button a {
    color: #fff !important;
}

#et_top_search {
    margin-top: 16px;
}

#top-menu .menu-item-has-children > a:first-child::after {
    margin-top: 13px;
}

@media only screen and (min-width: 981px) {
    .et_header_style_left .et-fixed-header #et-top-navigation {
        padding-top: 10px;
    }

    .et_header_style_left .et-fixed-header #et-top-navigation nav > ul > li {
        padding-bottom: 10px;
    }
    
    .et_header_style_left .et-fixed-header #et-top-navigation nav>ul>li>a {
        padding-bottom: 13px;
    }
}


@media only screen and (min-width: 981px) and (max-width: 1180px) {
    #main-header .container.et_menu_container {
        width: 100%;
        max-width: 100%;
    }
    
    #main-header .logo_container {
        margin-left: 20px;
        margin-right: 20px;
    }
}

.elatest_posts_block {
    padding: 70px 0 60px;
}

.elatest_posts_block a.block-link {
    padding: 17px 6px;
    position: relative;
    top: 0;
    display: block;
    transition: all 0.1s linear;
    margin-bottom: 10px;
    text-align: center;
    background: #fff;
}

.elatest_posts_block a.block-link:hover {
    top: -10px;
    box-shadow: 0.625rem 0.625rem 1.25rem rgba(0, 0, 0, 0.16);
}

.elatest_posts_block .post-item-image {
    position: relative;
    margin-bottom: 30px;
    min-height: 28px;
}

.elatest_posts_block .post-item-image img {
    display: block;
    height: 140px;
    width: 100%;
    object-fit: cover;
}

.elatest_posts_block .post-item-image span {
    position: absolute;
    display: inline-block;
    background: #e10a0a;
    color: #fff;
    bottom: -14px;
    left: 6px;
    font-size: 14px;
    line-height: 28px;
    height: 28px;
    font-weight: bold;
    padding: 0 30px;
}

.elatest_posts_block h4 {
    font-size: 23px;
    color: #666666;
}

.elatest_posts_block .post-item-details,
.elatest_posts_block .post-item-details p {
    color: #000;
}

.show-for-dev {
    display: none;
}

body.dev-mode .show-for-dev {
    display: block;
}

#main-content .et_pb_slide_content {
    font-weight: 500;
}

#main-content .home-slider .et_pb_slide_content h2,
#main-content .home-slider h2.et_pb_slide_title {
    font-weight: 600;
    font-size: 55px;
    margin-top: 29px;
    margin-bottom: 29px;
}

@media only screen and (min-width: 360px) {
    #main-content .home-slider .et_pb_slide_content h2,
    #main-content .home-slider h2.et_pb_slide_title {
        font-size: 60px;
    }
}

@media only screen and (min-width: 450px) {
    #main-content .home-slider .et_pb_slide_content h2,
    #main-content .home-slider h2.et_pb_slide_title {
        font-size: 72px;
    }
}

@media only screen and (min-width: 500px) {
    #main-content .home-slider .et_pb_slide_content h2,
    #main-content .home-slider h2.et_pb_slide_title {
        font-size: 82px;
    }
}

.home-slider .et_pb_slides .et_pb_slide:before {
    display: block;
    content: '';
    position: absolute;
    background-image: url(/wp-content/uploads/2022/05/convx_arrow_red.png);
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 5;
}

.home-slider.et_pb_slider .et_pb_container {
    z-index: 6;
}


.ets-annoucement-banner {
    background: #333333;
    color: #ffffff;
    border-image: linear-gradient(to right, #e10a0a 0%, #e10a0a 100%) 1;
    border-width: 5px;
    border-style: solid;
    font-size: 18px;
    padding: 5px 0;
}

.ets-annoucement-banner h3 {
    color: #fff;
    font-weight: bold;
    text-transform: none;
    font-family: 'Roboto Condensed',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 22px;
    padding-bottom: 2px;
}

.ets-annoucement-banner .button-wrapper {
    font-size: 20px;
    font-weight: 900;
}

.ets-annoucement-banner.light {
    background: #ffffff;
    color: #000000;
}

.ets-annoucement-banner.red {
    background: #e10a0a;
    border-image: linear-gradient(to right, #000000 0%, #000000 100%) 1;
}

#top-header .ets-annoucement-banner.red a {
    color: #000;
}

.et-fixed-header .ets-annoucement-banner {
    display: none;
}

.ets-annoucement-banner .container {
    width: 90%;
}

@media only screen and (min-width: 40px) {
    .ets-annoucement-banner .container {
        display: flex;
        align-items:center;
        gap: 20px;
        justify-content:space-between;
    }
    
    .ets-annoucement-banner .message {
        border-right: 1px solid #fff;
        padding-right: 10px;
        flex-basis: 100%;
    }
    
    .ets-annoucement-banner .button-wrapper {
        padding-left: 20px;
    }
}

@media only screen and (min-width: 640px) {
    .ets-annoucement-banner .container {
        width: 80%;
    }
}

.ets-annoucement-banner .button {
    background: #e10a0a;
    color: #fff;
    padding: 5px 10px;
    transition: all 0.4s ease-in-out;
    
    &:hover {
        opacity: 0.7;
    }
}

.ets-annoucement-banner .image a,
.ets-annoucement-banner .image img {
    display: block;
}

.ets-annoucement-banner .image img {
    max-height: 80px;
    width: auto;
}

@media only screen and (min-width: 640px) {
    .ets-annoucement-banner .image img {
        max-height: 60px;
    }
}

#et-secondary-menu {
    float: none;
    display: flex !important;
    font-size: 14px;
    align-items: center;
}

#et-secondary-menu > * {
    flex-basis: 50%;
}

#et-secondary-menu .social-icon-wrapper {
    text-align: right;
}

#top-header .container {
    padding: 15px 0 10px;
}

#top-header #et-secondary-menu .et-social-icons {
    margin: 0;
}

#top-header .et-social-icon a {
    font-size: 16px;
    background: #fff;
    color: #000;
    display: inline-block;
    padding: 4px;
    border-radius: 100%;
}

@media only screen and (min-width: 40px) {
    #main-header .logo_container {
        margin-left: -4px;
    }
}