.container {
    padding-left: 0;
    padding-right: 0;

    .container {
        width: 100%;
    }
}

.site-content {
    padding-top: 80px;
    padding-bottom: 80px;
}

// Single Post nav
.post-navigation {
    border-top: 1px solid #f0f3f7;
    padding-top: 40px;
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .meta-nav {
        display: block;
        color: #9b9ea8;
        margin-bottom: 3px;
    }

    .icon-nav {
        width: 70px;
        flex: none;
        text-align: center;

        i {
            font-size: 18px;
        }
    }

    .text-nav {
        padding: 14px 30px;
    }

    .nav-previous {
        padding-right: 15px;

        .text-nav {
            border-left: 2px solid #f0f3f7;
        }
    }

    .nav-previous,
    .nav-next {
        width: 50%;
    }
    .nav-next {
        padding-left: 15px;
        text-align: right;

        a {
            justify-content: flex-end;
        }

        .text-nav {
            border-right: 2px solid #f0f3f7;

        }
    }

    .nav-title {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        transition: 0.5s;
        line-height: 1.3;
        word-break: break-word;
    }
}

.post-navigation--nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    .nav {

        a {
            display: flex;
            align-items: center;
            border: 2px solid #f0f3f7;
        }

        &:hover {
            .nav-title {
                color: @primary-color;
            }
        }
    }
}

// Blog nav
.paging-navigation {
    clear: both;
    text-align: center;
    padding-top: 10px;

    .page-numbers {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #f7faff;
        display: inline-block;
        line-height: 50px;
        text-align: center;
        color: #222;
        font-size: 18px;
        font-weight: 600;
        margin: 0 3px;
        font-family: @font-family-secondary;
        transition: 0.5s;

        &.next,
        &.prev {
            font-size: 22px;
            color: #9b9ea8;
        }

        &.current,
        &:hover {
            background-color: #111c55;
            color: #f8e510;
        }
    }

    &.blog-nav-ajax,
    &.portfolio-nav-ajax {
        .page-numbers {
            display: none;

            &.next {
                display: inline-block;
                width: auto;
                font-size: 15px;
                border-radius: 50px;
                background-color: @primary-color;
                color: #fff;
                margin: 0;
                padding: 0 42px;
                position: relative;

                &.loading {
                    .nav-text {
                        opacity: 0;
                    }

                    .loading-icon {
                        opacity: 1;
                    }
                }
            }
        }

        .loading-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: block;
        }
    }

    &.loaded {
        padding: 0;
        margin: 0;
    }
}

.page-template-template-homepage .site-content {
    padding-top: 0;
    padding-bottom: 0;
}

.post-author {
    margin: 0 0 57px;

    .box-title {
        font-size: 24px;
        margin-bottom: 25px;
        font-weight: 600;
        text-transform: uppercase;
    }
    .post-author-box {
        padding: 30px 0 25px;
        border-top: 1px solid #f0f3f7;
        border-bottom: 1px solid #f0f3f7;
    }
    .post-author-avatar {
        float: left;
    }
    .post-author-info {
        margin-left: 120px;
        color: #9b9ea8;

        .author-name {
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 20px;
            color: #222222;
        }

        .post-author-social {
            font-size: 14px;

            ul {
                list-style: none;
                padding-left: 0;
                margin: 15px 0 0 0;
                display: inline-block;

                li {
                    display: inline-block;
                    margin-right: 20px;
                    margin-bottom: 0;

                    a {
                        color: #848484;

                        &:hover {
                            color: @primary-color;
                        }
                    }
                }
            }
        }
    }
}

.entry-title {
    font-size: 30px;
    font-weight: 600;
    margin-top: 0;
}

.entry-thumbnail {
    margin-bottom: 25px;
}

.entry-meta {
    color: #9b9ea8;

    .meta {
        color: #9b9ea8;
        padding: 0 9px;

        &:first-child {
            padding-left: 0;
        }

        &:last-child {
            padding-right: 0;
        }

        .svg-icon {
            color: @primary-color;
            margin-right: 6px;
        }

        a {
            color: #9b9ea8;
        }

        &:hover {
            a {
                color: @primary-color;
            }
        }
    }

    .number-comment {
        .svg-icon {
            font-size: 15px;
        }
    }
}

.entry-header {
    &.author {
        display: flex;
        align-items: center;
        margin-bottom: 38px;
    }
    .entry-author {

        flex-grow: 1;
        -webkit-box-flex: 1;
        -webkit-box-align: center;
        align-items: center;
        display: flex;

        img {
            border-radius: 100%;
            margin-right: 18px;
            width: 60px;
            height: auto;
        }

        h3 {
            display: inline-block;
            margin: 0;
            color: #9b9ea8;
            font-size: 16px;
            font-weight: normal;

            a {
                color: #9b9ea8;
            }

            span {
                display: block;
                font-size: 18px;
                color: @primary-color;
                font-weight: 600;
                margin-bottom: 7px;
            }
        }
    }
}

