/* =========================================
   انزلی پرس - استایل اصلی
   نسخه ۱.۰.۰
   ========================================= */

/* ---- متغیرهای CSS ---- */
:root {
    --anzali-primary:     #c0392b;
    --anzali-secondary:   #2c3e50;
    --anzali-accent:      #e67e22;
    --anzali-topbar-bg:   #c0392b;
    --anzali-menu-bg:     #2c3e50;
    --anzali-header-bg:   #ffffff;
    --anzali-footer-bg:   #1a252f;
    --anzali-font-family: Tahoma, Arial, sans-serif;
    --anzali-font-size:   15px;
    --anzali-line-height: 1.85;
    --anzali-border-r:    6px;
    --anzali-shadow-sm:   0 2px 8px rgba(0,0,0,.08);
    --anzali-shadow-md:   0 4px 16px rgba(0,0,0,.12);
    --anzali-transition:  .22s ease;
    --anzali-gray-100:    #f8f9fa;
    --anzali-gray-200:    #e9ecef;
    --anzali-gray-400:    #ced4da;
    --anzali-gray-600:    #6c757d;
    --anzali-gray-800:    #343a40;
    --anzali-text:        #2c3e50;
    --anzali-bg:          #f4f6f8;
    --container-max:      1240px;
    --container-pad:      16px;
}

/* ---- ریست ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--anzali-font-family);
    font-size: var(--anzali-font-size);
    line-height: var(--anzali-line-height);
    color: var(--anzali-text);
    background: var(--anzali-bg);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--anzali-heading-font, var(--anzali-font-family));
}
a { color: var(--anzali-primary); text-decoration: none; transition: color var(--anzali-transition); }
a:hover { color: var(--anzali-accent); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Container ---- */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* =========================================
   نوار بالایی
   ========================================= */
.anzali-topbar {
    background: var(--anzali-topbar-bg);
    color: #fff;
    font-size: 13px;
    padding: 5px 0;
    position: relative;
    z-index: 250;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar-menu { display: flex; gap: 0; }
.topbar-menu a { color: rgba(255,255,255,.85); padding: 4px 12px; font-size: 12.5px; border-left: 1px solid rgba(255,255,255,.2); transition: background var(--anzali-transition); }
.topbar-menu a:hover { color: #fff; background: rgba(255,255,255,.1); }
.topbar-menu li:last-child a { border-left: none; }
.topbar-left { display: flex; align-items: center; gap: 6px; }
.topbar-social { color: rgba(255,255,255,.8); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; transition: all var(--anzali-transition); }
.topbar-social svg { width: 14px; height: 14px; }
.topbar-social:hover { color: #fff; background: rgba(255,255,255,.15); }

/* =========================================
   هدر اصلی
   ========================================= */
.site-header {
    background: var(--anzali-header-bg);
    border-bottom: 3px solid var(--anzali-primary);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--anzali-shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.site-branding { flex-shrink: 0; }
.logo-main { font-size: clamp(22px, 3vw, 32px); font-weight: 900; color: var(--anzali-primary); letter-spacing: -0.5px; }
.logo-slogan { font-size: 11px; color: var(--anzali-gray-600); }
.custom-logo { max-height: 70px; width: auto; }

/* جستجو */
.header-search { flex-shrink: 0; }
.search-toggle {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--anzali-gray-100);
    border-radius: 50%;
    color: var(--anzali-secondary);
    transition: all var(--anzali-transition);
}
.search-toggle svg { width: 18px; height: 18px; }
.search-toggle:hover { background: var(--anzali-primary); color: #fff; }

.search-panel { background: #fff; border-top: 1px solid var(--anzali-gray-200); padding: 12px 0; box-shadow: var(--anzali-shadow-md); }
.search-form { display: flex; gap: 8px; }
.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--anzali-gray-200);
    border-radius: var(--anzali-border-r);
    font-size: 14px;
    transition: border-color var(--anzali-transition);
    background: var(--anzali-gray-100);
}
.search-input:focus { outline: none; border-color: var(--anzali-primary); background: #fff; }
.search-submit {
    padding: 10px 20px;
    background: var(--anzali-primary);
    color: #fff;
    border-radius: var(--anzali-border-r);
    display: flex; align-items: center; gap: 6px;
    font-size: 14px;
    transition: background var(--anzali-transition);
}
.search-submit svg { width: 16px; height: 16px; }
.search-submit:hover { background: var(--anzali-secondary); }

/* =========================================
   منوی ناوبری
   ========================================= */
.main-navigation {
    background: var(--anzali-menu-bg);
    position: sticky;
    top: 0; /* بعد از هدر sticky */
    z-index: 190;
}
.nav-inner { display: flex; align-items: stretch; }

.primary-menu { display: flex; align-items: stretch; gap: 0; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
    display: flex; align-items: center;
    padding: 0 18px;
    height: 46px;
    color: rgba(255,255,255,.9);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--anzali-transition);
    position: relative;
}
.primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--anzali-primary);
    transform: scaleX(0);
    transition: transform var(--anzali-transition);
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a { color: #fff; }
.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after { transform: scaleX(1); }

/* زیرمنو */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%; right: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: var(--anzali-shadow-md);
    border-top: 3px solid var(--anzali-primary);
    border-radius: 0 0 var(--anzali-border-r) var(--anzali-border-r);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--anzali-transition);
    z-index: 300;
}
.primary-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu .sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--anzali-text);
    font-size: 13.5px;
    border-bottom: 1px solid var(--anzali-gray-100);
    transition: all var(--anzali-transition);
}
.primary-menu .sub-menu li a:hover { background: var(--anzali-gray-100); color: var(--anzali-primary); padding-right: 22px; }

