/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

.submenu ul .menu-item:hover {
    background-color: #f0e1e9;
    text-decoration: underline;
}

.submenu ul .menu-item.current-menu-item {
    background-color: #f0e1e9;
    text-decoration: underline;
}

.search .elementor-search-form input.elementor-search-form__input {
    border: 1px solid #fff;
    border-radius: 0;
    height: 40px;
    margin: 0;
    margin-right: 0px;
    color: #fff;
}

.elementor-8 .search .elementor-search-form button[type="submit"] {
    background: transparent;
    border: 0;
    min-width: 55px;
}

.elementor-8 .search .elementor-search-form button[type="submit"] svg {
    width: 80%;
}

.elementor-8 .search .elementor-search-form .elementor-search-form__container {
    display: flex;
    align-items: center;
}

.elementor-8 .lang .elementor-container .elementor-column:first-child .elementor-button-wrapper,
.lang .wpml-ls-legacy-list-horizontal .wpml-ls-item:first-child {
    text-align: right;
    margin-right: 20px;
}

.elementor-8 .lang .elementor-container .elementor-column:last-child .elementor-button-wrapper,
.lang .wpml-ls-legacy-list-horizontal .wpml-ls-item {
    text-align: left;
}

.elementor-8 .lang .elementor-element .elementor-button-link,
.lang .wpml-ls-legacy-list-horizontal .wpml-ls-item a {
    border-radius: 50%;
    display: inline-flex;
    border: 2px solid #fff;
    width: 46px;
    height: 46px;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    color: #fff;
}

.mobile .lang .wpml-ls-legacy-list-horizontal .wpml-ls-item a {
    border: 2px solid #F15E5C;
}

.lang .wpel-icon-6 {
    display: none;
}

.elementor-8 .lang .elementor-element .elementor-button-link:hover,
.lang .wpml-ls-legacy-list-horizontal .wpml-ls-item a:hover {
    border-color: #F15E5C;
    background-color: #F15E5C;
}

.elementor-8 .main-menu nav[role="navigation"]>ul li:hover {
    background: #97386d;
    text-decoration: underline;
}

.elementor-8 .main-menu nav[role="navigation"]>ul li:hover a {
    text-decoration: none !important;
}

.elementor-8 .main-menu nav[role="navigation"]>ul li.menu-item-has-children ul {
    /* width: 100% !important; */
    background: #f0e1e9;
}

.elementor-8 .main-menu nav[role="navigation"]>ul>li>a>.sub-arrow {
    display: none;
}

.elementor-8 .main-menu nav[role="navigation"]>ul li.current_page_item {
    background: #97386d;
}

.svg_hover {
    position: relative;
    cursor: pointer;
    max-width: 450px;
    margin: 0 auto;
}

.svg_hover svg {
    width: 100%;
    transition: .2s linear;
}

.svg_hover:hover svg #Vector {
    fill: none;
}

.svg_link {
    position: absolute;
}

.large_letter {
    font-size: 124px;
}

.post_grid .elementor-post__text {
    padding: 0 20px;
}

.post_grid article:hover h3 a,
.post_grid article:hover p {
    color: #fff !important;
}

.header_video {
    position: relative;
}

.item_content {
    position: absolute;
}

.first_child .item_content {
    bottom: 0;
    width: 700px;
    left: 8%;
}

.first_child .item_content a {
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
    border: 1px solid #fff;
    padding: 15px 30px;
    position: relative;
    left: -20px;
    display: inline-flex;
}

.second_child .item_content {
    width: 80%;
    left: 10%;
    top: 130px;
}

.second_child .item_content a {
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
    border: 1px solid #fff;
    padding: 15px 30px;
    position: relative;
    left: -20px;
    display: inline-flex;
}

.item_content-last {
    position: absolute;
    bottom: -8.5%;
    left: 10%;
    width: 80% !important;
}

.item_content-last a {
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
    border: 1px solid #fff;
    padding: 15px 30px;
    position: relative;
    left: -20px;
    display: inline-flex;
}

.item_img {
    position: relative;
    right: 15%;
    top: 0px;
}

.item_img-first {
    position: relative;
    right: 15%
}

