/*
Theme Name: PetrochemiHa
Theme URI: https://petrochemiha.ir/
Author: مارون استودیو
Author URI: https://marunstudio.ir/
Description: پوسته فوق تخصصی و پرسرعت پایگاه خبری تحلیلی پتروشیمی ها - مرجع تخصصی نفت، گاز، پتروشیمی و صنایع وابسته.
Version: 2.0.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: petrochemiha
Domain Path: /languages
*/

/* ==========================================================================
   ۱. بارگذاری فونت محلی ساحل (Sahel Local Font)
   ========================================================================== */
@font-face {
    font-family: 'Sahel';
    src: url('assets/fonts/Sahel/Sahel-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sahel';
    src: url('assets/fonts/Sahel/Sahel-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sahel';
    src: url('assets/fonts/Sahel/Sahel-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sahel';
    src: url('assets/fonts/Sahel/Sahel-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sahel';
    src: url('assets/fonts/Sahel/Sahel-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   ۲. متغیرها و ریست پایه CSS
   ========================================================================== */
:root {
    --font-main: 'Sahel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --color-primary: #d92121;
    --color-primary-hover: #b81616;
    --color-search-icon: #f97316;
    --color-danger: #d92121;
    --color-danger-hover: #b81616;
    --color-dark: #0f172a;
    --color-text: #334155;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-bg-light: #ffffff;
    --color-bg-subtle: #f8fafc;
    
    --color-btn-cyan: #00a5e5;
    --color-btn-cyan-hover: #028ac0;
    --color-btn-blue: #0ea5e9;
    --color-btn-blue-hover: #0284c7;

    --bg-footer-top: #283c54;
    --bg-footer-main: #152232;
    --text-footer-title: #ffffff;
    --text-footer-body: #8ea0b5;
    --text-footer-dim: #546882;
    --border-footer: rgba(255, 255, 255, 0.07);
    
    --container-max: 1240px;
    --transition-speed: 0.2s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--color-text);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    width: 100%;
    position: relative;
}

main {
    flex: 1;
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition-speed), background-color var(--transition-speed), opacity var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: var(--font-main);
}

button {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color var(--transition-speed), background-color var(--transition-speed), opacity var(--transition-speed);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ==========================================================================
   ۳. مسیر راهنما (Breadcrumbs)
   ========================================================================== */
.breadcrumbs-bar {
    padding: 1.2rem 0 0.9rem;
    font-size: 0.84rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumbs-bar a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.breadcrumbs-bar a:hover {
    color: var(--color-primary);
}

.breadcrumbs-bar .sep {
    color: #cbd5e1;
    font-size: 0.8rem;
    user-select: none;
}

.breadcrumbs-bar .current {
    color: var(--color-dark);
    font-weight: 700;
}

/* ==========================================================================
   ۴. هدر و منوی ناوبری اصلی سایت (Header & Navigation)
   ========================================================================== */
.site-header {
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 90;
}

.header-top {
    padding: 0.85rem 0;
    border-bottom: 1px solid #f2f4f7;
}

.header-top-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-action-right {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.btn-bale {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--color-bale, #10b981);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    transition: background-color var(--transition-speed);
}

.btn-bale:hover {
    background-color: var(--color-bale-hover, #059669);
    color: #ffffff;
}

.btn-bale svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.header-brand {
    flex: 1;
    display: flex;
    justify-content: center;
}

.brand-logo {
    display: inline-block;
    height: 52px;
}

.brand-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.header-action-left {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
}

.sub-sections-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-dark);
    padding: 0.4rem;
    border-radius: 4px;
}

.sub-sections-btn:hover {
    color: var(--color-primary);
}

.search-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    padding: 0.4rem;
    border-radius: 50%;
}

.search-trigger-btn:hover {
    color: var(--color-primary);
    background-color: #f3f4f6;
}

.icon-svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-nav {
    padding: 0;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
}

.menu-item {
    position: relative;
}

.menu-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.95rem 0.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
}

.menu-item a:hover,
.menu-item.current-menu-item > a,
.menu-item.current_page_item > a {
    color: var(--color-primary);
}

.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-left: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(-45deg);
    margin-right: 6px;
    margin-top: -3px;
    transition: transform 0.25s ease;
    vertical-align: middle;
}

.menu-item-has-children:hover > a::after {
    transform: rotate(135deg);
    margin-top: 2px;
}

.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border-top: 2.5px solid var(--color-primary);
    padding: 0.35rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
    z-index: 100;
}

.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sub-menu li {
    margin: 0;
    border-bottom: 1px solid #f8fafc;
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu li a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-dark);
    border-radius: 0;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.sub-menu li a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    transform: rotate(45deg);
    opacity: 0.6;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sub-menu li a:hover {
    background-color: #f8fafc;
    color: var(--color-primary);
}

.sub-menu li a:hover::before {
    opacity: 1;
    transform: rotate(45deg) scale(1.25);
}

/* ==========================================================================
   ۵. استایل‌های صفحه نخست (Hero News Grid)
   ========================================================================== */
.news-hero-section {
    padding: 2rem 0 3.5rem;
}

.news-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.95fr 0.85fr;
    gap: 1.6rem;
    align-items: start;
}

.featured-column {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.main-featured-article {
    display: flex;
    flex-direction: column;
}

.featured-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 510 / 355 !important;
    background-color: #0f172a;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.featured-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.badge-important {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-danger);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 6px rgba(217, 33, 33, 0.4);
    z-index: 2;
}

.badge-important svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.featured-title {
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.55;
    color: #0f172a;
    margin-top: 0.85rem;
}

.featured-title a:hover {
    color: var(--color-primary);
}

.sub-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    padding-top: 0.6rem;
}

.sub-featured-card {
    display: flex;
    flex-direction: column;
}

.sub-featured-card .sub-title {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.55;
    color: #1e293b;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sub-img-wrap {
    width: 100%;
    aspect-ratio: 510 / 355 !important;
    background-color: #1e293b;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.sub-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.sub-title {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.6;
    color: #1e293b;
    margin-top: 0.6rem;
}

.sub-title a:hover {
    color: var(--color-primary);
}

.latest-news-column {
    display: flex;
    flex-direction: column;
}

.section-header-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
}

.latest-news-list {
    display: flex;
    flex-direction: column;
}

.latest-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.latest-thumb {
    width: 62px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f1f5f9;
}

.latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-item-title {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.55;
    color: #1e293b;
}

.latest-item-title a:hover {
    color: var(--color-primary);
}

.latest-item.latest-item-first {
    padding-top: 0;
    padding-bottom: 0.9rem;
    align-items: flex-start;
}

.latest-item-first .latest-thumb {
    width: 82px;
    height: 62px;
}

.latest-item-first .latest-item-title {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.55;
}

.latest-item:last-child {
    border-bottom: none;
}

.side-news-column {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.date-badge-header {
    font-size: 0.86rem;
    font-weight: 800;
    color: #334155;
    border-bottom: 1.5px solid #cbd5e1;
    padding-bottom: 0.5rem;
    margin-bottom: 0.2rem;
    text-align: right;
}

.side-news-card {
    display: flex;
    flex-direction: column;
}

.side-img-wrap {
    width: 100%;
    aspect-ratio: 510 / 355 !important;
    background-color: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.side-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.side-news-title {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.55;
    color: #0f172a;
    margin-top: 0.55rem;
    margin-bottom: 0;
    
    /* استاندارد جهانی برش متن در حداکثر ۲ سطر */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    
    transition: color var(--transition-speed);
}

.side-news-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}


.side-news-card:hover .side-news-title,
.side-news-card:hover .side-news-title a,
.side-news-title a:hover {
    color: var(--color-primary);
}

.side-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.2rem;
}

.cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    padding: 0.65rem 0.8rem;
    border-radius: 4px;
}

.cta-btn-cyan {
    background-color: var(--color-btn-cyan);
}

.cta-btn-cyan:hover {
    background-color: var(--color-btn-cyan-hover);
    color: #ffffff;
}

.cta-btn-blue {
    background-color: var(--color-btn-blue);
}

.cta-btn-blue:hover {
    background-color: var(--color-btn-blue-hover);
    color: #ffffff;
}

/* ==========================================================================
   ۱۵. ماژول ۴ ستونه موضوعی و پیشنهاد سردبیر
   ========================================================================== */
.quad-news-section {
    padding: 2rem 0 3rem;
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
    margin-top: 1.5rem;
}

.quad-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.quad-news-col {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.quad-col-header {
    border-bottom: 2px solid var(--color-dark);
    padding-bottom: 0.45rem;
    margin-bottom: 0.9rem;
}

.quad-col-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    text-align: right;
}

