.entry-title{
    font-size: 32px;
    font-weight: 500;
    color: var(--text_color);
    text-align: center;
    margin: 40px auto 20px;
}
.entry-summary{
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    margin: 0 auto 20px;
    max-width: 710px;
    color: var(--dark_gray_color);
}

.wp-block-heading-wrap {
    padding-right: 21px;
    height: 49px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    position: relative;
    margin-left: 15px;
    margin-bottom: 32px;
}

.wp-block-heading-wrap:before {
    content: " ";
    width: 9px;
    height: 9px;
    background: var(--secondary_color);
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.wp-block-heading-wrap:after {
    content: " ";
    width: 1px;
    height: 49px;
    background: var(--primary_color);
    position: absolute;
    right: 4px;
    bottom: 0;
    z-index: 1;
}
.wp-block-heading-wrap h2,
.wp-block-heading-wrap .wp-block-heading {
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    color: var(--primary_color);
    position: relative;
    display: table;
    width: fit-content;
}
.wp-block-heading-wrap h2:before,
.wp-block-heading-wrap .wp-block-heading:after {
    content: " ";
    background-color: var(--secondary_color);
    -webkit-mask-image: url(../img/3line-vector.svg);
    mask-image: url(../img/3line-vector.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    width: 28px;
    height: 27px;
    position: absolute;
    top: -11px;
    left: -20px;
    -webkit-mask-size: calc(100% - 10px) auto;
    mask-size: calc(100% - 10px) auto;
}


.wp-block-heading-wrap span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    font-family: Montserrat;
    color: color-mix(in srgb, var(--primary_color) 36%, transparent);
}
.entry-content,
.entry-content p{
    font-size: 16px;
    line-height: 30px;
    color: var(--text_color);
    margin-bottom: 32px;
    text-align: justify;
}

.entry-content h3,
.entry-content h4,
.entry-content h5{
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 24px;
    color: var(--primary_color);
}

.entry-content ul li{
    list-style: disc;
}
.entry-content ol li{
    list-style: decimal;
}
.entry-content li::marker{
    color: var(--secondary_color);
}
.entry-content img{
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 24px;
}
.entry-content .wp-block-image,
.entry-content .wp-block-list{
    margin-bottom: 32px;
}
.entry-content .wp-block-quote-is-layout-flow{
    font-family: 'peyda' !important;
}



.show-more {
    position: relative;
}
.show-more.collapsed:before{
    content: " ";
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg_color) 85%);
    position: absolute;
    bottom: 70px;
    left: 0;
}
.show-more .entry-content {
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.show-more.collapsed .entry-content {
    max-height: 180px;
}
.show-more-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px auto;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    color: var(--primary_color);
    border: 0;
}
.show-more-btn i {
    transition: transform 0.3s ease;
}
.show-more.expanded .show-more-btn i {
    transform: rotate(180deg);
}







.post-img-wrapper{
    display: block;
    margin: 20px auto;
    text-align: center;
}
.post-img-wrapper img{
    width: 100%;
    height: auto;
    border-radius: 24px;
}
.wp-block-image .aligncenter .wp-element-caption{
    text-align: center;
}

