/* Section Title */
.section-title {
    font-size: 1.1429em;
    line-height: 1.4;
    font-weight: $font-weight-bold;
    color: $color-widget-title;
    text-transform: uppercase;
    margin-bottom: 1.25em;
    letter-spacing: normal;
}

/* Section Featured */
section,
.vc_row,
.vc_column_container {
    &.section {
        background: if-light(#f4f4f4, $color-dark-2);
        border-top: if-light(5px solid #f1f1f1, 5px solid $color-dark-3);
        margin: 30px 0;
        padding: 50px 0;

        &.section-center {
            text-align: center;
        }

        &.section-text-light {
            color: #fff;
            h1, h2, h3, h4, h5, h6 {
                color: #FFF;
            }

            p {
                color: darken(#FFF, 10%);
            }
        }

        &.section-text-dark {
            color: $color-dark;
            h1, h2, h3, h4, h5, h6 {
                color: $color-dark;
            }

            p {
                color: lighten($color-dark, 10%);
            }
        }

        &.section-background {
            background-repeat: repeat;
            border: 0;
        }

        &.section-overlay {
            position: relative;
            &:before {
                content: "";
                display: block;
                background: url("../images/video-overlay.png") repeat scroll 0 0 transparent;
                bottom: 0;
                height: 100%;
                left: 0;
                position: absolute;
                right: 0;
                top: 0;
                width: 100%;
            }
        }

        &.section-video {
            background: none !important;
            border: 0;
        }

        &.section-parallax {
            background-color: transparent;
            border: 0;
        }

        &.section-with-divider {
            margin: 56px 0 35px;
            .section-divider {
                margin: -56px 0 44px;
            }
        }

        &.section-with-divider-footer {
            margin: 35px 0 56px;
            .section-divider {
                margin: 44px 0 -56px;
            }
        }

        &.section-footer {
            margin-bottom: -50px;
        }

        .porto-section:last-child {
            > div > *:last-child {
                margin-bottom: 0;
            }
        }

        &.section-no-borders {
            border-width: 0;
        }
    }
}

.vc_row,
.vc_column_container {
    &.section {
        &.section-with-divider {
            .section-divider {
                position: absolute;
                #{left}: 0;
                width: 100%;
                top: 50px;
            }
        }

        &.section-with-divider-footer {
            .section-divider {
                position: absolute;
                #{left}: 0;
                width: 100%;
                bottom: 55px;
            }
        }
    }
}

.vc_row {
    &.section {
        &,
        &.section-with-divider,
        &.section-with-divider-footer {
            margin-left: -($grid-gutter-width / 2);
            margin-right: -($grid-gutter-width / 2);
        }
    }
}

.vc_column_container.section {
    margin: 0;
    padding: 50px 20px;
}

.vc_row.section > .vc_column_container,
.vc_row.section > .porto-container > .vc_row > .vc_column_container,
.vc_column_container.section {
    .wpb_wrapper {
        > div:last-child {
            margin-bottom: 0;
        }
    }
}

.col-half-section {
    width: 100%;
    min-height: 1px;
    padding-left: ($grid-gutter-width / 2);
    padding-right: ($grid-gutter-width / 2);
    position: relative;
    max-width: ($container-large-desktop / 2) - $grid-gutter-width;
    float: left;
    margin-#{$left}: 0;
    margin-#{$right}: 0;
    &.col-half-section-right {
        float: $right;
    }
}

@media #{$screen-large} {
    .col-half-section {
        max-width: (960px / 2) - $grid-gutter-width;
    }
}

@media #{$screen-normal} {
    .col-half-section {
        max-width: 100%;
        float: none !important;
        margin: 0 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
