/*
 Theme Name:   Porvoonkodit Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/



body {
    overflow-x: hidden;
    font-size: 16px;
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
}

h1 {
    font-size: 62px;
}

h2 {
    font-size: 52px;
}

h3 {
    font-size: 32px;
}

.text-light-blue {
    color: #96B7E1;
}

.gutentor-button {
    position: relative;
    letter-spacing: 0.1em;
}

.content-right {
    max-width: 500px;
}

.content-left-wrap {
    display: flex;
    justify-content: flex-end;
}

.content_left {
    max-width: 500px;
}

.nav-float-right #site-navigation {
    margin-left: 40px;
}

.main-navigation .menu-bar-item {
    margin-left: 15px;
}

.header_wrapper {
    position: relative;
    z-index: 999;
}
/*
.site-header {
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;

}
*/
/* Base sticky styling 
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}
*/
/* Push page content down to avoid overlay 
body.has-sticky-header {
    padding-top: 80px;
    
}
*/
.site-header .gutentor-social .gutentor-social-item .gutentor-single-item {
    width: 40px;
    height: 40px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav.main-navigation {
    position: relative;
}


.menu-item-has-children .dropdown-menu-toggle {
    padding-right: 5px;
}

.main-navigation a {
    font-size: 17px;
}

.main-navigation .main-nav>ul {
    gap: 10px;
}

.main-navigation .main-nav ul li[class*="current-menu-"]>a {
    font-weight: 400;
}

/* .main-navigation .main-nav>ul>li[class*="current-menu-"]>a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    height: 2px;
    background-color: #F6F7FA;
} */

.main-navigation .main-nav ul li a {
    padding-left: 12px;
    padding-right: 12px;
    line-height: 48px;
}

.main-navigation .main-nav ul li a:hover {
    font-weight: 600;
}

.menu-item-has-children .dropdown-menu-toggle {
    padding-left: 5px;
}

.main-navigation .main-nav ul li .gp-icon svg {
    transform: rotate(-90deg);
    top: 3px;
    position: relative;
}

.main-navigation .main-nav ul li:hover .gp-icon svg {
    transform: none;
}

.main-navigation ul ul {
    width: 260px;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
}

.main-navigation .main-nav ul ul span.dropdown-menu-toggle {
    padding-top: 0px;
    padding-bottom: 0px;
    float: none;

}

.main-navigation .main-nav ul ul li a {
    padding: 10px 10px;
    font-size: 16px;
}

.main-navigation .main-nav ul ul li a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
}

.main-navigation .main-nav ul ul li:last-child a:after {
    content: none;
}

.main-navigation .main-nav ul ul ul {
    background-color: rgba(255, 255, 255, 0.9);
    text-align: left;
    margin-left: 10px;
    top: -16px !important;
}

.main-navigation .main-nav ul ul ul:before {
    content: '\f0d9';
    font-family: 'FontAwesome';
    position: absolute;
    left: -16px;
    top: 0px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 50px;
}

.img-circle .gutentor-element-image-box:after {
    content: '';
    width: 60px;
    height: 60px;
    background-color: #CDFF65;
    border: 1px solid #585FE8;
    border-radius: 50px;
    position: absolute;
    right: -15px;
    top: -30px;
}

.front-banner-content {
    max-width: 700px;
    margin: 0 auto;
}

.home .site-footer {
    margin-top: 0px;
}


.front_services .gutentor-single-item-image-box {
    margin-bottom: 0px !important;
}

.front_services .gutentor-single-item-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    max-width: 100%;
    margin: 0 auto;
}


.front_services .gutentor-single-item-wrap .gutentor-single-item-image-box .gutentor-image-thumb img {
    max-height: auto;
    width: auto;
    max-width: 100%;
}

