// Header
header {
    position: relative;
    z-index: 1;

    @media (max-width: 930px) {
        height: 112px;
    }
    @include mqx(m) {
        height: auto;
    }
    .top-nav{
        background-color: $accentColor;
        color: #fff;
        padding: 15px 0;

        @include mqx(m){
            display: none;
        }
        a{
            color: #fff;
            font-size: 14px;

            &:hover,
            &:focus{
                color: $orange;
            }
        }
        .search-social {
            position: relative;

            @include mqx(m) {
                display: none;
            }

            @media (max-width: 930px) {
                .search{
                    display: none;
                }
            }
        }
        .social{
            border-left: 1px solid #444444;
            direction: rtl;

            @media (max-width: 930px) {
                border-left: 0;
            }
        }
        .call-us{
            font-weight: bold;
            font-size: 14px;
            border-right: 1px solid #444444;

            @media (max-width: 930px) {
                border-right: 0;
            }
        }
        .university{
            a{
                font-size: 14px;
                font-weight: bold;
                color: $orange;

                &:hover, &:focus{
                    color: lighten($orange,15%)
                }
            }

        }
        .calender{
            font-weight: bold;
            font-size: 14px;
            border-right: 1px solid #444444;

            @media (max-width: 930px) {
                display: none;
            }
        }
    }
    .navbar {
        border: none;
        margin-bottom: 0;
        position: relative;
        background: #fff;

        @include mqx(m){
            background: #f3f3f3;

            &:after{
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 50px;
                z-index: 0;
                background: $accentColor;
            }
        }

        //border-bottom: 1px solid #f1f1f1;
        @include mqx(m){
            //background: $accentColor;
        }
        .nav-con {
            @include cfx();
        }
        .navbar-header {
            float: none;
            position: relative;
            @include mqx(t){
                width: 100%;
            }

            .search{
                position: absolute;
                right: 0;
                margin: 9px 0;
                font-weight: bold;
                font-size: 14px;
                z-index: 1;

                @media (min-width: 930px) {
                    display: none;
                }
                .search-form {
                    position: relative;
                    top: 7px;

                    @include mqx(m){
                        top: -4px;
                    }
                    &.opened {
                        input[type=search] {
                            width: 60px;
                            background-color: #fff;

                            -webkit-box-shadow: 0 0 5px rgba(109, 207, 246, .5);
                            -moz-box-shadow: 0 0 5px rgba(109, 207, 246, .5);
                            box-shadow: 0 0 5px rgba(109, 207, 246, .5);

                            padding-right: 20px;
                            color: #000;
                            cursor: auto;
                        }
                        button {
                            color: $primaryColor;
                        }
                    }
                    button {
                        position: absolute;
                        right: 1px;
                        top: 5px;
                        background: transparent;
                        border: 0;
                        z-index: 1;
                        font-size: 13px;
                        color: $primaryColor;
                        outline: 0;
                    }
                    input[type=search] {
                        -webkit-appearance: textfield;
                        -webkit-box-sizing: content-box;
                        font-family: inherit;

                        background: #fff;
                        padding: 4px;
                        border-radius: 10em;
                        transition: all .5s;
                        height: 20px;
                        width: 20px;
                        color: transparent;
                        cursor: pointer;

                        &:focus {
                            width: 60px;
                            background-color: #fff;
                            box-shadow: 0 0 5px rgba(109, 207, 246, .5);
                            padding-right: 20px;
                            color: #000;
                            cursor: auto;
                        }
                        &:focus + button {
                            color: $primaryColor;
                        }
                        &:hover {
                            background-color: #fff;
                        }
                    }
                    input::-webkit-search-decoration,
                    input::-webkit-search-cancel-button {
                        display: none;
                    }
                    input:-moz-placeholder {
                        color: #999;
                    }
                    input::-webkit-input-placeholder {
                        color: #999;
                    }
                    input::-webkit-input-placeholder {
                        color: transparent;
                    }
                    input:-moz-placeholder {
                        color: transparent;
                    }
                }

            }
            .navbar-brand {
                padding: 5px;
                height: auto;
                margin-left: 0;
                position: absolute;
                left: 50%;
                top: 0;
                transform: translate(-50%,0);
                z-index: 1;

                @media (max-width: 930px) {
                    top: 0;
                }
                @media (max-width: 580px) {
                    top: 0;
                    padding: 0;

                    img{
                        max-width: 200px;
                    }
                }
                img {
                    height: auto;
                    max-height: 85px;
                    
                    @media (max-width: 980px) {
                        //max-width: 70px;
                    }

                    @media (max-width: 930px) {
                        max-width: 250px;
                    }
                }
            }
        }
        .main-nav{
            margin-bottom: 0;
            float: none;
            text-align: left;

            @include mqx(m){
                margin-top: 50px;
            }
            @media (max-width: 930px) {
                text-align: left;
            }
            li {
                float: none;
                display: inline-block;
                padding: 12px 0;
                margin-right: 40px;

                @media (max-width: 930px) {
                    display: block;
                    
                    &.pull-right{
                        float: none !important;
                    }
                }
                &.no-margin{
                    @include mqn(t){
                        margin-right: 0;
                    }
                }
                //@include mqn(t){
                //    margin-right: 10px;
                //}
                //@media (min-width: 1130px) {
                //    margin-right: 40px;
                //}
                &.active{
                    border-bottom: 4px solid $primaryColor;

                    a{
                        background: transparent;
                        color: lighten($primaryColor,15%);

                        &:focus,
                        &:hover {
                            background: transparent;
                        }
                    }
                }
                a{
                    padding: 10px 1px;
                    font: 700 16px/1 $primaryFont;
                    //color: $darkColor;
                    @include trans(.2s);
                    font-size: 16px;
                    color: $primaryColor;

                    //@media (max-width: 1130px) {
                    //    font-size: 14px;
                    //}
                    @media (max-width: 930px) {
                        font-size: 16px;
                    }
                    &:focus,
                    &:hover {
                        background: transparent;
                        //color: darken($darkColor, 30%);
                    }
                }
            }
            li.active{

            }
        }
        li.dropdown,
        li.open{
            a{
                &:focus,
                &:hover {
                    background: transparent !important;
                }
            }
            .dropdown-menu{
                li > a{
                    padding: 3px 15px;
                }
            }
        }
        .navbar-toggle{
            position: absolute;
            margin: 25px 0;
            border: none;
            padding: 0;
            transition: .2s margin-top ease-in-out;
            z-index: 1;

            @include mqx(m){
                margin: 13px 0;
            }
            &:hover,
            &:focus{
                background: none;
            }
            &[aria-expanded=true],
            &.active {
                .icon-bar {
                    &:nth-of-type(2) {
                        transform: translateY(8px) rotate(45deg);
                    }
                    &:nth-of-type(3) {
                        opacity: 0;
                    }
                    &:nth-of-type(4) {
                        transform: translateY(-8px) rotate(-45deg);
                    }
                }
            }
            .icon-bar {
                //background: $accentColor;
                width: 25px;
                height: 3px;
                @include trans(.2s);

                @include mqx(m){
                    background: #fff;
                }
                + .icon-bar {
                    margin-top: 5px;
                }
            }
        }
        .navbar-collapse{
            @include mqn(t){
                padding: 0;
            }
        }
    }
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form{
    border-color: #cccccc;
    border: none;
}

.slick-dotted.slick-slider{
    margin-bottom: 0;
}
.main-slider{
    overflow: hidden;

    .slide-item{
        position: relative;

        &:after {
            content: "";
            position: absolute;
            z-index: 1;
            left: 0;
            right: 0;
            bottom: 0;
            height: 100%;
            transition: opacity 0.2s;
            background-color: rgba(1, 24,42,.4);
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }
    }
    .content{
        position: relative;
        height: 600px;
    }
    .slider-content{
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 25px;
        transform: translate(0, -50%);
        text-align: left;
        max-width: 600px;

        h2 {
            color: #fff;
            font: bold 50px/64px $primaryFont;

            @media (max-width: 767px) {
                font-size: 40px;
            }
        }
        p{
            font: 20px/1.6 $primaryFont;
            color: #fff;
        }
        .date {
            color: #fff;
        }
    }
    .slick-arrow{
        z-index: 2;

        i{
            color: #fff;
            font-size: 30px;
        }
    }
    .slick-arrow{
        z-index: 1;

        &:before{
            content: none !important;
        }
        &.slick-prev{
            right: 15px;
            left: initial;
        }
        &.slick-next{
            right: initial;
            left: 15px;
        }
    }
}
.slick-dots{
    bottom: 20px;
}
.slick-dots li button{
    background: #fff;
}
.slick-dots li.slick-active button{
    background: $orange;
}
.jr-title{
    @include cfx;

    h3{
        font: bold 27px/1.4 $primaryFont;
        color: $primaryColor;

        span{
            color: $orange;
        }
    }
}
.category-type {
    padding: 0 6px;
    font-size: 12px;
    line-height: 1.9em;
    color: #fff;
    font-weight: 600;

    &.type-news {
        background: $orange;
    }
    &.type-article {
        background: $primaryColor;
    }
}
.jr-m-post {
    position: relative;
    display: block;

    &:after {
        content: "";
        position: absolute;
        z-index: 1;
        left: 0;
        right: 0;
        bottom: 0;
        height: 65%;
        transition: opacity 0.2s;
        background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.75));
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    .post-img {
        max-height: 240px;
        min-height: 200px;
        height: 25vw;

        @include mqn(t) {
            max-height: 215px;
            min-height: 150px;
            height: 25vw;
        }
    }
    .post-content {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 20px;
        z-index: 2;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        background:linear-gradient(to top,#000000,10%,#fffefe00);

        .date {
            color: #fff;
            font-weight: 600;

            @include mqx(t){
                font-size: 13px;
            }
            &.views{
                img{
                    position: relative;
                    top: -2px;
                }
            }
        }
        .post-title {
            font-size: 16px;
            font-weight: bold;
            color: #fff;
            line-height: 1.5em;

            @media screen and (max-width: 1150px) and (min-width: 1024px) {
                @include multiLineEllipsis(1.5em,4);
            }
            @include mqx(t) {
                font-size: 16px;
                margin-bottom: 0;
            }
            @media screen and (max-width: 450px) and (min-width: 385px) {
                @include multiLineEllipsis(1.5em,4);
            }
            a {
                color: #fff;
            }
        }
    }
    &.post-big {
        margin-right: 1px;
        margin-bottom: 1px;

        .post-img {
            max-height: 481px;
            min-height: 450px;
            height: 50vw;

            @include mqn(t) {
                max-height: 431px;
                min-height: 450px;
            }
            @media (max-width: 320px) {
                min-height: 200px;
            }
        }
        .post-content {
            .post-title {
                font-size: 24px;
                line-height: 1.4em;

                @include mqx(t) {
                    font-size: 16px;
                }
            }
        }
    }
    &.post-small {

        .post-content {
            .post-title {
                font-size: 20px;
                line-height: 1.4em;
            }
        }

        @media (max-width: 767px){
            width: 50%;
            float: left;

            .post-content {
                .post-title {
                    font-size: 16px;
                }
            }
        }
        @media (max-width: 385px) {
            width: 100%;
            float: none;
        }
    }
}

.post-item {
    .post-thumb {
        position: relative;

        a {
            display: block;

            .post-image {
                height: 300px;
            }
        }
    }
    .post-content {
        .date{
            color: #9B9B9B;
            font-size: 14px;
            font-weight: 600;
        }
        .meta-data {
            @include mqx(t) {
                margin-top: 10px;
            }
        }
        .post-title {
            font-size: 22px;
            font-weight: bold;
            line-height: 1.4em;
            color: $primaryColor;

            a {
                color: $textColor;
            }
        }
        .post-desc {
            color: #7F7F7F;
            font-size: 14px;
            line-height: 1.8em;
        }
    }
    &.post-small {
        padding-bottom: 0;
        border-bottom: none;
        min-height: 148px;

        .img-item,
        .video-item{
            &:before{
                right: 9px;
                top: 3px;
                font-size: 15px;
            }
        }
        .post-thumb {
            a {
                .post-image {
                    height: 148px;
                }
            }
        }
        .post-content {
            .meta-data {
                @include mqx(t) {
                    margin-top: 0;
                }
            }
            .post-title {
                font-size: 16px;
                line-height: 1.6em;
            }
        }
    }
    &.post-xsmall {
        padding-bottom: 0;
        border-bottom: none;
        min-height: 110px;

        .img-item,
        .video-item{
            &:before{
                right: 9px;
                top: 3px;
                font-size: 15px;
            }
        }
        .post-thumb {
            a {
                .post-image {
                    height: 110px;
                }
            }
        }
        .post-content {
            .meta-data {
                @include mqx(t) {
                    margin-top: 0;
                }
            }
            .post-title {
                font-size: 16px;
                line-height: 1.6em;
            }
        }
    }
    &.post-default{
        .post-thumb {
            a {
                .post-image {
                    height: 200px;
                }
            }
        }
        .post-content {
            .post-title {
                font-size: 27px;
            }
            .post-desc {
                font-size: 16px;
            }
        }
    }
}
.tab-container{
    .nav-tabs{
        border-bottom: 0;
        border-bottom: 1px solid #f1f1f1;

        > li.active > a,
        > li.active > a:hover,
        > li.active > a:focus{
            color: $orange;
            border-bottom: 2px solid $orange;
        }
        > li.active > a{
            border-bottom: 2px solid $orange;
        }
        li{
            font-size: 24px;
            font-weight: bold;

            a{
                padding: 10px 20px;
                background-color: transparent;
                border: none;
                border-bottom: 2px solid transparent;

                &:hover,
                &:focus{
                    border: none;
                    background: transparent;
                    color: $orange;
                }
            }
        }
    }
}
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
    .col-sm-9-jr {
        .col-sm-4,
        .col-sm-8 {
            width: 100%;
        }
    }
}
.footer-content{
    background: bottom repeat-x url("../img/footer.png");
    background-color: #040041;
}
footer{
    @media (max-width: 1200px) {
        .container {
            width: 100%;
        }
    }
    .logo-footer{
        img{
            max-height: 55px;
        }
    }
    p{
        color: #939393;
        font-size: 14px;
        line-height: 1.6;
    }

    .quick-links {
        h3 {
            font-weight: bold;
            font-size: 18px;
            color: #fff;
        }
        li {
            margin: 10px 0;

            a {
                color: #939393;
                font-size: 14px;

                &:hover {
                    color: #fff;
                }
            }
        }
    }
    .footer-social {
        li {
            display: inline-block;
            margin: 0 0 0 15px;
        }
    }
}

