/*---------------------------------------------------------------------------------

 Theme Name:   NHBP
 Theme URI:    https://www.nhbpi.org/
 Description:  
 Author:       Pixels &Code Studio
 Author URI:   https://pixelsandcode.studio
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

------------------------------ ADDITIONAL CSS HERE ------------------------------*/


/***************************/


/**********General************/


/*************************/


/*---------- [Font Styling] ----------*/

h1,
h2 {
    font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 300 !important;
}


/* Headers */

h3,
h4,
h5,
h6 {
    font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 400;
}

body {
    font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 400;
}

p {
    font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 400;
}


/**code for rows
@media (min-width: 981px){
.et_pb_row {
   width: 95% !important;
    margin: auto;
    position: relative;
}
}
**/

@media (min-width: 981px) {
    #main-header .container {
        width: 90%;
        max-width: 1200px !important;
        margin: auto;
    }
}

@media (max-width: 1380px) {
    #main-header .container {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 1030px) {
    .et_header_style_left #et-top-navigation {
        padding-left: 200px !important;
    }
    #logo {
        max-width: 280px;
    }
}

@media (max-width: 980px) {
    .et_header_style_left #et-top-navigation {
        padding-left: 0 !important;
        width: 100%;
    }
    .et_header_style_left #et_mobile_nav_menu {
        width: 100%;
    }
    .et_header_style_left #et_mobile_nav_menu .mobile_menu_bar {
        text-align: center;
    }
}

a {
    font-weight: 500;
}


/*********Button*********/


/******reverse order mobile col*********/

@media all and (max-width: 980px) {
    /*** wrap row in a flex box ***/
    .custom_row {
        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 ***/
    .custom_row:last-child .et_pb_column:last-child {
        margin-bottom: 30px;
    }
    @media all and (max-width: 980px) {
        .custom_row:last-child .et_pb_column:last-child {
            margin-bottom: 0;
        }
    }
}


/***************************/


/**********Menu************/


/*************************/


/* MEGA MENU - first row of titles */

#top-menu li.mega-menu>ul>li>a:first-child {
    border-bottom: 1.5px solid #571b1d;
    font-weight: 500 !important;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1em;
    margin-bottom: 1vh;
    color: #252525;
}


/* sub-menu items - 2nd level */

.nav li li li a {
    font-size: 14px;
}

#top-menu li li a {
    font-weight: 400 !important;
    text-transform: none;
    letter-spacing: 0px;
    font-size: 14px;
    color: #252525;
}

@media (max-width: 1100px) {
    #top-menu li {
        padding-right: 10px;
    }
}


/* drop down menu items on hover */

.nav ul li a:hover {
    opacity: 1;
    background-color: #9797972e;
}

#top-menu li:not(.mega-menu) li ul {
    left: 160px;
    top: -3px;
}

#top-menu li.et-reverse-direction-nav:not(.mega-menu) li ul {
    right: 160px;
    left: auto;
}

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


/** App Style header and Drop Down Menu **/

@media (max-width: 980px) {
    .container.et_menu_container {
        width: calc( 100% - 60px);
    }
}

.et_mobile_menu {
    margin-left: -30px;
    padding: 5%;
    width: calc( 100% + 60px);
}

.et_mobile_menu .menu-item-has-children>a {
    font-weight: 500;
    background-color: rgba(0, 0, 0, .03);
}


/* Increase mobile menu bar height 
.et_header_style_left .mobile_menu_bar {
  padding-bottom: 85px;
}

/* Moved hamburger down 
.mobile_menu_bar:before {
  top: 35px !important;
}

/* Set the maximum height of the logo itself */

@media (max-width: 980px) {
    .et_header_style_left #logo {
        max-height: 90% !important;
    }
}

@media (max-width: 980px) {
    .et_header_style_left #logo,
    .et_header_style_split #logo {
        max-width: 85%;
        margin-left: -18px;
    }
}


/*add a word beside the hamburger menu*/

span.mobile_menu_bar.mobile_menu_bar_toggle:after {
    content: 'Menu';
    position: absolute;
    left: -50px;
    bottom: 42px;
    font-weight: 500 !important;
    cursor: pointer;
    color: inherit;
    font-size: 1rem;
    font-weight: normal;
}

@media (max-width: 980px) {
    span.mobile_menu_bar.mobile_menu_bar_toggle:after {
        left: calc(50% - 45px);
        bottom: 18px;
    }
    .mobile_menu_bar:before {
        margin-right: -40px;
    }
    .mobile_menu_bar {
        padding-bottom: 0 !important;
    }
}

@media all and (max-width: 980px) {
    /* add padding to header bar */
    .et_header_style_left #main-header {
        padding: 20px 0;
    }
    /* change logo positioning and set its height */
    .et_header_style_left header#main-header .logo_container,
    .et_header_style_left .logo_container {
        position: relative;
        height: auto;
        max-height: 100px;
        padding: 0;
        text-align: center;
    }
}


