/* ==========================================================================
   تنظیمات کلی صفحه سینگل (تک نوشته)
   ========================================================================== */
body.single {
    background-color: #f5f5f5 !important; /* پس‌زمینه کل صفحه برای برجسته شدن کادرهای سفید */
}

/* کانتینر اصلی که عرض محتوای مقاله را تنظیم می‌کند */
.single-container {
    max-width: 1157px; 
    margin: 0 auto; 
    padding: 0 15px;
    box-sizing: border-box;
}

/* ==========================================================================
   بخش بردکرامب (مسیر راهنما) در صفحه سینگل
   ========================================================================== */
.breadcrumb-wrapper {
    max-width: 1157px; 
    height: 50px; 
    background-color: #ffffff; 
    border-radius: 15px; 
    margin: 20px auto 30px auto; 
    display: flex;
    align-items: center; 
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03); 
    box-sizing: border-box;
}

.custom-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    width: 100%;
    white-space: nowrap; 
    overflow-x: auto; 
}

.custom-breadcrumb::-webkit-scrollbar {
    display: none;
}

.custom-breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.custom-breadcrumb a:hover {
    color: #034694; 
}

.custom-breadcrumb .separator {
    margin: 0 10px;
    display: flex;
    align-items: center;
    color: #aaa;
}

.custom-breadcrumb .separator svg {
    width: 16px;
    height: 16px;
    fill: currentColor; 
}

.custom-breadcrumb .current-page {
    color: #034694; 
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis; 
}

/* ==========================================================================
   استایل کادر مجزای خبر/مقاله
   ========================================================================== */
.single-post {
    background-color: #ffffff; 
    border-radius: 15px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03); 
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   ریسپانسیو موبایل برای هر دو بخش (حداکثر عرض 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        margin: 15px auto 20px auto;
        width: calc(100% - 30px); 
        height: 45px; 
        padding: 0 15px;
        border-radius: 10px; 
    }

    .custom-breadcrumb {
        font-size: 12px; 
    }

    .custom-breadcrumb .separator svg {
        width: 14px;
        height: 14px;
    }

    .single-post {
        border-radius: 10px;
    }
}
/* ==========================================================================
   بنر زیر بردکرامب 
   ========================================================================== */
.single-page-banner {
    width: 100%;
    max-width: 1157px;
    height: 100px;
    margin: 15px auto 25px auto; 
    border-radius: 10px;
    overflow: hidden;
}

.single-page-banner a {
    display: block;
    width: 100%;
    height: 100%;
}

.single-page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 10px;
}
/* =========================================
   استایل ریسپانسیو (موبایل و تبلت) برای بنر
========================================= */
@media (max-width: 768px) {
    .single-page-banner {
        width: 92%; 
        height: 75px; 
        margin: 10px auto 15px auto; 
        border-radius: 8px; 
    }

    .single-page-banner img {
        object-fit: cover; 
    }
}

/* =========================================
   استایل کادرهای مجزا (طراحی کارتی)
========================================= */
.separate-box {
    background-color: #ffffff;
    border: 1px solid #eaeaea; 
    border-radius: 10px; 
    padding: 20px;
    margin-top: 0 !important; 
    margin-bottom: 20px !important; 
}

.separate-box:last-child {
    margin-bottom: 0 !important;
}

.post-tags-container,
.post-navigation,
.post-comments {
    margin-top: 0 !important;
}

.post-navigation.separate-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.post-navigation a {
    text-decoration: none;
    color: #034694;
    font-weight: bold;
}

/* =========================================
   جزئیات محتوای مقاله (ستون راست)
========================================= */
.post-title {
    font-size: 26px; 
    font-weight: bold;
    color: #222;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    padding-right: 15px;
    line-height: 1.6;
}

.post-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 35px; 
    background-color: #E8C774;
    border-radius: 3px;
}

.post-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 7px;
    object-fit: cover;
    display: block;
}

.meta-author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.meta-author-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.meta-post-date {
    font-size: 13px;
    color: #888;
}

