/* single-post.css */

/* ═══════════════════════════════════════════════════
   کارت محصول داخل پست — شورت‌کد [khabco_product id=""]
═══════════════════════════════════════════════════ */
.kh-inline-product {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    background: #f4f6f8;
    border-radius: 14px;
    padding: 12px 14px;
    margin: 22px 0;
    border: 1.5px solid #e8ecef;
    transition: box-shadow .2s, border-color .2s;
    direction: rtl;
    text-decoration: none;
}

/* تصویر */
.kh-inline-product__img-wrap {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e4e8;
}
.kh-inline-product__img-wrap img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
}

/* متن */
.kh-inline-product__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kh-inline-product__title {
    font-size: .95rem;
    font-weight: 700;
    color: #1a2a2e;
    text-decoration: none;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kh-inline-product__title:hover { color: #0f4f59; }

.kh-inline-product__price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.kh-inline-product__price {
    font-size: .85rem;
    font-weight: 800;
    color: #0f4f59;
}
.kh-inline-product__price span,
.kh-inline-product__old-price span {
    font-size: .75rem;
    font-weight: 500;
}
.kh-inline-product__old-price {
    font-size: .82rem;
    color: #9aa5ae;
    text-decoration: line-through;
}
.kh-inline-product__discount {
    background: #ff4d4d;
    color: #fff;
    font-size: .73rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

/* دکمه */
.kh-inline-product__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: #0f4f59;
    color: #fff !important;
    text-decoration: none !important;
    font-size: .75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 30px;
    white-space: nowrap;
}
.kh-inline-product__btn svg { display: none; }

/* Container */
.single-post-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.single-post-container .kh-bc-inner { padding: 0; }

/* Breadcrumb */
/* Layout با سه ستون */
.post-content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr 80px;
    gap: 10px;
    align-items: start;
    text-align: justify;
    margin-top: 20px;
}

/* Right Sidebar - Category Filter */
.post-sidebar-right {
    position: sticky;
    top: 20px;
}

/* Main Content */
.post-main-content {
    min-width: 0;
    margin-right: 20px;
}

/* Post Meta (تاریخ و زمان مطالعه) */
.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #0f4f59;
    background-color: #e8f5f3;
    border: 1px solid #0f4f59;
    border-radius: 5px;
    padding: 2px 10px;
}
.post-meta span svg {
    flex-shrink: 0;
    stroke: #0f4f59;
}

/* Post Title */
.post-title {
    font-size: 24px;
    font-weight: 400;
    color: #0f4f59;
    margin-bottom: 5px;
    line-height: 1.8;
    border-bottom: 1px solid #e0e0e0;
}

/* Post Categories (زیر عنوان) */
.post-categories {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;  
    font-size: 13px;  
}

.post-categories a {
    color: #666;
}



/* Featured Image */
.post-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Post Content */
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2,
.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

/* ── تصاویر داخل محتوای پست (Desktop) ── */
/* fix: WordPress/Gutenberg inline style="height:Xpx" را با !important override می‌کنیم */
.post-content img {
    max-width: 100%;
    height: auto !important;
    display: block;
}

