@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/*
 Theme Name:   APS Theme v.2
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/*********** APS THEME - CUSTOM STYLES ***********/

/* Table of Contents:
 * 1 - Global Styles
 * 2 - Typography
 * 3 - Design Elements
        3A - Buttons
        3B - List Styling
        3C - Table Styling
        3D - Tabs
 * 4 - Header Area
 * 5 - Navigation
 * 6 - Custom Post Styling
 * 7 - Constant Contact Email Signup
 * 8 - Hustle pop-up styling 
 * 9 - Custom TA Page Styling
 * 10 - Homepage Carousel
 * 11 - Footer
 */



/*///////////////////////////////////////////// 1. GLOBAL STYLES /////////////////////////////////////////////*/

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color:  #222;
}

.elementor-widget:not(:last-child) {
    margin-bottom: 10px !important;
}

/* Hide Page Title */
header.entry-header {
    display: none;
}


/*///////////////////////////////////////////// 2. TYPOGRAPHY /////////////////////////////////////////////*/

h1.elementor-heading-title, h1, 
h2.elementor-heading-title, h2, 
h3.elementor-heading-title, h3, 
h4.elementor-heading-title, h4, 
h5.elementor-heading-title, h5, 
h6.elementor-heading-title, h6, 
p.elementor-heading-title, p {
    font-family: 'Lato', sans-serif;
    line-height: 1.4;
}

h1.elementor-heading-title, h1,
h2.elementor-heading-title, h2,
h3.elementor-heading-title, h3,
h4.elementor-heading-title, h4 {
    font-weight: 700;
}

h4, h5, h6 {
    margin-bottom: 5px;
}

h1.elementor-heading-title, h1 {
    font-size: 40px;
}

h2.elementor-heading-title, h2 {
    font-size: 32px;
}

h3.elementor-heading-title, h3 {
    font-size: 22px;
}

h4.elementor-heading-title, h4 {
    font-size: 17px;
}

h5.elementor-heading-title, h5 {
    font-size: 16px;
}

h6.elementor-heading-title, h6 {
    font-size: 14px;
}

p.elementor-heading-title, p {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.5;
}


/***** Links *****/
a, a:link, a:active, a:visited {
    color: #0073B1;
}

/* Hover */
a:hover, a:focus, a label:hover, a label:focus, 
.elementor a:hover, .elementor a:focus {
    color: #0073B1;
}



/*///////////////////////////////////////////////////// 3. DESIGN ELEMENTS ///////////////////////////////////////////////////////*/


/*//////////////////////////////////////////// 3A: Buttons ////////////////////////////////////////////*/

a.elementor-button {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    border-radius: 0;
}


/*********** Default Button (White with chevron) ***********/
a.elementor-button-link.elementor-button {
    padding: 5px 0;
    background-color: transparent;
    color: #0073B1;
    border-bottom: 1px solid transparent;
}

.elementor-button-text::after {
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    margin-left: 7px;
    font-weight: 600;
    font-size: 13px;
}

a.elementor-button-link.elementor-button:hover,
a.elementor-button-link.elementor-button:focus {
    background-color: transparent !important;
    border-bottom-color: #0073B1;
}


/*********** Info Button (White with no chevron) ***********/
.elementor-element.elementor-button-info .elementor-button {
    background-color: #FFF !important;
    padding: 12px 20px;
    color: #0073B1;
    font-weight: bold;
    font-size: 16px;
    border-radius: 4px;
    border: none;
}

.elementor-button-info .elementor-button-text::after {
    content: none;
}

.elementor-element.elementor-button-info .elementor-button:hover,
.elementor-element.elementor-button-info .elementor-button:focus {
    background-color: #FFF !important;
}


/*********** Success Button ***********/
.elementor-element.elementor-button-success .elementor-button {
    background-color: #0073B1 !important;
    padding: 12px 20px;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    border-radius: 4px;
    border: none;
}

.elementor-button-success .elementor-button-text::after {
    content: none;
}

.elementor-element.elementor-button-success .elementor-button:hover,
.elementor-element.elementor-button-success .elementor-button:focus {
    background-color: #005685 !important;
    border-bottom-color: #005685;
}

/*********** Custom Class ***********/
.w-100 .elementor-button {
    width: 100%;
}


/*//////////////////////////////////////////// 3B: List Styling ////////////////////////////////////////////*/

/************** Basic List Styling **************/
.elementor-row ul, .elementor-row ol {
    margin-top: 10px !important;
}

.elementor-row ul li, 
.elementor-row ol li {
    margin: 0 0 10px;
    line-height: 1.4;
    font-size: 15px;
}

article.post ol, 
article.post ul {
    margin-bottom: 25px;
}

article.post li {
    margin-bottom: 10px;
}


/************** Icon List **************/

