/*!
Theme Name: Meita Base Two Child Karelia23
Theme URI: https://meita.fi
Template: meita-theme-basetwo
Author: Lauri Merisaari
Author URI: https://meita.fi
Description: Child theme for Meita Base Two. Block theme based and inspired of Meita Base one and Twenty Twenty Two
Requires at least: 6.0
Tested up to: 6.1
Requires PHP: 8.0
Version: 0.0.16
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meitabasetwo
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, accessibility-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned
with others.

All files, unless otherwise stated, are released under the GNU General Public
License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)
*/

/* 
 * CSS Global variables
 *
 * Overwrite these in child theme to globally control defaults
 * Original can be found in src/css/variables.scss
 */
 :root {

    --meita-custom-nav-elements-border-width: 1px;
    
    --meita-custom-forms-input-border: 1px;
    --meita-custom-forms-input-border-style: solid;
    --meita-custom-forms-input-border-color: #808080;
    --meita-custom-forms-input-pg: white;
    --meita-custom-forms-input-border-radius: 15px;

    /* All buttons defaults, can be owerwriten in site editor */
    --meita-custom-default-border-radius: 15px;
    --meita-custom-button-padding: 11.7px;
    --meita-custom-button-hpadding: 16.7px;
    --megamenu-container-padding: 3em;
    --megamenu-nav-hpadding: 1em;

    /* Default animation duration */
    --animate-duration: 0.3s;

}

/*Yleisiä CSS asetuksia*/

html[lang="ru-RU"] h1, html[lang="ru-RU"] h2, html[lang="ru-RU"] h3, html[lang="ru-RU"] h4, html[lang="ru-RU"] h5, html[lang="ru-RU"] h6, html[lang="ru-RU"] .wp-block-pullquote blockquote p, html[lang="ru-RU"] .wp-block-archives > li > a, html[lang="ru-RU"] .wp-block-categories > li > a, html[lang="ru-RU"] .wp-block-latest-comments > li > a, html[lang="ru-RU"] .wp-block-latest-posts > li > a, html[lang="ru-RU"] .has-drop-cap:not(:focus):first-letter, html[lang="ru-RU"] body, html[lang="ru-RU"] input, html[lang="ru-RU"] textarea, html[lang="ru-RU"] button, html[lang="ru-RU"] .button, html[lang="ru-RU"] .faux-button, html[lang="ru-RU"] .wp-block-button__link, html[lang="ru-RU"] .wp-block-file__button, html[lang="ru-RU"] .has-drop-cap:not(:focus)::first-letter, html[lang="ru-RU"] .has-drop-cap:not(:focus)::first-letter, html[lang="ru-RU"] .entry-content .wp-block-archives, html[lang="ru-RU"] .entry-content .wp-block-categories, html[lang="ru-RU"] .entry-content .wp-block-cover-image, html[lang="ru-RU"] .entry-content .wp-block-latest-comments, html[lang="ru-RU"] .entry-content .wp-block-latest-posts, html[lang="ru-RU"] .entry-content .wp-block-pullquote, html[lang="ru-RU"] .entry-content .wp-block-quote.is-large, html[lang="ru-RU"] .entry-content .wp-block-quote.is-style-large, html[lang="ru-RU"] .entry-content .wp-block-archives *, html[lang="ru-RU"] .entry-content .wp-block-categories *, html[lang="ru-RU"] .entry-content .wp-block-latest-posts *, html[lang="ru-RU"] .entry-content .wp-block-latest-comments *, html[lang="ru-RU"] .entry-content p, html[lang="ru-RU"] .entry-content ol, html[lang="ru-RU"] .entry-content ul, html[lang="ru-RU"] .entry-content dl, html[lang="ru-RU"] .entry-content dt, html[lang="ru-RU"] .entry-content cite, html[lang="ru-RU"] .entry-content figcaption, html[lang="ru-RU"] .entry-content .wp-caption-text, html[lang="ru-RU"] .comment-content p, html[lang="ru-RU"] .comment-content ol, html[lang="ru-RU"] .comment-content ul, html[lang="ru-RU"] .comment-content dl, html[lang="ru-RU"] .comment-content dt, html[lang="ru-RU"] .comment-content cite, html[lang="ru-RU"] .comment-content figcaption, html[lang="ru-RU"] .comment-content .wp-caption-text, html[lang="ru-RU"] .widget_text p, html[lang="ru-RU"] .widget_text ol, html[lang="ru-RU"] .widget_text ul, html[lang="ru-RU"] .widget_text dl, html[lang="ru-RU"] .widget_text dt, html[lang="ru-RU"] .widget-content .rssSummary, html[lang="ru-RU"] .widget-content cite, html[lang="ru-RU"] .widget-content figcaption, html[lang="ru-RU"] .widget-content .wp-caption-text {
    font-family: 'Montserrat', sans-serif !important;
}