.quad-col-title a:hover {
    color: var(--color-primary);
}

.quad-card-lead {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.85rem;
    cursor: pointer;
}

.quad-lead-thumb {
    width: 100%;
    aspect-ratio: 510 / 355 !important;
    border-radius: 6px;
    overflow: hidden;
    background-color: #0f172a;
    display: block;
    margin-bottom: 0.65rem;
}

.quad-lead-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.quad-lead-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.6;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-speed);
}

.quad-lead-title a {
    transition: color var(--transition-speed);
}

.quad-card-lead:hover .quad-lead-title,
.quad-card-lead:hover .quad-lead-title a {
    color: var(--color-primary);
}

.quad-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quad-mini-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.quad-mini-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.quad-mini-thumb {
    width: 74px;
    height: 54px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f1f5f9;
    display: block;
}

.quad-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quad-mini-title {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.55;
    color: #334155;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-speed);
}

.quad-mini-title a {
    transition: color var(--transition-speed);
}

.quad-mini-item:hover .quad-mini-title,
.quad-mini-item:hover .quad-mini-title a {
    color: var(--color-primary);
}

.quad-col-header.is-editor-choice {
    border-top: none;
    border-bottom: 2.5px solid var(--color-danger);
    padding: 0 0 0.45rem 0;
    margin-bottom: 0;
    text-align: right;
}

.quad-col-header.is-editor-choice .quad-col-title {
    color: var(--color-danger);
    text-align: right;
    font-size: 1.15rem;
    font-weight: 700;
}

.quad-editor-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7;
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.quad-editor-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.62rem 0.8rem;
    border-bottom: 1px solid #eef2f6;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.quad-editor-item:nth-child(even) {
    background-color: #f8fafc;
}

.quad-editor-item:last-child {
    border-bottom: none;
}

.quad-editor-item:hover {
    background-color: #f1f5f9;
}

.quad-editor-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-danger);
    line-height: 1;
    flex-shrink: 0;
    min-width: 14px;
    text-align: center;
}

.quad-editor-title {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.55;
    color: #1e293b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-speed);
}

.quad-editor-title a {
    transition: color var(--transition-speed);
}

.quad-editor-item:hover .quad-editor-title,
.quad-editor-item:hover .quad-editor-title a {
    color: var(--color-primary);
}

.quad-tweets-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-radius: 4px;
    overflow: hidden;
}

.quad-tweet-card {
    padding: 0.48rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: justify;
    cursor: default;
    border-radius: 0;
}

.quad-tweet-card:nth-child(odd) {
    background-color: #991b1b !important;
}

.quad-tweet-card:nth-child(even) {
    background-color: #881337 !important;
}

.quad-tweet-text {
    color: #ffffff !important;
    display: inline;
}

.quad-tweet-time {
    color: #fef08a !important;
    font-size: 0.74rem;
    font-weight: 700;
    margin-right: 0.3rem;
    white-space: nowrap;
    display: inline-block;
}
/* ==========================================================================
   ۱۴. ریسپانسیو و بهینه‌سازی اختصاصی موبایل و تبلت
   ========================================================================== */

/* تبلت (۱۰۲۴px تا ۷۶۸px) */
@media (max-width: 1024px) {
    .news-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .side-news-column {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    .date-badge-header, .side-cta-buttons {
        grid-column: span 2;
    }
    .archive-grid-layout {
        grid-template-columns: 1fr;
    }
    .article-page-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-news-column {
        grid-column: span 1;
        margin-top: 2rem;
    }
    .media-archive-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .finance-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-photos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem;
    }
    .quad-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .multimedia-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.1rem;
    }
    .notes-cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem;
    }
}

/* موبایل‌های متوسط و بزرگ (زیر ۷۶۸px) */
@media (max-width: 768px) {
    .header-nav {
        display: none !important;
    }
    .header-top {
        border-bottom: none;
    }
    .news-hero-grid {
        grid-template-columns: 1fr;
    }
    .side-news-column {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
    }
    .date-badge-header, .side-cta-buttons {
        grid-column: span 1;
    }

    .archive-cards-list {
        gap: 0.9rem;
    }

    .archive-item-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.85rem;
        padding: 0.75rem;
        background-color: #ffffff;
        border-radius: 8px;
    }

    .archive-item-thumb {
        width: 110px !important;
        height: 78px !important;
        aspect-ratio: 16 / 11;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .archive-item-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
        flex: 1;
        gap: 0.35rem;
    }

    .archive-item-heading {
        font-size: 0.88rem;
        font-weight: 700;
        line-height: 1.5;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .archive-item-excerpt {
        display: none !important;
    }

    .archive-item-meta {
        font-size: 0.72rem;
        gap: 0.65rem;
        color: #94a3b8;
    }

    .article-page-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .article-meta-sticky {
        display: none !important;
    }

    .article-meta-info-bar {
        display: flex;
    }

    .page-content-card {
        padding: 1.25rem 1rem;
    }

    .form-grid-row {
        grid-template-columns: 1fr;
    }
    
    .footer-main-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .gallery-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .gallery-main-title {
        font-size: 1.3rem;
    }

    .gallery-meta-bar {
        gap: 0.85rem;
        font-size: 0.78rem;
    }

    .lightbox-nav-btn {
        width: 38px;
        height: 38px;
    }

    .notes-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* موبایل‌های استاندارد (زیر ۶۴۰px) - تبدیل تب‌ها به ۲ ردیف دوتایی و کارت‌ها به اسکرول افقی شیک */
@media (max-width: 640px) {
    .quad-news-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .sub-featured-grid {
        grid-template-columns: 1fr;
    }
    .search-close-btn {
        top: 1.2rem;
        left: 1.2rem;
    }
    .sub-sections-btn span {
        display: none;
    }
    .brand-logo {
        height: 40px;
    }
    .footer-bottom-grid {
        flex-direction: column-reverse;
        gap: 0.6rem;
        text-align: center;
    }
    .media-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .media-card-content {
        padding: 0.65rem;
    }
    .media-card-title {
        font-size: 0.78rem;
    }
    .home-multimedia-section {
        padding: 1.5rem 0 2.5rem;
    }

    .multimedia-nav-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
        margin-bottom: 1.2rem !important;
        width: 100% !important;
    }

    /* ۱. تبدیل کانتینر تب‌ها به شبکه ۲ ستونه در ۲ ردیف (۲x۲ Grid کامل) */
    .multimedia-tabs-pill-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* دقیقاً دو ستون مساوی */
        width: 100% !important;
        gap: 6px !important;
        padding: 6px !important;
        border-radius: 12px !important;
        background-color: #f1f5f9 !important;
        box-sizing: border-box !important;
    }

    /* ۲. دکمه‌های تب (هر کدام ۵۰٪ عرض ردیف خود را پر می‌کنند) */
    .multimedia-tab-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0.65rem 0.4rem !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        gap: 0.35rem !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .multimedia-tab-btn .tab-icon {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
    }

    /* ۳. لینک مشاهده آرشیو در زیر دکمه‌های دوتایی */
    .multimedia-archive-link-wrap {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        padding-top: 2px !important;
    }

    .multimedia-archive-link {
        font-size: 0.84rem !important;
        color: var(--color-danger) !important;
    }

    /* ۴. اسکرول افقی لمسی کارت‌های خبر در زیر تب‌ها (با قابلیت Snap و اسکرول‌بار نازک) */
    .multimedia-cards-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        gap: 0.95rem !important;
        padding-bottom: 0.9rem !important;
        padding-top: 0.2rem !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        scrollbar-width: thin !important;
        scrollbar-color: #cbd5e1 #f1f5f9 !important;
    }

    /* اسکرول‌بار مینی‌مال ۳.۵ پیکسلی */
    .multimedia-cards-grid::-webkit-scrollbar {
        height: 3.5px !important;
    }

    .multimedia-cards-grid::-webkit-scrollbar-track {
        background: #f1f5f9 !important;
        border-radius: 10px !important;
    }

    .multimedia-cards-grid::-webkit-scrollbar-thumb {
        background: #cbd5e1 !important;
        border-radius: 10px !important;
    }

    .multimedia-cards-grid::-webkit-scrollbar-thumb:hover {
        background: var(--color-primary) !important;
    }

    /* اندازه هر کارت در اسکرول موبایل (۷۵٪ عرض صفحه برای نمایش بخشی از کارت بعدی) */
    .multimedia-card {
        flex: 0 0 75% !important;
        max-width: 270px !important;
        width: 75% !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        box-sizing: border-box !important;
    }

    .multimedia-thumb-wrap {
        width: 100% !important;
        aspect-ratio: 16 / 10 !important;
        border-radius: 8px !important;
        margin-bottom: 0.5rem !important;
    }

    .multimedia-card-title {
        font-size: 0.84rem !important;
        line-height: 1.55 !important;
    }

    .finance-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .finance-hero-left {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid #f1f5f9;
        padding-top: 0.8rem;
    }
    .finance-stat-grid {
        grid-template-columns: 1fr;
    }
    .finance-data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* موبایل‌های کوچک (زیر ۴۸۰px) */
