// Blog Post
//--------------------------------------------------
.sticky {
    display: block;
}

.updated:not(.published) {
    display: none;
}

.format-gallery {
    .entry-featured {
        position: relative;
        @include border-radius(20px 20px 0 0);
        overflow: hidden;

        img {
            @include border-radius(20px 20px 0 0);
        }

        .owl-next, .owl-prev {
            background: #fff;
            width: 34px;
            height: 34px;
            line-height: 34px;
            text-align: center;
            position: absolute;
            color: #000;
            font-size: 18px;
            @include transition(all 300ms linear 0ms);
            opacity: 0;

            &:hover {
                background: $primary_color;
                color: #fff;
            }
        }

        .owl-next {
            right: 0;
            top: 50%;
            @include transform(translate(0, -50%));
        }

        .owl-prev {
            left: 0;
            top: 50%;
            @include transform(translate(0, -50%));
        }

        &:hover {
            .owl-next, .owl-prev {
                opacity: 1;

                &.disabled {
                    opacity: 0.76;
                }
            }
        }
    }
}

.posts-pagination {
    .posts-page-links {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .page-numbers {
        text-align: center;
        height: 50px;
        width: 50px;
        padding: 0;
        line-height: 50px;
        border: 1px solid #e6e8eb;
        @include border-radius(25px);
        background-color: transparent;
        font-size: 20px;
        font-weight: 700;
        margin: 0 10px 0 0;
        color: $secondary_color;
        &.current, &:hover {
            background-color: $primary_color;
            border-color: $primary_color;
            color: #fff;
        }

        &.next {
            margin-left: 10px;
            font-size: 16px;
        }

        &.prev {
            margin-right: 20px;
            font-size: 16px;
        }
    }
}

.entry-title {
    a {
        color: inherit;

        &:hover {
            color: $primary_color;
        }
    }
}

.entry-featured {
    position: relative;
    margin-bottom: 24px;
    .post-image {
        a {
            width: 100%;
        }

        a, span {
            display: inline-block;
        }

        img {
            @include border-radius(22px);
        }
    }
    .post-category{
        position: absolute;
        z-index: 1;
        bottom: 30px;
        left: 40px;
        padding: 10px 12px 10px;
        @include border-radius(0 10px 10px 10px);
        text-align: center;
        background-color: $primary_color;
        color: #fff;
        font-size: 13px;
        line-height: 1;
        a:hover{
            color: #fff;
            text-decoration: underline;
        }
    }
}

.redux-page .entry-featured .post-image img {
    width: 100%;
}

.item-category {
    font-size: 13px;
    font-weight: 400;
}

.entry-meta {
    margin: 0;
    list-style: none;
    font-size: 13px;

    li {
        display: inline-block;
        margin-right: 11px;
        color: $tertiary_color;
        position: relative;
        @media #{$max-sm} {
            margin-bottom: 10px;
        }
        a{
            color: inherit;
            &:hover {
                color: $primary_color;
            }
        }
        &.item-category {
            position: relative;
        }
        &.item-author {
            text-transform: capitalize;
        }
        & + li{
            padding-left: 13px;
            border-left: 2px solid #dedfe3;
        }
    }
}

.single-hentry {
    .entry-title {
        font-size: 40px;
        line-height: 50px;
        margin-bottom: 30px;
        margin-top: -15px;
        color: $dark_light_color;
    }

    .entry-meta {
        margin-top: 6px;
        margin-bottom: 30px;
    }
    &.has-post-thumbnail{
        .entry-meta{
            padding: 30px 0 0 40px;
            background-color: #fff;
            margin-top: -70px;
            margin-left: -40px;
            position: relative;
            @include border-radius(0 22px 0 0 );
        }
    }

    .entry-content p {
        margin-bottom: 25px;
    }

    .entry-readmore {
        padding-top: 17px;
    }

    &.archive {
        margin-bottom: 60px;
        .entry-title {
            margin-bottom: 20px;
        }
        .entry-meta {
            margin-bottom: 17px;
            margin-top: 35px;
            padding-top: 0;
        }

        .entry-featured.post-image-wrap + .entry-body {
            padding-left: 40px;
            padding-right: 40px;
            @media #{$max-md} {
                padding-left: 30px;
                padding-right: 30px;
            }
            @media #{$max-sm} {
                padding-left: 0;
                padding-right: 0;
            }
        }

        .post-image {
            overflow: hidden;
            @include border-radius(2px);
        }
    }
}

