/*
Theme Name: Nokhbegan
Theme URI:
Author: Nokhbegan
Description: قالب اختصاصی پایگاه خبری نخبگان فرهنگ و هنر ایران
Version: 1.0
Text Domain: nokhbegan
*/

/* =========================
   تنظیمات عمومی
========================= */

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
}

body {
    margin: 0;
    padding: 0;

    background: #ffffff;
    color: #222;

    font-family: Tahoma, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

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


/* =========================
   هدر
========================= */

.site-header {
    width: 100%;
    background: #fff;
}


/* نوار آبی بالای سایت */

.header-top-line {
    width: 100%;
    height: 5px;
    background: #06356f;
}


/* =========================
   اطلاعات بالای سایت
========================= */

.top-info {
    width: 100%;
    max-width: 1150px;

    margin: 0 auto;
    padding: 10px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 13px;
    color: #555;

    direction: rtl;
}


/* =========================
   هدر اصلی
========================= */

.main-header {
    width: 100%;
    max-width: 1150px;

    min-height: 125px;

    margin: 0 auto;
    padding: 18px 20px;

    display: flex;
    flex-direction: row;

    align-items: center;

    gap: 25px;

    direction: rtl;
}


/* =========================
   لوگو
========================= */

.site-branding {
    flex: 0 0 190px;

    width: 190px;

    text-align: right;
}

.site-branding img {
    display: block;

    max-width: 180px;
    max-height: 90px;

    width: auto;
    height: auto;
}


/* =========================
   عنوان سایت
========================= */

.site-title-area {
    flex: 1 1 auto;

    min-width: 0;

    text-align: center;

    direction: rtl;
}

.site-title-area h1 {
    display: block;

    margin: 0;
    padding: 0;

    color: #06356f;

    font-size: 25px;
    font-weight: 700;

    line-height: 1.7;

    white-space: nowrap;
}

.site-title-area p {
    margin: 5px 0 0;

    color: #777;

    font-size: 13px;

    line-height: 1.8;
}


/* =========================
   جستجو
========================= */

.header-search {
    flex: 0 0 190px;

    width: 190px;
    max-width: 190px;

    margin: 0;

    direction: rtl;
}

.header-search form {
    position: relative;

    width: 100%;
    height: 42px;

    margin: 0;
    padding: 0;
}


/* کادر جستجو */

.header-search input[type="search"] {
    display: block;

    width: 100%;
    height: 42px;

    margin: 0;
    padding: 0 18px;

    border: 1px solid #d5dbe3;
    border-radius: 25px;

    background: #f5f7fa;

    color: #333;

    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;

    outline: none;

    box-shadow: none;

    direction: rtl;
}

.header-search input[type="search"]::placeholder {
    color: #888;
}

.header-search input[type="search"]:focus {
    background: #fff;

    border-color: #06356f;
}


/* دکمه جستجو */

.header-search button {
    display: flex;

    position: absolute;

    top: 3px;
    left: 4px;
    right: auto;

    width: 32px;
    height: 32px;

    margin: 0;
    padding: 0;

    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #06356f;
    color: #fff;

    font-size: 14px;

    cursor: pointer;
}

.header-search button:hover {
    background: #052b59;
}


/* =========================
   منوی بالایی
========================= */

.top-navigation {
    width: 100%;

    background: #fff;

    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.navigation-inner {
    width: 100%;
    max-width: 1150px;

    margin: 0 auto;
    padding: 0 20px;

    direction: rtl;
}


/* لیست منوی بالا */

.top-navigation ul {
    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: nowrap;
}

.top-navigation li {
    position: relative;

    margin: 0;
}

.top-navigation a {
    display: block;

    padding: 12px 20px;

    color: #333;

    font-size: 14px;

    white-space: nowrap;

    transition: 0.2s;
}

.top-navigation a:hover {
    color: #06356f;
}


/* =========================
   منوی اصلی
========================= */

.main-navigation {
    width: 100%;

    background: #06356f;

    overflow: visible;
}

.main-navigation > .navigation-inner {
    overflow: visible;
}


/* لیست منوی اصلی */

.main-navigation > .navigation-inner > ul {
    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: nowrap;

    direction: rtl;
}

.main-navigation > .navigation-inner > ul > li {
    position: relative;

    flex: 0 0 auto;
}

.main-navigation > .navigation-inner > ul > li > a {
    display: block;

    padding: 13px 18px;

    color: #fff;

    font-size: 14px;

    white-space: nowrap;

    transition: 0.2s;
}

.main-navigation > .navigation-inner > ul > li > a:hover {
    background: rgba(255, 255, 255, 0.12);
}


/* =========================
   زیرمنوی هفت هنر
========================= */

.main-navigation ul ul {
    position: absolute;

    top: 100%;
    right: 0;

    width: 220px;
    min-width: 220px;

    margin: 0;
    padding: 0;

    display: none;

    list-style: none;

    background: #fff;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);

    z-index: 9999;

    direction: rtl;
}


/* نمایش زیرمنو */

.main-navigation li:hover > ul {
    display: block;
}


/* آیتم‌های زیرمنو */

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    display: block;

    width: 100%;

    padding: 11px 15px;

    background: #fff;
    color: #333;

    border-bottom: 1px solid #eee;

    text-align: right;

    font-size: 13px;

    white-space: nowrap;
}

.main-navigation ul ul a:hover {
    background: #f5f8fb;

    color: #06356f;
}


/* =========================
   محتوای فعلی صفحه
========================= */

.site-main {
    min-height: 500px;

    padding: 60px 20px;
}

.container {
    width: 100%;
    max-width: 1150px;

    margin: 0 auto;
}

.welcome-section {
    padding: 80px 20px;

    text-align: center;
}

.welcome-section h1 {
    margin: 0 0 20px;

    color: #06356f;

    font-size: 32px;
}

.welcome-section p {
    margin: 10px 0;

    color: #666;

    font-size: 16px;

    line-height: 2;
}


/* =========================
   نسخه موبایل
========================= */

@media (max-width: 900px) {

    .main-header {
        flex-wrap: wrap;

        justify-content: center;
    }

    .site-branding {
        flex: 0 0 180px;

        width: 180px;

        text-align: center;
    }

    .site-branding img {
        margin: 0 auto;
    }

    .site-title-area {
        flex: 1 1 300px;
    }

    .site-title-area h1 {
        font-size: 22px;
    }

    .header-search {
        flex: 0 0 220px;

        width: 220px;
    }

    .top-navigation ul,
    .main-navigation > .navigation-inner > ul {
        flex-wrap: wrap;
    }

}


/* =========================
   موبایل کوچک
========================= */

@media (max-width: 600px) {

    .top-info {
        justify-content: center;

        text-align: center;
    }

    .top-info > div:first-child {
        display: none;
    }

    .main-header {
        flex-direction: column;

        padding: 20px 15px;

        gap: 15px;
    }

    .site-branding {
        width: 180px;
    }

    .site-title-area {
        width: 100%;
    }

    .site-title-area h1 {
        font-size: 20px;

        white-space: normal;
    }

    .header-search {
        width: 100%;
        max-width: 300px;
    }

    .header-search form {
        width: 100%;
    }

    .top-navigation ul,
    .main-navigation > .navigation-inner > ul {
        flex-wrap: wrap;

        justify-content: center;
    }

    .top-navigation a,
    .main-navigation > .navigation-inner > ul > li > a {
        padding: 10px 12px;

        font-size: 13px;
    }

    /* زیرمنو در موبایل */

    .main-navigation ul ul {
        position: static;

        width: 100%;
        min-width: 100%;

        box-shadow: none;
    }

    .main-navigation li:hover > ul {
        display: block;
    }

}/* =========================
   صفحه اصلی - آخرین اخبار
========================= */

.home-intro {
    text-align: center;
    margin-bottom: 35px;
}

.home-intro h1 {
    margin: 0 0 8px;
    color: #06356f;
    font-size: 28px;
}

.home-intro p {
    margin: 0;
    color: #777;
    font-size: 14px;
}


/* شبکه اخبار */

.latest-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
/* =========================
   ردیف‌بندی آخرین اخبار
========================= */

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* کارت خبر */

.news-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.2s;
}

.news-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}


/* تصویر خبر */

.news-image {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #f3f5f7;
}

.news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* محتوای خبر */

.news-content {
    padding: 18px;
}

.news-content h2 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.8;
}

.news-content h2 a {
    color: #06356f;
}

.news-content h2 a:hover {
    color: #078f9d;
}


/* تاریخ */

.news-date {
    margin-bottom: 10px;
    color: #999;
    font-size: 12px;
}


/* خلاصه خبر */

.news-content p {
    margin: 0 0 15px;
    color: #666;
    font-size: 13px;
    line-height: 2;
}


/* ادامه خبر */

.read-more {
    display: inline-block;
    color: #06356f;
    font-size: 13px;
    font-weight: bold;
}

.read-more:hover {
    color: #078f9d;
}


/* =========================
   پیام نبودن خبر
========================= */

.no-news {
    padding: 50px 20px;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
}

.no-news h2 {
    margin: 0 0 10px;
    color: #06356f;
    font-size: 22px;
}

.no-news p {
    margin: 0;
    color: #777;
    font-size: 14px;
}


/* =========================
   صفحه دسته‌بندی اخبار
========================= */

.archive-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #06356f;
}

.archive-header h1 {
    margin: 0;
    color: #06356f;
    font-size: 26px;
}

.archive-description {
    margin-top: 10px;
    color: #777;
    font-size: 14px;
}


/* لیست اخبار دسته */

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* صفحه‌بندی */

.pagination {
    margin-top: 35px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
}

.pagination .current {
    background: #06356f;
    color: #fff;
    border-color: #06356f;
}


/* =========================
   موبایل
========================= */

@media (max-width: 900px) {

    .latest-news,
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .site-main {
        padding: 35px 15px;
    }

    .latest-news,
    .news-list {
        grid-template-columns: 1fr;
    }

    .home-intro h1 {
        font-size: 24px;
    }

    .news-image {
        height: 200px;
    }

}/* =========================
   هدر جمع‌وجور - صفحه اصلی
========================= */

.top-info {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 12px;
}

.main-header {
    min-height: 95px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 18px;
}

.site-branding {
    flex-basis: 160px;
    width: 160px;
}

.site-branding img {
    max-width: 150px;
    max-height: 70px;
}

.site-title-area h1 {
    font-size: 22px;
    line-height: 1.5;
}

.site-title-area p {
    margin-top: 2px;
    font-size: 12px;
}

.header-search {
    flex-basis: 175px;
    width: 175px;
    max-width: 175px;
}

.header-search form,
.header-search input[type="search"] {
    height: 38px;
}

.header-search button {
    top: 3px;
    right: 3px;
    width: 32px;
    height: 32px;
}


/* =========================
   منوی بالایی - جمع‌وجور
========================= */

.top-navigation a {
    padding: 9px 16px;
    font-size: 13px;
}


/* =========================
   منوی اصلی - جمع‌وجور
========================= */

.main-navigation > .navigation-inner > ul > li > a {
    padding: 11px 15px;
    font-size: 13px;
}


/* =========================
   نوار خبر فوری
========================= */

.breaking-news {
    width: 100%;
    min-height: 42px;

    margin: 0 0 25px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-right: 4px solid #c62828;

    background: #fdf4f4;
}


/* عنوان خبر فوری */

.breaking-title {
    flex: 0 0 105px;

    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #c62828;
    color: #fff;

    font-size: 13px;
    font-weight: bold;

    white-space: nowrap;
}


/* محدوده حرکت خبرها */

.breaking-content {
    flex: 1;

    height: 42px;

    display: flex;
    align-items: center;

    gap: 55px;

    padding: 0 20px;

    overflow: hidden;

    white-space: nowrap;

    direction: rtl;
}

.breaking-content a {
    flex: 0 0 auto;

    color: #333;

    font-size: 13px;
}

.breaking-content a:hover {
    color: #c62828;
}


/* =========================
   خط سه رنگ ظریف ایرانی
========================= */

.breaking-news::after {
    content: "";

    position: absolute;

    width: 0;
    height: 0;
}


/* =========================
   موبایل
========================= */

@media (max-width: 900px) {

    .main-header {
        min-height: 90px;
    }

    .site-title-area h1 {
        font-size: 20px;
    }

    .top-navigation a {
        padding: 8px 12px;
    }

    .main-navigation > .navigation-inner > ul > li > a {
        padding: 9px 11px;
    }

}


@media (max-width: 600px) {

    .main-header {
        min-height: auto;
    }

    .breaking-news {
        margin-bottom: 20px;
    }

    .breaking-title {
        flex-basis: 85px;
        font-size: 12px;
    }

    .breaking-content {
        padding: 0 12px;
        gap: 35px;
    }

    .breaking-content a {
        font-size: 12px;
    }

}/* =========================
   فاصله صفحه اصلی از هدر
========================= */

.home-page {
    padding-top: 10px;
}/* تنظیم محل آیکون جستجو */

.header-search button {
    left: 4px;
    right: auto;
}

.header-search input[type="search"] {
    padding-right: 18px;
    padding-left: 48px;
}/* =========================
   بخش بالای صفحه
========================= */

.home-featured-area {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    gap: 20px;
    margin-bottom: 35px;
    align-items: stretch;
}