.meta-separator {
    color: #dfdfdf;
    font-size: 18px;
    font-weight: 300;
    margin-top: 20px;
}

.meta-reading-time, .meta-category {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    margin-top: 20px;
}

.share-btn {
    width: 45px;
    height: 45px;
    background-color: #034694;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.share-btn img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.post-thumbnail-wrapper {
    margin-bottom: 30px;
}

.post-thumbnail-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}

.post-text-content {
    line-height: 2;
    font-size: 16px;
    color: #444;
}

@media (max-width: 576px) {
    .post-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .meta-left {
        align-self: flex-end; 
        margin-top: -45px;
    }
}

/* =========================================
   استایل‌های فهرست مقاله (Table of Contents)
   ========================================= */
html {
    scroll-behavior: smooth;
}

.post-toc-container {
    max-width: 808px;
    margin: 35px 0;
    border: 1px solid rgba(3, 70, 148, 0.15); 
    border-radius: 7px;
    background-color: rgba(3, 70, 148, 0.04); 
    overflow: hidden;
    transition: all 0.3s ease;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    user-select: none;
}

.toc-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #222;
}

.toc-arrow-btn {
    width: 36px;
    height: 36px;
    background-color: #034694; 
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.post-toc-container.is-open .toc-arrow-btn {
    transform: rotate(-90deg);
}

.toc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.post-toc-container.is-open .toc-body {
    max-height: 2000px; 
}

.toc-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 15px;
}

.toc-body li {
    width: 90%;
    margin: 0 auto;
    border-bottom: 1px solid #f0f0f0; 
}

.toc-body li:last-child {
    border-bottom: none; 
}

.toc-body a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    text-decoration: none;
    color: #444;
    font-size: 15px;
    transition: color 0.2s;
}

.toc-body a:hover {
    color: #034694;
    font-weight: bold;
}

.toc-body a img {
    width: 20px; 
    height: auto;
}

.toc-sub-item a {
    padding-right: 30px;
    font-size: 14px;
    color: #666;
}

/* =========================================
   استایل تصاویر داخل مقاله و کپشن آن‌ها
========================================= */
.single-main-column img {
    max-width: 100%;
    height: auto;
    border-radius: 15px; 
    display: block;
}

.mobitmag-content-area video, 
.mobitmag-content-area iframe,
.mobitmag-content-area .wp-block-video {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    display: block;
}

.single-main-column .wp-caption {
    max-width: 100% !important; 
    background-color: rgba(232, 199, 116, 0.3); 
    border-radius: 15px; 
    margin: 25px auto; 
    overflow: hidden; 
}

.single-main-column .wp-caption img {
    margin: 0 !important; 
    padding: 0;
    width: 100%; 
    border-radius: 0; 
}

.single-main-column .wp-caption-text {
    font-size: 12px; 
    color: #444; 
    margin: 0; 
    padding: 0 15px; 
    height: 35px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

/* =========================================
   استایل ابزار مقایسه تصاویر 
========================================= */
.mabit-compare-wrapper {
    width: 100%;
    max-width: 842px; 
    margin: 30px auto;
    border-radius: 15px; 
    overflow: hidden; 
}

.mabit-compare-wrapper.has-caption {
    background-color: rgba(232, 199, 116, 0.3); 
}

.mabit-compare-wrapper .mabit-image-compare {
    position: relative;
    width: 100%;
    direction: ltr; 
}

.mabit-compare-wrapper .mabit-image-compare img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 !important;
    border-radius: 0;
    pointer-events: none;
}

.mabit-img-back {
    width: 100%;
}

.mabit-img-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    clip-path: polygon(0 0, var(--slider-pos) 0, var(--slider-pos) 100%, 0 100%);
}

.mabit-compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--slider-pos);
    width: 2px;
    background-color: #fff;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.mabit-handle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background-color: #034694; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    border: 3px solid #fff;
}

.mabit-handle-btn svg {
    width: 24px;
    height: 24px;
}

