/* -----------------------------------------------------
   بردکرامب
------------------------------------------------------ */
.single-breadcrumb {
    background: var(--rm-hero-bg, #eef1fa);
    padding: 18px 0;
}

.single-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 13.5px;
}

.single-breadcrumb .breadcrumb-item a {
    color: var(--rm-text-gray, #6b7280);
}

.single-breadcrumb .breadcrumb-item.active {
    color: var(--rm-navy, #3d4767);
    font-weight: 600;
}

.single-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    float: none;
    padding-left: .5rem;
    padding-right: .5rem;
}

/* -----------------------------------------------------
   بخش اصلی
------------------------------------------------------ */
.single-content-section {
    padding: 50px 0 80px;
    background: var(--rm-hero-bg, #eef1fa);
}

.single-row {
    row-gap: 40px;
}

/* -----------------------------------------------------
   کانتنت پست
------------------------------------------------------ */
.entry-cat-badge {
    display: inline-block;
    background: rgba(242, 182, 50, .12);
    color: var(--rm-gold, #f2b632);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.entry-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    line-height: 1.6;
    margin-bottom: 18px;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef0f6;
}

.entry-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--rm-text-gray, #6b7280);
}

.entry-meta-item i {
    color: var(--rm-gold, #f2b632);
}

.entry-thumb {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 32px;
}

/* -----------------------------------------------------
   تایپوگرافی محتوای پست (h2/h3/h4/p/ul/ol/blockquote/table)
------------------------------------------------------ */
.entry-body {
    font-size: 15.5px;
    line-height: 2.1;
    color: #454b63;
}

.entry-body p {
    margin-bottom: 22px;
}

.entry-body a {
    color: var(--rm-navy, #3d4767);
    font-weight: 600;
    text-decoration: underline;
}

.entry-body h2 {
    font-size: 23px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    margin: 36px 0 18px;
}

.entry-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--rm-navy, #3d4767);
    margin: 30px 0 16px;
}

.entry-body h4 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--rm-navy, #3d4767);
    margin: 26px 0 14px;
}

.entry-body ul,
.entry-body ol {
    margin: 0 0 24px;
    padding-right: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.entry-body ul li,
.entry-body ol li {
    font-size: 15px;
}

.entry-body hr {
    border: 0;
    border-top: 1px solid #eef0f6;
    margin: 30px 0;
}

.entry-body blockquote {
    background: var(--rm-hero-bg, #eef1fa);
    border-right: 4px solid var(--rm-gold, #f2b632);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 26px 0;
}

.entry-body blockquote p {
    margin: 0;
    font-size: 15px;
    color: var(--rm-navy, #3d4767);
    font-weight: 600;
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    font-size: 14px;
}

.content-body table td {
    padding: 12px 16px;
    border: 1px solid #eef0f6;
}

.content-body table tr:first-child {
    background: var(--rm-navy, #3d4767);
    color: var(--rm-white, #fff);
    font-weight: 700;
}

/* -----------------------------------------------------
   تگ‌ها / اشتراک‌گذاری
------------------------------------------------------ */
.entry-tags,
.entry-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.entry-tags-label,
.entry-share-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--rm-navy, #3d4767);
}

.entry-tags a {
    background: var(--rm-hero-bg, #eef1fa);
    color: var(--rm-navy, #3d4767);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 16px;
    transition: var(--rm-transition, all .3s ease);
}

.entry-tags a:hover {
    background: var(--rm-gold, #f2b632);
    color: var(--rm-navy-deep, #2c3352);
}

.entry-share-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rm-hero-bg, #eef1fa);
    color: var(--rm-navy, #3d4767);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--rm-transition, all .3s ease);
}

.entry-share-link:hover {
    background: var(--rm-navy, #3d4767);
    color: var(--rm-white, #fff);
}

/* -----------------------------------------------------
   باکس نویسنده
------------------------------------------------------ */
.author-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--rm-hero-bg, #eef1fa);
    border-radius: 16px;
    padding: 24px;
    margin-top: 34px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.author-name {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    margin-bottom: 6px;
}

.author-desc {
    font-size: 13.5px;
    color: var(--rm-text-gray, #6b7280);
    line-height: 1.9;
    margin: 0;
}

/* -----------------------------------------------------
   ناوبری پست قبلی/بعدی
------------------------------------------------------ */
.entry-nav {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.entry-nav-link {
    flex: 1 1 240px;
    background: var(--rm-white, #fff);
    border: 1px solid #eef0f6;
    border-radius: 14px;
    padding: 16px 20px;
    transition: var(--rm-transition, all .3s ease);
}

.entry-nav-link:hover {
    border-color: var(--rm-gold, #f2b632);
}

.entry-nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--rm-text-gray, #6b7280);
    margin-bottom: 6px;
}

.entry-nav-next .entry-nav-label {
    justify-content: flex-end;
}

.entry-nav-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--rm-navy, #3d4767);
}

.entry-nav-next {
    text-align: left;
}

/* -----------------------------------------------------
   دیدگاه‌ها - بر اساس خروجی استاندارد wp_list_comments() و
   comment_form() (کلاس‌بندی هسته‌ی وردپرس، همون کدی که فرستادید)
------------------------------------------------------ */
.comments-area {
    margin-top: 46px;
    padding-top: 40px;
    border-top: 1px solid #eef0f6;
}

.comments-title,
.comment-reply-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    margin-bottom: 26px;
}

.comment-reply-title small a {
    font-size: 13px;
    font-weight: 500;
    color: var(--rm-text-gray, #6b7280);
    margin-right: 10px;
}

.no-comments {
    font-size: 14px;
    color: var(--rm-text-gray, #6b7280);
    margin-bottom: 20px;
}

/* ریست پایه‌ی <ol>های کامنت (هم لیست اصلی، هم children تودرتو) */
.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list {
    margin-bottom: 34px;
}

.comment-list>li.comment {
    margin-bottom: 22px;
}

/* پاسخ‌های تودرتو - تورفتگی از سمت راست چون سایت راست‌چینه */
.comment-list .children {
    margin-top: 18px;
    margin-right: 40px;
    padding-right: 18px;
    border-right: 2px solid #eef0f6;
}

.comment-body {
    background: var(--rm-hero-bg, #eef1fa);
    border-radius: 14px;
    padding: 20px;
}

.comment-meta {
    margin-bottom: 12px;
}

.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author .fn {
    font-size: 14px;
    font-style: normal;
}

.comment-author .fn a {
    color: var(--rm-navy, #3d4767);
    text-decoration: none;
}

.comment-metadata {
    font-size: 12px;
}

.comment-metadata a {
    color: var(--rm-text-gray, #6b7280);
}

.comment-metadata .edit-link {
    margin-right: 8px;
}

.comment-metadata .edit-link a {
    color: var(--rm-gold, #f2b632);
}

.comment-awaiting-moderation {
    font-size: 12.5px;
    color: #b9852f;
    background: rgba(242, 182, 50, .12);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.comment-content p {
    font-size: 13.5px;
    color: #454b63;
    line-height: 1.9;
    margin: 0;
}

.reply {
    margin-top: 8px;
    padding-right: 4px;
}

.comment-reply-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--rm-gold, #f2b632);
}

/* -----------------------------------------------------
   فرم پاسخ‌گویی - خروجی comment_form()
------------------------------------------------------ */
.comment-respond {
    margin-top: 10px;
}

.comment-notes {
    font-size: 13px;
    color: var(--rm-text-gray, #6b7280);
    margin-bottom: 20px;
}

.comment-notes .required,
.comment-form label .required {
    color: #e05a5a;
}

.comment-form p {
    margin-bottom: 18px;
}

.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--rm-navy, #3d4767);
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1.5px solid #e5e7f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: var(--rm-font, inherit);
    font-size: 14px;
    color: var(--rm-navy, #3d4767);
    transition: var(--rm-transition, all .3s ease);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--rm-gold, #f2b632);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-cookies-consent label {
    margin: 0;
    font-weight: 400;
    font-size: 12.5px;
    color: var(--rm-text-gray, #6b7280);
}

.form-submit {
    margin-bottom: 0 !important;
}

.form-submit .submit {
    background: var(--rm-navy-deep, #2c3352);
    color: var(--rm-white, #fff);
    border: 0;
    border-radius: 30px;
    padding: 13px 34px;
    font-size: 14px;
    font-family: var(--rm-font, inherit);
    font-weight: 700;
    cursor: pointer;
    transition: var(--rm-transition, all .3s ease);
}

.form-submit .submit:hover {
    background: var(--rm-navy, #3d4767);
}

/* =====================================================
   سایدبار - استایل ابزارک‌های وردپرس
===================================================== */
.left_sidebar {
    position: sticky;
    top: 24px;
    align-self: flex-start;
}

.wrapper_sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.widget {
    background: var(--rm-hero-bg, #eef1fa);
    border-radius: 16px;
    padding: 22px;
}

.widg_title {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(61, 71, 103, .1);
}

.widget .widg_content>ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget .widg_content>ul>li {
    font-size: 13.5px;
    line-height: 1.8;
    color: #454b63;
}

.widget .widg_content>ul>li a {
    color: #454b63;
}

.widget .widg_content>ul>li a:hover {
    color: var(--rm-navy, #3d4767);
    font-weight: 600;
}

.widget .post-date {
    display: block;
    font-size: 11.5px;
    color: var(--rm-text-gray, #6b7280);
    margin-top: 3px;
}
.widget .textwidget {
    font-size: 13.5px;
    line-height: 2;
    color: #454b63;
}

.widget .textwidget p {
    margin: 0 0 12px;
}

.widget .textwidget p:last-child {
    margin-bottom: 0;
}
.widget .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget .tagcloud a {
    background: var(--rm-white, #fff);
    color: var(--rm-navy, #3d4767);
    font-size: 12px !important;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid #dfe2ee;
    transition: var(--rm-transition, all .3s ease);
}

.widget .tagcloud a:hover {
    background: var(--rm-gold, #f2b632);
    border-color: var(--rm-gold, #f2b632);
    color: var(--rm-navy-deep, #2c3352);
}
#recentcomments {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#recentcomments li {
    font-size: 13px;
    line-height: 1.9;
    color: var(--rm-text-gray, #6b7280);
}

#recentcomments .comment-author-link,
#recentcomments .comment-author-link a {
    color: var(--rm-navy, #3d4767);
    font-weight: 700;
}

#recentcomments a {
    color: var(--rm-navy, #3d4767);
    font-weight: 600;
}
.widget #searchform,
.widget form[role="search"] {
    display: flex;
    border: 1.5px solid #dfe2ee;
    border-radius: 10px;
    overflow: hidden;
    background: var(--rm-white, #fff);
}

.widget #searchform input[type="text"],
.widget form[role="search"] input[type="search"] {
    flex: 1;
    border: 0;
    padding: 10px 14px;
    font-family: var(--rm-font, inherit);
    font-size: 13.5px;
    background: transparent;
    color: var(--rm-navy, #3d4767);
}

.widget #searchform input[type="text"]:focus,
.widget form[role="search"] input[type="search"]:focus {
    outline: none;
}

.widget #searchform button,
.widget #searchsubmit {
    border: 0;
    background: var(--rm-navy, #3d4767);
    color: var(--rm-white, #fff);
    width: 44px;
    font-size: 15px;
    cursor: pointer;
}


/* =====================================================
   پست‌های مرتبط
===================================================== */
.related-posts-section {
    background: var(--rm-hero-bg, #eef1fa);
    padding: 70px 0;
}

.related-posts-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    margin-bottom: 30px;
}

.related-posts-row {
    row-gap: 24px;
}

.related-post-card {
    display: block;
    background: var(--rm-white, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(28, 35, 64, .06);
    transition: var(--rm-transition, all .3s ease);
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-4px);
}

.related-post-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.related-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-body {
    padding: 18px;
}

.related-post-body h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--rm-navy, #3d4767);
    line-height: 1.7;
    margin-bottom: 10px;
}

.related-post-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--rm-gold, #f2b632);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {
    .left_sidebar {
        position: static;
    }

    .entry-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .single-content-section {
        padding: 34px 0 60px;
    }

    .entry-nav {
        flex-direction: column;
    }

    .entry-nav-next {
        text-align: right;
    }

    .entry-nav-next .entry-nav-label {
        justify-content: flex-start;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .comment-list .children {
        margin-right: 18px;
        padding-right: 12px;
    }
}