/* List item */
li.elementor-icon-list-item a {
    margin: 0 0 10px 20px;
}

/* Icon */
.elementor-widget-icon-list .elementor-icon-list-icon i {
    color: #0073B1 !important;
    position: relative;
    top: 1px;
    width: 22px !important;
}



/*//////////////////////////////////////////// 3C: Table Styling ////////////////////////////////////////////*/

table {
    margin: 10px 0 25px;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 10px;
    color: #000;
    font-size: 15px;
}

table th {
    background-color: #0073B1;
    font-weight: 500;
    border: 1px solid #006ba4;
    color: #fff;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

/* Fix for "Data Table" Styling */
@media (max-width: 767px) {
    .eael-data-table a {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
}


/***** Custom styling for Distributor Table on Instant Discounts page *****/

.company-name {
    font-weight: 700;
}

@media (max-width: 767px) {
    .company-name {
        font-weight: 900;
        background-color: #0091D6 !important;
    }
        
    .company-name a {
        color: #fff !important;
    }

    .th-mobile-screen {
        display: none !important;
    }
}



/*//////////////////////////////////////////// 3D: Tabs ////////////////////////////////////////////*/


/* Tab titles */
.eael-advance-tabs .eael-tabs-nav ul li {
    background-color: #0073B1 !important;
    color: #fff !important;
    font-weight: 600;
}

.eael-advance-tabs .eael-tabs-nav ul li:hover, 
.eael-advance-tabs .eael-tabs-nav ul li:focus,
.eael-advance-tabs .eael-tabs-nav ul li.active:hover,
.eael-advance-tabs .eael-tabs-nav ul li.active:focus {
    color: #fff !important;
}

/* Active Tab */
.eael-advance-tabs .eael-tabs-nav ul li.active {
    background-color: #0091D6 !important;
    color: #fff !important;
}

/* Content */
.eael-tabs-content {
    padding: 10px;
    background-color: #fff;
}

/* Image Thumbnail List */
.eael-tabs-content a img,
.elementor-accordion-item a img {
    -webkit-box-shadow: 1px 1px 5px 1px rgb(0 0 0 / 20%);
    -moz-box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.2);
    box-shadow: 1px 1px 5px 1px rgb(0 0 0 / 20%);
}



@media (max-width: 1065px) and (min-width: 768px) {
    .mm-tabs .eael-tabs-nav li {
        min-height: 77px;
    }
}

@media (max-width: 767px) {
    .eael-advance-tabs .eael-tabs-nav ul li {
        width: 100%;
    }
}




/*///////////////////////////////////////////// 4. HEADER AREA /////////////////////////////////////////////*/

/*********** Header Body ***********/
.site-header {
    box-shadow: 0 0 4px 0 rgb(0 0 0 / 20%);
    -moz-box-shadow: 0 0 4px 0 rgba(0,0,0,.2);
    -webkit-box-shadow: 0 0 4px 0 rgb(0 0 0 / 20%);
    top: 0;
    position: sticky;
    z-index: 1000;
}

.inside-header {
    padding: 10px;
}

.site-logo {
    margin-left: 10px;
}


/*********** Hiding Featured image in title area ***********/
.featured-image.page-header-image.grid-container.grid-parent {
    display: none;
}




/*///////////////////////////////////////////// 5. NAVIGATION /////////////////////////////////////////////*/

/*********** Menu Item ***********/
.main-navigation .main-nav ul li a {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 48px;
    border-bottom: 3px solid transparent;
    padding: 0;
    margin-right: 25px;
    color: #222 !important;
    font-weight: bold;
    transition: 0.5s;
}

.menu-item-has-children .dropdown-menu-toggle {
    padding-right: 0;
}

/*********** Selected, Hover & Focus ***********/
@media (min-width: 769px) {
    .main-navigation .main-nav ul li.current-menu-item a,
    .main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a, 
    .main-navigation .main-nav ul li a:hover,
    .main-navigation .main-nav ul li a:focus {
        border-bottom-color: #222;
        color: #222;
    }
}

/***************** Login Button *****************/

@media (min-width: 1431px) {
    #menu-main-navigation li.member-login a {
        background-color: #0073B1;
        color: #fff !important;
        padding: 10px 30px;
        margin: -10px -10px -10px 5px;
    }

    #menu-main-navigation li.member-login a:hover,
    #menu-main-navigation li.member-login a:focus {
        border-bottom-color: transparent;
    }
}

/***************** Smaller screens and Tablet *****************/

@media (min-width: 769px) and (max-width: 1430px) {
    .main-navigation .main-nav ul li a {
        font-size: 15px;
        line-height: 48px;
        border-bottom: 3px solid transparent;
        padding: 0;
        margin: 0 0 0 25px;
        font-weight: normal;
      }
}

