/* Blockquote ---------------------*/
blockquote,
.wp-block-quote {
    font-size: 16px;
    line-height: 1.777;
    padding: 40px 16px 40px 60px;
    font-weight: 400;
    display: block;
    position: relative;
    background-color: transparent;
    margin: 50px 0 58px 0;
    color: $title-color;
    font-style: normal;
    border: 1px solid $body-color !important;
    border-radius: 30px;

    p {
        font-size: inherit;
        font-family: inherit;
        margin-top: -0.3em;
        margin-bottom: 9px;
        line-height: inherit;
        color: inherit;
        width: 100%;
        position: relative;
        z-index: 3;
        margin-bottom: 0;

        a {
            color: inherit;
        }
    }

    &:before {
        content: "";
        position: absolute;
        top: -1px;
        left: -1px;
        height: 50px;
        width: 33px;
        background-color: #fff;
    }

    &:after {
        content: "";
        position: absolute;
        top: -10px;
        left: 0px;
        height: 20px;
        width: 25px;
        background-color: $title-color;
        clip-path: path('M2.21945 18.2759C0.775335 16.6762 0 14.8819 0 11.9734C0 6.8553 3.44484 2.26804 8.45438 0L9.70641 2.01506C5.03057 4.65307 4.11643 8.07633 3.75189 10.2347C4.5048 9.82818 5.49044 9.68633 6.45645 9.77992C8.98576 10.0241 10.9795 12.1898 10.9795 14.8819C10.9795 16.2393 10.4625 17.5411 9.54219 18.5009C8.62192 19.4608 7.37376 20 6.07229 20C5.35256 19.9934 4.64126 19.8376 3.97981 19.5416C3.31836 19.2457 2.71996 18.8154 2.21945 18.2759ZM16.24 18.2759C14.7959 16.6762 14.0205 14.8819 14.0205 11.9734C14.0205 6.8553 17.4654 2.26804 22.4749 0L23.7269 2.01506C19.0511 4.65307 18.137 8.07633 17.7724 10.2347C18.5253 9.82818 19.511 9.68633 20.477 9.77992C23.0063 10.0241 25 12.1898 25 14.8819C25 16.2393 24.483 17.5411 23.5627 18.5009C22.6424 19.4608 21.3943 20 20.0928 20C19.3731 19.9934 18.6618 19.8376 18.0003 19.5416C17.3389 19.2457 16.7405 18.8154 16.24 18.2759Z');
    }

    cite {
        display: inline-block;
        font-size: 20px;
        line-height: 1;
        font-weight: 500;
        font-style: normal;
        font-family: $body-font;
        white-space: nowrap;
        position: absolute;
        bottom: -17px;
        left: 100px;
        background-color: $theme-color;
        color: $title-color;
        padding: 7px 45px 7px 20px;
        mask-image: url('data:image/svg+xml,<svg width="190" height="35" viewBox="0 0 190 35" preserveAspectRatio="none" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 5C0 2.23858 2.23858 0 5 0H184.337C188.394 0 190.762 4.57657 188.418 7.88809L170.728 32.8881C169.791 34.2126 168.269 35 166.647 35H5C2.23858 35 0 32.7614 0 30V5Z" fill="%23D9D9D9"/></svg>');
        mask-size: 100% 100%;
        border-radius: 8px;
        overflow: hidden;

        @include vxs {
            left: 30px;
        }

        br {
            display: none;
        }
    }

    &.is-large:not(.is-style-plain),
    &.is-style-large:not(.is-style-plain),
    &.style-left-icon,
    &.has-text-align-right { 
        padding: 40px;
        margin-bottom: 30px;
        @include sm {
            padding: 30px 20px;  
            font-size: 16px; 
        }
    }

    &.style-left-icon {
        font-size: 18px;
        color: $body-color;
        font-weight: 400;
        line-height: 1.556;
        background-color: $smoke-color;
        padding-left: 160px;

        &:before {
            right: unset;
            left: 56px;
            top: 60px;
            font-size: 6rem;
            font-weight: 400;
            line-height: 4rem;
            color: $theme-color;
            text-shadow: none;
        }

        cite {
            color: $title-color;

            &:before {
                background-color: $title-color;
                top: 8px;
            }
        }
    }

    &:not(:has(> cite)) {
        p:last-child {
            margin-bottom: -0.3em;
        }
    }

    p {
        &:has(cite) {
            padding-bottom: 10px;
        }

        cite {
            margin-top: 20px;
            margin-bottom: -0.5em;
            bottom: -32px;
        }
    }
}

.wp-block-pullquote {
    color: $body-color;
    padding: 0;
}

