/*
 Theme Name:   PMH
 Theme URI:    http://enticity.ca
 Description:  Divi Child Theme	
 Author:       Roman Barz
 Author URI:   http://barz.ca
 Template:     Divi
 Text Domain:  enticity
*/

p a,
.bluebox a,
.et_pb_widget a,
.entry-content h2 a {
    text-decoration: underline !important;
}

.bluebox a {
    color: #fff;
}

.et_pb_button {
    text-decoration: none !important;
}

#top-header {
    z-index: 99998;
}

#top-header .container {
    padding-top: 0;
    font-weight: 300;
}

#top-header .container .wpml-ls {
    display: inline-block;
}

#top-header .container a {
    font-weight: normal;
}

#top-header .container a:hover {
    opacity: 0.8;
}

#main-header {
    top: 41px !important;
}

.logged-in #main-header {
    top: 73px !important;
}

.widget_recent_entries {
    line-height: 1.2em;
}

.widget_categories li,
.widget_archive li,
.widget_recent_entries li {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
}

.et-fixed-header #top-menu li.current-menu-ancestor>a,
.et-fixed-header #top-menu li.noactive.current_page_item>a {
    color: blue;
}

.more-link {
    display: inline-block;
    padding: 2px 10px;
    color: #fff;
    background: #000000;
    border-radius: 2px;
    text-transform: uppercase;
    font-size: 0.9em;
    margin-top: 8px;
}

.home-blog .et_pb_post {
    /* min-height:550px; */
}

.social-center {
    text-align: center;
}

.social-center li {
    float: none;
    display: inline-block;
    margin: 5px auto;
}


/* FORM */

.contactform input[type="text"],
.contactform input[type="tel"],
.contactform input[type="email"],
.contactform textarea {
    width: 100%;
    padding: 16px;
    border: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    color: #444;
    background-color: #fff;
    font-size: 14px;
}

.contactform textarea {
    height: 120px;
}

.contactform p:nth-child(2),
.contactform p:nth-child(3),
.contactform p:nth-child(4),
.contactform p:nth-child(5) {
    width: 49%;
    float: left;
}

.contactform p:nth-child(2),
.contactform p:nth-child(4) {
    margin-right: 2%;
}

.contactform .wpcf7-quiz-label {
    color: #fff;
}

.contactform input[type="text"].wpcf7-quiz {
    max-width: 160px;
}

.contactform span.wpcf7-not-valid-tip {
    font-size: 0.7em;
}

.contactform div.wpcf7-response-output {
    border: none !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    margin-left: 0;
    margin-right: 0;
    padding: 15px 20px !important;
}

.contactform .wpcf7-submit.et_pb_button {
    border-color: #fff !important;
    color: #fff !important;
}


/* Menu */

.nav li ul {
    width: 300px;
    padding: 0;
}

#top-menu li li {
    padding: 0;
    border-top: 1px solid #ccc;
}

#top-menu li li:first-child {
    border-top: none;
}

#top-menu li li a {
    width: 300px;
    padding: 6px 20px;
    text-transform: none;
}

#top-menu.nav li ul,
.et_primary_nav_dropdown_animation_fade #et-top-navigation ul li:hover>ul {
    transition: none;
}


/* Mobile Menu */

#main-header .et_mobile_menu .menu-item-has-children>a {
    background-color: transparent;
    position: relative;
}

#main-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;
}

#main-header .et_mobile_menu .menu-item-has-children>a:after {
    font-size: 16px;
    content: '\4c';
    top: 13px;
    right: 10px;
}

#main-header .et_mobile_menu .menu-item-has-children.visible>a:after {
    content: '\4d';
}

#main-header .et_mobile_menu ul.sub-menu {
    display: none !important;
    visibility: hidden !important;
    transition: all 1.5s ease-in-out;
}

#main-header .et_mobile_menu .visible>ul.sub-menu {
    display: block !important;
    visibility: visible !important;
}


/* Accessibility */

.access-toolbar {
    display: inline-block;
    padding: 4px 0 9px 0;
}

.access-toolbar .a11y-toolbar-widget {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
    margin: 0 10px;
    font-size: 1em;
}

.access-toolbar .a11y-toolbar-widget ul li {
    margin: 0;
    padding: 0;
    display: inline-block;
    font-size: 1.7em;
    vertical-align: bottom;
}

