/*
 Theme Name:   VS-Training
 Template:     aate
 Text Domain:  vs-training
*/

@import url("https://use.typekit.net/xqa1sio.css");

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
font-family: "open-sans", sans-serif;
    font-weight: 400;
    color: #373737;
}


/***********************
*       TYPOGRAFIA     *
***********************/

h1, h2, h3, h4, h5 {
font-family: "bebas-neue-pro", sans-serif;
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  color: #373737;
}

span.vihrea {
    color: #084033;
}

h1 {
    font-size: 3.2em;
    line-height: 100%;
        margin-bottom: .4em;
}

h2 {
    font-size: 3em;
    margin-bottom: .4em;
    line-height: 100%;
}

a, a:visited, a:hover, a:focus {
    color: #FD5844;
}

main a:hover, .nosto a:hover, footer a:hover {
    text-decoration: underline;
    color: #373737;
}

/***********************
*       HEADER         *
***********************/


header .container {
    height: 100%;
    width: 100%;
    clear: both;
    position: relative;
}
/*
header .row {
    position: absolute;
    top: calc(50% + 50px);
    transform: translateY(-50%);
}*/

header p.nosto {
    text-align: left;
}

.ylapalkki button.menu-plus, .ylapalkki button.menu-plus:focus, .ylapalkki button.menu-plus:hover {
    background-color: #63bb35;
    border: 2px solid #333;
    color: #fff !important;
    height: 35px;
    width: 35px;
}

.header-image-and-title .container {
    padding-top: 40px;
}

/***********************
*       NAV         *
***********************/
    
.navbar {
    padding-left: 25px;
    padding-right: 25px;
}
.menu-plus:before {
    content: '\002B';
    margin-left: 0;
    margin-top: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.menu-minus:before {
    content: "\2212"; /* Unicode character for "minus" sign (-) */
    margin-left: 1px;
    margin-top: 0;
}

button.navbar-toggler {
    border: 0 solid transparent;
}

button.navbar-toggler:hover,
button.navbar-toggler:focus {
    border: 0 solid transparent;
    outline: none;
    box-shadow: none;
}

.custom-toggler {
    border: none;
    background: transparent;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 45px;
    height: 40px;
}

.custom-toggler .toggler-icon {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}


.custom-toggler:not(.collapsed) .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler:not(.collapsed) .toggler-icon:nth-child(2) {
    opacity: 0;
}

.custom-toggler:not(.collapsed) .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/***********************
*        RAKENNE       *
***********************/

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-right: 25px;
    padding-left: 25px;
}

.container, .container-fluid {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
}

.row, .container {
    max-width: 1200px;
    margin: 0 auto;
}

.textblock .row, .textblock-double .row {
    max-width: 900px;
}

.container-fluid.wide .row {
    max-width: 100%;
}
.text {
    padding-top: 50px;
    padding-bottom: 50px;
    order: 2;
}

.background {
    padding-left: 0;
    padding-right: 0;
    height: 300px;
    order: 1;
}



.kuva {
    order: 1;
    position: relative;
    margin-bottom: 40px;
}

.img-shadow {
    position: absolute;
    background: #084033;
    height: 100%;
    width: calc(100% - 50px);
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
    bottom: -25px;
    right: 10px;
    z-index: -1;
}

.kuva img {
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
    
}

.teksti {
    margin-top: 30px;
    order: 2;
}

.background-image {
    background-size: cover;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}


.laatikko {
    height: 100%;
    margin-bottom: 30px;
    overflow: hidden;
}

.laatikkokuva {
    height: 200px;
    width: 100%;
    background-position: center;
    background-size: cover;
}

.laatikkoteksti {
    padding: 20px;
}

.alamargin {
    margin-bottom: 20px;
}

.logot img {
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
}

ul.nav {
    padding-top: 20px;
}

a:focus {
    color: #0082ff !important;
    text-decoration: underline !important;
}

a.button:focus, nav a:focus {
    text-decoration: none !important;
}

img {
    width: 100%;
}


main ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1em;
    font-family: "bebas-neue-pro", sans-serif;
    font-size: 1.35em;
}

main ul li {
    position: relative;
    padding-left: 2.5em;
    margin-bottom: 10px;
}

main ul li::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    background: #084033;
    border-radius: 50%;
    position: absolute;
    left: 25px;
    top: 10px;
}

main .ajankohtaista-inner ul {
    font-family: "open-sans", sans-serif;
    font-size: 1em;
}

main .ajankohtaista-inner ul li::before {
    left: 18px;
    top: 5px;
}

/********************
* ASIAKASKOKEMUKSIA *
********************/

.row.asiakaskokemuksia-otsikko.fade-in-up.visible {
    margin-bottom: 30px;
}

.asiakaskokemuksia {
    background-color: #f2f1ef;
    background-image:url('https://www.vs-training.fi/wp-content/uploads/taustalogo_vs.png');
    background-size: 80%;
    background-position: top left;
    background-repeat: no-repeat;
    padding-top: 80px;
    padding-bottom: 80px;
}

.asiakaskokemuksia .col-md-12.col-lg-6 {
    margin-top: 20px;
    margin-bottom: 20px;
}