.mabit-compare-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; 
    cursor: ew-resize;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.mabit-compare-caption {
    font-size: 12px;
    color: #444;
    height: 35px; 
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 0 15px;
    margin: 0;
}

/* =========================================
   استایل شورت‌کد ویدیوی آپارات
========================================= */
.mabit-video-wrapper {
    width: 100%;
    max-width: 842px;
    margin: 30px auto;
    border-radius: 15px; 
    overflow: hidden; 
}

.mabit-video-wrapper.has-caption {
    background-color: rgba(232, 199, 116, 0.3); 
}

.aparat-responsive-container {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 56.25%; 
}

.aparat-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.mabit-video-caption {
    font-size: 12px;
    color: #444;
    height: 35px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    margin: 0;
}

/* =========================================
   استایل باکس مطالب/محصولات پیشنهادی
========================================= */
.mabit-suggested-link {
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center;      
    max-width: 806px;
    width: 100%;
    min-height: 47px;
    margin: 30px auto;
    background-color: rgba(3, 70, 148, 0.08); 
    border-radius: 10px; 
    border-right: 11px solid #034694; 
    padding: 8px 15px;
    box-sizing: border-box;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.mabit-suggested-link:hover {
    background-color: rgba(3, 70, 148, 0.12); 
    transform: translateX(-5px); 
}

.mabit-suggested-icon {
    width: 22px;
    height: 22px;
    margin-left: 12px; 
    flex-shrink: 0;
}

.mabit-suggested-label {
    font-size: 12px;
    color: #666;
    margin-left: 5px; 
    white-space: nowrap; 
}

.mabit-suggested-title {
    font-size: 14px;
    font-weight: bold;
    color: #034694; 
    line-height: 1.6;
}

@media (max-width: 576px) {
    .mabit-suggested-label { font-size: 11px; }
    .mabit-suggested-title { font-size: 13px; }
    .mabit-suggested-icon { 
        width: 18px; 
        height: 18px; 
        margin-left: 8px; 
    }
}

/* =========================================
   استایل باکس محصولات کرال شده
========================================= */
.mbt-crawl-box-wrapper {
    display: flex;
    max-width: 808px;
    width: 100%;
    min-height: 146px; 
    margin: 40px auto;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    direction: rtl;
}

.mbt-crawl-products {
    display: flex;
    flex: 3; 
}

.mbt-crawl-item {
    display: flex;
    flex: 1;
    align-items: center; 
    padding: 15px;
    border-left: 1px solid #f0f0f0;
    text-decoration: none !important;
    transition: background 0.3s ease;
}

.mbt-crawl-item:hover {
    background-color: #fafafa;
}

.mbt-crawl-img {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    margin-left: 12px;
}

.mbt-crawl-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mbt-crawl-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mbt-crawl-title {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mbt-crawl-price {
    font-size: 13px;
    font-weight: bold;
    color: #034694; 
}

.mbt-crawl-price span {
    font-size: 10px;
    font-weight: normal;
    color: #888;
}

.mbt-crawl-action {
    display: flex;
    flex: 1; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(3, 70, 148, 0.04); 
    padding: 20px;
    text-align: center;
}

.mbt-crawl-action-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.mbt-crawl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #034694;
    color: #fff !important;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.mbt-crawl-btn:hover {
    background-color: #022e63;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .mbt-crawl-box-wrapper {
        flex-direction: column;
        height: auto;
    }
    .mbt-crawl-products {
        flex-direction: column;
    }
    .mbt-crawl-item {
        border-left: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .mbt-crawl-action {
        padding: 30px 20px;
    }
}

/* =========================================
   استایل نهایی جدول گوتنبرگ
========================================= */
.wp-block-table {
    margin: 40px auto !important;
    width: 100% !important;
    max-width: 808px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #034694 !important; 
    border-radius: 15px !important; 
    overflow: hidden !important; 
}

.wp-block-table table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important; 
}

.wp-block-table thead, 
.wp-block-table tr:first-child,
.wp-block-table thead th,
.wp-block-table tr:first-child th,
.wp-block-table tr:first-child td {
    background-color: #034694 !important;
}

