/* Single Post Layout with Sidebar */
.single-post-layout {
    display: flex;
    gap: 24px;
    max-width: 1440px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.single-post-main {
    /* min-width: 0; */
    /* Prevents grid item from overflowing */
    width: 100%;
    display: flex;
    gap: 24px;
}

.single-post-sidebar {
    /* min-width: 0; */
    /* Prevents grid item from overflowing */
    width: 30%;
}

.single-post-sidebar .widget-area {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 200px;
}



.single-post-sidebar .widget:last-child {
    margin-bottom: 0;
}

.single-post-sidebar .widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #004a8f;
    padding-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 1fr 250px;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }

    .single-post-sidebar .widget-area {
        position: static;
        margin: 1rem;
        border-radius: 8px;
    }
}

.single-post-container {
    background: #fff;
    /* border: 1px solid #eee; */
    border-radius: 8px;
    font-family: inherit;
    width: 100%;
    /* font-size: 1.2em; */
}

.single-post-thumbnail img {
    width: 100%;
    aspect-ratio: 1.5;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1.5rem;
}

aside.single-post-sidebar .sp-like {
    margin: 0 0 17px;
}

.single-post-header {
    margin: 24px ۰;
}

.single-post-title {
    font-size: 1.6rem;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
}

.single-post-meta {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 1rem;

    font-family: VazirmatnFD, 'Vazirmatn';
}

.single-post-content {
    line-height: 2;
    margin: 24px 0;
}

.single-post-footer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 2rem;
}

.single-post-tags span {
    color: #555;
    font-weight: 500;
}

.single-post-tags a {
    background: #f0f0f0;
    color: #333;
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    margin-right: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
}



.wp-block-image {
    margin: 16px 0;
}

.wp-block-image img {
    border-radius: 8px;
}

.single-post-related h2.cat-post-slider-title {
    margin-bottom: 16px;
}

.single-post-related {
    margin: 60px auto;
}

@media (max-width: 768px) {
    .single-post-container {
        margin: 0;
        border: unset;
    }

    .single-post-thumbnail img {
        border-radius: unset;
        margin-top: -1px;
        margin-bottom: 16px;
    }

    .single-post-header {
        margin: 16px;
    }

    .single-post-title {
        font-size: 1.3em;
        margin-bottom: 14px;
    }


    .single-post-content {
        margin: 16px;
        font-size: 0.9em;
    }

    aside.single-post-sidebar {
        display: none;
    }

    .toc {
        margin: 0 16px;
    }




    h2.toc-header:after {
        display: block !important;
    }


    .toc.closed ul {
        display: none;
    }


    .toc.closed h2.toc-header {
        border: unset;
        min-width: 160px;
    }

    .toc.closed h2.toc-header:after {
        transform: rotate(135deg);
        margin-top: 4px;
    }

}

