/* Extra resets */

ul {
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

.bold {
    font-weight: bold!important;
}

.clear {
    clear: both;
}

.italic {
    font-style: italic!important;
}

/* Common typographic declarations */

p, h2  {
    color: #333333;
    margin: 0.5em 0;
}

h1 {
    font-family: 'talentum', Arial, sans-serif;
    font-size: 26px;
    line-height: 31px;
    color: #333333;
}

h1.page-header {
    font-weight: 900;
    font-size: 40px;
    line-height: 50px;
}

h2 {
    font-size: 22px;
    font-weight: inherit;
    line-height: 26px;
    color: #333333;
}

p.introduction {
    font-size: 22px;
    font-weight: 300;
    line-height: 35px;
    color: #333333;
}

p.large {
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
}

p, p.normal, ul.link-list li {
    font-size: 14px;
    font-weight: 300;
    line-height: 21px;
}

p.small {
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    color: #777777;
}

a, .green {
    text-decoration: none;
    color: #6ba924;
}

a:hover, .green:hover {
    color: #97c83a;
}

.banner {
    transition: background 0.2s ease-out;
    -webkit-transition: background 0.2s ease-out;
    -moz-transition: background 0.2s ease-out;
    -o-transition: background 0.2s ease-out;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    margin: 5px 0;
}

.banner h2 {
    font-size: 16px;
    font-weight: bold;
    color: #6ba924;
    margin: 0;
}
.banner p {
    margin: 0;
}

.banner:hover h2 {
    color: #97c83a;

}

li {
    list-style: none;
}

#mainNavigation li a {
    font-weight: bold;
    font-size: 18px;
    letter-spacing: -0.85px;
    color: #3c3c3c;
    text-transform: lowercase;
}
#mainNavigation li a:hover {
    color: #97c83a;
}

#mainNavigation li.isCurrent a {
    color: #6ba924;
}


/* Main elements declarations */



.header-container {
    position: relative;
}

.main-container {

}

.footer-container {
    background-color: #3d3d3d;
}

.top-navigation {
    position: relative;
}

.top-navigation ul {
    border-bottom: 3px solid #a8d397;
    padding: 15px 0;
}

.top-navigation li {
    display: inline;
    border-left: 2px solid #DDD;
}

.top-navigation li.first {
    border-left: none;
}

.top-navigation li a {
    padding: 1px 14px 2px;
}

.top-navigation li.first a {
    padding-left: 0;
}

/* LANGBAR */
.langbar {
    display: inline-block;
    position: absolute;
    bottom: 35px;
    right: 15px;
    font-size: 11px;
    width: 105px;
    text-align: right;
}
.langbar div{
    display: inline-block;
    margin-right: 6px;
    padding: 4px 0;
}
.langbar a {
    color: #6ba924;
    display: inline-block;
    font-weight: bold;
    padding: 3px 8px 2px 9px;
    text-decoration: none;
}
.langbar a.current{
    color: #3c3c3c;
    border: 1px solid #d5e6c0;
    padding-top: 2px;
}
.langbar a:hover{
    color: #3c3c3c;
}

.section-boxes {
    padding: 0 0 20px;
}

.section-boxes .box {
    padding: 20px;
    background-color: #f6f6f6;
    margin-bottom: 15px;
}

.section-boxes .banner {
    margin: 15px 0;
}

.section-boxes p.large {
    margin: 15px 0;
}

.section-boxes .box-magazines p.large {
    border-bottom: none;
}

.box-magazines p.normal {
    margin: 15px 0 0;
}

.section-boxes .box .link-table {
    display: block;
    border: none;
    margin: 15px auto 20px;
    font-size: 0;
}

.section-boxes .link-table a {
    width: 49%;
}
.section-boxes .link-table a:nth-of-type(n) {
    border-right: none;
    border-left: none;
    border-top: none;
}
.section-boxes .link-table a:nth-of-type(n+3) {
    border-top: 1px solid #eaeaea;
}
.section-boxes .link-table a:nth-of-type(2n+2) {
    border-left: 1px solid #eaeaea;

}
.section-boxes .link-table a {
    display: inline-block;
    position: relative;
}

.section-boxes .box .link-table-cell {
    display: block;
    padding-top: 50%;
    background-size: 70% auto;
    background-position: center center;
    transition: background 0.2s ease-out;
    -webkit-transition: background 0.2s ease-out;
    -moz-transition: background 0.2s ease-out;
    -o-transition: background 0.2s ease-out;
}

.web-services, .services-by-topic {
    padding: 40px 0;
    border-top: 1px solid #ddd;
}

.services-by-topic-boxes {
    padding: 20px 0 0;
}

