/*=======  Blog Loop  =======*/
.single-blog-post {
    margin-bottom: 40px;

    .entry-thumb {
        position: relative;
        margin-bottom: -2px;
        z-index: 1;

        iframe {
            width: 100%;
            border: none;
        }

        .slick-arrow {
            border: none;
            background-color: transparent;
            color: $white;
            opacity: 0.4;
            font-size: 30px;
            position: absolute;
            left: 40px;
            top: 50%;
            transform: translateY(-50%);
            transition: 0.3s;
            z-index: 2;

            &.next-arrow {
                left: auto;
                right: 40px;
            }

            &:hover {
                opacity: 1;
            }
        }
    }

    .entry-summary {
        padding: 50px 45px;
        border: 2px solid #ededed;

        @include respond-below(lg) {
            padding: 40px 35px;
        }

        @include respond-below(xs) {
            padding: 40px 25px;
            font-size: 15px;
        }

        .post-cats {
            margin-bottom: 35px;

            a {
                font-family: $raj;
                font-weight: 700;
                color: $text-color;
                background-color: $primary-color;
                line-height: 1;
                padding: 8px 30px;
                margin-right: 5px;

                &:hover {
                    background-color: $text-color;
                    color: $white;
                }
            }
        }

        .title {
            font-size: 36px;
            text-transform: uppercase;
            line-height: 1.2;
            letter-spacing: -1px;

            @include respond-below(lg) {
                font-size: 28px;
            }

            @include respond-below(sm) {
                font-size: 24px;
            }

            @include respond-below(xs) {
                font-size: 20px;
            }
        }

        .entry-meta {
            margin-top: 20px;

            li {
                display: inline-block;

                &:not(:last-child) {
                    margin-right: 25px;

                    @include respond-below(sm) {
                        margin-right: 15px;

                        @include respond-below(xs) {
                            font-size: 10px;
                        }
                    }
                }
            }

            a {
                font-size: 14px;
                font-weight: 700;
                color: $text-color;

                &:hover {
                    color: $primary-color;
                }

                i {
                    margin-right: 10px;
                }
            }
        }

        p {
            margin-top: 20px;
        }

        .entry-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 30px;

            a {
                font-weight: 700;
                color: $text-color;
                font-size: 14px;

                @include respond-below(xs) {
                    font-size: 13px;
                }

                img,
                i {
                    margin-right: 8px;

                    @include respond-below(xs) {
                        margin-right: 5px;
                    }
                }

                &:hover {
                    color: $primary-color;
                }
            }
        }
    }

    &.video-post {
        .popup-video {
            width: 80px;
            height: 80px;
            text-align: center;
            background-color: $primary-color;
            font-size: 14px;
            color: $text-color;
            line-height: 80px;
            position: absolute;
            z-index: 2;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);

            @include respond-below(sm) {
                height: 60px;
                width: 60px;
                line-height: 60px;
            }
        }
    }

    &.audio-post {
        .entry-thumb {
            margin-bottom: -8px;
        }
    }

    &.quote-post {
        .entry-summary {
            border: none;
            background-color: $primary-color;
            position: relative;
            z-index: 1;
            padding: 50px 50px 50px 150px;

            @include respond-below(sm) {
                padding: 130px 35px 40px 35px;
            }

            @include respond-below(xs) {
                padding: 130px 25px 40px 25px;
            }

            &::before {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                z-index: -1;
                background-image: url(../img/news/quote-pattern.png);
                background-size: cover;
                background-position: center;
                content: "";
            }

            .quote-icon {
                position: absolute;
                z-index: 1;
                left: 40px;
                top: 50px;
                max-width: 75px;

                @include respond-below(sm) {
                    max-width: 50px;
                    left: 35px;
                }

                @include respond-below(xs) {
                    left: 25px;
                }
            }

            .title a:hover,
            .entry-meta li a:hover {
                color: $white;
            }
        }
    }

    &.only-title {
        .entry-summary {
            position: relative;
            z-index: 1;
            border: none;

            &::before {
                content: "";
                position: absolute;
                height: 100%;
                width: 100%;
                z-index: -1;
                left: 0;
                top: 0;
                background-image: url(../img/news/03.jpg);
                background-size: cover;
                background-position: center;
                opacity: 0.1;
            }
        }
    }
}

