/**
 *
 * Theme Name: Mediaani Bootstrap Theme
 * Theme URI: http://www.mediaani.fi/
 * Author: Mediaani - 
 * Author URI: http://www.mediaani.fi
 * Description: Mediaani Bootstrap Theme
 * Version: 1.0
 * License: GNU General Public License
 * License URI: license.txt
 *
 * TOC
 * 1. Sass elements
 * 2. Typograhpy
 * 3. Layout
 * 4. Navigation
 * 5. Modules
 * 6. Widgets / Aside
 * 7. Forms
 * 8. Buttons
 * 9. IE overrides
 * 10. Misc.
 *
 */
/*-----------------------------------------------------------------------------
   Sass elements
-----------------------------------------------------------------------------*/
/* Partials */
/* Variables */
/*-----------------------------------------------------------------------------
   Typography
-----------------------------------------------------------------------------*/
/* Body
-----------------------------------------------------------------------------*/
html {
  font-size: 14px;
  background: #ddd;
}

body {
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.45;
  font-weight: 400;
  color: #333;
  padding-top: 140px;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

p, ul, ol, dl, table {
  margin-bottom: 1.5em;
}

.riski-digi p, .riski-digi ul {
    margin-bottom: 8px;
}

.riski-digi-p-ots {
    font-weight: bold;
}

.riski-digi p span{
    padding-right:10px;
}

.riski-digi-a {
    margin: 5px 10px 5px 30px;
    display: block;
}

@media (max-width: 991px) {

  body {
    padding-top: 60px;
  }
}
/* Headers
-----------------------------------------------------------------------------*/
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-weight: 400;
}

h1, .h1 {
  font-size: 2rem;
  color: #4c8eee;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: 1.6428571429rem;
  letter-spacing: -0.02em;
}

h3, .h3, #secondary .widget-title {
  font-size: 1.2857142857rem;
  letter-spacing: -0.01em;
}

h3, .widget-title, .accordion-title {
  color: #4c8eee;
  text-transform: uppercase;
}

h4, .h4 {
  font-size: 1rem;
  line-height: 1.4;
}

h5, .h5 {
  font-size: 0.875rem;
  line-height: 1.4;
}

h6, .h6 {
  font-size: 0.75rem;
  line-height: 1.5;
}

h1, .h1,
h2, .h2,
h3, .h3, #secondary .widget-title {
  margin: 0.35em 0 0.75em;
}

@media screen and (max-width: 767px) {
  h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-weight: 700;
  }

  h1, .h1 {
    font-size: 1.65rem;
  }

  h2, .h2 {
    font-size: 1.33rem;
    margin: 0.35em 0 1em;
  }

  h3, .h3, #secondary .widget-title {
    font-size: 1.25rem;
    margin: 0.35em 0 1em;
  }

  h4, .h4,
  h5, .h5,
  h6, .h6 {
    font-size: 1rem;
  }
}
.padded .entry-title,
.padded-sm .entry-title,
.padded-lg .entry-title {
  margin-top: 0;
}

.dim {
  color: #666;
}

.pale {
  color: #fff;
}

.primary-color {
  color: #4c8eee;
}

.default-color {
  color: #333 !important;
}

.weight-400 {
  font-weight: 400;
}

.weight-500 {
  font-weight: 500;
}

.weight-700 {
  font-weight: 700;
}