.access-toolbar .a11y-toolbar-widget ul li button {
    padding: 2px 5px;
    overflow: hidden;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

.access-toolbar .a11y-toolbar-widget ul li button .aticon::before {
    vertical-align: bottom;
}

.access-toolbar .a11y-toolbar-widget ul li button .offscreen {
    position: absolute;
    top: -1000px;
}

.et_pb_blog_grid .et_audio_content,
.et_pb_blog_grid .et_main_video_container,
.et_pb_blog_grid .et_pb_post .et_pb_slider,
.et_pb_image_container {
    margin: -19px -19px 29px;
}

.contrast .logo_container a,
.contrast .logo_container a:hover {
    background: url('/files/uploads/PMH-ENGLISH-WHITE-72.png') !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    display: inline-block;
    min-height: 100%;
}

.contrast .logo_container a img {
    visibility: hidden;
    opacity: 0;
}


/* Custom Blog List */

.custom-posttype-list {
    text-align: center;
}

.custom-posttype-list ul {
    list-style-type: none;
    padding: 0;
}

.custom-posttype-list ul li {
    width: 29%;
    display: inline-block;
    vertical-align: top;
    text-align: left;
}

.custom-posttype-list .et_overlay {
    background-color: rgba(2, 2, 2, 0.3);
}

.custom-posttype-list .et_overlay::before {
    color: #ffffff !important;
}

.custom-posttype-list ul li:nth-child(3n+2) {
    margin-left: 5%;
    margin-right: 5%;
}

.custom-posttype-list ul li .et_pb_image_container {
    margin: -19px -19px 29px;
}

.custom-posttype-list ul li article {
    border: none !important;
    background-color: #edf3f4 !important;
    text-align: center;
}


/* Link Boxes */

.box-resources {
    width: 24%;
    margin: 0 1% 10px 0;
    background-color: #0162b0;
    background-size: cover;
    float: left;
    min-width: 200px;
}

.box-resources a {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 180px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    line-height: 1.2em;
}

.box-resources.bgimage a {
    background-color: rgba(0, 0, 0, 0.3);
}

.box-resources a:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.box-resources.bgimage a:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.box-resources a::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

.box-resources a span {
    display: inline-block;
    vertical-align: middle;
}

.box-resources a i {
    margin-top: 10px;
    font-size: 2em;
    display: block;
}

.box-resources a i:before {
    display: block;
}


/* Resources */

.single-resources #main-content .container::before {
    display: none !important;
}

.single-resources .entry-content {
    margin-bottom: 60px;
}

.file-container {
    overflow: hidden;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e4e4e4;
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.file-container .file-wrapper {
    /*
    position: relative;
    overflow: hidden;
    width: 300px;
    float: left;
    margin-right: 40px;
    */
    margin-bottom: 20px;
    background-color: #fff;
    width: 30%;
}

.file-container .file-details {
    width: 70%;
    padding-left: 2em;
}

.file-container .file-details .resource_note {
    background-color: #eee;
    color: #387885;
    padding: 10px;
    margin: 2em 0;
}

.file-container .file-wrapper .file-image a {
    display: block;
}

.file-container .file-wrapper img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    border: 1px solid #ddd;
}

.file-container .excerpt {
    margin-bottom: 30px;
}

.file-container .et_pb_button,
.file-container .et_pb_button:hover {
    padding: .6em 1em 0.3em !important;
}


/* Resources  Module List */

ul.module-list,
ul.module-list li {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

ul.module-list li {
    display: inline-block;
    vertical-align: top;
    width: 30%;
    padding: 15px;
}

ul.module-list li a {
    text-decoration: none;
}

ul.module-list li h4 {
    font-weight: 600;
    font-size: 1.2em;
    color: #0162b0;
}

ul.module-list li img {
    max-width: 100%;
}


/* Resouces Grid */

.resources-grid ul,
.resources-grid li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.resources-grid li {
    display: inline-block;
    vertical-align: top;
    width: 22%;
    margin-right: 3%;
    margin-bottom: 15px;
    background-color: #edf3f4;
}

.resources-grid li a {
    display: block;
    position: relative;
    padding: 30px 10px;
    text-align: center;
    color: #2d445d !important;
}

.resources-grid li a img {
    display: block;
    margin: 0;
    width: 100%;
    height: auto;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.resources-grid li a .grid-thumb {
    margin: 0 30px 15px;
    display: block;
    position: relative;
}

.resources-grid li a .grid-thumb>.grid-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -19px;
    color: #2d455d;
    z-index: +9;
    font-size: 50px !important;
    transition: all 0.5s ease;
}

.resources-grid li a:hover img {
    opacity: 0.7;
}


/* Pillars */

.pillars-wrap,
.pillars-section {
    display: block;
    clear: both;
    font-family: "Open Sans", Arial, sans-serif;
}

.pillars-wrap .pillars-section>div {
    width: 100%;
    background-color: #4B7B95;
    /*#81a8bf; */
    border-radius: 15px;
    color: #fff;
    font-size: 1.3em;
    text-align: center;
    margin: 10px 0;
    padding: 20px;
    box-sizing: border-box;
    font-weight: 600;
    transition: all 0.5s ease;
}

.pillars-wrap .pillars-section>div div.bg {
    display: none;
}

.pillars-wrap .pillars-section>div.pillar:hover {
    opacity: 0.8;
}

.pillars-wrap .pillars-section>div.pillars-section-title {
    border-radius: 0;
    clear: both;
    text-transform: uppercase;
    padding: 10px 20px;
    font-size: 1.6em;
}

.pillars-wrap .pillars-section>div img {
    display: block;
    margin: 10px auto;
}

.pillars-wrap .pillars-section>div a {
    color: #fff;
    font-weight: 600;
    display: block;
}

.pillars-wrap #pillars-development>div {
    background-color: #377781;
    /*#428e99;*/
}