/*********** Mobile Menu ***********/
@media (max-width: 768px) {
    .inside-header {
        padding: 0;
    }

    .has-inline-mobile-toggle #site-navigation.toggled {
        margin-top: 0;
    }

    .main-navigation .menu-toggle {
        background-color: #fff !important;
        color: #222 !important;
        font-size: 24px;
    }

    .main-navigation .main-nav ul li a, 
    .main-navigation .main-nav ul li.current-menu-item a {
        border-bottom: 1px solid #eee;
        font-size: 18px;
        line-height: 3.5;
        padding: 0 20px;
        background-color: #fff;
        margin-right: 0;
    }

    .main-navigation .main-nav ul li.current-menu-item a,
    .main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a, 
    .main-navigation .main-nav ul li a:hover,
    .main-navigation .main-nav ul li a:focus {
        border-bottom-color: #eee;
    }
}




/*///////////////////////////////////////////// 6. CUSTOM POST STYLING /////////////////////////////////////////////*/

/*********** Post Body ***********/

body.single-post .container .content-area, 
body.single-post .container .widget-area section {
    background-color: #fff;
    margin-top: 25px;
}


/*********** Post Title ***********/

article.post .entry-header {
    display: block;
}

.navigation.post-navigation,
.post .entry-meta {
    display: none;
}

article.post .entry-header h1.entry-title {
    font-size: 36px;
    border-bottom: none;
    margin: 20px 0 0;
    padding-bottom: 0;
    font-weight: bold;
}


/*********** Post Text ***********/

article.post h2, article.post h3 {
    font-size: 22px !important;
}

article.post p {
    margin-bottom: 20px !important;
    font-size: 1rem !important;
}

article.post ol, 
article.post ul {
    margin-bottom: 25px;
}

article.post li {
    margin-bottom: 10px;
}


/*********** Recent Posts Sidebar ***********/

/* Widget Body */
.widget.widget_recent_entries {
    padding: 40px;
    margin-top: 25px;
    margin-left: 25px;
}

/* Widget Title */
.widget .widget-title {
    font-size: 17px !important;
    background-color: #0073B1;
    color: #fff;
    font-weight: bold;
    padding: 10px;
    margin: -10px -10px 10px;
}

/* Article Titles */
.sidebar .widget.widget_recent_entries a {
    text-decoration: none;
    margin-bottom: 15px;
    display: block;
}


@media (max-width: 768px) {
    body.single-post .container .content-area, 
    body.single-post .container .widget-area section {
        margin-top: 0;
    }

    .widget.widget_recent_entries {
        margin-left: 0;
    }
}


/*********** Related Posts ***********/

#jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title {
    margin-top: 5px;
}

#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a {
    font-weight: 700;
    font-size: 17px;
    color: #000;
    line-height: 1.4;
}

@media (max-width: 767px) {
    #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
}



/*///////////////////////////////////////////////////// 7. CONSTANT CONTACT EMAIL SIGNUP ///////////////////////////////////////////////////////*/

/* Form Body */
.ctct-form-defaults {
    padding: 0 !important;
}

/* Label */
.ctct-form-label {
    color: #333 !important;
    font-family: Lato, Sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}

.ctct-form-label.ctct-form-required {
    margin-left: 10px;
}

/* Input Field */
div.ctct-form-embed form.ctct-form-custom input.ctct-form-element {
    height: 40px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 8px !important;
    border: 1px solid #ccc !important;
    font-family: Lato, Sans-serif !important;
    font-size: 17px !important;
}

/* Submit button */
div.ctct-form-embed form.ctct-form-custom button.ctct-form-button {
    height: 35px;
    padding: 0 !important;
    font-weight: 600;
    font-size: 17px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    font-family: Lato, Sans-serif !important;
}

/* Hide Disclaimer Text and CC branding*/
p.ctct-gdpr-text, p.ctct-form-footer {
    display: none;
}

/* Custom styling for the "Join our Mailing List" Signup */
.custom-cc label {
    font-size: 14px !important;
    margin: 5px 0 5px 10px;
}



/*///////////////////////////////////////////////////// 8. HUSTLE POP-UP STYLING ///////////////////////////////////////////////////////*/