/* دکمه موبایل */
.mobile-menu-toggle {
    display: none;
    align-items: center; gap: 6px;
    color: #fff; padding: 0 16px; height: 46px;
    font-size: 14px;
}
.mobile-menu-toggle svg { width: 20px; height: 20px; }

/* =========================================
   اسلایدر
   ========================================= */
.anzali-slider-section { background: var(--anzali-secondary); padding: 8px; border-radius: var(--anzali-border-r); }
.slider-main {
    position: relative;
    border-radius: calc(var(--anzali-border-r) - 4px);
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.slider-track { display: flex; transition: transform .5s ease; }
.slider-slide { min-width: 100%; position: relative; aspect-ratio: 16/10.35; }
.slider-slide .slide-image { position: absolute; inset: 0; }
.slider-slide .slide-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-content {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 55%, transparent 100%);
    padding: 46px 26px 22px;
    color: #fff;
}
.slide-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.slide-cat {
    display: inline-block;
    background: var(--anzali-primary);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .2px;
    padding: 4px 12px;
    border-radius: 999px;
}
.slide-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,.78);
    font-weight: 500;
}
.slide-date svg { width: 13px; height: 13px; opacity: .85; }
.slide-title { font-size: clamp(16px, 2.3vw, 24px); font-weight: 800; line-height: 1.5; letter-spacing: -.2px; }
.slide-title a { color: #fff; }

/* دکمه‌های اسلایدر */
.slider-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--anzali-transition);
    z-index: 10;
}
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover { background: var(--anzali-primary); }
.slider-prev { right: 12px; }
.slider-next { left: 12px; }

/* نقاط اسلایدر */
.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all var(--anzali-transition); cursor: pointer; }
.slider-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* =========================================
   صفحه اصلی
   ========================================= */

/* =========================================
   بخش‌های خبری صفحه اصلی - hp-section
   مدل: تیتر بولد راست + چکیده + تصویر مستطیلی چپ
   ========================================= */

/* کانتینر هر بخش */
.hp-section {
    margin-bottom: 32px;
    background: #fff;
    border-radius: var(--anzali-border-r);
    box-shadow: var(--anzali-shadow-sm);
    overflow: hidden;
}

/* هدر بخش: خط قرمز بالا + عنوان */
.hp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--anzali-gray-100);
    position: relative;
}
/* خط قرمز بالای هدر */
.hp-section-header::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: var(--anzali-primary);
}
.hp-section-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--anzali-secondary);
    padding: 14px 0 11px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* خط قرمز کوتاه کنار عنوان */
.hp-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--anzali-primary);
    border-radius: 2px;
    flex-shrink: 0;
}
.hp-section-more {
    font-size: 12px;
    color: var(--anzali-gray-600);
    white-space: nowrap;
    transition: color var(--anzali-transition);
}
.hp-section-more:hover { color: var(--anzali-primary); }

/* لیست اخبار داخل بخش */
.hp-news-list { }

/* هر آیتم خبری */
.hp-news-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--anzali-gray-100);
    transition: background var(--anzali-transition);
    position: relative;
}
.hp-news-item:last-child { border-bottom: none; }
.hp-news-item:hover { background: #fafbfc; }

/* متن سمت راست */
.hp-news-text {
    flex: 1;
    min-width: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* برچسب دسته‌بندی */
.hp-news-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--anzali-primary);
    align-self: flex-start;
    line-height: 1;
    transition: color var(--anzali-transition);
}
.hp-news-cat:hover { color: var(--anzali-accent); }

/* تیتر خبر - بولد بزرگ */
.hp-news-title {
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.6;
    color: var(--anzali-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-news-title a { color: inherit; }
.hp-news-title a:hover { color: var(--anzali-primary); }

/* چکیده ۳۵ کلمه */
.hp-news-excerpt {
    font-size: 12.5px;
    color: var(--anzali-gray-600);
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* تاریخ + بازدید */
.hp-news-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--anzali-gray-500, #adb5bd);
    margin-top: 2px;
}
.hp-news-meta svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--anzali-gray-400); }

/* تصویر مستطیلی سمت چپ - نسبت 4/3 ثابت */
.hp-news-thumb {
    flex-shrink: 0;
    width: 150px;
    height: 110px;
    border-radius: 5px;
    overflow: hidden;
    display: block;
    position: relative;
    background: var(--anzali-gray-100);
}
.hp-news-thumb img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform .38s ease;
    display: block;
}
.hp-news-item:hover .hp-news-thumb img { transform: scale(1.06); }

/* پست بدون تصویر */
.hp-news-no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef, #f4f6f8);
    color: #ced4da;
}
.hp-news-no-img svg { width: 28px; height: 28px; }

/* =========================================
   عنوان بخش (استفاده در پست‌های مرتبط)
   ========================================= */
.section-title { font-size: 17px; font-weight: 800; color: var(--anzali-secondary); position: relative; padding-right: 14px; }
.section-title::before { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: var(--anzali-primary); border-radius: 2px; }

/* =========================================
   کارت لیستی (آرشیو)
   ========================================= */
.post-card {
    background: #fff;
    border-radius: var(--anzali-border-r);
    overflow: hidden;
    box-shadow: var(--anzali-shadow-sm);
    transition: box-shadow var(--anzali-transition), transform var(--anzali-transition);
}
.post-card:hover { box-shadow: var(--anzali-shadow-md); transform: translateY(-2px); }

/* ویجت placeholder برای ادمین */
.widget-placeholder {
    background: #fff8e1;
    border: 2px dashed #f0c040;
    border-radius: var(--anzali-border-r);
    padding: 16px 20px;
    font-size: 13px;
    color: #7a6000;
    text-align: center;
}
.widget-placeholder a { color: var(--anzali-primary); font-weight: 700; }

/* =========================================
   ناحیه ویجت صفحه اصلی
   ========================================= */
.homepage-widget-area {
    margin-bottom: 28px;
}