/*=======  Post Details  =======*/
.blog-post-details {
    padding: 50px 45px;
    border: 2px solid #ededed;

    @include respond-below(lg) {
        padding: 40px 35px;
    }

    @include respond-below(xs) {
        padding: 40px 25px;
        font-size: 15px;
    }

    .post-content {
        .post-cats {
            margin-bottom: 30px;

            a {
                font-family: $raj;
                font-weight: 700;
                color: $text-color;
                background-color: $primary-color;
                line-height: 1;
                padding: 8px 30px;
                margin-right: 5px;

                &:hover {
                    background-color: $text-color;
                    color: $white;
                }
            }
        }

        .title {
            font-size: 36px;
            text-transform: uppercase;
            line-height: 1.2;
            letter-spacing: -1px;
            margin-bottom: 20px;

            @include respond-below(lg) {
                font-size: 28px;
            }

            @include respond-below(sm) {
                font-size: 24px;
            }

            @include respond-below(xs) {
                font-size: 20px;
            }
        }

        .entry-meta {
            margin-bottom: 25px;

            li {
                display: inline-block;
                padding-left: 0;

                &:not(:last-child) {
                    margin-right: 25px;

                    @include respond-below(sm) {
                        margin-right: 15px;

                        @include respond-below(xs) {
                            font-size: 10px;
                        }
                    }
                }

                &::before {
                    display: none;
                }
            }

            a {
                font-size: 14px;
                font-weight: 600;

                i {
                    margin-right: 10px;
                }
            }
        }

        p {
            &:not(:last-child) {
                margin-bottom: 25px;
            }
        }

        figure {
            margin: 50px 0;

            @include respond-below(xs) {
                margin: 30px 0;
            }
        }

        .subtitle {
            font-size: 30px;
            letter-spacing: -1px;
            margin-bottom: 25px;
            text-transform: uppercase;


            @include respond-below(sm) {
                font-size: 24px;
            }

            @include respond-below(xs) {
                font-size: 18px;
            }
        }

        hr {
            margin: 35px 0;
            border-top: 1px solid #e1e6ff;
        }

        ul {
            li {
                position: relative;
                padding-left: 45px;

                &:not(:last-child) {
                    margin-bottom: 10px;
                }

                @include respond-below(sm) {
                    padding-left: 30px;
                }

                &::before {
                    position: absolute;
                    left: 20px;
                    top: 52%;
                    transform: translateY(-50%);
                    content: "\f00c";
                    font-family: "Font Awesome 5 Pro";
                    font-size: 16px;

                    @include respond-below(sm) {
                        left: 0;
                    }
                }
            }
        }

        blockquote {
            padding: 60px;
            background-color: #f8f8f8;
            text-align: center;
            font-size: 28px;
            text-transform: uppercase;
            line-height: 1.4;
            font-weight: 700;
            font-family: $raj;
            letter-spacing: -1px;
            margin: 35px 0;

            @include respond-below(lg) {
                font-size: 22px;
            }

            @include respond-below(sm) {
                padding: 40px 25px;
            }

            @include respond-below(xs) {
                padding: 40px 20px;
                font-size: 18px;
            }

            cite {
                display: block;
                line-height: 1;
                font-size: 14px;
                font-weight: 700;
                margin-bottom: 20px;
                font-style: normal;
                color: $primary-color;
            }
        }
    }

    .post-footer {
        margin-top: 50px;

        .related-tags,
        .social-share {
            h5 {
                font-size: 20px;
                font-weight: 700;
                letter-spacing: -1px;
                margin-bottom: 20px;
                text-transform: uppercase;
            }

            li {
                display: inline-block;
            }
        }

        .related-tags li {
            margin-right: 4px;

            a {
                background-color: #efefef;
                font-size: 12px;
                font-weight: 700;
                color: $text-color;
                text-transform: uppercase;
                padding: 5px 20px;

                @include respond-below(lg) {
                    padding: 5px 15px;
                }

                &:hover {
                    background-color: $primary-color;
                    color: $text-color;
                }
            }
        }

        .social-share {
            @include respond-below(sm) {
                margin-top: 40px;
            }

            li {
                margin-left: 20px;

                a {
                    color: #b5becc;
                    font-size: 16px;
                }
            }
        }
    }

    .post-nav {
        padding: 50px 0;
        margin: 50px 0;
        border-top: 1px solid #e1e6ff;
        border-bottom: 1px solid #e1e6ff;
        position: relative;
        z-index: 1;

        &::after {
            position: absolute;
            z-index: -1;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            height: 40px;
            width: 40px;
            background-image: url(../img/news/dot-icon.png);
            content: "";

            @include respond-below(sm) {
                display: none;
            }
        }

        .prev-post,
        .next-post {
            font-family: $raj;
            font-weight: 700;
            text-transform: uppercase;
            line-height: 1.2;

            span {
                display: block;
                letter-spacing: 2px;
                color: $primary-color;
                margin-bottom: 5px;
                font-size: 14px;
            }

            a {
                font-size: 28px;
                letter-spacing: -1px;
                color: $text-color;

                @include respond-below(sm) {
                    font-size: 22px;
                }
            }
        }

        .next-post {
            text-align: right;

            @include respond-below(xs) {
                text-align: left;
                margin-top: 30px;
            }
        }
    }

    .related-post {
        .title {
            font-size: 26px;
            letter-spacing: -1px;
            text-transform: uppercase;
            margin-bottom: 40px;

            @include respond-below(sm) {
                font-size: 22px;
            }
        }

        .single-related-post {
            margin-bottom: 50px;

            .thumb {
                width: 100%;
                height: 300px;
                background-size: cover;
                background-position: center;
            }

            .desc {
                padding: 30px;
                font-size: 14px;
                box-shadow: 0px 8px 16px 0px rgba(93, 93, 93, 0.06);

                @include respond-below(xs) {
                    padding: 30px 20px;
                }

                .date {
                    color: $primary-color;
                    margin-bottom: 10px;

                    i {
                        margin-right: 5px;
                    }
                }

                h4 {
                    font-size: 22px;
                    letter-spacing: -1px;
                    text-transform: uppercase;
                    margin-bottom: 15px;

                    @include respond-below(lg) {
                        font-size: 20px;
                    }
                }
            }

        }
    }

    .author-info {
        border: 2px solid #ededed;
        padding: 40px;
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 40px;
        font-size: 14px;
        align-items: center;

        @include respond-below(lg) {
            padding: 40px 30px;
        }

        @include respond-below(sm) {
            display: block;
        }

        .desc {
            @include respond-below(sm) {
                margin-top: 30px;
            }
        }

        span {
            font-size: 12px;
            margin-bottom: 10px;
            color: $primary-color;
            font-weight: 700;
        }

        h2 {
            font-size: 36px;
            letter-spacing: -1px;
            text-transform: uppercase;
            line-height: 1;
            margin-bottom: 20px;

            @include respond-below(lg) {
                font-size: 28px;
            }

            @include respond-below(xs) {
                font-size: 20px;
            }
        }
    }
}