.copyright {
    background-color: #03002A;

    h4 {
        padding: 13px 0;
        color: #9B9B9B;
        font-size: 14px;
        text-align: left;
    }
}


.widget{
    &.survey{
        padding: 15px;
        background: $primaryColor;

        .widget-title{
            border-bottom: 1px solid #FFFFFF;

            h3{
                color: #fff;
            }
        }
    }
    .widget-title{
        border-bottom: 1px solid #E7E7E7;

        h3{
            font: 700 18px/27px $primaryFont;
            color: $primaryColor;

            i{
                color: $orange;
            }
        }
    }
    .widget-content{
        .links{
            li{
                a{
                    font: 700 16px/1.6 $primaryFont;
                    color: $primaryColor;

                    &:hover, &:focus {
                        color: $orange;
                    }
                }
            }
        }
    }
}
.gallery-arrows{
    .gallery-arrow{
        background: transparent;
        border: none;
        outline: 0;
        color: $primaryColor;
        font-size: 14px;

        &:hover, &:focus{
            color: $orange;
        }
    }
}
.article{
    .post-footer{
        color: #9B9B9B;

        svg{
            #Homepage{
                stroke: #9B9B9B;
            }
        }
    }
    .article-content{
        img{
            margin: 0 0 10px;
        }
    }
}
.share{
    padding: 15px 0;
    border-top: 1px solid #E7E7E7;
    border-bottom: 1px solid #E7E7E7;

    span{
        font-weight: 800;
    }
    .social-share{
        a{
            font-size: 12px;
            margin: 0 5px;
            background: #ccc;
            line-height: 35px;
            border-radius: 50%;
            width: 35px;
            color: #fff;

            &.facebook{
                background: #3B5998;
            }
            &.twitter{
                background: #00B6F1;
            }
            &.linkedin{
                background: #007BB6;
            }
            &.instagram{
                background: #EA478B;
            }
            &.telegram{
                background: #48A9E3;
            }
            i{

            }
        }
    }
}
.hero-image{
    height: 300px;
    background-attachment: fixed;
}
.about-content{
    padding: 0 30px;
    min-height: 400px;
}
.contact-us{
    .form-group{
        label{
            font-size: 18px;
            color: $primaryColor;
            margin-bottom: 8px;
        }
        input,
        textarea{
            background: #F0F0F0;
            padding: 10px 15px;
            border: none;
            border-radius: 0;
            height: 38px;
            box-shadow: none;
        }
        textarea{
            height: 190px;
            resize: none;
        }
    }
}
.contact-info{
    li{
        margin: 8px 0;
    }
}
#map{height: 400px;}