@media (max-width: 480px) {
    .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .archive-item-card {
        gap: 0.65rem;
        padding: 0.6rem;
    }
    .archive-item-thumb {
        width: 95px !important;
        height: 68px !important;
    }
    .archive-item-heading {
        font-size: 0.82rem;
    }
    .notes-cards-container {
        grid-template-columns: 1fr;
    }
    .multimedia-card {
        flex: 0 0 215px;
        width: 215px;
    }
}
/* ==========================================================================
   ۱۶. ماژول تب‌های چندرسانه‌ای و تب‌های تخصصی
   ========================================================================== */
.home-multimedia-section {
    padding: 2rem 0 3.5rem;
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
    margin-top: 1.5rem;
}

.multimedia-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.multimedia-tabs-pill-container {
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    padding: 0.3rem;
    border-radius: 30px;
    gap: 0.25rem;
}

.multimedia-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.15rem;
    border-radius: 25px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.multimedia-tab-btn .tab-icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
    transition: color 0.2s;
}

.multimedia-tab-btn:hover {
    color: var(--color-danger);
}

.multimedia-tab-btn.active {
    background-color: #ffffff;
    color: var(--color-danger);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.multimedia-tab-btn.active .tab-icon {
    color: var(--color-danger);
}

.multimedia-archive-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
    transition: color 0.2s;
}

.multimedia-archive-link svg {
    width: 13px;
    height: 13px;
    transition: transform 0.2s;
}

.multimedia-archive-link:hover {
    color: var(--color-danger);
}

.multimedia-archive-link:hover svg {
    transform: translateX(-3px);
}

.multimedia-tab-pane {
    display: none;
    animation: multiFadeIn 0.3s ease;
}

.multimedia-tab-pane.active {
    display: block;
}

@keyframes multiFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.multimedia-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.multimedia-card {
    display: flex;
    flex-direction: column;
}

.multimedia-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background-color: #0f172a;
    display: block;
    margin-bottom: 0.65rem;
}

.multimedia-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.multimedia-thumb-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

.multimedia-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #d92121;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
}

.multimedia-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #d92121;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(217, 33, 33, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.multimedia-play-btn svg {
    width: 18px;
    height: 18px;
    margin-right: -2px;
}

.multimedia-card:hover .multimedia-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #b91c1c;
}

.multimedia-card-title {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.6;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-speed);
}

.multimedia-card:hover .multimedia-card-title,
.multimedia-card:hover .multimedia-card-title a {
    color: var(--color-primary);
}

/* ==========================================================================
   ۱۷. ماژول متحرک لوگوی شرکت‌ها
   ========================================================================== */
.home-companies-section {
    padding: 2.5rem 0 3.5rem;
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
    margin-top: 1.5rem;
}

.companies-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.companies-main-title {
    font-size: 1.32rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.companies-sub-title {
    font-size: 0.86rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

.companies-marquee-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.companies-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: companiesMarqueeScroll 40s linear infinite;
}

.home-companies-section:hover .companies-marquee-track,
.companies-marquee-wrapper:hover .companies-marquee-track {
    animation-play-state: paused !important;
}

.companies-marquee-group {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding-left: 1.1rem;
    flex-shrink: 0;
}

.company-logo-item {
    flex-shrink: 0;
}

.company-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 155px;
    height: 86px;
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    padding: 0.8rem 1.1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
}

.company-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter var(--transition-speed), opacity var(--transition-speed), transform var(--transition-speed);
}

.company-logo-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
    transform: translateY(-2px);
}

.company-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes companiesMarqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* ==========================================================================
   ۱۸. ماژول یادداشت و تحلیل
   ========================================================================== */
.home-notes-section {
    padding: 2.2rem 0 3.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-top: 1.5rem;
}

.notes-section-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.25rem;
}

.notes-section-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--color-dark);
    margin: 0;
    text-align: right;
}

.notes-section-title a:hover {
    color: var(--color-primary);
}

.notes-cards-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.note-card-item {
    display: flex;
    flex-direction: column;
}

.note-card-link {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.35;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    background-color: #0f172a;
}

.note-card-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.note-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.note-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.55) 45%, transparent 100%);
    pointer-events: none;
}

.note-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.85rem;
    z-index: 2;
}

.note-card-title {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    transition: color var(--transition-speed);
}

.note-card-link:hover .note-card-thumb img {
    transform: scale(1.06);
}

.note-card-link:hover .note-card-title {
    color: #38bdf8;
}

/* ==========================================================================
   ۶. استایل‌های صفحه آرشیو، دسته‌بندی و پروفایل‌ها
   ========================================================================== */
.archive-header-card {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.8rem 2rem;
    margin: 1.5rem 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.archive-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.archive-title-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.archive-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-dark);
}

.archive-count-badge {
    background-color: #ffffff;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

.profile-header-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem 1.8rem;
    margin: 1.5rem 0 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.profile-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.profile-identity-wrap {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.profile-logo-avatar {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background-color: #ffffff;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-logo-avatar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.profile-logo-avatar.is-author {
    border-radius: 50%;
}

.profile-logo-avatar.is-author img {
    border-radius: 50%;
    object-fit: cover;
}

.profile-meta-info h1 {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 0.35rem;
}

.profile-badges-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-pill-badge {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
}

.profile-action-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.profile-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 5px;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-dark);
}

.profile-btn-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.profile-btn-link.is-codal {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: var(--color-danger);
}

.archive-grid-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

.page-grid-layout {
    margin-top: 1.5rem;
    margin-bottom: 3.5rem;
}

.archive-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.archive-item-card {
    display: flex;
    align-items: stretch;
    gap: 1.3rem;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
}

.archive-item-thumb {
    width: 220px;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #0f172a;
}

.archive-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.archive-item-heading {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.6;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.archive-item-heading a:hover {
    color: var(--color-primary);
}

.archive-item-excerpt {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
}

.archive-item-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}

.archive-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.archive-item-meta svg {
    width: 14px;
    height: 14px;
}

/* نوار دیده‌بان زنده بازار */
.category-ticker-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    margin-bottom: 1.6rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    position: relative;
}

.ticker-badge-lead {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.ticker-badge-lead.is-bourse { background: #00897b; }
.ticker-badge-lead.is-oil    { background: #0284c7; }
.ticker-badge-lead.is-petro  { background: #7c3aed; }

.ticker-live-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: tickerPulse 1.6s infinite ease-in-out;
}

@keyframes tickerPulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.ticker-marquee-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.ticker-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: tickerScrollRight 20s linear infinite;
}

.category-ticker-bar:hover .ticker-marquee-track,
.ticker-marquee-wrapper:hover .ticker-marquee-track {
    animation-play-state: paused !important;
}

.ticker-marquee-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 0.6rem;
    flex-shrink: 0;
}

.ticker-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.32rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    flex-shrink: 0;
    cursor: default;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.ticker-chip:hover {
    background-color: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.ticker-chip-name {
    font-weight: 400;
    color: #1e293b;
}

.ticker-chip-price {
    font-weight: 400;
    color: #334155;
}

.ticker-chip-change {
    font-weight: 400;
    font-size: 0.76rem;
    direction: ltr;
}

.ticker-chip-change.is-up { color: #059669; }
.ticker-chip-change.is-down { color: #dc2626; }

@keyframes tickerScrollRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.category-market-widget-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    margin-bottom: 0.85rem;
}

.category-market-widget-box .sidebar-oil-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.category-market-widget-box .sidebar-oil-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #f1f5f9;
}

.category-market-widget-box .sidebar-oil-item:last-child {
    border-bottom: none;
    padding-bottom: 0.2rem;
}

.category-market-widget-box .oil-item-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
}

.category-market-widget-box .oil-item-price {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-right: auto;
    margin-left: 0.6rem;
}

.market-widget-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.45rem;
    margin-bottom: 0.4rem;
    border-bottom: 1.5px solid #e2e8f0;
    font-size: 0.74rem;
    font-weight: 800;
    color: #64748b;
    user-select: none;
}

.market-widget-head-row .head-col-name {
    flex: 1;
    text-align: right;
    color: #475569;
}

