.blog-archive__header,
.blog-single__header {
    margin: 40px 0
}

.blog-layout__content {
    max-width: 73%
}

.blog-search-form,
.blog-category-filter {
    width: 100%;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .08);
    padding: 1.5px;
    border-radius: var(--adkh-border-radius);
    border: none;
    z-index: 1;
    perspective: 800px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.8s ease;
    position: relative;
}


.blog-search-form::before,
.blog-search-form::after,
.blog-category-filter::before,
.blog-category-filter::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--adkh-border-radius);
    backface-visibility: hidden;
    transition: transform 0.8s ease;
}

.blog-search-form::before,
.blog-category-filter::before {
    background-image: linear-gradient(180deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
    transform: rotateY(0deg);
}

.blog-search-form::after,
.blog-category-filter::after {
    background-image: linear-gradient(0deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -2;
    transform: rotateY(-90deg);
}

.blog-search-form:hover::before,
.blog-category-filter:hover::before {
    transform: rotateY(90deg);
}

.blog-search-form:hover::after,
.blog-category-filter:hover::after {
    transform: rotateY(0deg);
}


.blog-search-input {
    width: 100%;
    height: 60px;
    border-radius: var(--adkh-border-radius);
    padding: 16px;
    border: none;
    background: #fff;
    outline: none;
    font-size: inherit;
    font-family: inherit
}

.list-unstyled {
    width: 100%;
    border-radius: var(--adkh-border-radius);
    padding: 16px;
    border: none;
    background: #fff;
    outline: none;
    font-size: inherit;
    font-family: inherit;
    margin: 0
}

.blog-search-button {
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    color: var(--adkh-primary-color);
    cursor: pointer;
    left: 16px;
    top: 20px
}

.blog-search-button:hover {
    opacity: .75
}

.section-divider {
    height: 1px;
    border: none;
    background-color: var(--adkh-primary-color)
}

span.badge.bg-secondary {
    color: var(--adkh-primary-color);
    width: 24px;
    height: 24px;
    border: 1px solid var(--adkh-primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    font-size: 14px;
    transition: all 300ms ease
}

.blog-category-filter li {
    font-size: 15px;
    transition: all 300ms ease
}

.blog-category-filter li a {
    transition: all 300ms ease
}

.blog-category-filter li:hover a {
    color: var(--adkh-primary-color)
}

.blog-category-filter li:hover span.badge.bg-secondary {
    background: var(--adkh-primary-color);
    color: #fff
}

.blog-category-filter h3 {
    font-size: 17px;
    font-weight: 700
}

.blog-card {
    max-width: 31.3%;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .08);
    padding: 1.5px;
    border-radius: var(--adkh-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.8s ease;
    perspective: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card::before,
.blog-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--adkh-border-radius);
    backface-visibility: hidden;
    transition: transform 0.8s ease;
}

.blog-card::before {
    background-image: linear-gradient(180deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
    transform: rotateY(0deg);
}

.blog-card::after {
    background-image: linear-gradient(0deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -2;
    transform: rotateY(-90deg);
}

.blog-card:hover::before {
    transform: rotateY(90deg);
}

.blog-card:hover::after {
    transform: rotateY(0deg);
}

.blog-card__inner {
    background: #fff;
    border-radius: var(--adkh-border-radius);
    transition: all .3s ease;
    padding: 20px
}

.blog-card__image img {
    width: 100%;
    max-height: 134px;
    object-fit: cover;
    height: 100vh;
    border-radius: 16px;
    filter: grayscale(100%);
    transition: filter .3s ease
}

.blog-card__inner:hover .blog-card__image img {
    filter: grayscale(0%)
}

.blog-card__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.blog-card__title a {
    font-size: 18px;
    font-weight: 700;
    line-height: 25px
}

.blog-card__readmore {
    background: #fff;
    color: var(--adkh-primary-color);
    border-radius: var(--adkh-button-border-radius);
    font-weight: 600;
    border: 1px solid var(--adkh-primary-color);
    transition: all 300ms ease;
    font-size: 15px;
    font-weight: 500
}

.blog-card__readmore:hover {
    background: var(--adkh-primary-color);
    color: #fff;
    font-weight: 600;
    border: 1px solid var(--adkh-primary-color)
}

.blog-card__readmore svg path {
    transition: all 300ms ease
}

.blog-card__readmore:hover svg path {
    stroke: #fff
}

.blog-card__share {
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    cursor: pointer
}

.blog-card__share:hover svg {
    opacity: .8
}

.blog-filters {
    border: 1px solid var(--adkh-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    border-radius: var(--adkh-button-border-radius);
    position: relative
}

.custom-select {
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--adkh-primary-color)
}

.custom-select .blog-filters__icon {
    pointer-events: none
}

.custom-select.open .custom-options {
    max-height: 300px;
    min-width: 155px;
    max-width: 155px;
    opacity: 1
}

.custom-options {
    position: absolute;
    top: 115%;
    left: auto;
    right: -1px;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
    z-index: 10;
    border-radius: 8px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .08);
    list-style: none;
    padding: 0;
    padding: 10px;
    opacity: 0
}

.custom-options li {
    padding: 8px 12px;
    cursor: pointer;
    color: var(--adkh-body-text-color);
    font-size: 14px;
    border-radius: 8px
}

.custom-options li:hover {
    background-color: var(--e-global-color-accent);
    color: var(--adkh-primary-color)
}

.blog-container {
    margin: 0 auto;
    margin-top: -186px
}

.single-blog-thumbnail img {
    width: 100%;
    height: 370px;
    object-fit: cover;
    border-radius: var(--adkh-border-radius);
    filter: grayscale(100%);
    transition: filter .3s ease
}

.single-blog-thumbnail:hover img {
    filter: grayscale(0%)
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    margin-top: 30px
}

.blog-meta {
    font-size: 14px;
    font-weight: 400
}

.blog-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 33px
}

p.blog-items {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-direction: row
}

.social-actions button {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer
}

.social-actions button span {
    transition: all 300ms
}

.social-actions button:hover span {
    color: var(--adkh-secondary-color)
}

.social-actions button svg path {
    transition: all 300ms
}

.social-actions button:hover svg path {
    stroke: var(--adkh-secondary-color)
}

.social-column {
    left: 0;
    top: -60px
}

.dislike-count,
.like-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--adkh-primary-color);
    font-family: 'IRANSansX'
}