@media (min-width: 768px) {
  .size-larger {
    font-size: 1.2142857143rem;
    line-height: 1.55;
  }

  .size-smaller {
    font-size: 0.8571428571rem;
  }
}
.bordered-heading {
  width: auto;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.bordered-heading:after {
  display: block;
  content: "";
  width: 90px;
  height: 4px;
  background: #4c8eee;
  margin: auto;
  margin-top: 1.2rem;
}

.centered-textblock {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

blockquote {
  font-size: 1.5rem;
  color: #999;
  font-style: italic;
  margin: 2.5rem 0;
  border: 0;
  text-align: left;
}

blockquote:before {
  content: '\201d';
  display: block;
  float: left;
  margin-right: 0.25rem;
  font-size: 3rem;
  line-height: 1;
  color: #4c8eee;
  font-family: 'Gill Sans', serif;
  position: relative;
  top: -0.25rem;
}

legend {
  border: 0;
  text-transform: uppercase;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
  color: #4c8eee;
}

/* Links
-----------------------------------------------------------------------------*/
a {
  color: #f07429;
  -webkit-transition: all 0.25s ease;
  -moz-transition: all 0.25s ease;
  -o-transition: all 0.25s ease;
  -ms-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: #b75519;
}

a:hover,
a:focus,
a:active {
  outline: 0;
}

/*-----------------------------------------------------------------------------
   Layout
-----------------------------------------------------------------------------*/
/* Body
-----------------------------------------------------------------------------*/
@media screen and (min-width: 1200px) {
  .container,
  .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .row {
    margin-left: -20px;
    margin-right: -20px;
  }

  .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    padding-left: 20px;
    padding-right: 20px;
  }
}
/* Header
-----------------------------------------------------------------------------*/
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: #fff;
  z-index: 10;
  max-width: 1440px;
  margin: auto;
  -webkit-transition: opacity 0.25s ease;
  -moz-transition: opacity 0.25s ease;
  -o-transition: opacity 0.25s ease;
  -ms-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

@media (max-width: 991px) {
	.site-header {
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    -ms-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  }
}
.pre-scrolled .site-header {
  opacity: 0;
}

.site-header > .container {
  position: relative;
}

.logo {
  float: left;
}

.site-title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 52px;
}

.site-title a {
  display:block;
  text-decoration: none !important;
  color: #4c8eee !important;
  font-size:20px;
  line-height:70px;
  margin:0;
}

.site-title img {
  height: 70px;
  width: auto;
  margin:0;
  vertical-align: middle;
}

.scrolled .site-title span {
  display: none !important;
}

.scrolled {
  padding-top: 140px;
}

.scrolled .site-header {
  position: fixed;
  height: 60px;
  background: #31496d;
  opacity: 1;
  -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
  -ms-box-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
}

.scrolled .logo {
  position: absolute;
  z-index: 2;
}

.scrolled .site-title img {
  height:50px;
  margin-top:5px;
  vertical-align:top;
}

@media (max-width: 991px) {
  .site-header {
    height: 60px;
    position:fixed;
  }

  .site-header > .container {
    padding: 0 !important;
    max-width: none;
  }

  .site-title a {
	  line-height:60px;
    font-size:16px;
	}

  .site-title img {
    height: 50px;
    margin-top: 5px;
    margin-left: 15px;
    vertical-align:top;
  }
}
.site-header .searchform {
  float: right;
  margin: 17px 30px;
}

#mfp-search {
  padding: 3em 0;
}

#mfp-search .searchform {
  overflow: auto;
  max-width: 300px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

.searchform .form-control {
  max-width: none;
  padding-right: 42px;
  margin-right: -42px;
  float: left;
}

.searchform .submit {
  margin: 0;
  float: right;
  width: 42px;
  height: 36px;
  -webkit-border-radius: 0 0.2rem 0.2rem 0;
  -moz-border-radius: 0 0.2rem 0.2rem 0;
  -ms-border-radius: 0 0.2rem 0.2rem 0;
  border-radius: 0 0.2rem 0.2rem 0;
}

#mfp-search .form-control {
  height: 44px;
  padding-right: 50px;
  margin-right: -50px;
}

#mfp-search .submit {
  width: 50px;
  height: 44px;
}

#mfp-search .mfp-close {
  color: #fff;
}

.scrolled .site-header .searchform {
  display: none;
}

.navbar-links {
  float:right;
}

.navbar-links .btn {
  margin: 19px 0 19px 10px;
}

.scrolled .navbar-links {
  display: none;
}

.navbar-links .tooltip-trigger {
  display:inline-block;
  width:20px;
  height:20px;
  line-height:20px;
  margin-left:8px;
  color:#fff;
  background:#56ba64;
  font-size:12px;
  text-align:center;
  -o-border-radius:50%;
  -webkit-border-radius:50%;
  -moz-border-radius:50%;
  -ms-border-radius:50%;
  border-radius:50%;
}