.home-featured-area > div {
    height: 430px;
    box-sizing: border-box;
}

.featured-special,
.featured-latest,
.latest-news-ticker {
    min-width: 0;
}

.section-heading {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #06356f;
}

.section-heading h2 {
    margin: 0;
    color: #06356f;
    font-size: 19px;
    font-weight: bold;
}


/* تصاویر بخش ویژه */

.featured-special-slider,
.latest-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.featured-slide {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-slide:first-child,
.latest-slide:first-child {
    display: block;
}

.featured-slide img,
.latest-slide img {
    display: block;
    width: 100%;
    height: 235px;
    object-fit: cover;
}
.special-hot-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 16px;
    line-height: 1.9;
    text-align: right;
    z-index: 2;
}
.featured-slide h3,
.latest-slide-content {
    padding: 12px 15px;
}

.featured-slide h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
}

.featured-slide h3 a,
.latest-slide-content h3 a {
    color: #06356f;
}

.latest-slide-content h3 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.8;
}

.latest-slide-content p {
    margin: 8px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.9;
}


/* فهرست جدیدترین خبرها */

.latest-news-ticker {
    overflow: hidden;
}

.news-ticker-list {
    height: 330px;
    overflow: hidden;
	border: 1px solid #e5e5e5;
    background: #fff;
    padding: 0 15px;
}

.news-ticker-list .ticker-item {
    min-height: 58px;
    max-height: 58px;
    overflow: hidden;
    box-sizing: border-box;
}

.news-ticker-list .ticker-item a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticker-item {
    padding: 13px 0;
    border-bottom: 1px solid #eee;
}

.ticker-item:last-child {
    border-bottom: none;
}

.ticker-date {
    margin-bottom: 4px;
    color: #999;
    font-size: 11px;
}

.ticker-item h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
}

.ticker-item h3 a:hover {
    color: #c62828;
}


/* موبایل */

@media (max-width: 900px) {

    .home-featured-area {
        grid-template-columns: 1fr 1fr;
    }

    .latest-news-ticker {
        grid-column: 1 / -1;
    }

}

@media (max-width: 600px) {

    .home-featured-area {
        grid-template-columns: 1fr;
    }

    .latest-news-ticker {
        grid-column: auto;
    }

}/* =========================
   کارت موضوعات ویژه
========================= */

.featured-special-slider {
    position: relative;
    min-height: 300px;
}

.featured-slide {
    position: relative;
}

.featured-slide:first-child {
    display: block;
}

.featured-slide h3 {
    background: #fff;
    padding: 14px 16px;
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    border-top: 3px solid #c62828;
}

.featured-slide h3 a:hover {
    color: #c62828;
}

.featured-slide img {
    width: 100%;
    height: 390px;
    object-fit: cover;
}/* =========================
   ترتیب سه ستون بالای صفحه
========================= */

.home-featured-area {
    direction: ltr;
}

.featured-special,
.featured-latest,
.latest-news-ticker {
    direction: rtl;
}

/* =========================
   خبر فوری - حرکت پیوسته
========================= */

.breaking-content {
    flex: 1;
    height: 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    direction: ltr;
    position: relative;
}

.breaking-track {
    display: flex;
    align-items: center;
    width: max-content;
    flex-shrink: 0;
    animation: breakingMove 35s linear infinite;
}

.breaking-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 55px;
    padding-right: 55px;
}

.breaking-group a {
    flex: 0 0 auto;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.breaking-group a:hover {
    color: #c62828;
}

@keyframes breakingMove {

    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }

}

.breaking-content:hover .breaking-track {
    animation-play-state: paused;
}/* =========================
   تاریخ و ساعت زیر جستجو
========================= */

.header-live-date {
    margin-top: 6px;
    text-align: center;
    direction: rtl;
    font-size: 10px;
    line-height: 1.6;
    color: #666;
}

.live-persian-date {
    font-size: 11px;
    font-weight: 600;
    direction: rtl;
    unicode-bidi: isolate;
}

.live-gregorian-date,
.live-hijri-date {
    font-size: 9px;
    direction: rtl;
}

.live-clock {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    direction: ltr;
}/* ==================================================
   هدر موبایل - تنظیم نهایی فاصله‌ها
================================================== */