.wp-block-table thead th,
.wp-block-table thead td,
.wp-block-table tr:first-child th,
.wp-block-table tr:first-child td {
    color: #ffffff !important;
    padding: 18px 15px !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: 15px !important;
    border-top: none !important;
    border-bottom: none !important;
    border-right: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important; 
}

.wp-block-table thead tr th:last-child,
.wp-block-table thead tr td:last-child,
.wp-block-table tr:first-child th:last-child,
.wp-block-table tr:first-child td:last-child {
    border-left: none !important;
}

.wp-block-table tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}
.wp-block-table tbody tr:nth-child(even) {
    background-color: rgba(3, 70, 148, 0.05) !important; 
}

.wp-block-table td {
    padding: 14px 15px !important;
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(3, 70, 148, 0.15) !important; 
    border-right: none !important; 
    border-left: 1px solid rgba(3, 70, 148, 0.10) !important; 
}

.wp-block-table tr:last-child td {
    border-bottom: none !important;
}

.wp-block-table td:last-child {
    border-left: none !important;
}

.wp-block-table tbody tr:hover {
    background-color: rgba(3, 70, 148, 0.08) !important;
    transition: all 0.3s ease !important;
}

@media (max-width: 576px) {
    .wp-block-table {
        border-radius: 15px !important;
    }
    .wp-block-table th, 
    .wp-block-table td {
        padding: 12px 10px !important;
        font-size: 13px !important;
    }
}

/* =========================================================
   استایل‌دهی به برچسب‌ها
   ========================================================= */
.post-tags-container {
    display: flex;
    align-items: center; 
    flex-wrap: wrap;
    gap: 15px; 
}

.tags-title {
    font-weight: bold;
    font-size: 15px;
    color: #444;
    white-space: nowrap;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
}

.tag-item {
    display: inline-block;
    border: 1px solid #e0e0e0; 
    border-radius: 20px; 
    padding: 6px 16px; 
    background-color: #fafafa;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease; 
}

.tag-item:hover {
    background-color: #f0f0f0; 
    border-color: #d0d0d0; 
    color: #222;
}

/* =========================================================
   استایل ناوبری پست‌ها 
   ========================================================= */
.post-navigation {
    margin-bottom: 20px !important; 
    background: transparent; 
    padding: 0;
    border: none;
}

.custom-post-nav {
    display: flex;
    justify-content: center;
    gap: 22px; 
    width: 100%;
}

.nav-item {
    width: 410px; 
    height: 175px; 
}

.nav-card {
    display: block;
    text-decoration: none !important;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-3px);
}

.nav-content {
    background-color: #034694; 
    border-radius: 15px; 
    display: flex;
    align-items: center;
    padding: 6px; 
    gap: 15px; 
    width: 100%;
    height: 100%;
    box-sizing: border-box; 
    overflow: hidden;
    box-shadow:0 7px 12px rgb(3 70 148 / 21%);
}

.nav-arrow {
    background-color: #E8C774; 
    border-radius: 8px; 
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: calc(100% - 2px); 
    margin: 5px 0;
}

.nav-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: right; 
    justify-content: center;
    overflow: hidden;
}

.nav-label {
    font-size: 12px;
    color: #E8C774;
    margin-bottom: 5px;
}

.nav-text h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-text p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.nav-thumbnail {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-thumbnail img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px; 
    border: 2px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 850px) {
    .custom-post-nav {
        flex-direction: column;
        align-items: center;
    }
    .nav-item {
        width: 100%;
        max-width: 410px;
    }
}

/* =========================================================
   استایل بخش فرم نظرات
   ========================================================= */
.comment-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.comment-section-title .title-line {
    width: 4px;
    height: 22px;
    background-color: #034694; 
    border-radius: 4px;
    margin-left: 10px; 
}

