/*
Theme Name: پایگاه خبری عصر دنا
Theme URI: https://asrdena.ir/
Author: مارون استودیو
Author URI: https://marunstudio.ir/
Description: پوسته خبری حرفه‌ای، فوق‌العاده سبک، بهینه‌سازی شده برای سئو، با کانتینر عریض به سبک خبرگزاری‌های بزرگ (تسنیم و فارس).
Version: 1.0.5
Text Domain: asrdena
Domain Path: /languages
*/

/* ==========================================================================
   ۱. فراخوانی فونت‌های وزیرمتن (Vazirmatn)
   ========================================================================== */
@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-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;
}

/* ==========================================================================
   ۲. متغیرهای رنگی و حالت شب (Dark Mode)
   ========================================================================== */
:root {
    --header-bg: #000ec2;       /* آبی سلطنتی اصلی */
    --header-hover: #000bb3;
    --accent-color: #f03e3e;    /* نوار قرمز زیر هدر */
    --primary: #000ec2;
    --title-color: #000ec2;     /* رنگ عنوان‌ها و دایره‌ها در روز */
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --divider: #edf2f7;
    --banner-bg: #f8fafc;
    --footer-bg: #00074f;       /* سرمه‌ای سیر فوتر */
    --transition: all 0.25s ease;
}

/* حالت تاریک (Dark Mode) - رنگ عناوین: #ebb013 */
[data-theme="dark"] {
    --header-bg: #020617;       /* رنگ هدر در حالت شب */
    --header-hover: #0b1329;
    --bg-body: #0f172a;
    --bg-card: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --title-color: #ebb013;     /* رنگ زرد طلایی برای عناوین در حالت شب */
    --divider: #1e293b;
    --banner-bg: #1e293b;
    --footer-bg: #020617;
}

[data-theme="dark"] header.site-header {
    background-color: #020617 !important;
    border-bottom: 3px solid var(--accent-color);
}

[data-theme="dark"] .drawer-header {
    background-color: #020617 !important;
}

/* ==========================================================================
   ۳. ریست و استایل‌های پایه
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    border-radius: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    cursor: pointer;
}

a:hover {
    color: var(--primary);
}

[data-theme="dark"] a:hover {
    color: #ebb013;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   ۴. عنوان ویجت‌ها با نقطه و خط محوشونده
   ========================================================================== */
.widget-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 18px;
}

.widget-title span, 
.widget-title a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    color: inherit;
}

.widget-title span::before, 
.widget-title a::before {
    content: '';
    display: inline-block;
    width: 11px;
    height: 11px;
    background-color: var(--title-color);
    border-radius: 50% !important;
    flex-shrink: 0;
}

.widget-title::after {
    content: '';
    flex-grow: 1;
    height: 2.5px;
    background: linear-gradient(to left, var(--title-color) 0%, rgba(0, 14, 194, 0.35) 60%, transparent 100%);
}

[data-theme="dark"] .widget-title {
    color: #ebb013 !important;
}

[data-theme="dark"] .widget-title span::before,
[data-theme="dark"] .widget-title a::before {
    background-color: #ebb013 !important;
}

[data-theme="dark"] .widget-title::after {
    background: linear-gradient(to left, #ebb013 0%, rgba(235, 176, 19, 0.35) 60%, transparent 100%) !important;
}

/* ==========================================================================
   ۵. هدر و منوی اصلی دسکتاپ
   ========================================================================== */
header.site-header {
    background-color: var(--header-bg);
    color: #ffffff;
    position: relative;
    z-index: 100;
    border-bottom: 2px solid var(--accent-color);
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    height: 100%;
}

.logo img {
    max-height: 42px;
    filter: brightness(0) invert(1);
}

.logo-nav nav {
    height: 100%;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu > li > a {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    opacity: 0.95;
    padding: 0 12px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

/* آیکون فلش جهت‌دار برای منوهای دارای زیرمنو */
.nav-menu > li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    transition: transform 0.25s ease;
    opacity: 0.8;
}

.nav-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu a:hover, 
.nav-menu .current-menu-item > a {
    opacity: 1;
    color: #93c5fd;
}

/* باکس زیرمنو دسکتاپ */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    min-width: 210px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--accent-color);
    padding: 6px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    width: 100%;
    height: auto;
}