@media (max-width: 991px) {
  .site-header .searchform {
    margin: 12px 30px;
  }
  .navbar-links {
  	margin-right:90px;
  }
  .navbar-links .btn {
	  margin: 14px 0 14px 10px;
	}
}
@media (max-width: 767px) {
  .site-header .searchform .form-control {
    display: none;
  }
  .site-header .searchform .submit {
    -webkit-border-radius: 0.2rem;
    -moz-border-radius: 0.2rem;
    -ms-border-radius: 0.2rem;
    border-radius: 0.2rem;
  }
}
@media (max-width:575px) {
	.site-header .searchform {
	    margin: 12px 90px 12px 15px;
	}
	.navbar-links {
		display:none;
	}
}
@media (max-width: 480px) {
  .site-header .searchform {
    	margin: 12px 70px 12px 0;
  }
}
@media (max-width: 320px) {
  .site-title span {
    display:none;
  }
}
/* Main
-----------------------------------------------------------------------------*/
.grey,
.gray {
  background-color: #f5f5f5;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
#primary .entry-content table:not(.dataTable) td {
	padding:2px 0 10px;
}

/* Footer
-----------------------------------------------------------------------------*/
.site-footer {
  background: #31496d;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  padding: 0;
}

.footer-copy {
  padding: 15px;
}

.site-footer a {
  color: inherit;
}

a.footerlink {
  color: #F17429;
}

/*-----------------------------------------------------------------------------
   Navigation
-----------------------------------------------------------------------------*/

@media screen and (min-width: 992px) {
  .navbar {
    width: 100%;
    padding: 0;
    -webkit-transition: padding 0.25s ease;
    -moz-transition: padding 0.25s ease;
    -o-transition: padding 0.25s ease;
    -ms-transition: padding 0.25s ease;
    transition: padding 0.25s ease;
    background: #31496d;
    font-size: 15px;
  }

  .scrolled .navbar {
    background: none;
  }

  .navbar-nav {
    width:100%;
    justify-content:center;
  }

  .scrolled .navbar-nav {
    justify-content:flex-end;
  }

  .navbar .navbar-nav .nav-link {
    background: none;
    color: #fff !important;
    line-height: 1;
    letter-spacing: -0.01em;
    padding: 28px 15px 27px;
    -webkit-transition: background 0.25s ease;
    -moz-transition: background 0.25s ease;
    -o-transition: background 0.25s ease;
    -ms-transition: background 0.25s ease;
    transition: background 0.25s ease;
  }

  .scrolled .navbar .navbar-nav .nav-link {
    padding: 23px 20px 22px;
    color: #fff !important;
  }

  .navbar .navbar-nav > li > .nav-link:hover,
  .navbar .navbar-nav > li.show > .nav-link {
    text-decoration: none;
    background: #355482;
  }

  .scrolled .navbar .navbar-nav > li > .nav-link:hover,
  .scrolled .navbar .navbar-nav > li.show > .nav-link {
    background: #355482;
  }

  .navbar .navbar-nav > li.current-menu-item > .nav-link,
  .navbar .navbar-nav > li.current-menu-ancestor > .nav-link,
  .single-post .navbar-nav > li#menu-item-117 > .nav-link,
  .single-tapahtuma .navbar-nav > li#menu-item-182 > .nav-link {
    background: #4c8eee !important;
    color: #fff !important;
  }

  .dropdown-menu {
    margin-top: 0;
    background: #355482;
    padding:0;
    border-color: #31496d;
    border-top: 0;
    border-radius: 0;
    font-size: inherit;
  }

  .dropdown-item {
    color: #fff !important;
    padding: 10px 20px;
  }

  .scrolled .dropdown-item {
    padding: 8px 15px;
  }

  .dropdown-item:hover,
  .dropdown-item:focus,
  .dropdown-item:active {
    background-color: #3f5f8e;
  }

  .dropdown-item:focus,
  .dropdown-item:active {
    background-color: #31496d;
  }

  .dropdown-item.active {
    background-color: #4c8eee;
  }

  .dropdown-menu .dropdown-menu {
  	display:block !important;
  	position:static !important;
  	border:0 !important;
  }

  .dropdown-menu .dropdown-menu .dropdown-item {
  	padding-left:45px;
  }
}
@media screen and (min-width: 1200px) {
  .navbar-light .navbar-nav .nav-link {
    padding: 28px 20px 27px;
  }
}
@media screen and (max-width: 991px) {
  .navbar {
    padding: 0;
    background: #31496d;
  }

  .navbar > .container {
    max-width: none;
  }

  .navbar-nav {
    background: #31496d;
    margin: 0;
  }

  .navbar .navbar-nav:first-of-type > li:first-of-type > a {
    border-top: 1px solid #283f61;
  }

  .navbar .navbar-nav li .nav-link {
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 700;
    border-top: 0;
    border-bottom: 1px solid #283f61;
    padding: 15px !important;
    font-size: 1.15rem;
    line-height: 1;
    margin: 0;
  }

  .navbar .navbar-nav > li.current-menu-item > .nav-link,
  .navbar .navbar-nav > li.current-menu-ancestor > .nav-link,
  .single-post .navbar-nav > li#menu-item-117 > .nav-link,
  .single-tapahtuma .navbar-nav > li#menu-item-182 > .nav-link {
    background-color: #4c8eee !important;
    border-color: #3875cd !important;
  }

  .navbar .navbar-nav > li > .nav-link:hover,
  .navbar .navbar-nav > li > .nav-link:focus,
  .navbar .navbar-nav > li.show > .nav-link {
    background-color: #355482;
    border-color: #31496d;
  }

  .dropdown-menu {
    padding: 0;
    margin: 0;
    color: #444;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .dropdown-item {
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid #31496d;
    background-color: #355482;
    padding: 10px 15px 10px 30px;
    white-space:normal;
  }

  .dropdown-item.active,
  .dropdown-item:active {
    background-color: #4c8eee !important;
    border-color: #3875cd !important;
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background-color: #3f5f8e;
    border-color: #31496d;
  }

  .dropdown-menu .dropdown-menu {
  	display:block !important;
  }

  .dropdown-menu .dropdown-menu .dropdown-item {
  	padding-left:45px;
  }

}
.navbar-toggler {
  background-color: #31496d;
  border: 0;
  margin: 0;
  padding: 15px;
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 0;
  color: #fff;
  width: 60px;
  height: 60px;
  -webkit-transition: all 0.25s ease;
  -moz-transition: all 0.25s ease;
  -o-transition: all 0.25s ease;
  -ms-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
  background-color: #355482;
}

