/*-----------------------------------------------------------------------------------
	Eeri Digiohjaaja
	About: Eeri Digiavustaja on uudenlainen ohjelmisto nuorten aikuisten tukemisessa ja ohjaustyössä
	Author: Vesa Mattila
	Version: 1.0
	Built with Blocs
-----------------------------------------------------------------------------------*/
body{
	margin:0;
	padding:0;
    background:#FFFFFF;
    overflow-x:hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.page-container{overflow: hidden;} /* Prevents unwanted scroll space when scroll FX used. */
a,button{transition: background .3s ease-in-out;outline: none!important;} /* Prevent blue selection glow on Chrome and Safari */
a:hover{text-decoration: none; cursor:pointer;}
.scroll-fx-lock-init{position:fixed!important;top: 0;bottom: 0;left: :0;right: 0;z-index:99999;} /* ScrollFX Lock */
.blocs-grid-container{display: grid!important;grid-template-columns: 1fr 1fr;grid-template-rows: auto auto;column-gap: 1.5rem;row-gap: 1.5rem;} /* CSS Grid */
nav .dropdown-menu .nav-link{color:rgba(0,0,0,0.6)!important;} /* Maintain Downdown Menu Link Color in Navigation */
[data-bs-theme="dark"] nav .dropdown-menu .nav-link{color:var(--bs-dropdown-link-color)!important;} /* Maintain Downdown Menu Link Color in Navigation in Darkmode */


/* Preloader */

.page-preloader{position: fixed;top: 0;bottom: 0;width: 100%;z-index:100000;background:#FFFFFF url("img/pageload-spinner.gif") no-repeat center center;animation-name: preloader-fade;animation-delay: 2s;animation-duration: 0.5s;animation-fill-mode: both;}
.preloader-complete{animation-delay:0.1s;}
@keyframes preloader-fade {0% {opacity: 1;visibility: visible;}100% {opacity: 0;visibility: hidden;}}

/* = Blocs
-------------------------------------------------------------- */

.bloc{
	width:100%;
	clear:both;
	background: 50% 50% no-repeat;
	padding:0 20px;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	position:relative;
	display:flex;
}
.bloc .container{
	padding-left:0;
	padding-right:0;
	position:relative;
}


/* Sizes */

.bloc-lg{
	padding:100px 20px;
}
.bloc-md{
	padding:50px 20px;
}
.bloc-sm{
	padding:20px;
}

/* = Full Width Blocs 
-------------------------------------------------------------- */

.full-width-bloc{
	padding-left:0;
	padding-right:0;
}
.full-width-bloc .row{
	margin-left:0;
	margin-right:0;
}
.full-width-bloc .container{
	width:100%;
	max-width:100%!important;
}
.full-width-bloc .carousel img{
	width:100%;
	height:auto;
}


/* Edge Dividers */

.bloc-shape-divider{
	position: absolute;
	width:100%;
	text-align:center;
	left:0;
	right:0;
	z-index: 0;
	display: flex;
	pointer-events: none;
}
.svg-divider{
	width:100%;
	height:100px;
	fill:#000000;
}
.bloc-divider-top{
	top:-1px;
	align-items: flex-start;
}
.bloc-divider-bottom{
	bottom:-1px;
	align-items: flex-end;
}


/* Background Styles */

.bg-center,.bg-l-edge,.bg-r-edge,.bg-t-edge,.bg-b-edge,.bg-tl-edge,.bg-bl-edge,.bg-tr-edge,.bg-br-edge,.bg-repeat{
	-webkit-background-size: auto!important;
	-moz-background-size: auto!important;
	-o-background-size: auto!important;
	background-size: auto!important;
}
.bg-t-edge{
	background-position: top!important;
	background-repeat: no-repeat;
}
.bg-r-edge{
	background-position: right!important;
	background-repeat: no-repeat;
}


/* Background Textures */

.bloc-bg-texture::before{
	content:"";
	background-size: 2px 2px;
	position: absolute;
	top: 0;
	bottom: 0;
	left:0;
	right:0;
}
.texture-geometry-shapes::before{
	background: url("img/texture-geometry-shapes.png");
	background-size: 280px 280px;
}
.texture-geometry-shapes-2::before{
	background: url("img/texture-geometry-shapes-2.png");
	background-size: 200px 200px;
}


/* Light theme */

.d-bloc .card,.l-bloc{
	color:rgba(0,0,0,.5);
}
.d-bloc .card button:hover,.l-bloc button:hover{
	color:rgba(0,0,0,.7);
}
.l-bloc .icon-round,.l-bloc .icon-square,.l-bloc .icon-rounded,.l-bloc .icon-semi-rounded-a,.l-bloc .icon-semi-rounded-b{
	border-color:rgba(0,0,0,.7);
}
.d-bloc .card .divider-h span,.l-bloc .divider-h span{
	border-color:rgba(0,0,0,.1);
}
.d-bloc .card .a-btn,.l-bloc .a-btn,.l-bloc .navbar a,.l-bloc a .icon-sm, .l-bloc a .icon-md, .l-bloc a .icon-lg, .l-bloc a .icon-xl, .l-bloc h1 a, .l-bloc h2 a, .l-bloc h3 a, .l-bloc h4 a, .l-bloc h5 a, .l-bloc h6 a, .l-bloc p a{
	color:rgba(0,0,0,.6);
}
.d-bloc .card .a-btn:hover,.l-bloc .a-btn:hover,.l-bloc .navbar a:hover, .l-bloc a:hover .icon-sm, .l-bloc a:hover .icon-md, .l-bloc a:hover .icon-lg, .l-bloc a:hover .icon-xl, .l-bloc h1 a:hover, .l-bloc h2 a:hover, .l-bloc h3 a:hover, .l-bloc h4 a:hover, .l-bloc h5 a:hover, .l-bloc h6 a:hover, .l-bloc p a:hover{
	color:rgba(0,0,0,1);
}
.l-bloc .navbar-toggle .icon-bar{
	color:rgba(0,0,0,.6);
}
.d-bloc .card .btn-wire,.d-bloc .card .btn-wire:hover,.l-bloc .btn-wire,.l-bloc .btn-wire:hover{
	color:rgba(0,0,0,.7);
	border-color:rgba(0,0,0,.3);
}


/* = NavBar
-------------------------------------------------------------- */

/* Navbar Icon */
.svg-menu-icon{
	fill: none;
	stroke: rgba(0,0,0,0.5);
	stroke-width: 2px;
	fill-rule: evenodd;
}
.navbar-dark .svg-menu-icon{
	stroke: rgba(255,255,255,0.5);
}
.menu-icon-thin-bars{
	stroke-width: 1px;
}
.menu-icon-thick-bars{
	stroke-width: 5px;
}
.menu-icon-rounded-bars{
	stroke-width: 3px;
	stroke-linecap: round;
}
.menu-icon-filled{
	fill: rgba(0,0,0,0.5);
	stroke-width: 0px;
}
.navbar-dark .menu-icon-filled{
	fill: rgba(255,255,255,0.5);
}
.navbar-toggler-icon{
	background: none!important;
	pointer-events: none;
	width: 33px;
	height: 33px;
}
/* Handle Multi Level Navigation */
.dropdown-menu .dropdown-menu{
	border:none}
@media (min-width:576px){
	
.navbar-expand-sm .dropdown-menu .dropdown-menu{
	border:1px solid rgba(0,0,0,.15);
	position:absolute;
	left:100%;
	top:-7px}.navbar-expand-sm .dropdown-menu .submenu-left{
	right:100%;
	left:auto}}@media (min-width:768px){
	.navbar-expand-md .dropdown-menu .dropdown-menu{
	border:1px solid rgba(0,0,0,.15);
	border:1px solid rgba(0,0,0,.15);
	position:absolute;
	left:100%;
	top:-7px}.navbar-expand-md .dropdown-menu .submenu-left{
	right:100%;
	left:auto}}@media (min-width:992px){
	.navbar-expand-lg .dropdown-menu .dropdown-menu{
	border:1px solid rgba(0,0,0,.15);
	position:absolute;
	left:100%;
	top:-7px}.navbar-expand-lg .dropdown-menu .submenu-left{
	right:100%;
	left:auto}
}
/* = Bric adjustment margins
-------------------------------------------------------------- */

.mg-clear{
	margin:0;
}
.mg-md{
	margin-top:10px;
	margin-bottom:20px;
}

/* = Buttons
-------------------------------------------------------------- */

.btn-d,.btn-d:hover,.btn-d:focus{
	color:#FFF;
	background:rgba(0,0,0,.3);
}

/* Prevent ugly blue glow on chrome and safari */
button{
	outline: none!important;
}

.btn-rd{
	border-radius: 40px;
}
.btn-wire{
	background:transparent!important;
	border:2px solid transparent;
}
.btn-wire:hover{
	background:transparent!important;
	border:2px solid transparent;
}
.btn-xl{
	padding: 16px 40px;
	font-size: 28px;
}
.a-block{
	width:100%;
	text-align:left;
	display: inline-block;
}
.text-center .a-block{
	text-align:center;
}

/* = Icons
-------------------------------------------------------------- */
.icon-md{
	font-size:30px!important;
}




/* = Cards
-------------------------------------------------------------- */
.card-sq, .card-sq .card-header, .card-sq .card-footer{
	border-radius:0;
}
.card-rd{
	border-radius:30px;
}
.card-rd .card-header{
	border-radius:29px 29px 0 0;
}
.card-rd .card-footer{
	border-radius:0 0 29px 29px;
}
/* = Masonary
-------------------------------------------------------------- */
.card-columns .card {
	margin-bottom: 0.75rem;
}
@media (min-width: 576px) {
	.card-columns {
	-webkit-column-count: 3;
	-moz-column-count: 3;
	column-count: 3;
	-webkit-column-gap: 1.25rem;
	-moz-column-gap: 1.25rem;
	column-gap: 1.25rem;
	orphans: 1;
	widows: 1;
}
.card-columns .card {
	display: inline-block;
	width: 100%;
}
}

/* = Forms
-------------------------------------------------------------- */

.form-control{
	border-color:rgba(0,0,0,.1);
	box-shadow:none;
}



/* ScrollToTop button */

.scrollToTop{
	width:36px;
	height:36px;
	padding:5px;
	position:fixed;
	bottom:20px;
	right:20px;
	opacity:0;
	z-index:999;
	transition: all .3s ease-in-out;
	pointer-events:none;
}
.showScrollTop{
	opacity: 1;
	pointer-events:all;
}
.scroll-to-top-btn-icon{
	fill: none;
	stroke: #fff;
	stroke-width: 2px;
	fill-rule: evenodd;
	stroke-linecap:round;
}

/* Horizontal Scroll Container */
.blocs-horizontal-scroll-container{
	position:relative;
}
.blocs-horizontal-scroll-area{
	display:flex;
	overflow-x:auto;
	align-items:flex-start;
	gap:20px;
}
.blocs-horizontal-scroll-area > *{
	flex-shrink:0;
	max-width:100%;
}
.blocs-horizontal-scroll-area::-webkit-scrollbar{
	display:none;
}
.blocs-horizontal-scroll-control{
	position:absolute;
	top:50%;
	transform:translateY(-50%);
	z-index:1;
	display:flex;
	text-align:center;
	border:0;
	margin:0 30px;
}
.blocs-scroll-control-next{
	right:0;
}
.blocs-round-btn{
	background:rgba(0,0,0,0.15);
	border-radius:100%;
	padding:12px;
	opacity:0;
	cursor:pointer;
	transform:scale(0.5);
	backdrop-filter:blur(20px);
	-webkit-backdrop-filter:blur(20px);
	transition:opacity .50s ease,transform .50s ease;
}
.blocs-horizontal-scroll-container:hover .blocs-round-btn,.blocs-horizontal-scroll-container.show-controls .blocs-round-btn{
	opacity:1;
	transform:scale(1.0);
}
.blocs-round-btn:active{
	background:rgba(0,0,0,0.3);
	transform:scale(0.9)!important;
	transition:transform .30s ease,background .50s ease;
}
.compact-blocs-controls .blocs-round-btn{
	padding:2px;
	width:30px;
	height: 30px;
}
.compact-blocs-controls .blocs-round-btn svg{
	width:14px;
	height:14px;
}
.compact-blocs-controls .blocs-horizontal-scroll-control{
	margin:0 20px;
}
.horizontal-scroll-icon{
	fill:none;
	stroke:#fff;
	stroke-width:4px;
	fill-rule:evenodd;
	stroke-linecap:round;
}
.hide-left-control > .blocs-scroll-control-prev, .hide-right-control > .blocs-scroll-control-next{
	opacity:0!important;
	pointer-events: none;
	transition:opacity .50s ease;
}
.show-controls:not(.hide-left-control) > .blocs-scroll-control-prev, .show-controls:not(.hide-right-control) > .blocs-scroll-control-next{
	opacity:1!important;
}
.blocs-horizontal-scroll-area img.lazyload{
	height:0;
}

/* = Custom Styling
-------------------------------------------------------------- */

.h1-h2-h3-h4-h5-h6-{
	font-family:"Fredoka";
}
.container{
	max-width:1140px;
}
.h1-style{
	font-family:"Fredoka";
	font-weight:600;
	font-size:48px;
	text-align:left;
	color:#FFFFFF!important;
	text-shadow:1.20px 1.60px 4px #000000;
}
p{
	font-family:"Raleway";
}
.navbar-brand img{
	width:200px;
}
.btn-rd{
	font-family:"Raleway";
	font-weight:400;
	font-size:14px;
}
a{
	font-family:"Lato";
	font-weight:700;
}
.bloc-divider-b-fill{
	fill:var(--swatch-var-275);
	height:140px;
}
.p-style-footer{
	font-family:"Lato";
	font-weight:400;
	font-size:16px;
	line-height:1.6em;
}
.navbar-logo{
	text-transform:none;
	text-decoration:none;
	font-size:20px;
}
.p-2-style{
	font-family:"Raleway";
	font-weight:300;
}
.h3-style{
	font-family:"Fredoka";
	font-weight:500;
	width:100%;
}
.h2-style{
	font-family:"Fredoka";
	font-weight:500;
	font-size:34px;
}
.h3-1-style{
	font-size:27px;
	width:100%;
}
.row-style{
	width:100%;
}
.container-div-style{
	width:100%;
}
.link-style{
	width:100%;
}
.panel-border{
	border-width:1px 1px 1px 1px;
	border-style:solid;
	border-radius:10px 10px 10px 10px;
	border-color:var(--swatch-var-2941)!important;
}
.img-style{
	border-radius:14px 14px 14px 14px;
	width:200px;
	height:200px;
}
.img-5-style{
	width:200px;
	height:200px;
}
.img-6-style{
	width:200px;
	height:200px;
}
.scroll-qoute-container{
	width:100%;
}
.quote-text{
	font-size:26px;
	font-style:italic;
}
.img-bloc-9-style{
	width:231px;
	height:195px;
}
.bloc-divider-t-style{
	height:140px;
	fill:var(--swatch-var-6368);
}
.bloc-divider-b-style{
	height:180px;
	fill:var(--swatch-var-6368);
}
.img-eeri-peruslo-style{
	width:150px;
}
.h2-ota-yhteyttä-style{
	font-family:"Fredoka";
}
.html-widget-style{
	box-shadow:0.07px 2.00px 14px #666666;
	width:90.11%;
}
.bloc-divider-b-bloc-11-style{
	height:180px;
	fill:var(--swatch-var-6368);
}
.bloc-divider-t-fill{
	fill:var(--swatch-var-6368);
	height:140px;
}
.bloc-divider-b-footer-fill{
	fill:var(--swatch-var-6368);
}
.bloc-divider-t-footer-fill{
	fill:var(--swatch-var-6368);
	height:180px;
}
.bloc-divider-b-0-fill{
	fill:var(--swatch-var-275);
	height:180px;
}
.bloc-divider-b-0-style{
	height:140px;
	fill:var(--swatch-var-7751);
}
.form-style{
	width:100%;
}
.img-iphone-screen--style{
	height:450px;
}
.bloc-divider-b-23123-fill{
	fill:var(--swatch-var-1310);
	height:140px;
}
.img-2-style{
	height:379px;
	width:383px;
}
.bloc-divider-b-38565-fill{
	fill:var(--swatch-var-275);
	width:100%;
	height:180px;
}
.img-bloc-7-style{
	width:560px;
}
.p-bloc-11-style{
	font-family:"Roboto";
	font-weight:500;
}
.p-bloc-12-style{
	font-family:"Roboto";
}
.p-32-style{
	font-family:"Roboto";
}
.h3-bloc-13-style{
	font-family:"Fredoka";
	font-weight:500;
	font-size:32px;
	width:100%;
}
.h2-bloc-12-style{
	font-family:"Fredoka";
	font-weight:500;
}
.p-style{
	font-family:"Roboto";
	font-weight:300;
}
.p-bloc-9-style{
	font-family:"Roboto";
}
.p-16-style{
	font-family:"Roboto";
}
.p-17-style{
	font-family:"Roboto";
}
.btn-style{
	width:100%;
}
.btn- ohjaajille- -style{
	width:100%;
}
.row-26-style{
	border-width:3px 3px 3px 3px;
	border-radius:10px 10px 10px 10px;
	border-style:solid;
	border-color:var(--swatch-var-2351)!important;
	padding-bottom:30px;
	padding-top:10px;
}
.h4-style{
	width:100%;
	font-family:"Raleway";
	font-weight:300;
	font-size:20px;
}
.h3-bloc-2-style{
	font-family:"Fredoka";
	font-weight:500;
	font-size:24px;
}
.h3-2-style{
	font-family:"Fredoka";
	font-weight:500;
	font-size:24px;
}
.h3-3-style{
	font-family:"Fredoka";
	font-weight:500;
	font-size:24px;
}
.h2-1-style{
	font-family:"Fredoka";
	font-weight:500;
}
.h2-ajankohtaista-style{
	font-family:"Fredoka";
	font-weight:500;
}
.h2-2-style{
	font-family:"Fredoka";
	font-weight:500;
}
.h4-1-style{
	font-family:"Roboto";
	font-size:20px;
}
.p-3-style{
	font-family:"Raleway";
	font-weight:300;
	font-size:14px;
}
.link-lue-lisää-style{
	width:34.85%;
	padding-top:0px;
	padding-bottom:0px;
}
.row-bloc-24-style{
	width:59.74%;
}
.p-53-style{
	width:90.41%;
}
.p-bloc-17-style{
	width:100%;
}
.p-22-style{
	line-height:10px;
}

/* = Colour
-------------------------------------------------------------- */

/* Swatch Variables */
:root{
	
	--swatch-var-2869:rgba(0,0,0,1.00);
	
	--swatch-var-2941:rgba(246,246,246,1.00);
	
	--swatch-var-6368:rgba(254,215,203,1.00);
	
	--swatch-var-2947:#F03302;
	
	--swatch-var-4088:rgba(61,61,61,1.00);
	
	--swatch-var-1310:rgba(252,252,252,1.00);
	
	--swatch-var-2351:rgba(228,231,237,1.00);
	
	--swatch-var-7751:rgba(247,153,31,1.00);
	
	--swatch-var-5363:rgba(77,142,239,1.00);
	
	--swatch-var-4546:rgba(242,95,95,1.00);
	
	--swatch-var-7223:rgba(205,37,37,1.00);
	
	--swatch-var-6297:rgba(253,63,15,1.00);
	
	--swatch-var-2449:rgba(233,114,33,1.00);
	
	--swatch-var-5960:#DB4B23;
	
	--swatch-var-4639:#A169AD;
	
	--swatch-var-6107:#85ADAB;
	
	--swatch-var-3572:#13147E;
	
	--swatch-var-275:rgba(255,255,255,1.00);
	
	--swatch-var-141:#CD2525;
	
	--swatch-var-4444:rgba(61,61,61,1.00);
	
}


/* Background colour styles */

.bgc-1310{
	background-color:var(--swatch-var-1310);
}
.bgc-7751{
	background-color:var(--swatch-var-7751);
}
.bgc-2941{
	background-color:var(--swatch-var-2941);
}
.bgc-275{
	background-color:var(--swatch-var-275);
}
.bgc-7223{
	background-color:var(--swatch-var-7223);
}
.bgc-2449{
	background-color:var(--swatch-var-2449);
}
.bgc-141{
	background-color:var(--swatch-var-141);
}

/* Text colour styles */

.tc-275{
	color:var(--swatch-var-275)!important;
}
.tc-2869{
	color:var(--swatch-var-2869)!important;
}
.tc-4088{
	color:var(--swatch-var-4088)!important;
}
.tc-4444{
	color:var(--swatch-var-4444)!important;
}
.tc-141{
	color:var(--swatch-var-141)!important;
}
.tc-1310{
	color:var(--swatch-var-1310)!important;
}

/* Button colour styles */

.btn-c-141{
	background:var(--swatch-var-141);
	color:#FFFFFF!important;
}
.btn-c-141:hover{
	background:#9A0000!important;
	color:#FFFFFF!important;
}
.wire-btn-c-2947{
	color:var(--swatch-var-2947)!important;
	border-color:var(--swatch-var-2947)!important;
}

/* Link colour styles */

.ltc-2869{
	color:var(--swatch-var-2869)!important;
}
.ltc-2869:hover{
	color:#000000!important;
}
.ltc-7223{
	color:var(--swatch-var-7223)!important;
}
.ltc-7223:hover{
	color:#9A0000!important;
}
.ltc-141{
	color:var(--swatch-var-141)!important;
}
.ltc-141:hover{
	color:#9A0000!important;
}
.ltc-275{
	color:var(--swatch-var-275)!important;
}
.ltc-275:hover{
	color:#CCCCCC!important;
}

/* Icon colour styles */

.icon-7223{
	color:var(--swatch-var-7223)!important;
	border-color:var(--swatch-var-7223)!important;
}

/* Bloc image backgrounds */


/* = Custom Bric Data
-------------------------------------------------------------- */

.social-link-bric a svg{
	transition: all 0.3s ease-in-out;
}
.social-hover-fade a:hover svg{
	opacity: 0.5;
}
.social-hover-grow a:hover svg{
	transform: scale(1.2);
}
.social-hover-shrink a:hover svg{
	transform: scale(0.9);
}
.social-hover-shadow a:hover svg{
	filter: drop-shadow(0px 6px 2px rgba(0,0,0,0.3));
	overflow: visible;
}


/* = Bloc Padding Multi Breakpoint
-------------------------------------------------------------- */

@media (min-width: 576px) {
    .bloc-xxl-sm{padding:200px 20px;}
    .bloc-xl-sm{padding:150px 20px;}
    .bloc-lg-sm{padding:100px 20px;}
    .bloc-md-sm{padding:50px 20px;}
    .bloc-sm-sm{padding:20px;}
    .bloc-no-padding-sm{padding:0 20px;}
}
@media (min-width: 768px) {
    .bloc-xxl-md{padding:200px 20px;}
    .bloc-xl-md{padding:150px 20px;}
    .bloc-lg-md{padding:100px 20px;}
    .bloc-md-md{padding:50px 20px;}
    .bloc-sm-md{padding:20px 20px;}
    .bloc-no-padding-md{padding:0 20px;}
}
@media (min-width: 992px) {
    .bloc-xxl-lg{padding:200px 20px;}
    .bloc-xl-lg{padding:150px 20px;}
    .bloc-lg-lg{padding:100px 20px;}
    .bloc-md-lg{padding:50px 20px;}
    .bloc-sm-lg{padding:20px;}
    .bloc-no-padding-lg{padding:0 20px;}
}


/* = Mobile adjustments 
-------------------------------------------------------------- */
@media (max-width: 1024px)
{
    .bloc.full-width-bloc, .bloc-tile-2.full-width-bloc .container, .bloc-tile-3.full-width-bloc .container, .bloc-tile-4.full-width-bloc .container{
        padding-left: 0; 
        padding-right: 0;  
    }
}
@media (max-width: 991px)
{
    .container{width:100%;}
    .bloc{padding-left: constant(safe-area-inset-left);padding-right: constant(safe-area-inset-right);} /* iPhone X Notch Support*/
    .bloc-group, .bloc-group .bloc{display:block;width:100%;}
}
@media (max-width: 767px)
{
    .bloc-tile-2 .container, .bloc-tile-3 .container, .bloc-tile-4 .container{
        padding-left:0;padding-right:0;
    }
    .btn-dwn{
       display:none; 
    }
    .voffset{
        margin-top:5px;
    }
    .voffset-md{
        margin-top:20px;
    }
    .voffset-lg{
        margin-top:30px;
    }
    form{
        padding:5px;
    }
    .close-lightbox{
        display:inline-block;
    }
    .blocsapp-device-iphone5{
	   background-size: 216px 425px;
	   padding-top:60px;
	   width:216px;
	   height:425px;
    }
    .blocsapp-device-iphone5 img{
	   width: 180px;
	   height: 320px;
    }
}
@media (max-width: 767px){
	.quote-text{
		font-size:22px;
	}
	.h3-1-style{
		width:100%;
		line-height:25px;
	}
	
}

@media (max-width: 575px){
	.footer-link{
		text-align:center;
	}
	.navbar-logo{
		font-size:18px;
	}
	.quote-text{
		font-size:18px;
	}
	.h3-1-style{
		width:100%;
	}
	
}

/* Lisättyä koodia */

/* Ajankohtaista–osion yksivärinen tausta */
#ajankohtaista{
  position: relative;
  background: #E7E7E7 !important; /* yliajaa bgc-2941:n (#F6F6F6) */
}

/* Jos aiemmin lisättiin ::before-liukuma, otetaan pois käytöstä */
#ajankohtaista::before{
  content: none !important;
}