.service-image, .summa-image, .fokus-image, .vkh-image, .suomenlaki-image {
    height: 215px;
    width: 100%;
    background-size: auto 100%;
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
}
.service-image {
    background-color: #f6f6f6;
}

.logo-talentum {
    width: 150px;
    height: 35px;
    display: block;
    float: left;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

.service-boxes {
    font-size: 0;
    margin: 0 -15px;
}

.mobile-menu {
    width: 35px;
    height: 35px;
    display: none;
    float: right;
    cursor: pointer;
}

.icon-books, .icon-events, .icon-magazines {
    display: inline-block;
    float: left;
    background-size: 100%;
    background-position: center center;
    margin-right: 15px;
    width: 50px;
    height: 50px;
}

.section-boxes h1 {
    line-height: 52px;
    padding-top: 5px;
    padding-bottom: 0;
}

.section-boxes h1 .two-lines {
    display: inline-block;
    max-width: 80%;
}

.service-boxes .box {
    display:inline-block;
    vertical-align: top;
    padding: 15px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.service-boxes .box a:hover .green {
    color: #97c83a;
}

.service-topic-nav {
    display: inline-block;
    vertical-align: top;
    width: 25%;
    padding: 15px 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.service-topic-nav li {
    font-size: 14px;
    padding: 10px 15px;
    display: block;
    color: #333;
    margin-right: -4px;
    transition: background 0.2s ease-out;
    -webkit-transition: background 0.2s ease-out;
    -moz-transition: background 0.2s ease-out;
    -o-transition: background 0.2s ease-out;
    cursor: pointer;
    background-position: center right;
}

h2.service-header {
    transition: background 0.2s ease-out;
    -webkit-transition: background 0.2s ease-out;
    -moz-transition: background 0.2s ease-out;
    -o-transition: background 0.2s ease-out;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    margin: 0;
}

.service-topic-nav li:hover, h2.service-header:hover {
    color: #97c83a;
}

.service-topic-nav li.active, .active .service-header {
    font-weight: bold;
    color: #6ba924;
}

.active .service-header {
    background-color: #dfefce;
}

.service-topic-nav li.active {
    background: url("../images/svg/accordion-arrow.svg") #dfefce center right no-repeat;
    margin-right: -18px;
    background-size: 15px 60px;
}

.service-container {
    display: inline-block;
    vertical-align: top;
    position: relative;
    width: 66%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    padding: 15px 15px 15px 30px;
    border-left: 1px solid #ddd;
    min-height: 320px;
}

.service-topic {
    display: none;
}

.service-topic h2.service-header {
    display: none;
}

.service-topic.active {
    display: block;
}

.service-container p {
    margin-top: 0;
}

.logo-small {
    display: inline-block;
    height: 35px;
    width: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    float: left;
    margin-right: 10px;
    padding-bottom: 5px;
}

.service-content > p.normal {
    padding-bottom: 10px;
}

.service-topic .banner {
    padding: 5px 0;
}

.service-topic .banner h2 {
    line-height: 100%;
}

.service-content .banner h2, .service-content .banner p {
    margin-left: 45px;
}

.service-topic ul.link-list li {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}
.service-topic ul.link-list li:after {
    content: '';
    display: block;
    clear: both;
}


footer.footer {
    padding: 30px;
    font-size: 14px;
    color: white;
}

.contact-info {
    box-sizing: border-box;
    -o-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    width: 66%;
    display: inline-block;
    float: left;
    padding-right: 10px
}

.icon-footer-phone {
    width: 35px;
    height: 55px;
    display: inline-block;
    float: left;
    margin: 0 20px 10px 0;
}

.footer .phone-numbers {
    padding-bottom: 10px;
    border-bottom: 1px solid #4f4f4f;
}

.phone-number-container {
    padding-left: 55px;
    @media (max-width: 768px) {
        padding-left: 0;
    }
}

.phone-number {
    display: inline;
}

.phone-number.first {
    margin-right: 30px;
}

.call-number, .number {
    font-size: 18px;
    color: #6ba924;
    font-weight: bold;
}

.call-number {
    display: none;
}

@media handheld {
    .call-number {
        display: inline;
    }
    .number {
        display: none;
    }
}

.emails {
    padding-top: 20px;
}

.email-block {
    display: inline-block;
    padding-right: 20px;
}

.email-block p {
    margin: 0.1em 0;
    color: white;
}

.footer-links {
    display: inline-block;
    width: 33%;
    border-left: 1px solid #4f4f4f;
    padding: 10px 0;
    float: right;
}

.footer-links .link-list {
    padding: 0 20px 15px;
}

.footer-links .link-list li {
    line-height: 25px;
    font-size: 14px;
    color: white;
}

.icon-link-arrow {
    width: 10px;
    height: 20px;
    display: inline-block;
    background-position: left center;
    background-repeat: no-repeat;
    margin-right: 5px;
    vertical-align: top;
}

.logo-talentum-negative {
    width: 150px;
    height: 25px;
    display: block;
    background-size: 100%;
    background-repeat: no-repeat;
    margin: 0 20px 0;
}
.logo-talentum-events {
    width: 201px;
    height: 20px;
    display: block;
    margin: 0 0 15px;
    background-size: 100%;
    background-repeat: no-repeat;
}
.logo-talentum-lakikoulutus {
    width: 263px;
    height: 20px;
    display: block;
    margin: 30px 0 15px;
    background-size: 100%;
    background-repeat: no-repeat;
}

/* Background images */

.summa-image {
    background-image: url("../images/png/webservice-summa.png");
}
.fokus-image {
    background-image: url("../images/png/webservice-fokus.png");
}
.vkh-image {
    background-image: url("../images/png/webservice-vkh.png");
}
.suomenlaki-image {
    background-image: url("../images/png/webservice-suomenlaki.png");
}
.logo-talentum {
    background-image: url("../images/png/talentum-logo.png");
}
.logo-talentum-negative {
    background-image: url("../images/png/talentum-logo-nega.png");
}
.logo-talentum-events {
    background-image: url("../images/png/talentum-logo-events.png");
}
.logo-talentum-lakikoulutus {
    background-image: url("../images/png/talentum-logo-lakikoulutus.png");
}

@media all and (-webkit-min-device-pixel-ratio: 1.5) {
    .summa-image {
        background-image: url("../images/png/webservice-summa@2x.png");
    }
    .fokus-image {
        background-image: url("../images/png/webservice-fokus@2x.png");
    }
    .vkh-image {
        background-image: url("../images/png/webservice-vkh@2x.png");
    }
    .suomenlaki-image {
        background-image: url("../images/png/webservice-suomenlaki@2x.png");
    }
    .logo-talentum {
        background-image: url("../images/png/talentum-logo@2x.png");
    }
    .logo-talentum-negative {
        background-image: url("../images/png/talentum-logo-nega@2x.png");
    }
    .logo-talentum-events {
        background-image: url("../images/png/talentum-logo-events@2x.png");
    }
    .logo-talentum-lakikoulutus {
        background-image: url("../images/png/talentum-logo-lakikoulutus@2x.png");
    }
}

/* Responsive declarations */

.header-container, footer, .main-content {
    max-width: 1136px;
    margin: 0 auto;
    padding: 15px;
}

@media (min-width: 1186px) {
    .section-boxes .box {
        width: 33%;
        display: table-cell;
        vertical-align: top;
        border-color: white;
    }
    .section-boxes {
        margin: 0 -30px;
        display: table;
        border-spacing: 30px;
        border-collapse: separate;
    }

    .section-boxes h1 {
        line-height: 52px;
        vertical-align: middle;
        padding-top: 5px;
        margin: 0;
        max-height: 52px;
    }

    .section-boxes h1 .two-lines {
        line-height: 100%;
        display: inline-block;
        margin: 0;
    }

    .section-boxes .box .link-table-cell {
        padding-top: 33%;
        background-size: 65% auto;
    }

    .icon-books, .icon-events, .icon-magazines {
        display: inline-block;
        float: left;
        background-repeat: no-repeat;
        background-size: 100%;
        background-position: center center;
        width: 50px;
        height: 52px;
        margin-right: 10px;
    }

    .service-boxes .box {
        width: 25%;
    }

    .service-topic ul.link-list {
        columns: 2;
        -moz-columns: 2;
        -webkit-columns: 2;
        -o-columns: 2;
        -ms-columns: 2;
    }
}

@media (max-width: 1185px) {
    h1.page-header {
        font-weight: 900;
        font-size: 30px;
        line-height: 35px;
    }
    p.introduction {
        font-size: 16px;
        font-weight: 300;
        line-height: 24px;
        color: #333333;
    }
    .section-boxes {
        padding: 10px 0 20px;
    }
    .web-services, .services-by-topic {
        padding: 20px 0;
    }

    .services-by-topic-boxes {
        padding: 10px 0 0;
    }
}

@media (min-width: 768px) and (max-width: 1185px) {
    .service-boxes .box {
        width: 50%;
    }

    .section-boxes .link-table a {
        width: 16.5%;
    }
    .section-boxes .link-table a:nth-of-type(n) {
        border-right: none;
        border-left: none;
        border-top: none;
    }
    .section-boxes .link-table a:nth-of-type(n+7) {
        border-top: 1px solid #eaeaea;
    }
    .section-boxes .link-table a:nth-of-type(n+2) {
        border-left: 1px solid #eaeaea;
    }
    .section-boxes .link-table a:nth-of-type(6n+1) {
        border-left: none;
    }

    .service-boxes:after {
        display: block;
        content: '';
        clear: both;
    }
}

@media (max-width: 1023px) {
    .langbar {
        right: 60px;
        bottom: 40px;
    }
    .phone-number {
        display: block;
        padding: 0 0 10px;
    }
    .number {
        font-size: 22px;
    }

    .email-block {
        display: block;
        padding: 0 0 10px;
    }

    .email-block p {
        display: inline;
    }

    .logo-talentum-negative {
        margin: 70px 20px 0;
    }



    header {
        clear: both;
        border-bottom: 3px solid #A8D397;
        padding-bottom: 15px;
    }

    .mobile-menu {
        display: block;
        background-image: url("../images/svg/mobilemenu-button.svg");
        border: 1px solid #ddd;
        border-radius: 3px;
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
    }

    .mobile-menu.open {
        background-image: url("../images/svg/mobilemenu-button-on.svg");
    }

    .top-navigation {
        display: none;
    }

    .top-navigation.open {
        display: block;
    }

    .top-navigation ul {
        border-bottom: none;
    }

    .top-navigation.open {
        display: block;
    }

    .top-navigation li {
        display: block;
        border-left: none;
        border-bottom: 1px solid #ddd;
    }


    .top-navigation li a {
        display: block;
        padding: 10px 0;
        margin: 0 auto;
        text-align: center;
    }
}




@media (max-width: 767px) {
    .section-boxes .link-table a {
        width: 24.5%;
    }
    .section-boxes .link-table a:nth-of-type(n) {
        border-right: none;
        border-left: none;
        border-top: none;
    }
    .section-boxes .link-table a:nth-of-type(n+5) {
        border-top: 1px solid #eaeaea;
    }
    .section-boxes .link-table a:nth-of-type(n+2) {
        border-left: 1px solid #eaeaea;
    }
    .section-boxes .link-table a:nth-of-type(4n+1) {
        border-left: none;
    }

    .service-container {
        width: 100%;
        padding: 15px 0;
        display: block;
        border-left: none;
    }

    .service-topic-nav {
        display: none;
    }

    .service-topic {
        display: block;
        border-bottom: 1px solid #ddd;
    }

    .service-topic h2.service-header {
        display: block;
        cursor: pointer;
        padding: 5px 10px;
    }

    .service-topic .service-content {
        display: none;
        padding: 10px;
    }

    .service-topic.active .service-content {
        display: block;
    }

    .icon-footer-phone {
        display: none;
    }

    .contact-info {
        display: block;
        float: none;
        width: 100%;
    }

    footer.footer {
        padding: 30px 15px;
    }

    .footer-links {
        display: block;
        width: 100%;
        float: none;
        padding: 15px 0 0;
        border: 0;
    }

    .footer-links .link-list {
        padding: 0;
    }

    .emails {
        padding-top: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #4f4f4f;
    }

    .logo-talentum-negative {
        display: none;
    }

    .phone-number-container {
        padding-left: 0;
    }
}
}
@media (max-width: 640px) {

    .section-boxes .link-table a {
        width: 33%
    }

    .section-boxes .link-table a:nth-of-type(n) {
        border-right: none;
        border-left: none;
        border-top: none;
    }

    .section-boxes .link-table a:nth-of-type(n+4) {
        border-top: 1px solid #eaeaea;
    }
    .section-boxes .link-table a:nth-of-type(3n+2) {
        border-right: 1px solid #eaeaea;
        border-left: 1px solid #eaeaea;
    }
    .section-boxes .link-table a.empty-cell {
        border-right: none;
    }

}

@media (max-width: 480px) {
    .section-boxes .link-table a {
        width: 49%;
    }
    .section-boxes .link-table a:nth-of-type(n) {
        border-right: none;
        border-left: none;
        border-top: none;
    }
    .section-boxes .link-table a:nth-of-type(n+3) {
        border-top: 1px solid #eaeaea;
    }
    .section-boxes .link-table a:nth-of-type(2n+1) {
        border-right: 1px solid #eaeaea;

    }
    .section-boxes h1 .two-lines {
        line-height: 100%;
        display: inline-block;
        margin: 0;
        max-width: 180px;
    }
}

@media (min-width: 768px) and (max-width: 1185px) {

    .trigger-min768-max1185 {
        border-bottom: 1px solid #eaeaea;
    }
}

@media (min-width: 640px) and (max-width: 1185px) {

    .trigger-min640-max1185 {
        border-bottom: 1px solid #eaeaea;
    }
}

@media (min-width: 480px) and (max-width: 1185px) {

    .trigger-min480-max1185 {
        border-bottom: 1px solid #eaeaea;
    }
}
