/*
Theme Name: آکس‌پرس | Axpress
Theme URI: https://axpress.ir/
Author: کریم بنام / آکس‌پرس
Description: پوسته خبری و تحلیلی اختصاصی آکس‌پرس - استایل ۱۰۰٪ کامل و یکپارچه
Version: 0.1.2
Text Domain: axpress
*/

/* ==================== ۱. متغیرهای سراسری ==================== */
:root {
    --primary-purple: #2c2059;   /* بنفش سرمه‌ای هدر */
    --dark-purple: #1a1238;      /* بنفش بسیار تیره */
    --accent-red: #c01823;        /* قرمز اصلی */
    --border-color: #e5e7eb;      /* مرز فلت */
    --bg-light: #ffffff;          /* پس‌زمینه سفید */
    --text-dark: #111827;
    --text-muted: #6b7280;
    --font-family: 'Vazirmatn', Tahoma, sans-serif;
    --container-max-width: 1200px;
}
/* ==================== ۰. تعریف فونت‌های لوکال (Vazirmatn) ==================== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
/* ==================== ۲. ریست عمومی (Flat UI) ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    box-shadow: none !important;
    text-shadow: none !important;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

body.no-scroll { overflow: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== ۳. لوگوها و برندینگ ==================== */
.brand-text-logo {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}
.brand-text-logo small {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-purple);
    background-color: #ffffff;
    padding: 2px 6px;
    font-family: sans-serif;
    text-transform: uppercase;
}

.drawer-logo-text {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 6px;
}
.drawer-logo-text small {
    font-size: 10px;
    background-color: var(--accent-red);
    color: #fff;
    padding: 2px 5px;
    font-family: sans-serif;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-logo-text small {
    font-size: 11px;
    color: var(--primary-purple);
    background-color: #ffffff;
    padding: 2px 6px;
    font-family: sans-serif;
}

/* ==================== ۴. خرده‌نان (Breadcrumbs) ==================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 0;
    border: 1px solid var(--border-color);
}
.breadcrumbs a { color: #777; transition: color 0.15s; }
.breadcrumbs a:hover { color: var(--accent-red); }

/* ==================== ۵. هدر اصلی ==================== */
.main-header { margin-bottom: 15px; }

.top-bar {
    background-color: var(--dark-purple);
    color: #e5e7eb;
    padding: 8px 0;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; }
.top-bar-date { display: flex; align-items: center; gap: 8px; color: #9ca3af; }
.top-bar-date i { font-size: 13px; }
.top-bar-socials { display: flex; align-items: center; gap: 12px; }
.top-bar-socials a { color: #9ca3af; transition: color 0.15s; }
.top-bar-socials a:hover { color: #fff; }

.main-nav {
    background-color: var(--primary-purple);
    color: #fff;
    padding: 0;
    position: relative;
    z-index: 99;
    border-bottom: 4px solid var(--accent-red);
}
.main-nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; cursor: pointer; padding: 6px 0; }
.nav-links { flex-grow: 1; margin-right: 20px; }
.nav-links > ul { list-style: none; display: flex; align-items: center; gap: 5px; }
.nav-links > ul > li { position: relative; }
.nav-links > ul > li > a {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
    padding: 16px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}
.nav-links > ul > li > a i { font-size: 10px; opacity: 0.7; }
.nav-links > ul > li:hover > a, .nav-links > ul > li.current-menu-item > a {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fca5a5;
}

/* زیرمنوها و مگامنوها */
.dropdown-menu, .nav-links ul.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    color: var(--text-dark);
    border-top: 3px solid var(--accent-red);
    border-bottom: 2px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    z-index: 999;
    display: none;
    padding: 15px;
    min-width: 180px;
    list-style: none;
}
.nav-links > ul > li:hover > .sub-menu, .nav-links > ul > li:hover .dropdown-menu { display: grid; }
.nav-links ul.sub-menu a, .dropdown-menu a {
    color: #333333 !important;
    font-size: 12px !important;
    padding: 5px 8px;
    display: block;
    border-bottom: 1px dashed #f0f0f0;
    transition: background-color 0.15s, color 0.15s;
}
.nav-links ul.sub-menu a:hover, .dropdown-menu a:hover {
    color: var(--accent-red) !important;
    background-color: #f9fafb;
    padding-right: 12px;
}

.search-btn, .menu-toggle-btn {
    background: none; border: none; color: #fff; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; padding: 4px;
}
.menu-toggle-btn { display: none; }

/* نوار اخبار فوری (Ticker) */
.ticker-bar { background: transparent; padding: 8px 0; }
.ticker-wrapper { display: flex; align-items: center; width: 100%; }
.ticker-badge {
    background-color: var(--accent-red);
    color: #fff;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 0;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-content { flex-grow: 1; height: 30px; overflow: hidden; position: relative; margin-right: 10px; }
.ticker-slider { display: flex; flex-direction: column; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.ticker-item { height: 30px; display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.ticker-item::before {
    content: "\f111";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-red);
    font-size: 5px;
    flex-shrink: 0;
}
.ticker-item a { color: var(--text-dark); transition: color 0.15s; }
.ticker-item a:hover { color: var(--accent-red); }

/* ==================== ۶. مدال‌ها و منوی کشویی موبایل (مخفی در حالت اولیه) ==================== */
.mobile-menu-overlay, #menuOverlay {
    position: fixed !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 999 !important; display: none !important;
}
.mobile-menu-overlay.open, #menuOverlay.open { display: block !important; }

/* ==================== استایل حرفه‌ای منوی کشویی موبایل و زیرمنوها ==================== */
.mobile-menu-drawer, #menuDrawer {
    position: fixed !important;
    top: 0 !important;
    right: -300px !important;
    width: 300px !important;
    height: 100% !important;
    background-color: #ffffff !important;
    z-index: 1000000 !important;
    border-left: 1px solid var(--border-color) !important;
    display: flex !important;
    flex-direction: column !important;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15) !important;
}

.mobile-menu-drawer.open, #menuDrawer.open {
    right: 0 !important;
}

