
/*--------------- Homepage ------------------*/

section{
    position: relative;
}

section h1{
    font-weight: 600;
    text-align: center;
}

.overlay{
    background-color: #337F95;
    height: 100%;
    left: 0;
    opacity: 0.5;
    position: absolute;
    top: 0;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    width: 100%;
}

.section-content{
    position: relative;
}

#section1{
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 100px;
}
#section1 h1{
    color: #fff;
    font-size: 66px;
}
#section1:after {
    background-image: url(https://www.stalling31.nl/wp-content/uploads/2020/09/method-draw-image-1-1-1.svg);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 120% auto;
    content: '';
    display: block;
    height: 0;
    padding-bottom: 10%;
    position: relative;
    width: 100%;
}
#section2 h1,
#section3 h1,
#section4 h1,
#section5 h1,
#section6 h1{
    color: #383C42;
    font-size: 50px;
}
#section2 h1:after,
#section3 h1:after,
#section4 h1:after,
#section5 h1:after,
#section6 h1:after{
    border-bottom: 1px solid #337F95;
    content: '';
    display: block;
    margin: 30px auto;
    width: 152px;
}
.section-description{
    text-align: center;
    color: #383c42;
    font-size: 18px;
    margin: 0 auto 60px;
    opacity: 0.8;
}
#section4 .section-description,
#section6 .section-description{
    max-width: 675px;
}
#section3 .section-description{
    font-size: 16px;
}
.homepage-cards-wrap{
    display: flex;
    flex-direction: row;
    overflow: hidden;
}
.homepage-card{
    border: 1px solid rgba(84, 89, 95, 0.3);
    border-radius: 20px;
    float: left;
    margin-right: 30px; 
}
#section2 .homepage-card,
#section4 .homepage-card,
#section5 .homepage-card{
    padding: 20px;
}
.homepage-card:last-of-type{
    margin-right: 0;
}
.homepage-card-icon{
    height: 65px;
    margin-bottom: 10px;
    width: 65px;
}
.homepage-card h3{
    color: #383C42;
    font-size: 18px;
    font-weight: 600;
}
.homepage-card p{
    color: #7a7a7a;
    font-size: 15px;
}

/*--------------- Key Points Sub-Section ------------------*/

.quasi-background {
    bottom: 0;
    height: 100%;
    left: 0;
    object-fit: cover;
    object-position: center bottom;
    position: absolute;
    top: 0;
    width: 100%;
}

.key-points{
    clear: both;
    margin: 0 auto 0;
    max-width: 840px;
    padding: 80px 0 30px 30px;
}
.single-key-point{
    float: left;
    padding: 10px;
}
.single-key-point:nth-of-type(1){
    width: 21%;
}
.single-key-point:nth-of-type(2){
    width: 27%;
}
.single-key-point:nth-of-type(3){
    width: 25%;
}
.single-key-point:nth-of-type(4){
    width: 25%;
}
.key-point-text{
    float: right;
    padding-left: 20px;
    width: calc(100% - 40px);
}
.key-point-thumb{
    float: left;
    height: 40px;
    width: 40px;
}
.single-key-point h3{
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.single-key-point p{
    color: #fff;
    font-size: 14px;
    font-weight: 200;
    margin: 0;
}

.logos-row {
    text-align: center;
}
.single-logo {
    display: inline-block;
    padding: 0 8px;
}
.single-logo:first-of-type{
    position: relative;
    top: 5px;
}

/*--------------- Section 2 ------------------*/

#section2 {
    padding: 40px 0 0;
}
.advantages{
    margin-top: 80px;
}
.advantage-card{
    width: calc((100% - 120px)/5);
}
.advantage-card h3{
    color: #E86960;    
}
.advantage-card:hover{
    background-color: #E8685F;
}
.advantage-card:hover .advantage-text, 
.advantage-card:hover h3 {
    color: rgba(255,255,255,0.8);
}
.advantage-card:hover .pink-stroke {
    stroke: #fff;
}
.advantage-card:hover .pink-shadow {
    fill: #fff;
}
.advantage-card:hover .pink-fill {
    fill: #fff;
}
#section2:after{
    background-image: url(https://www.stalling31.nl/wp-content/uploads/2020/09/group-46-1-1.svg);
    background-position: bottom left;
    background-repeat: no-repeat;
    content: '';
    display: block;
    margin: 60px 0 0;
    min-height: 80px;
}

/*--------------- Section 3 ------------------*/