.pillars-wrap #pillars-foundations>div {
    background-color: #2d455d;
}


/* Articles */

#articles {
    clear: both;
    margin-bottom: 60px;
}

#articles ul,
#articles li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#articles li {
    padding: 30px 0;
    border-top: 1px dotted #ddd;
}

#articles li:first-child {
    border: none;
}

#articles .spacer {
    overflow: hidden;
    height: 20px;
    clear: both;
}

#articles .goal {
    width: 50px;
    height: 50px;
    margin: 10px 20px 10px 0;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
    float: left;
}

#articles .goal img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

#articles .article-box {
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

#articles .article-box h2 {
    display: block;
    font-size: 2em;
    font-weight: 300;
    color: #333;
    display: block;
    background-color: #eee;
    padding: 10px 30px;
    margin: 0;
    cursor: pointer;
    position: relative;
    line-height: 1em;
}

#articles .article-box h2 i {
    position: absolute;
    top: 12px;
    right: 10px;
    color: #ccc;
    display: inline-block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: ETmodules;
    font-weight: 400;
    font-style: normal;
    font-variant: normal;
    -webkit-font-smoothing: antialiased;
    line-height: 1;
    text-transform: none;
    speak: none;
}

#articles .article-box h2 i::before {
    content: "P";
}

#articles .article-box.active h2 i::before {
    content: "O";
}

#articles .article-box .details {
    display: none;
    margin: 15px 10%;
    transition: all 0.5s ease;
}

#articles .article-box.active .details {
    display: block;
}

.articlefilter {
    float: right;
    margin: 10px;
}

.articlefilter select,
.articlesearch input {
    padding: 8px;
    border: 1px solid #ccc;
    max-width: 100%;
}

.articlefilter .clearfilter {
    display: none;
    color: rgb(255, 255, 255);
    padding: 3px;
    vertical-align: middle;
    border: medium none;
    background: #ccc;
    font-size: 1.8em;
}

.articlesearch {
    float: left;
    margin: 10px;
}

.articlefilter .expand {
    color: #0079c2;
    padding: 8px;
    vertical-align: middle;
    border: medium none;
    background: #fff;
    border: none;
    font-size: 1em;
}

body.single-articles #main-content .container::before {
    display: none;
}

body.single-articles article {
    margin-bottom: 50px;
}

.single .et_post_meta_wrapper img,
.archive article.post img {
    max-width: 250px;
    float: left;
    margin-right: 20px;
}

.single .et_post_meta_wrapper {
    overflow: hidden;
    margin-bottom: 40px;
}

.archive .post .post-content {
    clear: both;
    padding-top: 20px;
}

.archive .post {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
}

header.blog-title {
    padding-bottom: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
}


/* Accessibility Fixes */

.et-search-form .search_button {
    width: 100px;
    cursor: pointer;
    height: 30px;
    background: #eee;
}

.et_pb_newsletter_form label,
.sr-only {
    display: block !important;
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sr-only {
    background: #fff;
    color: #000;
}


/*
a.skip-main {
    left: -10000px;
    position: absolute;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
    background: #ffffff;
    color: #000000;
}
*/

a.skip-main {
    position: absolute;
    top: auto;
    left: auto;
    right: auto;
    top: 0;
    width: auto;
    height: auto;
    z-index: 1;
    overflow: visible;
    padding: 7px;
    background: #377781;
    color: #fff;
}

a.skip-main:focus {
    z-index: 999999;
}

.et-pb-controllers a {
    color: #000000;
}

.et_pb_section_0.et_pb_fullwidth_section .et_pb_fullwidth_header.et_pb_fullwidth_header_0 {
    background-color: #2d445d !important;
}

.widget_search input#s,
.widget_search input#searchsubmit {
    border: 1px solid #ddd;
    color: #333;
}

a:focus,
 :focus {
    outline: 1px dotted;
}

.et_monarch .et_social_network_label {
    padding: 0 !important;
    width: 0;
}

.et_monarch .et_social_networks .et_social_networkname {
    text-indent: -9000px;
}

