/*
Theme Name: b2mag
Theme URI: https://avayemarketing.com
Author: AvayeMarketing
Author URI: https://avayemarketing.com
Description: قالب سبک و سئو-بهینه‌شده برای مجله تخصصی توسعه کسب‌وکار با پشتیبانی از المنتور، AMP، تاریخ شمسی، فونت Vazirmatn و تصویر شاخص دسته‌بندی.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: b2mag
Tags: business, magazine, persian, rtl, elementor, seo, amp, schema
*/
.b2-breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.b2-breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.b2-breadcrumbs-item {
    display: flex;
    align-items: center;
}

.b2-breadcrumbs-item::after {
    content: "›";
    margin: 0 0.35rem;
    opacity: 0.6;
}

.b2-breadcrumbs-item:last-child::after {
    content: "";
    margin: 0;
}

.b2-breadcrumbs a {
    text-decoration: none;
    opacity: 0.8;
}

.b2-breadcrumbs a:hover {
    opacity: 1;
}

.b2-breadcrumbs-current {
    font-weight: 500;
}
/* بخش کلی مطالب مرتبط */
.b2-related-posts {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

/* عنوان بخش */
.b2-related-posts .b2-section-title {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
}

/* خط زیر عنوان با رنگ نارنجی برند */
.b2-related-posts .b2-section-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 2px;
    background: #FF6F3C; /* Coral Orange */
}

/* گرید کارت‌ها */
.b2-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* باکس هر پست */
.b2-related-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.85rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(15, 76, 129, 0.04); /* آبی خیلی کمرنگ دور باکس */
}

/* افکت هاور روی باکس */
.b2-related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 111, 60, 0.25); /* نارنجی ملایم */
}

/* تصویر شاخص */
.b2-related-thumb {
    display: block;
    margin-bottom: 0.75rem;
}

.b2-related-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* عنوان پست */
.b2-related-title {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    margin-top: 0.25rem;
}

/* لینک عنوان */
.b2-related-title a {
    text-decoration: none;
    color: #0F4C81; /* آبی برند */
    transition: color 0.2s ease;
}

/* هاور روی عنوان */
.b2-related-title a:hover {
    color: #FF6F3C; /* نارنجی برند */
}

/* برای حالتی که پست تصویر شاخص ندارد */
.b2-related-item:not(:has(.b2-related-thumb)) {
    padding-top: 1.1rem;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .b2-related-posts {
        margin-top: 2.2rem;
    }

    .b2-related-grid {
        gap: 1.1rem;
    }

    .b2-related-item {
        padding: 0.8rem;
    }

    .b2-related-posts .b2-section-title {
        font-size: 1.05rem;
    }
}
.b2-category-grid {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* استفاده مجدد از همون استایل عنوان (مثل مطالب مرتبط) */
.b2-category-grid .b2-section-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
}

.b2-category-grid .b2-section-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 2px;
    background: #0F4C81; /* اینجا آبی برند، تا با related که نارنجی بود، تنوع داشته باشه */
}

/* گرید خود دسته‌ها */
.b2-category-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

/* کارت هر دسته */
.b2-category-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(15, 76, 129, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* افکت هاور کارت */
.b2-category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 111, 60, 0.35); /* نارنجی برند */
}

/* تصویر دسته */
.b2-category-thumb {
    position: relative;
    overflow: hidden;
    max-height: 160px;
}

.b2-category-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

/* زوم ملایم روی تصویر در هاور */
.b2-category-item:hover .b2-category-thumb-img {
    transform: scale(1.05);
}

/* محتوای متنی کارت */
.b2-category-content {
    padding: 0.9rem 0.95rem 0.95rem;
}

/* عنوان دسته */
.b2-category-title {
    font-size: 1rem;
    margin: 0 0 0.4rem 0;
    color: #0F4C81; /* آبی برند */
}

/* توضیح دسته */
.b2-category-desc {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.7;
    color: #555;
}

/* موبایل */
@media (max-width: 768px) {
    .b2-category-grid {
        margin-top: 2.2rem;
        margin-bottom: 2.2rem;
    }

    .b2-category-grid-inner {
        gap: 1.1rem;
    }

    .b2-category-content {
        padding: 0.8rem 0.85rem 0.85rem;
    }

    .b2-category-grid .b2-section-title {
        font-size: 1.05rem;
    }
}
/* کانتینر کلی آرشیو (اگر کلاس .b2-container رو در جاهای دیگه هم داری، همون استفاده میشه) */
.b2-archive .b2-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* هدر آرشیو */
.b2-archive-header {
    margin-bottom: 1.8rem;
}

.b2-archive-title {
    font-size: 1.4rem;
    margin: 0 0 0.75rem 0;
}

/* توضیحات دسته/آرشیو */
.b2-archive-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}

/* گرید/لیست پست‌های آرشیو */
.b2-archive-posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

/* کارت هر پست داخل آرشیو */
.b2-archive-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 76, 129, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.b2-archive-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 111, 60, 0.35);
}

/* تصویر پست */
.b2-archive-thumb img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

/* محتوای کارت */
.b2-archive-content {
    padding: 0.9rem 1rem 1.1rem;
}

/* عنوان پست در آرشیو */
.b2-archive-post-title {
    font-size: 1rem;
    margin: 0 0 0.4rem 0;
}