.palaute-inner {
    background: #FFFFFF;
    padding: 45px;
    height: 100%;
position: relative;
}

.lainausmerkki {
    position: absolute;
    background: #084033;
    height: 25px;
    width: 25px;
    clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
    left: 20px;
    top: -10px;
}

.tuplalainaus {
    position: absolute;
    top: 0;
    left: 0;
}

.lainausmerkki-2 {
    left: 45px;
}

p.kirjoittaja {
    font-weight: 700;
    margin-top: 1.4em;
    margin-bottom: 0;
}

/*********************
*   VALMENNUSKORTTI  *
**********************/


.harmaa-tausta {
    background-color: #f2f1ef;
    background-image:url('https://www.vs-training.fi/wp-content/uploads/taustalogo_vs.png');
    background-size: 80%;
    background-position: top left;
    background-repeat: no-repeat;
}

.row.valmennuskortti-sisalto {
    max-width: 700px;
}

.row.hintakortit {
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
    max-width: 1050px;
}

.hintakortti-inner {
    background: #fff;
    padding: 25px;
}

.hintakortti h3 {
    font-size: 1.7em;
}

.hintakortit .col-md-12.col-lg-4 {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px;
}

span.hinta-nro {
    color: #084033;
    font-size: 4em;
}

p.hinta {
    margin-bottom: 0;
    text-align: center;
    font-family: "bebas-neue-pro", sans-serif;
    font-weight: 600;
    font-style: normal;
    /* text-transform: none; */
    color: #373737;
    font-size: 1.4em;
    margin-top: 1.5em;
}

/*****************
*  AJANKOHTAISTA *
*****************/

.ajankohtaista .col-12 {
    margin-bottom: 40px;
}
.ajankohtaista-inner {
    background: #fff;
    padding: 35px;
}

.ilmoittaudu-button {
    margin-top: 2em;
}

.ajankohtaista-inner h2 {
    font-size: 3em;
}

/*********************
*   KUVAGALLERIA     *
*********************/

.wrapper.galleria {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.kuvagalleriakuva {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: .3s all;
    cursor: pointer;
    margin-bottom: 15px;
}

.kuvagalleriakuva:last-child{
    margin-bottom: 0;
}

.kuvagalleriakuva:hover {
    opacity: .7;
}

.light-box {
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 999;
    top: 0;
    left: 0;
    cursor: pointer;
}

.light-box img {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
    width: auto;
}
 
.light-box p {
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
}
 
 .light-box img:hover {
    cursor: pointer;
}

/*********************
*  yleiset luokat  *
*********************/

.nosto p, p.nosto {
    font-size: 1.1em;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    max-width: 700px;
}

.no-paddings {
    padding-top: 0;
    padding-bottom: 0;
}

.padding-bottom-0 {
    padding-bottom: 0;
}

.padding-top-0 {
    padding-top: 0;
}

.padding-top-puolikas {
    padding-top: 45px;
}

.center img {
    margin-left: auto;
    margin-right: auto;
}

.kapea {
    max-width: 900px;
}

/*********************
*    ARTIKKELIT      *
*********************/

.artikkeli {
    margin-bottom: 30px;
}

.artikkelikirjoitus {
    height: 100%;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: 0.5s;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    display: flex;
    flex-direction: column;
}

.artikkelikuva {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: all .5s;
}

.artikkeliteksti {
    padding: 30px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.artikkeliteksti h3 {
    margin-bottom: .2em;
}

p.julkaistu {
    font-size: .8em;
    text-align: left;
    margin-top: 0;
}

p.teksti {
    margin-bottom: 1.2rem;
}

p.alin {
    display: flex;
    margin-top: auto;
    border: 0;
    outline: 0;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 0;
}

.single h1 {
    margin-bottom: 0;
}

/*********************
*    YHTEYSTIEDOT    *
*********************/

.henkilo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 50px;
    justify-content: center;
}

.henkilokuva, .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
    width: 100%;
    text-align: center;
}

.henkilokuva img {
    width: 100%;
    border-radius: 50%;
    max-width: 200px;
    margin: 0 auto;
}

p.somelinkit {
    margin-top: 1.5em;
    margin-bottom: 0;
}


a.somenappi {
    font-size: 1.6em;
    margin-right: 3px;
}

/*********************
*  VAIN MALLIULKASSA *
*********************/

.text h2, .text p {
    max-width: 700px;
}

.page-header {
    max-height: 500px;
}

.home .header-image {
    max-height: 700px;
}

.header-image-and-title {
    padding-top: 80px;
}

.header-image-and-title .teksti {
    order: 1;
    margin-top: 0;
}

.header-image-and-title .kuva {
    order: 2;
    margin-bottom: 0;
    margin-top: 40px;
}

.ylapalkki {
    background-color: #FFFFFF;
    box-shadow: 0 0 4px rgba(0,0,0,.2);
}

a.nav-link {
    font-family: "bebas-neue-pro", sans-serif;
    font-weight: 600;
    font-style: normal;
    text-transform: none;
    color: #373737;
    font-size: 1.5em;
}

