/*!
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 */
#secondary-menu a:hover {
    text-decoration: underline;
}
#secondary-menu .menu-item a {
    padding: 1em 0 0 0;
}
header .site-branding {
    position: relative;
    top: -20px;
}
.popup-drawer .drawer-content {
    padding: 0 !important;
}
.mobile-navigation a {
    padding-left: 20px !important;
}
.mobile-navigation .sub-menu {
    padding-left: 0;
}
.mobile-navigation .sub-menu a {
    font-size: 17px;
    font-weight: 400;
    padding-left: 40px !important;
}
.mobile-navigation ul li.menu-item-has-children .drawer-nav-drop-wrap button {
    border-left: 0 !important;
}
#secondary-menu .lang-item a:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-bottom: 5px;
    background-image: url(/wp-content/uploads/Globe.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    vertical-align: middle;
}
#mobile-secondary-menu .lang-item a:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-bottom: 5px;
    background-image: url(/wp-content/uploads/Globe.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    vertical-align: middle;
}
.main-navigation .primary-menu-container > ul > li.menu-item > a {
    padding-bottom: 0 !important;
}
.header-navigation[class*=header-navigation-style-underline] .header-menu-container>ul>li>a:after {
    height: 5px !important;
    background: var(--global-palette2) !important;
    bottom: -25px !important;
}
/* Suomeksi */
html:lang(en) #mobile-drawer .mobile-header-button-wrap {
    display: none;
}

/* Suomeksi */
html:lang(fi) #mobile-drawer .mobile-header-button2-wrap {
    display: none;
}
.header-widget-area-inner .kb-button:hover {
    text-decoration: underline !important;
}

/* KIELIVALIKKO PIILOTETTU */
.site-main-header-inner-wrap {
    margin-top: 30px;
}

@media (max-width: 1024px) {
    header .site-branding {
        top: 0px;
    }
    .site-main-header-inner-wrap {
        margin-top: 0px;
    }
}

/* Yleistä */
.entry-content-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.nosto-icon-list .kb-svg-icon-wrap {
    order: 1;
    padding-left: 12px !important;
}


.linkki-section:hover h3,
.linkki-section:hover .kb-button  {
    text-decoration: underline !important;
}

.teknologiat-lista li {
    padding: 4px 6px !important;
    border: 1px solid #C8C8C8;
    border-radius: 8px !important;
    margin-right: 10px !important;
}

.referenssit-slider ul.splide__pagination.splide__pagination {
    bottom: -50px !important;
}
.referenssit-slider .splide__pagination__page {
    border-radius: 8px !important;
    height: 6px !important;
    width: 120px !important;
}
.referenssit-slider .referenssit-slider-taxonomies {
    margin-top: 10px;
}
.referenssit-slider .referenssit-slider-taxonomy {
    font-size: 14px;
    padding: 4px 6px;
    border: 1px solid #C8C8C8;
    border-radius: 8px;
    margin-right: 10px;
    display: inline-block;
}

.referenssit-slider .kt-blocks-post-footer,
.referenssit-slider .kb-post-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.referenssit-slider .referenssit-readmore-icon {
    display: inline-flex;
    align-items: center;
}
.referenssit-slider .referenssit-readmore-icon-img {
    display: block;
    width: 160px;
    object-fit: contain;
}
.referenssit-slider .kt-blocks-post-readmore-wrap {
    margin-top: 20px;
}
.referenssit-slider .kt-blocks-post-readmore {
    float: right;
}
.referenssit-slider .kt-blocks-post-readmore:after {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 15px;
    background-image: url(/wp-content/uploads/punainen-nuoli.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    vertical-align: middle;
}
.referenssi-karuselli-kortti .kb-button:hover {
    text-decoration: underline !important;
}
@media (max-width: 767px) {
    .referenssit-slider .kb-splide .splide__slide {
        width: calc(80% + 0px) !important;
    }
    .referenssi-karuselli-rivi .kt-row-column-wrap {
        padding-right: 0 !important;
    }
    .referenssit-slider .splide__pagination__page {
        width: 60px !important;
    }
    .referenssit-slider .referenssit-slider-taxonomy {
        margin-bottom: 10px;
    }
}
.custom-blogit article .entry-header {
    display: flex;
    flex-wrap: wrap;
}
.custom-blogit .entry-title {
    order: 2;
}
.custom-blogit .entry-meta {
    order: 1;
    margin: 0 0 0 20px !important;
}
.custom-blogit .entry-meta:before {
    content: "|";
    margin-right: 20px;
    font-size: 16px;
    font-weight: bold;
    color: var(--global-palette-highlight);
}
.custom-blogit .entry-date {
    font-weight: bold;
    color: var(--global-palette-highlight);
    font-size: 16px;
}
.custom-blogit .more-link-wrap a {
    text-transform: unset;
    font-size: 17px;
    letter-spacing: normal;
}
.custom-blogit img {
    border-radius: 8px;
}
.custom-blogit .entry-taxonomies {
    font-size: 16px;
    margin-bottom: 0;
}
.custom-blogit .loop-entry .entry-taxonomies {
    margin-bottom: 0 !important;
}
@media (max-width: 767px) {
    .custom-blogit .entry-title {
        margin-top: 10px !important;
    }
}

.hlo-kortti img {
    height: 150px;
    object-fit: cover;
    width: 127px;
}

.tyopaikka-kortti .kb-button:hover{
    text-decoration: underline !important;
}

.custom-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.custom-article-item {
    display: flex;
    flex-direction: column;
}
.custom-article-image {
    display: block;
    width: 100%;
    padding-top: 60%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 15px;
}
.custom-article-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.custom-article-meta {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--global-palette-highlight);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.custom-article-divider {
    color: #4a5568;
    margin: 0 4px;
    font-weight: normal;
}
.custom-article-date {
    color: var(--global-palette-highlight);
}
.custom-article-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0 !important;
}
.custom-article-title a {
    text-decoration: none;
    color: var(--global-palette3);
    transition: color 0.2s ease;
}
.custom-article-title a:hover {
    color: var(--global-palette-highlight);
}
.custom-article-readmore {
    margin-top: auto;
    font-size: 17px;
    font-weight: 700;
    color: var(--global-palette3);
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.custom-article-readmore:hover {
    color: var(--global-palette-highlight);
}
@media (max-width: 1024px) {
    .custom-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .custom-article-grid {
        grid-template-columns: 1fr;
    }
}

.blogien-filtterit {
    margin-bottom: 3rem;
}
.blog .pagination .page-numbers svg {
    top: 7px;
    position: relative;
    width: 1.5em;
    height: 1.5em;
}