.market-widget-head-row .head-col-price {
    margin-right: auto;
    margin-left: 0.6rem;
    text-align: center;
    min-width: 58px;
    color: #334155;
}

.market-widget-head-row .head-col-change {
    min-width: 48px;
    text-align: center;
    color: #334155;
    direction: ltr;
}

.category-market-widget-box .oil-item-badge {
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    direction: ltr;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

.category-market-widget-box .oil-item-badge.badge-up,
.category-market-widget-box .oil-item-badge.up {
    background-color: #ecfdf5;
    color: #059669;
}

.category-market-widget-box .oil-item-badge.badge-down,
.category-market-widget-box .oil-item-badge.down {
    background-color: #fef2f2;
    color: var(--color-danger);
}

.cat-market-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    padding: 0.65rem 0.8rem;
    border-radius: 6px;
    background-color: var(--color-btn-cyan);
    margin-bottom: 1.2rem;
    transition: background-color var(--transition-speed);
}

.cat-market-action-btn:hover {
    background-color: var(--color-btn-cyan-hover);
    color: #ffffff;
}

.cat-market-action-btn svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-speed);
}

.cat-market-action-btn:hover svg {
    transform: translateX(-3px);
}

.expandable-text-box {
    position: relative;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.expandable-text-content {
    max-height: 90px;
    overflow: hidden;
    position: relative;
    font-size: 0.94rem;
    line-height: 2;
    color: #334155;
    text-align: justify;
    word-break: break-word;
    transition: max-height 0.35s ease;
}

.expandable-text-content p {
    margin: 0 0 1.1rem 0;
    line-height: 2;
}

.expandable-text-content p:last-child {
    margin-bottom: 0;
}

.expandable-text-content strong,
.expandable-text-content b {
    font-weight: 800;
    color: var(--color-dark);
}

.expandable-text-content h1,
.expandable-text-content h2,
.expandable-text-content h3,
.expandable-text-content h4,
.expandable-text-content h5,
.expandable-text-content h6 {
    color: var(--color-dark);
    line-height: 1.6;
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
    text-align: right;
}

.expandable-text-content h1 {
    font-size: 1.35rem;
    font-weight: 900;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.4rem;
}

.expandable-text-content h2 {
    font-size: 1.2rem;
    font-weight: 800;
    padding-right: 10px;
    border-right: 4px solid var(--color-primary);
}

.expandable-text-content h3 {
    font-size: 1.08rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 7px;
}

.expandable-text-content h3::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.expandable-text-content h4 {
    font-size: 0.98rem;
    font-weight: 700;
}

.expandable-text-content h5,
.expandable-text-content h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
}

.expandable-text-content a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1.5px solid rgba(2, 132, 199, 0.3);
    padding-bottom: 1px;
    transition: all var(--transition-speed);
}

.expandable-text-content a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background-color: #fef2f2;
    border-radius: 2px;
}

.expandable-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1.2rem auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.expandable-text-content figure {
    margin: 1.4rem auto;
    text-align: center;
    max-width: 100%;
}

.expandable-text-content figcaption,
.expandable-text-content .wp-caption-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 0.4rem 0.8rem;
    margin-top: -6px;
    margin-bottom: 1rem;
    text-align: center;
}

.expandable-text-content video,
.expandable-text-content iframe,
.expandable-text-content embed,
.expandable-text-content object {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
    margin: 1.2rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.expandable-text-content iframe {
    aspect-ratio: 16 / 9;
    border: none;
}

.expandable-text-content .table-responsive-wrapper,
.expandable-text-content figure.wp-block-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.4rem 0;
    border-radius: 8px;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.expandable-text-content table,
.expandable-text-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse !important;
    font-size: 0.86rem;
    margin: 0;
    text-align: center;
}

.expandable-text-content table th,
.expandable-text-content .wp-block-table th {
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 800;
    padding: 0.75rem 0.9rem;
    border-bottom: 2.5px solid var(--color-primary) !important;
    border-left: 1px solid #e2e8f0 !important;
    white-space: nowrap;
}

.expandable-text-content table th:last-child {
    border-left: none !important;
}

.expandable-text-content table td,
.expandable-text-content .wp-block-table td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: 1px solid #e2e8f0 !important;
    color: #334155;
    font-weight: 500;
    vertical-align: middle;
}

.expandable-text-content table td:last-child {
    border-left: none !important;
}

.expandable-text-content table tr:last-child td {
    border-bottom: none !important;
}

.expandable-text-content table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.expandable-text-content table tbody tr:hover {
    background-color: #f1f5f9;
}

.expandable-text-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.expandable-text-content ul > li {
    position: relative;
    padding-right: 1.4rem;
    line-height: 1.85;
    color: #334155;
    text-align: justify;
}

.expandable-text-content ul > li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.expandable-text-content ol {
    list-style: none;
    counter-reset: exp-counter;
    padding: 0;
    margin: 1rem 0 1.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.expandable-text-content ol > li {
    position: relative;
    padding-right: 2rem;
    line-height: 1.85;
    color: #334155;
    counter-increment: exp-counter;
    text-align: justify;
}

.expandable-text-content ol > li::before {
    content: counter(exp-counter);
    position: absolute;
    right: 0;
    top: 0.15em;
    width: 20px;
    height: 20px;
    background-color: #f1f5f9;
    color: #0284c7;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.expandable-text-content blockquote {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-right: 4px solid var(--color-primary);
    border-radius: 6px;
    padding: 1.1rem 1.4rem;
    margin: 1.4rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.9;
    color: #1e293b;
}

.expandable-text-content hr {
    border: none;
    border-top: 1.5px dashed #cbd5e1;
    margin: 1.6rem 0;
}

.expandable-text-content code {
    background-color: #f1f5f9;
    color: #b91c1c;
    font-family: monospace;
    font-size: 0.85em;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    direction: ltr;
    display: inline-block;
}

.expandable-text-box:not(.is-expanded) .expandable-text-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
}

.expandable-text-box.is-expanded .expandable-text-content {
    max-height: none !important;
    overflow: visible !important;
}

.expandable-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid var(--color-border);
    height: 40px;
    padding: 0 0.85rem;
    border-radius: 6px;
    background-color: #ffffff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.86rem;
    margin: 1rem auto 0;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.expandable-toggle-btn:hover {
    border-color: var(--color-primary);
    background-color: #f8fafc;
    color: var(--color-primary-hover);
}

.expandable-toggle-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
    transition: transform 0.25s ease;
}

.expandable-text-box.is-expanded .expandable-toggle-btn svg {
    transform: rotate(180deg);
}

.archive-seo-bottom-box {
    margin-top: 2rem;
    margin-bottom: 3.5rem;
}

.empty-state-card {
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
}

.empty-state-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.6rem;
}

.empty-state-desc {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

.empty-state-search {
    max-width: 450px;
    margin: 0 auto;
}

.empty-state-search .search-form-wrapper {
    border: 1px solid var(--color-border);
    box-shadow: none;
}

.media-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.media-card-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color var(--transition-speed);
}

.media-card-item:hover {
    border-color: var(--color-primary);
}

.media-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #0f172a;
    overflow: hidden;
}

.media-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-type-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.media-type-badge svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.media-card-item:hover .media-type-badge {
    background-color: var(--color-primary);
    color: #ffffff;
}

.media-card-content {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.media-card-title {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--color-dark);
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card-title a:hover {
    color: var(--color-primary);
}

.media-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: auto;
    padding-top: 0.4rem;
    border-top: 1px solid #f8fafc;
}

.media-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.media-meta-date svg {
    width: 13px;
    height: 13px;
}

.media-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.8rem;
    transition: color var(--transition-speed);
}

.media-meta-link svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
    transition: transform var(--transition-speed);
}

.media-card-item:hover .media-meta-link {
    color: var(--color-primary-hover);
}

.media-card-item:hover .media-meta-link svg {
    transform: translateX(-2px);
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-dark);
    background-color: #ffffff;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.page-numbers:hover,
a.page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: #f8fafc;
}

.page-numbers.current {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.page-numbers.dots {
    border: none;
    background: transparent;
    color: #94a3b8;
    min-width: auto;
    padding: 0 0.4rem;
}

.page-numbers.prev,
.page-numbers.next {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 1.1rem;
}

/* ==========================================================================
   ۷. استایل‌های صفحه تک‌خبر و برگه‌های ایستا
   ========================================================================== */
.article-page-grid {
    display: grid;
    grid-template-columns: 75px 1fr 310px;
    gap: 2rem;
    align-items: start;
    padding-bottom: 3.5rem;
}

.article-meta-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 24px !important;
    align-self: start !important;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    z-index: 40;
    will-change: transform;
}

