/*!
Theme Name: UTU Theme Two
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: UTU Theme Two is a child theme for the Kadence Theme.
Version: 1.0.3
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ututhemetwo
*/

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

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBook.woff2') format('woff2');
    font-style: normal;
    font-weight: 100;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBookItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 100;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBook.woff2') format('woff2');
    font-style: normal;
    font-weight: 200;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBookItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 200;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBook.woff2') format('woff2');
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBookItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 300;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBook.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBookItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 400;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBold.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBold.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBold.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBold.woff2') format('woff2');
    font-style: normal;
    font-weight: 800;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBold.woff2') format('woff2');
    font-style: normal;
    font-weight: 900;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBoldItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 500;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBoldItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 600;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBoldItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 700;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBoldItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 800;
}

@font-face {
    font-family: 'Brother';
    src: url('assets/fonts/brotherBoldItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 900;
}

body {
    font-family: 'Brother', sans-serif;
    font-weight: normal;
}

#wrapper {
    font-size: 16px;
    font-family: 'Brother', sans-serif;
    font-weight: normal;
}

.entry-content a:not(.wp-element-button):visited {
    color: var(--global-palette-highlight-alt);
}

/* #wrapper :is(em, i) {
    font-family: 'Brother', sans-serif;
}

#wrapper :is(b, strong) {
    font-family: 'Brother', sans-serif;
} */

#wrapper :is(h1, h2, h3, h4, h5, h6) {
    font-family: 'Brother';
    font-weight: bold;
}

#wrapper :is(h1, h2, h3, h4, h5, h6) :is(em, i) {
    font-family: 'Brother', sans-serif;
    font-weight: bold;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.313rem;
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

p.is-style-lead {
    font-size: 1.3125rem;
    font-style: italic;
}

p.is-style-call-to-action a {
    font-weight: bold;
    padding-left: 40px;
    position: relative;
}

p.is-style-call-to-action a:before {
    content: '';
    position:absolute;
    width: 40px;
    -webkit-mask: url(assets/images/icon-arrow-right.svg) no-repeat center center;
    mask: url(assets/images/icon-arrow-right.svg) no-repeat center center;
    background-color: var(--global-palette-highlight);
    top: 0;
    bottom: 0;
    left: 0;
    transition: all 0.3s ease-out;
}

p.is-style-call-to-action a:hover:before {
    background-color: var(--global-palette-highlight-alt);
    left: 8px;
}

#main .kt-inside-inner-col > ul {
    padding-left: 1.6em;
}

#main ul li::marker {
    color: var(--global-palette1, #000000);
    /* font-size: 1.325rem; */
    font-size: 1rem;
}

.has-sidebar #main {
    margin-bottom: 30px;
}

/* Header */
/* #mobile-header .site-main-header-wrap .site-main-header-inner-wrap {
    align-items: start;
} */

/* Navigation */
#primary-menu {
    justify-content: flex-start;
}

body.primary-menu-not-defined #primary-navigation,
body.secondary-menu-not-defined #secondary-navigation {
    display: none;
}

#main-header .main-navigation .primary-menu-container > ul > li {
    margin-right: 20px;
    position: relative;
}

#main-header .main-navigation .primary-menu-container > ul > li > a {
    padding-left: 0;
    padding-right: 0;
}

.header-navigation[class*="header-navigation-style-underline"] .header-menu-container>ul>li>a:after {
    transition: none !important;
    color: var(--global-palette1);
}

#masthead .header-navigation[class*="header-navigation-style-underline"] .header-menu-container.secondary-menu-container>ul>li>a:after,
#masthead .header-navigation[class*="header-navigation-style-underline"] .header-menu-container.primary-menu-container>ul>li>a:after {
    height: 3px;
    width: 100%;
}

#masthead .header-navigation[class*="header-navigation-style-underline"] .header-menu-container.secondary-menu-container>ul>li.current-page-ancestor>a:after,
#masthead .header-navigation[class*="header-navigation-style-underline"] .header-menu-container.primary-menu-container>ul>li.current-page-ancestor>a:after {
    transform: scale(1, 1) translate(50%, 0);
}



/*
#masthead .header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a {
    background: white;
}

#masthead .header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a:hover {
    background: var(--global-palette8);
}
*/

/* #main-header .main-navigation .primary-menu-container > ul > li > a:after {
    content: "";
    position: absolute;
    right: 0.25em;
    bottom: 0;
    left: 0;
    display: block;
    background-color: #000;
    background-color: var(--global-palette1);
    height: 3px;
    opacity: 0;
    pointer-events: none;
} */

#main-header .main-navigation .primary-menu-container > ul > :is(li.menu-item.current-menu-item, li.menu-item.current-menu-ancestor) > a:after {
    opacity: 1;
}