/*change Divi hamburger menu to X*/

.mobile_nav.opened .mobile_menu_bar:before {
    content: '\4d';
}


/********* Mobile Menu Collapse ********/


/**** This hides the sub menu items on mobile ****/

#main-header .et_mobile_menu li ul.hide {
    display: none !important;
}

span.menu-closed.menu-open:before {
    content: "\4d";
    color: #252525;
}


/***member menu item***/

@media (min-width: 1380px) {
    li.menu-home.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-7453 {
        padding-left: 35px;
    }
}

#top-menu li a,
.et_search_form_container input {
    font-weight: 500 !important;
}

@media only screen and (min-width: 981px) {
    #logo {
        padding-top: 10px;
    }
}

.menu-home a:before {
    font-family: 'ETmodules';
    content: "\e08a";
    margin-right: 8px;
    margin-top: -2px;
    color: #252525;
    background-color: transparent;
    font-size: 14px;
    float: left;
}

@media only screen and (max-width: 980px) {
    .menu-home:before {
        margin-top: 8px;
    }
}


/****Tabs****/


/* Divi Vertical Tabs 1 */

.vertical-tabs1 {
    border: none;
}

.vertical-tabs1 ul.et_pb_tabs_controls {
    float: left;
    width: 30%;
    margin-right: 3%;
    background: transparent;
}

.vertical-tabs1 ul.et_pb_tabs_controls:after {
    content: none;
}

.vertical-tabs1 .et_pb_tabs_controls li {
    width: 100%;
    border-right: none !important;
    border-left: 2px solid transparent;
    background: #fafafa;
}

.vertical-tabs1 .et_pb_tabs_controls li.et_pb_tab_active {
    border-left: 2px solid #14a9a2 !important;
    background: #ffffff;
}

.vertical-tabs1 .et_pb_tabs_controls li a {
    padding: 20px;
}

.vertical-tabs1 .et_pb_tabs_controls li.et_pb_tab_active a {
    color: #14a9a2 !important;
}

.vertical-tabs1 .et_pb_tab {
    padding: 0;
}

.vertical-tabs1 .et_pb_tab_content {
    display: flex;
    flex-wrap: wrap;
}


html .vertical-tabs1 .et_pb_tabs_controls li a {
    display: block;
}

@media(max-width:767px) {
    .vertical-tabs1 ul.et_pb_tabs_controls {
        width: unset;
        margin-bottom: 30px;
        margin-right: -5px;
        margin-left: -5px;
        display: flex;
        flex-wrap: wrap;
    }
    .vertical-tabs1 .et_pb_tabs_controls li {
        border-bottom: none;
        flex: 1 1 33%;
        margin: 5px;
    }
    .vertical-tabs1 .et_pb_tab {
        padding: 0;
    }
    .vertical-tabs1 .et_pb_tab_content {
        display: block;
    }
}


@media (max-width: 568px) {
    html .vertical-tabs1 .et_pb_tabs_controls li a {
        font-size: 14px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}


/*---------- [Equalise the Tabs] ----------*/

.equal-tabs .et_pb_tabs_controls li {
    width: 50%;
    /*change width of tabs here depending on the number of tabs you have*/
    text-align: center;
}

@media screen and (max-width: 768px) {
    /*change device breakpoint here depending on the number of tabs you have*/
    .equal-tabs .et_pb_tabs_controls li {
        width: 100%;
        text-align: center;
    }
}


/**footer menu**/

@media (max-width: 479px) {
    .widget_nav_menu li a {
        position: relative;
        display: table;
        line-height: 1.8em !important;
        font-size: 1rem !important;
    }
}


/** Waseyabek **/

.nhbp-waseyabek h1 {
    position: relative;
}

.nhbp-waseyabek h1::before {
    content: '';
    position: absolute;
    background: url('https://wordpress-348940-1461786.cloudwaysapps.com/wp-content/uploads/2017/06/Waseyabek_icon.png');
    background-repeat: no-repeat;
    background-size: 35px 34px;
    width: 35px;
    height: 34px;
    left: -43px;
    top: 5px;
}

@media all and (max-width: 980px) {
    .nhbp-waseyabek h1::before {
        background-size: 30px 31px;
        width: 30px;
        height: 31px;
        left: -40px;
        top: 5px;
    }
}

@media all and (max-width: 767px) {
    .nhbp-waseyabek h1::before {
        background-size: 21px 22px;
        width: 21px;
        height: 22px;
        left: -26px;
        top: 3px;
    }
}


@media (max-width: 479px) {
    .et_pb_row{
       width: calc(100% - 32px);
    }
}