.meta-date-card {
    background-color: #f0f2f5;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 0.3rem 0.8rem;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.meta-date-day {
    font-size: 2.1rem;
    font-weight: 900;
    color: #475569;
    line-height: 1;
    display: block;
    margin-bottom: 0.9rem;
    letter-spacing: -1px;
}

.meta-date-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.meta-date-month {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    line-height: 1.2;
    display: block;
}

.meta-date-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    line-height: 1.2;
    display: block;
}

.meta-code-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem 0.2rem;
    width: 100%;
    text-align: center;
    font-size: 0.72rem;
    color: #64748b;
}

.meta-code-num {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #334155;
    margin-top: 0.15rem;
}

.meta-share-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
}

.meta-share-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.1rem;
}

.share-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.share-circle-btn:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.share-circle-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.share-circle-btn.copied {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

.share-circle-btn .copy-tooltip {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 10;
}

.share-circle-btn.copied .copy-tooltip {
    opacity: 1;
    visibility: visible;
}

.article-content-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-content-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem 2.2rem;
}

.article-headline {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.55;
    color: var(--color-dark);
    margin: 0.5rem 0 1.2rem;
    text-align: right;
}

.article-headline a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.article-headline a:hover {
    color: var(--color-primary);
}

.page-headline {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-top: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.article-meta-info-bar {
    display: none;
    align-items: center;
    justify-content: space-between; /* چیدمان متوازن تاریخ در راست و کد خبر در چپ */
    padding: 0.65rem 1rem;
    background-color: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.article-meta-info-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-meta-info-bar span strong {
    color: #1e293b;
    font-weight: 700;
}

.article-meta-info-bar svg {
    width: 15px;
    height: 15px;
    color: #94a3b8;
}

.article-main-image,
.page-featured-figure {
    position: relative;
    width: 100%;
    margin: 0.5rem 0 1.8rem 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #0f172a;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
}

.page-featured-figure {
    margin: 1.5rem 0;
}

.article-main-image img,
.page-featured-figure img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-main-image:hover img {
    transform: scale(1.02);
}

.page-image-caption {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

.article-lead-box {
    background-color: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 6px;
    padding: 1.1rem 1.4rem;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 1.5rem;
}

.article-body {
    font-size: 1.02rem;
    line-height: 2.1;
    color: #1e293b;
}

.article-body p {
    margin-bottom: 1.4rem;
    text-align: justify;
}

.article-body a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1.5px solid rgba(2, 132, 199, 0.35);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.article-body a:hover {
    color: #d92121;
    border-bottom-color: #d92121;
    background-color: #fef2f2;
    border-radius: 2px;
}

.article-body h2 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin: 2.2rem 0 1rem;
    padding-right: 14px;
    border-right: 4px solid #d92121;
    line-height: 1.6;
}

.article-body h3 {
    font-size: 1.18rem;
    font-weight: 800;
    color: #1e293b;
    margin: 1.8rem 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-body h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #00ab80;
    border-radius: 50%;
    flex-shrink: 0;
}

.article-body h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #334155;
    margin: 1.5rem 0 0.6rem;
}

.article-body blockquote {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-right: 5px solid #d92121;
    border-radius: 8px;
    padding: 1.4rem 1.8rem 1.4rem 2.8rem;
    margin: 2rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 2.1;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.article-body blockquote::before {
    content: "“";
    position: absolute;
    top: -8px;
    left: 15px;
    font-family: Georgia, serif;
    font-size: 4.5rem;
    line-height: 1;
    color: #cbd5e1;
    opacity: 0.6;
    pointer-events: none;
}

.article-body blockquote p {
    margin: 0 0 0.5rem 0;
    text-align: justify;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body blockquote cite,
.article-body blockquote footer {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    margin-top: 0.8rem;
    text-align: left;
    font-style: normal;
}

.article-body ul {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 1.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-body ul > li {
    position: relative;
    padding-right: 1.5rem;
    line-height: 1.95;
    color: #334155;
}

.article-body ul > li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.75em;
    width: 7px;
    height: 7px;
    background-color: #d92121;
    border-radius: 50%;
    transform: translateY(-50%);
}

.article-body ol {
    list-style: none;
    counter-reset: article-ol-counter;
    padding: 0;
    margin: 1.4rem 0 1.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.article-body ol > li {
    position: relative;
    padding-right: 2.2rem;
    line-height: 1.95;
    color: #334155;
    counter-increment: article-ol-counter;
}

.article-body ol > li::before {
    content: counter(article-ol-counter);
    position: absolute;
    right: 0;
    top: 0.2em;
    width: 22px;
    height: 22px;
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
}

.article-body li > ul,
.article-body li > ol {
    margin: 0.6rem 0 0.4rem 1rem;
    padding-right: 0.8rem;
    border-right: 1.5px dashed #cbd5e1;
}

.article-body img,
.page-content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.article-body img:hover,
.page-content-card img:hover {
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.14);
    border-color: #cbd5e1;
}

.article-body figure,
.article-body .wp-block-image {
    margin: 2rem 0;
    max-width: 100%;
    display: block;
    clear: both;
}

.article-body figure img,
.article-body .wp-block-image img {
    margin: 0 auto;
    display: block;
}

.article-body figcaption,
.article-body .wp-caption-text,
.wp-block-image figcaption {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    line-height: 1.7 !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 2.5px solid var(--color-primary);
    border-radius: 0 0 8px 8px;
    padding: 0.6rem 1.1rem !important;
    margin-top: -4px !important;
    margin-bottom: 0.5rem;
    text-align: right !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-body figcaption::before,
.article-body .wp-caption-text::before {
    content: '📷';
    font-size: 0.9rem;
    opacity: 0.8;
}

.article-body .aligncenter,
.article-body figure.aligncenter {
    display: block;
    margin: 2.2rem auto;
    text-align: center;
    clear: both;
}

.article-body .alignright,
.article-body figure.alignright {
    float: right;
    margin: 0.5rem 0 1.5rem 1.8rem;
    max-width: 48%;
    clear: right;
}

.article-body .alignleft,
.article-body figure.alignleft {
    float: left;
    margin: 0.5rem 1.8rem 1.5rem 0;
    max-width: 48%;
    clear: left;
}

.article-body .alignwide {
    margin-left: -5%;
    margin-right: -5%;
    max-width: 110%;
    clear: both;
}

.article-body .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
    border-radius: 0;
    clear: both;
}

.article-body .alignfull img {
    border-radius: 0;
    width: 100%;
}

.article-body .wp-block-gallery,
.article-body .gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.2rem !important;
    margin: 2.2rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
    clear: both;
}

.article-body .wp-block-gallery .wp-block-image,
.article-body .gallery .gallery-item {
    margin: 0 !important;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.article-body .wp-block-gallery .wp-block-image img,
.article-body .gallery .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
    border-radius: 10px !important;
    transition: transform 0.35s ease;
}

.article-body .wp-block-gallery .wp-block-image:hover img,
.article-body .gallery .gallery-item:hover img {
    transform: scale(1.05);
}

.article-body .wp-block-media-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    align-items: center;
    margin: 2.2rem 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.4rem;
}

.article-body .wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr 1fr;
}

.article-body .wp-block-media-text img {
    margin: 0;
    width: 100%;
}

.article-body::after {
    content: "";
    display: table;
    clear: both;
}

.article-body code {
    background-color: #f1f5f9;
    color: #b91c1c;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    direction: ltr;
    display: inline-block;
}

.article-body pre {
    background-color: #0f172a;
    color: #38bdf8;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 1.2rem;
    border-radius: 8px;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
    margin: 1.8rem 0;
}

.article-body pre code {
    background: transparent;
    color: inherit;
    border: none;
    padding: 0;
}

.article-tags-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.tags-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--color-dark);
}

.tag-pill {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
}

.tag-pill:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.table-responsive-wrapper,
figure.wp-block-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.8rem 0;
    border-radius: 8px;
    position: relative;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.article-body table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse !important;
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-dark);
    background-color: #ffffff;
    border: none;
}

.article-body table thead th,
.wp-block-table thead th,
.article-body table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
    border-bottom: 2.5px solid var(--color-primary) !important;
    border-left: 1px solid #e2e8f0 !important;
    text-align: center;
    white-space: nowrap;
}

.article-body table thead th:last-child,
.wp-block-table thead th:last-child,
.article-body table th:last-child {
    border-left: none !important;
}

.article-body table tbody td,
.wp-block-table tbody td,
.article-body table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: 1px solid #e2e8f0 !important;
    color: #334155;
    font-weight: 500;
    line-height: 1.65;
    vertical-align: middle;
    text-align: center;
    transition: background-color var(--transition-speed);
}

