/* Table of Content
====================

1. typography
2. Global styles

====================*/

// import files
@import "variable";
@import "mixin";

//Import Fonts
@import url('http://fonts.cdnfonts.com/css/sofia-pro');

/* ===========================
// Typography
==============================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.55;
    color: $text-color;
    font-family: $sofia;
}

.body-wrapper {
    overflow: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: $sofia;
    color: var(--dark);
    font-weight: 700;
}

h1 {
    font-size: 64px;
    line-height: 80px;
}

h2 {
    font-size: 48px;
    line-height: 56px;
}

h3 {
    font-size: 30px;
    line-height: 40px;
}

h4 {
    font-size: 24px;
    line-height: 34px;
}

h5 {
    font-size: 16px;
    line-height: 26px;
}

h6 {
    font-size: 14px;
    line-height: 22px;
}

/*============================ 
// Global styles
=============================*/
html {
    overflow-x: hidden !important;
    width: 100%;
    height: 100%;
    position: relative;
    text-rendering: optimizeLegibility;
}

ul,
li {
    padding: 0;
    margin: 0;
    list-style: none;
}

a:link,
a:visited,
a:focus {
    text-decoration: none;
    outline: 0;
}

a {
    color: $primary-color;
    @include transition();

    &:hover {
        text-decoration: none;
        color: $primary-color;
    }
}

strong {
    font-weight: 700;
}

img {
    height: auto;
    max-width: 100%;
}

input,
textarea,
select,
:focus {
    outline: 0;
    box-shadow: 0;
}

hr {
    opacity: 1;
    height: 1px;
    border: none;
}

.gap {
    height: 30px;
    display: block;
}
.gap-md {
    height: 40px;
    display: block;
}
.gap-lg {
    height: 60px;
    display: block;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-400 {
    font-weight: 400;
}

.bg {
    background: var(--dark2);
    &-dark4 {
        background-color: var(--dark4);
    }
    &-white {
        background-color: var(--white);
    }
    &-dark {
        background-color: var(--dark);
    }
}

.layer {
    position: relative !important;
}

/* admin info - Start
================================================== */
.admin-info {
    align-items: center;
    display: inline-flex;

    .admin-image {
        width: 62px;
        height: 62px;
        flex: 0 0 62px;
        overflow: hidden;
        margin: 0 21px 0 0;
        border-radius: 100%;
    }

    .admin-name {
        line-height: 1;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .admin-designation {
        display: block;
        line-height: 1;
        font-size: 14px;
    }
}

/* admin info - End
================================================== */


/*============================
// common  list
============================*/
.list {
    .list-item {
        color: var(--dark);
        position: relative;
        padding-left: 30px;
        margin: 0 0 12px;

        .about-content2 & {
            color: $white-color;
        }

        .check-icon {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            margin: auto 0;
            color: $primary-color;
            font-size: 14px;
            line-height: 24px;

            .about-content2 & {
                color: $white-color;
            }
        }
    }
}

/*=========================
//  owl carousel 
===========================*/

// owl nav
.owl-carousel {
    &.owl-theme {
        .owl-nav {
            visibility: hidden;
            opacity: 0;
            @include transition();

            .owl-prev,
            .owl-next {
                color: $white-color;
                font-size: 20px;
                background: $primary-color;
                display: inline-block;
                width: 40px;
                height: 40px;
                line-height: 40px;
                text-align: center;
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                border-radius: $border-radius-sm;
                margin: 0;
                padding: 0;
                opacity: 1;
                cursor: pointer;
                @include transition();

                .weekly-top-course & {
                    background-color: $secondary-color;
                }

                &:hover {
                    background-color: $secondary-color;
                }

                &:focus {
                    outline: 0;
                    box-shadow: none;
                    opacity: 1;
                }
            }

            .owl-next {
                right: 0;
                left: auto;
            }
        }

        .owl-dots {
            .owl-dot {
                &:focus {
                    outline: 0;
                }

                span {
                    width: 10px;
                    height: 10px;
                    margin: 30px 6px 0 6px;
                    background: #f4f4f4;
                    display: block;
                    border-radius: 30px;
                    opacity: 1;
                }

                &.active {
                    span {
                        background: $secondary-color;
                    }
                }
            }
        }
    }

    &:hover {
        &.owl-theme {
            .owl-nav {
                visibility: visible;
                opacity: 1;
            }
        }
    }
}

// team owl nav
.team-section {
    .owl-carousel {
        &.owl-theme {
            .owl-nav {

                .owl-prev,
                .owl-next {
                    top: 38%;
                }
            }
        }
    }
}

// category-slider owl nav
.category-section {
    .owl-carousel {
        &.owl-theme {
            .owl-nav {

                .owl-prev,
                .owl-next {
                    border-radius: 50%;
                }
            }
        }
    }
}

// category-slider owl nav
.course-preview-slider2 {
    &.owl-carousel {
        &.owl-theme {
            .owl-nav {

                .owl-prev,
                .owl-next {
                    top: 42%;
                }
            }
        }
    }
}

// owl nav

.course-preview-area {
    .owl-carousel {
        &.owl-theme {
            .owl-nav {
                visibility: visible;
                opacity: 1;

                .owl-prev,
                .owl-next {
                    font-size: 16px;
                    width: 35px;
                    height: 35px;
                    line-height: 35px;
                    right: 45px;
                    left: auto;
                    top: -50px;
                }

                .owl-next {
                    left: auto;
                    right: 0;
                }
            }
        }
    }
}

/*=======================
// back-to-top
========================*/

#back-to-top {
    width: 40px;
    height: 40px;
    right: 15px;
    bottom: 30px;
    z-index: 999;
    display: none;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    position: fixed;
    line-height: 42px;
    text-align: center;
    border-radius: 100%;
    background-color: rgba(0, 0, 0, 0.8);

    &:hover {
        color: $white-color;
        transform: translateY(-5px);
        background-color: $primary-color;
        box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.2);
    }
}