.toc {
    position: sticky;
    top: 200px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.toc ul {
    list-style: none;
    padding: 7px 18px;
    margin: 0;
    /* border: 1px solid #eee; */
    /* border-radius: 8px; */
    line-height: 2;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.toc li {
    margin-bottom: 0px;
    /* border-bottom: 1px solid #eee; */
    /* padding-bottom: 11px; */
    /* padding: 12px 16px 8px; */
    font-size: 14px;
    font-weight: 500;
}

.toc a {
    text-decoration: none;
    color: var(--gray-900);
    transition: 0.3s color;
    display: flex;
    position: relative;
    padding-right: 13px;
}

.toc li:last-child {
    border: unset;
    margin: 0 0 5px;
}

.toc a:hover {
    color: #004a8e;
}

.single-post-sidebar .ad-container {
    margin: -24px;
}

.ad-container.single_side_top {
    margin-bottom: 24px;
}

.ad-container.single_side_top img {
    border-radius: 8px 8px 0 0;
}


.ad-container.single_side_bottom {
    margin-top: 24px;
}

.ad-container.single_side_bottom img {
    border-radius: 0 0 8px 8px;
}

h3#comments,
h3#reply-title {
    font-size: 16px;
    margin: 0 0 24px 0;
    color: var(--color-primary);
}

.single-post-comments {
    margin-top: 32px;
    /* border-top: 2px solid #477bff; */
    padding-top: 3px;
    background: #fbfbfb;
    padding: 32px;
    border-radius: 8px;
}

ol.commentlist {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

li.comment {
    /* border: 1px solid var(--gray-100); */
    border-radius: 8px;
    padding: 16px;
    position: relative;
    background: #fff;
}

.reply {
    position: absolute;
    left: 16px;
    top: 16px;
    /* font-size: 12px; */
    /* padding: 4px 7px; */
    /* color: var(--gray-500); */
}

.reply a {
    font-size: 12px;
    padding: 4px 7px;
    color: var(--gray-500);
}

.reply a:hover {
    color: var(--color-primary);
}

span.says {
    display: none;
}

.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 11px;
}

cite.fn {
    font-style: normal;
    margin-top: 24px;
}

.comment-author.vcard img {
    border-radius: 4px;
    width: 41px;
}

.comment-meta.commentmetadata {
    position: absolute;
    top: 20px;
    right: 69px;
    font-size: 12px;
}

.comment-meta.commentmetadata a {
    color: var(--gray-500);
    font-family: 'VazirmatnFD', 'Vazirmatn';
}

.comment-body p {
    margin: 16px 0;
    font-size: 14px;
    line-height: 2;
}

li.comment.depth-2 {
    /* background: #fbfbfb; */
    border: unset;
    border: 1px solid var(--gray-100);
}

h3#reply-title {
    /* margin-top: 35px; */
}

form#commentform p.comment-notes {
    display: none;
}

form#commentform {
    display: flex;
    /* flex-direction: column; */
    gap: 16px;
    flex-wrap: wrap;
}

form#commentform p {
    display: flex;
    flex-direction: column;
}

p.comment-form-url {
    display: none !important;
}

p.comment-form-author {
    width: 47%;
}

p.comment-form-email {
    width: 50%;
}

p.comment-form-comment {
    width: 100%;
}

form#commentform p label {
    font-size: 12px;
    margin-bottom: 7px;
    margin-right: 16px;
}

div#respond {
    background: #fff;
    padding: 24px;
    margin-top: 32px;
}

p.comment-form-cookies-consent {
    display: none !important;
}

input#submit {
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    padding: 12px 24px;
}

textarea#comment {
    height: 100px;
}

p.logged-in-as {
    display: none !important;
}

h2.toc-header {
    font-size: 16px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 15px;
}

h2.toc-header:after {
    content: '';
    display: block;
    height: 10px;
    width: 10px;
    border-left: 2px solid;
    border-bottom: 2px solid;
    transform: rotate(-45deg);
    margin-top: -6px;
    display: none;
}


.toc a:before {
    content: '';
    width: 6px;
    height: 6px;
    background: #004a8e;
    border-radius: 2px;
    position: absolute;
    right: 0;
    top: 11px;
}

.toc .toc-level-h3 a:before {
    background: #bbbbbb;
}

.toc li.toc-level-h3 {
    font-weight: normal;
    margin-right: 16px;
    font-size: 14px;
}


li.toc-item.toc-level-h2:not(:first-child) {
    border-top: 1px solid #eee;
    padding-top: 9px;
}

.blog-cta {
    background-color: #95a1bbb0;
    padding: 16px;
    margin-top: 16px;
    border-radius: 8px !important;
}

.blog-cta strong {
    color: #222;
}

.widget.widget_block.widget_categories:before {
    content: 'دسته‌بندی‌های بلاگ';
    font-weight: 700;
}

ul.wp-block-categories-list.wp-block-categories {
    margin-top: 16px;
}