#section3{
    padding-top: 40px;
}
.single-direction{
    overflow: hidden;
    width: calc((100% - 60px)/3);
}
.direction-text-block{
    padding: 20px;
}
.direction-image-block {
    background-position: center;
    background-size: cover;
    height: 0;
    padding-bottom: 66%;
}
.direction-link{
    display: block;
    font-weight: 600;
    margin-bottom: 20px;
}
.direction-link:after {
    content: "\2192";
    font-family: fantasy;
    margin-left: 8px;
}
#section3:after{
    background-image: url(https://www.stalling31.nl/wp-content/uploads/2020/09/group-45-2.svg);
    background-position: bottom right;
    background-repeat: no-repeat;
    content: '';
    display: block;
    margin: 60px 0;
    min-height: 176px;
}


/*--------------- Section 4 ------------------*/

.howto-card{
    width: calc((100% - 90px)/4);
}
#section4:after{
    background-image: url(https://www.stalling31.nl/wp-content/uploads/2020/09/group-48-1-1.svg);
    background-position: bottom left;
    background-repeat: no-repeat;
    content: '';
    display: block;
    margin: 60px 0;
    min-height: 144px;
}

/*--------------- Section 5 ------------------*/

#section5 .homepage-cards-wrap{
    margin-top: 50px;
}
.links-col {
    width: 45%;
}
.map-image-col {
    width: 55%;
}
.links-col > div {
    margin-right: 0;
    width: 100%;
}
.links-col > div:first-of-type{
    margin-bottom: 30px;
}
.links-col h4{
    color: #E8695F;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
}
.links-list{
    columns: 3;
}
.links-list a{
    display: block;
    font-size: 18px;
    line-height: 2;
    text-decoration: underline;
}
.map-image-col{
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center right;
}
#section5:after{
    background-image: url(https://www.stalling31.nl/wp-content/uploads/2020/09/group-47-1-1.svg);
    background-position: bottom right;
    background-repeat: no-repeat;
    content: '';
    display: block;
    margin: 60px 0;
    min-height: 144px;
}

/*--------------------- Search Form homepage only styles ---------------------------------*/

body.home .hp-search-form {
    max-width: 700px;
    margin: 60px auto 0;
    width: 80%;
}

body.home .hp-search-form form > div:first-of-type {
    width: 37%;
}

body.home .hp-search-form form > div:nth-of-type(2) {
    display: none;
    width: 0%;
}

body.home .hp-search-form form > div:nth-of-type(3) {
    width: 31%;
}

body.home .hp-search-form form > div:last-of-type {
    width: 32%;
}


@media all and (max-width: 768px) {
    body.home .hp-search-form form > div, body.home .hp-search-form form > div:first-of-type, body.home .hp-search-form form > div:nth-of-type(2), body.home .hp-search-form form > div:nth-of-type(3), body.home .hp-search-form form > div:last-of-type {
        border-radius: 32px;
        width: 100%;
    }
}

/*--------------------- Reviews Carousel ---------------------------------*/

.hp-comments-section .comment {
    float: left;
    margin: 0 15px !important;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
    min-height: 290px;
}
.outer-stalling-carousel-block {
    font-family: "Open Sans";
    color: #383c42;
}
.hp-comments-section .comment{
    width: 403px;
}
.outer-stalling-carousel-block .inner-stalling-carousel-block{
    overflow-y: hidden;
    padding-bottom: 44px;
    position: relative;
}
.outer-stalling-carousel-block .inner-stalling-carousel-block::-webkit-scrollbar {
    background: rgba(84, 89, 95, 0.3);
    height: 2px;
}
.outer-stalling-carousel-block .inner-stalling-carousel-block::-webkit-scrollbar-thumb{
    background: #337f95;
}
.outer-stalling-carousel-block .horizontal-scroll-controls{
    background: #fff;
    height: 100%;
    padding: 0;
    position: absolute;
    right: -10px;
    text-align: center;
    top: 0;
    width: 20%;
}
.outer-stalling-carousel-block .stalling-carousel-horizontal-scroll-button{
    border: 1px solid #edeeef;
    border-radius: 100%;
    cursor: pointer;
    height: 52px;
    line-height: 52px;
    overflow: hidden;
    text-align: center;
    width: 52px;
}
.outer-stalling-carousel-block .stalling-carousel-horizontal-scroll-button-wrapper {
    background: #fff;
    float: right;
    padding: 0 30px;
    position: relative;
    top: -27px;
    width: 200px;
}
.outer-stalling-carousel-block .stalling-carousel-horizontal-scroll-button.left-direction{
    float: left;
    
}
.outer-stalling-carousel-block .stalling-carousel-horizontal-scroll-button.right-direction{
    float: right;
}
.outer-stalling-carousel-block .stalling-carousel-horizontal-scroll-button:before {
    color: #337f95;
    font-family: FontAwesome;
    font-weight: normal;
    position: relative;
    top: -1px;
}
.outer-stalling-carousel-block .stalling-carousel-horizontal-scroll-button.left-direction:before{
    content: "\f053";
    left: -1px;
}
.outer-stalling-carousel-block .stalling-carousel-horizontal-scroll-button.right-direction:before{
    content: "\f054";
    right: -1px;
}

