@import "_mixins";

.inner-banner {
    background: #fff url("../images/community-banner.jpg");
}

.community-top{
    text-align: center;
    padding: 80px 0;
    p {
        @include avenir-light;
        font-size: 24px;
        line-height: 36px;
        color:  $black;
        margin: 0;
    }
}

.insight-section {
    position: relative;
    .row {
        padding: 0 15px;
    }
    .col-md-6 {
        padding: 0;
    }
    figure {
        min-height: 100%;
        overflow: hidden;
        margin: 0;
        img {
            width: 100%;
        }
    }
    article{
        padding: 80px 60px 80px 90px;
        background: #f2f2f2;
        min-height: 100%;
        h3{
            @include avenir-light;
            font-size: 32px;
            color: $red;
            text-transform: uppercase;
            margin-bottom: 28px;
        }
        p{
            @include avenir-roman;
            font-size: 18px;
            color: $black;
            line-height: 32px;
            margin: 0 0 25px;
            a {
                color: $red;
            }
            &:last-child {
                margin: 0;
            }
        }
    }
    &.community-section-a {
        position: relative;
        padding: 75px 0;
        figure {
            height: 689px;
        }
        &:before {
            content: '';
            display: block;
            width: 50%;
            height: 100%;
            background: none;
            position: absolute;
            top: 0;
            right: 0;
        }
    }
    &.community-section-b {
        article {
            background: #edeadf;
            padding-right: 50px;
            padding-bottom: 75px;
            p {
                padding-right: 60px;
            }
        }
    }
}

.community-section-c {
    text-align: center;
    padding: 75px 0 0;
    position: relative;
    figure {
        margin: 0;
        img {
            max-width: 100%;
        }
    }
    article {
        padding: 80px;
        background: #f1f1f1;
        h3 {
            @include avenir-light;
            font-size: 32px;
            color: $red;
            text-transform: uppercase;
            margin-bottom: 30px;
        }
        p {
            @include avenir-roman;
            font-size: 18px;
            line-height: 32px;
            color: $black;
            margin-bottom: 48px;
            a {
                color: $red;
            }
            &:last-child {
                margin: 0;
            }
        }
    }
    &:before {
        content: '';
        display: block;
        width: 50%;
        height: 100%;
        background: none;
        position: absolute;
        top: 0;
        right: 0;
    }
}

.fancy-bg {
    min-height: 115px;
    background: #fff;
}

.bottom-blocks-wrap {
    .block {
        padding: 40px 0;
        background: #f1f1f1;
        min-height: 100%;
        &.alt {
            background: #edeadf;
        }
    }
    .col-md-6 {
        padding: 0;
    }
    .col-5 {
        text-align: right;
    }
    h6 {
        color: $red;
        text-transform: uppercase;
        @include avenir-light;
        font-size: 28px;
        margin: 5px 0 28px 35px;
    }
    .read-more {
        font-size: 18px;
        @include avenir-medium;
        text-transform: uppercase;
        color: $red;
        margin-left: 35px;
        &:before {
            content: '\f105';
            font-family: FontAwesome;
            display: inline-block;
            width: 44px;
            height: 44px;
            border: 1px solid $red;
            border-radius: 50%;
            text-align: center;
            line-height: 40px;
            color: #000;
            vertical-align: middle;
            margin-right: 30px;
            -webkit-transition: all 0.5s;
            -moz-transition: all 0.5s;
            -ms-transition: all 0.5s;
            -o-transition: all 0.5s;
            transition: all 0.5s;
        }
        &:hover:before {
            background: $red;
            color: #fff;
        }
    }
}

// RESPONSIVE

@media screen and (min-width: 1024px) and (max-width: 1441px) {

    .insight-section article {
        padding-left: 60px;
    }
    .insight-section article h3 {
        font-size: 22px;
    }
    .insight-section article p {
        font-size: 14px;
        line-height: 26px;
    }

    .insight-section.community-section-b article {
        padding-right: 0;
    }

    .community-section-c article h3 {
        font-size: 28px;
    }
    .community-section-c article p {
        font-size: 14px;
        line-height: 26px;
        margin: 0 0 25px;
    }

    .bottom-blocks-wrap h6 {
        margin-left: 0;
        font-size: 20px;
    }
    .bottom-blocks-wrap img {
        width: 100px;
    }
    .bottom-blocks-wrap .read-more {
        margin: 0;
        font-size: 14px;
    }

}

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

    .flex-first,
    .flex-last {
        order: 0;
    }

    .community-top {
        padding: 40px 0;
        p {
            font-size: 12px;
            line-height: 20px;
            br {
                display: none;
            }
        }
    }

    .insight-section {
        figure {
            img {
                max-width: 100%;
                height: auto;
            }
        }
        article {
            padding: 30px !important;
            h3 {
                font-size: 22px;
                margin: 0 0 20px;
            }
            p {
                font-size: 12px;
                line-height: 20px;
                margin: 0 0 20px;
                padding: 0 !important;
            }
        }
        &.community-section-a {
            padding: 45px 0;
            figure {
                height: auto;
            }
        }
    }

    .community-section-c {
        padding: 45px 0 0;
        article {
            padding: 30px;
            h3 {
                font-size: 22px;
                margin: 0 0 20px;
            }
            p {
                font-size: 12px;
                line-height: 20px;
                margin: 0 0 20px;
                padding: 0 !important;
            }
        }
    }

}
