body{
    --bs-body-bg: var(--single_color);
}
/*****************************************************/
.blog-single-header{
    margin-top: 50px;
    position: relative;
}

.blog-single-header .bg_svg{
    margin: 0 calc(var(--bs-gutter-x) * -0.5);
}
.blog-single-header .bg_svg .shape-unit {
    filter: url(#smooth-join2);
    position: absolute;
    width: 100%;
    min-height: 310px;
    z-index: -1;
    height: 100%;
}
.blog-single-header .bg_svg .rect {
    position: absolute;
    background: var(--single_header_bg_color);
}
.blog-single-header .bg_svg .rect1 {
    width: 47%;
    height: 100px;
    right: 0;
    bottom: 15px;
    border-radius: 0;
    z-index: 2;
}
.blog-single-header .bg_svg .rect2 {
    width: calc(100% - 110px);
    height: calc(100% - 100px);
    right: 0;
    top: 0;
    z-index: 1;
}
.blog-single-header .d-flex{
    justify-content: space-around;
    /*align-items: center;*/
    min-height: 310px;
}
.blog-single-header .d-flex .post-info{
    padding: 30px 20px;
}
.blog-single-header .d-flex > div{
    max-width: 50%;
}
.blog-single-header .thumbnail img{
    border-radius: 24px;
    margin-top: 24px;
}
.blog-single-header .post-title{
    font-size: 24px;
    line-height: normal;
    font-weight: 900;
    color: var(--single_header_color);
    margin-bottom: 23px;
}
.blog-single-header .post-summary{
    font-size: 16px;
    font-weight: 500;
    color: var(--single_header_color);
    opacity: .7;
    margin-bottom: 32px;
}
.blog-single-header .post-meta{
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 0;
}
.blog-single-header .post-meta li{
    width: 50%;
    display: flex;
    align-items: center;
    gap: 16px;
}
.blog-single-header .post-meta li .icon{
    width: 40px;
    height: 40px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background-color: var(--single_header_color);
}
.blog-single-header .post-meta li span{
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: var(--single_header_color);
    opacity: .7;
}

/*****************************************************/
.blog-single-body{
    margin-top: 60px;
}
.blog-single-body > .d-flex{
    margin-bottom: 60px;
}
.post-content{
    font-size: 16px;
    line-height: normal;
    font-weight: 400;
    color: var(--single_body_color);
    text-align: justify;
}
.blog-single-body .post-content{
    background-color: var(--single_body_bg_color);
    border-radius: 40px;
    padding: 30px;
    margin-bottom: 20px;
}
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6{
    font-weight: bold;
    margin-bottom: 16px;
    line-height: normal;
    font-size: 20px;
}
.blog-single-body .post-related{
    margin-bottom: 60px;
}

/*****************************************************/
.title-box{
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.title-box .inner{
    display: flex;
    flex-direction: column;
}
.title-box .title{
    font-size: 20px;
    font-weight: 900;
    color: var(--black_color);
}
.title-box .subtitle{
    font-size: 16px;
    font-weight: 500;
    color: var(--black-70);
}
.title-box .icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 16px;
    border-radius: 100%;
    background-color: var(--secondary_color);
    color: var(--white_color);
}
.comments-box{
    padding: 30px;
    background-color: var(--white_color);
    border: 1px solid var(--black-10);
    border-radius: 32px;
    margin-bottom: 60px;
}
.comments-box > .commentlist{
    padding: 0;
    margin-bottom: 0;
}
.comments-box .comment{}
.comments-box .comment ul{
    padding-right: 45px;
    margin-bottom: 0;
}
.comments-box .comment-head{
    margin-bottom: 16px;
    gap: 16px;
}
.comments-box .comment-body{
    padding: 24px 27px;
    border-radius: 40px;
    background-color: var(--single_body_bg_color);
    color: var(--black-70);
    font-size: 16px;
    font-weight: 400;
    line-height: 40px;
}
.comments-box .comment-reply-title{
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1;
    color: var(--black-70);
    margin: 20px 0;
}
.comments-box .comment-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1;
    color: var(--black-70);
}
.comments-box .comment-meta .comment-date{
    font-size: 12px;
}
.comments-box .comment-meta .comment-vote button{
    color: var(--black-70);
}
.comments-box .comment-meta .comment-vote{
    font-size: 24px;
    display: flex;
    gap: 20px;
    color: var(--black-70);
}



.post-new-comment .bg_svg{
    position: relative;
}
.post-new-comment .title-box{
    padding-right: 10px;
}