.search-form{
    position: relative;

    &.opened{
        input[type=search]{
            width: 130px;
            background-color: #fff;

            -webkit-box-shadow: 0 0 5px rgba(109, 207, 246, .5);
            -moz-box-shadow: 0 0 5px rgba(109, 207, 246, .5);
            box-shadow: 0 0 5px rgba(109, 207, 246, .5);

            padding-right: 20px;
            color: #000;
            cursor: auto;
        }
        button {
            color: $primaryColor;
        }
    }
    button{
        position: absolute;
        right: 1px;
        top: 4px;
        background: transparent;
        border: 0;
        z-index: 1;
        font-size: 13px;
        color: $primaryColor;
        outline: 0;
    }
    input[type=search] {
        -webkit-appearance: textfield;
        -webkit-box-sizing: content-box;
        font-family: inherit;

        background: #fff;
        padding: 4px 6px;
        border-radius: 10em;
        transition: all .5s;

        width: 15px;
        color: transparent;
        cursor: pointer;

        &:focus{
            width: 130px;
            background-color: #fff;
            box-shadow: 0 0 5px rgba(109, 207, 246, .5);
            padding-right: 20px;
            color: #000;
            cursor: auto;
        }
        &:focus + button{
            color: $primaryColor;
        }
        &:hover {
            background-color: #fff;
        }
    }
    input::-webkit-search-decoration,
    input::-webkit-search-cancel-button {
        display: none;
    }
    input:-moz-placeholder {
        color: #999;
    }
    input::-webkit-input-placeholder {
        color: #999;
    }
    input::-webkit-input-placeholder {
        color: transparent;
    }
    input:-moz-placeholder {
        color: transparent;
    }
}