.article-body table tbody tr td:first-child,
.wp-block-table tbody tr td:first-child {
    font-weight: 700;
    color: #1e293b;
}

.article-body table tbody tr td:last-child,
.wp-block-table tbody tr td:last-child {
    border-left: none !important;
}

.article-body table tbody tr:last-child td,
.wp-block-table tbody tr:last-child td {
    border-bottom: none !important;
}

.article-body table tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.article-body table tbody tr:hover,
.wp-block-table tbody tr:hover {
    background-color: #f1f5f9 !important;
}

figure.wp-block-table figcaption {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 0.5rem;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.inline-related-box {
    position: relative;
    background-color: #fffdf5;
    border: 1px solid #eddca1;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(220, 180, 50, 0.04);
}

.inline-related-badge {
    position: absolute;
    top: -11px;
    right: 24px;
    left: auto;
    background-color: #fffdf5;
    color: #925c04;
    border: 1px solid #eddca1;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.1rem 0.8rem;
    border-radius: 20px;
    z-index: 2;
    display: inline-block;
}

.inline-related-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
}

.inline-related-thumb {
    width: 140px;
    aspect-ratio: 16 / 11;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background-color: #f1f5f9;
}

.inline-related-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.inline-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.inline-related-box:hover .inline-related-thumb img {
    transform: scale(1.04);
}

.inline-related-text {
    flex: 1;
    min-width: 0;
}

.inline-related-title {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.6;
    margin: 0;
}

.inline-related-title a {
    color: #8c5806;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.inline-related-title a:hover {
    color: var(--color-primary);
}

.inline-related-excerpt {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.75;
    margin: 0.45rem 0 0 0;
    font-weight: 400;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.petro-share-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    margin: 1.5rem 0;
    border-top: 1px dashed var(--color-border);
    border-bottom: 1px dashed var(--color-border);
}

.share-social-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-dark);
}

.social-share-btn {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    transition: all var(--transition-speed);
    text-decoration: none !important;
    flex-shrink: 0;
}

.social-share-btn svg {
    width: 17px !important;
    height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    fill: currentColor !important;
    display: block !important;
    margin: 0 !important;
}

/* رنگ‌های اختصاصی هنگام هاور */
.social-share-btn.share-btn-eitaa:hover, .social-share-btn.btn-eitaa:hover { background-color: #f97316 !important; color: #ffffff !important; border-color: #f97316 !important; }
.social-share-btn.share-btn-bale:hover, .social-share-btn.btn-bale:hover { background-color: #10b981 !important; color: #ffffff !important; border-color: #10b981 !important; }
.social-share-btn.share-btn-telegram:hover, .social-share-btn.btn-telegram:hover { background-color: #0284c7 !important; color: #ffffff !important; border-color: #0284c7 !important; }
.social-share-btn.share-btn-whatsapp:hover, .social-share-btn.btn-whatsapp:hover { background-color: #22c55e !important; color: #ffffff !important; border-color: #22c55e !important; }
.social-share-btn.share-btn-twitter:hover, .social-share-btn.btn-twitter:hover { background-color: #0f172a !important; color: #ffffff !important; border-color: #0f172a !important; }

.copy-shortlink-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-dark);
    position: relative;
    cursor: pointer;
}

.copy-shortlink-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.copy-badge {
    display: none;
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.copy-shortlink-btn.copied .copy-badge {
    display: block;
}

/* ==========================================================================
   ۸. دیدگاه‌ها
   ========================================================================== */
.comments-section-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.comments-header-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.comment-item-wrap {
    list-style: none;
}

.comment-card {
    background-color: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    padding: 1.2rem;
    position: relative;
    transition: border-color var(--transition-speed);
}

.comment-card:hover {
    border-color: #cbd5e1;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #334155;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.comment-author-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-dark);
}

.comment-meta-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.comment-date {
    font-size: 0.76rem;
    color: #94a3b8;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-dark);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.comment-reply-link:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.comment-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.75;
}

.comment-text p {
    margin: 0;
}

.comment-awaiting-moderation {
    color: var(--color-danger);
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.comments-list .children {
    list-style: none;
    margin: 0.9rem 1.6rem 0 0;
    padding: 0 1rem 0 0;
    border-right: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.comments-list .children .comment-card {
    background-color: #ffffff;
    border-color: #e2e8f0;
}

.comment-form-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.comment-form-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#cancel-comment-reply-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-danger);
    text-decoration: none;
    background-color: #fef2f2;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    border: 1px solid #fecaca;
}

#cancel-comment-reply-link:hover {
    background-color: var(--color-danger);
    color: #ffffff;
}

.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input-control, .form-textarea-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-main);
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: #f8fafc;
    outline: none;
}

.form-input-control:focus, .form-textarea-control:focus {
    border-color: var(--color-primary);
    background-color: #ffffff;
}

.form-textarea-control {
    resize: vertical;
    min-height: 110px;
    margin-bottom: 1rem;
}

.btn-submit-comment {
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.75rem 1.8rem;
    border-radius: 6px;
}

.btn-submit-comment:hover {
    background-color: var(--color-primary-hover);
}

.load-more-comments-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 2.5rem 0;
}

.btn-load-more-comments {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background-color: #f8fafc;
    color: var(--color-dark);
    border: 1.5px solid var(--color-border);
    padding: 0.65rem 1.8rem;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-load-more-comments:hover {
    background-color: #ffffff;
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 33, 33, 0.1);
}

.btn-load-more-comments svg {
    transition: transform var(--transition-speed);
}

.btn-load-more-comments:hover svg {
    transform: translateY(2px);
}

.btn-load-more-comments.loading {
    opacity: 0.8;
    cursor: wait;
}

.btn-load-more-comments .btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: petroCommentSpin 0.7s linear infinite;
}

.btn-load-more-comments.loading .btn-spinner {
    display: inline-block;
}

.btn-load-more-comments.loading svg {
    display: none;
}

@keyframes petroCommentSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   ۹. سایدبار مشترک
   ========================================================================== */
.sidebar-news-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-header-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-dark);
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-item:first-child {
    padding-top: 0;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-thumb {
    width: 68px;
    height: 52px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f1f5f9;
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-item-title {
    flex: 1;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.55;
    color: #1e293b;
}

.sidebar-item-title a:hover {
    color: var(--color-primary);
}

.sidebar-comment-card {
    background-color: #f8fafc;
    border: 1px solid #edf2f7;
    border-top: 3px solid var(--color-primary);
    border-radius: 0 0 6px 6px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.65rem;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.sidebar-comment-link {
    display: block;
    text-decoration: none;
}

.sidebar-comment-text {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #334155;
    margin: 0 0 0.4rem 0;
    font-weight: 500;
}

.sidebar-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    color: #64748b;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.35rem;
}

.sidebar-comment-author {
    color: var(--color-dark);
    font-weight: 700;
}

.sidebar-comment-post {
    font-size: 0.7rem;
    color: #94a3b8;
}

.ad-banner {
    margin: 1rem 0;
    border-radius: 6px;
    overflow: hidden;
}

.ad-banner img {
    width: 100%;
    border-radius: 6px;
}

/* ==========================================================================
   ۱۰. خطای ۴۰۴
   ========================================================================== */
.error-404-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 3.5rem 2rem;
    text-align: center;
}

.error-404-badge {
    display: inline-block;
    background-color: #fef2f2;
    color: var(--color-danger);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid #fee2e2;
}

.error-404-number {
    font-size: 5.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.error-404-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 0.8rem;
}

.error-404-desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.error-404-search-box {
    max-width: 480px;
    margin: 0 auto 2rem;
}

.error-404-search-box .search-form-wrapper {
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.error-404-btn {
    padding: 0.65rem 1.8rem;
    font-size: 0.92rem;
}

/* ==========================================================================
   ۱۱. مدال‌ها و منوی کشویی موبایل
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 999;
    box-shadow: none;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-drawer.active {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}

.drawer-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
}

.drawer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
}

.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #64748b;
}

.close-btn:hover {
    background-color: #f1f5f9;
    color: var(--color-danger);
}

.side-drawer .drawer-menu-list {
    padding: 0.5rem 0;
    list-style: none;
}

.side-drawer .drawer-menu-list > li {
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.side-drawer .drawer-menu-list > li:last-child {
    border-bottom: none;
}

.side-drawer .drawer-menu-list > li > a {
    display: flex;
    align-items: center;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
    transition: color var(--transition-speed), background-color var(--transition-speed);
}

.side-drawer .drawer-menu-list > li > a:hover {
    color: var(--color-primary);
    background-color: #f8fafc;
}

.drawer-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.drawer-nav-wrap a {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
    transition: color var(--transition-speed);
}

.drawer-nav-wrap a:hover {
    color: var(--color-primary);
}

.drawer-sub-toggle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border-right: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    flex-shrink: 0;
}

.drawer-sub-toggle svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.drawer-sub-toggle.active {
    color: var(--color-primary);
    background-color: #f8fafc;
}

.drawer-sub-toggle.active svg {
    transform: rotate(180deg);
}

.side-drawer .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-top: none;
    background-color: #f8fafc;
    border-right: 3px solid var(--color-primary);
    padding: 0.25rem 0;
    display: none;
    min-width: 100%;
}

.side-drawer .sub-menu li {
    border-bottom: 1px solid #edf2f6;
}

.side-drawer .sub-menu li a {
    padding: 0.75rem 1.8rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
}

.side-drawer .sub-menu li a:hover {
    color: var(--color-primary);
    background-color: #ffffff;
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 29, 44, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    opacity: 0.9;
}

.search-close-btn:hover {
    color: var(--color-danger);
    opacity: 1;
}

.search-close-btn svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.search-box-container {
    width: 90%;
    max-width: 650px;
    padding: 0 1rem;
}

.search-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    width: 100%;
}

.search-input-field {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 1.05rem;
    color: var(--color-dark);
    padding: 0.6rem 0.5rem;
    background: transparent;
}

.search-input-field::placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
}

.search-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-search-icon);
    padding: 0.4rem;
}

.search-submit-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* ==========================================================================
   ۱۲. استایل‌های صفحات مالی
   ========================================================================== */
.finance-page-wrapper {
    padding: 1.5rem 0 3.5rem;
}

.finance-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.finance-hero-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.finance-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fef2f2;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.finance-hero-icon svg {
    width: 24px;
    height: 24px;
}

.finance-hero-title-box h1 {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.finance-hero-update {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.finance-hero-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.finance-hero-price {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--color-dark);
}

.finance-hero-unit {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.finance-change-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    direction: ltr;
}

.finance-change-badge.badge-up {
    background-color: #ecfdf5;
    color: #059669;
}

.finance-change-badge.badge-down {
    background-color: #fef2f2;
    color: var(--color-danger);
}

.finance-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.finance-stat-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    transition: border-color var(--transition-speed);
}

.finance-stat-card:hover {
    border-color: var(--color-primary);
}

.finance-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.finance-stat-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.stat-card-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--color-dark);
}

