/* هماهنگ‌سازی صفحات وبلاگ با هویت بصری جدید سایت فوتون */
.blog-page-hero {
    min-height: 150px !important;
    background-color: #24282d !important;
    background-size: cover !important;
    border-bottom: 4px solid #f4c400;
}

.blog-page-hero .cblog { min-height: 150px !important; }
.blog-page-content, .blog-article-page { padding: 42px 0 60px !important; background: #f5f6f7; }
.blog-modern-list { direction: rtl; }
.blog-heading { margin: -118px 0 34px; color: #fff; text-align: right; position: relative; z-index: 2; }
.blog-heading span { display: block; margin-bottom: 8px; color: #f4c400; font-size: 13px; font-weight: 700; }
.blog-heading h1 { margin: 0 0 9px !important; color: #fff; font-size: 28px !important; font-weight: 700; }
.blog-heading p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; }
.blog-modern-list > hr { display: none; }
/* خروجی قدیمی «مطالب ویژه» ساختار ستونی ناسازگار داشت و فضای خالی ایجاد می‌کرد. */
.blog-modern-list .lblesp { display: none !important; }
.blog-featured-slider, #slideshow { display: none !important; overflow: hidden; margin: 22px 0 36px !important; background: #fff; border: 1px solid #e1e3e5; border-bottom: 3px solid #f4c400; box-shadow: 0 10px 28px rgba(22,27,31,.08); }
.blog-slideshow { min-height: 330px !important; background: #fff !important; }
.blog-container { display: flex; flex-direction: row; align-items: stretch; width: 100% !important; min-height: 330px; padding: 0 !important; }
.blog-slideshow-text { order: 1; width: 46% !important; padding: 40px !important; text-align: right; }
.blog-slideshow-text h1 { margin: 0 0 16px !important; color: #1c2024 !important; font-size: 23px !important; line-height: 1.75 !important; }
.blog-slideshow-text h2 { max-height: 108px; overflow: hidden; color: #626970 !important; font-size: 14px !important; line-height: 2 !important; }
.blog-slideshow-text .btn { background: #f4c400 !important; border: 1px solid #f4c400 !important; color: #1c2024 !important; border-radius: 4px !important; font-weight: 700; }
.blog-slideshow-image { order: 2; display: flex; align-items: center; justify-content: center; width: 54% !important; min-height: 330px; padding: 16px; background: #fff; }
.blog-slideshow-image img { width: 100%; height: 298px !important; object-fit: contain; object-position: center; }
.blog-slider-dots { display: none !important; }
.blog-main-grid { display: flex !important; flex-direction: row !important; align-items: flex-start; margin-top: 14px; direction: rtl; }
.blog-sidebar-column { order: 1; float: none !important; }
.blog-posts-column { order: 2; float: none !important; }
.blog-section-title, .blog-sidebar-box .title { margin-bottom: 18px !important; padding: 0 0 12px !important; border-bottom: 1px solid #d9dcdf !important; }
.blog-section-title h5, .blog-sidebar-box .title h5 { margin: 0 !important; padding-right: 14px; border-right: 4px solid #f4c400; color: #20252a !important; font-size: 18px !important; font-weight: 700; }
.single-blog-post.post-style-4 { min-height: 178px; margin-bottom: 18px !important; padding: 14px; gap: 22px; background: #fff; border: 1px solid #e0e3e5; border-right: 4px solid #f4c400; box-shadow: 0 7px 20px rgba(24,28,32,.06); transition: transform .2s ease, box-shadow .2s ease; }
.single-blog-post.post-style-4:hover { transform: translateY(-2px); box-shadow: 0 12px 27px rgba(24,28,32,.11); }
.single-blog-post.post-style-4 .post-thumbnail { flex: 0 0 225px !important; width: 225px !important; }
.single-blog-post.post-style-4 .recent_post_image { width: 225px; height: 148px !important; padding: 6px; border: 0 !important; border-radius: 3px !important; background: #fff; object-fit: contain; object-position: center; }
.single-blog-post.post-style-4 .post-content { flex: 1 1 auto; padding: 10px 0 !important; text-align: right; }
.single-blog-post.post-style-4 .post-content h1, .single-blog-post.post-style-4 .post-content h1 p { margin: 0 0 15px !important; color: #20252a !important; font-size: 17px !important; line-height: 1.85 !important; font-weight: 700; }
.single-blog-post .post-meta, .single-blog-post .post-meta a, .single-blog-post .post-date { color: #777f86 !important; font-size: 12px !important; }
.blog-sidebar-box { overflow: hidden; margin-bottom: 20px; padding: 22px; background: #fff; border: 1px solid #e0e3e5; box-shadow: 0 7px 20px rgba(24,28,32,.05); }
.blog-sidebar-box .title { position: relative; display: block; width: 100%; margin: 0 0 18px !important; padding: 0 12px 14px 0 !important; border: 0 !important; border-right: 4px solid #f4c400 !important; border-bottom: 1px solid #d9dcdf !important; color: #20252a !important; font-size: 18px !important; line-height: 1.7 !important; }
.blog-sidebar-box .title h5 { margin: 0 !important; padding: 0 !important; border: 0 !important; color: #20252a !important; font-size: 18px !important; line-height: 1.7 !important; }
.blog-sidebar-box .title::after, .blog-sidebar-box .title::before,
.blog-sidebar-box .title h5::after, .blog-sidebar-box .title h5::before { display: none !important; content: none !important; border: 0 !important; }
.blog-search-row { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.blog-sidebar-box .blog-search-row .form-control { flex: 1 1 auto; min-width: 0; width: auto !important; height: 44px; margin: 0 !important; padding: 8px 12px; border: 1px solid #d8dcdf; border-radius: 3px; box-sizing: border-box; }
.blog-sidebar-box .blog-search-row .btn { flex: 0 0 auto; min-width: 78px; min-height: 44px; margin: 0 !important; padding: 8px 13px; background: #f4c400 !important; border: 1px solid #f4c400 !important; color: #20252a !important; border-radius: 3px; box-sizing: border-box; }
.blog-sidebar-box ul li a { display: flex; justify-content: space-between; padding: 10px 4px; color: #343a40 !important; border-bottom: 1px solid #eceeef; }
.blog-sidebar-box .categories { display: flex; flex-direction: column; width: 100%; }
.blog-sidebar-box .categories > a { display: flex; justify-content: space-between; width: 100%; padding: 10px 4px; color: #343a40 !important; border-bottom: 1px solid #eceeef; }
.blog-sidebar-box .categories > a:last-child { border-bottom: 0; }
.blog-sidebar-box .widget-post { padding: 10px 0; border-bottom: 1px solid #eceeef; }
.pagination { display: flex; justify-content: center; gap: 6px; }
.pagination a { min-width: 38px; padding: 8px 10px; color: #20252a; background: #fff; border: 1px solid #d8dcdf; text-align: center; }
.pagination a.active, .pagination a:hover { background: #f4c400; border-color: #f4c400; }

/* صفحه داخلی هر مطلب */
.blog-article-page .world-latest-articles { max-width: 1180px; margin: 0 auto; }
.blog-article-layout { display: flex !important; flex-direction: row !important; align-items: flex-start; direction: rtl; }
.blog-article-sidebar { order: 1; float: none !important; }
.blog-article-shell { padding: 0 !important; background: #fff; border: 1px solid #e0e3e5; border-bottom: 4px solid #f4c400; box-shadow: 0 12px 30px rgba(24,28,32,.08); }
.blog-article-layout .blog-article-shell { order: 2; float: none !important; }
.blog-article-sidebar .widget-post .post-thumbnail { flex: 0 0 68px; width: 68px; }
.blog-article-sidebar .widget-post .post-thumbnail img { width: 68px; height: 58px !important; object-fit: contain; background: #fff; }
.blog-article-sidebar .widget-post .post-content { padding-right: 10px; }
.blog-article-sidebar .widget-post h5 { color: #343a40; font-size: 12px !important; line-height: 1.8; }
.blog-article-title { padding: 28px 34px 22px !important; border-bottom: 1px solid #e5e7e9 !important; }
.blog-back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 15px; color: #777f86 !important; font-size: 12px; }
.blog-article-title h5 { margin: 0 !important; color: #20252a !important; font-size: 25px !important; line-height: 1.75 !important; font-weight: 700; }
.blog-article-content { padding: 32px 42px 44px !important; }
.blog-article-content center { margin-bottom: 30px; }
.blog-article-content .post-main-image { display: block; width: auto; max-width: 100% !important; max-height: 520px; margin: 0 auto; object-fit: contain; }
.blog-article-content .post-body { color: #343a40; font-size: 16px !important; line-height: 2.2 !important; text-align: justify; }
.blog-article-content .post-body p { margin-bottom: 20px; }
.blog-article-content .post-body h2, .blog-article-content .post-body h3 { margin: 28px 0 14px; color: #20252a; line-height: 1.8; }
.blog-article-content .post-body img { max-width: 100%; height: auto !important; }

@media (max-width: 991.98px) {
    .blog-heading { margin-top: -116px; }
    .blog-slideshow { min-height: 0 !important; }
    .blog-container { display: block; min-height: 0; }
    .blog-slideshow-text, .blog-slideshow-image { width: 100% !important; }
    .blog-slideshow-image { min-height: 250px; }
    .blog-slideshow-image img { height: 250px !important; }
    .blog-slideshow-text { padding: 26px !important; }
    .blog-main-grid { display: flex !important; flex-direction: column !important; }
    .blog-posts-column { order: 1; }
    .blog-sidebar-column { order: 2; margin-top: 28px; }
    .blog-article-layout { flex-direction: column !important; }
    .blog-article-layout .blog-article-shell { order: 1; }
    .blog-article-sidebar { order: 2; margin-top: 24px; }
}

@media (max-width: 575.98px) {
    .blog-page-content, .blog-article-page { padding: 28px 0 35px !important; }
    .blog-heading h1 { font-size: 23px !important; }
    .blog-heading p { font-size: 12px; line-height: 1.9; }
    .single-blog-post.post-style-4 { display: block !important; }
    .single-blog-post.post-style-4 .post-thumbnail, .single-blog-post.post-style-4 .recent_post_image { width: 100% !important; height: 190px !important; object-fit: contain; }
    .blog-search-row { flex-direction: column; }
    .blog-sidebar-box .blog-search-row .btn { width: 100%; }
    .blog-article-title { padding: 22px 20px 18px !important; }
    .blog-article-title h5 { font-size: 20px !important; }
    .blog-article-content { padding: 22px 20px 30px !important; }
    .blog-article-content .post-body { font-size: 14px !important; line-height: 2.1 !important; }
}
