/*---------------------
  Hero
-----------------------*/
.hero {
    padding-top: 50px;
}

.hero__items {
    padding: 250px 0 42px 50px;
    border-radius: 5px;
}

.hero__text {
    position: relative;
    z-index: 9;

    .label {
        font-size: 13px;
        color: $primary-color;
        background: $white-color;
        padding: 5px 14px 3px;
        display: inline-block;
        position: relative;
        top: -100px;
        opacity: 0;
        @include transition(all, .2s);
    }

    h2 {
        color: $white-color;
        font-size: 42px;
        font-family: 'Oswald', sans-serif;
        font-weight: 700;
        line-height: 52px;
        margin-top: 35px;
        margin-bottom: 8px;
        position: relative;
        top: -100px;
        opacity: 0;
        @include transition(all, .4s);
    }

    p {
        color: $white-color;
        font-size: 16px;
        margin-bottom: 40px;
        position: relative;
        top: -100px;
        opacity: 0;
        @include transition(all, .6s);
    }

    a {
        position: relative;
        top: -100px;
        opacity: 0;
        @include transition(all, .8s);

        span {
            font-size: 13px;
            color: $white-color;
            background: $primary-color;
            display: inline-block;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding: 14px 20px;
            border-radius: 4px 0 0 4px;
            margin-right: 1px;
        }
        
        i {
            font-size: 20px;
            display: inline-block;
            background: $primary-color;
            padding: 11px 5px 16px 8px;
            color: $white-color;
            border-radius: 0 4px 4px 0;
        }
    }
}

.hero__slider {

    &.owl-carousel {

        .owl-item {

            &.active {

                .hero__text {

                    .label {
                        top: 0;
                        opacity: 1;
                    }

                    h2 {
                        top: 0;
                        opacity: 1;
                    }

                    p {
                        top: 0;
                        opacity: 1;
                    }

                    a {
                        top: 0;
                        opacity: 1;
                    }
                }
            }
        }

        .owl-dots {
            position: absolute;
            left: 0;
            bottom: 10px;
            width: 100%;
            text-align: center;

            button {
                height: 8px;
                width: 8px;
                background: #b7b7b7;
                border-radius: 50%;
                margin-right: 10px;

                &.active {
                    background: #ffffff;
                }

                &:last-child {
                    margin-right: 0;
                }
            }
        }
        
        .owl-nav {

            button {
                font-size: 36px;
                height: 66px;
                width: 66px;
                background: #0b0c2a;
                line-height: 66px;
                text-align: center;
                color: $white-color;
                -webkit-transform: rotate(45deg);
                transform: rotate(45deg);
                position: relative;
                z-index: 1;
                position: absolute;
                left: -33px;
                top: 50%;
                margin-top: -47px;

                &.owl-next {
                    left: auto;
                    right: -33px;
                }

                &:after {
                    position: absolute;
                    top: 6px;
                    left: 0;
                    right: 0;
                    height: 54px;
                    width: 54px;
                    background: rgba(255, 255, 255, 0.1);
                    content: "";
                    z-index: -1;
                    margin: 0 auto;
                }

                span {
                    -webkit-transform: rotate(-45deg);
                    transform: rotate(-45deg);
                    display: block;
                    z-index: 1;
                }
            }
        }
    }
}