.front_services .gutentor-single-item-wrap .gutentor-single-item-image-box .gutentor-image-thumb {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-section {
    border-radius: 10px;
    overflow: hidden;
}

.map-section iframe {
    padding: 0px 25px 25px;
}

.front_post_carousal .gutentor-carousel-item .gutentor-post-item .gutentor-post-image-box {
    height: 240px !important;
    overflow: hidden;
}

.front_post_carousal .gutentor-carousel-item .gutentor-post-item .gutentor-post-image-box img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.front_post_carousal .gutentor-carousel-item .gutentor-post-item .gutentor-post-title-data-wrap {
    height: 70px;
}

.gutentor-post-content {}

.front_post_carousal .slick-arrow {
    border-radius: 50px;

}

.front_post_carousal .slick-arrow.slick-prev {
    left: -50px;
}

.front_post_carousal .slick-arrow.slick-next {
    right: -50px;
}

/* Banner css */
.page__banner_section {
    width: 100%;
    position: relative;
    top: 0px;
    height: 400px;
    background-color: #FFC3D7;

}

.page__banner_section .banner-container {
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
    z-index: 9;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.page__banner_section .banner_thumb {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
}

.page__banner_section .banner_thumb img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
}

.page__banner_section .banner-content {
    text-align: center;
    position: relative;
    color: #FFF;
    padding: 40px 30px;
    width: 100%;
}

.page__banner_section .banner-content .banner-heading {
    color: #000;
    position: relative;
    padding: 5px 10px;
}

.page__banner_section .banner-content .banner-heading h1 {
    font-size: 54px;
    margin-bottom: 10px !important;
    word-wrap: break-word;
    letter-spacing: 0.05em;
}

.page__banner_section .banner-content .banner-heading h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.page__banner_section .banner-content .banner-heading p {
    font-size: 20px;
    margin-bottom: 0px;
}

.front-testimonial-slider .testimonial-item {
    padding: 15px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* optional if you want to center text */
    min-height: 280px;
    /* adjust based on your design */
}

.front-testimonial-slider .frontslider-section {
    max-width: 480px;
    margin: 0 auto;
}

.front-testimonial-slider .testimonial-item .testimonial_panel {
    display: flex;
    flex-direction: row-reverse;
}

.front-testimonial-slider .testimonial-item.slick-current .testimonial_panel {
    flex-direction: inherit;

}

.front-testimonial-slider .testimonial-item .testimonial_panel .testimonial-desc {
    padding-left: 30px;
}

.front-testimonial-slider .testimonial-item .testimonial_panel .testimonial-desc p {
    font-size: 16px;
}

/* Scale the current slide */
.front-testimonial-slider .testimonial-item:before {
    content: '';
    position: absolute;
    left: 0px;
    top: 20px;
    width: 18px;
    height: 18px;
    background-image: url(assets/images/quote-icon.png);
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;


}

.front-testimonial-slider .testimonial-item.slick-slide {
    transition: transform 0.3s ease;
}

.front-testimonial-slider .testimonial-item.slick-current {
    z-index: 2;
    position: relative;
}

.front-testimonial-slider .slick-slider {
    overflow: visible;
}

.front-testimonial-slider .testimonial-item.slick-slide {
    transition: transform 0.3s ease;
    z-index: 1;
}

.front-testimonial-slider .frontslider-section .slick-prev,
.front-testimonial-slider .frontslider-section .slick-prev,
.front-testimonial-slider .frontslider-section .slick-prev {
    left: -250px;
    color: #c1f5f0;
}

.front-testimonial-slider .frontslider-section .slick-next,
.front-testimonial-slider .frontslider-section .slick-next,
.front-testimonial-slider .frontslider-section .slick-next {
    right: -250px;
    color: #c1f5f0;
}



.gutentor-post-module .slick-prev,
.gutentor-post-module .slick-next,
.gutentor-module .slick-prev,
.gutentor-module .slick-next,
.gutentor-section .slick-prev,
.gutentor-section .slick-next {
    color: #F66A00;
    font-size: 44px;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0px;
}

.gutentor-post-module .slick-prev:hover,
.gutentor-post-module .slick-next:hover,
.gutentor-module .slick-prev:hover,
.gutentor-module .slick-next:hover,
.gutentor-section .slick-prev:hover,
.gutentor-section .slick-next:hover {
    color: #42566F;
    background: none;
}

.gutentor-post-module .slick-prev,
.gutentor-module .slick-prev,
.gutentor-section .slick-prev {
    left: -50px;
}

.gutentor-post-module .slick-next,
.gutentor-module .slick-next,
.gutentor-section .slick-next {
    right: -50px;
}

.gutentor-post-module .slick-dots li,
.gutentor-module .slick-dots li,
.gutentor-section .slick-dots li {
    width: 12px;
    height: 12px;
    background: #D9DBE0;
    margin: 4px 6px !important;
    border-radius: 25px;
}

.gutentor-post-module .slick-dots li.slick-active,
.gutentor-module .slick-dots li.slick-active,
.gutentor-section .slick-dots li.slick-active {
    background: #96B7E1;
}


/* GALLERY ITEM STYLE  */


.gutentor-gallery-item .gutentor-gallery-item-wrap .gutentor-single-item-content {
    transform: none;
    width: 100%;
    height: 100%;
    top: 0;
}

.gutentor-gallery-item .gutentor-gallery-item-wrap .gutentor-gallery-item-header,
.gutentor-gallery-item .gutentor-gallery-item-wrap .gutentor-gallery-item-header a.image-gallery {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.gutentor-gallery-item .gutentor-gallery-item-wrap .gutentor-single-item-image-box .gutentor-image-thumb {
    max-height: 280px;
    height: 280px;
}

.gutentor-gallery-item .gutentor-gallery-item-wrap .gutentor-single-item-image-box .gutentor-image-thumb img {
    object-fit: cover;
    object-position: center;
    height: 100%;
    width: 100%;
}

.gutentor-gallery-item .gutentor-gallery-item-wrap .gutentor-gallery-item-header a.image-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* contact page */

.contact_form_wrapper {
    max-width: 100%;
    margin: 0 auto 25px;


}

.contact_form_wrapper .field_row {
    display: block;
}

.contact_form_wrapper .field_row.half_field {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.contact_form_wrapper .field_row.half_field .field_item {
    /* flex: 0 0 50%; */
    width: 50%;
}

.contact_form_wrapper .field_row .field_item {
    padding: 10px 0px;
}

.contact_form_wrapper .field_row .field_item label {
    font-size: 17px;
    padding-bottom: 5px;
    clear: both;
    display: inline-block;
    width: 100%;
}

.contact_form_wrapper .field_row .field_item h3 {
    margin-bottom: 5px;
    color: #F96800;
}

.contact_form_wrapper .field_row .field_item>p {
    margin-bottom: 0px;
}

.contact_form_wrapper .field_row .field_item .form-control {
    width: 100%;
    background-color: #FFF;
    border: 2px solid #9D867F;
    font-size: 16px;
    font-weight: 500;
    border-radius: 0px;
    padding: 10px 15px !important;
    border-radius: 8px;
}

.contact_form_wrapper .field_row .field_item textarea {
    height: 220px;
}

.contact_form_wrapper .field_row .field_item .form-control.wpcf7-checkbox {
    border: 0;
    padding: 10px 0px !important;
    background-color: transparent;
    box-shadow: none;
    font-size: 18px;
}

.contact_form_wrapper .field_row.field_button {
    text-align: center;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background) {
    border-radius: 8px;
    color: #FFF;
    background-color: #42566F;
    padding: 10px 35px 10px 35px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
a.wp-block-button__link:not(.has-background):hover,
.contact_form_wrapper .field_row .field-btn:hover {
    color: #42566F;
    background-color: #96B7E1;
}

.contact_form_wrapper .wpcf7-spinner {
    position: absolute;
}

iframe {
    display: block;
}

.menu-toggle {
    text-transform: uppercase;
    font-size: 26px !important;
    padding: 0 5px;
    background-color: transparent !important;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    background-color: #fff;
    font-size: 16px;
    padding: 12px 15px !important;
}

.has-inline-mobile-toggle #site-navigation.toggled {
    /* margin-top: 4.5em; */
    padding-top: 15px;
    padding-bottom: 15px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #447B1A;
    text-align: center;
    color: #447B1A;
}


.entry-content ol,
.entry-content ul {
    margin: 0 0 1em 0em;
}


.single-post .site-content {
    padding-bottom: 35px;
}



.single-post .site-content .featured-image {
    padding: 0px;
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
}

.single-post .site-content .featured-image img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
}

.single-post .entry-header h1.entry-title {
    font-size: 32px;
}

.single-asiakasryhmat .site-content .featured-image {
    padding: 0px;
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
}

.single-asiakasryhmat .site-content .featured-image img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
}

.single-asiakasryhmat .entry-header h1.entry-title {
    font-size: 32px;
}


.site-main .post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 35px;
}