.nav-menu .sub-menu a {
    color: #1e293b !important;
    padding: 10px 18px;
    display: block;
    border-bottom: 1px solid var(--divider);
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    transition: var(--transition);
}

.nav-menu .sub-menu li:last-child > a {
    border-bottom: none;
}

.nav-menu .sub-menu a:hover {
    background: #f8fafc;
    color: var(--primary) !important;
    padding-right: 22px;
}

/* زیرمنو در حالت شب دسکتاپ */
[data-theme="dark"] .nav-menu .sub-menu {
    background: #0f172a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-top-color: #ebb013;
}

[data-theme="dark"] .nav-menu .sub-menu a {
    color: #f1f5f9 !important;
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .nav-menu .sub-menu a:hover {
    background: #1e293b;
    color: #ebb013 !important;
}

/* دکمه‌های کنترل هدر */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.icon-btn:hover {
    color: #93c5fd;
}

[data-theme="dark"] .icon-btn:hover {
    color: #ebb013;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    width: 38px;
    height: 38px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    color: #93c5fd;
}

/* ==========================================================================
   ۶. منوی کشویی موبایل (Drawer) با قابلیت آکاردئونی
   ========================================================================== */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 290px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--header-bg);
    color: #ffffff;
}

.drawer-header img {
    max-height: 35px;
    filter: brightness(0) invert(1);
}

.close-drawer-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.drawer-nav {
    padding: 10px 0;
    overflow-y: auto;
}

.drawer-nav li {
    border-bottom: 1px solid var(--divider);
    list-style: none;
}

.drawer-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-nav a {
    display: block;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    flex-grow: 1;
}

.drawer-nav a:hover {
    background-color: var(--banner-bg);
    color: var(--primary);
}

[data-theme="dark"] .drawer-nav a:hover {
    color: #ebb013;
}

/* دکمه فلش بازکننده زیرمنوی موبایل */
.drawer-submenu-toggle {
    background: transparent;
    border: none;
    padding: 13px 18px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.25s ease, color 0.25s ease;
}

.drawer-submenu-toggle.active {
    transform: rotate(180deg);
    color: var(--primary);
}

[data-theme="dark"] .drawer-submenu-toggle.active {
    color: #ebb013;
}

/* زیرمنوی کشویی موبایل */
.drawer-nav .sub-menu {
    display: none;
    background-color: var(--banner-bg);
    padding: 0;
    border-top: 1px solid var(--divider);
}

.drawer-nav .sub-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .drawer-nav .sub-menu li {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.drawer-nav .sub-menu a {
    padding: 11px 34px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.drawer-nav .sub-menu a:hover {
    color: var(--primary);
    padding-right: 38px;
}

[data-theme="dark"] .drawer-nav .sub-menu a:hover {
    color: #ebb013;
}

/* ==========================================================================
   ۷. پاپ‌آپ تمام‌صفحه جستجو (دکمه سمت چپ)
   ========================================================================== */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-modal-overlay.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    z-index: 10;
}

.search-close-btn:hover {
    transform: rotate(90deg);
    color: #ef4444;
}

.search-modal-box {
    width: 90%;
    max-width: 680px;
    position: relative;
    transform: translateY(-25px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-overlay.active .search-modal-box {
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--primary);
    padding: 4px 10px 4px 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    direction: rtl;
}

.search-form input {
    flex-grow: 1;
    height: 48px;
    border: none;
    outline: none;
    font-size: 15.5px;
    font-family: inherit;
    color: #1e293b;
    background: transparent;
    padding: 0 10px;
    text-align: right;
}

.search-form input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.search-form .search-submit-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-form .search-submit-btn:hover {
    color: var(--header-hover);
    transform: scale(1.1);
}

[data-theme="dark"] .search-form {
    background: #0f172a;
    border-color: #ebb013;
}

[data-theme="dark"] .search-form input {
    color: #f1f5f9;
}

[data-theme="dark"] .search-form .search-submit-btn {
    color: #ebb013;
}

/* ==========================================================================
   ۸. ساختار چیدمان ۳ ستونه اصلی
   ========================================================================== */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 26px;
    margin-top: 25px;
    margin-bottom: 40px;
}

.widget {
    margin-bottom: 28px;
}

/* ==========================================================================
   ۹. کارت‌ها و آیتم‌های خبری
   ========================================================================== */

/* تیتر یک */
.lead-news {
    margin-bottom: 20px;
}

.lead-news a {
    display: block;
    overflow: hidden;
}

.lead-news img {
    width: 100% !important;
    height: 340px !important;
    object-fit: cover !important;
    display: block !important;
}

.lead-content {
    padding: 12px 0 0 0;
}

.lead-content h2 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-main);
    transition: var(--transition);
}