blockquote.has-very-dark-gray-color {
    color: $body-color !important;
}

.wp-block-column {

    blockquote,
    .wp-block-quote {
        &:before {
            height: 60px;
            font-size: 30px;
        }

        &.style-left-icon,
        &.is-large:not(.is-style-plain),
        &.is-style-large:not(.is-style-plain),
        &.has-text-align-right {
            padding: 100px 15px 30px 15px;
        }
    }
}

@include lg {

    blockquote,
    .wp-block-quote {
        font-size: 16px;
        padding: 40px 20px 30px 20px;

        &:before {
            width: 100px;
            font-size: 52px;
        }

        cite {
            margin-top: 23px;
        }

        &.style-left-icon,
        &.is-large:not(.is-style-plain),
        &.is-style-large:not(.is-style-plain),
        &.has-text-align-right {
           // padding: 40px 20px 30px 120px; 
        }
    }
}

@include sm {

    blockquote,
    .wp-block-quote {

        &.style-left-icon,
        &.is-large:not(.is-style-plain),
        &.is-style-large:not(.is-style-plain),
        &.has-text-align-right {
            //padding: 100px 20px 30px 20px;
        }
    }

    .wp-block-pullquote.is-style-solid-color blockquote {
        max-width: 90%;
    }
}

.blog-meta {
    display: block;

    span,
    a {
        display: inline-block;
        font-size: 14px;
        color: $body-color;
        font-family: $body-font;
        position: relative;
        margin-right: 20px;

        i {
            margin-right: 6px;
            color: $title-color;
        }

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

    .author {
        img {
            border-radius: 50%;
            width: 30px;
            height: 30px;
            margin-right: 6px;
        }
    }

    a:hover {
        color: $theme-color;
    }
}


@include lg {
    .blog-meta {

        span,
        a {
            margin-right: 6px;
            padding-right: 15px;
        }
    }
}

.blog-audio,
.blog-img,
.blog-video {
    img {
        transition: 0.4s ease-in-out;
    }
}

.blog-title {
    a {
        color: inherit;

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

.th-blog {
    margin-bottom: 30px;
}

.blog-inner-title {
    margin-top: -0.25em;
    margin-bottom: 25px;

    i {
        color: $theme-color;
        margin-right: 10px;
    }
}

@media (min-width: 1300px) {

    .page-single,
    .blog-single,
    .as-comments-wrap,
    .as-comment-form {
        margin-right: 16px;
    }
}

.blog-single {
    position: relative;
    background-color: #F7F7F7;
    margin-bottom: var(--blog-space-y, 40px);
    border-radius: 30px;
    overflow: hidden;

    &.has-post-thumbnail {
        background-color: transparent;
        border: 1px solid $gray-color;
    }

    .blog-title {
        margin-bottom: 20px;
        font-weight: 600;
    }

    .blog-text {
        margin-bottom: 27px;
    }

    .social-links {
        margin: 0;
        padding: 0;
        list-style-type: none;
        display: inline-block;

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

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

        a {
            display: inline-block;
            @include equal-size(36px);
            line-height: 36px;
            background-color: $smoke-color2;
            border: 1px solid $smoke-color;
            font-size: 16px;
            color: $title-color;
            text-align: center;
            border-radius: 100px;

            &:hover {
                color: $white-color;
                background-color: $theme-color;
                border-color: $theme-color;
            }
        }
    }

    .blog-meta {
        margin: -0.35em 0 7px 0;
    }

    .blog-content {
        padding: 40px;
        position: relative;
    }

    .blog-audio {
        line-height: 1;
    }

    .blog-audio,
    .blog-img,
    .blog-video {
        position: relative;
        overflow: hidden;
        background-color: $smoke-color;
        border-radius: 10px;
    }

    .blog-img {
        border-radius: 30px;

        img {
            border-radius: 30px;
        }

        .slick-arrow {
            --pos-x: 30px;
            --icon-size: 45px;
            border: none;
            background-color: $white-color;
            color: $theme-color;
            border-radius: 5px;
            box-shadow: none;

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

        .play-btn {
            --icon-size: 60px;
            position: absolute;
            left: 50%;
            top: 50%;
            margin: calc(var(--icon-size) / -2) 0 0 calc(var(--icon-size) / -2);
        }
    }

    .line-btn {
        display: block;
        max-width: fit-content;
        margin-bottom: -1px;
    }

    &:hover {
        .blog-img {
            .slick-arrow {
                opacity: 1;
                visibility: visible;
            }
        }
    }
}

.share-links-title {
    font-size: 18px;
    color: $title-color;
    font-family: $title-font;
    font-weight: 600;
    margin: 0 15px 0 0;
    display: inline-block;
}

.share-links {
    border-top: 1px solid $border-color;
    padding: 40px;

    @include sm {
        padding: 25px;
    }

    >.row {
        align-items: center;
        --bs-gutter-y: 20px;
    }

    .wp-block-tag-cloud,
    .tagcloud {
        display: inline-block;

        a {
            box-shadow: none;
            border: 1px solid #D8DDE1;

            &:hover {
                border-color: $theme-color;
            }
        }
    }
}

@include ml {
    .blog-single {

        .blog-title {
            font-size: 28px;
        }
    }

    .share-links {
        --blog-space-x: 20px;
    }
}


@include md {
    .blog-details .blog-single {
        --blog-space-x: 20px;
        --blog-space-y: 40px;
    }

    .share-links {
        --blog-space-x: 40px;
    }
}

@include sm {
    .share-links {
        --blog-space-x: 20px;
    }

    .blog-details .blog-single {
        --blog-space-x: 20px;
        --blog-space-y: 20px;
    }

    .blog-single {
        .blog-content {
            padding: 25px;
        }

        .blog-title {
            font-size: 24px;
            line-height: 1.3;
        }

        .blog-text {
            margin-bottom: 22px;
        }

        .blog-bottom {
            padding-top: 15px;
        }

        .share-links-title {
            font-size: 18px;
            display: block;
            margin: 0 0 10px 0;
        }
    }
}

.blog-text {
    line-height: 26px;
    margin-bottom: 25px;
}

.wp-block-query {
    .blog-single {
        padding: 40px;

        @include lg {
            padding: 25px;
        }
    }
}

.blog-single {
    .wp-block-pullquote.is-style-solid-color blockquote {
        background-color: #F7F7F7;

        &:before {
            background-color: #F7F7F7; 
        }
    }
}


.blog-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    border: 1px solid var(--gray-color);
    padding: 40px;
    margin-bottom: 40px;

    @include sm {
        padding: 25px;
    }

    .nav-text {
        font-size: 18px;
        font-family: $title-font;
        color: $title-color;
        display: inline-block;
        font-weight: 600;

        @include sm {
            font-size: 16px;
        }
    }

    .nav-btn {
        display: flex;
        align-items: center;
        gap: 20px;

        img {
            border-radius: 10px;
            @include lg {
                display: none; 
            }
        }

        &.next {
            flex-direction: row-reverse;
            text-align: right;
        }

        &:hover {
            .nav-text {
                color: $theme-color;
            }

            .nav-img {
                &:after {
                    transform: scale(1);
                }

                i {
                    transform: scale(1);
                }
            }
        }

        .nav-img {
            min-width: 85px;
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            transition: 0.4s;

            img {
                border-radius: 10px;
            }

            @include sm {
                display: none;
            }

            &:after {
                content: "";
                position: absolute;
                inset: 0;
                background-color: rgba(0, 0, 0, 0.7);
                transform: scale(0);
                transition: 0.4s ease-in-out;
            }

            i {
                position: absolute;
                inset: 0;
                text-align: center;
                line-height: 81px;
                font-size: 24px;
                color: var(--theme-color);
                transform: scale(0);
                z-index: 2;
                transition: 0.4s ease-in-out;
            }

            img {
                width: 100%;
                height: 100%;
                transform: scale(1.2);
                border-radius: 10px;
                transition: 0.4s ease-in-out;
            }
        }
    }

    .blog-next {
        text-align: right;
    }

    .blog-btn {
        font-size: 38px;
        color: $theme-color;

        @include sm {
            font-size: 25px;
        }

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

.blog-author {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    background-color: $smoke-color2;
    border-radius: 20px;
    overflow: hidden;

    .auhtor-img {
        width: 212px;
        min-height: 100%;
        background-color: #00ffff;
        text-align: center;
        display: grid;
        align-content: center;
        justify-content: center;

        @include sm {
            width: 100%;
            min-height: 200px;
        }

        img {
            width: 96px;
            height: auto;
            object-fit: cover;
            object-position: center center;
        }
    }

    .author-name {
        font-size: 24px;
        margin-top: -0.2em;
        margin-bottom: 16px;
    }

    .author-text {
        margin-bottom: 0;
    }

    .media-body {
        padding: 40px 40px 40px 40px;
        align-self: center;
    }
}

@include sm {
    .blog-author {
        flex-direction: column;

        .auhtor-img {
            img {
                width: 100%;
            }
        }
    }
}

@include xs {
    .blog-author .media-body {
        padding: 35px 20px 30px 20px;
    }
}