/*=======================
// meta tag
========================*/
.meta {
    color: $white-color;
    background-color: $primary-color;
    display: inline-block;
    padding: 3px 15px;
    border-radius: $border-radius-sm;

    &:hover {
        color: $white-color;
    }

    i {
        margin-right: 4px;
    }
}


/*=========================
// prelaoder
=========================*/

#loading {
    background-color: $primary-color;
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 9999;
    margin-top: 0px;
    top: 0px;
}

#loading-center {
    width: 100%;
    height: 100%;
    position: relative;
}

#loading-center-absolute {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 200px;
    width: 200px;
    margin-top: -100px;
    margin-left: -100px;
}

#object {
    width: 80px;
    height: 80px;
    background-color: #fff;
    -webkit-animation: animate 1s infinite ease-in-out;
    animation: animate 1s infinite ease-in-out;
    margin-right: auto;
    margin-left: auto;
    margin-top: 60px;

    @media (max-width: 991px) {
        width: 60px;
        height: 60px;
    }
}

@-webkit-keyframes animate {
    0% {
        -webkit-transform: perspective(160px);
    }

    50% {
        -webkit-transform: perspective(160px) rotateY(-180deg);
    }

    100% {
        -webkit-transform: perspective(160px) rotateY(-180deg) rotateX(-180deg);
    }
}

@keyframes animate {
    0% {
        transform: perspective(160px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(160px) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: perspective(160px) rotateX(-180deg) rotateY(0deg);
        -webkit-transform: perspective(160px) rotateX(-180deg) rotateY(0deg);
    }

    100% {
        transform: perspective(160px) rotateX(-180deg) rotateY(-180deg);
        -webkit-transform: perspective(160px) rotateX(-180deg) rotateY(-180deg);
    }
}

.container {
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
}

/* overlay */
.overlay {
    position: relative;
    &::before {
        position: absolute;
        content: "";
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0, 0.8);
    }
}

/* ===============
/ Error Page 
==================*/

.error-page {
    h2 {
        font-size: 100px;
        font-weight: 800;
        line-height: 0.8;
        margin-bottom: 20px;
    }

    h3 {
        margin-bottom: 20px;
    }
}

@media (min-width: 992px) {
    .error-page {
        h2 {
            font-size: 200px;
        }
    }
}

.highlight {
    background: $bg-3;
    display: inline-block;
    line-height: .8;
}
.heading-content {
    padding-bottom: 30px;
}
.block-content {
    .block-desc {
        font-size: 18px;
        line-height: 1.3;
    }

    .block-heading+.block-desc {
        margin-top: 20px;
    }

    p {
        margin: 0 0 18px;
        color: var(--dark2);
        &:last-of-type {
            margin: 0 0 32px;
        }
    }

    .leads {
        font-size: 24px;
        font-weight: 400;
    }

    .btn-groups {
        justify-content: flex-start;
        text-align: left;
        margin-bottom: 3px solid var(--m);
    }

    .content-bottom {
        h3 {
            font-size: 30px;
            font-weight: 40px;
            margin-bottom: 18px;
        }
    }

    .content-bottom {
        font-size: 24px;
    }
}