.drawer-header {
    padding: 16px 20px !important;
    border-bottom: 2px solid var(--border-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #f9fafb !important;
}

.drawer-close-btn {
    background: none !important;
    border: none !important;
    font-size: 22px !important;
    color: #4b5563 !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    transition: color 0.2s ease !important;
}

.drawer-close-btn:hover {
    color: var(--accent-red) !important;
}

.drawer-links {
    padding: 10px 0 !important;
    flex-grow: 1 !important;
}

.drawer-links ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.drawer-links li {
    position: relative !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.drawer-links li a {
    display: block !important;
    padding: 12px 20px 12px 50px !important; /* جا برای دکمه فلش آکاردئون */
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    transition: all 0.2s ease !important;
    line-height: 1.5 !important;
}

.drawer-links li a:hover,
.drawer-links li.current-menu-item > a,
.drawer-links li.open > a {
    color: var(--accent-red) !important;
    background-color: #fef2f2 !important;
}

/* دکمه فلش آکاردئون زیرمنوها */
.mobile-sub-toggle {
    position: absolute !important;
    left: 12px !important;
    top: 8px !important;
    width: 32px !important;
    height: 32px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    color: #4b5563 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    cursor: pointer !important;
    transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease !important;
    z-index: 5 !important;
}

.mobile-sub-toggle:hover {
    background-color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: #ffffff !important;
}

.drawer-links li.open > .mobile-sub-toggle {
    background-color: var(--primary-purple) !important;
    border-color: var(--primary-purple) !important;
    color: #ffffff !important;
}

.drawer-links li.open > .mobile-sub-toggle i {
    transform: rotate(180deg) !important;
}

/* زیرمنوهای سطح اول و لایه‌های بعدی */
.drawer-links ul.sub-menu {
    display: none;
    background-color: #fafafa !important;
    border-right: 3px solid var(--accent-red) !important;
    padding: 5px 0 !important;
}

.drawer-links ul.sub-menu li {
    border-bottom: 1px dashed #e5e7eb !important;
}

.drawer-links ul.sub-menu li:last-child {
    border-bottom: none !important;
}

.drawer-links ul.sub-menu li a {
    padding: 10px 25px 10px 50px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
}

.drawer-links ul.sub-menu ul.sub-menu {
    border-right-color: var(--primary-purple) !important;
    background-color: #f3f4f6 !important;
}

.drawer-links ul.sub-menu ul.sub-menu li a {
    padding-right: 35px !important;
    font-size: 12px !important;
}

/* ==================== جستجوی تمام صفحه (طرح جدید) ==================== */
.search-overlay, #searchOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.75) !important; /* پس‌زمینه مشکی با شفافیت */
    backdrop-filter: blur(8px) !important;             /* افکت تار/بلور شدن پس‌زمینه */
    -webkit-backdrop-filter: blur(8px) !important;     /* پشتیبانی مرورگرهای سافاری و iOS */
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.search-overlay.open, #searchOverlay.open {
    display: flex !important;
}

/* دکمه بستن (ضربدر) در سمت چپ بالا */
.search-close-btn {
    position: absolute !important;
    top: 35px !important;
    left: 35px !important;                            /* موقعیت در سمت چپ بالا */
    right: auto !important;
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 26px !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
    z-index: 1000 !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.search-close-btn:hover {
    color: var(--accent-red) !important;
    transform: scale(1.15) !important;
}

/* باکس اصلی جستجو */
.search-box-container {
    width: 90% !important;
    max-width: 550px !important;
}

/* فرم سفید بیضی شکل (کپسولی) */
.search-inner-form {
    display: flex !important;
    align-items: center !important;
    background-color: #ffffff !important;             /* پس‌زمینه سفید یکدست */
    border-radius: 50px !important;                    /* لبه‌های کاملاً گرد بیضی */
    padding: 6px 15px 6px 20px !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4) !important;
    border: none !important;
}

/* ورودی متن جستجو */
.search-input-field {
    flex-grow: 1 !important;
    background: transparent !important;
    border: none !important;
    color: #222222 !important;                        /* رنگ متن تایپ‌شده */
    font-size: 15px !important;
    font-family: var(--font-family) !important;
    outline: none !important;
    padding: 10px 12px !important;
    text-align: right !important;
}

.search-input-field::placeholder {
    color: #888888 !important;                        /* رنگ متن راهنما */
    font-size: 14.5px !important;
}

/* دکمه آیکون ذره‌بین سمت چپ */
.search-submit-action {
    background: none !important;
    border: none !important;
    color: #666666 !important;                        /* رنگ آیکون ذره‌بین */
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.search-submit-action:hover {
    color: var(--accent-red) !important;
    transform: scale(1.1) !important;
}
/* ==================== ۷. سیستم چیدمان شبکه اصلی (Grid Systems) ==================== */
.main-content-grid {
    display: grid;
    grid-template-columns: 2.4fr 1fr 0.6fr;
    gap: 20px;
    margin-bottom: 40px;
    direction: rtl;
}

.inner-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    margin-bottom: 40px;
    direction: rtl;
}

.news-column { display: flex; flex-direction: column; gap: 15px; }

/* کارت‌های خبری */
.news-card {
    background-color: #fff;
    border: none;
    padding: 15px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    cursor: pointer;
    transition: background-color 0.15s;
    border-bottom: 1px dashed var(--border-color);
}
.news-card:hover { background-color: #f9fafb; }

.news-card-image {
    width: 200px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #f3f4f6;
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }


.news-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; /* چسباندن محتوا به بالا به جای فاصله انداختن */
    gap: 6px !important;                     /* تنظیم فاصله دقیق و استاندارد بین تیتر و خلاصه */
    flex-grow: 1;
}

.news-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0 !important;             /* حذف مارجین اضافی زیر تیتر */
    color: #111;
    transition: color 0.15s;
    line-height: 1.5;
}
.news-card-title:hover { color: var(--accent-red); }
.news-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.8; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