.entry-footer {
    padding: 15px 0;
    border-top: 1px solid #f0f3f7;
    border-bottom: 1px solid #f0f3f7;
    clear: both;

    .tag-list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;

        h4 {
            color: #222222;
            font-size: 16px;
            font-weight: 600;
            margin: 0;
        }

        a {
            padding-left: 5px;
            color: @primary-color;
        }
    }
}

// set default
.page-links {
    margin-bottom: 25px;
    clear: both;
}

iframe {
    width: 100%;
}

.mejs-audio {
    margin-bottom: 25px;
}

// set blog
.blog-wrapper {
    border: 2px solid #f7faff;
    padding-bottom: 40px;
    position: relative;
    margin-bottom: 60px;
    transition: 0.5s;
    background-color: #fff;

    &:hover {
        .entry-thumbnail {
            img {
                transform: scale(1.05);
            }

            .thumb:before,
            .svg-icon {
                opacity: 1;
                visibility: visible;
            }
        }
    }

    .read-more,
    .entry-title,
    .entry-meta,
    .entry-content,
    .entry-footer {
        margin-left: 30px;
        margin-right: 30px;
    }

    .entry-meta {
        margin-bottom: 15px;
    }

    .entry-content {
        margin-bottom: 20px;
    }

    .entry-thumbnail {
        position: relative;
        overflow: hidden;
        a {

            display: block;

            &:before {
                position: absolute;
                content: '';
                width: 100%;
                height: 100%;
                top: 0;
                left: 0;
                background-color: rgba(2, 17, 90, 0.8);
                opacity: 0;
                visibility: hidden;
                transition: .5s;
                z-index: 9;
            }

            .svg-icon {
                content: '\f0c1';
                font-family: FontAweSome;
                position: absolute;
                top: 50%;
                left: 50%;
                font-size: 30px;
                color: #f8e510;
                opacity: 0;
                visibility: hidden;
                transition: .5s;
                transform: translate(-50%, -50%);
                z-index: 10;
            }
            &:after {

            }
        }
        img {
            transition: .5s;
        }

        .meta {
            display: block;
            line-height: 1;
            position: absolute;
            top: 18px;
            left: 33px;
            background-color: @primary-color;
            padding: 7px 20px;
            border-radius: 30px;
            z-index: 11;

            a {
                color: #fff;
            }
        }
    }

    .entry-title {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .entry-footer {
        a {
            color: #2685f9;
        }
    }

    .read-more {
        .dl-btn-primary();
    }
}

.no-thumb {
    .blog-wrapper {
        padding-top: 30px;
    }
}

.blog-masonry {
    .blog-wrapper {
        .entry-title {
            font-size: 22px;
        }
    }
}

.blog-classic {
    .blog-wrapper {
        .entry-title {
            font-size: 24px;
        }

        .entry-thumbnail .meta {
            left: 40px;
            top: 40px;
        }
    }

    .no-content {
        .entry-content {
            display: none;
        }
    }

    &.full-content {
        .blog-wrapper {
            .entry-thumbnail .meta {
                left: 50px;
                top: 50px;
            }
        }
    }

}

.search-no-results .site-content {
    .search-form {
        font-size: 16px;
        display: flex;
        position: relative;
        border: 2px solid #f7faff;

        &:after {
            content: '';
            position: absolute;
            top: 13px;
            right: 50px;
            width: 1px;
            height: 25px;
            background-color: #e1e8f4;
            z-index: 9;
        }

        .screen-reader-text {
            display: none;
        }

        ::-webkit-input-placeholder {
            color: #9b9ea8;
        }

        :-moz-placeholder {
            color: #9b9ea8;
        }

        ::-moz-placeholder {
            color: #9b9ea8;
        }

        :-ms-input-placeholder {
            color: #9b9ea8;
        }

        &:before {
            content: '\f002';
            position: absolute;
            top: 50%;
            right: 20px;
            color: #393939;
            font-family: FontAwesome;
            font-size: 14px;
            z-index: 99;
            transform: translateY(-50%);
        }

        label {
            width: 100%;
            margin-bottom: 0;
            input {
                width: 100%;
            }
        }

        .search-field {
            padding: 15px 20px;
            background-color: transparent;
            font-weight: 400;
            border-width: 0;
        }

        .search-submit {
            position: relative;
            width: 50px;
            height: 50px;
            opacity: 0;
            z-index: 999;
        }
    }
}

// 404 page
.error404 {

    &.header-v1 {
        .site-content {
            padding-top: 205px;
        }
    }

    .site-content {
        padding-top: 130px;
        padding-bottom: 130px;
        position: relative;
    }

    .error-404 {
        position: relative;
        text-align: center;
        color: #222;

        .page-header {
            margin-top: 0;
            padding-bottom: 0;
            margin-bottom: 45px;
            border: 0;
            background-color: transparent;

            p {
                font-weight: 500;
                line-height: 1;

                &.line-1 {
                    font-size: 20px;
                    text-transform: uppercase;
                    padding-bottom: 15px;
                }

                &.line-2 {
                    font-size: 18px;
                }
            }
        }

        h1 {
            color: #222;
            font-size: 200px;
            font-weight: 700;
            margin: 0;
            line-height: 1;
            padding-bottom: 0;
        }

        .search-form {
            font-size: 16px;
            display: flex;
            position: relative;
            border: 2px solid #f7faff;
            max-width: 500px;
            margin: auto;

            &:after {
                content: '';
                position: absolute;
                top: 13px;
                right: 50px;
                width: 1px;
                height: 25px;
                background-color: #e1e8f4;
                z-index: 9;
            }

            .screen-reader-text {
                display: none;
            }

            ::-webkit-input-placeholder {
                color: #9b9ea8;
            }

            :-moz-placeholder {
                color: #9b9ea8;
            }

            ::-moz-placeholder {
                color: #9b9ea8;
            }

            :-ms-input-placeholder {
                color: #9b9ea8;
            }

            &:before {
                content: '\f002';
                position: absolute;
                top: 50%;
                right: 20px;
                color: #393939;
                font-family: FontAwesome;
                font-size: 14px;
                z-index: 99;
                transform: translateY(-50%);
            }

            label {
                width: 100%;
                margin-bottom: 0;
                input {
                    width: 100%;
                }
            }

            .search-field {
                padding: 15px 20px;
                background-color: transparent;
                font-weight: 400;
                border-width: 0;
            }

            .search-submit {
                position: relative;
                width: 50px;
                height: 50px;
                opacity: 0;
                z-index: 999;
            }
        }

        .back-home {
            margin-top: 50px;

            a {
                color: #222;
                font-size: 18px;
                font-weight: 500;
                text-transform: capitalize;
            }
        }
    }
}

.blog-classic,
.single-post {

    .entry-thumbnail {
        margin-bottom: 20px;
    }

    .site-content {
        padding-top: 0;

        .widgets-area,
        .content-area {
            padding-top: 80px;
        }
    }
    &.content-sidebar,
    &.sidebar-content {
        .blog-sidebar {
            position: relative;
            &:before {
                content: '';
                position: absolute;
                top: 0;
                height: 100%;
                width: 1px;
                background-color: #f7faff;
            }
        }
    }
    &.content-sidebar {
        .blog-sidebar {
            padding-left: 45px;
            &:before {
                left: 15px;
            }
        }
        .content-area {
            padding-right: 15px;
        }
    }
    &.sidebar-content {
        .blog-sidebar {
            padding-right: 45px;
            &:before {
                right: 15px;
            }
        }
        .content-area {
            padding-left: 15px;
        }
    }
}

.blog-classic {
    .blog-wrapper {
        margin-bottom: 60px;
    }
}

.blog-grid,
.blog-masonry {
    .blog-wrapper {
        padding-bottom: 30px;
        margin-bottom: 30px;

        .entry-content {
            margin-bottom: 0;
        }
    }
}

.single-post {

    .entry-thumbnail {
        margin-bottom: 0;

        img {
            margin-bottom: 20px;
        }
    }

    .entry-header {
        margin-bottom: 20px;
        .entry-title {
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 30px;
        }

        .entry-meta {
            margin-bottom: 6px;
        }
    }
    .entry-footer {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 19px 0 9px;
        margin-top: 50px;
        border-bottom: none;
        .count-cmt {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            &:before {
                content: "\f086";
                font-family: FontAwesome;
                display: block;
                width: 35px;
                height: 35px;
                line-height: 35px;
                border-radius: 50%;
                margin-right: 10px;
                background-color: #f7faff;
                text-align: center;
                color: @primary-color;
            }
        }

        .tag-list {
            justify-content: flex-start;
            margin-bottom: 10px;
        }
    }

    .post-password-form {

        label {
            font-weight: 400;
        }

        input[type="submit"] {
            .dl-btn-primary();
            border-radius: 0;
            height: 50px;
            line-height: 50px;
            margin-left: -5px;
        }
    }

    .mf-single-post-socials-share {
        display: flex;
        align-items: center;
        margin: 0 0 30px;

        .share-icon {
            color: @primary-color;
            display: inline-block;
            padding-right: 10px;
        }

        h4 {
            margin: 0;
            font-size: 18px;

            i {
                color: @primary-color;
                margin-right: 15px;
            }
        }

        .social-share {
            margin: 0;
            padding-left: 9px;
            li {
                display: inline-block;
                margin-bottom: 0;

                a {
                    font-size: 14px;
                    width: 35px;
                    height: 35px;
                    display: inline-block;
                    text-align: center;
                    line-height: 33px;
                    border: 2px solid #f7faff;
                    -webkit-border-radius: 100%;
                    border-radius: 100%;
                    margin-left: 10px;
                    color: #848484;

                    &:hover {
                        color: #3366ff;
                    }
                }
            }
        }
    }
}

.search-results {
    .dl-blog-wrapper {
        width: 100%;
        float: none;
    }
}

.dl-latest-post {
    .entry-content {
        display: none;
    }
}