/*
Theme Name: TH-ensiapukoulutus
Theme URI: https://markkinointiukkonen.fi/kotisivut-hinta/
Author: Markkinointi Ukkonen Oy
Author URI: https://markkinointiukkonen.fi/
Description: TH-ensiapukoulutukselle tehty WordPress-teema.
Version: 1.0
Text Domain: thensiapukoulutus
*/

:root {
	--sininen: #1E104B;
	--turkoosi: #01AFAE;
	--vaaleanturkoosi: #00C2C1;
	--musta: #000000;
	--valkoinen: #FFFFFF;
}

html, body {
	margin: 0;
	font-family: "Rubik", sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 22px;
	color: var(--sininen);
}

h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    overflow-wrap: break-word;
    /*-webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;*/
    font-weight: 800;
    color: var(--turkoosi);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	text-decoration: none;
	transition: 0.25s color;
	color: var(--turkoosi);
}

a:hover {
	color: var(--vaaleanturkoosi);
}

h1 {
	font-size: 4.091rem;
	line-height: 1.111em;
}

h2 {
	font-size: 2.273rem;
}

h3 {
	font-size: 1.182rem;
}

h4, h5 {
	font-size: 1rem;
}

img {
	max-width: 100%;
	height: auto;
}

blockquote {
	quotes: '"' '"' '"' '"';
	font-style: italic;
}

blockquote:before {
    content: open-quote;
}

blockquote:after {
    content: close-quote;
}

.alignleft {
    float: left;
    margin: 0.3em 2em 2em 0;
}

.aligncenter {
	display: block;
	margin: 2em auto;
}

.alignright {
    float: right;
    margin: 0.3em 0 2em 2em;
}

.wp-caption-text {
    font-size: 0.9em;
    font-style: italic;
    margin-top: 0.25em;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.embed-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
} 

.embed-container iframe,
.embed-container object,
.embed-container embed { 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.kehys {
	width: 1920px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	max-width: 100%;
	padding-left: 12.636rem;
	padding-right: 12.636rem;
}

.rivi {
	display: flex;
	flex-wrap: wrap;
	box-sizing: border-box;
}

.solu {
	display: block;
	box-sizing: border-box;
}

.solu12 {
	width: 100%;
}

.solu11 {
	width: calc(100% / 12 * 11);
}

.solu10 {
	width: calc(100% / 1.2);
}

.solu9 {
	width: 75%;
}

.solu8 {
	width: calc(100% / 1.5);
}

.solu7 {
	width: calc(100% / 12 * 7);
}

.solu6 {
	width: 50%;
}

.solu5 {
	width: calc(100% / 2.4);
}

.solu4 {
	width: calc(100% / 3);
}

.solu3 {
	width: 25%;
}

.solu2 {
	width: calc(100% / 6);
}

.solu1 {
	width: calc(100% / 12);
}

a.paalogo, a.paalogo img {
    display: block;
}

.mobile_nav_toggle {
    display: none;
}

.paavalikko > .kehys {
    padding-left: 3.636rem;
    padding-right: 3.636rem;
    display: grid;
    grid-template-columns: 280px 1fr;
}

a.paalogo {
    margin-top: 0.773rem;
    margin-bottom: 0.773rem;
    position: relative;
    z-index: 2;
    width: 280px;
    max-width: 100%;
    background: var(--valkoinen);
}

ul.navigaatio {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-decoration: none;
    padding: 0 0.682rem 0 0;
    margin: 0;
    list-style: none;
    gap: 2.045rem;
}

ul.navigaatio a {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: #1e104b;
}

@media screen and (min-width: 1001px) {
	ul.navigaatio a:hover {
		color: var(--turkoosi);
	}
}

li.menu-item-has-children {
    position: relative;
}

ul.navigaatio > li, ul.sub-menu > li {
    display: block;
    background: none;
    margin: 0;
    padding: 0;
}

ul.sub-menu {
    display: block;
    position: absolute;
    left: -1.636rem;
    top: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--valkoinen);
    z-index: 100;
    padding: 1.636rem;
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.25s transform;
}

