/*=======  Post Style  =======*/
.entry-single-post {
    margin-bottom: 40px;

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

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

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

    .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;
        }

        p {
            margin-bottom: 0;
        }
    }

    .post-categories {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 30px;
        list-style: none !important;

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

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

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

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

        @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: 15px;

        li {
            display: inline-block;
            margin-bottom: 5px;

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

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

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

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

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

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

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

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

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

            img {
                border-radius: 50%;
            }

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

    &.format-gallery {
        .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;
            }
        }
    }

    &.format-audio .audio-box,
    &.format-quote .quote-box,
    &.format-link .link-box {
        box-shadow: 0 10px 30px 0 rgba(20, 3, 67, 0.08);
        border-radius: 6px;
        padding: 30px 40px 30px;
        overflow: hidden;
        border-left: 6px solid $primary-color;
        font-weight: 500;
        margin-bottom: 35px;
        position: relative;
    }

    &.format-link {
        .link-box {
            &::before {
                position: absolute;
                content: "\f0c1";
                font-family: "Font Awesome 5 Pro";
                font-weight: 900;
                right: 30px;
                bottom: -30px;
                color: rgba($primary-color, 0.1);
                font-size: 100px;
                z-index: -1;
                line-height: 1;
                transform: rotate(90deg);
            }

            i {
                font-size: 30px;
                color: $primary-color;
                margin-bottom: 15px;
                display: block;
            }

            a {
                font-size: 20px;
                color: $secondary-color;
                font-weight: 600;
            }
        }
    }

    &.format-quote {
        .quote-box {
            &::after {
                position: absolute;
                content: "\f10e";
                font-family: "Font Awesome 5 Pro";
                font-weight: 900;
                right: 30px;
                bottom: -28px;
                color: rgba($primary-color, 0.1);
                font-size: 100px;
                z-index: -1;
                line-height: 1;
            }

            i {
                font-size: 30px;
                color: $primary-color;
                margin-bottom: 15px;
            }

            cite {
                display: block;
                color: $secondary-color;
                margin-top: 10px;
                font-weight: 600;
                font-style: normal;
            }

            p {
                margin: 0;
            }
        }
    }

    &.format-video {
        .entry-media {
            position: relative;
            display: flex;
            justify-content: flex-start;

            .popup-video {
                width: 80px;
                height: 80px;
                text-align: center;
                background-color: $primary-color;
                font-size: 14px;
                color: $secondary-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;
                }
            }
        }
    }

    &.format-audio {
        .audio-box {
            audio {
                width: 100%;
                margin: 0;

                &:focus {
                    outline: none;
                }
            }
        }
    }

    &.post-details {
        .post-content-area {
            padding: 50px 45px;
            border: 2px solid #ededed;

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

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

            .wp-block-calendar .wp-calendar-nav {
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-size: 15px;
            }

            .wp-block-latest-comments__comment-author,
            .wp-block-latest-comments__comment-link {
                color: $secondary-color;
            }

            ul.wp-block-latest-posts {
                list-style: none;

                a {
                    font-size: 18px;
                    color: #333;
                    font-weight: 700;

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

                time {
                    padding-top: 5px;
                }

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

            .wp-block-search {
                margin: 30px 0;
                position: relative;
                input {
                    background-color: #f0f4f7;
                    font-size: 12px;
                    height: 60px;
                    padding: 0 65px 0 25px;
                    max-width: 100%;
                }

                button {
                    position: absolute;
                    right: 0;
                    bottom: 0;
                    height: 60px;
                    background-color: $primary-color;
                    font-size: 14px;
                    border: none;
                    transition: 0.3s;
                    padding: 0px 30px;
                    font-weight: 700;
                    font-family: $raj;

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

            .wp-block-tag-cloud {
                a {
                    font-size: 12px !important;
                    text-transform: uppercase;
                    background-color: #f4f4f4;
                    color: $secondary-color;
                    padding: 8px 20px;
                    font-family: $raj;
                    font-weight: 700;
                    margin: 5px;

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

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

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

            .wp-block-rss,
            .wp-block-archives {
                list-style: none;

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

                a {
                    color: $secondary-color;
                    font-weight: 500;

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

        .entry-meta {
            a {
                color: $primary-color;

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

        .entry-content {
            ul,
            ol {
                margin-top: 20px;
                margin-bottom: 20px;
                list-style: disc;
                list-style-position: inside;

                ul,
                ol {
                    padding-left: 20px;
                }
            }

            ol {
                list-style: decimal;
                list-style-position: inside;
            }

            .post-password-form {
                label {
                    width: 100%;
                    margin: 0;
                }

                p {
                    position: relative;

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

                input {
                    margin-top: 10px;
                }

                input[type="submit"] {
                    position: absolute;
                    width: auto;
                    height: 60px;
                    bottom: 0;
                    right: 0;
                    padding: 0 45px;
                    background-color: $primary-color;
                    @include transition(0.3s);

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

                input[type="password"] {
                    padding-right: 140px;
                }
            }

            p:last-of-type {
                margin: 0;
            }
        }

        .entry-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;
                margin-bottom: 4px;

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

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

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

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

                li {
                    margin-left: 20px;

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

            & > .row > .col-md-6 {
                &:last-child {
                    text-align: right;

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

                &:first-child {
                    text-align: left;
                }
            }
        }

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

            .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: $secondary-color;
                    word-break: break-word;

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

            .next-post {
                text-align: right;

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

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

            .related-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;

                .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;
                        word-break: break-word;

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

        .author-info-box {
            border: 2px solid #ededed;
            padding: 40px;
            font-size: 14px;
            display: flex;

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

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

            .author-avatar {
                max-width: 180px;
                flex: 0 0 180px;
                padding-top: 5px;

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

            .author-desc {
                padding-left: 40px;

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

            .written-by {
                font-size: 12px;
                margin-bottom: 8px;
                color: $primary-color;
                font-weight: 700;
            }

            .name {
                font-size: 36px;
                letter-spacing: -1px;
                text-transform: uppercase;
                line-height: 1;
                margin-bottom: 15px;

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

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

            .user-links {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                margin: -8px;

                li {
                    padding: 8px;
                }

                a {
                    color: #b3bed3;

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