/*
* 
Theme Name:     GMI
Description:    GMI custom Divi Child Theme
Author:         Tessa Bradford | Formosa Web Services
Author URI:     https://formosawebservices.com/
Template:       Divi
Version:        1.0.907
*/


/* =Theme customization starts here
------------------------------------------------------- */

/* 2025 redesign styling */

.object-fit img {
    object-fit: cover;
}

body .et_pb_button:not(.originalicon):after {
    content: '' !important;
    background-image: url(../png/arrow-right-circle-small.png);
    font-size: 16px;
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 20px;
    bottom: 0;
    right: 5px;
}

body .et_pb_button.blacktext:not(.originalicon):after {
    background-image: url(../png/arrow-right-circle-black-small.png);
}

/*Headers*/

#topbar_code .et_pb_code_inner {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.topbar .portallogin {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wpml-ls-legacy-dropdown-click > ul:before {
    content: '';
    display: block;
    position: absolute;
    top: 3px;
    left: 0;
    background-image: url(../png/wpml-langugae-icon.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 16px;
    width: 20px;
    margin-top: 2px;
}

.wpml-ls-legacy-dropdown-click ul {
    padding: 0;
    padding-left: 20px;
}

.wpml-ls-legacy-dropdown-click a {
    border: none;
}

.topbar .wpml-ls-statics-shortcode_actions, 
.topbar .wpml-ls-legacy-dropdown-click a, 
.topbar .wpml-ls-legacy-dropdown-click .wpml-ls-current-language:hover>a, 
.topbar .wpml-ls-legacy-dropdown-click a:focus, 
.topbar .wpml-ls-legacy-dropdown-click a:hover {
    background-color: #2A3077;
}


.wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu {
    background: #2a3077;
    border-radius: 0 0 10px 10px;
}

.wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu a {
    width: 100%;
    text-align: center;
    background:transparent !important;
}

.topbar .wpml-ls-statics-shortcode_actions {
    padding: 0 10px;
    width: auto;
    display: inline-block;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 2px rgba(0,0,0,.25);
}

.wpml-ls-legacy-dropdown-click a,
.topbar .portallogin a {
    width: auto;
    display: inline-block;
    padding: 6px 10px;
    white-space: nowrap;
    transition: all .3s ease;
}

.wpml-ls-statics-shortcode_actions a,
.topbar .portallogin a {
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #FFF !important;
}

.wpml-ls-statics-shortcode_actions a:hover,
.topbar .portallogin a:hover {
    font-weight: 700;
}

.topbar .portallogin a {
    background: #4A90C5;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 2px rgba(0,0,0,.25);
}

.stylednavmenu li {
    padding: 0px 6px !important;
}

.stylednavmenu li a {
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 400 !important;
    box-shadow: 0 2px 2px rgba(0,0,0,.25);
    text-align: center;
}

.stylednavmenu .et-menu-nav>ul li .sub-menu {
    padding-bottom: 12px !important;
    border-radius: 24px;
    border: 1px solid #22265F !important;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .25) !important;
    text-align: center;
    margin-top:12px;
}

.stylednavmenu .et-menu-nav>ul li .sub-menu:before {
    display: block;
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.stylednavmenu .et-menu-nav>ul li .sub-menu a {
    background: transparent;
    padding: initial;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    margin-top: 10px;
}

.stylednavmenu.et_pb_menu .et_pb_menu__menu .et-menu-nav ul li.highlight a, 
.stylednavmenu.et_pb_menu .et_pb_menu__menu .et-menu-nav ul li.highlight a:hover {
    background-color: #EB9441 !important;
    color: #000 !important;
}

.stylednavmenu li a:hover {
    background-color: #fff !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

.stylednavmenu.et_pb_menu .et-menu-nav>ul ul {
    padding: 0;
    box-shadow: none;
}

.stylednavmenu .menu-item-has-children > a:first-child {
    padding-right: 30px !important;
}

.stylednavmenu li a:after {
    padding-top: 6px;
    padding-right: 10px;
}

/*Login Page*/

.page-id-1346 #main-content {
    width: 80%;
    max-width: 1128px;
    margin: auto;
}

.page-id-1346 #main-content .mp_login_form {
    max-width: 700px;
    margin: 24px auto;
}

/* MemberPress */

#mepr-account-nav .mepr-payments {
    display:none;
}

.entry-content > .mp_wrapper {
    padding: 2% 0;
}

.mepr-unauthorized-message,
.mepr-login-form-wrap {
    max-width: 700px;
    margin: 24px auto;
}

div#mepr-account-nav {
    margin-bottom: 0;
}

/* Gravity Forms */

body .gform_wrapper ul.gform_fields li.gfield {
    margin-top: 0;
}

.gform_wrapper form .gform_footer {
    margin-top: 0;
    padding-top: 0;
}

.gform_wrapper .gform_fields textarea, .gform_wrapper.gf_browser_chrome ul.gform_fields li.gfield select, .gform_wrapper .gform_fields input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]) {
    border: solid 1px #333;
    box-shadow: none;
    color: #666;
    font-size: 18px;
    line-height: 24px;
    height: 38px;
    margin-bottom: 14px;
    margin-top: 0;
    padding: 6px 10px;
    border-radius: 8px;
    background-color: #fff;
}

.gform_wrapper .gform_fields .ginput_container_textarea {
    max-height: 78px;
}

.gform_wrapper .gform_fields textarea {
    height: 64px;
}

.gform_wrapper .gform_footer input.button,#wp-submit {
    border-radius: 8px;
    font-size: 16px;
    padding: 6px 10px !important;
    color: #fff;
    background-color: #22265F;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .3s;
}

.gform_wrapper .gform_footer input.button:hover, #wp-submit:hover {
    font-weight:700;
}

/* bbPress Forums */

.bbpress.et_right_sidebar #left-area {
    padding-right: 0;
    width: 100%;
}

.bbpress.et_right_sidebar #sidebar,
.bbpress #main-content .container:before {
    display: none;
}

/*Responsive*/

@media (max-width: 1205px) {
    .wpml-ls-statics-shortcode_actions a, 
    .topbar .portallogin a {
        font-size: 12px !important;  
    }
}

@media (max-width: 1010px) {
    .topbar .wpml-ls-statics-shortcode_actions,
    .topbar .portallogin {
        margin-left: 2%;
    }
}

@media (max-width: 980px) {
    #topbar_code .et_pb_code_inner {
        justify-content: center;
    }
    .topbar .wpml-ls-statics-shortcode_actions,
    .topbar .portallogin a {
        border-radius: 8px;
    }
    .stylednavmenu li a {
        background: transparent;
        box-shadow: none;
        text-align: center;
    }
    .stylednavmenu .menu-item-has-children>a:first-child {
        padding-right: inherit;
    }
    .swap_col_order {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap; /* Safari 6.1+ */
        flex-wrap: wrap;
    }

    .first-on-mobile {
        -webkit-order: 1;
        order: 1;
    }

    .second-on-mobile {
        -webkit-order: 2;
        order: 2;
    }

    .swap_col_order:last-child .et_pb_column:last-child {
        margin-bottom: 30px;
    }

    /* Account Page */
    .page-id-1345 .entry-content > .mp_wrapper {
        padding-top: 4%;
    }
 
}