p a:hover {
    color: #336;
    text-decoration: underline;
}


.post-grid article:first-child {
    grid-row: span 2;
}

.post-grid article:first-child .elementor-post__text {
    background-color: #007689;
    bottom: 100px;
    max-width: 700px;
    margin: 0 auto;
}


.post-grid article a {
    margin-bottom: 0;
    color: #fff;
}

.post-grid article .elementor-post__title {
    margin-bottom: 15px;
}

.post-grid article:nth-child(2) .elementor-post__text {
    /*     background-color: #FF5F56; */
    background-color: var(--e-global-color-02ed7b1);
    /*     width: 80%;
    margin-right: auto; */
}

.post-grid article:last-child .elementor-post__text {
    /*     background-color: #51CC94; */
    background-color: var(--e-global-color-02ed7b1);
    /*     width: 80%;
    margin-right: auto; */
}

.post-grid article .elementor-post__text {
    padding: 80px 20px 20px 20px;
    position: relative;
}

.post-grid article:first-child .elementor-post__thumbnail {
    border-radius: 50%;
    padding-bottom: unset !important;
    height: 700px;
    max-width: 700px;
}


@media only screen and (max-width: 500px) {

    .post-grid article:first-child .elementor-post__thumbnail {
        border-radius: 50%;
        padding-bottom: unset !important;
        height: 200px;
        max-width: 200px;
        max-height: 200px;
    }
}

.post-grid article:first-child .elementor-post__thumbnail img {
    max-height: 700px;
    height: 100%;

}

.post-grid article:nth-child(2) .elementor-post__thumbnail,
.post-grid article:last-child .elementor-post__thumbnail {
    padding-bottom: unset !important;
    height: 200px;
    margin-bottom: -10%;
    margin-right: -10%;
    z-index: 1;
}

.post-grid article:first-child img,
.post-grid article:nth-child(2) .elementor-post__thumbnail img,
.post-grid article:last-child .elementor-post__thumbnail img {
    max-width: 200px;
    max-height: 200px;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.post-grid article .elementor-post__read-more {
    position: absolute;
    display: inline-flex;
    top: 0px;
    left: 0px;
    border: 1px solid #fff;
    padding: 15px 30px;
}

.footer-form {
    max-width: 50%;
}

.footer-menu ul.menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 20px;
    list-style: none;
}

.footer-menu ul.menu ul {
    list-style: none;
    padding-left: 0;
}

.footer-menu ul.menu>li>a {
    display: inline-flex;
    text-decoration: underline;
    text-transform: uppercase;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    padding-bottom: 10px;
}

.footer-menu ul.sub-menu li a {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-weight: 400;
}

.footer-logo .elementor-widget-wrap {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
}

.footer-logo .elementor-widget-wrap img {
    width: auto;
    max-height: 76px;
}

.elementor-nav-menu>.current-menu-item>.elementor-item-active {
    background-color: #97386d;
}

.logo-img figcaption.widget-image-caption.wp-caption-text {
    display: none;
    position: absolute;
    padding: .5ch 1.5ch;
    border-radius: .3ch;
    box-shadow: 0 1em 2em -0.5em rgb(0 0 0 / 35%);
    background: #333;
    color: #fff;
    z-index: 1000;
    top: 25%;
    right: -30%;
    transition: 300ms ease-out;
}

.logo-img figcaption.widget-image-caption.wp-caption-text:before {
    content: "";
    position: absolute;
    border: 5px solid transparent;
    border-left-width: 0;
    border-right-color: #333;
    left: -4px;
    top: 10px;
}

@media screen and (max-width: 1440px) {
    .elementor-8 .elementor-element.elementor-element-a9e3a1f {
        padding: 50px 40px 40px 40px;
    }

    .post-grid article:first-child .elementor-post__thumbnail {
        height: 500px;
        max-width: 500px;
    }

    .elementor-91 .elementor-element.elementor-element-4e08e1f {
        padding: 140px 60px 200px 60px;
    }

    .elementor-location-footer.elementor-93 .elementor-element.elementor-element-8a6df23 {
        padding: 150px 40px;
    }

    .elementor-location-footer.elementor-93 .elementor-element.elementor-element-f1a441b,
    .elementor-location-footer.elementor-93 .elementor-element.elementor-element-e294475,
    .elementor-location-footer.elementor-93 .elementor-element.elementor-element-e3e8fe5 {
        width: 40%;
    }

    .elementor-93 .elementor-element.elementor-element-6c240da,
    .elementor-93 .elementor-element.elementor-element-06f407b,
    .elementor-93 .elementor-element.elementor-element-f5076cb {
        width: 60%;
    }
}