/* Säädä tarvittaessa korttien korkeus yhdessä paikassa */
:root{
  --event-card-width-min: 300px;
  --event-card-width-max: 360px;
  --event-card-height: 280px; /* nosta esim. 300–320 jos kuvaus/otsikkoja pidennetään */
}

/* Peruskortti */
.event-card{
  position: relative;                  /* jotta kulmapilli voidaan ankkuroida */
  display: flex;
  flex-direction: column;
  min-width: var(--event-card-width-min);
  max-width: var(--event-card-width-max);
  width: clamp(var(--event-card-width-min), 36vw, var(--event-card-width-max));
  height: var(--event-card-height);
  margin: 0 2px;
  border-radius: 16px;
  padding: 16px 16px 14px;
  background: var(--swatch-var-275);
  border: 1px solid var(--swatch-var-2351);
}

/* Otsikkorivi + tila kulmapillille */
.event-card__head{
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 6px;
}
.event-card__head h3{
  padding-right: 92px;            /* varaa tilaa kulmapillille */
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;          /* max 2 riviä otsikkoa */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;              /* tasaa korkeuden eri otsikoilla */
}

/* Kulmapilli (päivämerkki) */
.event-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;

  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--swatch-var-275);
  border: 1px solid var(--swatch-var-2351);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.event-month{
  background: rgba(247,153,31,.12);  /* 7751-oranssin sävy */
  color: var(--swatch-var-7751);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .02em;
}
.event-day{
  font-weight: 800;
  font-size: 18px;
  color: var(--swatch-var-4088);
}