.lead-news a:hover .lead-content h2 {
    color: var(--primary);
}

[data-theme="dark"] .lead-news a:hover .lead-content h2 {
    color: #ebb013;
}

.lead-content p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ۶ خبر زیر تیتر یک (در حالت دسکتاپ: ۳ ستونه) */
.sub-lead-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 16px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--divider);
}

.sub-lead-news a {
    display: block;
    overflow: hidden;
}

.sub-lead-news img {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    display: block !important;
}

.sub-lead-content {
    padding-top: 8px;
}

.sub-lead-content h3 {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-main);
    transition: var(--transition);
}

.sub-lead-news a:hover .sub-lead-content h3 {
    color: var(--primary);
}

[data-theme="dark"] .sub-lead-news a:hover .sub-lead-content h3 {
    color: #ebb013;
}

/* لیست اخبار افقی */
.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.news-item-horizontal {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid var(--divider) !important;
}

.news-item-horizontal .news-thumb-box,
.news-item-horizontal > a:first-child {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 105px !important;
    min-height: 105px !important;
    max-height: 105px !important;
    flex-shrink: 0 !important;
    display: block !important;
    overflow: hidden !important;
    background-color: var(--banner-bg);
}

.news-item-horizontal .news-thumb-box img,
.news-item-horizontal > a:first-child img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.news-item-horizontal .content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.news-item-horizontal h4 {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 6px;
    color: var(--text-main);
    transition: var(--transition);
}

.news-item-horizontal a:hover h4 {
    color: var(--primary);
}

[data-theme="dark"] .news-item-horizontal a:hover h4 {
    color: #ebb013;
}

.news-item-horizontal p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-archive-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.btn-archive {
    display: inline-block;
    padding: 9px 36px;
    background: var(--header-bg);
    color: #ffffff;
    text-align: center;
    border: none;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-archive:hover {
    background: var(--header-hover);
    color: #ffffff;
}

[data-theme="dark"] .btn-archive {
    background: #ebb013;
    color: #0f172a;
}

[data-theme="dark"] .btn-archive:hover {
    background: #d99f0f;
    color: #0f172a;
}

/* ==========================================================================
   ۱۰. بخش چندرسانه‌ای پایین سایت (ویدیو + عکس)
   ========================================================================== */
.multimedia-section {
    background-color: #24303c;
    padding: 30px 0 35px;
    margin-top: 45px;
}

[data-theme="dark"] .multimedia-section {
    background-color: #0b1329;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
}

.multimedia-wrapper-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.multimedia-section .widget-title {
    color: #ffffff !important;
    font-size: 15.5px;
    font-weight: 800;
    margin-bottom: 15px;
}

.multimedia-section .widget-title span::before {
    background-color: #60a5fa !important;
}

.multimedia-section .widget-title::after {
    background: linear-gradient(to left, #60a5fa 0%, rgba(96, 165, 250, 0.25) 60%, transparent 100%) !important;
}

[data-theme="dark"] .multimedia-section .widget-title {
    color: #ebb013 !important;
}

[data-theme="dark"] .multimedia-section .widget-title span::before {
    background-color: #ebb013 !important;
}

[data-theme="dark"] .multimedia-section .widget-title::after {
    background: linear-gradient(to left, #ebb013 0%, rgba(235, 176, 19, 0.25) 60%, transparent 100%) !important;
}

.media-card {
    position: relative;
    overflow: hidden;
    background-color: #0f172a;
}

.media-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.media-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.media-card-large {
    height: 396px;
}

.multimedia-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.media-card-small {
    height: 190px;
}

.media-icon-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #0f172a;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 5;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 14px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 60%, transparent 100%);
    z-index: 2;
}

.media-card-large .media-overlay h3 {
    color: #ffffff;
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.55;
    transition: var(--transition);
}

.media-card-small .media-overlay h4 {
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.media-card:hover .media-overlay h3,
.media-card:hover .media-overlay h4 {
    color: #93c5fd;
}

[data-theme="dark"] .media-card:hover .media-overlay h3,
[data-theme="dark"] .media-card:hover .media-overlay h4 {
    color: #ebb013;
}

/* ==========================================================================
   ۱۱. سایدبارها
   ========================================================================== */
.sidebar-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 13px;
    line-height: 1.5;
}

.sidebar-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50% !important;
    flex-shrink: 0;
}

[data-theme="dark"] .sidebar-list li::before {
    background-color: #ebb013;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li a {
    transition: var(--transition);
}

.sidebar-list li a:hover {
    color: var(--primary);
}

[data-theme="dark"] .sidebar-list li a:hover {
    color: #ebb013;
}

.note-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--divider) !important;
}

