/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         FÆRD
 Author URI:     https://xn--frd-yla.no/
 Template:       Divi
 Version:        1.0.0
*/


/* ------ POSITIONING ------ */
.vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ------ STACKING ------ */
@media only screen and (max-width: 980px) {
    .stacker { /* add to row */
        display: flex;
        Flex-wrap: wrap;
    }

    .first { /* add to column */
        order: 1;
    }

    .second { /* add to column */
        order: 2;
    }
}


/* ------ EMPTY COLUMNS ------ */

/* For mobile phones: */
.et_pb_column.et_pb_column_empty {
    display: block!important;
    min-height: 480px;
}



/* ------ TOP MENU ------ */
button.et_pb_menu__icon {
    padding: 0 0 0 20px;
}

/* Søk */
.et_pb_menu__close-search-button, 
.et_pb_menu__search input, 
.et_pb_menu__search input::placeholder, 
.et_pb_menu__search .et_pb_menu__search-form .et_pb_menu__search-input {
    color: #ffffff !important;
}


/* ------ TOP MENU HAMBURGER ------ */
@media (min-width: 980px) {
    .pa-hamburger-menu .et_pb_menu__menu {
        display: none;
    }
    
    .pa-hamburger-menu .et_mobile_nav_menu {
        display: flex;
        float: none;
        margin: 0 6px;
        align-items: flex-start;
    }

    .et_pb_menu .et_mobile_nav_menu li {
        list-style-type: none;
        text-align: left !important;
    }

    .et_mobile_menu li a {
        padding-right: 50px;
    }

    .et_mobile_menu {
        left: auto !important;
        right: 0;
        width: 480px;
    }

    #left-area ul, .entry-content ul, .et-l--body ul, .et-l--footer ul, .et-l--header ul {
        padding-left: 0px;
        padding-bottom: 0px;
    }

    .ham_first:not(:first-of-type) {
        background-color: #f2f2f2;
        border-top: 1px solid #707070;
    }

    .ham_second {
        font-weight: 900;
        padding-left: 8px !important;
    }

    .ham_third {
        padding-left: 16px !important;
        font-weight: normal;
    }

}

/* ------ COLLAPSE ------ */

/*** Mobile Menu Collapsing Nested Menu Items ***/
/* Modified from https://www.elegantthemes.com/blog/community/divi-mobile-menu-hack-collapsing-nested-sub-menu-items */
header .et_mobile_menu .menu-item-has-children > a { background-color: transparent; position: relative; font-weight: normal; }
header .et_mobile_menu .menu-item-has-children > a:after { font-family: 'ETmodules'; text-align: center; speak: none; font-weight: normal; font-variant: normal; text-transform: none; -webkit-font-smoothing: antialiased; position: absolute; }
header .et_mobile_menu .menu-item-has-children > a:after { font-size: 16px; content: '\4c'; top: 13px; right: 10px; }
header .et_mobile_menu .menu-item-has-children.visible > a:after { content: '\4d'; }
header .et_mobile_menu ul.sub-menu { display: none !important; visibility: hidden !important;  transition: all 1.5s ease-in-out;}
header .et_mobile_menu .visible > ul.sub-menu { display: block !important; visibility: visible !important; }










/* ------ QUICKNAV BUTTONS ------ */
.quicknav a {
    color: #ffffff;
    word-break: normal;
}

.quicknav a:hover {
    color: #ffc2a1;
}

.quicknav:after {
    content: "|";
    padding-left: 12px;
    padding-right: 12px;
}

.quicknav:last-of-type:after {
    display:none;
}

/* ------ ARROW DOWN WITH "MORE TEXT" ------ */

.more-below .et_pb_animation_top.et-animated {
    animation: none;
}

.more-below h4.et_pb_module_header {
    margin-top: -40px;
}

/* ------ NEWS GRID ------ */
.news-grid a.more-link:before, .news-list a.more-link:before {
    content: "\2192";
    padding-right: 4px;
}

.news-grid_350 .et_pb_post {
    min-height: 350px;
}

.news-grid .et_pb_post {
    min-height: 440px;
}

.news-list .et_pb_post {
    border-bottom: 1px solid #EA5300 !important;
    padding-bottom: 48px;
}

/* Feature image placement fix */
.et_pb_post .et_pb_image_container {
    margin: -19px -19px 0px -19px
}

/* ------ TEASER ------ */
.teaser .et_pb_blurb_container {
    padding: 0 24px 0 24px;
}

/* ------ FACTS BOX ------ */
.facts {
    max-width: 640px;
}


/* ------ BULLET LISTS ------ */
.et_pb_text_inner ul li:not(:last-of-type) {
    padding-bottom: 16px;
}

.contact_services ul li:not(:last-of-type) {
    padding-bottom: 4px;
}

/* ------ WP TEAMS PRO ------ */

/* Filter buttons */
.sptp-filter .button-group .button {
    border-radius: 3em;
}

/* email link */
.sptp-member-email span {
    color: #EA5300 !important;
}

.sptp-member-email span:hover {
    font-weight: 600 !important;
}

/* Location */
.sptp-member-location {
    margin-bottom: 8px !important;
}

.page-load-status .infinite-scroll-last {
    display: none !important;
}

/* Lokasjoner - avdelingsledere */
.avdelingsledere .sp-team-pro-item {
    height: 32px;
}

/* Lokasjoner google maps */
.map-responsive {
    overflow:hidden;
    padding-bottom:56.25%;
    position:relative;
    height:0;
}

.map-responsive iframe{
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
}

/* ------ FOOTER ------ */
.footer_social::before {
    font-size: 2em !important;
}