#main-header .main-navigation .primary-menu-container > ul > :is(li.menu-item.current-menu-item, li.menu-item.current-menu-ancestor) > a {
    color: black;
}

/* #main-header .main-navigation .primary-menu-container > ul > :is(li.menu-item.current-menu-item, li.menu-item.current-menu-ancestor) > a .dropdown-nav-toggle,
#main-header .main-navigation .primary-menu-container > ul > :is(li.menu-item.current-menu-item, li.menu-item.current-menu-ancestor) > a:after {
    color: var(--global-palette1);
} */

#main-header .main-navigation .primary-menu-container > ul > :is(li.menu-item.current-menu-item, li.menu-item.current-menu-ancestor) > a .dropdown-nav-toggle {
    color: var(--global-palette1);
}

#main-header .nav--toggle-sub .dropdown-nav-toggle {
    color: var(--global-palette1);
}

.secondary-navigation .secondary-menu-container > ul li.menu-item.lang-item > a {
    font-size: 0.9rem;
    font-weight: 400;
}

#mobile-secondary-menu {
    display: flex;
    
}

#mobile-secondary-menu li.menu-item.lang-item > a {
    font-size: 0.9rem;
    font-weight: 400;
}

#mobile-drawer .header-mobile-search-bar {
    margin-top: 0;
}

/* Breadcrumbs */
.rank-math-breadcrumb,
.kadence-breadcrumbs {
    font-size: 0.875rem;
}

:is(.rank-math-breadcrumb, .kadence-breadcrumbs) a {
    text-decoration: none;
    color: black;
}

:is(.rank-math-breadcrumb, .kadence-breadcrumbs) a:is(:hover,:visited) {
    color: black;
}

:is(.rank-math-breadcrumb, .kadence-breadcrumbs) a:hover {
    text-decoration: underline;
}

/* Header logos */
.site-branding a.brand:not(:has(img)) {
    gap: 0;
}

.header-logos {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
}

.header-logos.items-2 {
    grid-template-columns: auto 1fr;
}

.header-logos.items-3 {
    grid-template-columns: auto 1fr 1fr;
}

@media (max-width: 676px) {
    .header-logos.items-3 {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.header-logos.items-4 {
    grid-template-columns: auto 1fr 1fr 1fr;
}

.header-logos .item {
    margin: 0 auto;
}

.header-logos:not(:has(img)) {
    display: none !important;
}

/* SIDEBAR */

/* Reverse order for sidebar and content for mobile */

@media (max-width: 1024px) { 
    .has-sidebar .content-container.site-container {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* Collapse submenu for mobile */
.utu-sidebar-toggle,
#block-19 {
    display: none;
}

@media (max-width: 1024px) {

    aside#secondary {
        margin-left: 0;
        margin-right: 0;
    }

    #block-19 {
        display: block;
        text-align: left;
        width: 100%;
        position: relative;
        float: left;
    }

    .utu-sidebar-toggle {
        display: block;
        position: relative;
        width: 200px;
        background: rgb(219, 219, 219);
        color: white;
        /* border-radius: 25px; */
        padding: 10px 55px 10px 25px;   
           
    }

    #secondary .sidebar-inner-wrap:not(:has(.current-menu-ancestor.has-child, .current-menu-item.has-child)) .pagelist-toggle {
        display: none;
    }

    .utu-sidebar-toggle:after {
        content: '';
        /* background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' class='kadence-svg-icon kadence-menu-svg' fill='currentColor' version='1.1' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctitle%3ENäytettävä/piilotettava valikko%3C/title%3E%3Cpath d='M3 13h18c0.552 0 1-0.448 1-1s-0.448-1-1-1h-18c-0.552 0-1 0.448-1 1s0.448 1 1 1zM3 7h18c0.552 0 1-0.448 1-1s-0.448-1-1-1h-18c-0.552 0-1 0.448-1 1s0.448 1 1 1zM3 19h18c0.552 0 1-0.448 1-1s-0.448-1-1-1h-18c-0.552 0-1 0.448-1 1s0.448 1 1 1z'%3E%3C/path%3E%3C/svg%3E"); */
        background-image: url('data:image/svg+xml,<svg aria-hidden="true" class="kadence-svg-icon kadence-arrow-down-svg" fill="currentColor" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><title>Laajenna</title><path d="M5.293 9.707l6 6c0.391 0.391 1.024 0.391 1.414 0l6-6c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"></path></svg>');
        background-position: center center;
        background-repeat: no-repeat;
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 50px;
        color: black;
        transition: all .2s ease-in;  
    }

    #secondary:has(.wp-block-page-list.open) .utu-sidebar-toggle:after {
        transform: rotate(180deg);
    }

    :is(#block-7,#nav_menu-2, #secondary .wp-block-page-list) {
        display: none;
    }

    :is(#block-7,#nav_menu-2, #secondary .wp-block-page-list).open {
        /* margin-top: 0;
        padding-top: 0; */
        display: block;
    }
}