.b2-archive-post-title a {
    text-decoration: none;
    color: #0F4C81; /* آبی برند */
}

.b2-archive-post-title a:hover {
    color: #FF6F3C; /* نارنجی برند */
}

/* متا (تاریخ + دسته) */
.b2-archive-meta {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.55rem;
}

.b2-archive-sep {
    margin: 0 0.3rem;
}

/* خلاصه پست */
.b2-archive-excerpt {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* صفحه‌بندی */
.b2-archive-pagination {
    margin-top: 2rem;
    text-align: center;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .b2-archive .b2-container {
        padding: 1.2rem 0.9rem 2.2rem;
    }

    .b2-archive-posts {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .b2-archive-thumb img {
        height: 190px;
    }
}
/* کانتینر کلی جستجو */
.b2-search .b2-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* هدر جستجو */
.b2-search-header {
    margin-bottom: 1.8rem;
}

.b2-search-title {
    font-size: 1.4rem;
    margin: 0 0 0.9rem 0;
}

.b2-search-query {
    color: #FF6F3C; /* نارنجی برند */
}

/* فرم جستجو */
.b2-search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    align-items: center;
}

.b2-search-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(15, 76, 129, 0.25);
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
}

.b2-search-input:focus {
    outline: none;
    border-color: #FF6F3C;
    box-shadow: 0 0 0 2px rgba(255, 111, 60, 0.15);
}

.b2-search-submit {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    cursor: pointer;
    background: #0F4C81; /* آبی برند */
    color: #fff;
    transition: background 0.2s ease, transform 0.1s ease;
}

.b2-search-submit:hover {
    background: #FF6F3C;
    transform: translateY(-1px);
}

/* لیست نتایج جستجو */
.b2-search-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

/* کارت هر نتیجه */
.b2-search-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 76, 129, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.b2-search-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 111, 60, 0.35);
}

/* تصویر نتیجه */
.b2-search-thumb img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

/* محتوای کارت */
.b2-search-content {
    padding: 0.85rem 1rem 1.1rem;
}

/* عنوان پست */
.b2-search-post-title {
    font-size: 1rem;
    margin: 0 0 0.4rem 0;
}

.b2-search-post-title a {
    text-decoration: none;
    color: #0F4C81;
}

.b2-search-post-title a:hover {
    color: #FF6F3C;
}

/* متا (تاریخ + دسته) */
.b2-search-meta {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.55rem;
}

.b2-search-sep {
    margin: 0 0.3rem;
}

/* خلاصه */
.b2-search-excerpt {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* بدون نتیجه */
.b2-search-empty {
    margin-top: 2rem;
    font-size: 0.95rem;
}

/* صفحه‌بندی */
.b2-search-pagination {
    margin-top: 2rem;
    text-align: center;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .b2-search .b2-container {
        padding: 1.2rem 0.9rem 2.2rem;
    }

    .b2-search-results {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .b2-search-thumb img {
        height: 190px;
    }

    .b2-search-form {
        max-width: 100%;
    }
}
/* کانتینر کلی single */
.b2-single .b2-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* هدر مقاله */
.b2-single-header {
    margin-bottom: 1.8rem;
}

.b2-single-title {
    font-size: 1.7rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

/* متای بالا (تاریخ، دسته، دیدگاه) */
.b2-single-meta {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    margin-bottom: 1rem;
}

.b2-single-sep {
    margin: 0 0.25rem;
}

/* تصویر شاخص */
.b2-single-thumb {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.b2-single-thumb img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    object-fit: cover;
}

/* متن مقاله */
.b2-single-content {
    font-size: 0.98rem;
    line-height: 1.9;
}

.b2-single-content p {
    margin-bottom: 1.1rem;
}

.b2-single-content h2,
.b2-single-content h3,
.b2-single-content h4 {
    margin-top: 1.7rem;
    margin-bottom: 0.7rem;
}

/* صفحه‌بندی داخلی مطلب */
.b2-single-pages {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* باکس نویسنده */
.b2-author-box {
    margin-top: 2.5rem;
    padding: 1.2rem 1rem;
    border-radius: 14px;
    background: #f9f9fb;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid rgba(15, 76, 129, 0.06);
}

.b2-author-avatar img {
    border-radius: 50%;
}

.b2-author-info {
    flex: 1;
}

.b2-author-name {
    font-size: 1rem;
    margin: 0 0 0.4rem 0;
}

.b2-author-bio {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.8;
}

.b2-author-link {
    font-size: 0.85rem;
    text-decoration: none;
    color: #0F4C81;
}

.b2-author-link:hover {
    color: #FF6F3C;
}

/* ناوبری نوشته قبل/بعد */
.b2-single-post-nav {
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.b2-single-post-nav a {
    text-decoration: none;
    color: #0F4C81;
}

.b2-single-post-nav a:hover {
    color: #FF6F3C;
}

/* بخش دیدگاه‌ها (فقط فاصله از بالا) */
.b2-single-comments {
    margin-top: 2.5rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .b2-single .b2-container {
        padding: 1.2rem 0.9rem 2.4rem;
    }

    .b2-single-title {
        font-size: 1.3rem;
    }

    .b2-author-box {
        flex-direction: row;
        align-items: flex-start;
    }
}