.navbar-toggler:active {
  background-color: #283f61;
}

.hamburger-box {
  width: 26px;
  height: 100%;
  display: inline-block;
}

.hamburger-inner {
  display: block;
  top: calc(50% - 2px);
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width: 26px;
  height: 4px;
  background-color: #fff;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  -ms-border-radius: 2px;
  border-radius: 2px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.hamburger-inner::before, .hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -9px;
}

.hamburger-inner::after {
  bottom: -9px;
}

.hamburger--squeeze .hamburger-inner {
  transition-duration: 0.075s;
  transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--squeeze .hamburger-inner::before {
  transition: top 0.075s 0.12s ease, opacity 0.075s ease;
}

.hamburger--squeeze .hamburger-inner::after {
  transition: bottom 0.075s 0.12s ease, transform 0.075s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.navbar-toggler:not(.collapsed) .hamburger-inner {
  transform: rotate(45deg);
  transition-delay: 0.12s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.navbar-toggler:not(.collapsed) .hamburger-inner::before {
  top: 0;
  opacity: 0;
  transition: top 0.075s ease, opacity 0.075s 0.12s ease;
}

.navbar-toggler:not(.collapsed) .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
  transition: bottom 0.075s ease, transform 0.075s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Archive
-----------------------------------------------------------------------------*/
.archive .post {
  margin-bottom: 1rem;
}

.archive .post:not(:last-of-type) {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1rem;
}

.archive .post .entry-meta,
.archive .post .entry-title {
  margin: 0 0 6px;
}

.archive .post .tax-links {
  font-size: 12px;
}

.archive .post .tax-links a {
  color: inherit;
}

.pagination > li > a, .pagination > li > span {
  color: #666;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
  color: #4c8eee;
}

.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
  background-color: #4c8eee;
  border-color: #4181de;
}

/* Single
-----------------------------------------------------------------------------*/
.single-post .entry-meta {
  font-size: 12px;
  margin-bottom: 2rem;
}

.single-post .entry-meta a {
  color: inherit;
}

/*-----------------------------------------------------------------------------
   Modules
-----------------------------------------------------------------------------*/

.wpmem_msg {
	text-align:left !important;
}

/* Banner
-----------------------------------------------------------------------------*/
.hero {
  position: relative;
  background: url("../images/banner-2.jpg") no-repeat 50% 50% #4c8eee;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.3;
  margin: 0 auto;
  padding: 2em 25px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
  .hero h1 {
    font-size: 1.8rem;
  }
}

/* Etusivu
-----------------------------------------------------------------------------*/
#Etusivu .centered-textblock .h1 {
  color:inherit;
}



/* Pikalinkit
-----------------------------------------------------------------------------*/
.pikalinkki a {
  position: relative;
  display: block;
  padding: 20px 120px 25px 25px;
  background: #4c8eee;
  color: #fff;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  border-radius: 5px;
}

.pikalinkki:nth-child(2) a {
  background: #31496d;
}

.pikalinkki a:hover,
.pikalinkki a:focus,
.pikalinkki a:active {
  text-decoration: none;
  color: #fff;
  background: #5e9df8;
}

.pikalinkki:nth-child(2) a:hover,
.pikalinkki:nth-child(2) a:focus,
.pikalinkki:nth-child(2) a:active {
  background: #355482;
}

.pikalinkki .fa-chevron-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
}

