/*
* Theme Name: Niepodlegla
* Description: Niepodlegla Wordpress theme 2017.
* Author: Laboratorium.ee & s360
* Author URI: https://laboratorium.ee/
* Version: 2.1
*/

.logo-container img {
    max-width: 100%;
}

header nav li {
    padding: 10px;
}

header nav li:focus .sub-menu,
header nav li:hover .sub-menu {
    display: block;
}

header nav ul > li {
    position: relative;
}

header form p {
    margin: 0;
}

header form {
    display: inline-block;
    vertical-align: middle;
}

#promoted-material-container .home-slide video {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
}

#promoted-material-container {
    overflow: hidden;
    position: relative;
}

#promoted-material-container .home-slide {
    -webkit-transition: height 1s;
    transition: height 1s;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100vw;
    height: 100vh;
}

.video-stopped #promoted-material-container .home-slide {
    height: 0;
}

#promoted-material-container .reason {
    position: absolute;
    left: 0;
    text-align: center;
    padding: 1em;
    color: #fff;
    width: 100%;
    top: 80%;
    background-color: #999;
}

#promoted-material-container .description {
    position: absolute;
    bottom: 5vh;
    right: 5vh;
    background-color: #BA4647;
    color: #fff;
    padding: 10px;
}

html {
    font-size: 16px;
}

#video-time-progress {
    position: absolute;
    right: 2%;
    top: 2%;
}

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

.navigation nav li {
    display: inline-block;
}

.label {
    color: #000;
}

.menu-container {
    text-align: right;
}

.lang-menu ul {
    list-style-type: none;
}

.lang-menu {
    padding-left: 1em;
    display: inline-block;
}



.faq-question .collapse {
    padding-bottom: 1px;
}

.brands-slider-container #brands-slider:not(.no-transition) {
    -webkit-transition: left 0.3s;
    transition: left 0.3s;
}


.news-container .news-item:nth-child(3n+1) {
    clear: left;
}

.reasons li a span {
    bottom: 5%;
    left: 5%;
    position: absolute;
}

.reasons li a h2 {
    background-color: #E97B31;
    position: absolute;
    left: 30px;
    top: 30px;
    max-width: 84%;
    margin: 0;
    padding-left: 4em;
    display: inline;
    padding-right: 1em;
}

.reasons li a {
    display: block;
    color: #fff;
    background-color: gray;
    padding-top: 50%;
    position: relative;
}

.reasons .reason .number {
    border-top: 3px solid #fd241d;
    position: absolute;
    top: 0;
    left: 0;
    color: #000;
    width: 1.5em;
    text-align: center;
    z-index: 1;
    line-height: 1.5em;
    display: block;
    background-color: #fff;
    height: 1.5em;
    font-size: 2em;
    box-sizing: content-box;
}

.reasons .number-class-1 .number,
.reasons .number-class-2  .number,
.reasons .number-class-4  .number {
    width: 1.7em;
    line-height: 1.7em;
    height: 1.7em;
    font-size: 2em;
}

.reasons .reason .thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.reasons .reason {
    border: 8px solid transparent;
    float: left;
    width: 33.3%;
}

.reasons .reason a {
    padding-top: 50%;
    font-size: 20px;
}

.reasons .number-class-1,
.reasons .number-class-2 {
    width: 50%;
}

.reasons .number-class-4,
.reasons .number-class-9 {
    width: 66.6%;
}

.reasons .number-class-4 a,
.reasons .number-class-9 a {
    padding-top: 51%;
}

.reasons .number-class-5 {
    margin-top: calc(-16.66% - 8px);
}

@media (max-width: 991px) {
    .reasons .reason {
        width: 50%;
    }

    .reasons .number-class-5 {
        margin-top: 0;
    }

    .reasons .number-class-4 a,
    .reasons .number-class-9 a {
        padding-top: 50%;
    }
}

@media (max-width: 768px) {
    .reasons .reason {
        width: 100%;
    }
}