.comment-section-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.custom-comment-form-container {
    width: 100%;
    max-width: 842px; 
    min-height: 280px; 
    background-color: #ffffff;
    border-radius: 10px; 
    padding: 25px;
    box-sizing: border-box;
    margin-bottom: 40px; 
}

.custom-comment-form {
    display: flex;
    flex-wrap: wrap; 
    gap: 15px; 
}

.custom-comment-form .logged-in-as,
.custom-comment-form .comment-form-cookies-consent {
    width: 100%;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.custom-comment-form .comment-form-author,
.custom-comment-form .comment-form-email {
    flex: 1 1 calc(50% - 7.5px); 
}

.custom-comment-form .comment-form-comment {
    flex: 1 1 100%; 
    margin: 0;
}

.custom-comment-form input[type="text"],
.custom-comment-form input[type="email"],
.custom-comment-form textarea {
    width: 100%;
    border: 1px solid #e5e5e5; 
    border-radius: 10px; 
    padding: 12px 15px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #fbfbfb;
}

.custom-comment-form textarea {
    min-height: 120px;
    resize: vertical; 
}

.custom-comment-form input:focus,
.custom-comment-form textarea:focus {
    border-color: #034694; 
    background-color: #fff;
}

.custom-comment-form .form-submit {
    flex: 1 1 100%;
    margin: 0;
}

.custom-comment-form .submit-comment-btn {
    background-color: #034694;
    color: #ffffff;
    font-weight: 400; 
    font-size: 15px;
    border: none;
    border-radius: 8px; 
    padding: 12px 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(3, 70, 148, 0.35); 
    font-family: inherit;
    transition: all 0.3s ease;
}

.custom-comment-form .submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(3, 70, 148, 0.5);
}

@media (max-width: 600px) {
    .custom-comment-form .comment-form-author,
    .custom-comment-form .comment-form-email {
        flex: 1 1 100%;
    }
}

/* =========================================================
   استایل اختصاصی لیست نظرات 
   ========================================================= */
.custom-comment-wrapper {
    list-style: none;
    margin-bottom: 20px;
}

ul.children {
    display: none;
    margin-top: 15px;
    padding-right: 50px; 
    border-right: 2px solid #e5e5e5;
    list-style: none;
}

.comment-box-inner {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px; 
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

ul.children .comment-box-inner {
    background-color: rgba(3, 70, 148, 0.04); 
    border: 1px solid rgba(3, 70, 148, 0.1); 
}

.comment-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.comment-top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-avatar-square img {
    width: 55px;
    height: 55px;
    border-radius: 12px; 
    object-fit: cover;
}

.comment-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-author-name {
    font-size: 16px;
    font-weight: bold;
    color: #222;
}

.comment-date-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #777;
}

.meta-icon {
    width: 14px;
    height: 14px;
}

.comment-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.separator {
    color: #ccc;
}

.reply-icon {
    width: 22px;
    height: 22px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.reply-icon:hover {
    transform: scale(1.1);
}

.comment-text-content {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

.comment-bottom-row {
    display: flex;
    justify-content: flex-start; 
}

.comment-voting {
    display: flex;
    align-items: center;
    gap: 20px;
}

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-family: inherit;
    color: #555;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.vote-btn:hover {
    opacity: 0.7;
}

.vote-btn img {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .comment-top-row {
        flex-direction: column;
        gap: 15px;
    }
    .comment-top-left {
        align-self: flex-end;
    }
    ul.children {
        padding-right: 20px;
    }
}

#custom-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #034694; 
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-family: inherit;
    font-weight: bold;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
}

#custom-toast.show {
    visibility: visible;
    opacity: 1;
}

#reply-title small {
    display: inline-block; 
    margin-right: 10px;
    font-size: 0.8em;
}

#cancel-comment-reply-link {
    color: #034694; 
    text-decoration: none;
}

#cancel-comment-reply-link:hover {
    color: #E8C774; 
}

#respond-wrapper:not(:has(#respond)) {
    display: none !important;
}

.comment-list #respond {
    margin-bottom: 30px; 
}