.pikalinkki .h1 {
  color: #fff;
  margin:12px 0 !important;
  font-size:1.75rem;
}

.pikalinkki:nth-child(2) .h1 {
  hyphens: auto;
}

@media (max-width:991px) {
	.pikalinkki {
		margin-bottom:1em !important;
	}
	.pikalinkki a {
	  padding: 10px 50px 5px 20px;
	}
	.pikalinkki .h1 {
		font-size:1.33rem;
	}
	.pikalinkki .fa-chevron-right {
	  font-size: 30px;
	}
}

/* Tapahtumat
-----------------------------------------------------------------------------*/
.tapahtuma-item .cal-wrap {
  border: 1px solid #ddd;
  background: #fff;
  margin: 0 0 8px;
  padding: 18px 25px 20px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  border-radius: 5px;
  overflow: auto;
}

.single-tapahtuma .tapahtuma-item .cal-wrap {
  margin-bottom: 2rem;
}

.tapahtuma-item .entry-date {
  width: 68px;
  height: 68px;
  margin-right: 25px;
  margin-top: 1px;
  float: left;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  border-radius: 8px;
  font-weight: 700;
  overflow: hidden;
  text-align: center;
}

.tapahtuma-item .entry {
  float: left;
  width: calc(100% - 93px);
}

.tapahtuma-item .cal-wrap h1,
.tapahtuma-item .cal-wrap h2 {
  font-size: 1.2857142857rem;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color:#333;
}

.tapahtuma-item .cal-wrap a {
  color:inherit;
  line-height:1.3;
}

.tapahtuma-item .entry-meta {
  font-size: 12px;
}

.tapahtuma-item .month,
.tapahtuma-item .year {
  display: block;
  font-size: 11px;
  line-height: 22px;
  color: #fff;
  background: #4c8eee;
}

.tapahtuma-item .day {
  display: block;
  font-size: 20px;
  letter-spacing:-0.02em;
  color: #31496d;
  line-height: 46px;
}

.tapahtuma-item .cal-wrap p {
  margin: 0 0 8px;
  line-height: 1.3;
}

.tapahtuma-item .entry-meta *:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .tapahtuma {
    position: relative;
    padding-top: 25px;
    margin-bottom: 1.5rem;
  }

  .tapahtuma-item .cal-wrap {
    padding: 13px 15px 15px;
  }

  .tapahtuma-item .entry {
    width: 100%;
  }

  .tapahtuma-item .entry-date {
    position: absolute;
    background: none;
    top: 0;
    width: auto;
    height: 26px;
    margin: 0;
    box-shadow: none;
    text-align: left;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    -ms-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
  }

  .tapahtuma-item .cal-wrap h1,
  .tapahtuma-item .cal-wrap h2 {
    font-size: 1.25rem;
  }

  .tapahtuma-item .date {
    float: left;
    font-size: 13px;
    line-height: 28px;
    padding: 0 12px;
    margin: 0;
    color: #fff;
    background: #4c8eee;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    -ms-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
  }

  .tapahtuma-item .time,
  .tapahtuma-item .location {
    display: block;
    margin-bottom: 6px;
    padding-left: 22px;
    position: relative;
  }

  .tapahtuma-item .time svg,
  .tapahtuma-item .location svg {
    position: absolute;
    left: 0;
  }

  .tapahtuma-item .location svg {
    left: 1px;
  }
}
/* Ajankohtaista
-----------------------------------------------------------------------------*/
.ajankohtaista-item {
  margin-bottom: 1.25em;
}

.ajankohtaista-item .entry-meta {
  margin-top: .25em;
}