.post-new-comment .comment-form-wrap.head-up-mask-wrap:before{
    height: calc(100% + 33px);
    background: var(var(--gray_color));
}
.post-new-comment .comment-form-wrap{
    background: transparent;
    padding: 35px 35px 52px;
    border-radius: 32px;
}
/*.post-new-comment .bg_svg .shape-unit {*/
/*    filter: url(#smooth-join2);*/
/*    position: absolute;*/
/*    width: 100%;*/
/*    min-height: 200px;*/
/*    z-index: -1;*/
/*    height: 100%;*/
/*    transform: translateY(-35px);*/
/*}*/
/*.post-new-comment .bg_svg .rect {*/
/*    position: absolute;*/
/*    background: var(--white_color);*/
/*}*/
/*.post-new-comment .bg_svg .rect1 {*/
/*    width: 250px;*/
/*    max-width: 65%;*/
/*    height: 100px;*/
/*    right: 0;*/
/*    top: 15px;*/
/*    border-radius: 0;*/
/*    z-index: 2;*/
/*}*/
/*.post-new-comment .bg_svg .rect2 {*/
/*    width: 100%;*/
/*    height: calc(100% - 100px);*/
/*    border-radius: 0;*/
/*    right: 0;*/
/*    top: 110px;*/
/*    z-index: 1;*/
/*}*/


.comment-respond .comment-form,
.post-new-comment .comment-form{
    display: flex;
    flex-wrap: wrap;
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-left: calc(-.5 * var(--bs-gutter-x));
    margin-right: calc(-.5 * var(--bs-gutter-x));

}

.comment-respond .comment-form>*,
.post-new-comment .comment-form>*{
     max-width: 100%;
     padding-left: calc(var(--bs-gutter-x) * .5);
     padding-right: calc(var(--bs-gutter-x) * .5);
     margin-top: var(--bs-gutter-y);
 }
.comment-respond .form-group,
.post-new-comment .form-group{
    background-color: var(--secondary-10);
    border-radius: 28px;
    padding: 16px;
    display: flex;
    align-items: start;
    gap: 16px;
}
.comment-respond .form-group label,
.post-new-comment .form-group label{
    padding: 0;
    font-size: 20px;
}
.comment-respond .form-control,
.post-new-comment .form-control{
    border: 0;
    outline: 0;
    border-radius: 0;
    padding: 0;
    background-color: transparent;
}
.comment-respond .form-control:focus-visible,
.post-new-comment .form-control:focus-visible{
    background-color: transparent;
}
.comment-form .form-control:focus{
    box-shadow: none;
}