/* Submenu */
#secondary .wp-block-page-list {
    padding-top: var(--global-kb-row-default-top, var(--global-kb-spacing-sm, 1.5rem) );
    padding-left: 0;
    margin-left: 0;
}

.has-sidebar .entry-content.single-content > :first-child:not(.wp-block-kadence-rowlayout) {
    padding-top: var(--global-kb-row-default-top, var(--global-kb-spacing-sm, 1.5rem) );
}

/* #primary:not(:has(#main .kb-row-layout-wrap)) #secondary .wp-block-page-list {
    padding-top: 0;
} */

#secondary .wp-block-page-list ul {
    padding-left: 1rem;
    margin-left: 0;
}

#secondary .wp-block-page-list > .wp-block-pages-list__item > ul {
    padding-left: 0;
}

#secondary .wp-block-page-list .wp-block-pages-list__item {
    list-style-type: none;
    display: none;
}

#secondary .wp-block-pages-list__item:is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation__submenu-container > .wp-block-pages-list__item,
#secondary .wp-block-page-list .wp-block-pages-list__item:is(.current-menu-item, .current-menu-ancestor) {
    display: block;
}

/* #secondary .wp-block-page-list .wp-block-pages-list__item:is(.current-menu-item:not(.has-child)) {
    display: none;
} */

#secondary .wp-block-page-list .wp-block-pages-list__item:is(.current-menu-item, .current-menu-ancestor) > :is(a, .wp-block-pages-list__item) {
    font-weight: bold;
    color: black;
}

#secondary a:where(:not(.button):not(.wp-block-button__link):not(.wp-element-button)):hover {
    color: black;
}

#secondary .wp-block-page-list > .wp-block-pages-list__item:is(.current-menu-item, .current-menu-ancestor) > a {
    color: black !important;
    font-size: 1.3125rem;
}

#secondary .wp-block-page-list .wp-block-pages-list__item:is(.current-menu-item, .current-menu-ancestor) > .submenu-container > .wp-block-pages-list__item {
    /* display: block; */
}

#secondary .wp-block-page-list .wp-block-pages-list__item > a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 6px;
}

#secondary .wp-block-page-list .wp-block-pages-list__item > a:before {
    content: "> ";
    display: inline-block;	
    /* margin-right: 10px; */
    text-decoration: none !important;
    /* width: 22px; */
}

#secondary .wp-block-page-list .wp-block-pages-list__item > a:before:hover,
#secondary .wp-block-page-list .wp-block-pages-list__item > a:first-child {
    text-decoration: none !important;
}

#secondary .wp-block-page-list .has-child > a:after {
    content: '';
    height: 15px;
    width: 18px;
    -webkit-mask: url('data:image/svg+xml,<svg aria-hidden="true" class="kadence-svg-icon kadence-arrow-down-svg" fill="78c8d2" version="1.1" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><title>Expand</title><path d="M5.293 9.707l6 6c0.391 0.391 1.024 0.391 1.414 0l6-6c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"></path></svg>');
    mask: url('data:image/svg+xml,<svg aria-hidden="true" class="kadence-svg-icon kadence-arrow-down-svg" fill="78c8d2" version="1.1" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><title>Expand</title><path d="M5.293 9.707l6 6c0.391 0.391 1.024 0.391 1.414 0l6-6c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"></path></svg>');
    /* background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' class='kadence-svg-icon kadence-arrow-down-svg' fill='currentColor' version='1.1' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctitle%3EExpand%3C/title%3E%3Cpath d='M5.293 9.707l6 6c0.391 0.391 1.024 0.391 1.414 0l6-6c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z'%3E%3C/path%3E%3C/svg%3E"); */
    display: inline-block;
    /* margin-left: 10px; */
    background-color: var(--global-palette1);
    /* transform: rotate(-90deg); */
    /* margin-bottom: -10px; */
    padding-top: 4px;
}

#secondary .wp-block-page-list :is(.current-menu-item.has-child, .current-menu-ancestor.has-child) > a:after {
    transform: rotate(180deg);
}

#secondary .wp-block-page-list > .wp-block-pages-list__item > a:before, 
#secondary .wp-block-page-list > .wp-block-pages-list__item > a:after {
    display: none !important;
    color: black !important;
}

#secondary .collapse-sub-navigation ul.menu {
    position: relative;
    float: left;
    width: 100%;
    margin-bottom: 30px;
}

#secondary .collapse-sub-navigation ul.menu li a {
    padding: 0;
    border: 0 solid transparent;
}