.new-posts,
.comments {
    font-size: 24px;
    font-weight: 700
}

.blog-content {
    min-height: 200px
}

.adlkh-comment-wrapper {
    border-radius: var(--adkh-border-radius);
    background: linear-gradient(180deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .08);
    padding: 1px
}

.comments-wrapper {
    background: #fff;
    border-radius: var(--adkh-border-radius)
}

.comments-wrap {
    padding: 26px
}

.comment-body {
    background: var(--adkh-partially-color);
    padding: 20px;
    border-radius: 12px
}

.comment-body * {
    font-size: 16px;
    font-weight: 400;
    line-height: 30px
}

.comment-header h6 {
    font-size: 18px;
    font-weight: 700
}

.user-role {
    font-size: 16px;
    font-weight: 400;
    color: var(--adkh-primary-color)
}

.comment-reply-link span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--adkh-secondary-color);
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px
}

form.custom-comment-form {
    border-radius: var(--adkh-border-radius);
    background: linear-gradient(180deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .08);
    padding: 1px
}

.custom-comment-form-wrapper {
    background: #fff;
    width: 100%;
    border-radius: var(--adkh-border-radius)
}

.custom-comment-form-wrap {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px
}

textarea[name="comment"] {
    width: calc(100% - 30px);
    min-width: calc(100% - 30px);
    max-width: calc(100% - 30px);
    border-radius: 12px;
    background: var(--adkh-partially-color);
    min-height: 140px;
    padding: 15px;
    border: none;
    outline: none;
    font-family: 'IRANSansX';
    font-size: 15px;
    font-weight: 400
}

#comment_phone,
#author {
    width: calc(100% - 30px);
    border-radius: 12px;
    background: var(--adkh-partially-color);
    height: 50px;
    padding: 0 15px;
    border: none;
    outline: none;
    font-family: 'IRANSansX';
    font-size: 15px;
    font-weight: 400
}

#cancel-reply {
    font-family: 'IRANSansX';
    color: var(--adkh-primary-color);
    background: none;
    border: none;
    cursor: pointer
}

.comment-phone-wrapper,
.author-wrapper {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.comment-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative
}

.comment-wrapper button {
    font-family: 'IRANSansX';
    background: transparent;
    border: 1px solid var(--adkh-primary-color);
    border-radius: var(--adkh-button-border-radius);
    height: 40px;
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    bottom: 15px;
    left: 15px;
    color: var(--adkh-primary-color);
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.children {
    padding-right: 20px
}

.avatar.avatar-57.photo {
    border-radius: 10px
}

.copy-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, .75);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 10
}

.copy-toast.show {
    opacity: 1
}

.blog-content-header__title {
    display: none;
}

@media screen and (max-width : 768px) {
    .blog-layout__content {
        max-width: 100%;
    }

    .blog-card {
        max-width: 100%;
    }

    .custom-select.open .custom-options {
        min-width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 15px;
    }

    #blog_bg {
        display: none;
    }

    .single-blog-thumbnail {
        margin-bottom: 20px;
    }

    .post-title {
        margin-top: 10px;
    }

    .single-blog-thumbnail img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .blog-container {
        margin: 0 auto !important;
    }

    .social-column {
        display: none;
    }

    .blog-content p {
        text-align: justify;
    }

    .comment-body * {
        font-size: 15px;
        text-align: justify;
    }

    .comment-phone-wrapper,
    .author-wrapper {
        width: 100%;
    }
}

@media screen and (max-width : 1024px) and (min-width : 769px) {
    .blog-layout__content {
        max-width: 100%;
    }

    .blog-card {
        max-width: auto;
        margin-right: 10px !important;
        margin-bottom: 20px !important;
    }

    .blog-card__image img {
        max-height: 120px !important;
    }


    #blog_bg {
        width: 100%;
        height: 100%;
    }


}

@media screen and (max-width : 1366px) and (min-width : 1025px) {

    .blog-card {
        max-width: 31%;
    }

}