.entry-meta {
    font-size: 100%;
}

.search-results .page-header {
    display: none;
}

.search-results .inside-article {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 25px 15px;
}


.search-results .entry-summary {
    margin-top: 25px;
}

.search-results .read-more {
    font-weight: 600;
    color: #50C126;
}

.search-results .nav-links {
    display: flex;
}

.search-results .nav-links .page-numbers {
    background-color: #50C126;
    padding: 4px;
    color: #FFF;
    border-radius: 4px;
    margin-right: 4px;
    display: flex;
    min-width: 24px;
    box-sizing: content-box;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.search-results .nav-links .page-numbers.current {
    background-color: #FFF;
    color: #50C126;
    border: 1px solid #50C126;
}

/* Post Listing Wrapper Style */

.post_listing_wrap h4.gutentor-post-title {
    text-align: center;
    font-weight: 600;
    background-color: #1F8E9F;
    padding: 0px !important;
    border-radius: 8px;
}

.post_listing_wrap h4.gutentor-post-title a {
    display: block;
    padding: 10px 15px;
}

.post_listing_wrap .gutentor-post-image-box {
    display: flex;
    align-items: center;
    justify-content: center;
}


.single-kalasto.separate-containers .inside-article>.featured-image {
    max-width: 600px;
    float: right;
}

.single-kalasto .site-content {
    padding-top: 40px;
    padding-bottom: 60px;
}

.single-kalasto .site-content header.entry-header {
    display: none;
}

.ter-bg1 .has-custom-bg {
    background-size: 300px;
}

.ter-bg-left {
    background-size: 250px;
    background-position: left 24%;
}

.ter-bg-right {
    background-size: 300px;
    background-position: right 28%;
}

.site-footer .footer-widgets-container .inner-padding {
    padding-bottom: 5px !important;
    margin-bottom: 5px !important;
}

.ft_contact img {
    width: 16px;
    position: relative;
    top: 2px;
    margin-right: 6px;
}

.site-footer .gutentor-social-item .gutentor-single-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer .footer-widgets-container {
    border-top: 2px solid rgba(255, 195, 215, 1);
}

.site-footer {
    position: relative;
}

.site-footer:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: url(assets/images/A-yhtiot_grafiikka_verkkosivu_tausta_footer.png);
    background-position: center left;
    background-repeat: no-repeat;
    background-size: 300px 230px;
    width: 300px;
    height: 230px;
    display: block;
    z-index: 9;
}