.ajankohtaista-item .entry-title {
  margin-top: 0.2em;
}

/* Linkkejä
-----------------------------------------------------------------------------*/
.linkit-item {
  padding-bottom:10px;
}

/* Sertifikaatit
-----------------------------------------------------------------------------*/
#Sertifikaatit .img {
  line-height: 92px;
}

#Sertifikaatit img {
  vertical-align: middle;
}

#Sertifikaatit .txt {
  line-height: 1.4;
}

/* Accordion
-----------------------------------------------------------------------------*/
.accordion .card {
  margin-bottom: 6px;
  border-radius:0.25rem !important;
  border-bottom:solid 1px rgba(0,0,0,0.125) !important;
}

.accordion .card-header {
  background: #f5f5f5;
  border-color: #e5e5e5;
  padding: 0 1.25rem;
  -webkit-transition: all 0.25s ease;
  -moz-transition: all 0.25s ease;
  -o-transition: all 0.25s ease;
  -ms-transition: all 0.25s ease;
  transition: all 0.25s ease;
  cursor: pointer;
}

.accordion .card-header:hover,
.accordion .card-header.open {
  background: #e5e5e5;
  border-color: #c5c5c5;
}

.accordion .accordion-title {
  font-size: 1.1rem;
  padding: 1em 0;
  margin:0;
}

.accordion .accordion-title:after {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0;
  border-right: 0.3em solid transparent;
  border-bottom: 0.3em solid;
  border-left: 0.3em solid transparent;
}

.accordion .accordion-title.collapsed:after {
  border-top: 0.3em solid;
  border-bottom: 0;
}

/* Mfp Popup Content
-----------------------------------------------------------------------------*/
.white-popup {
  position: relative;
  background: #fff;
  padding: 25px 40px;
  width: auto;
  max-width: 600px;
  margin: 20px auto;
}

/* Nice Select
-----------------------------------------------------------------------------*/
.nice-select {
  margin-bottom: 1.5em;
  border-color: #ced4da;
}

.nice-select:hover {
  border-color: #4c8eee;
}

.nice-select:focus,
.nice-select.open {
  border-color: #4c8eee;
  box-shadow: 0 0 0 0.2rem rgba(76, 142, 238, 0.25);
}

/* Social Media - Simple Share Buttons Adder
-----------------------------------------------------------------------------*/
#st_gdpr_iframe {
  border: 0;
}

.ssba {
  margin-bottom: 1.5em;
}

.text-center .ssba > div {
  text-align: center !important;
}

/* Search results
-----------------------------------------------------------------------------*/

.search-results {
  border-bottom:1px solid #ccc;
  margin-bottom:1.5rem;
}


/*-----------------------------------------------------------------------------
   Widgets
-----------------------------------------------------------------------------*/
#secondary .widget {
  margin-bottom: 2em;
  padding-bottom: 10px;
  border-bottom: 4px solid #ccc;
}

#secondary .widget:last-of-type {
	border-bottom:0;
}

#secondary .widget ul {
  list-style: none;
  padding: 0;
}

#secondary .widget_categories ul > li {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

#secondary .widget_categories ul > li:last-of-type {
  border-bottom: 0 !important;
  margin-bottom: 0;
  padding-bottom: 0;
}

#secondary .widget .nice-select {
  float: none;
}

#secondary .widget .nice-select ul.list {
  width: 100%;
}

#secondary .widget .nice-select ul.list > li {
  padding-bottom: 10px;
  padding-top: 10px;
  margin-bottom: 0;
}

#secondary .widget_tag_cloud {
  padding-bottom: 1.5em;
}

#secondary .widget ul .post-date {
  display: block;
  font-size: 0.88888889em;
  color: #777;
}

.widget .list-group ul {
  list-style: none;
  padding: 0;
}

.widget .list-group ul li {
  margin: 0;
  padding: 0;
}

/*.single-tapahtuma .widget .list-group .menu-item-118 > a,
.widget .list-group .current-menu-parent > a {
  display: block;
  color: #4c8eee !important;
  font-size: 1.2857142857rem;
  letter-spacing: -0.01em;
  margin: 0.35em 0 0.75em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor:inherit !important;
}*/

.widget .list-group ul a {
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  margin-bottom: -1px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
  color: #444;
}

.widget .list-group ul ul a {
	padding-left:2.5rem;
}