/*======= Blog sidebar =======*/
.blog-sibebar {
    @include respond-below(md) {
        margin-top: 50px;
    }

    .widget {
        padding: 40px;
        border: 2px solid #ededed;
        margin-bottom: 40px;

        @include respond-between(md, lg) {
            padding: 35px 25px;
        }

        @include respond-below(md) {
            margin-top: 50px;
        }

        @include respond-below(xs) {
            padding: 35px 25px;
        }

        &:last-child {
            margin-bottom: 0;
        }

        .widget-title {
            font-size: 20px;
            text-transform: uppercase;
            margin-bottom: 40px;
            padding-left: 45px;
            position: relative;

            &::before,
            &::after {
                content: "";
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                background-color: $primary-color;
            }

            &::before {
                height: 4px;
                width: 18px;
                border-radius: 2px;
            }

            &::after {
                left: 22px;
                height: 4px;
                width: 4px;
                border-radius: 50%;
            }
        }

        &.about-author-widget {
            .author-info {
                text-align: center;
                font-size: 14px;
                line-height: 1.8;

                .thumb {
                    margin-bottom: 30px;

                    img {
                        max-width: 140px;
                        border-radius: 50%;
                    }
                }

                .name {
                    margin-bottom: 20px;
                    text-transform: uppercase;
                }

                .social-icon {
                    margin-top: 25px;

                    li {
                        display: inline-block;
                        font-size: 14px;
                        margin: 0px 10px;

                        a {
                            color: #b3bed3;

                            &:hover {
                                color: $primary-color;
                            }
                        }
                    }
                }
            }
        }

        &.search-widget {
            form {
                position: relative;

                input {
                    background-color: #f0f4f7;
                    font-size: 12px;
                    height: 60px;
                    padding: 0 65px 0 25px;
                }

                button {
                    position: absolute;
                    right: 0;
                    top: 0;
                    width: 60px;
                    height: 100%;
                    background-color: $primary-color;
                    font-size: 14px;
                    border: none;
                    transition: 0.3s;

                    &:hover {
                        background-color: $text-color;
                        color: $white;
                    }
                }
            }
        }

        &.recent-post-widget {
            li {
                display: grid;
                align-items: center;
                grid-template-columns: 80px 1fr;
                gap: 20px;

                @include respond-between(md, lg) {
                    gap: 15px;
                }

                @include respond-below(xs) {
                    display: block;
                }

                &:not(:last-child) {
                    margin-bottom: 30px;
                    padding-bottom: 30px;
                    border-bottom: 1px solid #e1e6ff;
                }

                h6 {
                    font-size: 16px;
                    text-transform: uppercase;
                    line-height: 1.3;
                }

                .post-thumb {
                    height: 80px;
                    width: 80px;
                    background-color: #ddd;
                    background-size: cover;
                    background-position: center;
                    border-radius: 50%;

                    @include respond-below(xs) {
                        margin-bottom: 20px;
                    }
                }

                .time {
                    font-size: 14px;

                    i {
                        margin-right: 8px;
                    }
                }
            }
        }

        &.categories-widget {
            li {
                &:not(:last-child) {
                    margin-bottom: 10px;
                }

                a {
                    background-color: $text-color;
                    display: block;
                    color: $white;
                    font-size: 14px;
                    font-family: $raj;
                    font-weight: 700;
                    text-transform: uppercase;
                    padding: 14px 50px 14px 30px;
                    position: relative;
                    @include transition(0.3s);

                    span {
                        position: absolute;
                        right: 0;
                        width: 50px;
                        height: 100%;
                        background-color: #131718;
                        top: 0;
                        text-align: center;
                        line-height: 50px;
                        @include transition(0.3s);
                    }

                    &:hover {
                        background-color: $primary-color;
                        color: $white;

                        span {
                            background-color: #ea9d19;
                        }
                    }
                }
            }
        }

        &.social-widget {
            ul {
                li {
                    display: inline-block;
                    margin: 0px 4px;

                    a {
                        background-color: #ededed;
                        height: 40px;
                        width: 40px;
                        text-align: center;
                        line-height: 40px;
                        font-size: 14px;
                        color: $text-color;

                        @include respond-between(md, lg) {
                            width: 35px;
                            height: 35px;
                            line-height: 35px;
                        }

                        @include respond-below(xs) {
                            width: 35px;
                            height: 35px;
                            line-height: 35px;
                        }

                        &:hover {
                            background-color: $primary-color;
                        }
                    }
                }
            }
        }

        &.twitter-widget {
            li {
                padding-left: 35px;
                position: relative;

                &:not(:last-child) {
                    margin-bottom: 30px;
                    padding-bottom: 30px;
                    border-bottom: 1px solid #e1e6ff;
                }

                &::before {
                    position: absolute;
                    left: 0;
                    top: 2px;
                    content: "\f099";
                    font-family: "Font Awesome 5 Brands";
                    color: $primary-color;
                }

                a {
                    color: $text-color;
                    font-size: 12px;
                    font-weight: 600;
                }

                .date {
                    text-transform: uppercase;
                    font-size: 12px;
                    font-weight: 700;
                    font-family: $raj;
                }
            }
        }

        &.instagram-widgets {
            ul {
                margin: -8px;

                @include respond-below(xs) {
                    margin: -5px;
                }

                &::after {
                    clear: both;
                    display: block;
                    content: "";
                }

                li {
                    float: left;
                    padding: 8px;

                    @include respond-above(md) {
                        width: 33.33%;
                    }

                    @include respond-below(xs) {
                        padding: 5px;
                    }
                }
            }
        }

        &.tag-widget {
            ul {
                margin: -10px;

                @include respond-between(md, lg) {
                    margin: -5px;
                }

                @include respond-below(xs) {
                    margin: -5px;
                }

                &::after {
                    clear: both;
                    display: block;
                    content: "";
                }

                li {
                    float: left;
                    padding: 10px;

                    @include respond-between(md, lg) {
                        padding: 5px;
                    }

                    @include respond-below(xs) {
                        padding: 5px;
                    }

                    a {
                        font-size: 12px;
                        text-transform: uppercase;
                        background-color: #f4f4f4;
                        color: $text-color;
                        padding: 8px 20px;
                        font-family: $raj;
                        font-weight: 700;

                        &:hover {
                            background-color: $primary-color;
                        }

                        @include respond-between(md, lg) {
                            padding: 8px 15px;
                        }

                        @include respond-below(xs) {
                            padding: 8px 15px;
                        }
                    }
                }
            }
        }

        &.ad-widget {
            border: none;
            padding: 0;
        }
    }
}