.news-card.featured { padding: 20px; background-color: #fff; flex-direction: row; border-bottom: none; }
.news-card.featured .news-card-image { width: 48%; height: 220px; flex-shrink: 0; }
.news-card.featured .news-card-content { width: 52%; position: relative; padding-bottom: 20px; justify-content: flex-start; gap: 10px; }
.news-card.featured .news-card-title { font-size: 18px; line-height: 1.5; margin-bottom: 5px; font-weight: 700; }
.news-card.featured .news-card-desc { font-size: 13px; -webkit-line-clamp: 5; }
.news-card.featured .accent-line {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-red);
}

/* ==================== ۸. سایدبار و ابزارک‌ها ==================== */
.widgets-column { display: flex; flex-direction: column; gap: 20px; }
.widget-top-ad img { width: 100%; border: 1px solid var(--border-color); display: block; }

.news-widget { background-color: #fff; border: 1px solid var(--border-color); overflow: hidden; }
.widget-header { background-color: var(--primary-purple); color: #fff; padding: 8px 12px; font-size: 13.5px; font-weight: 700; border-right: 4px solid var(--accent-red); }
.widget-header.blue { background-color: var(--dark-purple); }
.widget-header.red { background-color: var(--accent-red); }

.widget-list { list-style: none; padding: 10px 15px; }
.widget-list li { position: relative; padding: 10px 18px 10px 0; border-bottom: 1px dashed #eee; font-size: 12.5px; line-height: 1.6; }
.widget-list li::before {
    content: "\f111";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-red);
    font-size: 6px;
}
.widget-list li:last-child { border-bottom: none; }
.widget-list li a:hover { color: var(--accent-red); }

.opinion-list { display: flex; flex-direction: column; gap: 12px; padding: 12px 15px; }
.opinion-item {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: center !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.opinion-item:last-child { border-bottom: none; padding-bottom: 0; }
.opinion-image { width: 65px !important; height: 65px !important; flex-shrink: 0 !important; overflow: hidden; }
.opinion-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.opinion-text { flex-grow: 1; font-size: 12.5px; font-weight: 500; line-height: 1.5; color: #333; }
.opinion-text a:hover { color: var(--accent-red); }

.mid-banner { border: 1px solid var(--border-color); background-color: #fff; padding: 10px; text-align: center; }
.reportage-ad { background-color: var(--primary-purple); color: #fff; text-align: center; padding: 15px; font-size: 13px; border-top: 3px solid var(--accent-red); }
.reportage-ad .phone { display: block; direction: ltr; font-weight: 700; margin-top: 5px; font-size: 15px; color: #fca5a5; }

.ads-sidebar { display: flex; flex-direction: column; gap: 15px; }
.sidebar-ad-card { border: 1px solid var(--border-color); overflow: hidden; background-color: #fff; }
.sidebar-ad-card img { width: 100%; display: block; }

/* ==================== ۹. بخش «ببینید» (اسلایدر ویدیو) ==================== */
.watch-section {
    margin-top: 40px;
    margin-bottom: 30px;
    padding: 0;
    background-color: transparent;
}
.watch-header { border-bottom: 2px solid var(--accent-red); padding-bottom: 10px; margin-bottom: 20px; }
.watch-header h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.watch-header i { color: var(--accent-red); font-size: 20px; }

.carousel-container { position: relative; }
.carousel-controls-overlay {
    position: absolute; left: 0; top: 0; bottom: 0; width: 80px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 100%);
    display: flex; align-items: center; justify-content: center; z-index: 10; pointer-events: none;
}
.controls-btn-group { display: flex; background-color: var(--dark-purple); pointer-events: auto; }
.control-btn {
    background: none; border: none; color: #ffffff; width: 38px; height: 38px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
    transition: background-color 0.2s, opacity 0.2s;
}
.control-btn:hover { background-color: var(--accent-red); }
.control-btn.btn-prev { border-left: 1px solid rgba(255, 255, 255, 0.15); }
.control-btn:disabled, .control-btn.disabled { opacity: 0.25 !important; cursor: not-allowed !important; }

.carousel-track {
    display: flex; gap: 15px; overflow-x: auto; scroll-behavior: smooth;
    padding-bottom: 10px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.video-card {
    flex: 0 0 195px; position: relative; aspect-ratio: 9 / 15;
    overflow: hidden; background-color: #000000; cursor: pointer;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video-card:hover img { transform: scale(1.05); }

.card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0) 100%);
    padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 60%; pointer-events: none;
}
.video-duration {
    display: inline-flex; align-items: center; gap: 5px; color: #ffffff; font-size: 0.75rem;
    font-weight: 700; margin-bottom: 6px; align-self: flex-end; background-color: var(--accent-red); padding: 2px 6px;
}
.video-duration i { font-size: 0.65rem; }
.video-card-title {
    color: #ffffff; font-size: 0.82rem; font-weight: 700; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ==================== ۱۰. پخش‌کننده لایت‌باکس (videoModal) ==================== */
.video-modal {
    display: none;
    position: fixed !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background-color: rgba(18, 18, 18, 0.95) !important;
    z-index: 999999 !important;
    justify-content: center !important; align-items: center !important;
}
.video-modal.active { display: flex !important; }

.modal-close-btn {
    position: absolute; top: 24px; left: 24px; background: none; border: 2px solid #ffffff;
    color: #ffffff; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; cursor: pointer; transition: background-color 0.2s, color 0.2s; z-index: 1001;
}
.modal-close-btn:hover { background-color: var(--accent-red); border-color: var(--accent-red); color: #ffffff; }

.modal-content-wrapper { display: flex; align-items: center; gap: 16px; height: 85vh; max-width: 90%; }
.modal-video-container { width: calc(85vh * 9 / 16); max-width: 450px; height: 100%; background-color: #000000; overflow: hidden; position: relative; }
.modal-player-content { width: 100%; height: 100%; }
.modal-side-controls { display: flex; flex-direction: column; gap: 10px; }
.modal-nav-btn {
    background-color: #ffffff; border: none; color: #000000; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; transition: background-color 0.2s;
}
.modal-nav-btn:hover { background-color: var(--accent-red); color: #ffffff; }

/* ==================== ۱۱. گالری عکس و فیلم ==================== */
.media-gallery-section { margin-top: 20px; margin-bottom: 30px; }
.media-gallery-header { border-bottom: 2px solid var(--accent-red); padding-bottom: 10px; margin-bottom: 20px; }
.media-gallery-header h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.media-gallery-header i { color: var(--accent-red); font-size: 20px; }

.media-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.media-card { background-color: #fff; border: 1px solid var(--border-color); overflow: hidden; transition: background-color 0.15s; }
.media-card:hover { background-color: #f9fafb; }
.media-card a { display: block; text-decoration: none; color: inherit; }
.media-thumb { position: relative; height: 140px; overflow: hidden; background-color: #eee; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-play-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; transition: background-color 0.15s ease;
}
.media-card:hover .media-play-overlay { background-color: rgba(0, 0, 0, 0.6); }
.media-play-overlay i { color: #ffffff; font-size: 32px; transition: color 0.15s ease; }
.media-card:hover .media-play-overlay i { color: var(--accent-red); }
.media-title { font-size: 12.5px; font-weight: 700; padding: 12px; color: var(--text-dark); line-height: 1.5; height: 60px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ==================== ۱۲. صفحه تک خبر (Single Post) ==================== */
.single-post-wrapper {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 25px;
}
.post-main-title {
    font-size: 22px;
    font-weight: 900;
    color: #111;
    line-height: 1.5;
    margin-bottom: 15px;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 11.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.post-meta span { display: flex; align-items: center; gap: 5px; }
.post-featured-image {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    margin-bottom: 25px;
}
.post-body {
    font-size: 14.5px;
    line-height: 2;
    color: #333;
    text-align: justify;
}
.post-body p { margin-bottom: 20px; }
.post-body blockquote {
    background-color: #f9fafb;
    border-right: 4px solid var(--accent-red);
    padding: 15px 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
    font-size: 13.5px;
}

/* ==================== ۱۳. اشتراک‌گذاری و لینک کوتاه ==================== */
.mojbazar-share-box {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.share-social-group { display: flex; align-items: center; gap: 10px; }
.share-title { font-size: 12.5px; font-weight: 700; color: #555; }
.social-share-btn {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff !important; background-color: var(--primary-purple);
    font-size: 14px; transition: background-color 0.15s;
}
.social-share-btn.btn-telegram { background-color: #0088cc; }
.social-share-btn.btn-whatsapp { background-color: #25d366; }
.social-share-btn.btn-twitter { background-color: #1da1f2; }
.social-share-btn.btn-eitaa { background-color: #eb6123; }
.social-share-btn.btn-facebook { background-color: #3b5998; }

.shortlink-copy-group { display: flex; align-items: center; }
.copy-shortlink-btn {
    background: #ffffff; border: 1px solid var(--border-color);
    padding: 6px 14px; cursor: pointer; font-size: 12px;
    font-family: var(--font-family); display: flex; align-items: center; gap: 8px;
}
.copy-badge { display: none; background: var(--accent-red); color: #fff; padding: 2px 6px; font-size: 10px; }
.copy-shortlink-btn.copied .copy-badge { display: inline-block; }

/* ==================== ۱۴. کامل‌ترین استایل دیدگاه‌های وردپرس ==================== */
.comments-section, #comments {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    clear: both;
}
.comments-section h3, #reply-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: #111 !important;
}

ul.comment-list, .comments-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
li.comment, .comment-item {
    background-color: #f9fafb !important;
    border: 1px solid var(--border-color) !important;
    padding: 15px !important;
    list-style: none !important;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
}
.comment-date { color: var(--text-muted); font-weight: 400; }
.comment-text { font-size: 13px; color: #444; line-height: 1.7; }

#respond { background-color: #fff; padding: 0; }
.logged-in-as { font-size: 12px; color: var(--text-muted); margin-bottom: 15px; }
.logged-in-as a { color: var(--accent-red); font-weight: 700; }

.comment-form { display: flex; flex-direction: column; gap: 15px; }
.comment-form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.comment-input, 
.comment-textarea {
    width: 100% !important;
    padding: 10px 15px !important;
    border: 1px solid var(--border-color) !important;
    font-family: var(--font-family) !important;
    font-size: 13px !important;
    background-color: #fff !important;
    outline: none !important;
    border-radius: 0 !important;
}
.comment-form textarea, .comment-textarea { height: 120px !important; resize: vertical !important; }

.comment-form #submit,
.comment-submit-btn,
input[type="submit"]#submit {
    background-color: var(--accent-red) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 25px !important;
    font-family: var(--font-family) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    align-self: flex-start !important;
    display: inline-block !important;
    border-radius: 0 !important;
}
.comment-form #submit:hover, .comment-submit-btn:hover {
    background-color: #a0101b !important;
}

/* ==================== ۱۵. کامل‌ترین استایل شماره‌گذاری صفحات ==================== */
.archive-title-container {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--accent-red);
    padding: 12px 20px;
    margin-bottom: 20px;
}
.archive-title-container h1 { font-size: 18px; font-weight: 900; color: #111; }

.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 30px !important;
    width: 100% !important;
}
.pagination .page-numbers {
    background-color: #fff !important;
    border: 1px solid var(--border-color) !important;
    color: #555 !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    text-decoration: none !important;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover {
    background-color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: #fff !important;
}

/* ==================== ۱۶. فوتر (استایل کامل و اصلاح‌شده) ==================== */
footer, .main-footer {
    clear: both !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
    background-color: var(--dark-purple);
    color: #dddddd;
    padding-top: 35px;
    margin-top: 50px;
    border-top: 4px solid var(--accent-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
    align-items: center;
    padding-bottom: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-tagline {
    font-size: 11.5px;
    color: #aaaaaa;
    font-weight: 500;
    margin-top: 6px;
}

.footer-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.copyright-text, .copyright-sub {
    font-size: 11.5px;
    color: #aaaaaa;
    line-height: 1.8;
}

.footer-links {
    margin-top: 12px;
    font-size: 12.5px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.footer-links a {
    color: #cccccc;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links span {
    color: #444444;
}

.footer-socials {
    display: flex;
    flex-direction: column;
}

.footer-socials ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-socials li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-socials li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #bbbbbb;
    transition: color 0.15s;
    text-decoration: none;
}

.footer-socials li a:hover {
    color: #ffffff;
}

.footer-socials i {
    color: var(--accent-red);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.footer-bottom {
    background-color: #120c29;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* استایل کادر طراح و سازنده سایت */
.footer-developer {
    margin-top: 6px;
    font-size: 11.5px;
    color: #aaaaaa;
}

.footer-developer a {
    color: var(--accent-red);
    font-weight: 700;
    transition: color 0.15s ease;
    text-decoration: none;
}

.footer-developer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.back-to-top {
    background-color: var(--primary-purple);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -17px;
    transition: background-color 0.15s;
}

.back-to-top:hover {
    background-color: var(--accent-red);
}

.back-to-top i {
    color: #ffffff;
    font-size: 12px;
}

/* ==================== ۱۷. ریسپانسیو کامل ==================== */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .menu-toggle-btn { display: flex; }
    .ticker-text { display: none; }
    .ticker-badge .ticker-icon { display: inline-block; font-size: 14px; }
    .ticker-badge { padding: 4px 12px; }
    .main-content-grid, .inner-content-grid { grid-template-columns: 1fr !important; }
    .media-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .news-card.featured { flex-direction: column; gap: 15px; padding: 15px; }
    .news-card.featured .news-card-image { width: 100%; height: 190px; }
    .news-card.featured .news-card-content { width: 100%; padding-bottom: 10px; }
    .news-card { flex-direction: row; gap: 12px; padding: 10px; }
    .news-card .news-card-image { width: 110px; height: 80px; flex-shrink: 0; }
    .news-card .news-card-content { width: calc(100% - 122px); justify-content: flex-start; }
    .news-card .news-card-title { font-size: 13px; margin-bottom: 4px; line-height: 1.4; }
    .news-card .news-card-desc { font-size: 11px; -webkit-line-clamp: 2; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 25px; }
    .footer-brand, .footer-socials { align-items: center; }
    .modal-content-wrapper { height: 75vh; }
    .modal-video-container { width: calc(75vh * 9 / 16); }
    .comment-form-group { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .media-gallery-grid { grid-template-columns: 1fr; }
    .video-card { flex: 0 0 155px; }
}