@media (max-width: 600px) {

    .main-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 2px 10px 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .site-branding {
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        line-height: 0 !important;
    }

    .site-branding img {
        display: block !important;
        width: auto !important;
        max-width: 100px !important;
        max-height: 48px !important;
        margin: 0 auto !important;
    }

    .site-title-area {
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .site-title-area h1 {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 17px !important;
        line-height: 1.15 !important;
    }

    .site-title-area p {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 9px !important;
        line-height: 1.15 !important;
    }

    .header-search {
        width: 100% !important;
        max-width: 300px !important;
        flex: none !important;
        margin: 2px auto 0 !important;
        padding: 0 !important;
    }

    .header-search form {
        width: 100% !important;
        height: 32px !important;
        margin: 0 !important;
    }

    .header-search input[type="search"] {
        width: 100% !important;
        height: 32px !important;
    }

    .header-live-date {
        margin: 1px 0 0 !important;
        padding: 0 !important;
        font-size: 7px !important;
        line-height: 1.1 !important;
    }

    .live-persian-date {
        font-size: 8px !important;
        line-height: 1.1 !important;
    }

    .live-gregorian-date,
    .live-hijri-date {
        font-size: 7px !important;
        line-height: 1.1 !important;
    }

    .live-clock {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 8px !important;
        line-height: 1.1 !important;
    }

    .top-navigation,
    .main-navigation {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

}/* =========================
   منوی موبایل
========================= */

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 600px) {

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 34px;
        margin: 0 !important;
        padding: 0 !important;
        border: 0;
        background: #06356f;
        cursor: pointer;
    }

    .mobile-menu-toggle .hamburger-line {
        display: block;
        width: 24px;
        height: 3px;
        margin: 3px auto;
        background: #ffffff;
        border-radius: 2px;
    }

    .mobile-menu-toggle .screen-reader-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .top-navigation .navigation-inner,
    .main-navigation .navigation-inner {
        display: none !important;
    }

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

    .top-navigation.menu-open .navigation-inner,
    .main-navigation.menu-open .navigation-inner {
        display: block !important;
    }

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

    .top-navigation .navigation-inner,
    .main-navigation .navigation-inner {
        display: none !important;
    }

    .top-navigation.menu-open .navigation-inner,
    .main-navigation.menu-open .navigation-inner {
        display: block !important;
    }

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

    /* منوی بالایی در یک ردیف */
    .top-navigation .mobile-menu-toggle {
        display: none !important;
    }

    .top-navigation .navigation-inner {
        display: block !important;
        width: 100% !important;
    }

    .top-navigation ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .top-navigation ul li {
        flex: 1 1 20% !important;
        width: 20% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .top-navigation ul li a {
        display: block !important;
        padding: 8px 2px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }

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

    /* منوی اصلی - دو ردیف */
    .main-navigation .mobile-menu-toggle {
        display: none !important;
    }

    .main-navigation .navigation-inner {
        display: block !important;
        width: 100% !important;
    }

    .main-navigation ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .main-navigation ul li {
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .main-navigation ul li a {
        display: block !important;
        padding: 7px 7px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }

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

    .header-live-date {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        white-space: nowrap !important;
        margin: 1px 0 0 !important;
        padding: 0 !important;
    }

    .live-persian-date,
    .live-gregorian-date,
    .live-hijri-date,
    .live-clock {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.1 !important;
    }

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

    /* زیرمنوهای منوی اصلی مخفی باشند */
    .main-navigation ul li ul {
        display: none !important;
    }

    /* فقط آیتم‌های اصلی در دو ردیف */
    .main-navigation > .navigation-inner > ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .main-navigation > .navigation-inner > ul > li {
        display: block !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }

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

    .main-navigation > .navigation-inner > ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .main-navigation > .navigation-inner > ul > li {
        display: block !important;
        width: 25% !important;
        flex: 0 0 25% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-navigation > .navigation-inner > ul > li > a {
        display: block !important;
        padding: 7px 1px !important;
        font-size: 9px !important;
        white-space: nowrap !important;
    }

    .main-navigation ul li ul {
        display: none !important;
    }}

/* =========================================
   ارتفاع ثابت سه کادر بالای صفحه
========================================= */

.home-featured-area {
    grid-template-rows: 430px;
    align-items: stretch;
}

.home-featured-area > .featured-special,
.home-featured-area > .featured-latest,
.home-featured-area > .latest-news-ticker {
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.home-featured-area .featured-special-slider,
.home-featured-area .latest-slider {
    height: 390px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* =========================================
   پربازدیدترین خبرها - دقیقاً ۵ خبر کامل
========================================= */

.home-featured-area .news-ticker-list {
    height: 390px !important;
    max-height: 390px !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.home-featured-area .ticker-item {
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.home-featured-area .ticker-date {
    height: 14px !important;
    line-height: 14px !important;
    margin: 0 0 2px 0 !important;
    overflow: hidden !important;
}

.home-featured-area .ticker-item h3 {
    height: 38px !important;
    line-height: 19px !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.home-featured-area .ticker-item h3 a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
/* =========================
   صفحه اختصاصی خبر
========================= */

.single-news-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.single-news {
    max-width: 950px;
    margin: 0 auto;
    background: #fff;
    padding: 35px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-sizing: border-box;
}

.single-news-header {
    margin-bottom: 25px;
}

.single-news-header h1 {
    margin: 0 0 15px;
    color: #06356f;
    font-size: 28px;
    line-height: 2;
}

.single-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #888;
    font-size: 13px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.single-news-image {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

.single-news-image img {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 6px;
}

.single-news-content {
    color: #333;
    font-size: 16px;
    line-height: 2.3;
}

.single-news-content p {
    margin: 0 0 20px;
}

.single-news-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
}

.single-news-content h2,
.single-news-content h3,
.single-news-content h4 {
    color: #06356f;
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-news-content a {
    color: #06356f;
}

.single-news-content ul,
.single-news-content ol {
    margin-bottom: 20px;
    padding-right: 25px;
}


/* موبایل */

@media (max-width: 600px) {

    .single-news-page {
        padding-top: 25px;
        padding-bottom: 35px;
    }

    .single-news {
        padding: 20px;
    }

    .single-news-header h1 {
        font-size: 21px;
        line-height: 1.9;
    }

    .single-news-meta {
        display: block;
        line-height: 2;
    }

    .single-news-meta span {
        display: block;
        margin-bottom: 5px;
    }

    .single-news-content {
        font-size: 15px;
        line-height: 2.2;
    }

}/* =========================
   اصلاح زیرمنوهای منوی اصلی
========================= */

@media (min-width: 601px) {

    .main-navigation {
        position: relative;
        z-index: 9999;
    }

    .main-navigation > .navigation-inner > ul > li {
        position: relative;
    }

    /* زیرمنوی اصلی از کنار آیتم باز شود */
    .main-navigation > .navigation-inner > ul > li > ul {
        position: absolute !important;

        top: 0 !important;
        right: 100% !important;

        width: 220px !important;
        min-width: 220px !important;

        display: none !important;

        background: #ffffff !important;

        z-index: 99999 !important;

        box-shadow: 0 5px 20px rgba(0,0,0,0.18);
    }

    /* نمایش زیرمنو هنگام رفتن موس روی آیتم */
    .main-navigation > .navigation-inner > ul > li:hover > ul {
        display: block !important;
    }

    /* زیرمنوی سطح دوم هم از کنار باز شود */
    .main-navigation ul ul li {
        position: relative;
    }

    .main-navigation ul ul ul {
        position: absolute !important;

        top: 0 !important;
        right: 100% !important;

        width: 220px !important;
        min-width: 220px !important;

        display: none !important;

        background: #ffffff !important;

        z-index: 100000 !important;
    }

    .main-navigation ul ul li:hover > ul {
        display: block !important;
    }

    .main-navigation ul ul li a {
        display: block !important;
        width: 100% !important;

        box-sizing: border-box;

        padding: 11px 15px !important;

        background: #ffffff !important;
        color: #333 !important;

        border-bottom: 1px solid #eee;

        white-space: nowrap;
    }

    .main-navigation ul ul li a:hover {
        background: #f5f8fb !important;
        color: #06356f !important;
    }
}/* =========================
   آخرین اخبار در موبایل
========================= */

@media (max-width: 600px) {

    .latest-news-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .latest-news-grid .news-card {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

}/* =========================================
   سه بخش موضوعی + تبلیغات
========================================= */

.home-category-area {
    display: flex;
    direction: ltr;
    gap: 20px;
    margin-top: 35px;
    margin-bottom: 35px;
    align-items: stretch;
}

/* کادر تبلیغات - سمت چپ */

.home-category-area > .home-ad-box {
    width: 25%;
    order: 1;
    min-width: 0;
}

/* اخبار - سمت راست */

.home-category-news {
    width: 75%;
    order: 2;
    direction: rtl;
    min-width: 0;
}

/* کادر تبلیغات */

.home-category-area .ad-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f6f8;
    border: 1px solid #e1e4e8;
    border-radius: 8px;

    color: #999;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}

/* هر ردیف */

.category-block {
    margin-bottom: 25px;
}

.category-block:last-child {
    margin-bottom: 0;
}

.category-block .section-heading {
    margin-bottom: 12px;
}

/* سه خبر کنار هم */

.category-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* کارت خبر */

.mini-news {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 7px;
    overflow: hidden;
    transition: 0.2s;
}

.mini-news:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.mini-news > a {
    display: block;
}

.mini-news img {
    display: block;
    width: 100%;
    height: 125px;
    object-fit: cover;
}

.mini-news h3 {
    margin: 0;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.9;
    color: #06356f;
}

.mini-news h3 a {
    color: #06356f;
}

.mini-news h3 a:hover {
    color: #c62828;
}


/* موبایل */

@media (max-width: 900px) {

    .home-category-area {
        display: block;
    }

    .home-category-area > .home-ad-box {
        width: 100%;
        margin-bottom: 20px;
    }

    .home-category-news {
        width: 100%;
    }

    .home-category-area .ad-placeholder {
        min-height: 250px;
    }

}

@media (max-width: 600px) {

    .category-news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mini-news img {
        height: 190px;
    }

    .mini-news h3 {
        font-size: 14px;
    }

}/* =========================================
   تبلیغات + پخش فیلم + آخرین اخبار نخبگان
========================================= */

.home-video-elite-area {
    display: flex;
    direction: ltr;
    gap: 20px;
    margin-top: 35px;
    margin-bottom: 35px;
    align-items: stretch;
}


/* =========================================
   تبلیغات - چپ
========================================= */

.video-ad-box {
    width: 25%;
    min-width: 0;
    order: 1;
}

.video-ad-box .ad-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f6f8;
    border: 1px solid #e1e4e8;
    border-radius: 8px;

    color: #999;
    font-size: 14px;
    text-align: center;

    box-sizing: border-box;
}


/* =========================================
   پخش فیلم - وسط
========================================= */

.video-section {
    width: 40%;
    min-width: 0;
    order: 2;
    direction: rtl;
}

.video-slider {
    width: 100%;
    overflow: hidden;
}

.video-slide {
    display: none;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.video-slide:first-child {
    display: block;
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-image img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.video-caption {
    padding: 12px 15px;
    font-size: 14px;
    line-height: 2;
    color: #06356f;
}


/* =========================================
   آخرین اخبار نخبگان - راست
========================================= */

.elite-latest-section {
    width: 35%;
    min-width: 0;
    order: 3;
    direction: rtl;
}

.elite-ticker-window {
    height: 365px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.elite-ticker-track {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.elite-ticker-item {
    flex: 0 0 100px;
    height: 100px;
    min-height: 100px;
    max-height: 100px;
    padding: 10px 15px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.elite-ticker-item h3 {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.7;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.elite-ticker-item h3 a {
    color: #06356f;
}

.elite-ticker-item h3 a:hover {
    color: #c62828;
}

.elite-ticker-item .news-date {
    color: #999;
    font-size: 11px;
    white-space: nowrap;
}


/* حرکت پیوسته و بدون پرش */




/* =========================================
   موبایل
========================================= */

@media (max-width: 900px) {

    .home-video-elite-area {
        display: block;
    }

    .video-ad-box,
    .video-section,
    .elite-latest-section {
        width: 100%;
        margin-bottom: 20px;
    }

    .video-ad-box .ad-placeholder {
        min-height: 250px;
    }

}

@media (max-width: 600px) {

    .elite-ticker-window {
        height: 365px;
    }

}/* =========================================
   Footer
========================================= */

.site-footer {
    margin-top: 45px;
    background: #06356f;
    color: #fff;
    direction: rtl;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 35px;
    padding: 40px 0;
}

.footer-column {
    min-width: 0;
}

.footer-column h3 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,.25);
    font-size: 18px;
    color: #fff;
}

.footer-column p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 2.1;
    color: #e8eef7;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 9px;
}

.footer-column ul li a {
    color: #e8eef7;
    font-size: 14px;
    transition: .2s;
}

.footer-column ul li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-bottom {
    background: rgba(0,0,0,.18);
    border-top: 1px solid rgba(255,255,255,.12);
}

.footer-bottom .container {
    padding: 15px 0;
}

.footer-bottom p {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: #dce6f2;
}


/* موبایل */
@media (max-width: 700px) {

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 15px;
    }

    .footer-column {
        text-align: right;
    }

    .footer-bottom .container {
        padding: 15px;
    }

    .footer-bottom p {
        line-height: 2;
    }
}/* =========================================
   بهبود بخش دسته‌های خبری
========================================= */

.home-category-area {
    display: flex;
    direction: ltr;
    gap: 20px;
    margin-top: 35px;
    margin-bottom: 35px;
    align-items: stretch;
}

.home-category-news {
    width: 75%;
    direction: rtl;
}

.home-ad-box {
    width: 25%;
}

.home-ad-box .ad-placeholder {
    height: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #999;
    font-size: 14px;
}

.category-block {
    margin-bottom: 25px;
}

.category-block:last-child {
    margin-bottom: 0;
}

.category-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.mini-news {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: .2s;
}

.mini-news:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.mini-news img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.mini-news h3 {
    margin: 0;
    padding: 10px 12px 12px;
    font-size: 14px;
    line-height: 1.9;
}

.mini-news h3 a {
    color: #06356f;
}

.mini-news h3 a:hover {
    color: #c62828;
}

/* موبایل */
@media (max-width: 900px) {

    .home-category-area {
        display: block;
    }

    .home-ad-box,
    .home-category-news {
        width: 100%;
    }

    .home-ad-box {
        margin-bottom: 20px;
    }

    .home-ad-box .ad-placeholder {
        min-height: 250px;
    }

    .category-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .category-news-grid {
        grid-template-columns: 1fr;
    }

    .mini-news img {
        height: 180px;
    }
}/* =========================================
   هماهنگ‌سازی کادر تبلیغات بخش سه‌قسمتی
========================================= */

.home-video-elite-area .video-ad-box .ad-placeholder {
    height: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #999;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 900px) {

    .home-video-elite-area .video-ad-box .ad-placeholder {
        min-height: 250px;
    }

}/* =========================================
   فلش‌های اسلایدر پخش فیلم
========================================= */

.video-slider {
    position: relative;
}

.video-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 38px;
    height: 50px;

    border: none;
    border-radius: 6px;

    background: rgba(0, 0, 0, .55);
    color: #fff;

    font-size: 22px;
    line-height: 50px;
    text-align: center;

    cursor: pointer;
    opacity: .85;
    transition: .2s;
}

.video-arrow:hover {
    opacity: 1;
    background: rgba(6, 53, 111, .9);
}

.video-prev {
    left: 10px;
}

.video-next {
    right: 10px;
}/* لینک آرشیو فیلم */

.video-archive-link {
    display: block;
    margin-top: 8px;
    font-size: 17px;
    font-weight: normal;
    color: #c62828;
    text-decoration: none;
}

.video-archive-link:hover {
    color: #06356f;
    text-decoration: underline;
}/* =========================================
   اصلاح نهایی هدر موبایل
========================================= */

@media (max-width: 600px) {

    /* فاصله جستجو از عنوان و تاریخ */
    .header-search {
        margin-top: 8px !important;
        margin-bottom: 6px !important;
    }

    /* فاصله تاریخ از کادر جستجو */
    .header-live-date {
        margin-top: 6px !important;
    }

    /* تنظیم دقیق دکمه ذره‌بین */
    .header-search button {
        top: 50% !important;
        left: 4px !important;
        right: auto !important;
        transform: translateY(-50%) !important;
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }
}/* =========================================
   انیمیشن حرفه‌ای زیرمنوی اصلی
========================================= */

@media (min-width: 601px) {

    .main-navigation > .navigation-inner > ul > li > ul {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateX(8px) !important;
        transition:
            opacity .2s ease,
            transform .2s ease,
            visibility .2s ease !important;
    }

    .main-navigation > .navigation-inner > ul > li:hover > ul {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
    }

    .main-navigation ul ul li > ul {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateX(8px) !important;
        transition:
            opacity .2s ease,
            transform .2s ease,
            visibility .2s ease !important;
    }

    .main-navigation ul ul li:hover > ul {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
    }

}/* =========================================
   صفحه خبر - طراحی حرفه‌ای
========================================= */

.single-news-page {
    padding-top: 30px;
    padding-bottom: 40px;
}

.single-news {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}


/* عنوان خبر */

.single-news-header {
    margin-bottom: 25px;
}

.single-news-header h1,
.single-news-header h3 {
    margin: 0 0 18px;
    color: #06356f;
    font-size: 24px;
    line-height: 1.8;
    font-weight: 700;
}


/* اطلاعات خبر */

.single-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 12px 15px;
    background: #f7f9fc;
    border-right: 4px solid #06356f;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
}


/* تصویر خبر */

.single-news-image {
    margin: 25px 0;
    text-align: center;
}

.single-news-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}


/* متن خبر */

.single-news-content {
    color: #333;
    font-size: 17px;
    line-height: 2.2;
    text-align: justify;
}

.single-news-content p {
    margin: 0 0 20px;
}

.single-news-content h2,
.single-news-content h3,
.single-news-content h4 {
    color: #06356f;
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


/* =========================================
   اشتراک گذاری
========================================= */

.single-news-share {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.share-title {
    margin-bottom: 15px;
    color: #06356f;
    font-size: 17px;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    color: #fff !important;
    font-family: inherit;
    font-size: 13px;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: .2s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    opacity: .9;
}


/* رنگ دکمه‌ها */

.share-telegram {
    background: #229ed9;
}

.share-whatsapp {
    background: #25d366;
}

.share-eitaa {
    background: #f28c28;
}

.share-bale {
    background: #2196f3;
}

.share-copy {
    background: #06356f;
}

.share-native {
    background: #555;
}

.share-print {
    background: #777;
}


/* پیام کپی */

.copy-message {
    display: none;
    margin-top: 12px;
    color: #16803c;
    font-size: 13px;
}

.copy-message.show {
    display: block;
}


/* =========================================
   موبایل
========================================= */

@media (max-width: 600px) {

    .single-news-page {
        padding-top: 15px;
    }

    .single-news {
        padding: 18px;
        border-radius: 8px;
    }

    .single-news-header h1,
    .single-news-header h3 {
        font-size: 22px;
        line-height: 1.9;
    }

    .single-news-meta {
        display: block;
        line-height: 2;
        padding: 10px 12px;
    }

    .single-news-meta span {
        display: block;
        margin-bottom: 4px;
    }

    .single-news-content {
        font-size: 16px;
        line-height: 2.15;
    }

    .single-news-image {
        margin: 20px 0;
    }

    .share-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

.share-button {
    width: 100%;
    padding: 9px 8px;
}

}


/* =========================================
   فلش بیرونی اسلایدرهای صفحه اصلی
========================================= */

.home-featured-area > .featured-special,
.home-featured-area > .featured-latest {
    position: relative !important;
    overflow: visible !important;
}

.home-featured-area .featured-arrow,
.home-featured-area .latest-arrow {
    position: absolute !important;
    top: calc(50% + 20px) !important;
    transform: translateY(-50%) !important;

    width: 38px !important;
    height: 50px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 6px !important;

    background: rgba(0, 0, 0, 0.55) !important;
    color: #fff !important;

    font-size: 24px !important;
    line-height: 50px !important;
    text-align: center !important;

    cursor: pointer !important;
    z-index: 999999 !important;
}

.home-featured-area .featured-prev,
.home-featured-area .latest-prev {
    right: 10px !important;
    left: auto !important;
}

.home-featured-area .featured-next,
.home-featured-area .latest-next {
    left: 10px !important;
    right: auto !important;
}

.home-featured-area .featured-arrow:hover,
.home-featured-area .latest-arrow:hover {
    background: rgba(0, 0, 0, 0.85) !important;
}/* =========================================
   صفحه درباره ما
========================================= */

.about-page {
    background: #f7f9fc;
    padding-top: 50px;
    padding-bottom: 70px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 45px 55px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.about-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5eaf1;
}

.about-header h1 {
    margin: 0;
    color: #06356f;
    font-size: 30px;
    font-weight: 700;
}

.about-body {
    color: #444;
    font-size: 16px;
    line-height: 2.2;
    text-align: right;
}

.about-body h2 {
    color: #06356f;
    font-size: 23px;
    margin: 35px 0 15px;
}

.about-body p {
    margin: 0 0 18px;
}

.about-body ul {
    margin: 15px 0 25px;
    padding-right: 25px;
}

.about-body li {
    margin-bottom: 10px;
}

/* موبایل */
@media (max-width: 600px) {

    .about-page {
        padding: 30px 12px 50px;
    }

    .about-content {
        padding: 30px 20px;
        border-radius: 8px;
    }

    .about-header h1 {
        font-size: 24px;
    }

    .about-body {
        font-size: 15px;
        line-height: 2;
    }

    .about-body h2 {
        font-size: 20px;
    }
}/* =========================================
   استایل شیک‌تر صفحه درباره ما
========================================= */

.about-page {
    background:
        linear-gradient(135deg, #f5f8fc 0%, #eef3f9 100%);
    padding-top: 60px;
    padding-bottom: 80px;
}

.about-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 60px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e3eaf3;
    box-shadow: 0 12px 40px rgba(6, 53, 111, 0.10);
    overflow: hidden;
}

/* نوار بالای کارت */
.about-content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, #06356f, #1d75c9, #06356f);
}

/* عنوان */
.about-header {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5ebf2;
}

.about-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    border-radius: 10px;
    background: #06356f;
}

.about-header h1 {
    margin: 0;
    color: #06356f;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.7;
}

/* متن اصلی */
.about-body {
    color: #454d57;
    font-size: 16px;
    line-height: 2.3;
    text-align: right;
}

.about-body p {
    margin: 0 0 22px;
}

/* تیترهای داخلی */
.about-body h2 {
    position: relative;
    color: #06356f;
    font-size: 23px;
    font-weight: 800;
    margin: 42px 0 20px;
    padding-right: 16px;
}

.about-body h2::before {
    content: "";
    position: absolute;
    right: 0;
    top: 8px;
    width: 5px;
    height: 25px;
    border-radius: 5px;
    background: #1d75c9;
}

/* لیست */
.about-body ul {
    margin: 15px 0 30px;
    padding: 20px 30px 20px 20px;
    background: #f6f9fc;
    border-right: 3px solid #06356f;
    border-radius: 10px;
}

.about-body li {
    margin-bottom: 12px;
    padding-right: 5px;
}

.about-body li:last-child {
    margin-bottom: 0;
}

/* متن پایانی */
.about-body strong {
    color: #06356f;
    font-weight: 800;
}

/* موبایل */
@media (max-width: 600px) {

    .about-page {
        padding: 35px 12px 55px;
    }

    .about-content {
        padding: 40px 20px;
        border-radius: 12px;
    }

    .about-header {
        margin-bottom: 30px;
    }

    .about-header h1 {
        font-size: 24px;
        line-height: 1.8;
    }

    .about-body {
        font-size: 15px;
        line-height: 2.15;
    }

    .about-body h2 {
        font-size: 20px;
        margin-top: 32px;
    }

    .about-body ul {
        padding: 17px 25px 17px 15px;
    }
}/* =========================================
   صفحه ارتباط با ما
========================================= */

.contact-page {
    background: #f5f8fc;
    padding: 60px 20px 80px;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 50px 60px;
    border-radius: 18px;
    border: 1px solid #e3eaf3;
    box-shadow: 0 12px 40px rgba(6, 53, 111, 0.10);
    overflow: hidden;
}

.contact-content .about-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5ebf2;
}

.contact-content .about-header h1 {
    color: #06356f;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}

.contact-content .about-body {
    color: #454d57;
    font-size: 16px;
    line-height: 2.3;
    text-align: right;
}

.contact-content .about-body h2 {
    color: #06356f;
    font-size: 23px;
    font-weight: 800;
    margin: 40px 0 18px;
    padding-right: 15px;
    border-right: 5px solid #1d75c9;
}

.contact-content .about-body p {
    margin-bottom: 20px;
}

.contact-content .about-body strong {
    color: #06356f;
    font-weight: 800;
}

@media (max-width: 600px) {

    .contact-page {
        padding: 35px 12px 55px;
    }

    .contact-content {
        padding: 40px 20px;
        border-radius: 12px;
    }

    .contact-content .about-header h1 {
        font-size: 24px;
    }

    .contact-content .about-body {
        font-size: 15px;
        line-height: 2.15;
    }

    .contact-content .about-body h2 {
        font-size: 20px;
    }
}/* =========================
   صفحه مدیریت
========================= */

.management-page {
    background: #f5f8fc;
    padding: 60px 20px 80px;
}

.management-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 50px 60px;
    border-radius: 18px;
    border: 1px solid #e3eaf3;
    box-shadow: 0 12px 40px rgba(6, 53, 111, 0.10);
    overflow: hidden;
}

/* عنوان صفحه */
.management-content .about-header {
    text-align: center;
    margin-bottom: 35px;
}

.management-content .about-header h1 {
    margin: 0;
    color: #06356f;
    font-size: 30px;
    font-weight: 800;
}

/* محتوای اصلی */
.management-content .about-body {
    color: #444;
    font-size: 16px;
    line-height: 2.2;
}

/* تیترهای داخل صفحه */
.management-content .about-body h2 {
    color: #06356f;
    font-size: 22px;
    font-weight: 800;
    margin: 40px 0 18px;
    padding-right: 14px;
    border-right: 4px solid #06356f;
}

/* پاراگراف‌ها */
.management-content .about-body p {
    margin: 0 0 18px;
}

/* لیست‌ها */
.management-content .about-body ul {
    margin: 15px 0 25px;
    padding-right: 25px;
}

.management-content .about-body li {
    margin-bottom: 10px;
}

/* نام و سمت مدیر */
.management-content .about-body strong {
    color: #06356f;
}/* محل عکس */
.manager-photo {
    width: 180px;
    height: 220px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f1f5f9, #e8eef5);
    border: 2px dashed #9fb1c5;
    border-radius: 16px;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(6, 53, 111, 0.08);
    position: relative;
}

.manager-photo::before {
    content: "👤";
    position: absolute;
    top: 65px;
    font-size: 55px;
    opacity: 0.35;
}

.manager-photo {
    padding-top: 70px;
    box-sizing: border-box;
}

/* موبایل */
@media (max-width: 600px) {

    .manager-photo {
        width: 150px;
        height: 190px;
    }

}
```


/* بخش معرفی */
.manager-intro {
    text-align: center;
    margin-bottom: 35px;
}

/* موبایل */
@media (max-width: 600px) {

    .management-page {
        padding: 35px 12px 50px;
    }

    .management-content {
        padding: 30px 20px;
        border-radius: 14px;
    }

    .management-content .about-header h1 {
        font-size: 25px;
    }

    .management-content .about-body {
        font-size: 15px;
        line-height: 2.1;
    }

    .management-content .about-body h2 {
        font-size: 19px;
        margin-top: 30px;
    }

    .manager-photo {
        width: 150px;
        height: 190px;
    }
}/* =========================
   بهینه‌سازی موبایل سایت
   مرحله اول
========================= */

@media (max-width: 600px) {

    /* جلوگیری از بیرون‌زدگی محتوا */
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* کانتینر اصلی */
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    /* محتوای اصلی */
    .site-main {
        padding: 30px 10px 50px;
    }

    /* عنوان بخش‌ها */
    .section-heading {
        margin-bottom: 12px;
    }

    .section-heading h2 {
        font-size: 17px;
        line-height: 1.8;
    }

    /* تصاویر واکنش‌گرا */
    img {
        max-width: 100%;
        height: auto;
    }

    /* لینک‌ها و متن‌ها */
    p,
    li {
        overflow-wrap: break-word;
    }

}
```
/* =========================
   بهینه‌سازی موبایل
   مرحله دوم - کارت‌های خبری
========================= */

@media (max-width: 600px) {

    /* کارت‌های خبری */
    .news-card,
    .post-card {
        width: 100%;
        margin-bottom: 16px;
        box-sizing: border-box;
    }

    /* تصویر کارت */
    .news-card img,
    .post-card img {
        width: 100%;
        height: auto;
        max-height: 240px;
        object-fit: cover;
    }

    /* عنوان خبر */
    .news-card h2,
    .news-card h3,
    .post-card h2,
    .post-card h3 {
        font-size: 16px;
        line-height: 1.9;
        margin-top: 10px;
    }

    /* متن خبر */
    .news-card p,
    .post-card p {
        font-size: 14px;
        line-height: 2;
    }

}/* =========================
   بهینه‌سازی موبایل
   مرحله سوم - بخش‌های چندستونه
========================= */

@media (max-width: 600px) {

    /* بخش‌های چندستونه */
    .home-three-columns,
    .category-news-area,
    .video-elite-area {
        display: block !important;
        width: 100%;
    }

    /* ستون‌های داخلی */
    .home-three-columns > *,
    .category-news-area > *,
    .video-elite-area > * {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
        box-sizing: border-box;
    }

    /* تبلیغات */
    .home-three-columns img,
    .category-news-area img,
    .video-elite-area img {
        max-width: 100%;
        height: auto;
    }

    /* ویدیو */
    .video-slider,
    .video-slide {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

}/* =========================
   بهینه‌سازی موبایل
   مرحله چهارم - هدر و منو
========================= */

@media (max-width: 600px) {

    /* هدر */
    .main-header {
        padding: 12px 0;
    }

    .site-title-area h1 {
        font-size: 18px;
        line-height: 1.7;
        text-align: center;
    }

    /* منوی اصلی */
    .main-navigation {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-navigation > .navigation-inner > ul {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
    }

    .main-navigation > .navigation-inner > ul > li {
        flex: 0 0 auto;
    }

    .main-navigation > .navigation-inner > ul > li > a {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 10px;
    }

    /* نوار اخبار فوری */
    .breaking-news {
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .breaking-content {
        min-width: 0;
        overflow: hidden;
    }

    .breaking-content a {
        white-space: nowrap;
    }

}/* =========================
   بهینه‌سازی موبایل
   مرحله پنجم - صفحات داخلی
========================= */

@media (max-width: 600px) {

    .about-page,
    .contact-page,
    .management-page {
        padding-top: 30px;
        padding-bottom: 45px;
    }

    .about-content,
    .contact-content,
    .management-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 28px 18px;
        border-radius: 14px;
        box-sizing: border-box;
    }

    .about-content .about-header h1,
    .contact-content .about-header h1,
    .management-content .about-header h1 {
        font-size: 23px;
        line-height: 1.8;
    }

    .about-content .about-body,
    .contact-content .about-body,
    .management-content .about-body {
        font-size: 14px;
        line-height: 2.15;
    }

    .about-content .about-body h2,
    .contact-content .about-body h2,
    .management-content .about-body h2 {
        font-size: 18px;
        line-height: 1.8;
        margin-top: 28px;
    }

    .about-content .about-body ul,
    .contact-content .about-body ul,
    .management-content .about-body ul {
        padding-right: 20px;
    }

}/* =========================
   آخرین اخبار نخبگان
   ارتفاع ثابت + جلوگیری از تغییر اندازه
========================= */

.elite-ticker-window {
    height: 420px;
    overflow: hidden;
    position: relative;
}

.elite-ticker-track {
    display: flex;
    flex-direction: column;
}

.elite-ticker-item {
    flex: 0 0 90px;
    height: 90px;
    min-height: 90px;
    max-height: 90px;
    box-sizing: border-box;
    overflow: hidden;
    padding: 14px 16px;
}

.elite-ticker-item h3 {
    margin: 0 0 8px;
    line-height: 1.8;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.elite-ticker-item .news-date {
    white-space: nowrap;
}/* =========================
   دو کادر تبلیغات زیر هم
   با ارتفاع کمتر
========================= */

.home-ad-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible !important;
}

.home-ad-box .ad-placeholder {
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.home-ad-box .ad-placeholder img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: initial !important;
}/* =========================
   صفحه دسته‌بندی اخبار
========================= */

.category-header {
    margin: 0 0 20px;
    text-align: right;
}

.category-header h1 {
    margin: 0 0 14px;
    padding-right: 12px;
    border-right: 5px solid #556B2F;
    color: #163b6d;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.5;
}

.category-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}


/* جستجو */

.category-search {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 18px;
    gap: 8px;
}

.category-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.category-search input[type="search"]:focus {
    border-color: #556B2F;
}

.category-search button {
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background: #556B2F;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.category-search button:hover {
    opacity: 0.9;
}


/* مرتب‌سازی */

.category-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
}

.category-sort label {
    color: #555;
    font-size: 14px;
}

.category-sort select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.category-sort select:focus {
    border-color: #556B2F;
}


/* عنوان خبرها */

.category-news::before {
    content: "خبرها";
    display: block;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #163b6d;
    font-size: 20px;
    font-weight: 800;
}


/* موبایل */

@media (max-width: 600px) {

    .category-header h1 {
        font-size: 23px;
    }

    .category-search {
        gap: 6px;
    }

    .category-search button {
        padding: 0 14px;
    }

    .category-sort {
        flex-wrap: wrap;
    }

}/* =========================
   کارت خبرهای دسته‌بندی
========================= */

.category-news-card {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}


/* تصویر */

.category-news-image {
    display: block;
    flex: 0 0 220px;
    width: 220px;
    height: 145px;
    overflow: hidden;
    border-radius: 8px;
}

.category-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* متن */

.category-news-content {
    flex: 1;
    min-width: 0;
}

.category-news-content h2 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.8;
}

.category-news-content h2 a {
    color: #163b6d;
    text-decoration: none;
}

.category-news-content h2 a:hover {
    color: #556B2F;
}


/* خلاصه */

.category-news-content p {
    margin: 0 0 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.9;
}


/* ادامه خبر */

.category-news-read-more {
    display: inline-block;
    color: #556B2F;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.category-news-read-more:hover {
    text-decoration: underline;
}


/* موبایل */

@media (max-width: 600px) {

    .category-news-card {
        gap: 12px;
        padding: 12px;
    }

    .category-news-image {
        flex: 0 0 110px;
        width: 110px;
        height: 85px;
    }

    .category-news-content h2 {
        margin-bottom: 4px;
        font-size: 16px;
        line-height: 1.6;
    }

    .category-news-content p {
        display: none;
    }

    .category-news-read-more {
        font-size: 12px;
    }

}/* =========================
   صفحه‌بندی دسته‌بندی
========================= */

.category-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 30px 0 10px;
    direction: rtl;
}

.category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
    box-sizing: border-box;

    border: 1px solid #e1e1e1;
    border-radius: 7px;

    background: #fff;
    color: #555;

    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.category-pagination a.page-numbers:hover {
    background: #556B2F;
    border-color: #556B2F;
    color: #fff;
}

.category-pagination .page-numbers.current {
    background: #163b6d;
    border-color: #163b6d;
    color: #fff;
    font-weight: 700;
}

.category-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: 20px;
}

.category-pagination .prev,
.category-pagination .next {
    font-size: 20px;
}


/* موبایل */

@media (max-width: 600px) {

    .category-pagination {
        gap: 5px;
        margin-top: 24px;
    }

    .category-pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        padding: 0 7px;
        font-size: 13px;
    }

}/* =========================
   طراحی نهایی سربرگ دسته
========================= */

.category-header {
    margin: 0 0 16px;
    text-align: right;
}

.category-header h1 {
    margin: 0;
    padding: 0 14px 10px 0;

    border-right: 5px solid #556B2F;

    color: #163b6d;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.5;
}


/* تعداد خبرها */

.category-header p {
    display: none;
}


/* =========================
   جستجو
========================= */

.category-search {
    display: flex;
    align-items: center;

    width: 100%;
    margin: 0 0 18px;

    gap: 8px;
}

.category-search input[type="search"] {
    flex: 1;

    height: 46px;
    padding: 0 16px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;

    color: #333;
    font-family: inherit;
    font-size: 14px;

    outline: none;
    box-sizing: border-box;
}

.category-search input[type="search"]:focus {
    border-color: #556B2F;
}

.category-search button {
    height: 46px;
    padding: 0 22px;

    border: 0;
    border-radius: 8px;

    background: #556B2F;
    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.category-search button:hover {
    opacity: 0.9;
}


/* =========================
   تعداد خبرها + نمایش بر اساس
========================= */

.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 46px;

    margin: 0 0 28px;
    padding: 9px 0;

    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;

    box-sizing: border-box;
}


/* تعداد خبرها */

.category-count {
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.category-count strong {
    color: #163b6d;
    font-weight: 800;
}


/* مرتب‌سازی */

.category-sort {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 0;
}

.category-sort label {
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.category-sort select {
    height: 38px;
    min-width: 125px;

    padding: 0 12px;

    border: 1px solid #ddd;
    border-radius: 7px;

    background: #fff;
    color: #444;

    font-family: inherit;
    font-size: 13px;

    outline: none;
    cursor: pointer;
}

.category-sort select:focus {
    border-color: #556B2F;
}


/* موبایل */

@media (max-width: 600px) {

    .category-toolbar {
        min-height: 44px;
        gap: 10px;
    }

    .category-count {
        font-size: 13px;
    }

    .category-sort {
        gap: 6px;
    }

    .category-sort label {
        font-size: 12px;
    }

    .category-sort select {
        min-width: 110px;
        height: 36px;
        padding: 0 8px;
        font-size: 12px;
    }

}


/* نمایش بر اساس */

.category-sort {
    direction: rtl;
}

.category-sort label {
    color: #555;

    font-size: 14px;
    font-weight: 600;
}

.category-sort select {
    height: 38px;
    min-width: 125px;

    padding: 0 12px;

    border: 1px solid #ddd;
    border-radius: 7px;

    background: #fff;

    color: #444;
    font-family: inherit;
    font-size: 13px;

    outline: none;
    cursor: pointer;
}

.category-sort select:focus {
    border-color: #556B2F;
}


/* =========================
   عنوان خبرها
========================= */

.category-news::before {
    content: "خبرها";

    display: block;

    margin: 0 0 18px;
    padding: 0 0 10px;

    border-bottom: 2px solid #eee;

    color: #163b6d;

    font-size: 21px;
    font-weight: 800;
    line-height: 1.5;
}


/* =========================
   موبایل
========================= */

@media (max-width: 600px) {

    .category-header h1 {
        font-size: 24px;
        padding-right: 10px;
        border-right-width: 4px;
    }

    .category-search {
        gap: 6px;
    }

    .category-search input[type="search"] {
        height: 43px;
        padding: 0 12px;
    }

    .category-search button {
        height: 43px;
        padding: 0 14px;
    }

    .category-search + .category-sort {
        flex-direction: row;
        align-items: center;

        gap: 10px;
    }

    .category-sort label {
        font-size: 13px;
    }

    .category-sort select {
        min-width: 115px;
        height: 36px;
    }

}/* =========================
   ظاهر نهایی عنوان دسته
========================= */

.category-header {
    margin: 0 0 22px;
    padding: 0;
}

.category-header h1 {
    position: relative;

    margin: 0;
    padding: 0 16px 11px 0;

    color: #163b6d;

    font-size: 30px;
    font-weight: 800;
    line-height: 1.5;

    border-right: 5px solid #556B2F;

    letter-spacing: -0.3px;
}


/* خط ظریف زیر عنوان */

.category-header h1::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 70px;
    height: 2px;

    background: #556B2F;
}


/* =========================
   فاصله جستجو
========================= */

.category-search {
    margin-top: 0;
    margin-bottom: 20px;
}


/* =========================
   فاصله ابزارها
========================= */

.category-toolbar {
    margin-bottom: 30px;
}


/* =========================
   موبایل
========================= */

@media (max-width: 600px) {

    .category-header {
        margin-bottom: 18px;
    }

    .category-header h1 {
        padding-right: 11px;
        padding-bottom: 9px;

        font-size: 24px;

        border-right-width: 4px;
    }

    .category-header h1::after {
        width: 55px;
        height: 2px;
    }

}/* =========================
   طراحی نهایی کارت خبر
========================= */

.category-news-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 20px;

    width: 100%;
    margin: 0 0 18px;
    padding: 14px;

    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 12px;

    box-sizing: border-box;

    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.category-news-card:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}


/* =========================
   تصویر خبر
========================= */

.category-news-image {
    display: block;

    flex: 0 0 230px;

    width: 230px;
    height: 145px;

    overflow: hidden;

    border-radius: 9px;

    background: #f2f2f2;
}

.category-news-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.category-news-card:hover .category-news-image img {
    transform: scale(1.04);
}


/* =========================
   محتوای خبر
========================= */

.category-news-content {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* عنوان */

.category-news-content h2 {
    width: 100%;

    margin: 0 0 8px;

    font-size: 19px;
    font-weight: 800;
    line-height: 1.8;
}

.category-news-content h2 a {
    color: #163b6d;
    text-decoration: none;

    transition: color 0.2s ease;
}

.category-news-content h2 a:hover {
    color: #556B2F;
}


/* خلاصه */

.category-news-content p {
    margin: 0 0 12px;

    color: #666;

    font-size: 14px;
    line-height: 2;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* ادامه خبر */

.category-news-read-more {
    margin-top: auto;

    padding: 5px 12px;

    border-radius: 6px;

    background: #f3f5ef;

    color: #556B2F;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.category-news-read-more:hover {
    background: #556B2F;
    color: #fff;
}


/* =========================
   موبایل
========================= */

@media (max-width: 600px) {

    .category-news-card {
        gap: 12px;

        margin-bottom: 12px;
        padding: 10px;

        border-radius: 9px;
    }

    .category-news-image {
        flex: 0 0 105px;

        width: 105px;
        height: 82px;

        border-radius: 7px;
    }

    .category-news-content h2 {
        margin-bottom: 3px;

        font-size: 15px;
        line-height: 1.65;
    }

    .category-news-content p {
        display: none;
    }

    .category-news-read-more {
        padding: 3px 8px;

        font-size: 11px;
    }

}/* =========================
   کادر جستجوی دسته
========================= */

.category-search {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    margin: 0 0 20px;

    gap: 8px;
}


/* فیلد جستجو */

.category-search input[type="search"] {
    flex: 1;

    width: 100%;
    height: 46px;

    padding: 0 16px;

    border: 1px solid #dedede;
    border-radius: 9px;

    background: #fff;

    color: #333;
    font-family: inherit;
    font-size: 14px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.category-search input[type="search"]::placeholder {
    color: #999;
}

.category-search input[type="search"]:focus {
    border-color: #556B2F;

    box-shadow:
        0 0 0 3px rgba(85, 107, 47, 0.08);
}


/* دکمه */

.category-search button {
    flex: 0 0 auto;

    height: 46px;

    padding: 0 23px;

    border: none;
    border-radius: 9px;

    background: #556B2F;
    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.category-search button:hover {
    background: #465a27;
}

.category-search button:active {
    transform: translateY(1px);
}


/* موبایل */

@media (max-width: 600px) {

    .category-search {
        gap: 6px;
    }

    .category-search input[type="search"] {
        height: 43px;
        padding: 0 12px;

        font-size: 13px;
    }

    .category-search button {
        height: 43px;

        padding: 0 15px;

        font-size: 13px;
    }

}/* =========================
   نسخه موبایل صفحه دسته‌بندی
========================= */

@media (max-width: 600px) {

    /* عنوان دسته */

    .category-header {
        margin-bottom: 16px;
    }

    .category-header h1 {
        font-size: 23px;
        line-height: 1.6;
    }


    /* جستجو */

    .category-search {
        display: flex;
        width: 100%;
        gap: 6px;
        margin-bottom: 16px;
    }

    .category-search input[type="search"] {
        height: 42px;
        min-width: 0;
        padding: 0 11px;
        font-size: 13px;
    }

    .category-search button {
        height: 42px;
        padding: 0 13px;
        font-size: 12px;
        white-space: nowrap;
    }


    /* تعداد خبرها + نمایش بر اساس */

    .category-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        gap: 8px;

        min-height: 43px;
        margin-bottom: 22px;
        padding: 8px 0;
    }

    .category-count {
        flex: 0 0 auto;
        font-size: 12px;
    }

    .category-sort {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .category-sort label {
        font-size: 11px;
        white-space: nowrap;
    }

    .category-sort select {
        min-width: 105px;
        height: 35px;
        padding: 0 7px;
        font-size: 11px;
    }


    /* عنوان خبرها */

    .category-news::before {
        margin-bottom: 13px;
        padding-bottom: 8px;
        font-size: 18px;
    }


    /* کارت خبر */

    .category-news-card {
        display: flex;
        flex-direction: row-reverse;

        gap: 10px;

        margin-bottom: 11px;
        padding: 9px;

        border-radius: 8px;
    }

    .category-news-image {
        flex: 0 0 100px;

        width: 100px;
        height: 78px;

        border-radius: 6px;
    }

    .category-news-content h2 {
        margin: 0 0 3px;

        font-size: 14px;
        line-height: 1.7;
    }

    .category-news-content p {
        display: none;
    }

    .category-news-read-more {
        padding: 3px 8px;
        font-size: 10px;
    }


    /* صفحه‌بندی */

    .category-pagination {
        gap: 4px;
        margin-top: 22px;
    }

    .category-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 12px;
    }

}/* =========================================
   طراحی نهایی صفحه تک‌خبر
   عنوان + لید + محتوای آزاد
========================================= */

/* صفحه تک‌خبر */
.single-news-page {
    padding-top: 30px;
    padding-bottom: 50px;
}

/* کادر اصلی خبر */
.single-news {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}


/* =========================================
   سربرگ خبر
========================================= */

.single-news-header {
    margin-bottom: 28px;
}


/* عنوان اصلی */

.single-news-header h1 {
    margin: 0 0 18px;
    color: #06356f;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.9;
}


/* =========================================
   لید خبر
========================================= */

.single-news-lead {
    margin: 0 0 20px;
    padding: 16px 18px;

    background: #f3f7fb;
    border-right: 4px solid #7894b5;
    border-radius: 8px;

    color: #4b5563;
    font-size: 16px;
    font-weight: 500;
    line-height: 2.1;

    box-sizing: border-box;
}

.single-news-lead p {
    margin: 0;
}


/* =========================================
   اطلاعات خبر
========================================= */

.single-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;

    padding: 11px 14px;

    background: #fafafa;
    border-right: 4px solid #06356f;
    border-radius: 6px;

    color: #777;
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================
   متن اصلی خبر
   چینش کاملاً آزاد از داخل وردپرس
========================================= */

.single-news-content {
    color: #333;
    font-size: 17px;
    line-height: 2.3;
    text-align: right;
}


/* پاراگراف */

.single-news-content p {
    margin: 0 0 20px;
}


/* تیترهای داخل خبر */

.single-news-content h2,
.single-news-content h3,
.single-news-content h4 {
    color: #06356f;
    line-height: 1.9;
}

.single-news-content h2 {
    margin: 32px 0 16px;
}

.single-news-content h3 {
    margin: 28px 0 14px;
}

.single-news-content h4 {
    margin: 24px 0 12px;
}


/* لینک‌ها */

.single-news-content a {
    color: #06356f;
}


/* لیست‌ها */

.single-news-content ul,
.single-news-content ol {
    margin: 0 0 22px;
    padding-right: 28px;
}


/* =========================================
   تصاویر داخل متن
   اندازه آزاد ولی واکنش‌گرا
========================================= */

.single-news-content img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 25px auto;

    border-radius: 8px;
}


/* تصویر تمام‌عرض اگر خود وردپرس
   کلاس alignfull بدهد */

.single-news-content img.alignfull {
    width: 100%;
    max-width: 100%;
}


/* تصویر سمت راست */

.single-news-content img.alignright {
    margin-right: 0;
    margin-left: 20px;
}


/* تصویر سمت چپ */

.single-news-content img.alignleft {
    margin-left: 0;
    margin-right: 20px;
}


/* کپشن تصاویر */

.single-news-content .wp-caption {
    max-width: 100%;
    margin: 25px auto;
}

.single-news-content .wp-caption img {
    margin: 0 auto 8px;
}

.single-news-content .wp-caption-text {
    margin: 0;
    color: #777;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}


/* =========================================
   اشتراک گذاری
========================================= */

.single-news-share {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.share-title {
    margin-bottom: 15px;
    color: #06356f;
    font-size: 17px;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 8px 16px;

    border: none;
    border-radius: 6px;

    color: #fff !important;
    font-family: inherit;
    font-size: 13px;

    text-decoration: none !important;

    cursor: pointer;
    box-sizing: border-box;

    transition: 0.2s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-telegram {
    background: #229ed9;
}

.share-whatsapp {
    background: #25d366;
}

.share-eitaa {
    background: #f28c28;
}

.share-bale {
    background: #2196f3;
}

.share-copy {
    background: #06356f;
}

.share-native {
    background: #555;
}

.share-print {
    background: #777;
}

.copy-message {
    display: none;
    margin-top: 12px;
    color: #16803c;
    font-size: 13px;
}

.copy-message.show {
    display: block;
}


/* =========================================
   موبایل
========================================= */

@media (max-width: 600px) {

    .single-news-page {
        padding-top: 15px;
        padding-bottom: 35px;
    }

    .single-news {
        width: 100%;
        padding: 18px;
        border-radius: 8px;
    }


    /* عنوان */

    .single-news-header h1 {
        margin-bottom: 15px;
        font-size: 22px;
        line-height: 1.9;
    }


    /* لید */

    .single-news-lead {
        margin-bottom: 16px;
        padding: 13px 14px;

        font-size: 14px;
        line-height: 2.1;
    }


    /* اطلاعات */

    .single-news-meta {
        display: block;
        padding: 10px 12px;
        line-height: 2;
    }

    .single-news-meta span {
        display: block;
        margin-bottom: 4px;
    }


    /* متن */

    .single-news-content {
        font-size: 16px;
        line-height: 2.15;
    }


    /* تصاویر */

    .single-news-content img {
        margin: 20px auto;
        border-radius: 7px;
    }


    /* اشتراک */

    .share-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .share-button {
        width: 100%;
        padding: 9px 8px;
    }

}/* =========================================
   اصلاح نمایش تصاویر داخل خبر
========================================= */

.single-news-content .wp-block-image {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 25px 0;
}

.single-news-content .wp-block-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    opacity: 1;
    visibility: visible;
}

.single-news-content .wp-block-image figcaption {
    display: block;
    margin-top: 8px;
    color: #777;
    font-size: 13px;
    text-align: center;
}

/* تصویر وسط */
.single-news-content .wp-block-image.aligncenter {
    text-align: center;
}

.single-news-content .wp-block-image.aligncenter img {
    margin-left: auto;
    margin-right: auto;
}

/* تصویر راست */
.single-news-content .wp-block-image.alignright {
    text-align: right;
}

.single-news-content .wp-block-image.alignright img {
    margin-left: 0;
    margin-right: 0;
}

/* تصویر چپ */
.single-news-content .wp-block-image.alignleft {
    text-align: left;
}

.single-news-content .wp-block-image.alignleft img {
    margin-left: 0;
    margin-right: auto;
}


/* موبایل */
@media (max-width: 600px) {

    .single-news-content .wp-block-image {
        width: 100%;
        margin: 20px 0;
    }

    .single-news-content .wp-block-image img {
        width: auto;
        max-width: 100%;
        height: auto;
    }

}/* =========================================
   تنظیم نهایی ظاهر محتوای تک‌خبر
========================================= */

.single-news-content {
    color: #333;
    font-size: 17px;
    line-height: 2.3;
    text-align: right;
}

/* پاراگراف‌ها */
.single-news-content p {
    margin: 0 0 22px;
}

/* =========================================
   تصاویر داخل خبر
========================================= */

.single-news-content .wp-block-image {
    display: block;
    max-width: 100%;
    margin: 30px 0;
    text-align: center;
}

.single-news-content .wp-block-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

/* تصویر وسط */
.single-news-content .wp-block-image.aligncenter {
    text-align: center;
}

.single-news-content .wp-block-image.aligncenter img {
    margin-left: auto;
    margin-right: auto;
}

/* تصویر راست */
.single-news-content .wp-block-image.alignright {
    text-align: right;
}

.single-news-content .wp-block-image.alignright img {
    margin-left: 0;
    margin-right: 0;
}

/* تصویر چپ */
.single-news-content .wp-block-image.alignleft {
    text-align: left;
}

.single-news-content .wp-block-image.alignleft img {
    margin-left: 0;
    margin-right: auto;
}

/* کپشن تصویر */
.single-news-content .wp-block-image figcaption {
    margin-top: 8px;
    color: #777;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

/* =========================================
   تیترهای داخل متن
========================================= */

.single-news-content h2,
.single-news-content h3,
.single-news-content h4 {
    color: #06356f;
    line-height: 1.9;
}

.single-news-content h2 {
    margin: 35px 0 18px;
}

.single-news-content h3 {
    margin: 30px 0 16px;
}

.single-news-content h4 {
    margin: 25px 0 14px;
}

/* =========================================
   موبایل
========================================= */

@media (max-width: 600px) {

    .single-news-content {
        font-size: 16px;
        line-height: 2.15;
    }

    .single-news-content p {
        margin-bottom: 20px;
    }

    .single-news-content .wp-block-image {
        width: 100%;
        margin: 22px 0;
    }

    .single-news-content .wp-block-image img {
        width: auto;
        max-width: 100%;
        height: auto;
        border-radius: 7px;
    }

    .single-news-content .wp-block-image.alignright,
    .single-news-content .wp-block-image.alignleft {
        float: none;
        width: 100%;
        text-align: center;
    }

    .single-news-content .wp-block-image.alignright img,
    .single-news-content .wp-block-image.alignleft img {
        margin-left: auto;
        margin-right: auto;
    }

}/* =========================================
   ظاهر نهایی عنوان و لید تک‌خبر
========================================= */

/* عنوان اصلی خبر */

.single-news-header h1 {
    margin: 0 0 20px;

    color: #06356f;

    font-size: 29px;
    font-weight: 800;

    line-height: 1.9;

    text-align: right;

    letter-spacing: -0.2px;
}


/* =========================================
   لید / خلاصه خبر
========================================= */

.single-news-lead {
    position: relative;

    margin: 0 0 22px;
    padding: 17px 20px;

    background: #f4f7fa;

    border-right: 4px solid #7894b5;
    border-radius: 8px;

    color: #4b5563;

    font-size: 16px;
    font-weight: 500;

    line-height: 2.15;

    text-align: right;

    box-sizing: border-box;
}

.single-news-lead p {
    margin: 0;
}


/* =========================================
   اطلاعات خبر
========================================= */

.single-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px 20px;

    margin-top: 0;
    padding: 10px 14px;

    background: #fafafa;

    border-right: 3px solid #06356f;
    border-radius: 6px;

    color: #777;

    font-size: 13px;
    line-height: 1.9;
}


/* =========================================
   فاصله سربرگ از متن
========================================= */

.single-news-header {
    margin-bottom: 30px;
}


/* =========================================
   موبایل
========================================= */

@media (max-width: 600px) {

    .single-news-header h1 {
        margin-bottom: 15px;

        font-size: 22px;
        line-height: 1.9;
    }

    .single-news-lead {
        margin-bottom: 17px;
        padding: 13px 14px;

        font-size: 14px;
        line-height: 2.1;
    }

    .single-news-meta {
        display: block;

        padding: 9px 12px;

        font-size: 12px;
        line-height: 2;
    }

    .single-news-meta span {
        display: block;
        margin-bottom: 3px;
    }

}/* =========================================
   ظاهر نهایی اطلاعات و اشتراک‌گذاری تک‌خبر
========================================= */

/* اطلاعات خبر */

.single-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;

    margin-top: 5px;
    padding: 10px 15px;

    background: #f8fafc;
    border-right: 3px solid #06356f;
    border-radius: 7px;

    color: #6b7280;
    font-size: 13px;
    line-height: 1.9;
}

.single-news-meta span {
    display: inline-flex;
    align-items: center;
}


/* =========================================
   فاصله بین سربرگ و بدنه
========================================= */

.single-news-header {
    margin-bottom: 32px;
}


/* =========================================
   بخش اشتراک‌گذاری
========================================= */

.single-news-share {
    margin-top: 45px;
    padding-top: 25px;

    border-top: 1px solid #e5e7eb;
}

.share-title {
    margin-bottom: 16px;

    color: #06356f;
    font-size: 17px;
    font-weight: 700;
}


/* دکمه‌ها */

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 105px;
    min-height: 40px;

    padding: 8px 15px;

    border: 0;
    border-radius: 7px;

    color: #fff !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    text-decoration: none !important;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


/* رنگ دکمه‌ها */

.share-telegram {
    background: #229ed9;
}

.share-whatsapp {
    background: #25d366;
}

.share-eitaa {
    background: #f28c28;
}

.share-bale {
    background: #2196f3;
}

.share-copy {
    background: #06356f;
}

.share-native {
    background: #555;
}

.share-print {
    background: #777;
}


/* پیام کپی */

.copy-message {
    display: none;

    margin-top: 12px;

    color: #16803c;
    font-size: 13px;
}

.copy-message.show {
    display: block;
}


/* =========================================
   موبایل
========================================= */

@media (max-width: 600px) {

    .single-news-meta {
        display: block;

        padding: 10px 12px;

        font-size: 12px;
        line-height: 2;
    }

    .single-news-meta span {
        display: block;
        margin-bottom: 3px;
    }

    .single-news-share {
        margin-top: 35px;
        padding-top: 20px;
    }

    .share-title {
        font-size: 16px;
        margin-bottom: 13px;
    }

    .share-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .share-button {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 9px 6px;

        font-size: 12px;
    }
}/* =========================================
   بهینه‌سازی نهایی تک‌خبر برای موبایل
========================================= */

@media (max-width: 600px) {

    /* صفحه */
    .single-news-page {
        padding: 12px 0 30px;
    }

    /* کادر خبر */
    .single-news {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 16px 14px;
        border-radius: 7px;
        box-shadow: none;
    }

    /* عنوان */
    .single-news-header h1 {
        font-size: 21px;
        line-height: 1.9;
        margin-bottom: 14px;
    }

    /* لید */
    .single-news-lead {
        padding: 12px 13px;
        margin-bottom: 15px;

        font-size: 14px;
        line-height: 2.05;
    }

    /* اطلاعات خبر */
    .single-news-meta {
        padding: 9px 11px;
        font-size: 12px;
        line-height: 2;
    }

    /* بدنه */
    .single-news-content {
        width: 100%;
        max-width: 100%;

        font-size: 16px;
        line-height: 2.15;

        text-align: right;
    }

    /* پاراگراف */
    .single-news-content p {
        margin-bottom: 18px;
    }

    /* تیترهای داخل خبر */
    .single-news-content h2 {
        font-size: 19px;
        line-height: 1.9;
        margin: 28px 0 14px;
    }

    .single-news-content h3 {
        font-size: 18px;
        line-height: 1.9;
        margin: 25px 0 13px;
    }

    .single-news-content h4 {
        font-size: 17px;
        line-height: 1.9;
        margin: 22px 0 12px;
    }

    /* =========================================
       تصاویر داخل متن
    ========================================= */

    .single-news-content .wp-block-image {
        width: 100%;
        max-width: 100%;
        margin: 20px 0;
    }

    .single-news-content .wp-block-image img {
        display: block;

        width: auto;
        max-width: 100%;
        height: auto;

        margin-left: auto;
        margin-right: auto;

        border-radius: 6px;
    }

    /* جلوگیری از بیرون‌زدگی تصویر */
    .single-news-content img {
        max-width: 100%;
        height: auto;
    }

    /* تصویر راست و چپ در موبایل */
    .single-news-content .wp-block-image.alignright,
    .single-news-content .wp-block-image.alignleft {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

    /* کپشن */
    .single-news-content .wp-block-image figcaption {
        font-size: 12px;
        line-height: 1.8;
        margin-top: 7px;
    }

    /* =========================================
       اشتراک‌گذاری
    ========================================= */

    .single-news-share {
        margin-top: 30px;
        padding-top: 20px;
    }

    .share-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .share-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .share-button {
        width: 100%;
        min-width: 0;
        min-height: 39px;

        padding: 8px 5px;

        font-size: 12px;
        white-space: nowrap;
    }

}/* =========================================
   آخرین تنظیمات ظاهری تک خبر
========================================= */

/* پس زمینه کمی تیره تر و حرفه ای تر */
.single-news-page {
    background: #f1f3f6;
}

/* خود کارت خبر */
.single-news {
    background: #ffffff;
}

/* عنوان خبر - دسکتاپ */
.single-news-header h1 {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.9;
    color: #06356f;
    letter-spacing: -0.2px;
}

/* لید خبر */
.single-news-lead {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 2.05;
    color: #555d68;
    background: #eef2f6;
}

/* اطلاعات خبر */
.single-news-meta {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 12px;
}

/* متن اصلی خبر */
.single-news-content {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 15.5px;
    font-weight: 400;
    line-height: 2.25;
    color: #3f4348;
}

/* تیترهای داخل متن */
.single-news-content h2 {
    font-size: 19px;
    font-weight: 700;
}

.single-news-content h3 {
    font-size: 17px;
    font-weight: 700;
}

.single-news-content h4 {
    font-size: 16px;
    font-weight: 700;
}

/* کپشن تصاویر */
.single-news-content .wp-block-image figcaption {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

/* بخش اشتراک */
.single-news-share {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}


/* =========================================
   موبایل
========================================= */

@media (max-width: 600px) {

    .single-news-page {
        background: #f1f3f6;
    }

    .single-news-header h1 {
        font-size: 21px;
        line-height: 1.9;
    }

    .single-news-lead {
        font-size: 14px;
        line-height: 2.05;
    }

    .single-news-content {
        font-size: 15px;
        line-height: 2.15;
    }

}/* =========================================
   طراحی نهایی و حرفه‌ای صفحه تک خبر
========================================= */

/* پس زمینه کلی صفحه تک خبر */
.single-news-page {
    background: #eef1f4;
    padding-top: 32px;
    padding-bottom: 55px;
}

/* کارت اصلی خبر */
.single-news {
    max-width: 900px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.045);
}

/* عنوان */
.single-news-header h1 {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.95;
    color: #173f70;
    letter-spacing: -0.15px;
}

/* لید */
.single-news-lead {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 2.15;
    color: #59616b;
    background: #f0f3f6;
    border-right: 4px solid #7d98b7;
}

/* اطلاعات خبر */
.single-news-meta {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    color: #737b84;
    background: #f7f8fa;
}

/* متن اصلی */
.single-news-content {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 15.5px;
    font-weight: 400;
    line-height: 2.3;
    color: #3d4349;
    text-align: right;
}

/* پاراگراف‌های متن */
.single-news-content p {
    margin-bottom: 19px;
}

/* تیترهای داخل خبر */
.single-news-content h2,
.single-news-content h3,
.single-news-content h4 {
    font-family: Tahoma, Arial, sans-serif;
    color: #173f70;
    font-weight: 700;
}

.single-news-content h2 {
    font-size: 19px;
    line-height: 1.9;
}

.single-news-content h3 {
    font-size: 17px;
    line-height: 1.9;
}

.single-news-content h4 {
    font-size: 16px;
    line-height: 1.9;
}

/* لینک‌های داخل خبر */
.single-news-content a {
    color: #155a96;
}

/* تصویر داخل متن */
.single-news-content .wp-block-image {
    margin-top: 28px;
    margin-bottom: 28px;
}

.single-news-content .wp-block-image img {
    border-radius: 7px;
}

/* کپشن تصویر */
.single-news-content .wp-block-image figcaption {
    font-size: 12px;
    color: #777;
    line-height: 1.9;
}

/* بخش اشتراک */
.single-news-share {
    border-top-color: #e1e5e9;
}

.share-title {
    font-size: 16px;
}


/* =========================================
   موبایل
========================================= */

@media (max-width: 600px) {

    .single-news-page {
        background: #eef1f4;
        padding-top: 12px;
        padding-bottom: 30px;
    }

    .single-news {
        border-radius: 7px;
    }

    .single-news-header h1 {
        font-size: 21px;
        line-height: 1.9;
    }

    .single-news-lead {
        font-size: 14px;
        line-height: 2.1;
    }

    .single-news-content {
        font-size: 15px;
        line-height: 2.15;
    }

    .single-news-content h2 {
        font-size: 18px;
    }

    .single-news-content h3 {
        font-size: 17px;
    }

}/* =========================================
   فونت حرفه‌ای فارسی برای تک خبر
   Vazirmatn
========================================= */

.single-news-page,
.single-news-page .single-news,
.single-news-page .single-news-header,
.single-news-page .single-news-content,
.single-news-page .single-news-share {
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

/* عنوان */
.single-news-page .single-news-header h1 {
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* لید */
.single-news-page .single-news-lead {
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    font-weight: 400;
}

/* اطلاعات خبر */
.single-news-page .single-news-meta {
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

/* متن خبر */
.single-news-page .single-news-content {
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    font-weight: 400;
}

/* تیترهای داخل خبر */
.single-news-page .single-news-content h2,
.single-news-page .single-news-content h3,
.single-news-page .single-news-content h4 {
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    font-weight: 700;
}

/* کپشن تصویر */
.single-news-page .wp-block-image figcaption {
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

/* دکمه‌ها */
.single-news-page .share-button,
.single-news-page .share-title,
.single-news-page .copy-message {
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}/* =========================================
   منوی اصلی - اصلاح نهایی موبایل و دسکتاپ
========================================= */

.main-navigation {
    position: relative;
    z-index: 9999;
    overflow: visible !important;
}

.main-navigation > .navigation-inner {
    position: relative;
    overflow: visible !important;
}

.main-navigation > .navigation-inner > ul {
    position: relative;
    overflow: visible !important;
}

.main-navigation li {
    position: relative;
}


/* =========================================
   زیرمنوی اصلی
========================================= */

.main-navigation .sub-menu {
    position: absolute !important;
    top: 0 !important;
    right: 100% !important;

    width: 220px !important;
    min-width: 220px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: none !important;

    background: #fff !important;

    list-style: none !important;

    box-shadow: 0 5px 20px rgba(0,0,0,0.18);

    z-index: 99999 !important;

    opacity: 1 !important;
    visibility: visible !important;
}


/* زیرمنوی سطح اول */

.main-navigation > .navigation-inner > ul > li > .sub-menu {
    top: 0 !important;
    right: 100% !important;
}


/* زیرمنوی انتخاب‌شده */

.main-navigation
.menu-item-has-children.submenu-open
> .sub-menu {
    display: block !important;
}


/* آیتم‌های زیرمنو */

.main-navigation .sub-menu > li {
    position: relative;

    display: block !important;

    width: 100% !important;

    flex: none !important;
}


/* لینک‌های زیرمنو */

.main-navigation .sub-menu > li > a {
    display: block !important;

    width: 100% !important;

    box-sizing: border-box;

    padding: 11px 15px !important;

    background: #fff !important;

    color: #333 !important;

    border-bottom: 1px solid #eee;

    text-align: right;

    font-size: 13px;

    line-height: 1.7;

    white-space: nowrap;

    text-decoration: none;
}


.main-navigation .sub-menu > li > a:hover {
    background: #f5f8fb !important;
    color: #06356f !important;
}


/* زیرمنوی سطح بعد */

.main-navigation .sub-menu .sub-menu {
    top: 0 !important;
    right: 100% !important;
}


/* علامت کنار آیتم دارای زیرمنو */

.main-navigation
.menu-item-has-children
> a::after {
    content: "‹";

    display: inline-block;

    margin-right: 7px;

    font-size: 13px;

    opacity: 0.65;
}


/* =========================================
   منوی چندسطحی دسکتاپ
   فقط شاخه فعال باز باشد
   آیتم بدون زیرمنو = لینک عادی
========================================= */

@media (min-width: 601px) {

    /*
     * همه زیرمنوها به صورت پیش‌فرض بسته
     */
    .main-navigation .sub-menu {
        display: none !important;

        opacity: 1 !important;
        visibility: visible !important;
    }


    /*
     * فقط زیرمنوی آیتمی که JS باز کرده
     */
    .main-navigation
    .menu-item-has-children.submenu-open
    > .sub-menu {

        display: block !important;

        opacity: 1 !important;
        visibility: visible !important;
    }


    /*
     * زیرمنوی سطح دوم
     * کنار آیتم خودش باز شود
     */
    .main-navigation
    .sub-menu
    .menu-item-has-children
    > .sub-menu {

        top: 0 !important;

        right: 100% !important;

        left: auto !important;

        display: none !important;
    }


    /*
     * اگر آیتم سطح دوم خودش زیرمنو داشته باشد
     * فقط همان زیرمنوی خودش باز شود
     */
    .main-navigation
    .sub-menu
    .menu-item-has-children.submenu-open
    > .sub-menu {

        display: block !important;
    }

}


/* =========================================
   موبایل
========================================= */

@media (max-width: 600px) {

    .main-navigation {
        width: 100% !important;

        overflow-x: auto !important;
        overflow-y: visible !important;

        -webkit-overflow-scrolling: touch;
    }


    .main-navigation > .navigation-inner {
        display: block !important;

        width: 100% !important;

        overflow: visible !important;
    }


    /*
     * خود منوی اصلی موبایل
     * افقی و یک‌خطی
     */
    .main-navigation
    > .navigation-inner
    > ul {

        display: flex !important;

        flex-wrap: nowrap !important;

        justify-content: flex-start !important;

        align-items: center !important;

        width: max-content !important;

        min-width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;

        overflow: visible !important;
    }


    /*
     * آیتم‌های اصلی
     */
    .main-navigation
    > .navigation-inner
    > ul
    > li {

        display: block !important;

        flex: 0 0 auto !important;

        width: auto !important;

        position: relative !important;
    }


    /*
     * لینک‌های اصلی
     */
    .main-navigation
    > .navigation-inner
    > ul
    > li
    > a {

        display: block !important;

        white-space: nowrap !important;

        padding: 8px 10px !important;

        font-size: 13px !important;
    }


    /*
     * همه زیرمنوها در موبایل
     */
    .main-navigation .sub-menu {

        position: absolute !important;

        top: 100% !important;

        right: 0 !important;

        left: auto !important;

        width: 210px !important;

        min-width: 210px !important;

        max-width: 210px !important;

        display: none !important;

        margin: 0 !important;

        padding: 0 !important;

        background: #fff !important;

        box-shadow: 0 5px 18px rgba(0,0,0,0.18);

        z-index: 100000 !important;

        opacity: 1 !important;

        visibility: visible !important;
    }


    /*
     * فقط زیرمنوی انتخاب‌شده باز شود
     */
    .main-navigation
    .menu-item-has-children.submenu-open
    > .sub-menu {

        display: block !important;
    }


    /*
     * زیرمنوی سطح دوم
     */
    .main-navigation
    .sub-menu
    .sub-menu {

        top: 0 !important;

        right: 100% !important;
    }


    /*
     * آیتم‌های داخل زیرمنو
     */
    .main-navigation
    .sub-menu
    > li {

        display: block !important;

        width: 100% !important;

        flex: none !important;
    }


    /*
     * لینک‌های زیرمنوی موبایل
     */
    .main-navigation
    .sub-menu
    > li
    > a {

        display: block !important;

        width: 100% !important;

        box-sizing: border-box;

        padding: 10px 13px !important;

        font-size: 13px !important;

        white-space: nowrap !important;
    }

}/* =========================================
   منوی اصلی موبایل - دو ردیفه
========================================= */

@media (max-width: 600px) {

    .main-navigation {
        width: 100% !important;
        overflow: visible !important;
    }

    .main-navigation > .navigation-inner {
        width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }

    .main-navigation > .navigation-inner > ul {
        display: flex !important;

        flex-direction: row !important;
        flex-wrap: wrap !important;

        justify-content: center !important;
        align-items: center !important;
        align-content: center !important;

        width: 100% !important;
        min-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }

    .main-navigation > .navigation-inner > ul > li {
        display: block !important;

        flex: 0 0 25% !important;
        width: 25% !important;

        box-sizing: border-box;

        text-align: center !important;

        position: relative !important;
    }

    .main-navigation > .navigation-inner > ul > li > a {
        display: block !important;

        width: 100% !important;
        box-sizing: border-box;

        padding: 8px 3px !important;

        font-size: 11px !important;

        line-height: 1.7;

        white-space: nowrap !important;

        text-align: center !important;
    }

}/* =========================================
   زیرمنوی موبایل
   باز شدن به سمت پایینِ والد
========================================= */

@media (max-width: 600px) {

    /* هر آیتم والد مرجع زیرمنوی خودش باشد */
    .main-navigation
    > .navigation-inner
    > ul
    > li {
        position: relative !important;
    }


    /* زیرمنوی موبایل */
    .main-navigation
    > .navigation-inner
    > ul
    > li
    > .sub-menu {

        position: absolute !important;

        top: calc(100% + 6px) !important;

        right: 50% !important;

        transform: translateX(50%) !important;

        left: auto !important;

        width: 190px !important;

        min-width: 190px !important;

        max-width: 190px !important;

        display: none !important;

        margin: 0 !important;

        padding: 5px 0 !important;

        background: #ffffff !important;

        border: 1px solid #dfe5ec !important;

        border-radius: 6px !important;

        box-shadow:
            0 5px 15px rgba(0,0,0,0.16) !important;

        z-index: 100000 !important;

        opacity: 1 !important;

        visibility: visible !important;
    }


    /* فقط زیرمنوی انتخاب‌شده نمایش داده شود */
    .main-navigation
    > .navigation-inner
    > ul
    > li.submenu-open
    > .sub-menu {

        display: block !important;
    }


    /* آیتم‌های داخل زیرمنو */
    .main-navigation
    > .navigation-inner
    > ul
    > li
    > .sub-menu
    > li {

        display: block !important;

        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;
    }


    /* لینک‌های زیرمنو */
    .main-navigation
    > .navigation-inner
    > ul
    > li
    > .sub-menu
    > li
    > a {

        display: block !important;

        width: 100% !important;

        box-sizing: border-box;

        padding: 9px 12px !important;

        background: #ffffff !important;

        color: #333 !important;

        font-size: 12px !important;

        line-height: 1.8 !important;

        text-align: right !important;

        white-space: nowrap !important;

        border-bottom: 1px solid #eeeeee !important;
    }


    /* آخرین گزینه خط پایین نداشته باشد */
    .main-navigation
    > .navigation-inner
    > ul
    > li
    > .sub-menu
    > li:last-child
    > a {

        border-bottom: none !important;
    }


    /* حالت لمس/انتخاب */
    .main-navigation
    > .navigation-inner
    > ul
    > li
    > .sub-menu
    > li
    > a:active {

        background: #f5f8fb !important;
    }


    /* زیرمنوی سطح دوم فعلاً کنار زیرمنوی اول */
    .main-navigation
    > .navigation-inner
    > ul
    > li
    > .sub-menu
    .sub-menu {

        top: 0 !important;

        right: 100% !important;

        transform: none !important;
    }

}/* =========================================
   اصلاح نهایی زیرمنوی موبایل
   جهت باز شدن بر اساس موقعیت آیتم
========================================= */

@media (max-width: 600px) {

    /*
     * پیش‌فرض:
     * آیتم‌های وسط → زیرمنو مستقیم پایین
     */
    .main-navigation
    > .navigation-inner
    > ul
    > li
    > .sub-menu {

        top: calc(100% + 6px) !important;

        right: 50% !important;

        left: auto !important;

        transform: translateX(50%) !important;

        width: 190px !important;
        min-width: 190px !important;
        max-width: 190px !important;

        z-index: 100000 !important;
    }


    /*
     * آیتم‌های سمت راست
     * زیرمنو به سمت چپ / داخل صفحه
     *
     * دو آیتم اول
     */
    .main-navigation
    > .navigation-inner
    > ul
    > li:nth-child(1)
    > .sub-menu,

    .main-navigation
    > .navigation-inner
    > ul
    > li:nth-child(2)
    > .sub-menu {

        right: 0 !important;

        left: auto !important;

        transform: none !important;
    }


    /*
     * آیتم‌های سمت چپ
     * زیرمنو به سمت راست / داخل صفحه
     *
     * دو آیتم آخر
     */
    .main-navigation
    > .navigation-inner
    > ul
    > li:nth-last-child(1)
    > .sub-menu,

    .main-navigation
    > .navigation-inner
    > ul
    > li:nth-last-child(2)
    > .sub-menu {

        right: auto !important;

        left: 0 !important;

        transform: none !important;
    }


    /*
     * فلش آیتم‌های دارای زیرمنو
     *
     * چون سایت راست‌به‌چپ است،
     * فلش به سمت چپ نمایش داده می‌شود.
     */
    .main-navigation
    .menu-item-has-children
    > a::after {

        content: "‹" !important;

        display: inline-block !important;

        margin-right: 7px !important;
        margin-left: 0 !important;

        font-size: 14px !important;

        opacity: 0.75;

        transform: none !important;
    }

}/* =========================================
   جهت هوشمند زیرمنوی موبایل
========================================= */

@media (max-width: 600px) {

    .main-navigation
    > .navigation-inner
    > ul
    > li
    > .sub-menu {

        top: calc(100% + 6px) !important;

        width: 190px !important;
        min-width: 190px !important;
        max-width: 190px !important;

        display: none !important;

        z-index: 100000 !important;

        transform: none !important;
    }


    /* =====================================
       وسط → پایین
    ===================================== */

    .main-navigation
    > .navigation-inner
    > ul
    > li.submenu-open-down
    > .sub-menu {

        display: block !important;

        right: 50% !important;
        left: auto !important;

        transform: translateX(50%) !important;
    }


    /* =====================================
       سمت راست → به سمت چپ
    ===================================== */

    .main-navigation
    > .navigation-inner
    > ul
    > li.submenu-open-left
    > .sub-menu {

        display: block !important;

        right: 0 !important;
        left: auto !important;

        transform: none !important;
    }


    /* =====================================
       سمت چپ → به سمت راست
    ===================================== */

    .main-navigation
    > .navigation-inner
    > ul
    > li.submenu-open-right
    > .sub-menu {

        display: block !important;

        right: auto !important;
        left: 0 !important;

        transform: none !important;
    }


    /* =====================================
       فلش زیرمنو
    ===================================== */

    .main-navigation
    .menu-item-has-children
    > a::after {

        content: "‹" !important;

        display: inline-block !important;

        margin-right: 7px !important;
        margin-left: 0 !important;

        font-size: 14px !important;

        opacity: 0.75 !important;
    }

}/* =========================================
   منوی اصلی - تنظیم نهایی موبایل
========================================= */

@media (max-width: 600px) {

    /*
     * خود آیتم والد
     * مرجع قرارگیری زیرمنو باشد.
     */
    .main-navigation
    > .navigation-inner
    > ul
    > li {

        position: relative !important;
    }


    /*
     * همه زیرمنوهای موبایل
     * فقط رو به پایین باز شوند.
     */
    .main-navigation
    .sub-menu {

        position: absolute !important;

        top: calc(100% + 6px) !important;

        right: 50% !important;

        left: auto !important;

        transform: translateX(50%) !important;

        width: 190px !important;

        min-width: 190px !important;

        max-width: 190px !important;

        margin: 0 !important;

        padding: 5px 0 !important;

        display: none !important;

        background: #ffffff !important;

        border: 1px solid #dfe5ec !important;

        border-radius: 6px !important;

        box-shadow:
            0 5px 15px rgba(0,0,0,0.16) !important;

        opacity: 1 !important;

        visibility: visible !important;

        z-index: 100000 !important;
    }


    /*
     * فقط زیرمنوی والد انتخاب‌شده باز شود.
     */
    .main-navigation
    .menu-item-has-children.submenu-open
    > .sub-menu {

        display: block !important;
    }


    /*
     * زیرمنوی سطح دوم هم فعلاً
     * رو به پایین باز شود.
     */
    .main-navigation
    .sub-menu
    .sub-menu {

        position: absolute !important;

        top: calc(100% + 6px) !important;

        right: 50% !important;

        left: auto !important;

        transform: translateX(50%) !important;
    }


    /*
     * آیتم‌های داخل زیرمنو
     */
    .main-navigation
    .sub-menu
    > li {

        display: block !important;

        width: 100% !important;

        flex: none !important;

        position: relative !important;
    }


    /*
     * لینک‌های زیرمنو
     */
    .main-navigation
    .sub-menu
    > li
    > a {

        display: block !important;

        width: 100% !important;

        box-sizing: border-box;

        padding: 9px 12px !important;

        background: #ffffff !important;

        color: #333333 !important;

        font-size: 12px !important;

        line-height: 1.8 !important;

        text-align: right !important;

        white-space: nowrap !important;

        border-bottom: 1px solid #eeeeee !important;
    }


    /*
     * آخرین گزینه خط پایین نداشته باشد.
     */
    .main-navigation
    .sub-menu
    > li:last-child
    > a {

        border-bottom: none !important;
    }


    /*
     * فلش آیتم‌های دارای زیرمنو
     *
     * فلش به سمت چپ است.
     */
.main-navigation
.menu-item-has-children
> a::after {

    content: "←" !important;

    display: inline-block !important;

    margin-right: 7px !important;
    margin-left: 0 !important;

    font-size: 13px !important;

    line-height: 1 !important;

    opacity: 0.75 !important;

    transform: none !important;
}

}/* =========================================
   فلش زیبای زیرمنوی اصلی
   جهت: چپ ←
========================================= */

.main-navigation
.menu-item-has-children
> a::after {

    content: "←" !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 18px !important;
    height: 18px !important;

    margin-right: 7px !important;
    margin-left: 0 !important;

    font-size: 11px !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    border: 1px solid rgba(255,255,255,0.45) !important;

    border-radius: 50% !important;

    opacity: 0.9 !important;

    vertical-align: middle !important;

    box-sizing: border-box !important;

    transform: none !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease !important;
}


/* =========================================
   دسکتاپ - هنگام قرار گرفتن ماوس
========================================= */

@media (min-width: 601px) {

    .main-navigation
    .menu-item-has-children
    > a:hover::after {

        border-color: rgba(255,255,255,0.85) !important;

        background: rgba(255,255,255,0.12) !important;

        transform: translateX(-2px) !important;
    }

}


/* =========================================
   موبایل
========================================= */

@media (max-width: 600px) {

    .main-navigation
    .menu-item-has-children
    > a::after {

        width: 16px !important;
        height: 16px !important;

        margin-right: 5px !important;

        font-size: 10px !important;

        border-color: rgba(255,255,255,0.40) !important;

        background: rgba(255,255,255,0.05) !important;
    }


    /*
     * هنگام انتخاب آیتم،
     * فلش کمی به سمت چپ حرکت کند.
     */
    .main-navigation
    .menu-item-has-children.submenu-open
    > a::after {

        border-color: rgba(255,255,255,0.85) !important;

        background: rgba(255,255,255,0.12) !important;

        transform: translateX(-2px) !important;
    }

}/* =========================================
   اصلاح نهایی منوی چندسطحی
========================================= */


/* =========================================
   دسکتاپ
========================================= */

@media (min-width: 601px) {

    /*
     * همه زیرمنوها
     */
    .main-navigation .sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
    }


    /*
     * زیرمنوی بازشده
     */
    .main-navigation
    .menu-item-has-children.submenu-open
    > .sub-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }


    /*
     * وقتی ماوس روی آیتم نیست،
     * زیرمنوی آن بسته باشد.
     */
    .main-navigation
    .menu-item-has-children:not(:hover)
    > .sub-menu {
        display: none !important;
    }


    /*
     * سطح دوم و بالاتر
     */
    .main-navigation
    .sub-menu
    .menu-item-has-children
    > .sub-menu {

        top: 0 !important;

        right: 100% !important;

        left: auto !important;

        display: none !important;
    }


    /*
     * سطح دوم وقتی خودش انتخاب شده
     */
    .main-navigation
    .sub-menu
    .menu-item-has-children.submenu-open
    > .sub-menu {

        display: block !important;
    }


    /*
     * آیتم‌های زیرمنو
     */
    .main-navigation
    .sub-menu
    .menu-item-has-children:hover
    > .sub-menu {

        display: block !important;
    }

}


/* =========================================
   موبایل
========================================= */

@media (max-width: 600px) {

    /*
     * والد هر زیرمنو
     */
    .main-navigation
    .menu-item-has-children {

        position: relative !important;
    }


    /*
     * همه زیرمنوهای موبایل
     *
     * پیش‌فرض:
     * مستقیم زیر والد باز می‌شوند.
     */
    .main-navigation
    .sub-menu {

        position: absolute !important;

        top: calc(100% + 6px) !important;

        right: 50% !important;

        left: auto !important;

        transform: translateX(50%) !important;

        width: 190px !important;

        min-width: 190px !important;

        max-width: 190px !important;

        display: none !important;

        margin: 0 !important;

        padding: 5px 0 !important;

        background: #fff !important;

        border: 1px solid #dfe5ec !important;

        border-radius: 6px !important;

        box-shadow:
            0 5px 15px rgba(0,0,0,0.16) !important;

        opacity: 1 !important;

        visibility: visible !important;

        z-index: 100000 !important;
    }


    /*
     * فقط زیرمنوی بازشده
     */
    .main-navigation
    .menu-item-has-children.submenu-open
    > .sub-menu {

        display: block !important;
    }


    /*
     * سطح دوم موبایل هم رو به پایین باز شود،
     * نه به چپ یا راست.
     */
    .main-navigation
    .sub-menu
    .menu-item-has-children
    > .sub-menu {

        top: calc(100% + 6px) !important;

        right: 50% !important;

        left: auto !important;

        transform: translateX(50%) !important;

        display: none !important;
    }


    /*
     * سطح دوم وقتی لمس/انتخاب شد
     */
    .main-navigation
    .sub-menu
    .menu-item-has-children.submenu-open
    > .sub-menu {

        display: block !important;
    }


    /*
     * -------------------------------------
     * آموزشی پژوهشی
     *
     * چون در گوشه چپ و بالاست،
     * زیرمنو به سمت راست خودش قرار بگیرد.
     * -------------------------------------
     */
    .main-navigation
    > .navigation-inner
    > ul
    > li:first-child
    > .sub-menu {

        right: auto !important;

        left: 0 !important;

        transform: none !important;
    }


    /*
     * آیتم‌های داخل زیرمنو
     */
    .main-navigation
    .sub-menu
    > li {

        display: block !important;

        width: 100% !important;

        flex: none !important;

        position: relative !important;
    }


    /*
     * لینک‌های زیرمنو
     */
    .main-navigation
    .sub-menu
    > li
    > a {

        display: block !important;

        width: 100% !important;

        box-sizing: border-box;

        padding: 9px 12px !important;

        font-size: 12px !important;

        line-height: 1.8 !important;

        text-align: right !important;

        white-space: nowrap !important;

        background: #fff !important;

        color: #333 !important;

        border-bottom: 1px solid #eee !important;
    }


    /*
     * آخرین گزینه
     */
    .main-navigation
    .sub-menu
    > li:last-child
    > a {

        border-bottom: none !important;
    }

}