.block-heading {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.block-desc {
    font-size: 18px;
    line-height: 28px;
}

@media (min-width: 767px) {
    .block-content {
        .block-desc {
            font-size: 24px;
            line-height: 36px;
        }
    }
    .pad-right-xl {
        padding-right: 30px;
    }
    .pad-left-xl {
        padding-left: 30px;
    }

    .block-heading {
        font-size: 38px       
    }
}

@media (min-width: 991px) {
    .heading-content {
        padding-bottom: 60px;
    }
    .block-heading {
        font-size: 48px;
        margin-bottom: 30px;

        strong {
            line-height: 74px;
        }
    }
}

@media (min-width: 1400px) {
    .pad-right-xl {
        padding-right: 60px;
    }
    .pad-left-xl {
        padding-left: 60px;
    }   
}

.list {
    li {
        display: flex;
        align-items: center;
        font-size: 18px;
        line-height: 30px;
        font-weight: 700;
        margin-bottom: 20px;

        .icon {
            margin-right: 15px;

            img {
                max-width: 30px;
            }
        }
    }

    &.list-icon {
        li {
            align-items: flex-start;
            font-weight: 400;

            .icon {
                color: $primary-color;

                i {
                    font-size: 18px;
                }
            }
        }
    }

    &.list-icon-2 {
        li {
            font-size: 18px;

            .content {
                strong {
                    display: block;
                    margin-bottom: 10px;
                }

                p {
                    color: #5E687C;
                }
            }
        }
    }
}

@media (min-width: 991px) {
    .list {
        li {
            font-size: 24px;

            .icon {
                img {
                    max-width: 46px;
                }
            }
        }
    }
}

// block image 

.block-image {
    img {
        max-width: 100%;
    }
}
.block-shadow {
    box-shadow: 0px 4px 64px rgba(0,0,0, 0.06);
}

// bg image 
.imagebg {
    background-size: contain;
    position: absolute;
    width: 50%;
    left: 0;
    top: 0;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;

    &.bg-left {
        left: 0;
        right: auto;
    }

    &.bg-right {
        left: auto;
        right: 0;
    }
}

// sidebar css 
h4.widget-title {
    margin-bottom: 20px;
}

.post-list {
    .post-item {
        display: flex;

        .post-thumbs {
            width: 130px;
            margin-right: 25px;

            img {
                max-width: 100%;
            }
        }

        .post-content {
            .post-title {
                font-size: 14px;
                line-height: 20px;
                margin-top: -5px;

                a {
                    color: var(--dark);
                }

                &:hover {
                    a {
                        color: $primary-color;
                    }
                }
            }

            .post-meta {
                li {
                    line-height: 1;
                    color: #AFB2B8;
                }
            }
        }
    }
}

.cat-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #DCDCDC;
    padding: 10px 0;
    font-family: $sofia;

    a {
        color: var(--dark);
        font-weight: 700;

        span {
            color: #AFB2B8;
        }
    }

    .icon {
        color: $primary-color;
        margin-right: 5px;
    }
}

.tag-list {
    li {
        display: inline-block;
        margin-bottom: 5px;

        a {
            background: #F6F6F6;
            padding: 10px 20px;
            display: block;
            line-height: 1;
            color: var(--dark);
        }
    }
}

.search-form {
    position: relative;
    margin-bottom: 40px;

    .search-btn {
        position: absolute;
        right: 0;
        top: 0;
        background: transparent;
        border: navajowhite;
        bottom: 0;
        padding: 0 15px;
    }
}

// quote 
blockquote {
    background: #F6F6F6;
    padding: 28px 30px 34px;
    border-left: 5px solid var(--primary);

    .icon {
        max-width: 46px;
        margin-bottom: 20px;
    }

    span {
        display: block;
        color: #161851;
        font-size: 20px;
        line-height: 28px;
    }

    p {
        font-size: 16px;
        font-weight: 400;
        line-height: 26px;
        color: var(--dark2);
        &:last-child{
            margin-bottom: 0 !important;
        }
    }
}

// social 

.social {
    li {
        display: inline-block;
        a {
            width: 42px;
            height: 42px;
            background: var(--dark);
            color: $white-color;
            font-size: 15px;
            line-height: 30px;
            text-align: center;
            padding: 7px;
            border-radius: 50%;

            &:hover {
                background: $primary-color;
            }
        }
    }
}

// comment 
.comments-list {
    .comment-item {
        display: flex;
        margin-bottom: 20px;

        .user-thums {
            max-width: 100px;
            margin-right: 20px;

            img {
                width: 100%;
                border-radius: 50%;
            }
        }

        .content {
            .user-name {
                font-size: 14px;
                line-height: 20px;
            }

            .comment-desc {
                font-size: 15px;
                line-height: 20px;
                margin: 0 0 10px;
            }

            .rep {
                font-size: 12px;
                color: #bdbdbd;
                line-height: 20px;
            }
        }
    }
}