.stat-card-unit {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    margin-right: 0.3rem;
}

.finance-card-box {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.finance-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.finance-card-heading {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--color-dark);
}

.finance-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.finance-data-table th {
    background-color: #f8fafc;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.finance-data-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
}

.finance-data-table tr:hover td {
    background-color: #f8fafc;
}

.status-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pill.pill-up { background-color: #ecfdf5; color: #059669; }
.status-pill.pill-down { background-color: #fef2f2; color: var(--color-danger); }

.petro-ad-banner-wrapper {
    display: block;
    width: 100%;
    margin: 1.2rem 0;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.petro-ad-banner-link {
    display: block;
    width: 100%;
    transition: opacity var(--transition-speed);
}

.petro-ad-banner-link:hover {
    opacity: 0.92;
}

.petro-ad-banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ==========================================================================
   ۱۳. فوتر سایت
   ========================================================================== */
.site-footer {
    margin-top: auto;
    width: 100%;
}

.footer-top-bar {
    background-color: var(--bg-footer-top);
    padding: 0.75rem 0;
}

.footer-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
}

.footer-socials-light {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.social-icon-btn {
    color: #ffffff;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-btn:hover {
    opacity: 1;
    color: #38bdf8;
}

.social-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-main-body {
    background-color: var(--bg-footer-main);
    padding: 2.2rem 0 1.5rem;
}

.footer-main-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
}

.footer-col-right {
    flex: 1.2;
}

.footer-heading {
    color: var(--text-footer-title);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-copy-text {
    color: #cbd5e1 !important;
    font-size: 0.84rem;
    line-height: 1.7;
}

.footer-badges-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.footer-badge-item {
    background: #ffffff;
    border-radius: 6px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-col-left {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-nav-links {
    margin-bottom: 0.6rem;
    width: 100%;
}

.footer-menu-list {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.footer-menu-list li {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.footer-menu-list li:not(:last-child)::after {
    content: '|';
    margin-right: 0.9rem;
    color: #475569;
    font-size: 0.8rem;
}

.footer-menu-list li a {
    color: #cbd5e1 !important;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu-list li a:hover {
    color: #38bdf8 !important;
}

.footer-license-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #cbd5e1 !important;
    font-size: 0.76rem;
    direction: ltr;
    text-align: right;
    width: 100%;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border-footer);
    margin: 1.6rem 0 1rem;
}

.footer-bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #94a3b8 !important;
}

.footer-agency-tag {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #cbd5e1 !important;
    font-size: 0.82rem;
}

.footer-dev-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #94a3b8 !important;
}

.marun-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 400;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.marun-brand-link:hover {
    color: #38bdf8;
}

.marun-logo-svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform var(--transition-speed);
}

.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background-color: var(--color-danger);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color var(--transition-speed);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top-btn:hover {
    background-color: var(--color-danger-hover);
}

.back-to-top-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 3;
}

/* ==========================================================================
   ۱۹. استایل اختصاصی گالری عکس و اسلایدر لایت‌باکس بزرگ و واکنش‌گرا
   ========================================================================== */
.gallery-single-page {
    padding-bottom: 4rem;
}

.gallery-header-section {
    margin-bottom: 1.8rem;
    text-align: right;
}

.gallery-main-title {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--color-dark);
    line-height: 1.55;
    margin: 0.5rem 0 1rem;
}

.gallery-meta-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.gallery-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    line-height: 1;
}

.gallery-meta-item svg {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    color: var(--color-primary);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.gallery-meta-item.is-author strong {
    color: var(--color-dark);
}

.gallery-summary-lead {
    background: #f8fafc;
    border-right: 3px solid var(--color-primary);
    padding: 0.9rem 1.2rem;
    margin-top: 1.2rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.94rem;
    line-height: 1.85;
    color: #334155;
}

.gallery-summary-lead p {
    margin: 0;
}

.gallery-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-bottom: 2.5rem;
}

.gallery-grid-item {
    margin: 0;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    background: #0f172a;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-grid-item:hover .gallery-thumb-container img {
    transform: scale(1.05);
}

.gallery-photo-counter {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.gallery-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.gallery-zoom-overlay svg {
    color: #ffffff;
}

.gallery-grid-item:hover .gallery-zoom-overlay {
    opacity: 1;
}

/* ==========================================================================
   اسلایدر لایت‌باکس تمام‌صفحه و فوق‌العاده ریسپانسیو (Responsive Lightbox)
   ========================================================================== */
.petro-lightbox-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* هماهنگ با ارتفاع واقعی صفحه در موبایل */
    background: rgba(10, 15, 25, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999999;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.25s ease;
    user-select: none;
    box-sizing: border-box;
}

.petro-lightbox-modal.active {
    display: flex;
    opacity: 1;
}

/* دکمه‌های اکشن دایره‌ای */
.lightbox-btn-action {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lightbox-btn-action:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.08);
}

/* دکمه بستن در بالای صفحه */
.lightbox-close {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 40;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.lightbox-close:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* استیج اصلی نمایش عکس */
.lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: calc(100% - 70px);
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

/* کانتینر تصویر اصلی */
.lightbox-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
}

/* تصویر بزرگ و باکیفیت بدون افت نسبت ابعاد */
.lightbox-image-wrapper img {
    max-width: 90vw !important;
    max-height: calc(100dvh - 130px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    animation: petroZoom 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    margin: 0 auto;
}

@keyframes petroZoom {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* دکمه‌های ناوبری چپ و راست */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 30;
    backdrop-filter: blur(4px);
}

.lightbox-prev {
    right: 20px;
}

.lightbox-next {
    left: 20px;
}

.lightbox-nav-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.08);
}

/* نوار مشخصات و کنترل‌های پایین */
.lightbox-bottom-bar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 35;
    box-sizing: border-box;
    width: 100%;
}

.lightbox-caption-text {
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: right;
}

.lightbox-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lightbox-counter-badge {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.3rem 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    letter-spacing: 1px;
}