/* =========================================================
   ساختار دو ستونه صفحه سینگل مقالات (Main Column & Sidebar)
   ========================================================= */
.single-layout-wrapper {
    display: flex;
    flex-wrap: nowrap; 
    align-items: flex-start; 
    justify-content: space-between;
    gap: 15px; 
    max-width: 1157px; 
    margin: 0 auto 40px auto;
    box-sizing: border-box; 
}

.single-main-column {
    width: 842px; 
    max-width: calc(100% - 330px); 
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.single-sidebar {
    width: 300px; 
    flex-shrink: 0; 
}

/* =========================================
   استایل کادر متنی داخل سایدبار
   ========================================= */
.sidebar-text-box {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    text-align: right;
    position: sticky;
    top: 20px;
}

.sidebar-box-title {
    font-size: 16px;
    font-weight: bold;
    color: #034694;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-box-content {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}


/* =========================================
   ریسپانسیو (موبایل و تبلت) برای صفحه مقاله
   ========================================= */
@media (max-width: 600px) {
    .single-layout-wrapper {
        flex-direction: column; 
        padding: 0 15px;
    }
    
    .single-main-column, 
    .single-sidebar {
        width: 100%;
        max-width: 100%; 
    }
    
    .single-sidebar {
        margin-top: 30px;
    }
}
/* =========================================
   تنظیم عرض سایدبار در صفحه سینگل به 300 پیکسل
   ========================================= */

/* تنظیم عرض خود سایدبار */
.single-sidebar {
    width: 300px;
}

/* تنظیم عرض بنر تبلیغاتی */
.single-sidebar .left-banner-container {
    width: 300px;
    height: 300px;
}

/* تنظیم عرض ویجت محصولات */
.single-sidebar .left-scrolling-products-wrapper {
    width: 300px !important;
}

/* تنظیم عرض ویجت نقد و بررسی */
.single-sidebar .latest-reviews-widget {
    width: 300px !important;
}

/* تنظیم عرض ویجت شبکه‌های اجتماعی */
.single-sidebar .social-networks-widget {
    width: 300px !important;
}

/* تنظیم عرض کادر خالی placeholder (اگه بنر نباشه) */
.single-sidebar .left-col-placeholder {
    width: 300px;
}

/* تنظیم عرض دکمه‌های شبکه اجتماعی */
.single-sidebar .social-btn {
    max-width: 100% !important;
    width: 100% !important;
}
/* =========================================
   اسلایدر محصولات (نسخه نهایی)
   ========================================= */

.mobit-products-widget {
    position: relative;
    height: 550px; /* ارتفاع کمی بیشتر شد تا عنوان و نقطه‌ها جا شوند */
    display: flex;
    flex-direction: column;
    /* این خطوط اضافه شدند تا کل ویجت داخل یک کادر قرار بگیرد */
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    padding: 15px; 
    box-sizing: border-box;
    overflow: hidden;
}

.mobit-slider-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.mobit-slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}
/* استایل دهی به عنوان ویجت (در صورت نیاز) */
.mobit-products-widget .widget-title,
.mobit-products-widget h2,
.mobit-products-widget h3 {
    text-align: right;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.mobit-slide {
    flex: 0 0 100%;
    height: 100%;
    /* پس‌زمینه و حاشیه از اینجا حذف شدند */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.mobit-slide .slide-img {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px; 
}

.mobit-slide .slide-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mobit-slide .slide-title {
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.5;
    height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobit-slide .slide-btn {
    display: block;
    margin: 60px 15px 20px;
    padding: 12px;
    background: #034694;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 13px rgb(3 70 148 / 38%);
}

.mobit-slide .slide-btn:hover {
    background: #E8C774;
    color: #000;
    box-shadow: 0 8px 13px rgba(255, 230, 2, 0.38);
}

.mobit-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.mobit-slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobit-slider-dots .dot.active {
    width: 20px;
    border-radius: 4px;
    background: #034694;
}

/* حالت خطا */
.mobit-slide.error-card .slide-img {
    height: 150px;
}

.mobit-slide.error-card .slide-img img {
    width: 70px;
    height: 70px;
    opacity: 0.5;
    animation: spin 2s linear infinite;
}

.mobit-slide.error-card .slide-title {
    color: #888;
    font-weight: normal;
}

.mobit-slide.error-card .slide-btn {
    display: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .mobit-products-widget { height: 420px; }
    .mobit-slide .slide-img { height: 180px; }
    .mobit-slide .slide-title { font-size: 12px; height: 55px; }
}
/* چرخش آیکون در حالت خطا */
.product-slider-card.error-card .product-slider-img img {
    animation: spin 2s linear infinite;
    width: 70px;
    height: 70px;
    opacity: 0.6;
}
.product-slider-card.error-card .product-slider-title {
    color: #888;
    font-weight: normal;
    font-size: 13px;
    direction: rtl;
}

.product-slider-card.error-card .product-slider-btn {
    display: none;  /* دکمه رو کامل مخفی می‌کنیم */
}
/* اطمینان از درست کار کردن اسلایدر */
.products-slider-track {
    display: flex !important;
    width: 100% !important;
}

.product-slider-card {
    flex-shrink: 0 !important;
}

/* استایل فلش‌های نمایشی */
.mobit-slider-container {
    position: relative;
}

.mobit-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0px;
    height: 0px;
    color: #383838;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    z-index: 10;
    pointer-events: none; /* این خط باعث می‌شود فلش‌ها غیرقابل کلیک باشند */
}

.mobit-nav-arrow.arrow-right {
    right: 5px; 
}

.mobit-nav-arrow.arrow-left {
    left: 5px; 
}

/* در صورت تمایل برای مخفی کردن فلش‌ها در موبایل، این کد را به مدیا کوئری موبایل اضافه کنید: */
@media (max-width: 768px) {
    .mobit-nav-arrow {
        display: none;
    }
}

/* =========================================
   ریسپانسیو موبایل
   ========================================= */
@media (max-width: 768px) {
    .product-slider-img {
        height: 180px;
        padding: 10px;
    }
    .product-slider-title {
        font-size: 12px;
        height: 55px;
        padding: 10px;
    }
    .product-slider-btn {
        font-size: 12px;
        padding: 10px;
        margin: 8px 10px 15px 10px;
    }
    .left-scrolling-products-wrapper {
        height: 420px;
    }
    .slider-nav-deco {
        font-size: 30px;
        opacity: 0.3;
    }
}

/* استایل‌های ضروری برای اسلایدر محصولات */
.products-slider-container {
    overflow: hidden;
    width: 100%;
}

.products-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100%;
    will-change: transform;
}

.product-slider-card {
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    /* تغییر ساختار اصلی به ستونی برای موبایل و تبلت */
    .single-layout-wrapper {
        flex-direction: column; 
        padding: 0 15px;
    }
    
    .single-main-column, 
    .single-sidebar {
        width: 100% !important;
        max-width: 100% !important; 
    }
    
    .single-sidebar {
        margin-top: 30px;
    }

    /* باز کردن قفل 300 پیکسلی ویجت‌ها در موبایل */
    .single-sidebar .left-banner-container,
    .single-sidebar .left-scrolling-products-wrapper,
    .single-sidebar .latest-reviews-widget,
    .single-sidebar .social-networks-widget,
    .single-sidebar .left-col-placeholder {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================== استایل دکمه گوتنبرگ در صفحات مقاله =========================== */
.single .wp-block-button .wp-block-button__link {
    background-color: #034694 !important; 
    border-radius: 10px !important; 
    color: #ffffff !important; 
    padding: 8px 20px !important; 
    line-height: normal !important; 
    height: auto !important; 
    transition: all 0.3s ease !important; 
}

.single .wp-block-button .wp-block-button__link:hover {
    background-color: #E8C774 !important; 
    color: #333333 !important;
    box-shadow: 0 14px 12px rgb(173 145 70 / 40%);
    transform: translateY(-4px) !important; 
}
