/*
Theme Name: Tamar24
Theme URI: https://tamar24.ir/
Author: استودیو توسعه تمر ۲۴
Author URI: https://tamar24.ir/
Description: پوسته اختصاصی، مدرن و بهینه‌سازی شده پایگاه خبری تحلیلی تامر24 با تلفیق تایپوگرافی روزنامه‌ای الایام الجزائریة و استعداد.
Version: 1.3.1
Text Domain: tamar24
Domain Path: /languages
*/

/* ==========================================================================
   ۱. بارگذاری فونت روزنامه‌ای الایام الجزائریة (Elayem Eljazairia)
   ========================================================================== */
@font-face {
    font-family: 'ElayemEljazairia';
    src: url('assets/fonts/ElayemEljazairia/ElayemEljazairia-Light.woff2') format('woff2'),
         url('assets/fonts/ElayemEljazairia/ElayemEljazairia-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ElayemEljazairia';
    src: url('assets/fonts/ElayemEljazairia/ElayemEljazairia-Regular.woff2') format('woff2'),
         url('assets/fonts/ElayemEljazairia/ElayemEljazairia-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ElayemEljazairia';
    src: url('assets/fonts/ElayemEljazairia/ElayemEljazairia-Medium.woff2') format('woff2'),
         url('assets/fonts/ElayemEljazairia/ElayemEljazairia-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ElayemEljazairia';
    src: url('assets/fonts/ElayemEljazairia/ElayemEljazairia-Bold.woff2') format('woff2'),
         url('assets/fonts/ElayemEljazairia/ElayemEljazairia-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   ۲. بارگذاری فونت استاندارد استعداد (Estedad - پشتیبان کامل کاراکترهای فارسی)
   ========================================================================== */
@font-face {
    font-family: 'Estedad';
    src: url('assets/fonts/Estedad/Estedad-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('assets/fonts/Estedad/Estedad-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('assets/fonts/Estedad/Estedad-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('assets/fonts/Estedad/Estedad-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('assets/fonts/Estedad/Estedad-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('assets/fonts/Estedad/Estedad-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('assets/fonts/Estedad/Estedad-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   ۳. متغیرهای پالت رنگی و استایل‌های اصلی
   ========================================================================== */
:root {
    /* رنگ طلایی/خردلی برند تامر24 */
    --primary-color: #d9a407;
    --primary-dark: #b48302;
    --primary-light: #fef08a;
    --primary-soft: #fef9c3;
    
    /* رنگ سرمه‌ای تیره مکمل برای خوانایی و کنتراست مطبوعاتی */
    --contrast-navy: #0f172a;
    --contrast-navy-hover: #1e293b;
    --accent-blue: #1d4ed8;

    /* سازگاری با توابع قبلی پوسته */
    --persian-red: var(--primary-color);
    --persian-red-dark: var(--primary-dark);
    --accent: var(--contrast-navy);

    /* رنگ‌های بدنه و پوسته */
    --bg-page: #f8fafc;
    --surface-flat: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    --border-strong: #cbd5e1;
    --radius-all: 6px;
    --site-max-width: 1240px;
}

/* ==========================================================================
   ۴. ریست و استانداردهای عمومی (همراه با Fallback هوشمند)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body, button, input, textarea, select {
    font-family: 'ElayemEljazairia', 'Estedad', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.65;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

/* عناوین، تیترها و المان‌های شاخص */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-main-overlay h2,
.hero-sub-overlay h3,
.headline-overlay h2,
.single-headline,
.nav-links a,
.ticker-label,
.archive-header h1 {
    font-family: 'ElayemEljazairia', 'Estedad', sans-serif;
}

/* محافظت از آیکون‌های نوار ادمین وردپرس */
#wpadminbar * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

#wpadminbar .ab-icon,
#wpadminbar .ab-icon:before,
#wpadminbar .dashicons,
#wpadminbar .dashicons:before {
    font-family: dashicons !important;
    display: inline-block !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-all);
}

.container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.svg-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   ۵. هدر اصلی (Top Header) و منوی ناوبری
   ========================================================================== */
.top-header {
    background-color: var(--primary-color);
    color: var(--contrast-navy);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-wrap img {
    max-height: 48px;
    width: auto;
    background: transparent !important;
    border-radius: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--contrast-navy) !important;
    font-size: 14.5px;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: var(--radius-all);
    display: block;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background: rgba(15, 23, 42, 0.12);
    color: #000000 !important;
}

.nav-links ul.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    min-width: 210px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    border-radius: var(--radius-all);
    padding: 8px 0;
    display: none;
    z-index: 100;
    border: 1px solid var(--border-soft);
}

.nav-links li:hover > ul.sub-menu {
    display: block;
}

.nav-links ul.sub-menu li a {
    color: var(--text-main) !important;
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
}

.nav-links ul.sub-menu li a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: rgba(15, 23, 42, 0.1);
    color: var(--contrast-navy);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-all);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
    background: var(--contrast-navy);
    color: #ffffff;
}

.mobile-toggle {
    display: none;
}

/* ==========================================================================
   ۶. نوار خبر فوری (Ticker Bar)
   ========================================================================== */
.ticker-bar {
    background: #ffffff;
    padding: 8px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
}

.ticker-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.ticker-label-wrap {
    flex-shrink: 0;
    z-index: 5;
    background: #ffffff;
}

.ticker-label {
    background: var(--contrast-navy);
    color: var(--primary-color);
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-all);
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.flame-icon {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
    fill: var(--primary-color);
}

.ticker-track-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    direction: ltr;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: scrollTicker 32s linear infinite;
    will-change: transform;
    direction: rtl;
}

.ticker-track-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes scrollTicker {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 25px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.ticker-item:hover {
    color: var(--primary-dark);
}

.ticker-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    padding: 3px 6px;
    border-radius: var(--radius-all);
    height: 20px;
    flex-shrink: 0;
}

.ticker-logo-box img {
    height: 13px;
    width: auto;
    border-radius: 0;
}

/* ==========================================================================
   ۷. المان‌ها و نشان‌های محتوایی (UI Components)
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 35px 0 18px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border-soft);
}

.section-title {
    font-size: 17.5px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--contrast-navy);
    margin: 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 45px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: var(--primary-color); }
.dot-purple { background: var(--contrast-navy); }
.dot-orange { background: #f59e0b; }

.cat-tag {
    display: inline-block;
    width: fit-content;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-all);
    margin-bottom: 8px;
    background: var(--primary-soft);
    color: #854d0e;
    border: 1px solid #fde047;
    white-space: nowrap;
}

.cat-tag.white-tag {
    background: rgba(15, 23, 42, 0.75);
    color: var(--primary-light);
    border: none;
    backdrop-filter: blur(4px);
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ==========================================================================
   ۸. هیرو ۳ ستونه صفحه نخست
   ========================================================================== */
.hero-section {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.hero-col-main {
    position: relative;
    border-radius: var(--radius-all);
    overflow: hidden;
    height: 450px;
    background: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.hero-col-main img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.88;
}

.hero-main-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 25px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 65%, rgba(0,0,0,0) 100%);
    color: #ffffff;
}

.hero-main-overlay h2 {
    font-size: 21px;
    margin: 8px 0;
    line-height: 1.45;
    font-weight: 900;
}

.hero-col-mid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 450px;
}

.hero-sub-card {
    position: relative;
    flex: 1;
    border-radius: var(--radius-all);
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero-sub-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.85;
}

.hero-sub-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 14px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(0,0,0,0) 100%);
    color: #ffffff;
}