.note-card .note-thumb-box {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    display: block !important;
    overflow: hidden !important;
    background-color: var(--banner-bg);
}

.note-card .note-thumb-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.note-info h5 {
    font-size: 11.5px;
    color: var(--primary);
    margin-bottom: 3px;
}

[data-theme="dark"] .note-info h5 {
    color: #ebb013;
}

.note-info p {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.note-info p a:hover {
    color: var(--primary);
}

[data-theme="dark"] .note-info p a:hover {
    color: #ebb013;
}

.politics-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--divider) !important;
}

.politics-item .pol-thumb-box {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
    flex-shrink: 0 !important;
    display: block !important;
    overflow: hidden !important;
    background-color: var(--banner-bg);
}

.politics-item .pol-thumb-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.politics-item h5 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    transition: var(--transition);
}

.politics-item a:hover h5 {
    color: var(--primary);
}

[data-theme="dark"] .politics-item a:hover h5 {
    color: #ebb013;
}

.ads-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ad-banner {
    display: block;
    background: var(--banner-bg);
    border: 1px solid var(--divider);
    overflow: hidden;
}

.ad-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   ۱۲. صفحات داخلی و جزئیات تک‌خبر
   ========================================================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--divider);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

[data-theme="dark"] .breadcrumbs a:hover {
    color: #ebb013;
}

.breadcrumbs i {
    font-size: 10px;
}

.breadcrumbs span.current {
    color: var(--text-main);
    font-weight: 700;
}

.single-post-header {
    margin-bottom: 18px;
}

.single-post-category {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

[data-theme="dark"] .single-post-category {
    color: #ebb013;
}

.single-post-title {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.55;
    color: var(--text-main);
    margin-bottom: 14px;
}

.single-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 10px 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.single-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.single-meta-item i {
    color: var(--title-color);
}

[data-theme="dark"] .single-meta-item i {
    color: #ebb013;
}

.single-featured-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    margin-bottom: 20px;
}

.single-lead-box {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.85;
    color: var(--text-main);
    padding: 15px 20px;
    background: var(--banner-bg);
    border-right: 4px solid var(--primary);
    margin-bottom: 24px;
}

[data-theme="dark"] .single-lead-box {
    border-right-color: #ebb013;
}

.single-article-body {
    font-size: 15.5px;
    line-height: 2.05;
    color: var(--text-main);
    margin-bottom: 35px;
    text-align: justify;
}

.single-article-body p {
    margin-bottom: 18px;
}

.inline-related-box {
    background: var(--banner-bg);
    border: 1px solid var(--divider);
    border-right: 4px solid var(--accent-color);
    padding: 14px 16px;
    margin: 24px 0;
    position: relative;
}

[data-theme="dark"] .inline-related-box {
    border-right-color: #ebb013;
}

.inline-related-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 6px;
}

[data-theme="dark"] .inline-related-badge {
    color: #ebb013;
}

.inline-related-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.inline-related-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.6;
}

.inline-related-title a:hover {
    color: var(--primary);
}

[data-theme="dark"] .inline-related-title a:hover {
    color: #ebb013;
}

.inline-related-thumb img {
    width: 80px;
    height: 55px;
    object-fit: cover;
}

.mojbazar-share-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--banner-bg);
    border: 1px solid var(--divider);
    padding: 12px 18px;
    margin: 25px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.share-social-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-title {
    font-size: 12px;
    font-weight: 700;
}

.social-share-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--divider);
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition);
}

.social-share-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

[data-theme="dark"] .social-share-btn:hover {
    background: #ebb013;
    color: #0f172a;
}

.copy-shortlink-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--divider);
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-main);
    position: relative;
}