.widget .list-group ul a:hover,
.widget .list-group ul a:focus {
  color: #444;
  text-decoration: none;
  background-color: #f5f5f5;
}

.widget .list-group ul a:active {
  color: #444;
  background-color: #e5e5e5;
}

.widget .list-group > ul > li:first-child a {
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.widget .list-group > ul > li:last-child a {
  margin-bottom: 0;
  border-bottom-right-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.widget .list-group ul li.current_page_item > a {
  z-index: 2;
  color: #fff;
  background-color: #4c8eee;
  border-color: #007bff;
}

@media screen and (max-width: 767px) {
  #secondary .widget:first-of-type,
  .page #secondary .widget_news {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 4px solid #ccc;
  }

  #secondary .widget_subpage_nav {
    display: none;
  }
}
/*-----------------------------------------------------------------------------
   Forms
-----------------------------------------------------------------------------*/
.wpm-form {
  max-width: 300px;
}

.wpm-form label,
.wpm-form .link-text-forgot,
.wpm-form .req-text {
  font-size: 12px;
  color: #777;
  font-weight: 400;
  margin-bottom: 5px;
}

.wpm-form .for-inputs label {
  width: 100%;
}

.wpm-form.login .for-submit input[type="checkbox"] {
  margin-right: 5px;
}

.wpm-form .for-submit .btn-primary {
  clear: left;
  display: block;
  width: auto;
  margin-top: 1.5em;
}

span.wpcf7-not-valid-tip,
div.wpcf7-response-output {
  color: red !important;
  margin: 1em 0;
  border: 0;
  padding: 3px 8px;
  font-size: 0.85em;
}

div.wpcf7-mail-sent-ok {
  border: 1px solid #398f14;
  color: #398f14 !important;
  font-size:1em;
}

span.wpcf7-not-valid-tip,
div.wpcf7-validation-errors,
div.wpcf7-mail-sent-ng {
  border: 1px solid red;
  display: block;
}

.wpcf7 {
  max-width: 500px;
}

.wpcf7 label,
.wpcf7-form p {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 5px;
  display:block;
}

.wpcf7 .checkbox label {
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 0;
}

.form-control,
.login-wrap .input,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="url"],
textarea {
  display: block;
  width: 100%;
  height: calc(2.25rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-border-radius: 0.25rem;
  -moz-border-radius: 0.25rem;
  -ms-border-radius: 0.25rem;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-shadow: none;
  height: 36px;
  background: #fff;
  color: #444;
  font-size: 13px;
  border: 1px solid #ccc;
}

.form-control:not(select) {
  -webkit-appearance: none;
}

form select.valid,
form select.error {
    background-position:right 20px center !important;
}

.form-control:focus {
  border-color: #4c8eee;
  box-shadow: 0 0 0 0.2rem rgba(76, 142, 238, 0.25);
}

.login-wrap .input:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(76, 142, 238, 0.25);
}

textarea.form-control {
  height:120px;
}

.wpcf7 .row,
.wpcf7 .form-group {
	clear:left;
}

.wpcf7 .checkbox {
  overflow: auto;
}

.wpcf7 .wpcf7-list-item {
  display: block;
  float: left;
  width: 50%;
  padding-right: 10px;
  margin-left: 0;
}

@media (max-width: 767px) {
  .wpcf7 .wpcf7-list-item {
    width: 100%;
  }
}
/*-----------------------------------------------------------------------------
   Buttons
-----------------------------------------------------------------------------*/
.btn {
  outline: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: none !important;
  box-shadow: none !important;
  line-height: 1;
  margin-bottom: 1.5em;
  text-decoration: none;
  display: inline-block;
  border: none;
  -webkit-transition: all 0.25s ease;
  -moz-transition: all 0.25s ease;
  -o-transition: all 0.25s ease;
  -ms-transition: all 0.25s ease;
  transition: all 0.25s ease;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  border-radius: 5px;
}

.btn-primary,
.btn-secondary {
  background-color: #4c8eee;
  color: #fff !important;
  font-size: 1.0714285714rem;
  padding: .9em 1em;
}

.btn-secondary {
  background-color: #56ba64;
}

.btn-trans {
  background: transparent;
  border: 2px solid #4c8eee;
  color: #4c8eee !important;
}

.btn-lg {
  padding: 1em 2em;
  font-size: 1.2rem;
}