.site-footer .footer-widgets,
.site-footer .site-info {
    position: relative;
    z-index: 99;
}



@media (max-width:767px) {
    .top-bar {
        display: none;
    }

    .mob_none {
        display: none;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 26px;
    }

    .site-logo {
        top: 0px;
    }

    .main-navigation .main-nav ul ul li a {
        padding: 12px 20px;
    }

    .main-navigation .main-nav ul ul ul {
        margin-left: 0px;
        padding: 5px 20px;
        top: 0px !important;
    }

    .main-navigation .menu-bar-item {
        margin-right: 15px;
    }

    .gutentor-social .inline-wrapper {
        justify-content: center !important;
    }

    .page__banner_section .banner-container {
        justify-content: center;
    }

    .page__banner_section {
        height: 280px;
    }

    .page__banner_section .banner-container {
        padding-bottom: 0px;
    }

    .page__banner_section .banner-content .banner-heading h1 {
        font-size: 28px;
        line-height: 1;
    }

    .page__banner_section .banner-content .banner-heading h2 {
        font-size: 16px;
    }

    .site-footer {
        text-align: center;
    }

    .site-footer .gutentor-social .inline-wrapper {
        justify-content: center;
    }

    .contact_form_wrapper {
        padding: 15px;
    }

    .contact_form_wrapper .field_row.half_field {
        flex-direction: column;
        gap: 0;
    }

    .contact_form_wrapper .field_row.half_field .field_item {
        /* flex: 0 0 50%; */
        width: 100%;
    }

    .front_post_carousal .slick-arrow {
        border-radius: 0px;
    }

    .front_post_carousal .slick-arrow.slick-prev {
        left: -45px;
    }

    .front_post_carousal .slick-arrow.slick-next {
        right: -45px;
    }

    .h1_line .gutentor-text-wrap:after {
        bottom: 0px;
    }

    .img-circle .gutentor-element-image-box:after {
        right: -10px;
        top: -25px;
    }

    .front-testimonial-slider .testimonial-item .testimonial_panel,
    .front-testimonial-slider .testimonial-item.slick-current .testimonial_panel {
        flex-direction: column;
    }

    .front-testimonial-slider .testimonial-item .testimonial_panel .thumb_img,
    .front-testimonial-slider .testimonial-item .testimonial_panel .testimonial-desc {
        width: 100%;
    }

    .front-testimonial-slider .testimonial-item .testimonial_panel .thumb_img {
        height: 240px;
    }

    .front-testimonial-slider .testimonial-item .testimonial_panel .testimonial-desc {
        height: auto;
    }

    .front-testimonial-slider .testimonial-item.slick-current .testimonial_panel .testimonial-desc {
        padding: 25px 25px;
    }

    .front-testimonial-slider .testimonial-item.slick-slide {
        transform: none;
    }

    .nav-float-right #site-navigation {
        margin-left: 0px;
    }

    .ter-bg1 .has-custom-bg {
        background-size: 150px;
    }
}