.post-pagination {
    ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 20px;

        li {

            span,
            a {
                height: 50px;
                width: 50px;
                line-height: 50px;
                border: 2px solid #ededed;
                font-size: 14px;
                font-family: $raj;
                font-weight: 700;
                color: $text-color;
                text-align: center;
                margin: 5px;

                @include respond-below(xs) {
                    height: 40px;
                    width: 40px;
                    line-height: 40px;
                }

                &.active-page,
                &:hover {
                    background-color: $primary-color;
                    border-color: $primary-color;
                }
            }
        }
    }
}

/*======= Comment Template =======*/
.comment-template {
    margin-top: 50px;

    .template-title {
        font-size: 26px;
        letter-spacing: -1px;
        text-transform: uppercase;
        margin-bottom: 40px;

        @include respond-below(sm) {
            font-size: 22px;
        }
    }

    .comment-lists {
        li {
            position: relative;
            padding-left: 130px;
            margin-bottom: 50px;
            padding-bottom: 50px;
            border-bottom: 1px solid #eff2ff;

            @include respond-below(sm) {
                padding-left: 0;
                padding-top: 130px;
            }

            .thumb {
                position: absolute;
                left: 0;
                top: 0;
            }

            .comment-desc {
                position: relative;
                z-index: 1;
                font-size: 14px;

                h5 {
                    text-transform: uppercase;
                    font-size: 18px;
                    line-height: 1;
                    letter-spacing: -1px;
                }

                .date {
                    color: $primary-color;
                    font-weight: 700;
                    font-size: 12px;
                    margin-bottom: 20px;
                    line-height: 1;
                }

                .reply-btn {
                    position: absolute;
                    right: 0;
                    top: 0;
                    z-index: 2;
                    border-radius: 20px;
                    border: 2px solid #f4f4ff;
                    line-height: 1;
                    padding: 10px 20px;
                    font-size: 14px;
                    color: $text-color;
                    font-weight: 700;

                    @include respond-below(xs) {
                        font-size: 12px;
                        padding: 8px 15px;
                    }

                    i {
                        margin-right: 5px;
                    }

                    &:hover {
                        background-color: $text-color;
                        color: $white;
                    }
                }
            }

            li {
                margin-top: 50px;
                padding-top: 50px;
                border-top: 1px solid #eff2ff;

                @include respond-below(sm) {
                    margin-left: 50px;
                    padding-top: 180px;
                }

                @include respond-below(xs) {
                    margin-left: 20px;
                }

                .thumb {
                    top: 50px;
                }

                &:last-child {
                    margin-bottom: 0;
                    padding-bottom: 0;
                    border-bottom: none;
                }
            }
        }
    }

    .comment-form {
        background-color: #f0f4f7;
        padding: 50px;

        @include respond-below(sm) {
            padding: 40px 30px;
        }

        @include respond-below(xs) {
            padding: 40px 20px;
        }

        .input-group {
            margin-bottom: 20px;

            &:last-child {
                margin-bottom: 0;
                padding-top: 10px;
            }
        }

        input,
        textarea {
            background-color: $white;
            font-size: 14px;

            @include respond-below(xs) {
                font-size: 12px;
            }
        }

        textarea {
            height: 150px;
        }

        input,
        textarea,
        ::placeholder {
            color: $text-color;
        }

        .main-btn {
            @include respond-below(xs) {
                font-size: 13px;
                padding: 0px 30px;
            }
        }
    }
}