.sharethis {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

@media (min-width: 981px) {
    body.single-articles article {
        max-width: 800px;
        margin: 120px auto 200px;
    }
    #logo {
        max-height: 50px !important;
    }
    .et-fixed-header #logo {
        max-height: 35px !important;
    }
}

@media (max-width:1040px) {
    .box-resources {
        width: 32%;
    }
}

@media (max-width:980px) {
    .custom-posttype-list ul li {
        width: 47%;
    }
    .custom-posttype-list ul li:nth-child(n) {
        margin-left: 0;
        margin-right: 0;
    }
    .custom-posttype-list ul li:nth-child(2n) {
        margin-left: 5%;
        margin-right: 0;
    }
    .resources-grid li {
        width: 32%;
        margin-right: 2%;
    }
    .resources-grid li:nth-child(3n) {
        margin-right: 0;
    }
}

@media (max-width:860px) {
    .box-resources {
        width: 49%;
    }
}

@media (max-width:800px) {
    .single .et_post_meta_wrapper img {
        max-width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 40px;
        width: auto;
    }
}

@media (min-width:768px) {}

@media (max-width:767px) {
    .custom-posttype-list ul li {
        width: 100%;
        display: block;
    }
    .custom-posttype-list ul li:nth-child(n) {
        margin-left: 0;
    }
    .file-container {
        flex-direction: column;
    }
    .file-container .file-wrapper,
    .file-container .file-details {
        width: 100%;
        padding-left: 0;
    }
    .file-container .file-wrapper>div {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width:700px) {
    .articlefilter {
        float: none;
        margin: 10px 0;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .contactform p:nth-child(n) {
        width: 100%;
        float: none;
        margin-left: 0;
    }
    .contactform input.wpcf7-quiz[type="text"] {
        max-width: 100%;
        display: block;
    }
    .resources-grid li {
        width: 48%;
        margin-right: 0;
    }
    .resources-grid li:nth-child(2n) {
        margin-left: 4%;
    }
}

@media (max-width:520px) {
    .box-resources {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .resources-grid li,
    .resources-grid li:nth-child(n) {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
}

@media (min-width:768px) {
    .pillars-wrap .pillars-section>div.pillar {
        float: left;
        width: 32%;
        margin-left: 2%;
        overflow: hidden;
        position: relative;
    }
    .pillars-wrap .pillars-section>div.pillar:first-child {
        margin-left: 0;
        clear: both;
    }
    .pillars-wrap #pillars-development>div.pillar {
        width: 49%;
        text-align: left;
        min-height: 240px;
        border-radius: 0;
    }
    .pillars-wrap #pillars-development>div.pillar a {
        margin-top: 50px;
    }
    .pillars-wrap #pillars-development>div.pillar:nth-child(2) img {
        margin-left: 0;
    }
    .pillars-wrap #pillars-development>div.pillar:first-child {
        text-align: right;
    }
    .pillars-wrap #pillars-development>div.pillar:first-child img {
        margin-right: 0;
    }
    .pillars-wrap #pillars-development>div.pillar>div.bg {
        display: block;
        position: absolute;
        min-width: 101%;
        min-height: 300px;
        top: 0;
        right: 0;
        background: rgba(255, 255, 255, 1);
        transform: skewY(-20deg) translate(0, -100%);
        transform-origin: 100% 0;
    }
    .pillars-wrap #pillars-development>div.pillar:nth-child(2)>div.bg {
        transform: skewY(20deg) translate(0, -100%);
        transform-origin: 0 0;
        left: 0;
    }
    .pillars-wrap #pillars-functions>div.pillar {
        min-height: 210px;
    }
    .pillars-wrap #pillars-functions>div.pillar:nth-child(4) {
        margin-left: 0;
        clear: both;
    }
    .pillars-wrap #pillars-functions>div.pillar:nth-child(4),
    .pillars-wrap #pillars-functions>div.pillar:nth-child(5) {
        width: 49%;
    }
    .pillars-wrap .pillars-section>div.pillar.pillars-section-title {
        width: 100% !important;
        margin-left: 0 !important;
    }
    .pillars-wrap #pillars-functions,
    .pillars-wrap #pillars-foundations {
        width: 860px;
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width:1100px) and (min-width: 767px) {
    .pillars-wrap .pillars-section>div {
        font-size: 1.2em;
    }
}

@media (max-width:1030px) and (min-width: 767px) {
    .pillars-wrap #pillars-development>div.pillar {
        min-height: 280px;
    }
}

@media (max-width:930px) and (min-width: 767px) {
    .pillars-wrap #pillars-functions>div.pillar br {
        display: none;
    }
    .pillars-wrap #pillars-functions>div.pillar {
        min-height: 240px;
    }
}