@media (max-width: 767px) {
    .hustle-ui.module_id_2 .hustle-layout .hustle-content {
        padding: 0 20px 0 20px !important;
    }
    
    .hustle-ui.module_id_2 .hustle-layout .hustle-title {
        margin: -15px 0px 20px 0px !important;
    }
    
    .hustle-ui.module_id_2 .hustle-layout .hustle-group-content p:not([class*="forminator-"]) {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}



/*///////////////////////////////////////////////////// 9. Custom TA Page Styling ////////////////////////////////////////////*/

/* Header section */
.custom-ta-header {
    background-image: url(/wp-content/uploads/custom-ta-header-v2.jpg);
    height: 183px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
}

.ta-logo {
    margin-top: -20px;
    margin-bottom: 10px;
}

.ta-logo img {
    max-height: 170px;
    width: auto;
    max-width: 450px !important;
    background-color: #fff;
    border: 10px solid #fff !important;
}

.page-title h1 {
    margin-top: -10px;
}

/* Sidebar Body */
.custom-ta-sidebar {
    background-color: #fff;
}

.custom-ta-sidebar .elementor-widget-wrap {
    background-color: #0081c6 !important;
    margin: 15px 30px 30px 0;
    padding: 20px !important;
    color: #fff;
    border-radius: 10px;
}

/* Sidebar Text */
.custom-ta-sidebar h3 {
    text-align: center;
    font-size: 24px;
    border-bottom: 1px solid #fff;
    padding-bottom: 15px;
    margin-bottom: 10px;
    line-height: 1;
}

.custom-ta-sidebar h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Contact Information Table */
.contact-table .td-content {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    padding: 0 5px 10px;
    font-weight: 600;
    line-height: 1.25;
}

/* Buttons */
.custom-ta-sidebar .ta-buttons .elementor-widget-wrap {
    padding: 0 !important;
}

@media (max-width: 1199px) {
    .custom-ta-header {
        height: 150px;
    }
    
    .custom-ta-sidebar .elementor-widget-wrap {
        margin: 35px;
    }
}

@media (max-width: 767px) {
    .custom-ta-header {
        height: 80px;
    }

    .custom-ta-sidebar .elementor-widget-wrap {
        margin: 20px;
    }

    .contact-table .td-content, 
    .contact-table .td-content p a {
        text-align: center !important;
        display: block;
    }
}





/*///////////////////////////////////////////// 10. HOMEPAGE CAROUSEL /////////////////////////////////////////////*/

/* Carousel Body */
.carousel-item {
    height: 350px;
    background-size: cover;
    width: 100%;
}


/* Background Images */
.slide-1 {
    background-image: url("https://www.s4btradeally.com/wp-content/uploads/2022/01/learning-hub-banner-web.jpg");
}

.slide-2 {
    background-image: url("https://www.s4btradeally.com/wp-content/uploads/2022/01/homepage-banner-web.jpg");
}

.slide-3 {
    background-image: url("https://www.s4btradeally.com/wp-content/uploads/2023-energy-star-award-banner-web.jpg");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Text and Text Boxes */
.carousel-caption {
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-1 h2 {
    font-family: 'Montserrat';
    line-height: 1.4;
    font-weight: 600;
}

.slide-2 h2, .slide-2 p {
    color: #333;
}

.slide-2 h2 {
    font-weight: bold;
    font-size: 2rem;
}

.slide-2 p {
    font-size: 17px;
}

.slide-2 .bg {
    background-color: #fffffff2;
    padding: 30px;
    border-radius: 5px;
}

@media (min-width: 1300px) {
    .text-box {
        width: 75%;
    }
}

/* Hover Controls */
.carousel-control-prev:hover, .carousel-control-prev:focus {
    background: -webkit-linear-gradient(left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

.carousel-control-next:hover, .carousel-control-next:focus {
    background: -webkit-linear-gradient(left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}




/*///////////////////////////////////////////// 11. FOOTER /////////////////////////////////////////////*/

/*********** Footer Body ***********/
.site-footer {
    margin-top: 70px;
}

.footer-widgets-container {
    padding: 50px 0 70px;
}

/*********** Footer Text ***********/
.inside-footer-widgets p, 
.inside-footer-widgets a,
.footer-widget a {
    font-size: 14px;
    line-height: 1.8;
}

.inside-footer-widgets a {
    text-decoration: none;
}


/*********** Icons ***********/
span.social-icon-label {
    display: none;
}

.social-icons a {
    margin: 15px 12px 0 0;
    display: inline-flex;
}

.footer-widget i {
    font-size: 30px;
    color: #333;
}

/*********** Copyright Bar ***********/
footer.site-info {
    background-color: #fff;
    color: #333;
    border-top: 1px solid #eee;
}

.inside-site-info {
    padding: 20px 0;
    justify-content: flex-start;
}

.copyright-bar, 
.site-footer:not(.footer-bar-active) .copyright-bar {
    margin: 0 !important;
}

/* Hide Generate Press text */
.copyright-bar, .copyright-bar a {
    color: #fff;
}

.copyright-bar span {
    color: #333;
    font-size: 13px;
}


/*********** Responsive ***********/
@media (max-width: 1250px) {
    .footer-widgets-container {
        padding: 50px 30px 100px;
    }

    .inside-site-info {
        padding: 20px 30px;
    }
}