.gallery-item{
    background: $primaryColor;
    position: relative;
    overflow: hidden;
    margin: 10px 0;
    width: 100%;
    text-align: center;
    cursor: pointer;

    a{
        display: block;
    }
    .cover{
        height: 240px;
        position: relative;
        display: block;
        min-height: 100%;
        max-width: 100%;
        opacity: 0.7;
        -webkit-transition: opacity 0.35s;
        transition: opacity 0.35s;


        @media (max-width: 1120px) {
            height: 210px;
        }
        @include mqx(t){
            height: 190px;
        }
    }
    &:hover .cover {
        opacity: 0.4;
    }
    figcaption{
        height: auto;
        position: absolute;
        top: 0;
        left: 0;
        padding: 2em;
        color: #fff;
        text-transform: uppercase;
        font-size: 1.25em;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        pointer-events: none;
        width: 100%;
    }
    figcaption::before,
    figcaption::after {
        pointer-events: none;
        position: absolute;
        top: 30px;
        right: 30px;
        bottom: 30px;
        left: 30px;
        content: '';
        opacity: 0;
        -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
        transition: opacity 0.35s, transform 0.35s;
    }
    figcaption::before {
        border-top: 1px solid #fff;
        border-bottom: 1px solid #fff;
        -webkit-transform: scale(0,1);
        transform: scale(0,1);
    }
    figcaption::after {
        border-right: 1px solid #fff;
        border-left: 1px solid #fff;
        -webkit-transform: scale(1,0);
        transform: scale(1,0);
    }
    h2 {
        padding-top: 25px;
        font-weight: 700;
        -webkit-transition: -webkit-transform 0.35s;
        transition: transform 0.35s;
        -webkit-transform: translate3d(0,30px,0);
        transform: translate3d(0,30px,0);

        @media (max-width: 1120px) {
            padding-top: 15px;
            font-size: 20px;
        }
    }
    p {
        @media (max-width: 1120px) {
            font-size: 14px;
        }
        padding: 20px 2.5em;
        opacity: 0;
        -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
        transition: opacity 0.35s, transform 0.35s;
        -webkit-transform: translate3d(0,20px,0);
        transform: translate3d(0,20px,0);
        color: #fff;
    }
    &:hover figcaption::before,
    &:hover figcaption::after {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    &:hover h2,
    &:hover p {
        opacity: 1;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }
}