.entry-content > p > a, .block-editor-block-list__layout.is-root-container > p > a, .entry-content > ul a, .block-editor-block-list__layout.is-root-container > ul a, .entry-content > .wp-block-file a:not(.wp-block-file__button), .block-editor-block-list__layout.is-root-container .wp-block-file__textlink, .wp-block-file__button-richtext-wrapper {
    color: #018372;
}
.entry-content a{
	word-break:break-word;
	hyphens: auto;
}
.entry-content a:hover{
	text-decoration: underline;
}
.entry-content p >a:hover{
    color: #F7C278;
}
.entry-content > p > a {
    text-decoration: underline;
}
li.wp-block-post.post.type-post.status-publish.format-standard.hentry.category-events {
    margin-block-start: 15px;
}
.wp-block-media-text .wp-block-media-text__content {
	padding: 20px 30px;	
}
.entry-content{
	margin-top: 0px;
	margin-block-start:0px !important;
}

body:not(.wp-admin) h2{
	margin-top:35px !important;
	margin-bottom:20px !important;
}

blockquote{
	color: #016b38;
}

body:not(.wp-admin) h2 >a{
	color: #016b38;
}
body:not(.wp-admin) h2, h3, h5{
	margin-top: 35px;
	margin-bottom: 20px;
} 


.wp-block-template-part{
	margin-top: 0px !important;
}


mark.has-inline-color.has-custom-color-1-color{
	color: #016b38;
}

.wp-block-search__inside-wrapper{
	border-radius:0px;
}
button.wp-block-search__button.wp-element-button {
    border-radius: 0px !important;
}

/*Erottimen margin asetukset*/

hr.wp-block-separator.has-alpha-channel-opacity.is-style-wide{
	margin-top: 40px;
    margin-bottom: 40px;
}

/*Navigaation asetuksia*/

.wp-block-navigation .wp-block-navigation-item__content {
    display: block;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
.paanavi svg{
	width:32px;
	height:32px;
}
.paanavi li a{
	text-decoration: none;
}
.etsi_nav .wp-block-search__inside-wrapper{
	margin-top:5px;
}
.etsi_nav input{
	border-radius:0px;
	
}
.etsi_nav input:hover{
	border-radius:0px;
	border: 1px solid beige;
}

/*Painikkeiden asetukset*/

a.wp-block-button__link{
    text-transform: uppercase;
	color: black;
	background-color: white;
	font-size: 15px;
	font-weight:600;
}

/* arrow after links */
.entry-content .entry-title a:after, .entry-content h1 a:after, .entry-content h2 a:after, .entry-content h3 a:after, .entry-content h4 a:after, .entry-content h5 a:after, .entry-content h6 a:after {
    content: "›";
    display: inline;
    padding-left: 1rem;
		text-decoration: none;
}

/*Lainauksen asetukset*/

.wp-block-quote{
	padding-left: 20px;
	font-size:24px;
	border-left: 2px solid #016b38;
	line-height: 1.5;
}
.wp-block-quote:before{
	content : "";
}
.wp-block-quote p{
	font-size:24px;
}

/*sivukohtaisia asetuksia*/

.etusivun_media_ja_teksti >div{
	padding-left: 20px !important;
	padding-right:20px !important;
}
.etusivun-uutiset .wp-block-post-title a{
	word-break:break-word;
}
.sisaltolistaus_etusivu >ul{
	padding-bottom:30px;
}
.media_ja_teksti_napit .wp-block-media-text__content{
	padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
}
.sitaatti{
	padding-left: 20px;
	
}
.alat{
	gap: 0px !important;
}
#student_story >div{
	padding-left:0px;
}


.urapalvelut_buttons a.wp-block-button__link{
	color: black;
	background-color: white;
	font-weight: 600;
	margin-bottom: 10px;
}

.alla_vokhta{
	max-width:1040px !important;
}
.alla_vokhta .wp-block-media-text__content { 
    padding: 20px 24px;
}