.comment-respond textarea.form-control,
.post-new-comment textarea.form-control{
    border-radius: 0;
}
.comment-respond .comment-form-author,
.post-new-comment .comment-form-author{
    order: 1;
}
.comment-respond .comment-form-email,
.post-new-comment .comment-form-email{
    order: 2;
}
.comment-respond .comment-form-comment,
.post-new-comment .comment-form-comment{
    order: 3;
}
.comment-respond .comment-form-cookies-consent,
.post-new-comment .comment-form-cookies-consent{
    order: 5;
    width: 100%;
    margin: 10px;
    transform: translateY(100%);
}
.comment-respond .form-submit,
.post-new-comment .form-submit{
    order: 4;
    margin: -100px 0 0;
    width: 100%;

}
.comment-respond .form-submit button,
.post-new-comment .form-submit button{
    min-width: 200px;
    transform: translateY(73%);
    margin-right: auto;
    margin-left: 0;
}
.comment-respond .form-submit button i, .post-new-comment .form-submit button i{
    font-size: 24px;
}
.comment-respond .comment-form-comment, .post-new-comment .comment-form-comment{
    border-radius: 32px;

    -webkit-mask: linear-gradient(#fff 0 0), url(../img/exclude-big-left.png);
    -webkit-mask-position: 0 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-composite: xor; /* سافاری از exclude پشتیبانی نمی‌کنه، معادلش همینه */
    mask: linear-gradient(#fff 0 0), url(../img/exclude-big-left.png);
    mask-position: 0 100%;
    mask-repeat: no-repeat;
    mask-composite: exclude;
}

/*.comment-form .shape-unit2 {*/
/*    filter: url(#smooth-join2);*/
/*    position: absolute;*/
/*    width: calc(100% - 24px);*/
/*    height: 70px;*/
/*    z-index: -1;*/
/*    top: 0;*/
/*}*/

/*.comment-form .rect3 {*/
/*    width: calc(100% - 200px);*/
/*    height: 115px;*/
/*    right: 0;*/
/*    top: -13px;*/
/*    border-radius: 0;*/
/*    z-index: 2;*/
/*    background: var(--gray_color);*/
/*    position: absolute;*/
/*}*/
/*.comment-form .rect4 {*/
/*    width: 100%;*/
/*    height: calc(100% - 40px);*/
/*    border-radius: 0;*/
/*    top: 0;*/
/*    z-index: 1;*/
/*    background: var(--gray_color);*/
/*    position: absolute;*/
/*}*/
/*****************************************************/

.product-slider .btns-wrap{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    margin-top: 32px;
}
.product-slider .swiper-button-next,
.product-slider .swiper-button-prev {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-color: var(--white_color);
    position: relative;
    left: unset;
    right: unset;
    margin: 0;
    z-index: 1;
}

.product-slider .swiper-button-next:after,
.product-slider .swiper-button-prev:after {
    font-size: 16px;
    color: var(--black_color);
}

.product-slider .swiper-pagination{
    width: max-content;
    position: unset;
}
.product-slider .swiper-slide {
    height: auto;
}

/***************************************************** Category ***/
.archive-page{
    margin-top: 56px;
}
.archive-page .bg_svg{
    position: relative;
    z-index: 2;
}
.archive-page .bg_svg .shape-unit {
    filter: url(#smooth-join2);
    position: absolute;
    width: 100%;
    min-height: 200px;
    z-index: -1;
    height: 100%;
    transform: translateY(-35px);
}
.archive-page .bg_svg .rect {
    position: absolute;
    background: var(--gray_color);
}
.archive-page .bg_svg .rect1 {
    width: 350px;
    max-width: 85%;
    height: 100px;
    right: 0;
    top: 15px;
    border-radius: 0;
    z-index: 2;
}
.archive-page .bg_svg .rect2 {
    width: 100%;
    height: calc(100% - 100px);
    border-radius: 0;
    right: 0;
    top: 110px;
    z-index: 1;
}
.archive-page .post-slider .line{z-index: 1;}
.archive-page .post-slider .head-btns,
.archive-page .post-slider .head-post-slider{
    z-index: 3;
}
.archive-page .post-slider .head-btns .btn-outline-light{
    border: 1px solid var(--black-10);
}
.archive-page .post-slider .head .line{
    max-width: calc(100% - 500px);
    margin-right: auto;
}
.archive-page .post-slider .head{
    padding: 0 16px;
}
.archive-page .post-slider .body-post-slider{
    background: var(--gray_color);
    padding: 0 16px 24px;
    /*z-index: 3;*/
    border-radius: 32px;
}
.pagination{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px auto;
}
.pagination .nav-links{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pagination .page-numbers{
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background-color: var(--gray_color);
    font-size: 20px;
}
.pagination .page-numbers.current{
    background-color: var(--primary_color);
    color: var(--white_color);
}


@media (min-width: 1200px) {
    .archive-page .post-slider .body-post-slider .col-xl-4:nth-child(3n+2) {
        margin-top: 40px;
    }
}
/*****************************************************/
@media (max-width: 1199px) {
    .archive-page .post-slider .body-post-slider .row>*{
        padding-bottom: 24px;
    }
}
@media (max-width: 991px) {
    .blog-single-header .bg_svg .shape-unit{
        min-height: 365px;
    }
    .blog-single-header .d-flex > div{
        width: 100%;
        max-width: 100%;
    }
    .blog-single-header .thumbnail img{
        margin-top: 0;
        width: 100%;
    }
    .blog-single-header .bg_svg .rect2{
        width: 100%;
    }
    .blog-single-header .d-flex .post-info{
        padding: 30px 15px;
    }
}
@media (max-width: 767px){

    .archive-page .bg_svg .shape-unit{
        min-height: 500px;
    }
    .archive-page .bg_svg .rect2{
        top: 88px;
    }
    .blog-single-header .bg_svg .rect2{
        height: calc(100% - 80px);
    }
    .blog-single-header .bg_svg .rect1{
        height: 80px;
    }
    .archive-page .post-slider .head-btns{
        justify-content: center;
    }
    .blog-single-header .d-flex .post-info{
        padding: 30px 15px 80px;
    }
    .archive-page .post-slider .head-btns .btn{
        margin-right: 0;
    }
    .blog-single-header .thumbnail img{
        margin-top: -40px;
    }
}
@media (max-width: 575px){
    .archive-page .post-slider .body-post-slider{
        margin: 0;
        padding: 0 16px;
    }
}
@media (max-width: 480px){
    .blog-single-header .bg_svg .rect2{
        height: calc(100% - 40px);
    }
    .blog-single-header .bg_svg .rect1{
        height: 40px;
        bottom: 0;
    }
}