#secondary .collapse-sub-navigation ul.menu .drawer-nav-drop-wrap .drawer-sub-toggle {
    border: 0px solid transparent;
    padding: 0 0.7em;
}

#secondary #menu-nav_menu-2 > :is(.current-page-ancestor, .current-menu-ancestor, .current-menu-parent, .current-page-parent) > .drawer-nav-drop-wrap > .drawer-sub-toggle[aria-expanded="true"],
#secondary #menu-nav_menu-2 > .current-menu-item > .drawer-nav-drop-wrap > .drawer-sub-toggle[aria-expanded="true"] {
    display: none;
}

#secondary #menu-nav_menu-2 > :is(.menu-item:not(.current_page_item, .current-page-ancestor, .current-menu-ancestor, .current-menu-parent, .current-page-parent)) {
    display: none;
}

#secondary #menu-nav_menu-2 a:hover {
    text-decoration: underline;
}

#secondary #menu-nav_menu-2 > :is(.current-page-ancestor, .current-menu-ancestor, .current-menu-parent, .current-page-parent) {
    display: block;
}

#secondary #menu-nav_menu-2 > :is(.current-page-ancestor, .current-menu-ancestor, .current-menu-parent, .current-page-parent) > a {
    font-weight: bold;
}

#secondary #menu-nav_menu-2 > :is(.current-page-ancestor, .current-menu-ancestor, .current-menu-parent, .current-page-parent, .current_page_item) > .drawer-nav-drop-wrap > a {
    font-weight: bold;
    font-size: 1.3125rem;
}

#secondary #menu-nav_menu-2 .drawer-nav-drop-wrap {
    float: left;
    clear: both;
    position: relative;
}

#secondary #menu-nav_menu-2 li {
    position: relative;
    float: left;
    width: 100%;
}

#secondary #menu-nav_menu-2 :is(.current-menu-item) > a,
#secondary #menu-nav_menu-2 :is(.current-menu-item) > .drawer-nav-drop-wrap > a {
    font-weight: bold;
}

/* BLOCKS */
/* Table of contents */
#main .wp-block-rank-math-toc-block > :is(p, div, h2, h3, h4, h5, h6) {
    margin-bottom: 10px;
}

.wp-block-rank-math-toc-block a {
    color: black;
    text-decoration: none;
}

#main .wp-block-rank-math-toc-block a:hover {
    color: black;
    text-decoration: underline;
}

/* Events */
.entry.events a {
    text-decoration: none;
    color: black;
}

.entry.events a .read-more {
    color: var(--global-palette1);
}

.entry.events .news-event {
    padding-left: 0;
    padding-right: 0;
}

.single-events .entry-header :is(.post-date, .event-location) {
    margin: 0 0 20px 0;
}

/* Blog / Archive */

.search-form .search-field::placeholder{
    color: black;
    opacity: 1;
}

.search-form .search-field:focus::placeholder {
    color: #eee;
}

.search-results .content-container.site-container {
    padding-bottom: 40px;
}

.search-results .content-container.site-container .pagination {
    display: inline-block;
    margin-bottom: 0;
}

.loop-entry.override {
    background: var(--global-palette8, #d9d9d9);
}

.loop-entry .entry-content-wrap.override {
    padding: 0;
}

.loop-entry .entry-content-wrap.override a {
    text-decoration: none;
    color: black
}

.loop-entry .entry-content-wrap.override a:hover {
    
}

.loop-entry .entry-content-wrap.override a .image {
    aspect-ratio: 400/220;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.loop-entry .entry-content-wrap.override a .image img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
    transition: all 0.5s ease-out;

}

.loop-entry .entry-content-wrap.override a:hover img {
    transform: scale(1.2);
}

.loop-entry .entry-content-wrap.override .details {
    text-decoration: none;
    padding: 30px;
}

.loop-entry .entry-content-wrap.override .details

.loop-entry .entry-content-wrap.override .entry-title {
    font-size: 1.315rem;
}

.loop-entry .entry-content-wrap.override .entry-title:hover {
    /* color: var(--global-palette1); */
    text-decoration: underline;
}

:is(.blog, .archive) #main.site-main {
    padding-bottom: 40px;
}

.content-width-narrow #wrapper .content-container.site-container > #main {
    padding-bottom: 40px;
}

.content-style-boxed:not(.disable-gray-background) #masthead {
    background: #f2f2f2;
}

body.disable-gray-background {
    background: white;
}

.content-style-boxed #masthead .site-container,
.content-style-boxed .utu-breadcrumb > .kt-row-column-wrap,
.content-style-boxed #primary > .site-container {
    background: white;
}

/* 404 */
.error404 .page-content.entry {
    padding: 2rem 0;
    margin-top: 0;
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
    border-radius: 0;
}