// Single Post Blog
//--------------------------------------------------
.redux-page.single-post .entry-content-top{
    @media #{$min-xl} {
        padding: 0 40px;
    }
}
.single-post {
    .entry-content {
        padding-bottom: 6px;
    }
    .entry-content-bottom {
        padding: 19px 0;
        border-top: 1px solid $color_divider;
        border-bottom: 1px solid $color_divider;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        margin-bottom: 22px;
        position: relative;
        .entry-tags, .entry-social-wrap{
            margin: 10px 0;
        }
        .entry-tags a{
            margin-right: 10px;
        }
    }

    .entry-navigation {
        padding-top: 10px;
        margin-bottom: 30px;
        .nav-post-img {
            width: 67px;
            min-width: 67px;
            margin-right: 20px;
            position: relative;
            overflow: hidden;
            a{
                display: flex;
                &:before, &:after{
                    opacity: 0;
                    transition: all 300ms ease 0s;
                }
                &:before{
                    content: "";
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 100%;
                    height: 100%;
                    background-color: #{'rgba(var(--rgb-color-primary), 0.9)'};
                    @include border-radius(6px);
                }
                &:after{
                    font-family: 'Font Awesome 5 Pro';
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    font-size: 20px;
                    color: #fff;
                    font-weight: 600;
                    transition: none;
                }
            }

            span{
                display: inline-block;
                width: 67px;
                height: 67px;
                @include border-radius(6px);
            }
        }
        .nav-links {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 0 -15px;
            @media #{$max-sm} {
                flex-direction: column;
                align-items: flex-start;
            }
        }
        .nav-item {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            width: 50%;
            margin: 10px 15px;
            padding: 16px 30px;
            border: 2px solid $color_divider;
            border-radius: 10px;
            @include transition(all 300ms linear 0s);
            &.nav-post-prev{
                .nav-post-img a:after{
                    content: "\f0a8";
                }
            }
            &.nav-post-next{
                .nav-post-img a:after{
                    content: "\f0a9";
                }
            }
            &:hover{
                border-color: $primary_color;
                .nav-post-img{
                    a:before, a:after{
                        opacity: 1;
                    }
                }
            }
            @media #{$min-md} {
                &.nav-post-next {
                    flex-direction: row-reverse;
                    text-align: right;
                    .nav-post-img {
                        margin-right: 0;
                        margin-left: 30px;
                    }
                }
            }
            @media #{$max-xs} {
                width: 90%;
            }
        }
        .nav-post-meta {
            label {
                font-size: 13px;
                display: block;
            }

            a {
                font-size: 16px;
                line-height: 22px;
                @include font-family-heading($heading_default_font);
                color: $dark_light_color;
                font-weight: bold;
                &:hover {
                    color: $primary_color;
                }
            }
        }
    }

    .entry-author-info {
        margin-bottom: 63px;
        background-color: #def8f6;
        padding: 40px 30px 32px 40px;
        @include border-radius(10px);
        position: relative;
        &:before{
            content: "";
            display: block;
            width: 3px;
            background-color: $primary_color;
            position: absolute;
            top: 40px;
            bottom: 40px;
            left: 0;
        }
        .author-name {
            @include font-family-heading($heading_default_font);
            font-weight: bold;
            color: $dark_light_color;
            font-size: 18px;
            margin-bottom: 14px;
            a {
                color: inherit;
            }
        }
        .author-post {
            display: flex;
            flex-wrap: nowrap;
            @media #{$max-xs} {
                flex-direction: column;
                .author-avatar {
                    margin-bottom: 25px;
                }
            }
        }

        .author-avatar {
            width: 70px;
            min-width: 70px;
            margin-right: 30px;
            img {
                @include border-radius(35px);
            }
        }

        .author-description {
            font-size: 15px;
            line-height: 23px;
            margin-top: -4px;

            p {
                margin-bottom: 15px;
            }
        }

        .user-social {
            list-style: none;
            margin: 0;

            li {
                display: inline-block;
                margin-right: 16px;

                a {
                    font-size: 16px;
                    color: $dark_light_color;

                    i {
                        font-size: inherit;
                    }

                    &:hover {
                        color: $primary_color;
                    }
                }
            }
        }
    }

    .entry-content .page-links {
        margin-bottom: 30px;
    }
}

.cms-related-post {
    margin-bottom: 3px;

    h4 {
        margin-bottom: 45px;
    }

    .item-featured {
        overflow: hidden;
        border-radius: 3px;

        img {
            border-radius: 3px;

            &:hover {
                @include transform(scale(1.05));
            }
        }
    }

    .item-title {
        font-size: 21px;
        font-weight: bold;
        margin: 24px 0 10px;

        a {
            color: inherit;

            &:hover {
                color: $primary_color;
            }
        }
    }
}

.single {
    .entry-social-wrap {
        display: flex;
        align-items: center;
        ul{
            margin: 0;
            li{
                display: inline-block;
                a {
                    margin-right: 7px;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    @include border-radius(20px);
                    width: 40px;
                    height: 40px;
                    background-color: $secondary_color;
                    color: #fff;
                    &:hover{
                        transform: translateY(-3px);
                    }
                    i {
                        font-size: 17px;
                        color: inherit;
                    }
                    &.fb-social{
                        background-color: #3b5999;
                    }
                    &.tw-social{
                        background-color: #55acee;
                    }
                    &.pin-social{
                        background-color: #BD081C;
                    }

                }
                &:last-child{
                    a{
                        margin-right: 0;
                    }
                }
            }
        }
        label {
            font-size: 15px;
            font-weight: 700;
            color: $secondary_color;
            margin-right: 20px;
        }
    }
}

.no-results .search-form {
    position: relative;

    .search-submit {
        position: absolute;
        top: 0;
        right: 0;
        border: none;
        color: #282828;
        background-color: transparent;
        padding: 0 20px;
        line-height: 60px;
    }
}

img.image-space {
    margin-top: 9px;
    margin-bottom: 6px;
}

.single-post, .page-template-blog-classic {
    #primary.content-full-width {
        max-width: 800px;
        margin: auto;
    }
}

body.search-results {
    .single-hentry {
        .entry-featured {
            margin-bottom: 0;
        }

        .entry-body {
            padding: 32px 40px 40px;
            background-color: #fff;
            @include box-shadow(0 5px 83px rgba(#282828, 0.08));
            @media #{$max-lg} {
                padding-left: 30px;
                padding-right: 30px;
            }
            @media #{$max-md} {
                padding: 30px 20px;
            }
        }
    }
}

// Single Doctors
.post-type-doctor {
}