.copy-shortlink-btn .copy-badge {
    display: none;
    color: #10b981;
    font-weight: bold;
}

.copy-shortlink-btn.copied .copy-badge {
    display: inline;
}

/* ==========================================================================
   ۱۳. استایل صفحه خطای ۴۰۴
   ========================================================================== */
.error-404-box {
    background: var(--banner-bg);
    border: 1px solid var(--divider);
    padding: 50px 30px;
    text-align: center;
    margin-bottom: 30px;
}

.error-404-code {
    font-size: 85px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

[data-theme="dark"] .error-404-code {
    color: #ebb013;
}

.error-404-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.error-404-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 28px;
    line-height: 1.8;
}

.error-404-search {
    max-width: 480px;
    margin: 0 auto 25px;
}

.error-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--divider);
    background: var(--bg-card);
}

.error-search-form input {
    flex-grow: 1;
    height: 44px;
    padding: 0 15px;
    border: none;
    outline: none;
    font-size: 13.5px;
    background: transparent;
    color: var(--text-main);
}

.error-search-form button {
    background: var(--primary);
    color: #ffffff;
    border: none;
    height: 44px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.error-search-form button:hover {
    background: var(--header-hover);
}

[data-theme="dark"] .error-search-form button {
    background: #ebb013;
    color: #0f172a;
}

[data-theme="dark"] .error-search-form button:hover {
    background: #d99f0f;
}

.error-404-actions {
    display: flex;
    justify-content: center;
}

.btn-return-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-return-home:hover {
    background: var(--header-hover);
}

[data-theme="dark"] .btn-return-home {
    background: #ebb013;
    color: #0f172a !important;
}

[data-theme="dark"] .btn-return-home:hover {
    background: #d99f0f;
}

/* ==========================================================================
   ۱۴. نظرات کاربران
   ========================================================================== */
.comments-area {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--divider);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.comment-box {
    background: var(--banner-bg);
    padding: 16px 18px;
    border: 1px solid var(--divider);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author-name {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
}

.comment-author-name i {
    color: var(--title-color);
}

[data-theme="dark"] .comment-author-name i {
    color: #ebb013;
}

.comment-date {
    font-size: 11.5px;
    color: var(--text-muted);
}

.comment-content {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-main);
}

.comment-form-container {
    background: var(--banner-bg);
    padding: 22px;
    border: 1px solid var(--divider);
}

.comment-form-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.comment-form-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.comment-field {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--divider);
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.comment-field:focus {
    border-color: var(--primary);
}

[data-theme="dark"] .comment-field:focus {
    border-color: #ebb013;
}

textarea.comment-field {
    resize: vertical;
    min-height: 110px;
    margin-bottom: 14px;
}

.comment-submit-btn, 
input[type="submit"] {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.comment-submit-btn:hover, 
input[type="submit"]:hover {
    background: var(--header-hover);
}

[data-theme="dark"] .comment-submit-btn,
[data-theme="dark"] input[type="submit"] {
    background: #ebb013;
    color: #0f172a;
}

[data-theme="dark"] .comment-submit-btn:hover,
[data-theme="dark"] input[type="submit"]:hover {
    background: #d99f0f;
}

/* ==========================================================================
   ۱۵. شماره‌گذاری صفحات (Pagination)
   ========================================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--divider);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: var(--banner-bg);
    border: 1px solid var(--divider);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pagination .page-numbers.current, 
.pagination .page-numbers:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

[data-theme="dark"] .pagination .page-numbers.current,
[data-theme="dark"] .pagination .page-numbers:hover {
    background: #ebb013;
    color: #0f172a;
    border-color: #ebb013;
}

/* ==========================================================================
   ۱۶. فوتر و نمادها
   ========================================================================== */
footer.site-footer {
    background: var(--footer-bg);
    color: #ffffff;
    padding: 50px 0 20px;
    margin-top: 50px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    gap: 30px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col h4 span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.footer-col h4 span::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    background-color: #60a5fa;
    border-radius: 50% !important;
    flex-shrink: 0;
}

.footer-col h4::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to left, #60a5fa 0%, rgba(96, 165, 250, 0.3) 60%, transparent 100%);
}

[data-theme="dark"] .footer-col h4 span::before {
    background-color: #ebb013;
}

[data-theme="dark"] .footer-col h4::after {
    background: linear-gradient(to left, #ebb013 0%, rgba(235, 176, 19, 0.3) 60%, transparent 100%);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    font-size: 12.5px;
}

/* شبکه‌های اجتماعی زیر درباره ما */
.footer-social-wrapper {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social-title {
    display: block;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social-btn:hover {
    transform: translateY(-3px);
    color: #ffffff !important;
}

.footer-social-btn.social-instagram:hover { background: #e1306c !important; border-color: #e1306c !important; }
.footer-social-btn.social-telegram:hover  { background: #229ed9 !important; border-color: #229ed9 !important; }
.footer-social-btn.social-eitaa:hover     { background: #e06d10 !important; border-color: #e06d10 !important; }
.footer-social-btn.social-rubika:hover    { background: #9b27b0 !important; border-color: #9b27b0 !important; }
.footer-social-btn.social-whatsapp:hover  { background: #25d366 !important; border-color: #25d366 !important; }
.footer-social-btn.social-twitter:hover   { background: #000000 !important; border-color: #333333 !important; }
.footer-social-btn.social-facebook:hover  { background: #1877f2 !important; border-color: #1877f2 !important; }
.footer-social-btn.social-rss:hover       { background: #f26522 !important; border-color: #f26522 !important; }

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
}

.footer-links a:hover {
    color: #ffffff;
    padding-right: 4px;
}

[data-theme="dark"] .footer-links a:hover {
    color: #ebb013;
}

.contact-items li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}

.trust-badges {
    display: flex;
    gap: 10px;
}

.badge-box {
    background: #ffffff;
    padding: 10px;
    width: 85px;
    height: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1e293b;
    font-size: 10.5px;
    font-weight: bold;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.badge-box-custom {
    overflow: hidden;
}

.badge-box-custom img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

.badge-box i {
    font-size: 26px;
    color: var(--header-bg);
    margin-bottom: 6px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-developer a {
    color: #ffffff;
    font-weight: 700;
}

.footer-developer a:hover {
    color: #93c5fd;
}

[data-theme="dark"] .footer-developer a:hover {
    color: #ebb013;
}

/* دکمه بازگشت به بالا */
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    left: auto;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    border: none;
    background-color: var(--header-bg);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #1d4ed8;
}

[data-theme="dark"] #back-to-top {
    background-color: #ebb013;
    color: #0f172a;
}

[data-theme="dark"] #back-to-top:hover {
    background-color: #d99f0f;
}

/* ==========================================================================
   ۱۷. واکنش‌گرایی یکپارچه (Responsive Design)
   ========================================================================== */
@media (max-width: 1100px) {
    .main-layout {
        grid-template-columns: 60% 40%;
    }
    .col-sidebar-2 {
        grid-column: 1 / -1;
    }
    .ads-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .multimedia-wrapper-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .media-card-large {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .main-layout {
        grid-template-columns: 1fr;
    }

    /* ۲ ستونه شدن ۶ خبر زیر تیتر در تبلت و موبایل */
    .sub-lead-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px 10px !important;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .sub-lead-news img {
        height: 115px !important;
    }

    .sub-lead-content h3 {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ads-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .comment-form-inputs {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .lead-news img {
        height: 220px !important;
    }
    .lead-content h2 {
        font-size: 15.5px !important;
    }

    /* ۲ ستونه در موبایل‌های کوچک */
    .sub-lead-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px 8px !important;
    }

    .sub-lead-news img {
        height: 100px !important;
    }

    .sub-lead-content h3 {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
    }

    .multimedia-wrapper-grid {
        gap: 20px;
    }
    
    .media-card-large {
        height: 220px;
    }
    .media-card-large .media-overlay h3 {
        font-size: 14px;
    }

    .multimedia-sub-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .media-card-small {
        height: 135px !important;
    }

    .media-card-small .media-overlay {
        padding: 25px 8px 8px !important;
    }

    .media-card-small .media-overlay h4 {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    .media-icon-badge {
        width: 25px !important;
        height: 25px !important;
        font-size: 11px !important;
    }

    .news-item-horizontal .news-thumb-box,
    .news-item-horizontal > a:first-child {
        width: 115px !important;
        min-width: 115px !important;
        height: 80px !important;
        min-height: 80px !important;
    }
    .news-item-horizontal h4 {
        font-size: 13px;
    }
    .news-item-horizontal p {
        display: none;
    }
}