.button, .button:visited, a.button, a.button:visited {
    background-color: #FD5844;
    border: 2px solid #FD5844;
    padding: 5px 20px;
    color: #fff;
    display: inline-block;
    font-size: 1em;
    font-weight: 700;
font-family: "open-sans", sans-serif;
    letter-spacing: 0;
    text-transform: normal;
    width: auto;
    text-decoration: none;
    text-align: center;
    text-indent: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    transition: all .2s ease-in-out;
    border-radius: 0;
}

.button:hover, .button:visited:hover, a.button:hover, a.button:visited:hover,
.button:focus, .button:visited:focus, a.button:focus, a.button:visited:focus {
    text-decoration: none;
    background-color: #fff;
    color: #FD5844 !important;
    border-color: #FD5844;
}

p.button-p {
    margin-top: 2em;
}

footer {
    background-color: #393939;
}

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

footer p.somelinkit {
    margin-top: 1.5em;
}
footer img {
    max-width: 270px !important;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
}

footer .container {
    padding-top: 60px;
    padding-bottom: 40px;
}

footer p {
    font-size: 1.1em;
    text-align: center;
}

.container-fluid.copyrow {
    background: #303030;
    padding-top: 8px;
    padding-bottom: 8px;
}

footer a, footer a:hover, footer a:focus {
    color: #fff !important;
}

footer .copyrow p {
    margin-bottom: 0;
    font-size: .8em;
    color: #cbcbcb;
}

.copyrow a {
    color: #cbcbcb !important;
}

@media only screen and (min-width: 481px) {
	.single h2 {
        font-size: 1.5rem;
    }
}

@media only screen and (min-width: 576px) {

}

@media only screen and (min-width: 768px) {
    
    h1 {
        font-size: 5em;
    }
    h2 {
        font-size: 3.7em;
    }
    /* Animaatio */

    main .row, .header-image .row {
        opacity:0;
    }
    .page-template-page-artikkelit main .row, .single main .row, main .row.kuvagalleria, main .row.henkilot, .no-animation .row {
        opacity: 1;
    }
    
    .fade-in-up {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease-out;
    }
    
    .fade-in-up.visible {
      opacity: 1;
      transform: translateY(0);
    }
        .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 250px;
        margin-bottom: 0;
    }
    .henkilotekstit {
        width: 50%;
    }
    .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
        text-align: left;
    }
    .henkilokuva {
        padding-right: 30px;
        width: calc(50% - 30px);
    }
    .henkilokuva img {
        float: right;
    }
    .ajankohtaista-inner {
        padding: 60px;
    }
}

@media only screen and (min-width: 992px) {
    ul.nav {
        padding-top: 0;
    }
    
    .header-image-and-title .container {
        padding-top: 90px;
    }

    .text {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    .background {
        height: auto;
    }
    .background, .text, .kuva, .teksti {
        order: inherit;
    }
    .teksti {
        margin-top: 0;
    }
    .kuva {
        margin-bottom: 0;
    }
	.laatikko {
	    margin-bottom: 0;
	}
	.artikkelit .col-lg-4 {
        padding-right: 15px;
        padding-left: 15px;
    }
    .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 350px;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: .5em;
        padding-left: .5em;
    }
    .ylapalkki {
        padding: .4em 0;
    }
    
        .shrink .logo img {
        height: 50px;
    }
    .shrink {
        padding: .3rem 0;
    }
      a.nav-link {
            position: relative;
    }
     a.nav-link:hover, a.nav-link:focus, .current-menu-item a.nav-link {
        color: #373737 !important;
    }
    a.nav-link:hover:after, .current-menu-item a.nav-link:after {
        content: "";
        width: 35px;
        height: 4px;
        background: #FD5844;
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .teksti-vasemmalla p, .teksti-vasemmalla h2, .teksti-vasemmalla .button, .teksti-vasemmalla ul {
        max-width: 550px;
        margin-left: auto;
    }

    .teksti-oikealla p, .teksti-oikealla h2, .teksti-oikealla .button, .teksti-oikealla ul {
        max-width: 550px;
    }
    
    .teksti-oikealla {
        padding-left: 60px;
    }
    .teksti-vasemmalla {
        padding-right: 60px;
    }

    .kulma-vasen {
        background-color: #fff;
        height: calc(100% + 2px);
        position: absolute;
        clip-path: polygon(0 0, 100% 0, 35% 100%, 0 100%);
        position: absolute;
        left: -1px;
        top: -1px;
        width: 100px;
    }
    
    .kulma-oikea {
        background-color: #fff;
        height: calc(100% + 2px);
        position: absolute;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
        position: absolute;
        right: -1px;
        top: -1px;
        width: 100px;
    }

}

@media only screen and (min-width: 1200px) {
	
}


@media only screen and (min-width: 1800px) {
    .container-fluid.wide .kuvagalleriakuva {
        height: 450px;
    }
}

@media only screen and (max-width: 992px) {
    ul#menu-main-menu {
        padding-top: 30px;
    }
    a.nav-link:hover, a.nav-link:focus {
        color: #FD5844 !important;
    }
}