/* FILTER PLUGARIN TYYLIT */
.meita-search-filter__field .remove-option{
	background-color: var(--wp--preset--color--primary);
	color: white;
}
.wp-block-meita-search-filter-search-filter-block .meita-search-filter__wrapper input{
	padding: 15px;
}
span.page-numbers.current{
	--tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    background-color: rgba(0, 107, 56, var(--tw-bg-opacity));
    border-color: #006b38;
    color: rgba(255, 255, 255, var(--tw-text-opacity));
	padding: 10px 14px !important;
}
a.page-numbers{
	display: inline-block;
    padding: 0px 4px;
    margin-right: 6px;
    cursor: pointer;
	border: 1px solid #b3dc7a;
	line-height: 1;
	padding: 12px 14px !important;
}

.projekti-listaus h2 a{
	color: black !important;
}
.projekti-listaus h2 a:hover{
	color: black !important;
	text-decoration:underline;
}

.projekti-listaus h2.wp-block-post-title{
	margin-top:1rem !important;
}

/*FACETWPn asetukset*/

.facetwp-facet input.facetwp-search{
	border-color: #dcd7ca;
    /* padding: 1.5rem 1.8rem; */
    color: inherit;
    border-radius: 0;
    border-style: solid;
    border-width: 0.1rem;
    box-shadow: none;
    display: block;
    font-size: 1.0rem;
    margin: 0;
    max-width: 100%;
    padding: 15px 10px;
    width: 100%;
    line-height: 1;
    padding-left: 18px;
}

.facetwp-input-wrap {
    display: flex !important;
    position: relative;
    min-width: 260px;
}
.facetwp-icon{
	padding-right: 10px;
} 
::-webkit-input-placeholder{
	color: #016b38;
}
.fs-dropdown, .fs-label-wrap, .fs-wrap.single {
    width: 100%!important;
}
a.facetwp-page {
	padding: 12px 14px !important;
}
.degree__item img{
	width: 273px;
	height: 200px;
}
.facetwp-template .flex-wrap{
	gap: 12px;
}
.degree__item .p-8 >p{
	margin:20px 0;
}
.flex.flex-wrap a.degree__item{
	text-align:center;
}

.degree__item {
	width:273px !important;
	height:auto;
	padding-left:0px !important;
	padding-right:0px !important;
	margin-bottom:0px !important;
	
}
.facetwp-template[data-name=haku] {
	width: 1000px !important;
}
.flex.flex-wrap.flex-col{
	width: 100%;
	margin: 0px !important;
	justify-content:center;
}
.facetwp-type-fselect .fs-option .fs-option-label {
    white-space: wrap !important;
    hyphens: auto;
    word-break: break-word;
}

div.fs-label-wrap .fs-label {
	padding: 15px !important;
}
.facetwp-facet.facetwp-facet-sivutus.facetwp-type-pager{
	margin-top: 0px !important;
}
a.degree__item.degree__item--open-amk .p-8 {
	padding: 20px 20px;
	height:70%;
	
}

/*Hakukenttien nappulat (jotka käytössä facetwpn kanssa)*/

.wp-block-button.js-search>a{
	background:transparent;
	
}
.wp-block-button.js-search{
	padding: 0px !important;
	justify-content:right;
	text-decoration: none;
}
.wp-block-column.hae-nappi.is-layout-flow{
	justify-content: right;
}
.wp-block-button.js-search >a:hover{
	color: black !important;
	text-decoration: none;
}
.wp-block-button.is-style-outline.js-remove-choices{
	padding:0px !important;
}
.wp-block-button.is-style-outline.js-remove-choices >a{
	border: none;
	text-decoration: none;
}
.wp-block-button.is-style-outline.js-remove-choices >a:hover{
	border: 2px solid black;
	text-decoration: none;
}
.search-buttons .wp-block-column:last-child .wp-block-button{
	border-color: transparent !important;
	border:0px;
}

/*Helpnet css asetukset*/

.helpnetSearchField.wp-block-search__inside-wrapper {
    border-radius: 0px;
}
button.wp-button.wp-block-button__link.helpnetSearchButton {
	border-radius:0px;
	font-weight:600;
}

@media only screen and (max-width: 998px){
	.facetwp-template .flex-wrap{
		justify-content:center;
		align-items: center;
	}
	.degree__item{
		width:80%;
	}
}
@media only screen and (max-width: 600px){
	.facetwp-pager a{
		font-size:12px;
	}
	a.facetwp-page.prev{
		display:none;
	}
	
	
}