@media screen and (max-width: 1024px) {
    .wpml-ls-legacy-list-horizontal>ul {
        text-align: right;
    }

    .svg_hover svg {
        max-height: 300px;
    }

    .post-grid article:nth-child(2) {
        margin-bottom: 10%;
    }

    .post-grid article:first-child .elementor-post__thumbnail {
        max-width: 200px;
        margin-left: auto;
        margin-right: 20%;
        height: 200px;
        z-index: 1;
    }

    .post-grid article:nth-child(2) .elementor-post__text,
    .post-grid article:last-child .elementor-post__text,
    .post-grid article:first-child .elementor-post__text {
        max-width: 100%;
        width: 80%;
        margin: auto;
    }

    .post-grid article:nth-child(2) .elementor-post__thumbnail,
    .post-grid article:last-child .elementor-post__thumbnail {
        margin-right: -40%;
    }

    .elementor-91 .elementor-element.elementor-element-4e08e1f {
        padding: 60px 20px;
    }

    .footer-menu ul.menu {
        grid-template-columns: repeat(2, 1fr);
        grid-row-gap: 20px;
    }

    .footer-form {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {

    .post-grid article:nth-child(2) .elementor-post__text,
    .post-grid article:last-child .elementor-post__text,
    .post-grid article:first-child .elementor-post__text {
        width: 100%;
    }

    .post-grid article:first-child .elementor-post__thumbnail,
    .post-grid article:nth-child(2) .elementor-post__thumbnail,
    .post-grid article:last-child .elementor-post__thumbnail {
        max-width: 150px;
        height: 150px;
        margin-right: 0;
    }

    .post-grid article:nth-child(2) .elementor-post__thumbnail,
    .post-grid article:last-child .elementor-post__thumbnail {
        margin-left: auto;
        margin-bottom: -20%;
    }

    .post-grid article:nth-child(2) .elementor-post__thumbnail img,
    .post-grid article:last-child .elementor-post__thumbnail img {
        max-width: 150px;
        max-height: 150px;
    }

    .elementor-location-footer.elementor-93 .elementor-element.elementor-element-8a6df23 {
        padding: 100px 20px;
    }

    .elementor-location-footer.elementor-93 .elementor-element.elementor-element-f1a441b,
    .elementor-location-footer.elementor-93 .elementor-element.elementor-element-e294475,
    .elementor-location-footer.elementor-93 .elementor-element.elementor-element-e3e8fe5 {
        width: 100%;
    }

    .elementor-93 .elementor-element.elementor-element-6c240da,
    .elementor-93 .elementor-element.elementor-element-06f407b,
    .elementor-93 .elementor-element.elementor-element-f5076cb {
        width: 100%;
    }

    .footer-menu ul.menu {
        grid-template-columns: repeat(1, 1fr);
        grid-row-gap: 20px;
    }

    .footer-logo .elementor-widget-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}


body:not(.elementor-editor-active) .toggle_content {
    display: none
}

.toggle_content {
    min-height: 70vh;
}


.toggle_trigger {
    cursor: pointer;
}

.elementor-widget-container {
    //  cursor: pointer;
}

@media only screen and (max-width: 1025px) {
    .elementor-widget-container .attachment-medium.size-medium {
        max-width: 150px;
        max-height: 150px;
    }
}


/* Tab arrow gradient on hover */

#step1.elementor-section:hover .fa-chevron-circle-right:before {
    background: -webkit-gradient(linear, left top, right bottom, from(#F89B29), to(#FF0F7B));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#step1.elementor-section:hover .fa-chevron-circle-down:before {
    background: -webkit-gradient(linear, left top, right bottom, from(#F89B29), to(#FF0F7B));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#step2.elementor-section:hover .fa-chevron-circle-right:before {
    background: -webkit-gradient(linear, left top, right bottom, from(#F89B29), to(#FF0F7B));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#step2.elementor-section:hover .fa-chevron-circle-down:before {
    background: -webkit-gradient(linear, left top, right bottom, from(#F89B29), to(#FF0F7B));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#step3.elementor-section:hover .fa-chevron-circle-right:before {
    background: -webkit-gradient(linear, left top, right bottom, from(#F89B29), to(#FF0F7B));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#step3.elementor-section:hover .fa-chevron-circle-down:before {
    background: -webkit-gradient(linear, left top, right bottom, from(#F89B29), to(#FF0F7B));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


#step4.elementor-section:hover .fa-chevron-circle-right:before {
    background: -webkit-gradient(linear, left top, right bottom, from(#F89B29), to(#FF0F7B));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#step4.elementor-section:hover .fa-chevron-circle-down:before {
    background: -webkit-gradient(linear, left top, right bottom, from(#F89B29), to(#FF0F7B));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


#step5.elementor-section:hover .fa-chevron-circle-right:before {
    background: -webkit-gradient(linear, left top, right bottom, from(#F89B29), to(#FF0F7B));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#step5.elementor-section:hover .fa-chevron-circle-down:before {
    background: -webkit-gradient(linear, left top, right bottom, from(#F89B29), to(#FF0F7B));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Split-screen toggle - change section background color when active */

.elementor-4516 .elementor-element.elementor-element-1e8b31ad.tab_active {
    background-color: #FFE9CC;
}

.elementor-4516 .elementor-element.elementor-element-7a111263.tab_active {
    background-color: #FFE9CC;
}

.elementor-4516 .elementor-element.elementor-element-6a6652ed.tab_active {
    background-color: #FFE9CC;
}

.elementor-4516 .elementor-element.elementor-element-10cb0148.tab_active {
    background-color: #FFE9CC;
}

.elementor-4516 .elementor-element.elementor-element-a91ded0.tab_active {
    background-color: #FFE9CC;
}

/* Split-screen toggle - Make toggle section image change when active */

.elementor-4516 .elementor-element.elementor-element-1e8b31ad.tab_active img {
    content: url("https://rauhankasvatus.fi/wp-content/uploads/2021/11/Step_1.png");
}

.elementor-4516 .elementor-element.elementor-element-7a111263.tab_active img {
    content: url("https://rauhankasvatus.fi/wp-content/uploads/2021/11/Step_2.png");
}

.elementor-4516 .elementor-element.elementor-element-6a6652ed.tab_active img {
    content: url("https://rauhankasvatus.fi/wp-content/uploads/2021/11/Step_3.png");
}

.elementor-4516 .elementor-element.elementor-element-10cb0148.tab_active img {
    content: url("https://rauhankasvatus.fi/wp-content/uploads/2021/11/Step_4.png");
}

.elementor-4516 .elementor-element.elementor-element-a91ded0.tab_active img {
    content: url("https://rauhankasvatus.fi/wp-content/uploads/2021/11/Step_5.png");
}


/* Split-screen toggle - Swap section img to gradient on hover */

#step1.elementor-section:hover img {
    content: url("https://rauhankasvatus.fi/wp-content/uploads/2021/11/Step_1.png");
}

#step2.elementor-section:hover img {
    content: url("https://rauhankasvatus.fi/wp-content/uploads/2021/11/Step_2.png");
}

#step3.elementor-section:hover img {
    content: url("https://rauhankasvatus.fi/wp-content/uploads/2021/11/Step_3.png");
}

#step4.elementor-section:hover img {
    content: url("https://rauhankasvatus.fi/wp-content/uploads/2021/11/Step_4.png");
}

#step5.elementor-section:hover img {
    content: url("https://rauhankasvatus.fi/wp-content/uploads/2021/11/Step_5.png");
}



/* Remove hover color from footer links */

.footer-menu a:hover {
    color: #000;
}

.footer-menu-address a:hover {
    color: #000;
}

/* Reduce line height and add margin on footer items to make them easily readable */

.footer-menu li {
    line-height: 1.2em;
    margin-top: 15px;
    margin-bottom: 15px;
}