.hero-sub-overlay h3 {
    font-size: 13.5px;
    line-height: 1.45;
    font-weight: 800;
}

.hero-col-latest {
    background: #ffffff;
    border-radius: var(--radius-all);
    height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.hero-latest-head {
    background: #f8fafc;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-soft);
}

.hero-latest-title {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--contrast-navy);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-latest-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.latest-row-item {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-soft);
}

.latest-row-item:last-child {
    border-bottom: none;
}

.latest-row-item img {
    width: 65px;
    height: 55px;
}

.latest-row-item h4 {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}

.latest-row-item:hover h4 {
    color: var(--primary-dark);
}

.latest-row-time {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 3px;
}

/* ==========================================================================
   ۹. گریدهای کارت‌های خبری (کاملاً پایدار و بدون پرش)
   ========================================================================== */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.card-sm {
    background: #ffffff;
    border-radius: var(--radius-all);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.card-sm:hover {
    border-color: var(--border-soft);
}

.card-sm img {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-all) var(--radius-all) 0 0;
}

.card-sm-body {
    padding: 12px;
}

.card-sm h4 {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.card-sm:hover h4 {
    color: var(--primary-dark);
}

.grid-3-tall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card-tall {
    position: relative;
    border-radius: var(--radius-all);
    overflow: hidden;
    height: 380px;
    background: #000;
}

.card-tall img {
    width: 100%;
    height: 100%;
}

.tall-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(15, 23, 42, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
}

.tall-overlay h3 {
    font-size: 15.5px;
    line-height: 1.45;
    margin-top: 6px;
    font-weight: 800;
    transition: color 0.2s ease;
}

.card-tall:hover .tall-overlay h3 {
    color: var(--primary-light);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card-regular {
    background: #ffffff;
    border-radius: var(--radius-all);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.card-regular:hover {
    border-color: var(--border-soft);
}

.card-regular img {
    width: 100%;
    height: 140px;
    border-radius: var(--radius-all) var(--radius-all) 0 0;
}

.card-regular-body {
    padding: 14px;
}

.card-regular h4 {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.card-regular:hover h4 {
    color: var(--primary-dark);
}

/* ==========================================================================
   ۱۰. بنر پرونده ماه (تیتر بزرگ اختصاصی)
   ========================================================================== */
.headline-banner {
    position: relative;
    border-radius: var(--radius-all);
    overflow: hidden;
    height: 360px;
    margin: 30px 0;
    background: var(--contrast-navy);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.headline-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.headline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(15, 23, 42, 0.92) 35%,
        rgba(15, 23, 42, 0.70) 55%,
        rgba(217, 164, 7, 0.25) 75%,
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 35px 40px;
    color: #ffffff;
    z-index: 2;
}

.headline-overlay .cat-tag,
.headline-overlay h2,
.headline-overlay p {
    max-width: 560px;
}

.headline-overlay .cat-tag {
    background: var(--primary-color) !important;
    color: var(--contrast-navy) !important;
    font-size: 12px;
    font-weight: 900;
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    margin-bottom: 12px;
}

.headline-overlay h2 {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.5;
    margin: 6px 0 12px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: color 0.2s ease;
}

.headline-banner:hover .headline-overlay h2 {
    color: var(--primary-light);
}

.headline-overlay p {
    font-size: 13.5px;
    line-height: 1.85;
    color: #e2e8f0;
    text-align: justify;
    opacity: 0.95;
}

.grid-editor {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.editor-card {
    display: flex;
    background: #ffffff;
    border-radius: var(--radius-all);
    overflow: hidden;
    height: 140px;
    border: 1px solid var(--border-soft);
}

.editor-card:hover {
    border-color: var(--border-soft);
}

.editor-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editor-card img {
    width: 150px;
    height: 100%;
    border-radius: 0 var(--radius-all) var(--radius-all) 0;
}

.editor-card h4 {
    font-size: 13.5px;
    font-weight: 800;
    transition: color 0.2s ease;
}

.editor-card:hover h4 a {
    color: var(--primary-dark);
}

.ad-banner-strip {
    margin: 35px 0;
    background: linear-gradient(90deg, var(--contrast-navy), var(--contrast-navy-hover));
    border-right: 5px solid var(--primary-color);
    border-radius: var(--radius-all);
    padding: 22px 25px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-ad-strip {
    background: var(--primary-color);
    color: var(--contrast-navy);
    padding: 9px 20px;
    font-weight: 900;
    border-radius: var(--radius-all);
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-ad-strip:hover {
    background: #ffffff;
    color: var(--contrast-navy);
}

/* ==========================================================================
   ۱۱. چیدمان دو ستونه محتوا و سایدبار
   ========================================================================== */
.content-sidebar-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.recent-single-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-row-card {
    display: flex;
    gap: 18px;
    background: #ffffff;
    border-radius: var(--radius-all);
    padding: 14px;
    align-items: center;
    border: 1px solid var(--border-soft);
}

.news-row-card:hover {
    border-color: var(--border-soft);
}

.news-row-thumb {
    width: 210px;
    height: 130px;
    flex-shrink: 0;
}

.news-row-thumb img {
    width: 100%;
    height: 100%;
}

.news-row-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.news-row-body h4 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    margin: 4px 0 6px;
    transition: color 0.2s ease;
}

.news-row-card:hover .news-row-body h4 a {
    color: var(--primary-dark);
}

.news-row-body p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.news-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: var(--text-muted);
}

/* سایدبار و شبکه‌های اجتماعی */
.social-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.social-item {
    padding: 10px;
    border-radius: var(--radius-all);
    color: #fff;
    font-size: 12px;
    text-align: center;
    font-weight: 800;
    display: block;
    transition: opacity 0.2s ease;
}

.social-item:hover {
    opacity: 0.9;
    color: #ffffff;
}

.soc-telegram { background: #0088cc; }
.soc-instagram { background: #e1306c; }
.soc-twitter { background: #0f172a; }
.soc-eitaa { background: #e06822; }

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    padding: 8px;
    border-radius: var(--radius-all);
    border: 1px solid var(--border-soft);
}

.sidebar-item:hover {
    border-color: var(--border-soft);
}

.sidebar-item img {
    width: 70px;
    height: 60px;
}

.sidebar-item h5 {
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 800;
    transition: color 0.2s ease;
}

.sidebar-item:hover h5 a {
    color: var(--primary-dark);
}

.load-more-btn {
    display: block;
    width: 180px;
    margin: 30px auto 0;
    text-align: center;
    padding: 10px;
    background: var(--contrast-navy);
    border-radius: var(--radius-all);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    color: var(--primary-color);
    transition: background 0.2s ease, color 0.2s ease;
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: var(--contrast-navy);
}

/* ==========================================================================
   ۱۲. مسیر راهنما (Breadcrumbs)
   ========================================================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 15px;
    font-size: 12px;
    color: var(--text-muted);
    background: #ffffff;
    padding: 10px 15px;
    border-radius: var(--radius-all);
    border: 1px solid var(--border-soft);
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
}

.breadcrumbs .divider {
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--contrast-navy);
    font-weight: 800;
}

/* ==========================================================================
   ۱۳. صفحه آرشیو (Archive Layout)
   ========================================================================== */
.archive-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.archive-header {
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: var(--radius-all);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-soft);
}

.archive-header h1 {
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.archive-card {
    display: flex;
    gap: 18px;
    background: #ffffff;
    border-radius: var(--radius-all);
    padding: 14px;
    align-items: center;
    border: 1px solid var(--border-soft);
}

.archive-card:hover {
    border-color: var(--border-soft);
}

.archive-card-thumb {
    width: 210px;
    height: 135px;
    flex-shrink: 0;
}

.archive-card-thumb img {
    width: 100%;
    height: 100%;
}

.archive-card-content {
    flex: 1;
    min-width: 0;
}

.archive-card-content h3 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    margin: 4px 0 6px;
    transition: color 0.2s ease;
}

.archive-card:hover .archive-card-content h3 a {
    color: var(--primary-dark);
}

.archive-card-content p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.archive-cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.archive-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: var(--radius-all);
    font-size: 13px;
    font-weight: 800;
    border: 1px solid var(--border-soft);
    transition: background 0.2s ease, color 0.2s ease;
}

.archive-cat-item:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.archive-cat-count {
    font-size: 11px;
    background: var(--primary-light);
    color: #854d0e;
    padding: 2px 8px;
    border-radius: var(--radius-all);
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
}

.pagination .page-numbers {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--text-main);
    border-radius: var(--radius-all);
    font-size: 13.5px;
    font-weight: 800;
    border: 1px solid var(--border-soft);
    transition: background 0.2s ease, color 0.2s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-color);
    color: var(--contrast-navy);
    border-color: var(--primary-color);
}

/* ==========================================================================
   ۱۴. برگه تک‌خبر (Single News Page)
   ========================================================================== */
.single-layout {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.single-article {
    background: #ffffff;
    padding: 24px;
    border-radius: var(--radius-all);
    border: 1px solid var(--border-soft);
}

.single-headline {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.55;
    color: var(--contrast-navy);
    margin: 10px 0 16px;
}

.single-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: var(--radius-all);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 22px;
    border: 1px solid var(--border-soft);
}

.single-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.single-meta-item .svg-icon {
    stroke: var(--primary-color);
}

.single-featured-img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    margin-bottom: 22px;
}

.single-lead {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.85;
    color: var(--text-main);
    background: #fdfaf3;
    border-right: 4px solid var(--primary-color);
    padding: 14px 18px;
    margin-bottom: 22px;
    border-radius: var(--radius-all);
    text-align: justify;
}

.single-content {
    font-size: 15.5px;
    line-height: 2;
    color: #1e293b;
    text-align: justify;
}

.single-content p {
    margin-bottom: 18px;
}

.single-content blockquote,
.single-quote {
    background: #f8fafc;
    padding: 18px 20px;
    margin: 22px 0;
    border-radius: var(--radius-all);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--contrast-navy);
    border-right: 4px solid var(--primary-color);
}

.single-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 25px 0;
    padding: 14px;
    background: #f8fafc;
    border-radius: var(--radius-all);
    border: 1px solid var(--border-soft);
}

.tag-pill {
    background: #ffffff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-all);
    color: var(--text-main);
    border: 1px solid var(--border-soft);
    transition: background 0.2s ease, color 0.2s ease;
}

.tag-pill:hover {
    background: var(--primary-color);
    color: var(--contrast-navy);
    border-color: var(--border-soft);
}

/* سیستم دیدگاه‌ها */
.comments-wrap {
    margin-top: 35px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 15px 0 30px;
}

.comment-box {
    background: #ffffff;
    border-radius: var(--radius-all);
    padding: 14px 18px;
    border: 1px solid var(--border-soft);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-all);
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
}

