@import "variables";
@import "mixins";

$header-link-color-default: #fff;
$navbar-bg: transparent;
$font-family: "Fira Sans", sans-serif !default;

.link,
a {
    color: $link-color;
    &:hover {
        color: rgba($link-color, 0.5);
        text-decoration: none;
    }
}

body {
    font-family: $font-family;
    background: $container-bg;

    &.body__inner {
        background: #f8f8f8;

        .navbar {
            position: static;
        }

        @media all and (max-width: 992px) {
            .navbar .navbar-nav .navbar__item .navbar__link {
                color: #fff;

                &:hover {
                    @media all and (max-width: 992px) {
                        border: none;

                        &:hover,
                        &:active,
                        &:active:focus,
                        &:focus {
                            color: #fff;
                            background: rgba(#fff, 0.2);
                            outline: none;
                        }
                    }
                }
            }
        }
    }
}

body:not(.body__inner) {

    .container:not(.featured-companies) {
        max-width: 800px;
    }

    @media all and (max-width: 992px) {
        .navbar-collapse {
            background: #fff;

            &:before {
                border-top: 1px solid #fff;
                width: 100%;
            }
        }
    }

}

.burger-button {
    background: $burger-button-color;

    &:after,
    &:before {
        background: $burger-button-color;
    }
}

.logo {
    margin-bottom: -15px;
    @media all and (min-width: 992px) {
        margin-right: 35px !important;
        margin-bottom: -25px;
        padding-bottom: 25px;
    }

    .logo__text {
        font-weight: bold;
        font-size: 22px;
        color: #fff;

        &:hover {
            color: #fff;
        }
    }
}

.main-banner {
    height: 550px;
    background: url("../images/#{$top-banner-image}") no-repeat center;
    background-size: cover;

    &:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(128, 128, 128, 0.7);
    }

    &__wrapper {
        position: relative;
    }

    &__head {
        color: #fff;
        margin-top: 190px;

        @media all and (max-width: 767px) {
            margin-top: 140px;
        }

        h1,
        &-text {
            font-weight: 300;
            padding-bottom: 6px;
            padding-top: 14px;

            span {
                font-weight: bold;
            }
        }

        p,
        &-description {
            color: #fff;
            font-size: 24px;
        }
    }
}

.main-sections {
    padding: 83px 0 0;

    &.listing__featured {
        background-color: #fbfbfb;
        padding-bottom: 110px;
    }

    &__featured-companies {
        padding-top: 80px;
        padding-bottom: 105px;
    }

    &__jobs-by {
        padding-top: 0;
    }

    &__alert {
        padding: 80px 0 100px;
        margin-bottom: 0;
    }
}