/* =========================================
   پست منفرد
   ========================================= */
.single-post-page, .single-video-page { padding-block: 24px; }
.single-content-wrap { display: grid; gap: 24px; }
.single-content-wrap.no-sidebar { grid-template-columns: 1fr; }

/* مسیر صفحه */
.breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    font-size: 12.5px; color: var(--anzali-gray-600); margin-bottom: 16px;
    background: #fff;
    border-radius: var(--anzali-border-r);
    padding: 12px 16px;
    box-shadow: var(--anzali-shadow-sm);
}
.breadcrumb a { color: var(--anzali-gray-600); }
.breadcrumb a:hover { color: var(--anzali-primary); }
.breadcrumb-sep { opacity: .4; }
.breadcrumb-current { color: var(--anzali-text); font-weight: 600; }

/* لینک کوتاه */
.single-shortlink {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--anzali-gray-200);
    border-radius: var(--anzali-border-r);
    padding: 12px 16px;
    margin: 24px 0;
}
.shortlink-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 700; color: var(--anzali-text);
    flex-shrink: 0;
}
.shortlink-label svg { width: 16px; height: 16px; }

/* اینپوت + دکمه همیشه با هم در یک بسته، تا هیچ‌وقت از هم جدا نیفتند */
.shortlink-field-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}
.shortlink-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--anzali-gray-200);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--anzali-gray-600);
    background: var(--anzali-gray-50, #f7f7f7);
    direction: ltr;
    text-align: left;
}
.shortlink-copy-btn {
    display: flex; align-items: center; gap: 6px;
    background: var(--anzali-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--anzali-transition);
}
.shortlink-copy-btn svg { width: 15px; height: 15px; }
.shortlink-copy-btn:hover { background: var(--anzali-primary-dark, #a52d20); }
.shortlink-copy-btn.copied { background: #27ae60; }

/* موبایل: برچسب در ردیف جدا (تمام‌عرض)، اینپوت+دکمه همیشه با هم کنار هم در ردیف بعدی */
@media (max-width: 480px) {
    .single-shortlink { flex-direction: column; align-items: stretch; }
    .shortlink-field-group { width: 100%; }
}

/* مقاله اصلی */
.single-article { background: #fff; border-radius: var(--anzali-border-r); padding: 24px; box-shadow: var(--anzali-shadow-sm); }

/* دسته‌بندی‌ها */
.single-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cat-badge {
    display: inline-block;
    background: var(--anzali-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    line-height: 1.6;
}
.cat-badge:hover { background: var(--anzali-secondary); color: #fff; }

/* ستون مشترک: تصویر شاخص + دسته‌بندی زیرش */
.single-featured-col { display: flex; flex-direction: column; }
.single-featured-col .single-cats { margin-top: 12px; margin-bottom: 0; }

/* دسته‌بندی روی تصویر شاخص — پایین تصویر، با گرادیان برای خوانایی */
.single-cats-on-image {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    z-index: 5;
    margin: 0 !important;
    padding: 26px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
}
.single-cats-on-image .cat-badge {
    background: rgba(255,255,255,.94);
    color: var(--anzali-secondary);
    box-shadow: var(--anzali-shadow-sm);
}
.single-cats-on-image .cat-badge:hover { background: #fff; color: var(--anzali-primary); }

/* بسته مشترک تصویر شاخص + چکیده (پیش‌فرض: تصویر بالا، چکیده پایین) */
.single-media-lead { display: flex; flex-direction: column; gap: 20px; }

/* دسکتاپ: تصویر شاخص کوچک سمت چپ + چکیده کنارش سمت راست (حالت خبری) — موبایل دست‌نخورده */
@media (min-width: 901px) {
    .single-media-lead {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
    .single-media-lead .single-excerpt {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
        margin-top: 0;
    }
    .single-media-lead .single-featured-col {
        order: 2;
        flex: 0 0 38%;
        max-width: 38%;
    }
}

/* عنوان */
.single-title { font-size: clamp(20px, 3vw, 28px); font-weight: 900; line-height: 1.4; color: var(--anzali-secondary); margin-bottom: 16px; }

/* متا */
.single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-block: 14px; border-block: 1px solid var(--anzali-gray-200); margin-bottom: 20px; }
.meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--anzali-gray-600); }
.meta-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.meta-item a { color: var(--anzali-gray-600); }
.meta-item a:hover { color: var(--anzali-primary); }

/* تصویر شاخص */
.single-featured-image { position: relative; margin-bottom: 0; border-radius: var(--anzali-border-r); overflow: hidden; }
.single-featured-image img { width: 100%; height: auto; max-height: 480px; object-fit: cover; }
.image-caption { font-size: 12.5px; color: var(--anzali-gray-600); text-align: center; padding: 8px; background: var(--anzali-gray-100); }

/* چکیده */
.single-excerpt { font-size: 15px; font-weight: 700; color: var(--anzali-secondary); border-right: 4px solid var(--anzali-primary); padding-right: 14px; margin-bottom: 20px; line-height: 1.7; }

/* =========================================
   قالب اختصاصی پست ویدیویی
   ========================================= */
.single-video-player {
    position: relative;
    margin-bottom: 20px;
    border-radius: var(--anzali-border-r);
    overflow: hidden;
    background: #000;
}
.single-video-player iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}
.single-video-fallback { position: relative; }
.single-video-fallback img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.video-fallback-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,.65);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background var(--anzali-transition);
}
.video-fallback-play svg { width: 18px; height: 18px; }
.video-fallback-play:hover { background: var(--anzali-primary); }
.single-video-external-link {
    display: flex; align-items: center; gap: 6px;
    justify-content: center;
    background: var(--anzali-gray-50, #f7f7f7);
    color: var(--anzali-text);
    font-size: 13px;
    font-weight: 700;
    padding: 10px;
    text-decoration: none;
    border-top: 1px solid var(--anzali-gray-200);
}
.single-video-external-link svg { width: 15px; height: 15px; }
.single-video-external-link:hover { color: var(--anzali-primary); }

/* تصویر شاخص با ابعاد اصلی در انتهای متن خبر (بدون کراپ، لینک‌دار) */
.single-content-featured-full { margin: 24px 0; text-align: center; }
.single-content-featured-full a { display: inline-block; line-height: 0; }
.full-size-image {
    width: auto;
    max-width: 40%; /* ۶۰٪ کوچکتر از حالت قبلی (100%) بدون کراپ شدن تصویر */
    height: auto;
    border-radius: var(--anzali-border-r);
    cursor: zoom-in;
    transition: opacity .2s ease;
}
.full-size-image:hover { opacity: .92; }
.single-content-featured-full .image-caption {
    font-size: 12.5px; color: var(--anzali-gray-600);
    text-align: center; padding-top: 8px;
}

/* شمارنده بازدید انتهای پست (بعد از تصویر) */
.single-content-views {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 13px; color: var(--anzali-gray-600);
    margin-bottom: 10px;
}
.single-content-views svg { width: 15px; height: 15px; }

/* محتوا */
.single-content { font-size: 15px; line-height: 1.9; color: var(--anzali-text); }
.single-content h2, .single-content h3, .single-content h4 { margin-block: 20px 10px; color: var(--anzali-secondary); font-weight: 800; }
.single-content h2 { font-size: 20px; }
.single-content h3 { font-size: 17px; }
.single-content p { margin-bottom: 16px; }
.single-content ul, .single-content ol { padding-right: 20px; margin-bottom: 16px; list-style: initial; }
.single-content ol { list-style: decimal; }
.single-content li { margin-bottom: 6px; }
.single-content blockquote { border-right: 4px solid var(--anzali-primary); padding: 12px 20px; margin: 20px 0; background: var(--anzali-gray-100); color: var(--anzali-gray-800); font-style: italic; border-radius: 0 var(--anzali-border-r) var(--anzali-border-r) 0; }
.single-content img { border-radius: var(--anzali-border-r); margin-block: 16px; }
.single-content hr {
    border: none !important;
    border-top: 1px solid var(--anzali-gray-200) !important;
    background: none !important;
    height: 0 !important;
    color: transparent !important;
    margin: 28px 0 !important;
}
.single-content a { color: var(--anzali-primary); text-decoration: underline; }
.single-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.single-content table th, .single-content table td { border: 1px solid var(--anzali-gray-200); padding: 10px; }
.single-content table th { background: var(--anzali-secondary); color: #fff; }
.single-content pre { background: var(--anzali-gray-800); color: #ecf0f1; padding: 16px; border-radius: var(--anzali-border-r); overflow-x: auto; font-size: 13px; margin-bottom: 16px; }
.single-content code { background: var(--anzali-gray-100); padding: 2px 6px; border-radius: 3px; font-size: 13px; }
.single-content pre code { background: none; padding: 0; }

/* تگ‌ها */
.single-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--anzali-gray-200); }
.single-tags svg { width: 15px; height: 15px; color: var(--anzali-gray-600); }
.tags-label { font-size: 13px; color: var(--anzali-gray-600); }
.tag-item { display: inline-block; font-size: 12.5px; background: var(--anzali-gray-100); border: 1px solid var(--anzali-gray-200); color: var(--anzali-text); padding: 3px 10px; border-radius: 20px; transition: all var(--anzali-transition); }
.tag-item:hover { border-color: var(--anzali-primary); background: var(--anzali-primary); color: #fff; }

/* اشتراک‌گذاری */
.anzali-share-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--anzali-gray-200); }
.share-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--anzali-gray-600); font-weight: 600; }
.share-label svg { width: 16px; height: 16px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; color: #fff; font-size: 12.5px; font-weight: 600; transition: opacity var(--anzali-transition); border: none; cursor: pointer; font-family: inherit; }
.share-btn.share-print { background: var(--anzali-gray-600, #555); }

/* موبایل: دکمه‌ها کوچک‌تر و فقط آیکون تا همه در یک خط جا شوند */
@media (max-width: 480px) {
    .anzali-share-buttons { gap: 6px; }
    .share-label span { display: none; }
    .share-btn { padding: 8px; gap: 0; }
    .share-btn span { display: none; }
}
.share-btn svg { width: 15px; height: 15px; }
.share-btn:hover { opacity: .85; color: #fff; }

/* باکس نویسنده */
.single-author-box { display: flex; gap: 16px; background: var(--anzali-gray-100); border-radius: var(--anzali-border-r); padding: 20px; margin-top: 24px; }
.author-avatar img { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; }
.author-name { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.author-name a { color: var(--anzali-secondary); }
.author-bio { font-size: 13.5px; color: var(--anzali-gray-600); line-height: 1.7; }

/* ناوبری */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.nav-prev, .nav-next { background: #fff; border: 1px solid var(--anzali-gray-200); border-radius: var(--anzali-border-r); padding: 14px; }
.nav-next { text-align: left; }
.nav-label { display: block; font-size: 11.5px; color: var(--anzali-gray-600); margin-bottom: 6px; }
.nav-prev a, .nav-next a { font-size: 14px; font-weight: 700; color: var(--anzali-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nav-prev a:hover, .nav-next a:hover { color: var(--anzali-primary); }

/* =========================================
   پست‌های مرتبط
   ========================================= */
.anzali-related-posts { margin-top: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }

/* =========================================
   ویجت‌ها
   ========================================= */
.widget-area { }
.widget { background: #fff; border-radius: var(--anzali-border-r); padding: 18px; box-shadow: var(--anzali-shadow-sm); margin-bottom: 20px; }
.widget-title {
    font-size: 15px; font-weight: 800;
    color: var(--anzali-secondary);
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--anzali-primary);
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px; right: 0;
    width: 40px; height: 2px;
    background: var(--anzali-accent);
}

/* ویجت آخرین پست‌ها */
.anzali-widget-posts { }
.widget-post-item { display: flex; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--anzali-gray-200); }
.widget-post-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.widget-thumb { width: 72px; height: 54px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.widget-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-post-title { display: block; font-size: 13px; font-weight: 700; color: var(--anzali-text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.widget-post-title:hover { color: var(--anzali-primary); }
.widget-post-date { font-size: 11.5px; color: var(--anzali-gray-600); }

/* ویجت دسته‌بندی‌ها */
.anzali-widget-cats li { }
.anzali-widget-cats a { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 4px; color: var(--anzali-text); font-size: 13.5px; transition: all var(--anzali-transition); }
.anzali-widget-cats a:hover { background: var(--anzali-gray-100); color: var(--anzali-primary); }
.cat-count { background: var(--anzali-primary); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }

/* ویجت بنر */
.anzali-banner-widget { text-align: center; }
.anzali-banner-widget img { border-radius: 4px; max-width: 100%; margin: 0 auto; }

/* =========================================
   آرشیو
   ========================================= */
.archive-page { padding-block: 24px; }
.archive-wrap { display: grid; gap: 24px; }
.archive-wrap.no-sidebar { grid-template-columns: 1fr; }
.page-header { background: #fff; border-radius: var(--anzali-border-r); padding: 20px; margin-bottom: 20px; border-right: 5px solid var(--anzali-primary); box-shadow: var(--anzali-shadow-sm); }
.page-title { font-size: 22px; font-weight: 900; color: var(--anzali-secondary); }
.archive-description { font-size: 14px; color: var(--anzali-gray-600); margin-top: 8px; }
.posts-list { }

/* =========================================
   صفحه‌بندی
   ========================================= */
.anzali-pagination { margin-top: 30px; }
.anzali-pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.anzali-pagination li a,
.anzali-pagination li span {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: #fff;
    border: 1px solid var(--anzali-gray-200);
    border-radius: var(--anzali-border-r);
    font-size: 14px;
    color: var(--anzali-text);
    transition: all var(--anzali-transition);
    font-weight: 600;
}
.anzali-pagination li a:hover { background: var(--anzali-primary); border-color: var(--anzali-primary); color: #fff; }
.anzali-pagination li .current { background: var(--anzali-primary); border-color: var(--anzali-primary); color: #fff; }

/* =========================================
   نظرات
   ========================================= */
#comments { margin-top: 32px; }
.comments-title { font-size: 18px; font-weight: 800; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--anzali-primary); }
.anzali-comment { list-style: none; }
.comment-body { display: flex; gap: 14px; background: #fff; border-radius: var(--anzali-border-r); padding: 16px; margin-bottom: 16px; box-shadow: var(--anzali-shadow-sm); }
.comment-avatar img { width: 48px; height: 48px; border-radius: 50%; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-author { font-weight: 700; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--anzali-gray-600); }
.comment-reply-link { font-size: 12px; color: var(--anzali-primary); }
.comment-text { font-size: 14px; line-height: 1.7; }

/* فرم نظر */
.comment-form { background: #fff; border-radius: var(--anzali-border-r); padding: 20px; margin-top: 24px; box-shadow: var(--anzali-shadow-sm); }
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--anzali-gray-200);
    border-radius: var(--anzali-border-r);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--anzali-transition);
    margin-top: 6px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--anzali-primary); }
.comment-form .submit { background: var(--anzali-primary); color: #fff; padding: 10px 28px; border-radius: var(--anzali-border-r); font-size: 14px; font-weight: 700; transition: background var(--anzali-transition); }
.comment-form .submit:hover { background: var(--anzali-secondary); }

/* =========================================
   فوتر
   ========================================= */
.site-footer { background: var(--anzali-footer-bg); color: rgba(255,255,255,.8); }
.footer-widgets { padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-widgets-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-widget-col .widget { background: transparent; box-shadow: none; padding: 0; margin-bottom: 0; }
.footer-widget-col .widget-title { color: #fff; border-color: var(--anzali-primary); }
.footer-widget-col .widget-post-title { color: rgba(255,255,255,.8); }
.footer-widget-col .widget-post-title:hover { color: #fff; }
.footer-widget-col .widget-post-date { color: rgba(255,255,255,.5); }
.footer-widget-col .widget-post-item { border-color: rgba(255,255,255,.1); }
.footer-widget-col .anzali-widget-cats a { color: rgba(255,255,255,.8); }
.footer-widget-col .anzali-widget-cats a:hover { background: rgba(255,255,255,.08); color: #fff; }

.footer-bottom { padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-site-name { font-size: 22px; font-weight: 900; color: #fff; }
.footer-copyright p { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-socials { display: flex; gap: 10px; }
.footer-social-link { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: all var(--anzali-transition); }
.footer-social-link svg { width: 16px; height: 16px; }
.footer-social-link:hover { background: var(--anzali-primary); color: #fff; }

/* =========================================
   ادمین
   ========================================= */
.anzali-admin-wrap { max-width: 1200px; }
.anzali-admin-header { background: #fff; border-radius: 8px; padding: 20px 24px; margin-bottom: 20px; border-right: 5px solid #c0392b; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.anzali-admin-header h1 { font-size: 22px; color: #2c3e50; margin-bottom: 12px; }
.anzali-admin-header h1 small { font-size: 14px; color: #6c757d; font-weight: 400; }
.anzali-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.anzali-tabs a { padding: 7px 16px; background: #f4f6f8; border-radius: 20px; font-size: 13.5px; color: #2c3e50; transition: all .2s; text-decoration: none; }
.anzali-tabs a:hover, .anzali-tabs a.active { background: #c0392b; color: #fff; }
.anzali-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; margin-bottom: 20px; }
.anzali-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.anzali-card h2 { font-size: 16px; margin-bottom: 14px; color: #2c3e50; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; }

/* =========================================
   کلاس‌های کمکی
   ========================================= */
.no-results { background: #fff; border-radius: var(--anzali-border-r); padding: 40px; text-align: center; box-shadow: var(--anzali-shadow-sm); }
.no-results h2 { font-size: 22px; margin-bottom: 12px; }
.homepage-widget-area { margin-bottom: 24px; }

/* =========================================
   ریسپانسیو
   ========================================= */
@media (max-width: 1100px) {
    .footer-widgets-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-news-thumb { width: 130px; height: 100px; }
}

@media (max-width: 768px) {
    :root { --anzali-font-size: 14px; }
    .header-inner { flex-wrap: wrap; gap: 10px; }
    .primary-menu { display: none; flex-direction: column; position: absolute; top: 46px; right: 0; left: 0; background: var(--anzali-secondary); z-index: 300; }
    .primary-menu.open { display: flex; }
    .primary-menu > li > a { height: auto; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
    .primary-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(0,0,0,.2); }
    .mobile-menu-toggle { display: flex; }
    .main-navigation { position: relative; }
    .hp-news-thumb { width: 100px; height: 80px; }
    .hp-news-excerpt { display: none; }
    .post-navigation { grid-template-columns: 1fr; }
    .footer-widgets-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .single-author-box { flex-direction: column; }
}

@media (max-width: 480px) {
    .topbar-menu { display: none; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-widgets-grid { grid-template-columns: 1fr; }
    .hp-news-thumb { width: 80px; height: 68px; }
    .hp-news-item { padding: 10px 12px; gap: 0; }
    .hp-news-text { padding-left: 10px; }
    .hp-news-title { font-size: 13px; }
}

/* =========================================
   حالت Dark (اختیاری - media query)
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    * { transition-duration: .01ms !important; }
}

/* =========================================
   چاپ
   ========================================= */
@media print {
    .anzali-topbar, .site-header, .main-navigation, .widget-area, .site-footer,
    .anzali-share-buttons, .post-navigation, .anzali-related-posts,
    .breadcrumb, .single-meta, .single-cats, .single-shortlink, .single-tags,
    .single-author-box, #comments, .single-video-player, .single-content-views,
    .anzali-breaking-bar, .search-panel, .widget-placeholder { display: none !important; }
    .single-content-wrap, .hp-grid { display: block !important; grid-template-columns: 1fr !important; }
    .single-media-lead { display: block !important; }
    .single-featured-col, .single-excerpt { max-width: 100% !important; flex: none !important; margin-bottom: 16px; }
    .single-featured-image img { max-height: none; }
    body { font-size: 12pt; color: #000; background: #fff; }
    .single-title { font-size: 20pt; }
    a { color: #000 !important; text-decoration: none; }
}

/* =========================================
   موقعیت تصویر خبری
   ========================================= */

/* حالت پیش‌فرض: تصویر سمت چپ (thumb-left) */
.hp-news-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--anzali-gray-100);
    transition: background var(--anzali-transition);
}
.hp-news-item:last-child { border-bottom: none; }
.hp-news-item:hover { background: #fafbfc; }

/* تصویر سمت راست - ابتدای flex (RTL = بصری راست) */
.hp-news-item.thumb-right { flex-direction: row; }
.hp-news-item.thumb-right .hp-news-thumb { order: 0; }
.hp-news-item.thumb-right .hp-news-text  { order: 1; padding-right: 16px; padding-left: 0; }

/* تصویر سمت چپ - انتهای flex (RTL = بصری چپ) */
.hp-news-item.thumb-left { flex-direction: row; }
.hp-news-item.thumb-left .hp-news-thumb { order: 1; }
.hp-news-item.thumb-left .hp-news-text  { order: 0; padding-left: 16px; padding-right: 0; }

/* =========================================
   کارت‌های پست (template-parts/card-*.php)
   استفاده در: آرشیو، جستجو، صفحه اصلی وبلاگی (card-list) —
   پست‌های مرتبط و ویجت‌ها (card-small) — قالب‌های آماده برای
   استفاده آینده (card-standard, card-featured)
   ========================================= */
.post-card {
    background: #fff;
    border-radius: var(--anzali-border-r);
    overflow: hidden;
    box-shadow: var(--anzali-shadow-sm);
    margin-bottom: 20px;
}
.card-body { padding: 16px; }
.card-cat {
    display: inline-block;
    background: var(--anzali-primary);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.card-title { font-size: 17px; font-weight: 800; line-height: 1.5; margin-bottom: 8px; }
.card-title a { color: var(--anzali-text); }
.card-title a:hover { color: var(--anzali-primary); }
.card-excerpt { font-size: 13.5px; color: var(--anzali-gray-600); line-height: 1.7; margin-bottom: 10px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12px; color: var(--anzali-gray-600); }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-meta svg { width: 13px; height: 13px; flex-shrink: 0; }
.read-more-btn { display: inline-block; margin-top: 10px; color: var(--anzali-primary); font-size: 13px; font-weight: 700; }
.read-more-btn:hover { color: var(--anzali-secondary); }

/* کارت لیستی (آرشیو/جستجو/صفحه اصلی وبلاگی): تصویر مربعی ۱:۱ کنار متن */
.card-list { display: flex; gap: 16px; align-items: stretch; }
.card-list .card-thumb {
    flex-shrink: 0;
    width: 240px;
    aspect-ratio: 1 / 1;
    height: auto;
    display: block;
    overflow: hidden;
    border-radius: var(--anzali-border-r);
}
.card-list .card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-list .card-no-image { width: 100%; height: 100%; background: var(--anzali-gray-100); }
.card-list .card-body { flex: 1; min-width: 0; padding: 16px 16px 16px 0; }

/* موبایل: چیدمان عمودی (تصویر تمام‌عرض بالا، متن پایین) به‌جای
   فشرده و نامرتب شدن چیدمان افقی در عرض کم */
@media (max-width: 600px) {
    .card-list { flex-direction: column; gap: 0; }
    .card-list .card-thumb { width: 100%; aspect-ratio: 16/9; border-radius: var(--anzali-border-r) var(--anzali-border-r) 0 0; }
    .card-list .card-body { padding: 14px; }
}

/* کارت کوچک (پست مرتبط / ویجت‌ها): تصویر کوچک مربعی ۱:۱ کنار متن */
.card-small { display: flex; gap: 10px; box-shadow: none; margin-bottom: 14px; background: none; }
.card-small .card-thumb { flex-shrink: 0; width: 90px; aspect-ratio: 1/1; height: auto; border-radius: var(--anzali-border-r); overflow: hidden; }
.card-small .card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-small .card-no-image { width: 100%; height: 100%; background: var(--anzali-gray-100); }
.card-small .card-body { padding: 0; flex: 1; min-width: 0; }
.card-small .card-title { font-size: 13.5px; margin-bottom: 4px; line-height: 1.5; }
.card-small .card-meta { font-size: 11px; gap: 8px; }

/* کارت استاندارد: عمودی، شبکه‌ای */
.card-standard .card-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.card-standard .card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-standard .card-no-image { width: 100%; height: 100%; background: var(--anzali-gray-100); }
.card-standard .card-title { font-size: 15px; }

/* کارت ویژه: بزرگ، تصویر کامل */
.card-featured .card-image-link { display: block; aspect-ratio: 16/9; overflow: hidden; }
.card-featured .card-image-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-featured .card-no-image { width: 100%; height: 100%; background: var(--anzali-gray-100); aspect-ratio: 16/9; }
.card-featured .card-title { font-size: 20px; }

/* پست‌های مرتبط: چیدمان شبکه‌ای عمودی (تصویر مربعی ۱:۱ بالا، متن پایین) */
.anzali-related-posts { margin-top: 30px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.related-grid .post-card { margin-bottom: 0; overflow: visible; }
.related-grid .card-small { display: flex; flex-direction: column; gap: 0; }
.related-grid .card-small .card-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin-bottom: 8px;
    flex-shrink: 0;
}
.related-grid .card-small .card-body { flex: 1; }
.related-grid .card-small .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   بخش رسانه (فیلم و عکس)
   ========================================= */
.media-sections-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
    background: var(--anzali-media-bg, var(--anzali-secondary));
    border-radius: var(--anzali-border-r);
    padding: 26px;
}

/* هدر بخش رسانه */
.media-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding-bottom: 14px;
}
.media-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.2px;
}
.media-icon {
    width: 32px; height: 32px;
    background: var(--anzali-media-accent, var(--anzali-primary));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
.media-archive-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    transition: all var(--anzali-transition);
}
.media-archive-link svg { width: 13px; height: 13px; transform: scaleX(-1); }
.media-archive-link:hover {
    color: #fff;
    background: var(--anzali-media-accent, var(--anzali-primary));
    border-color: transparent;
}

/* گرید فیلم: یک ویدیوی ویژه (بزرگ) + بقیه کوچک — مثل بخش عکس */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
}
.video-featured { grid-column: 1 / -1; }
.video-featured .media-thumb-wrap { aspect-ratio: 16/9; }

/* گرید عکس: یک بزرگ + چهار کوچک */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
}
.photo-featured { grid-column: 1 / -1; }

/* کارت رسانه */
.media-card {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,.04);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    transition: transform var(--anzali-transition), box-shadow var(--anzali-transition);
}
.media-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }

/* تصویر کارت رسانه */
.media-thumb-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0,0,0,.3);
}
.photo-featured .media-thumb-wrap { aspect-ratio: 16/9; }

.media-thumb-wrap img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}
.media-card:hover .media-thumb-wrap img { transform: scale(1.08); }

.media-no-img {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.06);
}

/* آیکون پلیر — همیشه بالای overlay و کاملاً دیده می‌شود */
.media-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--anzali-transition);
    z-index: 2;
    pointer-events: none;
}
.media-card:hover .media-play-icon { transform: scale(1.15); }

/* آیکون گالری روی هر عکس — همیشه بالای overlay */
.media-camera-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,.45);
    border-radius: 50%;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* هارمونی تیتر-تصویر: overlay کوتاه‌تر و ملایم‌تر تا محتوای تصویر
   مختل نشود؛ فقط برای آیتم ویژه (بزرگ) کمی بلندتر است */
.media-card-overlay {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 70%, transparent 100%);
    padding: 20px 10px 8px;
    z-index: 1;
}
.media-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.photo-featured .media-card-overlay,
.video-featured .media-card-overlay { padding: 40px 14px 14px; }
.photo-featured .media-card-title,
.video-featured .media-card-title { font-size: 17px; -webkit-line-clamp: 2; }

/* ریسپانسیو بخش رسانه */
@media (max-width: 900px) {
    .media-sections-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .media-sections-wrap { padding: 16px; gap: 16px; }
    .video-grid { grid-template-columns: 1fr 1fr; }
    .photo-grid { grid-template-columns: 1fr 1fr; }
    .photo-featured { grid-column: 1 / -1; }
}

/* =========================================
   هدر جدید - چیدمان صحیح
   ========================================= */
.site-header {
    background: var(--anzali-header-bg);
    border-bottom: 3px solid var(--anzali-primary);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--anzali-shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-block: 10px;
    flex-wrap: nowrap;
}

/* لوگو */
.site-branding { flex-shrink: 0; }
.custom-logo-link img { display: block; }
.logo-text-only { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.logo-main { font-size: clamp(20px,2.5vw,30px); font-weight: 900; color: var(--anzali-primary); }
.logo-slogan { font-size: 11px; color: var(--anzali-gray-600); margin-top: 2px; }

/* متن برند (کنار لوگو تصویری) */
.header-brand-text {
    display: flex; flex-direction: column;
    border-right: 2px solid var(--anzali-gray-200);
    padding-right: 16px;
    line-height: 1.3;
    flex-shrink: 0;
}
.header-site-name { font-size: 18px; font-weight: 900; color: var(--anzali-primary); text-decoration: none; }
.header-site-name:hover { color: var(--anzali-secondary); }
.header-slogan { font-size: 11px; color: var(--anzali-gray-600); margin-top: 3px; }

/* بنر هدر */
.header-banner { flex-shrink: 0; }
.header-banner a { display: block; }
.header-banner img { border-radius: 4px; }

/* فضاکش */
.header-spacer { flex: 1; }

/* جستجو */
.header-search { flex-shrink: 0; }
.search-toggle {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--anzali-gray-100); border-radius: 50%;
    color: var(--anzali-secondary);
    transition: all var(--anzali-transition);
    border: none; cursor: pointer;
}
.search-toggle svg { width: 18px; height: 18px; }
.search-toggle:hover { background: var(--anzali-primary); color: #fff; }
.search-panel { background: #fff; border-top: 1px solid var(--anzali-gray-200); padding: 12px 0; box-shadow: var(--anzali-shadow-md); }
.search-form { display: flex; gap: 8px; }
.search-input { flex: 1; padding: 10px 14px; border: 2px solid var(--anzali-gray-200); border-radius: var(--anzali-border-r); font-size: 14px; font-family: inherit; transition: border-color var(--anzali-transition); background: var(--anzali-gray-100); }
.search-input:focus { outline: none; border-color: var(--anzali-primary); background: #fff; }
.search-submit { padding: 10px 20px; background: var(--anzali-primary); color: #fff; border-radius: var(--anzali-border-r); display: flex; align-items: center; gap: 6px; font-size: 14px; transition: background var(--anzali-transition); border: none; cursor: pointer; }
.search-submit svg { width: 16px; height: 16px; }
.search-submit:hover { background: var(--anzali-secondary); }

/* =========================================
   نوار بالایی - تیکر
   ========================================= */
.anzali-topbar { background: var(--anzali-topbar-bg); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 12px; }
.topbar-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-date { font-size: 12px; color: rgba(255,255,255,.8); white-space: nowrap; }
.topbar-divider { color: rgba(255,255,255,.3); font-size: 14px; }
.topbar-social { color: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; transition: all var(--anzali-transition); }
.topbar-social svg { width: 13px; height: 13px; }
.topbar-social:hover { color: #fff; background: rgba(255,255,255,.15); }

@media (max-width: 900px) {
}

/* ویجت: تیترهای کوچک */
.anzali-compact-headlines ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--anzali-ch-gap, 10px);
}
.anzali-compact-headlines li { line-height: 1.5; }
.anzali-compact-headlines a {
    color: var(--anzali-text);
    text-decoration: none;
    display: block;
    transition: color var(--anzali-transition);
}
.anzali-compact-headlines a:hover { color: var(--anzali-primary); }
.anzali-compact-headlines::-webkit-scrollbar { width: 6px; }
.anzali-compact-headlines::-webkit-scrollbar-thumb { background: var(--anzali-gray-200); border-radius: 3px; }

/* =========================================
   منوی منتقل‌شده به نوار بالا (topbar)
   ========================================= */
.anzali-topbar { position: relative; }

/* دسکتاپ: منو به‌صورت افقی و کوچک، هماهنگ با ارتفاع نوار نازک قرمز */
.anzali-topbar .primary-menu.topbar-menu { display: flex; align-items: stretch; }
.anzali-topbar .primary-menu.topbar-menu > li > a {
    height: auto;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    border-left: 1px solid rgba(255,255,255,.2);
}
.anzali-topbar .primary-menu.topbar-menu > li:last-child > a { border-left: none; }
.anzali-topbar .primary-menu.topbar-menu > li > a::after { display: none; } /* زیرخط انیمیشنی نوار تیره لازم نیست */
.anzali-topbar .primary-menu.topbar-menu > li > a:hover,
.anzali-topbar .primary-menu.topbar-menu > li.current-menu-item > a { color: #fff; background: rgba(255,255,255,.1); }

/* دکمه موبایل داخل نوار نازک: سایز کوچک‌تر متناسب */
.anzali-topbar .mobile-menu-toggle { height: auto; padding: 6px 10px; font-size: 13px; }
.anzali-topbar .mobile-menu-toggle svg { width: 16px; height: 16px; }

/* موبایل: منوی افقی پنهان، فقط دکمه + منوی کشویی */
@media (max-width: 900px) {
    .anzali-topbar .primary-menu.topbar-menu { display: none; }
    .anzali-topbar .primary-menu.topbar-menu.open { display: flex !important; }
    /* دراپ‌داون موبایل حالا نسبت به topbar (نه نوار قدیمی) موقعیت می‌گیرد */
    .anzali-topbar .primary-menu {
        position: absolute;
        top: 100%;
        right: 0; left: 0;
    }
}

/* نوار تیکر خبر فوری (وقتی از نوار منو جدا و مستقل شده) */
.anzali-breaking-bar { background: var(--anzali-menu-bg, #2c3e50); }
.anzali-breaking-bar .nav-ticker-wrap {
    margin-right: 0;
    border-right: none;
    padding-right: 0;
    padding-block: 6px;
}