.iso_hero {
    min-height: 500px;
    aspect-ratio: 1920 / 845;
    background: url(images/kuositausta.svg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.isohero_kuvio {
    position: absolute;
    display: block;
    background: url(images/pakattu-1.png);
    top: -50px;
    left: 25px;
    bottom: 0;
    width: 50%;
    background-size: auto 100% !important;
    background-repeat: no-repeat !important;
    background-position: left bottom !important;
    z-index: 1;
}

.iso_hero .kehys {
    display: block;
    padding-left: 33.409rem;
    padding-right: 2rem;
}

.iso_hero h1 {
    margin: 0;
    color: var(--turkoosi);
    position: relative;
    z-index: 10;
}

ul.navigaatio li.menu-item-has-children > a {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="17.838" height="10.823" viewBox="0 0 17.838 10.823"><path id="Union_1" data-name="Union 1" d="M7.574,10.265.557,3.249A1.9,1.9,0,0,1,3.249.557L8.919,6.23,14.59.559A1.9,1.9,0,1,1,17.281,3.25l-7.016,7.015a1.9,1.9,0,0,1-2.692,0Z" fill="%2301afae"/></svg>');
    background-size: 18px auto !important;
    background-repeat: no-repeat !important;
    background-position: center right !important;
    padding-right: 1.45em;
}

ul.sub-menu a {
    white-space: nowrap;
    text-transform: none;
    font-weight: 600;
    margin-bottom: 1em;
}

ul.sub-menu > li:last-child a {
    margin-bottom: 0;
}

li:hover > ul.sub-menu {
    transform: scaleY(1.0);
    transition: 0.5s transform;
}

main.teksti_ja_ote {
    display: grid;
    grid-template-columns: 34.6% 65.4%;
    margin-top: 11.364rem;
    margin-bottom: 11.364rem;
}

.teksti_ja_ote > .teksti {
    padding-left: 5.136rem;
    box-sizing: border-box;
    display: block;
}

.alasivu_teksti > *:first-child,
.otayhteytta_vasen > *:first-child,
.ote > *:first-child, .teksti > *:first-child {
    margin-top: 0;
}

.alasivu_teksti > *:last-child,
.otayhteytta_vasen > *:last-child,
.ote > *:last-child, .teksti > *:last-child {
    margin-bottom: 0;
}

.ote {
    display: block;
    font-size: 1.091rem;
    font-weight: 800;
    color: var(--turkoosi);
    line-height: 1.500em;
}

p {
    line-height: 1.5em;
    margin-bottom: 1.7em;
}

.bg_turkoosi {
    display: block;
    background: var(--turkoosi);
}

.bg_vaaleanturkoosi {
    display: block;
    background: var(--vaaleanturkoosi);
	color: var(--valkoinen);
}

.nostolaatikot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.409rem;
    padding-top: 11.727rem;
    padding-bottom: 11.727rem;
}

h2+.nostolaatikot {
	padding-top: 3rem;
}

a.nostolaatikko {
    display: block;
    background: var(--vaaleanturkoosi);
    color: var(--valkoinen);
    font-size: 1.227rem;
    font-weight: 800;
    padding: 5rem 2rem;
    text-align: center;
    transition: 0.25s background;
}

a.nostolaatikko:hover {
	background: var(--sininen);
}

a.nostolaatikko > img {
    width: 100%;
    height: 120px;
    display: block;
    object-fit: contain;
    margin-bottom: 2.455rem;
}

aside.ajankohtaista {
    display: block;
    margin-top: 10.591rem;
    margin-bottom: 11.364rem;
}

article.ajankohtainen {
    display: block;
    margin: 5.636rem 0;
}

span.ajankohtainen_paivays {
    display: block;
    font-size: 0.909rem;
    color: var(--turkoosi);
    font-weight: 600;
    background: url(images/ikoni_paivays.svg);
    background-repeat: no-repeat;
    background-size: auto 100%;
    padding-left: 1.6em;
    line-height: 1em;
}

.ajankohtainen h3 {
    margin: 1.308em 0;
    color: var(--sininen);
}

.bg_sininen {
    display: block;
    background: var(--sininen);
    color: var(--valkoinen);
}

.teksti_ja_kuva {
    position: relative;
    padding-top: 7.091rem;
    padding-bottom: 7.682rem;
    display: block;
}

.teksti_ja_kuva > .teksti {
    display: block;
    width: 46%;
}

.kuva {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: calc(54% - 100px);
}

.kuva_kuva {
    display: block;
    position: absolute;
    top: -58px;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(images/tero_kuva.png);
    background-size: contain !important;
    background-position: right bottom !important;
    background-repeat: no-repeat !important;
}

.otayhteytta {
    display: grid;
    padding-top: 6.455rem;
    padding-bottom: 7.227rem;
    align-items: flex-start;
    grid-template-columns: 36.5% 63.5%;
    color: var(--valkoinen);
}

.otayhteytta_oikea {
    display: block;
    padding-left: 8.364rem;
    box-sizing: border-box;
}

.otayhteytta_vasen h2 {
    color: var(--valkoinen);
}

.otayhteytta a {
    color: var(--valkoinen);
}

.otayhteytta a:hover {
    color: var(--sininen);
}

.wpcf7-text,
.wpcf7-textarea {
    display: block;
    width: 100%;
    border: 0;
    box-sizing: border-box;
    font-size: 0.909rem;
    color: var(--sininen);
    padding: 0.77em 1.300em;
    margin-bottom: 0.550em;
    font-family: "Rubik", sans-serif;
    font-style: normal;
    font-weight: 400;
}

.wpcf7-text::placeholder,
.wpcf7-email::placeholder,
.wpcf7-textarea::placeholder {
    color: var(--turkoosi);
}

.wpcf7-acceptance label, .wpcf7-acceptance input {
    cursor: pointer;
}

.wpcf7-acceptance input {
    width: 20px;
    height: 20px;
    margin: 0 0.5em 0 0;
}

wpcf7-acceptance label {
    display: flex;
    align-items: center;
}

.wpcf7-acceptance {
    display: block;
    margin: 1rem 0 2rem 0;
}

.wpcf7-submit.nappula {
    font-size: 1rem;
    background: none;
    border: 3px solid var(--valkoinen);
    color: var(--valkoinen);
    font-family: "Rubik", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 38px;
    padding: 0.47em 1.27em;
    cursor: pointer;
    transition: 0.25s color, 0.25s background;
}

.wpcf7-submit.nappula:hover {
    background: var(--valkoinen);
    color: var(--turkoosi);
}

.leftborder > p {
    display: block;
    border-left: 3px solid var(--valkoinen);
    padding-left: 1.318rem;
    margin-top: 2.364rem;
}

footer.alapalkki {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.091rem 2rem 1.227rem 2rem;
    gap: 1.182rem;
    font-size: 0.85rem;
}

footer.alapalkki a {
    color: var(--sininen);
}

footer.alapalkki a:hover {
    color: var(--turkoosi);
}

aside.ajankohtaista > h2, aside.ajankohtaista > h3, aside.ajankohtaista > h4, aside.ajankohtaista > h5 {
    color: var(--sininen);
}

aside.ajankohtaista > h3 {
	margin-top: 2.5rem;
}

.slick-prev, .slick-next {
    width: 40px;
    height: 70px;
    z-index: 10;
    transition: 0.25s background;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1.0 !important;
	top: calc(50% - 4.35rem);
}

.slick-prev,
.slick-prev:focus {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="38.085" height="61.676" viewBox="0 0 38.085 61.676"><path id="Path_40" data-name="Path 40" d="M46.085,13.247,38.838,6,8,36.838,38.838,67.676l7.247-7.247L22.545,36.838Z" transform="translate(-8 -6)" fill="%2300C2C1"/></svg>');
}

.slick-next,
.slick-next:focus {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="38.085" height="61.676" viewBox="0 0 38.085 61.676"><path id="Path_42" data-name="Path 42" d="M15.837,6,8.59,13.247,32.129,36.838,8.59,60.429l7.247,7.247L46.675,36.838Z" transform="translate(-8.59 -6)" fill="%2300C2C1"/></svg>');
}

.slick-prev:hover {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="38.085" height="61.676" viewBox="0 0 38.085 61.676"><path id="Path_40" data-name="Path 40" d="M46.085,13.247,38.838,6,8,36.838,38.838,67.676l7.247-7.247L22.545,36.838Z" transform="translate(-8 -6)" fill="%231E104B"/></svg>');
}

.slick-next:hover {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="38.085" height="61.676" viewBox="0 0 38.085 61.676"><path id="Path_42" data-name="Path 42" d="M15.837,6,8.59,13.247,32.129,36.838,8.59,60.429l7.247,7.247L46.675,36.838Z" transform="translate(-8.59 -6)" fill="%231E104B"/></svg>');
}

.slick-next:before,
.slick-prev:before {
    display: none !important;
}

.slick-next {
    right: -100px;
}

.slick-prev {
    left: -100px;
}


.hero {
    display: block;
    background: url(images/kuositausta.svg);
    background-size: cover;
    background-position: center;
    padding: 3.5rem 3rem 3.5rem 0;
    position: relative;
}

.hero > h1 {
    display: block;
    margin-left: 47%;
    z-index: 2;
    position: relative;
}

.hero_kuvio {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: url(images/alahero.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center left;
}

main.alasivu_teksti {
    display: block;
    padding-right: 394px;
    margin-top: 10.682rem;
    margin-bottom: 10.682rem;
}

.fullwidth_rajoittaja {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.alasivu_kuvio {
    display: block;
    position: absolute;
    width: 424px;
    height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    background: url(images/alasivu_kuvio.svg);
    background-position: top 10.682rem left;
    background-repeat: no-repeat;
}

main.alasivu_teksti h2, main.alasivu_teksti h3, main.alasivu_teksti h4, main.alasivu_teksti h5 {
    color: var(--sininen);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    display: block;
    background: url(images/ikoni_lista.svg);
    background-position: left top 6px;
    background-repeat: no-repeat;
    padding-left: 1.6em;
    background-size: 1.136em auto;
    margin: 0.4rem 0;
}

p+ul {
    margin-top: -1.5em;
}

ul+p {
    margin-top: 2rem;
}

.nostolaatikot span {
    display: block;
    padding: 0.727rem;
    box-sizing: border-box;
}

.nostolaatikot.slider {
    margin-left: -0.727rem;
    margin-right: -0.727rem;
    display: block;
}

.slick-track {
	display: flex;
}

.slick-track .slick-slide {
	display: flex;
	height: auto;
}

.slider a.nostolaatikko {
    width: 100%;
    box-sizing: border-box;
}

h2.kaikkikoulutukset {
    margin-top: 0;
    color: var(--valkoinen);
    text-align: center;
    padding-top: 11.727rem;
    margin-bottom: 0;
}

.wpcf7-list-item {
	margin-left: 0;
}

.wpcf7-acceptance label {
	display: flex;
	align-items: center;
}

.wpcf7-not-valid-tip {
	margin-bottom: 0.550em;
	background: #700;
	padding: 0.5em 1.300em;
	color: var(--valkoinen);
	margin-top: -0.550em;
}

.wpcf7 form.invalid .wpcf7-response-output {
	background: #700;
	padding: 2.5em 2em;
	color: var(--valkoinen);
	border: 0;
	margin: 0 0 2rem 0;
	text-align: center;
}

a.sahkopostiosoite > i {
    display: none !important;
}

#eu_rahoitus {
	font-size: 0.85rem;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

#eu_rahoitus p {
	margin: 0;
}

@media screen and (min-width: 2400px) {
	.isohero_kuvio {
		background-position: right bottom !important;
	}

	.iso_hero .kehys {
	    padding-left: 38rem;
	}
}

@media screen and (min-width: 2600px) {
	.iso_hero {
		aspect-ratio: initial;
		height: 1137px;
	}
}

@media screen and (max-width: 1800px) {
	html, body {
		font-size: 20px;
	}
}

@media screen and (max-width: 1600px) {
	html, body {
		font-size: 18px;
	}

	h1 {
		font-size: 3.5rem;
	}

	h2 {
		font-size: 2.2rem;
	}

	.iso_hero .kehys {
		display: block;
		padding-right: 5rem;
	}

	.kehys {
		padding-left: 6rem;
		padding-right: 6rem;
	}

	.otayhteytta_oikea {
		padding-left: 6rem;
	}

	.nostolaatikot.slider {
		padding-left: 90px;
		padding-right: 90px;
		margin-left: 0;
		margin-right: 0;
	}

	.slick-prev {
		left: 0px;
	}

	.slick-next {
		right: 0px;
	}

	.alasivu_kuvio {
		width: 25%;
		background-size: 130% auto;
	}
}

@media screen and (max-width: 1400px) {
	h1 {
		font-size: 3rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	.kehys {
		padding-left: 3rem;
		padding-right: 3rem;
	}

	.hero,
	.paavalikko > .kehys {
		padding-left: 3rem;
		padding-right: 3rem;
	}

	.iso_hero .kehys {
		padding-left: 30rem;
	}

	.otayhteytta_oikea {
		padding-left: 4rem;
	}

	aside.ajankohtaista,
	main.teksti_ja_ote {
		margin-top: 8rem;
		margin-bottom: 8rem;
	}

	h2.kaikkikoulutukset {
		padding-top: 8.727rem;
	}
	
	.nostolaatikot {
		padding-top: 8rem;
		padding-bottom: 8rem;
	}

	h2+.nostolaatikot {
		padding-top: 3rem;
	}

	article.ajankohtainen {
		margin: 3rem 0;
	}

	.isohero_kuvio {
		left: 0;
		top: 0;
	}

	.iso_hero .kehys {
		padding-left: 43%;
	}

	.slick-prev, .slick-next {
		top: calc(50% - 2.5rem);
	}
}

@media screen and (max-width: 1200px) {
	main.teksti_ja_ote {
		display: block;
	}

	h1 {
		font-size: 2.6rem;
	}

	.ote {
		margin-bottom: 2rem;
	}

	.teksti_ja_ote > .teksti {
		padding-left: 0;
	}

	.kuva_kuva {
		right: -3rem;
	}

	.otayhteytta {
		display: block;
	}

	.otayhteytta_vasen {
		display: block;
		margin-bottom: 2rem;
	}

	.otayhteytta_oikea {
		padding-left: 0;
	}

	.iso_hero {
		aspect-ratio: initial;
		min-height: 500px;
	}

	aside.ajankohtaista, main.teksti_ja_ote {
		margin-top: 5rem;
		margin-bottom: 5rem;
	}

	h2.kaikkikoulutukset {
		padding-top: 3.727rem;
	}

	.nostolaatikot {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	h2+.nostolaatikot {
		padding-top: 2rem;
	}

	.teksti_ja_kuva > .teksti {
		width: 55%;
	}

	.kuva {
		width: 45%;
	}

	.hero {
		text-align: right;
		padding-right: 3rem;
		padding-left: 3rem;
	}

	.hero > h1 {
		margin-left: 0;
		padding-left: 40%;
	}

	.slick-prev, .slick-next {
		top: calc(50% - 0.5rem);
	}
}

@media screen and (max-width: 1000px) {
	.isohero_kuvio {
		left: unset;
		right: 0;
	}

	.iso_hero .kehys {
		padding-left: 3rem;
	}

	.mobile_nav_toggle {
        display: block;
        width: 30px;
        box-sizing: border-box;
        cursor: pointer;
        padding: 0;
        z-index: 100;
    }

    .viiva1,
    .viiva2,
    .viiva3 {
        width: 30px;
        height: 5px;
        background-color: var(--sininen);
        margin: 5px 0;
        transition: 0.4s;
    }

    .avattu .viiva1 {
        -webkit-transform: rotate(-45deg) translate(-8px, 7px);
        transform: rotate(-45deg) translate(-8px, 7px);
    }

    .avattu .viiva2 {
        opacity: 0;
    }

    .avattu .viiva3 {
        -webkit-transform: rotate(45deg) translate(-7px, -6px);
        transform: rotate(45deg) translate(-7px, -6px);
    }

	.paavalikko > .kehys {
	    justify-content: space-between;
	    display: flex;
	    flex-wrap: wrap;
	    align-items: center;
	}
	
	ul.navigaatio {
	    display: flex;
	    width: 100%;
	    text-align: left;
	    padding-right: 0;
	    flex-direction: column;
	    gap: 1rem;
	    padding-bottom: 1.5rem;
	    position: absolute;
	    top: 100%;
	    left: 0;
	    z-index: 100;
	    background: var(--turkoosi);
	    padding-top: 1.5rem;
	    gap: 0;
	    transform: scaleY(0);
	    transform-origin: top;
	    transition: 0.25s transform;
	}
	
	.avattu+ul.navigaatio {
		transform: scaleY(1.0);
	}
	
	nav.paavalikko {
	    display: block;
	    position: relative;
	}
	
	ul.navigaatio a {
	    font-size: 1.25rem;
	    display: inline-block;
	    padding: 0.5rem 3rem;
	    color: var(--valkoinen);
	}
	
	ul.navigaatio li.menu-item-has-children > a {
	    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="17.838" height="10.823" viewBox="0 0 17.838 10.823"><path id="Union_1" data-name="Union 1" d="M7.574,10.265.557,3.249A1.9,1.9,0,0,1,3.249.557L8.919,6.23,14.59.559A1.9,1.9,0,1,1,17.281,3.25l-7.016,7.015a1.9,1.9,0,0,1-2.692,0Z" fill="%23ffffff"/></svg>');
	}
	
	ul.sub-menu {
	    display: none;
	    position: relative;
	    transform: scaleY(1);
	    width: 100%;
	    background: var(--turkoosi);
	    padding-top: 0;
	    padding-bottom: 0;
		box-sizing: border-box;
	}
	
	ul.navigaatio > li {
	    width: 100%;
	}
	
	ul.sub-menu a {
	    margin: 0;
	    color: var(--valkoinen);
	    font-size: 1rem;
	}
	
	.isohero_kuvio {
	    background-position: right bottom !important;
	    left: 0;
	    right: 0;
	    width: 100%;
	    background-size: auto 90%;
	}

	a.nostolaatikko {
		font-size: 1rem;
		padding-left: 1rem;
		padding-right: 1rem;
	}
		
	main.alasivu_teksti {
		padding-right: 28%;
	}

	main.alasivu_teksti {
		margin-bottom: 5rem;
		margin-top: 5rem;
	}

	.alasivu_kuvio {
		background-position: top 5rem left;
	}

	a.nostolaatikko > img {
		height: 80px;
	}
}

@media screen and (max-width: 900px) {
	.hero_kuvio {
		/* background-image: none; */
		/* display: none; */
		width: 35%;
		background-position: center right;
	}

	.hero > h1 {
		padding-left: 14%;
		text-align: right;
	}

	.hero_kuvio {
		width: 40%;
	}
	
		
	footer.alapalkki a {
		display: block;
		margin: 0.5rem 0;
	}

	footer.alapalkki {
		display: block;
		text-align: center;
	}
}

@media screen and (max-width: 800px) {
	.iso_hero {
		min-height: 450px;
	}
	
	.isohero_kuvio {
		background-size: 50% auto !important;
	}

	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	.teksti_ja_kuva > .teksti {
	    width: 100%;
	}
	
	.kuva {
	    position: relative;
	    top: unset;
	    left: unset;
	    right: unset;
	    width: 500px;
	    max-width: 80%;
	    margin: 3rem auto 0 auto;
	}
	
	.kuva_kuva {
	    padding-top: 135%;
	    position: relative;
	    top: 0;
	}
	
	.teksti_ja_kuva {
	    padding-bottom: 0;
	    padding-top: 4rem;
	}

	.nostolaatikot {
	    display: block;
	    padding-bottom: 1rem;
	}
	
	a.nostolaatikko {
	    margin-bottom: 2rem;
	    font-size: 1.227rem;
	    padding-left: 2rem;
	    padding-right: 2rem;
	}

	main.alasivu_teksti {
		padding-right: 0;
	}

	.alasivu_kuvio {
		display: none;
		position: relative;
		padding-top: 60%;
		width: 60%;
		background-size: contain;
		margin: 0 auto 5rem auto;
		background-position: center;
	}

	.nostolaatikot.slider {
		padding-left: 50px;
		padding-right: 50px;
	}

	.slick-prev, .slick-next {
		width: 30px;
		height: 50px;
	}
}

@media screen and (max-width: 700px) {
	.iso_hero {
		display: block;
		padding: 4rem 2rem 0 2rem;
		text-align: center;
		min-height: unset;
	}

	.iso_hero .kehys {
		padding: 0;
	}

	.isohero_kuvio {
		position: relative;
		padding-top: 100%;
		background-size: contain !important;
		margin-top: -30px;
	}

	.iso_hero h1 {
		text-shadow: 0px 0px 5px var(--sininen);
	}
}

@media screen and (max-width: 600px) {
	.hero {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}

	.hero_kuvio {
        width: 31%;
    }
}

@media screen and (max-width: 500px) {
	html, body {
		font-size: 16px;
	}

	a.paalogo {
		width: 50%;
	}

	.hero,
	.paavalikko > .kehys {
		padding-left: 2rem;
		padding-right: 2rem;
	}

	.kehys {
		padding-left: 2rem;
		padding-right: 2rem;
	}

	aside.ajankohtaista, main.teksti_ja_ote {
		margin-top: 3rem;
		margin-bottom: 3rem;
	}

	.teksti_ja_kuva {
		padding-top: 3rem;
	}

	.otayhteytta {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.nostolaatikot.slider {
		padding-left: 20px;
		padding-right: 20px;
	}

	.slick-prev {
		left: -20px;
	}

	.slick-next {
		right: -20px;
	}

	.slick-prev, .slick-next {
		width: 20px;
		height: 40px;
	}

	.isohero_kuvio {
        margin-top: -25px;
    }

	.hero_kuvio {
		width: 35%;
	}

	ul.navigaatio a {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

@media screen and (max-width: 400px) {
	h1 {
        font-size: 1.75rem;
    }

	.hero,
	.paavalikko > .kehys {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.kehys {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.slick-prev {
		left: -10px;
	}

	.slick-next {
		right: -10px;
	}

	a.nostolaatikko {
		word-break: break-word;
		overflow-wrap: break-word;
	}

	.isohero_kuvio {
        margin-top: -15px;
    }

	ul.navigaatio a {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

@media screen and (max-width: 350px) {
	footer.alapalkki {
		display: block;
		text-align: center;
	}

	.hero_kuvio {
		display: none;
	}

	.hero > h1 {
		padding: 0;
		text-align: center;
	}

	ul.navigaatio a {
		white-space: initial;
		word-break: break-word;
		overflow-wrap: break-word;
	}
}