/*!
Theme Name: Kadence Theme Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Digiteam Oy
Author URI: https://digiteam.fi
Description: Kadence Child created by Digiteam.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

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

/* HEADER */

.site-header-main-section-left {
    align-items: flex-start;
}
.site-header-section-right {
    align-items: flex-end;
}
.header-navigation[class*=header-navigation-style-underline] .header-menu-container>ul>li>a:after {
    height: 4px !important;
    background: var(--global-palette1) !important;
}
.wpml-ls-item a {
    border-radius: 0 0 0 30px;
}
.wpml-ls-current-language a {
    background: var(--global-palette8);
    font-weight: 600;
}
.site-top-header-inner-wrap .site-header-section-right {
    align-items: flex-start;
}
/*.nav-drop-title-wrap {
    padding-right: 0 !important;
}
.nav--toggle-sub .dropdown-nav-toggle {
    display: none !important;
}*/
.header-button-inner-wrap a::before {
    content: url('/wp-content/uploads/nuoli-valkoinen.svg');
    padding-right: 10px;
}
.mobile-header-button-wrap .mobile-header-button-inner-wrap .mobile-header-button::before {
    content: url('/wp-content/uploads/nuoli-valkoinen.svg');
    padding-right: 10px;
}
.mobile-navigation ul li ul li {
    font-size: 1.063rem !important;
    font-weight: 400 !important;
}
.mobile-navigation .kadence-svg-iconset svg {
    height: 2em;
    width: 2em;
}
.mobile-navigation:not(.drawer-navigation-parent-toggle-true) ul li.menu-item-has-children .drawer-nav-drop-wrap button {
    border-left: 0 !important;
}
.popup-drawer .drawer-content {
    padding: 0 !important;
}
.mobile-navigation ul li a {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.mobile-navigation ul.sub-menu {
    padding-left: 0;
}
.mobile-navigation ul.sub-menu li.menu-item {
    padding-left: 2.5rem;
}
.popup-drawer .drawer-header {
    padding: 0 0.5em !important;
}
#mobile-secondary-menu {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-left: 0.5rem;
}

@media (max-width: 1024px) {
    .site-header-main-section-left {
        align-items: center;
    }
}

/* -------------------------------------------------------------- */

/* FOOTER */
footer a {
    color: var(--global-palette9) !important;
}

.site-footer-bottom-section-1 {
    display: contents !important;
}
.site-bottom-footer-wrap .site-footer-row-container-inner {
    z-index: 1;
    position: relative;
}
.site-middle-footer-wrap .site-footer-row-container-inner {
    position: relative;
}
.site-middle-footer-wrap .site-footer-row-container-inner::before {
    content: '';
    background-image: url('/wp-content/uploads/finnpilot-background-layeer.svg');
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
}

@media (max-width: 1024px) {
    .site-footer-middle-section-2 {
        order: 1;
        margin-bottom: 2rem;
    }
    .site-footer-middle-section-1 {
        order: 2;
    }
    .site-footer-middle-section-3 {
        order: 3;
    }
    .site-middle-footer-wrap .site-footer-row-container-inner::before {
        content: unset;
    }
    #block-7 figure {
        float: left;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .site-footer-row.site-footer-row-columns-1 {
        display: block !important;
    }
}


/* -------------------------------------------------------------- */

/* FRONTPAGE */
.hero-area .kt-inside-inner-col {
    width: 100%;
    height: 100%;
}
.hero-full-height-img,
.hero-mid-height-img {
    height: 100%;
}
.hero-full-height-img img {
    width: 100%;
    height: 482px;
    object-fit: cover;
}
.hero-mid-height-img img {
    width: 100%;
    min-height: 100%;
    max-height: 400px;
    object-fit: cover;
}
.banner-container .banner-img .kt-inside-inner-col::before {
    z-index: 10;
}
.banner-container .banner-img .kt-inside-inner-col::after {
    content: '';
    background-image: url('/wp-content/uploads/finnpilot_backgroundelement_white.svg');
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    z-index: 2;
}
.banner-container .title-container {
    max-width: 638px;
    margin-left: auto;
    margin-right: auto;
}
.image-section .kt-inside-inner-col {
    width: 100%;
    height: 100%;
}
.image-section .full-banner-img {
    height: 100%;
}
.image-section .full-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nostot .nosto-img img {
    height: 228px;
    width: 100%;
    object-fit: cover;
}
.kb-image-has-overlay {
    position: relative;
    overflow: hidden;
}
.nostot .kb-image-has-overlay::after {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--global-palette3) 62%);
    opacity: 0;
    transition: opacity .2s ease;
}
.nostot .wp-block-kadence-column:hover .kb-image-has-overlay::after {
    opacity: 0.5;
}
.nostot .wp-block-kadence-column:hover .kb-button {
    font-weight: 700;
}
.btn-700-hover {
    transition: all .3s ease;
}
.btn-700-hover:hover {
    font-weight: 700;
}

@media (max-width: 768px) {
    .hero-full-height-img img,
    .hero-full-height-img img {
        height: 235px;
    }
    .banner-container .banner-img .kt-inside-inner-col::after {
        background-size: 280px 280px;
        left: -100px;
    }
}

/* -------------------------------------------------------------- */

/* ARCHIVES */

.single-loop-item-content .wp-block-post-terms a {
    text-decoration: none;
}

/* -------------------------------------------------------------- */

/* SINGLE */

.single-article-img figure,
.single-article-img img {
    width: 100%;
}

/* -------------------------------------------------------------- */

/* OTHER BLOCKS */

.mobiili-luotsinvalitys .kt-accordion-panel-inner p,
.desktop-luotsinvalitys .kt-inside-inner-col p {
    margin-bottom: 1.2rem;
}
.luotsinvalitysalueet .kt-inside-inner-col p {
    margin-bottom: 0 !important;
}
.henkilosto .nosto-img img {
    height: 215px;
    width: 100%;
    object-fit: cover;
}

/* -------------------------------------------------------------- */