/* ==========================================================================
   بهینه‌سازی اختصاصی لایت‌باکس برای موبایل (زیر 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .lightbox-close {
        top: 12px;
        left: 12px;
        width: 36px;
        height: 36px;
    }

    .lightbox-stage {
        padding: 0 5px;
        height: calc(100% - 90px);
    }

    /* در موبایل عکس ۹۶٪ عرض صفحه را پر می‌کند و دکمه‌ها روی عکس شناور می‌شوند */
    .lightbox-image-wrapper img {
        max-width: 96vw !important;
        max-height: calc(100dvh - 120px) !important;
        border-radius: 6px;
    }

    .lightbox-nav-btn {
        width: 38px;
        height: 38px;
        background: rgba(0, 0, 0, 0.45);
    }

    .lightbox-prev {
        right: 8px;
    }

    .lightbox-next {
        left: 8px;
    }

    .lightbox-bottom-bar {
        padding: 10px 14px;
        flex-direction: row;
        gap: 8px;
    }

    .lightbox-caption-text {
        font-size: 0.82rem;
    }

    .lightbox-counter-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .lightbox-btn-action {
        width: 34px;
        height: 34px;
    }

    /* دکمه تمام‌صفحه در گوشی مخفی شود چون مرورگر موبایل خودش فول‌اسکرین است */
    #lightboxFullscreenBtn {
        display: none !important;
    }
}
/* ==========================================================================
   ۱۴. ریسپانسیو و بهینه‌سازی اختصاصی موبایل و تبلت
   ========================================================================== */
@media (max-width: 1024px) {
    .news-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .side-news-column {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    .date-badge-header, .side-cta-buttons {
        grid-column: span 2;
    }
    .archive-grid-layout {
        grid-template-columns: 1fr;
    }
    .article-page-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-news-column {
        grid-column: span 1;
        margin-top: 2rem;
    }
    .media-archive-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .finance-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-photos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none !important;
    }
    .header-top {
        border-bottom: none;
    }
    .news-hero-grid {
        grid-template-columns: 1fr;
    }
    .side-news-column {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
    }
    .date-badge-header, .side-cta-buttons {
        grid-column: span 1;
    }

    .archive-cards-list {
        gap: 0.9rem;
    }

    .archive-item-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.85rem;
        padding: 0.75rem;
        background-color: #ffffff;
        border-radius: 8px;
    }

    .archive-item-thumb {
        width: 110px !important;
        height: 78px !important;
        aspect-ratio: 16 / 11;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .archive-item-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
        flex: 1;
        gap: 0.35rem;
    }

    .archive-item-heading {
        font-size: 0.88rem;
        font-weight: 700;
        line-height: 1.5;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .archive-item-excerpt {
        display: none !important;
    }

    .archive-item-meta {
        font-size: 0.72rem;
        gap: 0.65rem;
        color: #94a3b8;
    }

    .article-page-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .article-meta-sticky {
        display: none !important;
    }

    .article-meta-info-bar {
        display: flex;
    }

    .page-content-card {
        padding: 1.25rem 1rem;
    }

    .form-grid-row {
        grid-template-columns: 1fr;
    }
    
    .footer-main-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .gallery-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .gallery-main-title {
        font-size: 1.3rem;
    }

    .gallery-meta-bar {
        gap: 0.85rem;
        font-size: 0.78rem;
    }

    .lightbox-nav-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 640px) {
    .sub-featured-grid {
        grid-template-columns: 1fr;
    }
    .search-close-btn {
        top: 1.2rem;
        left: 1.2rem;
    }
    .sub-sections-btn span {
        display: none;
    }
    .brand-logo {
        height: 40px;
    }
    .footer-bottom-grid {
        flex-direction: column-reverse;
        gap: 0.6rem;
        text-align: center;
    }
    .media-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .media-card-content {
        padding: 0.65rem;
    }
    .media-card-title {
        font-size: 0.78rem;
    }
    .finance-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .finance-hero-left {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid #f1f5f9;
        padding-top: 0.8rem;
    }
    .finance-stat-grid {
        grid-template-columns: 1fr;
    }
    .finance-data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .archive-item-card {
        gap: 0.65rem;
        padding: 0.6rem;
    }
    .archive-item-thumb {
        width: 95px !important;
        height: 68px !important;
    }
    .archive-item-heading {
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   ۲۰. استایل‌های استاندارد پرینت و خروجی PDF (Print Stylesheet)
   سازگار با تمامی مرورگرها به‌ویژه موزیلا فایرفاکس و گوگل کروم
   ========================================================================== */
@media print {

    /* تنظیمات برگه چاپی و فونت فارسی برای فایرفاکس */
    @page {
        size: A4 portrait;
        margin: 15mm 15mm 15mm 15mm;
    }

    *, *::before, *::after {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        font-family: 'Sahel', Tahoma, sans-serif !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html, body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
        line-height: 1.8 !important;
        direction: rtl !important;
        text-align: justify !important;
    }

    /* ۱. مخفی‌سازی کامل تمامی بخش‌های اضافه سایت */
    .site-header .header-action-right,
    .site-header .header-action-left,
    .site-header .header-nav,
    .breadcrumbs-bar,
    .article-meta-sticky,
    .sidebar-news-column,
    .petro-ad-banner-wrapper,
    .inline-related-box,
    .comments-section-container,
    #comments,
    .comment-form-card,
    .site-footer,
    .back-to-top-btn,
    .side-drawer,
    .drawer-overlay,
    .search-modal,
    .petro-share-box,
    .podcast-player-section,
    .load-more-comments-wrapper {
        display: none !important;
        visibility: hidden !important;
    }

    /* ۲. نمایش لوگو در بالای برگه پرینت */
    .site-header {
        display: block !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 0 10px 0 !important;
        margin-bottom: 20px !important;
        border-bottom: 2px solid #0f172a !important;
    }

    .site-header .header-top {
        padding: 0 !important;
        border: none !important;
    }

    .site-header .header-brand {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
    }

    .site-header .brand-logo {
        display: inline-block !important;
        height: 50px !important;
    }

    .site-header .brand-logo img {
        max-height: 50px !important;
        width: auto !important;
        margin: 0 auto !important;
        filter: none !important;
    }

    /* ۳. تنظیم کانتینر اصلی مقاله */
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .article-page-grid {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .article-content-wrapper {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ۴. تیتر و عنوان خبر */
    .article-headline {
        font-size: 17pt !important;
        font-weight: 900 !important;
        color: #000000 !important;
        line-height: 1.5 !important;
        margin: 0 0 12px 0 !important;
        text-align: right !important;
    }

    /* ۵. نوار متادیتا (تاریخ انتشار و کد خبر) */
    .article-meta-info-bar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        padding: 6px 14px !important;
        margin-bottom: 16px !important;
        font-size: 9.5pt !important;
        color: #334155 !important;
    }

    /* ۶. تصویر شاخص خبر */
    .article-main-image {
        margin: 12px 0 16px 0 !important;
        page-break-inside: avoid !important;
        text-align: center !important;
    }

    .article-main-image img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 4px !important;
        border: 1px solid #e2e8f0 !important;
    }

    /* ۷. لید خبر */
    .article-lead-box {
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        border-right: 4px solid #0f172a !important;
        padding: 10px 14px !important;
        font-size: 10.5pt !important;
        font-weight: 700 !important;
        line-height: 1.8 !important;
        margin-bottom: 16px !important;
        color: #1e293b !important;
        page-break-inside: avoid !important;
    }

    /* ۸. متن مقاله و جداول */
    .article-body {
        font-size: 11pt !important;
        line-height: 2 !important;
        color: #111827 !important;
    }

    .article-body p {
        margin-bottom: 12px !important;
        text-align: justify !important;
        orphans: 3;
        widows: 3;
    }

    .article-body h2, 
    .article-body h3, 
    .article-body h4 {
        color: #000000 !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
        margin-top: 18px !important;
        margin-bottom: 8px !important;
    }

    .article-body img {
        max-width: 100% !important;
        page-break-inside: avoid !important;
        margin: 10px auto !important;
    }

    .article-body table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: avoid !important;
        margin: 14px 0 !important;
    }

    .article-body table th,
    .article-body table td {
        border: 1px solid #94a3b8 !important;
        padding: 6px 10px !important;
        font-size: 9.5pt !important;
    }

    .article-body table th {
        background: #e2e8f0 !important;
        font-weight: bold !important;
    }

    /* جلوگیری از چاپ آدرس لینک‌ها در پرینت */
    a, a:visited {
        text-decoration: none !important;
        color: #000000 !important;
    }

    a[href]::after {
        content: none !important;
    }

    /* برچسب‌های خبر */
    .article-tags-wrap {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        border-top: 1px solid #cbd5e1 !important;
        padding-top: 10px !important;
        margin-top: 16px !important;
        page-break-inside: avoid !important;
    }

    .tag-pill {
        border: 1px solid #cbd5e1 !important;
        padding: 2px 8px !important;
        font-size: 8.5pt !important;
    }
}