/* Meta + kuvaus */
.event-meta{
  margin: 0 0 4px;
  font-size: 0.98rem;
  color: var(--swatch-var-4088);
  min-height: 2.5em;               /* 1–2 riviä tilaa */
}
.event-card .p-2-style{
  display: -webkit-box;
  -webkit-line-clamp: 3;           /* max 3 riviä kuvausta */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;               /* varaa tilaa 3 riville */
  color: var(--swatch-var-4444);
}

/* Toimintanapit alas */
.event-actions{
  margin-top: auto;                /* työntää napit kortin alareunaan */
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.event-actions .a-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}

/* Vaakarulla: ohita yleissääntö joka pakotti kuvat 0-korkeuteen scroll-alueella */
.blocs-horizontal-scroll-area .event-card img.lazyload{
  height: auto;
}

/* Mobiili: kulmapilli otsikon jälkeen oikealle, lisää ilmavuutta */
@media (max-width: 575px){
  .event-badge{
    position: static;
    margin: 4px 0 6px auto; /* siirry h3:n jälkeen oikealle */
  }
  .event-card__head h3{ padding-right: 0; }
}

/* Pieni lisätyylitys itse vaakarullaan (valinnainen) */
.blocs-horizontal-scroll-area{ padding-bottom: 10px; }

/* Päiväys (badge) ylös keskelle, otsikko alle vasemmalle */
.event-card__head{
  display: flex;
  flex-direction: column;
  align-items: stretch;     /* otsikko täysleveäksi */
  gap: 6px;
  margin-bottom: 8px;
}

.event-badge{
  position: static;         /* ei kulmaan */
  align-self: center;       /* keskelle */
  margin: 0 0 4px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.event-card__head h3{
  padding-right: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;    /* max 2 riviä */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
 text-align: center;
}

/* Jos haluat vielä lisätilaa, nosta kortin peruskorkeutta */
:root{
  --event-card-height: 340px;   /* esim. 300–320 jos tekstiä on enemmän */
}

/* Keskitä kortin alalinkit (napit) */
.event-actions{
  justify-content: center; /* lisäys */
  text-align: center;      /* varmistus, jos linkit rivittyy */
}
.event-actions .a-btn{
  justify-content: center; /* ikonit+teksti keskelle napin sisällä */
}