.btn-sm,
.login-wrap .btn-primary {
  padding: 9px 12px;
  font-size: 14px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.btn-trans:hover,
.btn-trans:focus,
.btn-trans:active {
  background-color: #4181de;
  color: #fff !important;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-trans:not(:disabled):not(.disabled):active {
  background-color: #3875cd;
  color: #fff !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #68d076;
}

.btn-secondary:active {
  background: #4eae5c !important;
}

.btn-text {
  font-weight: 700;
  text-transform: uppercase;
  color: #f07429;
  display: inline-block;
  margin-bottom: 1.5em;
  line-height: 1;
  -webkit-transition: all 0.25s ease;
  -moz-transition: all 0.25s ease;
  -o-transition: all 0.25s ease;
  -ms-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

.btn-text:hover,
.btn-text:focus {
  color: #b75519;
}

.btn-text > input {
  background:none;
  border:0;
  padding:0;
  font-weight: 700;
  text-transform: uppercase;
  color:inherit;
  cursor:pointer;
}

.btn-text > .fa {
  font-size: 15px;
  margin-left: 5px;
}

@media (max-width: 991px) {
  .btn-lg {
    padding: 15px 30px;
  }
}
/*-----------------------------------------------------------------------------
   IE overrides
-----------------------------------------------------------------------------*/
/* Sticky footer fix for
-----------------------------------------------------------------------------*/
.lte-ie7 #wrap {
  display: table;
}

/* Form fix for lte IE8
-----------------------------------------------------------------------------*/
.lt-ie8 input, .lt-ie8 textarea {
  width: 94%;
  padding: 0 2%;
}

.lt-ie8 textarea {
  width: 93%;
}

/*-----------------------------------------------------------------------------
  Misc
-----------------------------------------------------------------------------*/
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.img-404-error {
  width: 400px;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  clear: both;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  margin-top: 10px;
  font-size: 0.8889rem;
}

.embed-responsive {
  margin-bottom: 2.5em;
}

.embed-responsive.maps {
  padding-bottom: 30%;
}

@media (max-width: 991px) {
  .embed-responsive.maps {
    padding-bottom: 40%;
  }
}
@media (max-width: 580px) {
  .embed-responsive.maps {
    padding-bottom: 60%;
  }
}
img {
  max-width: 100%;
  height: auto;
}

hr {
  margin: 2em 0 3em;
}

.clear {
  clear: both;
}

.max-300, .max-400, .max-500, .max-600 {
  margin-left: auto;
  margin-right: auto;
}

.max-300 {
  max-width: 300px;
}

.max-400 {
  max-width: 400px;
}

.max-500 {
  max-width: 500px;
}

.max-600 {
  max-width: 600px;
}

.prepend-top {
  margin-top: 1.5em;
}

.append-bottom {
  margin-bottom: 1.5em;
}

.prepend-top-lg {
  margin-top: 3em;
}

.append-bottom-lg {
  margin-bottom: 1.5em;
}

.prepend-left {
  margin-left: 1em;
}

.prepend-left-sm {
  margin-left: 4px;
}

.append-right {
  margin-right: 1em;
}

.append-right-sm {
  margin-right: 4px;
}

.padded {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.padded-sm {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.padded-lg {
  padding-top: 6rem;
  padding-bottom: 5.5rem;
}

.padded-top {
  padding-top: 4rem;
}

.padded-top-sm {
  padding-top: 1.5rem;
}

.padded-top-lg {
  padding-top: 6rem;
}

.padded-bottom {
  padding-bottom: 1.5rem;
}

.padded-bottom-sm {
  padding-bottom: 0.5rem;
}

.padded-bottom-lg {
  padding-bottom: 5.5rem;
}

@media (max-width: 767px) {
  .prepend-top-lg {
    margin-top: 2em;
  }

  .append-bottom-lg {
    margin-bottom: 2em;
  }

  .padded {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .padded-sm {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .padded-lg {
    padding-top: 4.5rem;
    padding-bottom: 4rem;
  }

  .padded-top {
    padding-top: 3rem;
  }

  .padded-top-sm {
    padding-top: 1rem;
  }

  .padded-top-lg {
    padding-top: 4.5rem;
  }

  .padded-bottom {
    padding-bottom: 2.5rem;
  }

  .padded-bottom-sm {
    padding-bottom: 1rem;
  }

  .padded-bottom-lg {
    padding-bottom: 4rem;
  }
}