.outer-stalling-carousel-block li.comment {
    list-style-type: none;
}
.outer-stalling-carousel-block .review-author-name {
    color: #383c42;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.outer-stalling-carousel-block .comment_container{
    position: relative;
}
.outer-stalling-carousel-block .review-pakket{
    background-color: #fcf9ea;
    border-radius: 15px;
    font-size: 16px;
    padding: 4px 10px;
    position: absolute;
    right: 0;
    top: 6px;
}
.outer-stalling-carousel-block .review-header {
    overflow: hidden;
}
.outer-stalling-carousel-block .review-author-name:before {
    background-image: url(https://www.stalling31.nl/wp-content/themes/stalling/assets/images/icons/gmail-icon.svg);
    background-size: cover;
    content: '';
    display: inline-block;
    height: 29px;
    margin-right: 10px;
    position: relative;
    top: 6px;
    width: 29px;
}
.outer-stalling-carousel-block .comment .review{
    border-top: 1px solid rgba(84, 89, 95, 0.3);
    clear: both;
    margin-top: 20px;
    padding-top: 20px;
}
.outer-stalling-carousel-block .comment .review p{
    color: #54595f;
    font-family: "Open Sans";
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
}
.outer-stalling-carousel-block.woocommerce .star-rating:before {
    color: #f1f1f1 !important;
    content: "\53\53\53\53\53" !important;
    font-size: 18px;
}
.woocommerce .star-rating span, .woocommerce-page .star-rating span{
    font-size: 18px;
}
.woocommerce-product-rating{
    clear: both;
    float: left;
    margin-left: 0;
}
.outer-stalling-carousel-block.woocommerce .woocommerce-product-rating .star-rating{
    letter-spacing: 0.2em;
    width: 140px;
    margin: 0 !important;
}
.outer-stalling-carousel-block .description {
    font-size: 16px;
    min-height: 9em;
}

/*--------------- Homepage Responsive Styling ------------------*/

@media all and (max-width: 1024px){    
    #section1 h1 {
        font-size: 40px;
    }
    #section2 h1,
    #section3 h1,
    #section4 h1,
    #section5 h1,
    #section6 h1 {
        font-size: 35px;
    }
    .advantage-card:nth-of-type(3) {
        margin-right: 0;
    }
    .advantage-card {
        display: flex;
        flex-direction: column;
        margin-bottom: 30px;
        width: calc((100% - 60px)/3);
    }
    .advantage-card:nth-of-type(3){
        margin-right: 0;
    }
    .advantages {
        flex-wrap: wrap;
    }
@media all and (max-width: 768px){
    .key-points{
        padding-left: 6%;
    }
    .howto-block{
        flex-wrap: wrap;
    }
    .howto-card{
        margin-bottom: 30px;
        width: calc((100% - 30px)/2);
    }
    .howto-card:nth-of-type(2n){
        margin-right: 0;
    }
    .links-col, .map-image-col{
        width: 100%;
    }
    .map-image-col{
        background-position: center;
        height: 0;
        padding-bottom: 100%;
    }
    section:not(#section1) .homepage-cards-wrap{
        flex-direction: column;
    }
    .key-points {
        flex-wrap: wrap;
        padding-left: 9%;
    }
    .single-key-point{
        width: 50% !important;
    }
    .header-navbar{
        margin: 0;
    }
}

@media all and (max-width: 767px){
    .homepage-card{
        margin-bottom: 30px;
        margin-right: 0;
        width: 100% !important;
    }
}
@media all and (max-width: 420px){
    body.home .hp-search-form{
        width: 100%;
    }
    .key-points {
        padding-left: 0;
    }
}