.comment-date {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.7;
}

.comment-form-box {
    background: #ffffff;
    padding: 22px;
    border-radius: var(--radius-all);
    border: 1px solid var(--border-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.comment-form-box input,
.comment-form-box textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    background: #f8fafc;
    border-radius: var(--radius-all);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
}

.comment-form-box textarea {
    height: 100px;
    resize: vertical;
    margin-bottom: 14px;
}

.btn-comment-submit {
    background: var(--contrast-navy);
    color: var(--primary-color);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 800;
    border-radius: var(--radius-all);
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-comment-submit:hover {
    background: var(--primary-color);
    color: var(--contrast-navy);
}

/* ==========================================================================
   ۱۵. فوتر پایگاه خبری (Modern Footer)
   ========================================================================== */
.site-footer {
    background-color: var(--contrast-navy);
    color: #cbd5e1;
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 4px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col-about {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    max-height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-about-text {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.85;
    text-align: justify;
    margin: 0;
}

.footer-heading {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 18px;
    color: var(--primary-color) !important;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-links li {
    margin-bottom: 10px;
}

.footer-menu-links a {
    font-size: 13px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.footer-menu-links a::before {
    content: '‹';
    font-size: 16px;
    color: var(--primary-color);
}

.footer-menu-links a:hover {
    color: var(--primary-color);
}

.footer-social-wrapper {
    margin-top: 10px;
}

.footer-social-title {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.social-btn:hover {
    opacity: 0.85;
    color: #ffffff;
}

.btn-eitaa { background: #e06822; }
.btn-bale { background: #109355; }
.btn-telegram { background: #0088cc; }
.btn-instagram { background: #e1306c; }
.btn-rubika { background: #7c3aed; }
.btn-twitter { background: #000000; border: 1px solid rgba(255,255,255,0.2); }

.footer-license-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-badges-grid {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.license-badge-box {
    background: #ffffff;
    padding: 8px;
    border-radius: var(--radius-all);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    min-height: 90px;
    max-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.license-badge-box img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.footer-bottom-bar {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-developer p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.marun-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color) !important;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease;
}

.marun-brand-link:hover {
    color: #ffffff !important;
}

.marun-logo-svg {
    width: 17px;
    height: 17px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    flex-shrink: 0;
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-all);
    background: var(--primary-color);
    color: var(--contrast-navy);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background 0.2s ease, color 0.2s ease;
}

.scroll-to-top-btn:hover {
    background: #ffffff;
    color: var(--contrast-navy);
}

/* ==========================================================================
   ۱۶. مدال‌ها، جستجو و منوی کشویی موبایل
   ========================================================================== */
.drawer-backdrop, .search-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.drawer-backdrop.active, .search-modal.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -290px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 2001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: var(--radius-all);
}

.drawer-close {
    background: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-all);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-soft);
}

.drawer-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-all);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-main);
    background: #f8fafc;
    margin-bottom: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.drawer-nav a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.search-box {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-all);
    padding: 25px;
    margin: 100px auto 0;
    border-top: 4px solid var(--primary-color);
}

.search-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.search-form-flex {
    display: flex;
    gap: 8px;
}

.search-form-flex input {
    flex: 1;
    padding: 11px 14px;
    font-size: 13.5px;
    border-radius: var(--radius-all);
    background: #f8fafc;
    border: 1px solid var(--border-soft);
}

.search-form-flex button {
    background: var(--contrast-navy);
    color: var(--primary-color);
    padding: 0 20px;
    font-weight: 800;
    border-radius: var(--radius-all);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-form-flex button:hover {
    background: var(--primary-color);
    color: var(--contrast-navy);
}

/* ==========================================================================
   ۱۷. واکنش‌گرایی (Responsive Breakpoints)
   ========================================================================== */
@media (max-width: 1080px) {
    .hero-section { grid-template-columns: 1fr 1fr; }
    .hero-col-main { grid-column: span 2; height: 380px; }
    .hero-col-mid, .hero-col-latest { height: 380px; }
    .single-layout, .archive-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .hero-section { grid-template-columns: 1fr; }
    .hero-col-main { grid-column: span 1; height: 300px; }
    .hero-col-mid { height: auto; }
    .hero-sub-card { height: 180px; }
    .hero-col-latest { height: auto; }
    .content-sidebar-layout { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .grid-3-tall, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .form-grid { grid-template-columns: 1fr; }
    .single-featured-img { height: 260px; }
}

@media (max-width: 640px) {
    .news-row-card, .archive-card { flex-direction: column; align-items: stretch; }
    .news-row-thumb, .archive-card-thumb { width: 100%; height: 180px; }
}

@media (max-width: 576px) {
    .grid-editor, .grid-3-tall, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .headline-banner { height: 280px; }
    .headline-overlay h2 { font-size: 18px; }
    .headline-overlay { padding: 20px; }
    .ad-banner-strip { flex-direction: column; gap: 15px; text-align: center; }
    .footer-bottom-bar { flex-direction: column; text-align: center; }
}