.featured-companies {
    background: $container-bg;

    &__title {
        font-weight: 300;
        text-transform: capitalize;
        font-size: 30px;
        color: #272727;
        margin-bottom: 52px;
    }

    .bx-wrapper .bx-viewport {
        height: 250px !important;
    }

    .featured-company__panel-body {
        text-align: center;
        height: 177px;
        line-height: 177px;
    }

    .featured-company__panel-footer {
        background-color: #fff;
        padding: 0 15px;
        height: 60px;
        font-size: $font-size-large;
        border-bottom-right-radius: 6px;
        border-bottom-left-radius: 6px;
        display: table;
        width: 100%;
        position: relative;
        border: none;

        &:before {
            content: '';
            position: absolute;
            left: 15px;
            top: 0;
            width: 214px;
            border-top: 1px solid #f6f6f6;
        }
    }

    &__slider--arrows {
        height: 60px;
        width: 60px;
        border: 1px solid transparent;
        border-radius: 6px;
        display: block;
        position: absolute;
        text-align: center;
        top: 50%;
        opacity: 0.15;
        @include transition(opacity 0.3s ease-in);

        &:hover {
            opacity: 1;
        }

        .bx-next,
        .bx-prev {
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
        }
    }

    &__slider--prev {
        background: #fff url("../images/icon-slider-prev.svg") no-repeat 50% 50%;
        left: 36px;

        @media all and (max-width: 1200px) and (min-width: 1040px) {
            left: -41px;
        }

        @media all and (max-width: 680px) {
            left: 5px;
        }
    }

    &__slider--next {
        right: 45px;
        background: #fff url("../images/icon-slider-next.svg") no-repeat 50% 50%;

        @include prefix(transform, rotate(180deg), mos ms webkit o);

        @media all and (max-width: 1200px) and (min-width: 1040px) {
            right: -33px;
        }

        @media all and (max-width: 992px) {
            right: 26px;
        }

        @media all and (max-width: 680px) {
            right: 15px;
        }
    }

    .featured-company > a {
        @include prefix(box-shadow, 0 2px 16px #f4f4f4, moz o ms webkit);
    }

    .featured-company__panel {
        border-color: transparent;
    }

    &__name {
        font-size: 14px;
        color: #272727;

        span {
            width: 120px;
        }
    }

    &__jobs {
        text-align: right;
        font-weight: 700;
        color: $link-color;
        max-width: 70px;
    }
}

.middle-banner {
    height: 505px;
    background: $middle-banner-bg url("../images/#{$secondary-banner-image}") no-repeat 50% 50%;
    background-size: cover;
    padding-top: 0;
    position: relative;

    &__wrapper {
        display: table;
        width: 100%;
        height: 505px;
    }

    &:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba($link-color, 0.9);
    }

    @media all and (max-width: 767px) {
        min-height: 505px;
    }

    &__block--wrapper {
        max-width: 800px;
        margin: 0 auto;
        height: 505px;
        display: table-cell;
        vertical-align: middle;

        > div {
            text-align: left;
            width: 370px;
            border: 1px solid lighten($link-color, 28%);
            border-radius: 4px;
            padding: 23px 30px;
            position: relative;
            color: #fff;
            font-weight: 400;
            font-size: 18px;
            line-height: 22px;

            @media all and (max-width: 810px) {
                width: 350px;
            }

            @media all and (max-width: 767px) {
                width: 100%;
                text-align: center;
            }

            &:before {
                content: '';
                position: absolute;
                width: 100%;
                height: 100%;
                left: 0;
                top: 0;
                background-color: rgba(255, 255, 255, 0.07);
            }

            &:first-child {
                float: left;

                @media all and (max-width: 767px) {
                    margin: 25px 0;
                }
            }

            &:last-child {
                float: right;

                @media all and (max-width: 767px) {
                    margin: 0 0 25px;
                }
            }
        }
    }

    h3 {
        text-transform: none;
        font-weight: 300;
        margin: 0 0 25px;
    }

    .btn-post-job {
        background: #fff;
        border-radius: 30px;
        font-weight: bold;
        color: $link-color;
        font-size: 14px;
        padding: 8px 28px;
        display: inline-block;
        text-align: center;
        position: relative;
        z-index: 1;
        border-color: transparent;
        text-transform: none;

        &:hover {
            background: rgba(#fff, 0.9);
        }
    }
}


.listing {
    &__title {
        text-transform: capitalize;
        color: #272727;
        font-weight: 300;
        font-size: 34px;
        text-align: center;
        margin-bottom: 54px;
    }
}

.listing-item {
    border: none;
    @include prefix(box-shadow, 0 2px 16px #f4f4f4, moz o ms webkit);
    border-radius: 4px;
    margin-bottom: 30px;

    &__title {
        a {
            color: $link-color;
            font-weight: 400;

            strong {
                font-weight: 400;
            }

            &:hover {
                color: rgba($link-color, 0.5);
            }
        }
    }

    &__date {
        color: #272727;
        font-weight: 400;
    }

    &__info {
        font-size: 14px;
        color: #272727;

        &--item {
            padding-right: 0;

            @media all and (max-width: 767px) {
                margin-right: 25px;
            }
        }
    }

    &__info--item-company {
        &:before {
            width: 14px;
            height: 14px;
            background-size: 14px;
            top: 2px;
            background-image: url("../images/icon-company.svg");
        }
    }

    &__info--item-location {
        &:before {
            background-image: url("../images/icon-marker.svg");
            width: 10px;
            height: 14px;
            background-size: 10px 14px;
        }
    }

    &__desc {
        color: $color-content;
    }

    &__employment-type {
        display: block;
        color: $link-color;

        @media all and (min-width: 767px) {
            text-align: left;
        }
    }
}

.complex-block {
    .listing-item__info--item:before {
        opacity: 0.3;
    }

    .listing-item__info--item-date:before {
        background-image: url("../images/icon-calendar-dark.svg");
        background-size: contain;
        width: 12px;
        height: 12px;
    }

    .listing-item__info--item-company:before {
        background-image: url("../images/icon-company-dark.svg");
    }

    .listing-item__info--item-education:before {
        background-image: url("../images/icon-education-dark.svg");
        background-size: 100%;
        width: 23px;
        height: 19px;
        margin-top: -10px;
    }
}

.view-all {
    background: transparent;
    padding: 50px 0 100px;

    &__btn {
        min-width: 155px;
        padding: 0 15px;
        height: 40px;
        line-height: 40px;
        border: 1px solid #f0f0f0;
        border-radius: 20px;
        color: #c1c1c1;
        font-size: 16px;

        @include transition(all 0.2s ease-in);

        &:hover:not(disabled) {
            background-color: rgba($link-color, 0.1);
            border: 1px solid $link-color;
            color: $link-color;
        }
    }
}

.subscribe {
    &__description {
        @media all and (max-width: 767px) {
            margin-bottom: 25px;
        }

        .subscribe__title,
        h3 {
            text-transform: none;
            font-weight: 300;
            font-size: 24px;
            margin-bottom: 38px;
        }

        > div {
            color: rgba(#272727, 0.5);
            font-weight: 300;
            font-size: 16px;

            &:first-of-type {
                padding: 0 20px 10px 0;
                margin-bottom: 8px;
                color: $link-color;
                font-size: 18px;
                font-weight: bold;
            }
        }
    }
}


.alert {
    &__form {
        border-radius: 4px;
        border: none;
        @include prefix(box-shadow, 0 2px 16px #f4f4f4, moz ms webkit);
    }

    select.form-control {
        outline: none;

        @media all and (max-width: 767px) {
            -webkit-appearance:none;
        }

        &:focus {
            color: #272727;
        }
    }

    .btn:focus,
    .btn {
        background: $link-color;
        border-color: $link-color;
        border-radius: 20px;
        width: 100%;

        &:hover {
            background: $link-color-hovered;
        }
    }
}

.footer {
    background-color: $footer-bg;
    padding: 56px 0 46px;

    .container {
        > div:last-child {
            margin: 55px 0 0;
            padding-top: 19px;
            border-top: 1px solid rgba(#fff, 0.07);
            font-size: 14px;
            color: rgba(#fff, 0.2);
        }
    }

    ul {
        li {
            font-weight: bold;
            font-size: 16px;
            margin-bottom: 15px;
        }

        a {
            font-weight: 400;
            color: rgba(#fff, 0.3);
            &:hover {
                color: #fff;
            }
        }
    }

    a {
        color: rgba(#fff, 0.3);
        &:hover {
            color: #fff;
        }
    }
}

.search-header {
    height: 185px;
    background: url("../images/#{$top-banner-image}") no-repeat 0 -165px;
    background-size: cover;
    position: relative;
    opacity: 0.7;

    @media all and (max-width: 767px) {
        background-position: 0 0;
    }

    &:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(128, 128, 128, 0.7);
    }
}

.body__inner {
    .navbar {
        background-color: $navbar-black;
    }

    .featured-companies {
        background: transparent;
    }

    .container {
        max-width: 1067px;
    }
}

.create-job-alert.btn__blue {
    border-radius: 30px;
}

.search-results {
    &__title {
        text-transform: none;
        font-weight: 400;
    }

    .listing-item__featured {
        @include prefix(box-shadow, 0 2px 14px 0 rgba(0, 0, 0, 0.08), moz ms o webkit);
        &:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 6px;
            height: 100%;
            background: rgba($link-color, 0.5);
        }
    }

    &.featured-companies {
        padding: 0;

        .featured-company__panel-footer:before {
            width: 264px;
        }

        .featured-companies__name span {
            width: 160px;
        }
    }
}

.refine-search {
    .btn__refine-search {
        color: $refine-search-closed;

        &:hover {
            color: $refine-search-hover;

            &:before {
                border-color: transparent transparent transparent $refine-search-hover;
            }
        }

        &:before {
            border-width: $refine-search-chevron-closed 0 $refine-search-chevron-closed $refine-search-chevron-closed;
            border-color: transparent transparent transparent #9f9b9b;
        }

        &__radius {
            color: $refine-search-collapsed;
        }
    }

    .btn__refine-search[aria-expanded="true"] {
        color: #272727;

        &:hover {
            color: $refine-search-hover;

            &:before {
                border-color: transparent transparent $refine-search-hover transparent;
            }
        }

        &:before {
            border-width: 0 0 $refine-search-chevron-collapsed $refine-search-chevron-collapsed;
            border-color: transparent transparent $refine-search-opened transparent;
        }
    }

    &__item {
        color: #363636;
        &:hover {
            color: $refine-search-hover;
        }
    }

    &__count {
        color: $link-color;
    }

    .badge {
        background-color: $link-color;
    }

    .dropdown-toggle {
        &:focus {
            color: $refine-search-hover;
        }
    }

    &__wrapper {
        @media all and (max-width: 767px) {
            border-bottom-left-radius: 30px;
            border-bottom-right-radius: 30px;
        }
    }
}

.less-more {
    &__btn {
        color: $link-color;
        font-weight: 500;
        @include transition(all 0.2s ease-in);

        &:focus,
        &:hover {
            color: $refine-search-hover;
        }
    }
}

.details-header {
    padding: 25px 0 64px;
    background: $theme_button_color_2;

    &__title {
        font-weight: 300;
    }

    .listing-item__info--item-date:before {
        background-size: 14px 12px;
        width: 15px;
        height: 12px;
        top: 1px;
    }

    .listing-item__info--item-website {
        &:before {
            display: none;
        }

        &:hover {
            a {
                color: rgba(#fff, 0.9);
            }

            path {
                fill: rgba(#fff, 0.9);
            }
        }

        svg {
            width: 12px;
            height: 12px;
            position: relative;
            top: 1px;
            margin-right: 2px;
        }

        path {
            fill: rgba(#fff, 0.6);
        }

        a {
            color: rgba(#fff, 0.6);
        }
    }
}

.btn__back {
    font-weight: 700;
    padding: 0 20px;
    border-radius: 20px;
}

.details-body {
    &__content {
        .complex-block .listing-item__info,
        &.content-text {
            color: $color-content;
        }
    }

    .listing-item__desc {
        color: $color-content;
        height: 48px;
    }
}

.details-footer {
    .details-footer__btn-apply {
        border-radius: 30px;
        min-width: 200px;

        &:active:focus,
        &:focus,
        &:hover {
            background: $link-color-hovered;
        }
    }
}

.profile {
    .btn__profile {
        border-radius: 20px;
        font-weight: 700;
    }

    &__info-list__item a {
        color: $link-color;

        &:hover {
            color: rgba($link-color, 0.5);
            text-decoration: none;
        }
    }
}

.static-pages,
.context-text {
    color: $color-content;
}

.static-pages {
    color: $color-content;
    a {
        color: $link-color;
        &:hover {
            color: rgba($link-color, 0.5);
        }
    }
}

.job-type {
    &__value {
        border: 2px solid rgba(#fff, 0.4);
    }
}

.btn__white {
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    text-transform: none;
}

.btn__orange,
.btn__blue {
    background: $link-color;
    border: 1px solid $link-color;
    font-weight: bold;
    border-radius: 20px;
    font-size: 16px;
    text-transform: none;

    &:hover,
    &:active:focus,
    &:focus {
        background: $link-color-hovered;
        border: 1px solid $link-color;
    }
}

.btn__apply-discount {
    bottom: 1px;
    right: 1px;
}

.product-item {
    &__price {
        color: $theme_button_color_2;
    }
}


.form {
    .form-label {
        color: $color-content;

        &.form-label__error {
            color: #ff2e2e;
        }
    }

    .ui-multiselect {
        border: 1px solid #f0f0f0;
        color: #272727;
        border-radius: 20px;
        background: #fff;
        font-weight: 400;
    }
    .form-group .title__secondary {
        text-transform: none;
        font-weight: 300;
    }
}

.form-control {
    padding-left: 19px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    color: #272727;
    background: #fff;
    text-align: left;
    height: 40px;

    &[type="file"] {
        min-height: 40px;
        height: auto;
    }

    &[type="checkbox"] {
        height: auto;
    }

    @include placeholder {
        text-align: left;
        color: #c1c1c1;
    }
}

.my-account-title {
    text-transform: none;
    font-weight: 300;
}

.title {
    &__primary {
        text-transform: none;
        font-weight: 300;
    }

    &__bordered {
        border-bottom: none;
        font-size: 30px;
        margin-top: 45px;
    }

    &__pricing {
        margin-top: 45px;
        margin-bottom: 45px;
        font-size: 30px;
    }
}

.checkout-message,
.form__modal {
    .title__bordered {
        border-bottom: 1px solid rgba(216, 216, 216, 0.7);
    }
}

#login-form .form-group.text-center {
    label {
        display: inline;
    }

    input[type=checkbox] {
        position: relative;
        top: 2px;
    }
}

.checkout-message {
    &__payment-instructions {
        margin-top: 45px;
    }
}