/* figure و wp-block-image (Gutenberg) — display:table و width ثابت را ریست می‌کنیم */
.post-content figure,
.post-content .wp-block-image,
.post-content .wp-block-image figure {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* is-resized — وقتی Gutenberg style="width:Xpx;display:table" می‌گذارد */
.post-content figure.is-resized,
.post-content .wp-block-image.is-resized {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* figcaption — کپشن زیر تصویر (Gutenberg) */
.post-content figcaption,
.post-content .wp-element-caption {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 13px;
    color: #888;
    padding: 6px 10px 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* wp-caption (کپشن ویرایشگر کلاسیک) */
.post-content .wp-caption {
    width: 100%;
    max-width: 100%;
    display: block;
}

.post-content .wp-caption img {
    display: block;
    width: 100%;
    height: auto;
}

.post-content .wp-caption-text {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #888;
    padding: 6px 10px 0;
    word-break: break-word;
}

/* کلاس‌های align ویرایشگر کلاسیک — float باعث نصفه‌نمایی می‌شود */
.post-content img.alignleft,
.post-content img.alignright,
.post-content img.aligncenter,
.post-content img.alignnone {
    float: none;
    display: block;
    max-width: 100%;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
}

/* Gutenberg alignfull / alignwide — margin منفی آن‌ها را خنثی می‌کنیم */
.post-content .alignfull,
.post-content .alignwide,
.post-content .wp-block-image.alignfull,
.post-content .wp-block-image.alignwide {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Category Filter Widget */

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0066cc;
}

/* Accordion */
.category-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-item:hover {
    border-color: #0066cc;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    background: #f8f9fa;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-item.active .accordion-header {
    background: #0066cc;
    color: #fff;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-icon svg {
    stroke: #fff;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.subcategory-list {
    list-style: none;
    padding: 12px 16px;
    margin: 0;
}

.subcategory-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.subcategory-list li:last-child {
    border-bottom: none;
}

.subcategory-list a {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    display: block;
}

.subcategory-list a:hover {
    color: #0066cc;
    padding-right: 5px;
}

/* Share Buttons */
.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
}

.share-main,
.share-facebook,
.share-twitter,
.share-telegram,
.share-linkedin,
.share-whatsapp,
.share-copy {
    background: #e8e8e8;
    color: #0f4f59; /* رنگ سازمانی خوابکو برای ایکون‌ها */
    border: 1px solid transparent;
}

.share-main:hover,
.share-facebook:hover,
.share-twitter:hover,
.share-telegram:hover,
.share-linkedin:hover,
.share-whatsapp:hover,
.share-copy:hover {
    background: #e8e8e8;
    border: 1px solid #0f4f59;
}

.share-main.active,
.share-facebook.active,
.share-twitter.active,
.share-telegram.active,
.share-linkedin.active,
.share-whatsapp.active,
.share-copy.active {
    background: #0f4f59;
    color: #fff;
    border: 1px solid #0f4f59;
}


/* Left Sidebar - Share Icons */
.post-sidebar-left {
    margin-top: 135px;
    position: sticky;
    top: 80px;
}

.share-icons-sticky {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}











/* ══════════════════════════════════════════════════════════
   Table of Contents (آنچه خواهید خواند)
   ══════════════════════════════════════════════════════════ */

.table-of-contents {
    background: #f5f5f5;
    border-radius: 20px;
    padding-right: 10px;
    margin: 25px 0;
    border: none;
    overflow: hidden;
}

.toc-header {
    background: transparent;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.toc-header h3 {
    color: #0f4f59;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-align: right;
}

.toc-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.toc-toggle .toc-arrow {
    color: #0f4f59;
    transition: transform 0.3s ease;
}

.toc-toggle.active .toc-arrow {
    transform: rotate(180deg);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toc-list.open {
    max-height: 500px; /* ارتفاع محدود برای اسکرول */
    overflow-y: auto; /* فعال کردن اسکرول عمودی */
    padding: 20px 24px;
    padding-left: 10px; /* فضا برای اسکرول‌بار */
}

.toc-list li {
    margin-bottom: 0;
    padding: 14px 0;
    margin: 0 20px 0 30px;
    border-bottom: 1px solid #e0e0e0;
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list a {
    display: block;
    color: #0f4f59;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
    transition: none;
    padding: 0;
    text-align: right;
}

.toc-list a::before {
    content: "• ";
    color: #0f4f59;
    font-weight: bold;
    margin-left: 8px;
}

/* استایل اسکرول‌بار */
.toc-list::-webkit-scrollbar {
    width: 6px;
}

.toc-list::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.toc-list::-webkit-scrollbar-thumb {
    background: #0f4f59;
    border-radius: 10px;
}

.toc-list::-webkit-scrollbar-thumb:hover {
    background: #083a42;
}

/* رفع مشکل اسکرول به تیتر */
h2[id], h3[id], h4[id] {
    scroll-margin-top: 50px;
}






















/* ========================================
   Sidebar (Right Side)
======================================== */
.blog-sidebar {
    position: sticky;
    top: 80px;
    width: 100%;
}

.sidebar-widget {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: max-height 0.4s ease;
}

.sidebar-widget.expanded {
    max-height: 60vh;
    overflow: hidden;
}

/* ========================================
   Categories Widget - New Style
======================================== */
.categories-widget {
    border: 1px solid #e5e5e5;
}

.filters-header {
    width: 100%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0f4f59 0%, #0f4f59 100%);
    border-radius: 0; /* حذف گردی گوشه‌ها */
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    min-height: 60px;
}

.categories-widget {
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    overflow: hidden; /* برای اعمال border-radius */
}


.filters-header h3 {
    position: absolute;
    bottom: -15px;
    right: 15px;
    left: 15px;
    background-color: #e8f5f3;
    padding: 15px 20px;
    font-size: 14px;
    color: #0f4f59;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    flex-direction: row;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.categories-list {
    list-style: none;
    padding: 30px 0 0 0 !important;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.categories-list::-webkit-scrollbar {
    width: 6px;
}

.categories-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.categories-list::-webkit-scrollbar-thumb {
    background: #0f4f59;
    border-radius: 10px;
}

.categories-list::-webkit-scrollbar-thumb:hover {
    background: #0a3a42;
}

.categories-list li:last-child {
    border-bottom: none;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: #333;
    cursor: default;
    transition: all 0.3s;
    font-family: 'IRANSans', sans-serif;
    position: relative;
}

.category-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.category-item input[type="radio"]:checked ~ .radio-custom {
    border-color: #0f4f59;
    background: #0f4f59;
}

.category-item input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.category-name {
    font-size: 15px;
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   آکاردئون دسته‌بندی مقالات
   ══════════════════════════════════════════════════════════ */

.category-accordion-item {
    position: relative;
    transition: opacity 0.3s;
}

.category-accordion-item.hidden {
    display: none;
}

.category-header {
    position: relative;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 8px;
    transition: background 0.2s;
}

.category-header:hover {
    background: #f5f5f5;
}

/* لینک اسم دسته‌بندی */
.category-name-link {
    flex: 1;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.category-name-link:hover {
    color: #0f4f59;
}

.category-header.active .category-name-link {
    color: #0f4f59;
    font-weight: 700;
}

/* دکمه toggle آکاردئون */
.accordion-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    flex-shrink: 0;
    border-radius: 4px;
    transition: background 0.2s;
}

.accordion-toggle-btn:hover {
    background: #e8f5f3;
    color: #0f4f59;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    display: block;
}

.category-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.category-posts {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fafafa;
}

.category-posts.open {
    background-color: #fff;
    max-height: 400px;
    padding: 12px 20px;
    overflow-y: auto;
    margin-left: 20px;
}

.category-posts.open::-webkit-scrollbar {
    width: 4px;
}

.category-posts.open::-webkit-scrollbar-track {
    background: #e8f5f3;
    border-radius: 10px;
}

.category-posts.open::-webkit-scrollbar-thumb {
    background: #0f4f59;
    border-radius: 10px;
}

/* ══════════════════════════════════════════════════════════
   باکس جستجوی داخلی هر آکاردئون
   ══════════════════════════════════════════════════════════ */

.posts-search-box {
    position: relative;
    margin-bottom: 12px;
}

.posts-search-box input {
    width: 100%;
    padding: 10px 30px 10px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s;
    background: #fff;
}

.posts-search-box input:focus {
    outline: none;
    border-color: #0f4f59;
    box-shadow: 0 0 0 3px rgba(15, 79, 89, 0.1);
}

.posts-search-box svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.posts-list li {
    border: none !important;
    transition: opacity 0.3s;
}

.posts-list li.hidden {
    display: none;
}

.posts-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    background: #f0f0f0;
}

.posts-list li a:hover {
    background-color: #e8f5f3;
    color: #0f4f59;
}

.posts-list li a svg {
    flex-shrink: 0;
    color: #999;
}

.no-posts {
    font-size: 13px;
    color: #999;
    text-align: center;
    padding: 12px 0;
    margin: 0;
}






/* ========================================
   Sidebar Ad Banners
======================================== */
.sidebar-ad-banners {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-ad-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.sidebar-ad-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-ad-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 15px;
    color: #fff;
}

.ad-overlay h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.ad-overlay p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

/* =============================================
   بخش مقالات مرتبط (Related Posts Section)
   ============================================= */

.related-posts-section {
    width: 1250px;
    max-width: 100%;
    padding: 20px 20px;
    margin: auto;
}

.related-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.related-posts-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f4f59;
    margin: 0;
}

.related-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    background: #e8f5f3;
    color: #0f4f59;
    border: 1px solid #0f4f59;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.related-view-all-btn:hover {
    transform: translateX(-5px);
}

.related-view-all-btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.related-view-all-btn:hover svg {
    transform: translateX(-3px);
}

/* گرید مقالات مرتبط */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* تنظیمات برای کارت‌های داخل گرید مقالات مرتبط */
.related-posts-grid .swiper-slide {
    height: auto;
    position: relative;
    overflow: visible;
}

/* سایه زیر کارت — مشابه blog-swiper */
.related-posts-grid .swiper-slide::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 10px;
    left: 0;
    right: 0;
    bottom: -8px;
    margin: 0 auto;
    background: #e8e8e8;
    border-radius: 0 0 20px 20px;
    transition: background 0.3s ease;
    z-index: 0;
}

.related-posts-grid .swiper-slide:hover::after {
    background: #0f4f59;
}

/* blog-card نیاز به z-index دارد تا روی سایه قرار گیرد */
.related-posts-grid .blog-card {
    position: relative;
    z-index: 2;
}

/* کوچک‌تر کردن badge تاریخ فقط در مقالات مرتبط */
.related-posts-section .blog-date-badge {
    min-width: 50px !important;
    max-width: 50px !important;
}

.related-posts-section .date-day {
    font-size: 20px !important;
    padding: 6px 8px !important;
}

.related-posts-section .date-month {
    font-size: 10px !important;
    padding-top: 6px !important;
}

.related-posts-section .date-year {
    font-size: 12px !important;
    padding: 0 8px 6px !important;
}


/* ══════════════════════════════════════════════════
   باکس محتوایی مقاله — khabco-quick-box
   ══════════════════════════════════════════════════ */

.khabco-quick-box {
    border-radius: 20px;
    overflow: hidden;
    margin: 32px 0;
    border: 1px solid rgba(15, 79, 89, 0.18);
    background: #f0f9f7;
    padding: 0 24px 24px;
}

.khabco-quick-header {
    background: #0f4f59;
    padding: 14px 24px;
    margin: 0 -24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row;
}

.khabco-quick-icon {
    font-size: 20px;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    flex-shrink: 0;
}

.khabco-quick-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    border: none !important;
}

.khabco-quick-box > p {
    font-size: 14px;
    line-height: 1.9;
    color: #1a1a1a;
    margin-bottom: 14px;
    text-align: justify;
}

.khabco-quick-box > ul,
.khabco-quick-box > ol {
    padding-right: 20px;
    padding-left: 0;
    margin: 0;
}

.khabco-quick-box > ul li,
.khabco-quick-box > ol li {
    font-size: 14px;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.khabco-quick-box > ul li:last-child,
.khabco-quick-box > ol li:last-child {
    margin-bottom: 0;
}

.khabco-quick-box > ul li strong,
.khabco-quick-box > ol li strong {
    color: #0f4f59;
}

/* جدول khabco-specs-scroll/khabco-specs-table سراسری شد —
   ر. includes/components/specs-table/specs-table.css */

/**
 * FAQ Accordion Fix — Khabco Lite
 * مسیر: این کدها را به آخر includes/pages/single-post/single-post.css اضافه کنید
 *
 * مشکل: CSS برای faq-item و faq-answer وجود نداشت
 */

/* ════════════════════════════════
   FAQ Accordion — single-post
════════════════════════════════ */
/* ========================================
   Rank Math FAQ Accordion Styles - طراحی سفارشی
======================================== */

/* کانتینر اصلی */
.rank-math-list {
    max-width: 900px;
    padding: 0;
    list-style: none;
    direction: rtl;
}

/* هر آیتم FAQ */
.rank-math-list-item {
    margin-bottom: 12px;
    border: 1px solid #e0e4e8;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.rank-math-list-item:last-child {
    margin-bottom: 0px;

}

/* سوال (h3) */
.rank-math-question {
    margin: 0 !important;
    padding: 20px 70px 20px 24px !important;
    background: #fff;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1a202c !important;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.7 !important;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* شماره سوال (دایره سمت راست) */
.rank-math-question::before {
    content: counter(faq-counter, decimal-leading-zero);
    counter-increment: faq-counter;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid #0f4f59;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #0f4f59;
    background: #e8f5f3;
    transition: all 0.3s ease;
}

/* شماره در حالت فعال */
.rank-math-list-item.active .rank-math-question::before {
    background: #0f4f59;
    color: #fff;
}

/* آیکون فلش (سمت چپ) */
.rank-math-question::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-left: 2px solid #0f4f59;
    border-bottom: 2px solid #0f4f59;
    transform: translateY(-50%) rotate(-45deg);
    transition: transform 0.3s ease;
}

.rank-math-list-item.active .rank-math-question::after {
    transform: translateY(-30%) rotate(135deg);
    border-color: #0f4f59;
}

/* ریست کانتر برای لیست */
.rank-math-list {
    counter-reset: faq-counter;
}

/* پاسخ */
.rank-math-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    margin-right: 45px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    opacity: 0;
}
.rank-math-list-item.active .rank-math-answer {
    max-height: 1000px; /* اگه محتوا بلندتره، این عدد رو بیشتر کن */
    opacity: 1;
}

.rank-math-answer p {
    margin: 0 !;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.9;
    color: #1a1a1a;
    text-align: right;
}

/* حالت فعال */
.rank-math-list-item.active {
    border-color: #0f4f59;
}



/* عنوان بخش FAQ */
.rank-math-block h2,
.rank-math-block h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f4f59;
    margin-bottom: 30px;
    text-align: right;
}





.faq-section { margin: 40px 0; }

.faq-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.faq-container { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color .25s;
}
.faq-item.active { border-color: #0f4f59; }

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: .95rem;
    color: #1f2937;
    transition: background .2s;
}
.faq-question:hover { background: #f9fafb; }
.faq-item.active .faq-question { background: #f0f9f9; color: #0f4f59; }

.faq-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all .2s;
}
.faq-item.active .faq-number { background: #0f4f59; color: #fff; }

.faq-text { flex: 1; }

.faq-arrow {
    font-size: .8rem;
    color: #6b7280;
    transition: transform .3s;
    display: inline-block;
}
.faq-item.active .faq-arrow { transform: rotate(180deg); color: #0f4f59; }

/* ─── پاسخ — پنهان در حالت پیش‌فرض ─── */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 20px;
}
.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 4px 20px 20px;
}
.faq-answer p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.8;
    color: #374151;
    text-align: justify;
}