.entry-meta{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}
.entry-meta .meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}
.entry-meta .meta li{
    padding: 0 12px;
    color: var(--dark_gray_color);;
    border-left: 1px solid #cbcbcb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.entry-meta .meta li:last-child{
    border: 0;
    padding-left: 0;
}
.entry-meta .meta li i{
    display: block;
    font-size: 20px;
    height: 20px;
}
.entry-meta .meta li span{
    display: block;
    font-size: 14px;
    line-height: 1;
}
.entry-meta .author{
    display: flex;
    align-items: center;
    gap: 10px;
}
.entry-meta .author img{
    border-radius: 100%;
}
.entry-meta .author div{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.entry-meta .author b{
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: var(--text_color);
    display: block;
}
.entry-meta .author span{
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: var(--dark_gray_color);
    display: block;
}
.with-sidebar .entry-title{
    text-align: right;
    font-size: 24px;
}
.with-sidebar .entry-summary{
    text-align: right;
}
.with-sidebar .post-img-wrapper{
    padding-left: 20px;
}
/******************************************************************************************//* Related Posts */
.related-posts{
    margin: 100px 0;
}
.related-posts.vertical{
    margin: 0;
    padding-right: 20px;
}
.related-posts.vertical .article-box{
    width: 100%;
}
.related-post-list{
    margin-top: 40px;
}
.related-post-list .col-12{
    padding-left: 20px;
}
.related-post-list .col-12:last-child{
    padding-left: 0;
}

.article-box{
    margin-bottom: 10px;
}
.article-box *{
    transition: all .2s ease-in-out;
}
.article-box .article-img{
    width: 100%;
    height: auto;
    border-radius: 24px;
    margin-bottom: 16px;
}
.article-box .article-link{
    display: block;
}
.article-box .article-cat{
    background: color-mix(in srgb, var(--primary_color) 6%, transparent);
    color: var(--primary_color);
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    padding: 10px 12px;
}
.article-box .article-title{
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 10px 24px;
    color: var(--text_color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article-box .article-summary{
    font-size: 16px;
    font-weight: 400;
    color: var(--dark_gray_color);
    padding: 0 10px 24px;
}

.article-box .article-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 10px;
}
.article-box .article-meta button{
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: var(--primary_color);
    color: var(--bg_color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.article-box .article-meta button i{
    font-size: 18px;
    height: 18px;
    transform: rotate(45deg);
}
.article-box .article-meta .author{
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-box .article-meta .author img{
    width: 46px;
    border-radius: 100%;
}
.article-box .article-meta .author div{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.article-box .article-meta .author b{
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: var(--text_color);
    display: block;
    white-space: nowrap;
}
.article-box .article-meta .author span{
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: var(--dark_gray_color);
    display: block;
}
.article-box:hover .article-img{
    box-shadow: 0 17px 0 -10px var(--secondary_color);
}
.article-box:hover .article-meta button{
    background: var(--secondary_color);
}
.article-box:hover .article-meta button i{
    transform: rotate(0);
}
/******************************************************************************************//* Comments */
.comments-area .comments-area-title{
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.commentlist{
    padding-right: 0;
}
.commentlist .comment-item{
    padding: 16px 24px;
}
.commentlist .comment-item.depth-1{
    margin-bottom: 16px;
    border-bottom: 1px solid #DDDDDD;
}
.commentlist .comment-item.depth-1:last-child{
    border-bottom: 0;
}
.comment-item-box{
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.commentlist .comment-item.depth-2 > .comment-item-box{
    background: #ffffff;
    padding: 8px;
    border-radius: 12px;
}
.comment-item-box .comment-head{
    height: 64px;
    margin-bottom: 12px;
}
.comment-item-box .comment-head b{
    display: inline-block;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 500;
}
.comment-item-box .comment-head .comment-date{
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dark_gray_color);
}
.comment-item-box .comment-head .comment-date i{
    font-size: 20px;
    height: 20px;
}
.comment-item-box .comment-head .comment-date span{
    font-size: 14px;
    font-weight: 400;
}
.comment-item-box .comment-body{
    width: calc(100% - 64px);
    padding-right: 8px;
}
.comment-item-box .comment-vote{
    width: max-content;
    margin: 0 auto 0 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--dark_gray_color);
}
.comment-item-box .comment-vote .comment-reply-link,
.comment-item-box .comment-vote button{
    color: var(--dark_gray_color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.comment-item-box .comment-vote i{
    font-size: 24px;
    height: 24px;
}
.comment-item-box .comment-vote .comment-reply-link:hover,
.comment-item-box .comment-vote button:hover{
    color: #0073ff;
}
.comment-item-box .comment-text p{
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
}


.new-comment-title{
    position: relative;
    margin-bottom: 32px;
}
.new-comment-title .dot-line{
    content: " ";
    display: block;
    width: calc(50% - 76px);
    height: 1px;
    --line-color: color-mix(in srgb, var(--dark_gray_color) 24%, transparent);
    background: var(--line-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.new-comment-title .dot-line:before{
    content: " ";
    width: 5px;
    height: 5px;
    background: var(--line-color);
    border-radius: 100%;
    position: absolute;
    bottom: -2px;
    left: -3px;
}
.new-comment-title .dot-line:after{
    content: " ";
    width: 5px;
    height: 5px;
    background: var(--line-color);
    border-radius: 100%;
    position: absolute;
    bottom: -2px;
    right: -3px;
}
.new-comment-title .dot-line.right{
    right: 3px;
}
.new-comment-title .dot-line.left{
    left: 3px;
}
.new-comment-title .wp-block-heading-wrap:after,
.new-comment-title .wp-block-heading-wrap:before{
    content: unset;
}
.new-comment-title .wp-block-heading-wrap{
    width: 140px;
    height: 57px;
    margin: 0 auto;
    padding-right: 0;
    align-items: center;
}

.comment-respond form{
    padding: 40px 65px;
}
.comment-respond form label{
    background: var(--bg_color);
    color: var(--text_color);
    font-size: 12px;
    position: absolute;
    top: -12px;
    right: 10px;
    padding: 0 5px;
    z-index: 2;
}
.comment-respond form textarea,
.comment-respond form input:not([type=submit]){
    border: 0;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    color: var(--dark_gray_color);
}
.comment-respond form .col-12{
    padding: calc(.5 * var(--bs-gutter-x));
}
.comment-respond form .form-group{
    margin: 0;
    border: 1px solid #b9b9b9;
    border-radius: 12px;
    padding: 12px;
    display: block;
    position: relative;
}
.comment-respond form .comment-form-comment {
   order: 3;
   margin-top: 16px;
}

.comment-respond form .form-submit{
    text-align: left;
    margin-top: 28px;
    order: 4;
}
.comment-respond form .btn{
    width: 215px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.comment-navigation{
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark_gray_color);
}
.comment-navigation i{
    margin-left: 6px;
    color: var(--dark_gray_color);
}
.comment-reply-title{
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/******************************************************************************************//* Category */
.blog-cat .entry-title{
    font-size: 32px;
    margin: 20px auto;
    text-align: center;
}
.blog-cat .entry-head-title{
    margin-top: 40px;
    line-height: 1;
    display: block;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: var(--secondary_color);
}
.blog-cat .entry-summary{
    margin-bottom: 80px;
}
.blog-cat .entry-content{
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #d9d9d9;
}
.post-list.row{
    --bs-gutter-x: 10px;
    --bs-gutter-y: 5px;
}
.post-list .col-12{
    padding: var(--bs-gutter-y) var(--bs-gutter-x);
}
.post-list .sticky-post{
    width: 100% !important;
}
.post-list .sticky-post .article-box .article-link{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.post-list .sticky-post .article-box .article-cat{
    display: none;
}
.post-list .sticky-post .article-box .article-link .article-inner{
    width: calc(50% - 5px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.post-list .sticky-post .article-box .article-link img{
    width: calc(50% - 5px);
    margin: 0;
}
.post-list .sticky-post .article-box .author img{
    width: 46px;
}

.right-sidebar{
    padding-left: 20px;
    position: relative;
}

.right-sidebar .widget_block{
    margin-bottom: 70px;
}
.right-sidebar .widget_block .wp-block-search__button-inside .wp-block-search__inside-wrapper{
    border: 1px solid var(--dark_gray_color);
    border-radius: 100px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg_color);
    position: relative;
}
.right-sidebar .widget_block .wp-block-search__button-inside input[type=search]{
    border: 0;
    outline: none;
    background: transparent;
    line-height: 1;
    padding: 0;
    width: calc(100% - 30px);
    color: var(--dark_gray_color);
    font-size: 16px;
}
.right-sidebar .widget_block .wp-block-search__button-inside label{
    display: none;
}
.right-sidebar .widget_block .wp-block-search__button-inside button{
    border: 0;
    padding: 0;
    color: var(--primary_color);
    font-size: 24px;
    background: transparent;
    line-height: 1;
}

.ws-post-cats-filter .dropdown-menu .widgettitle,
.right-sidebar .widget_block .widgettitle{
    display: block;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--primary_color);
}
.ws-post-cats-filter .dropdown-menu ul,
.right-sidebar .widget_block ul{
    margin: 0;
    max-height: 540px;
    overflow-y: auto;
    scrollbar-color: var(--primary_color) transparent;
    scrollbar-width: thin;
    position: relative;
    scrollbar-gutter: stable both-edges; /* جلوگیری از جابجایی محتوا هنگام نمایش اسکرول */
    direction: ltr; /* اسکرول‌بار همیشه سمت راست */
}

.ws-post-cats-filter .dropdown-menu ul::-webkit-scrollbar,
.right-sidebar .widget_block ul::-webkit-scrollbar{
    width: 3px;
    border-radius: 0 !important;
}
.ws-post-cats-filter .dropdown-menu ul::-webkit-scrollbar-track,
.right-sidebar .widget_block ul::-webkit-scrollbar-track{
    background: transparent;
    width: 1px;
}
.ws-post-cats-filter .dropdown-menu ul::-webkit-scrollbar-thumb,
.right-sidebar .widget_block ul::-webkit-scrollbar-thumb{
    background-color: var(--primary_color);
    border-radius: 0 !important;
    width: 3px;
    min-height: 38px !important;
    height: 38px !important;
}
.ws-post-cats-filter .dropdown-menu ul::-webkit-scrollbar-button,
.right-sidebar .widget_block ul::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
    opacity: 0;
}
.ws-post-cats-filter .dropdown-menu ul::-webkit-scrollbar-track-piece,
.right-sidebar .widget_block ul::-webkit-scrollbar-track-piece{
    background: transparent;
}

.ws-post-cats-filter .dropdown-menu .wp-widget-group__inner-blocks,
.right-sidebar .widget_block .wp-widget-group__inner-blocks{
    position: relative;
}
.ws-post-cats-filter .dropdown-menu .wp-widget-group__inner-blocks:before,
.right-sidebar .widget_block .wp-widget-group__inner-blocks:before{
    content: "";
    background: #d9d9d9;
    width: 1px;
    height: 100%;
    position: absolute;
    top: -2px;
    right: 5px;
}
.ws-post-cats-filter .dropdown-menu .wp-widget-group__inner-blocks:after,
.right-sidebar .widget_block .wp-widget-group__inner-blocks:after{
    content: "";
    position: absolute;
    top: -3px;
    right: 0;
    width: 11px;
    height: 11px;
    background: var(--secondary_color);
    z-index: 2;
}

.ws-post-cats-filter .dropdown-menu li,
.right-sidebar .widget_block li{
    font-size: 16px;
    font-weight: 400;
    color: var(--dark_gray_color);
    margin-bottom: 16px;
}
.ws-post-cats-filter .dropdown-menu li.current-cat,
.right-sidebar .widget_block li.active{
    color: var(--primary_color);
    font-weight: 500;
}
p.not-found{
    text-align: center;
    padding: 16px;
}


.ws-post-cats-filter .dropdown .btn{
    width: 100%;
    height: 48px;
    border: 1px solid var(--dark_gray_color);
    border-radius: 100px;
    padding: 14px 16px;
    color: var(--dark_gray_color);
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ws-post-cats-filter .dropdown .btn i{
    font-size: 20px;
    margin-left: 8px;
}
.ws-post-cats-filter .dropdown .btn.dropdown-toggle:after{
    margin: 0;
}
.ws-post-cats-filter .dropdown-menu{
    background: var(--bg_color);
    box-shadow: none;
    transform: translateY(50px) !important;
    width: 100%;
    border-radius: 0;
    padding-top: 40px;
}




















/******************************************************************************************//* Responsive */


@media (max-width: 991px) {
    .related-posts.vertical{
        padding: 40px 0 0;
    }
    .with-sidebar .post-img-wrapper{
        padding: 0;
    }
    .related-posts.vertical .article-box{
        width: 50%;
        padding-left: 20px;
    }
    .related-posts.vertical .article-box:nth-child(2n){
        padding-left: 0;
    }
    .blog-cat .entry-summary {
        margin-bottom: 40px;
    }
    .right-sidebar{
        padding: 0;
        margin-bottom: 40px;
    }
    .ws-post-cats-filter .dropdown-menu,
    .right-sidebar .widget_block{
        margin-bottom: 32px;
    }
    .ws-post-cats-filter .dropdown-menu ul,
    .right-sidebar .widget_block ul{
        height: 200px;
    }
    .ws-post-cats-filter .dropdown-menu .widgettitle,
    .right-sidebar .widget_block .widgettitle{
        display: block;
        text-align: center;
    }
}
@media (max-width: 767px) {

    .post-list .sticky-post .article-box .article-link .article-inner,
    .post-list .sticky-post .article-box .article-link > img{
        width: 100%;
    }
    .related-posts{
        margin: 50px 0;
    }
    .blog-cat .entry-title,
    .entry-title{
        font-size: 24px;
    }
    .with-sidebar .entry-title{
        font-size: 24px;
    }
    .related-post-list .col-12{
        padding: 0;
    }
    .related-posts.vertical .article-box{
        width: 100%;
        padding: 0;
    }
    .commentlist .children{
        padding-right: 1rem;
    }
    .comment-item-box .comment-head{
        height: 54px;
    }
    .comment-item-box .img-wrap img{
        width: 54px;
        height: auto;
    }
    .comment-item-box .comment-body{
        width: calc(100% - 54px);
        padding-right: 0;
    }
    .comment-item-box .comment-text p{
        font-size: 14px;
    }
    .comment-respond form {
        padding: 32px;
    }
}
@media (max-width: 575px) {
    .entry-title{
        font-size: 18px;
        margin: 20px auto;
    }
    .with-sidebar .entry-title{
        font-size: 18px;
    }
    .entry-meta{
        flex-direction: column;
        gap: 10px;
    }
    .comment-item-box .comment-head {
        height: 54px;
        flex-direction: column;
        align-items: start !important;
    }
    .commentlist .comment-item{
        padding: 16px;
    }
    .comment-respond form {
        padding: 20px;
    }
}