/*
Theme Name: rf
Theme URI: https://tabnakweb.ir/
Author: daythemes
Author URI: https://tabnakweb.ir/
Description: HTML5-CSS3 / Copyright © www.daythemes.ir - 2030 
Version: 1.9
*/

/* --- 1. فونت‌ها و آیکون‌ها (Fonts & Icons) --- */
@font-face {
    font-family: 'farsinum';
    src: url("fonts/Sahel-FD-WOL.woff") format("woff");
}
@font-face {
    font-family: 'bamdad';
    src: url('fonts/bamdad.eot?8kcieo');
    src: url('fonts/bamdad.eot?8kcieo#iefix') format('embedded-opentype'), url('fonts/bamdad.ttf?8kcieo') format('truetype'), url('fonts/bamdad.woff?8kcieo') format('woff'), url('fonts/bamdad.svg?8kcieo#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}
[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'bamdad' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* --- 2. ریست و تنظیمات کلی (Reset & Base Styles) --- */
:root {
    --primary-text-color: #333;
    --accent-color: #d92121;
    --border-color: #e0e0e0;
    --background-color: #f0f2f5;
    --footer-bg-color: #27404a;
    --footer-text-color: #a7b7bd;
    --footer-heading-color: #ffffff;
    --container-width: 1200px;
}

* {
    outline: 0;
    box-sizing: border-box;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
}

body {
    font-family: 'daythemes', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    background-color: var(--background-color);
    color: var(--primary-text-color);
    font-size: 16px;
    line-height: 2;
    overflow-x: hidden;
    cursor: default;
}

a {
    text-decoration: none;
    color: var(--primary-text-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-color);
}

ul, li {
    border: 0;
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'daythemes', tahoma;
}

input, button, textarea, select {
    font: 12px/2 daythemes, tahoma;
}

textarea, input, select {
    background: #fff;
    color: #555;
    border: 2px solid #e5e5e5;
    text-indent: 5px;
    width: 100%;
}

button {
    cursor: pointer;
    border: 0;
    background: #d60707;
    color: #fff;
}

iframe {
    overflow: hidden;
    max-width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.mobile {
       display: none;

}
.desktop {
    display: block;

}


/* --- 3. هدر (Header) --- */
.main-header {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    position: relative;
    z-index: 1001;
    background-color: #fff;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 50px;
}
.logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.logo {
    max-height: 50px;
    width: auto;
}
.text-logo {
    color: #333;
    font-weight: bold;
}
.text-logo b {
    display: block;
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.header-controls-right, .header-controls-left {
    display: flex;
    align-items: center;
    flex-basis: 200px;
}
.header-controls-right {
    justify-content: flex-start;
}
.header-controls-left {
    justify-content: flex-end;
}
.btn-live {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 15px;
}
.btn-live:hover {
    background-color: #b31b1b;
    color: white;
}
.icon-link {
    font-size: 1.2rem;
    margin: 0 10px;
}
.menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.menu-toggle span {
    font-family: 'daythemes', sans-serif;
    font-weight: bold;
    font-size: 0.95rem;
}
.main-nav {
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}
/* --- استایل‌های منوی اصلی با پشتیبانی از زیرمنو --- */
.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0 0;
    margin: 0;
    position: relative;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

/* آیکون زیرمنو */
.main-nav ul li a .submenu-toggle {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-right: 5px;
}

.main-nav ul li.has-submenu:hover > a .submenu-toggle {
    transform: rotate(180deg);
}

/* زیرمنوها */
.main-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    z-index: 1000;
    flex-direction: column;
    padding: 0;
}

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

.main-nav ul li ul li a {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: normal;
    justify-content: space-between;
}

.main-nav ul li ul li:last-child a {
    border-bottom: none;
}

.main-nav ul li ul li a:hover {
    background-color: #f5f5f5;
}

.main-nav ul li ul li a .submenu-toggle {
    transform: rotate(-90deg);
}

.main-nav ul li ul li ul {
    top: 0;
    right: 100%;
}

/* نمایش زیرمنو هنگام هاور */
.main-nav ul li:hover > ul {
    display: flex;
}

/* زیرمنوهای سطح سوم */
.main-nav ul li ul li.has-submenu:hover > a .submenu-toggle {
    transform: rotate(180deg) !important;
}

/* --- استایل‌های واکنش‌گرا برای موبایل --- */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    /* در صورت نیاز می‌توانید استایل‌های موبایل را اینجا اضافه کنید */
}

/* --- 4. منوی کشویی و جستجو (Sidebar Menu & Search) --- */
#page-wrapper {
    position: relative;
    background-color: #fff;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 90%;
    background-color: #fff;
    z-index: 2000;
    border-left: 1px solid var(--border-color);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: #f8f8f8;
}
.sidebar-header span {
    font-weight: bold;
    font-size: 1.1rem;
}
.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    padding: 0;
    line-height: 1;
}
.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-links li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
    color: #444;
}
.sidebar-links li a:hover {
    background-color: #f5f5f5;
    color: var(--accent-color);
}
.sidebar-links li a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.sidebar-links .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.sidebar-links .sub-menu li a {
    padding-right: 35px;
    font-weight: normal;
    font-size: 0.95rem;
}
.sidebar-links .menu-item-has-children.submenu-open > a > i {
    transform: rotate(180deg);
}
.sidebar-links .menu-item-has-children.submenu-open > .sub-menu {
    max-height: 500px;
}
body.sidebar-is-open .sidebar {
    transform: translateX(0);
}
body.sidebar-is-open #page-wrapper {
    transform: translateX(-320px);
}
body.sidebar-is-open #page-wrapper::before {
    opacity: 1;
    visibility: visible;
    cursor: pointer;
}

.search-overlay {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: #27404a;
    z-index: 1000;
    padding: 25px 0;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.search-overlay.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.search-overlay-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}
.search-form {
    position: relative;
    display: flex;
}
.search-field {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #fff;
    background-color: #fff;
    color: #333;
    font-size: 1.1rem;
    border-radius: 5px;
    font-family: 'daythemes', sans-serif;
}
.search-field::placeholder {
    color: #999;
}
.search-submit {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #555;
    font-size: 1.3rem;
    cursor: pointer;
}


/* --- 5. بخش‌های صفحه اصلی (Homepage Sections) --- */
.main-content {
    padding: 20px 0;
}
.column-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}
.column-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.column-title-wrapper .column-title {
    border: none;
    padding: 0;
    margin: 0;
}
.column-title-simple {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 20px 0;
}
.column-title-wrapper.compact {
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.column-title-wrapper .arrows {
    display: flex;
    gap: 15px;
}

/* بخش خبر اول */
.top-stories-section {
    padding-top: 25px;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
}
.section-top-nav {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}
.section-top-nav a {
    padding: 10px 0;
    font-weight: bold;
    position: relative;
}
.section-top-nav a.active {
    color: var(--primary-text-color);
}
.section-top-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}
.top-stories-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr;
    gap: 25px;
    padding-bottom: 25px;
}
.lead-story a {
    color: var(--primary-text-color);
}
.lead-story img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}
.lead-story-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0;
}
.lead-story a:hover .lead-story-title {
    color: var(--accent-color);
}
/* ===============================================
// START: Lead Story Hot Badge Styles (Beautiful Version)
// =============================================== */

.lead-story-image-wrapper {
    position: relative;
    display: block;
}

.lead-story .hot-badge.lead-story-hot {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #d92121;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.lead-story .hot-badge.lead-story-hot i {
    font-size: 0.9rem;
}

.sub-stories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}
.sub-story a {
    color: var(--primary-text-color);
}
.sub-story-image-wrapper {
    position: relative;
    margin-bottom: 10px;
}
.sub-story-image-wrapper img {
    width: 100%;
    border-radius: 5px;
}
.sub-story h4 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}
.sub-story a:hover h4 {
    color: var(--accent-color);
}
.live-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
}
.recent-top-story a {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    color: var(--primary-text-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.recent-top-story img {
    width: 100px;
    height: auto;
    border-radius: 5px;
    flex-shrink: 0;
}
.recent-top-story h3 {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 700;
}
.recent-top-story a:hover h3 {
    color: var(--accent-color);
}
.recent-list-item a {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-text-color);
}
.recent-list-item:last-child a {
    border-bottom: none;
}
.recent-list-item .tiny-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}
.recent-list-item h4 {
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.7;
    margin: 0;
}
.recent-list-item a:hover h4 {
    color: var(--accent-color);
}
.extra-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.extra-story-item a {
    color: var(--primary-text-color);
}
.extra-story-item img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}
.extra-story-item h4 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}
.extra-story-item a:hover h4 {
    color: var(--accent-color);
}

/* بخش اصلی اخبار */
.main-news-grid {
    padding: 20px 0;
    background-color: #fff;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.main-story a {
    display: block;
    color: var(--primary-text-color);
}
.main-story img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}
.main-story .story-title {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 800;
}
.main-story a:hover .story-title {
    color: var(--accent-color);
}
.small-stories-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.small-story a {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--primary-text-color);
}
.small-story .small-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.small-story h4 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: bold;
}
.small-story a:hover h4 {
    color: var(--accent-color);
}
.most-read-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: most-read-counter;
}
.most-read-list li {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 45px 15px 0;
    position: relative;
    counter-increment: most-read-counter;
}
.most-read-list li:last-child {
    border-bottom: none;
}
.most-read-list li::before {
    content: counter(most-read-counter);
    position: absolute;
    right: 0;
    top: 15px;
    font-size: 2.5rem;
    font-weight: 800;
    color: #e0e0e0;
    line-height: 1;
}
.most-read-list li a {
    color: var(--primary-text-color);
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1.7;
}
.most-read-list li a:hover {
    color: var(--accent-color);
}


/* --- تب‌باکس ساده و تمیز (Simple Clean Tab Box) --- */
.tab-buttons {
    display: flex;
    background-color: #f8f9fa;
    overflow: hidden;
    margin-bottom: 0;
}

.tab-button {
    flex: 1;
    padding: 3px 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-button:hover {
    background-color: #e9ecef;
    color: #27404a;
}

.tab-button.active {
background-color: white;
    color: #d92121;
    border-bottom: 2px solid #d92121;
    text-align: right;
    font-weight: bold;
    font-size: 22px;

}

.tab-content {
    background-color: white;
    border: 3px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.tab-pane {
    display: none;
    padding: 0;
}

.tab-pane.active {
    display: block;
}

/* استایل لیست ساده */
.news-column .most-read-list {
    margin: 0;
    padding: 0;
}

.news-column .most-read-list li {
  
      padding: 2px 25px 10px 0px;
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
    position: relative;
    counter-increment: most-read-counter;
    font-family: farsinum;
}

.news-column .most-read-list li:last-child {
    border-bottom: none;
}
.news-column .most-read-list li:nth-child(even) {
    background-color: #eaeaea;
}

.news-column .most-read-list li::before {
    content: counter(most-read-counter);
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #d92121;
    line-height: 1;
}

.news-column .most-read-list li:hover::before {
    color: #000;
}

.news-column .most-read-list li a {
    color: #27404a;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
}

.news-column .most-read-list li a:hover {
    color: #d92121;
}

/* حذف border از عنوان ستون */
.news-column .column-title-wrapper {
    margin-bottom: 15px;
}

.news-column .column-title-wrapper .column-title {
    color: #27404a;
    font-size: 1.2rem;
    font-weight: 700;
}

/* واکنش‌گرا برای تب‌ها */
@media (max-width: 768px) {

    
    .tab-button {
        border-bottom: 1px solid #e9ecef;
        border-right: none;
        text-align: center;
    }
    
    .tab-button.active {
        border-bottom: 2px solid #d92121;
        border-right: none;
    }
    
    .tab-content {
        border-top: 1px solid #e9ecef;
        border-radius: 0 0 6px 6px;
    }
    
    .news-column .most-read-list li {
        padding: 12px 40px 12px 12px;
    }
    
    .news-column .most-read-list li::before {
        font-size: 1.3rem;
        right: 12px;
    }
}

/* استایل ساده برای حالت‌های مختلف تب */
.tab-pane#tab-new .most-read-list li::before {
    color: #27404a;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #999;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    line-height: 1;
}

.tab-pane#tab-popular .most-read-list li::before {
    color: #d92121;
}

.tab-pane#tab-random .most-read-list li::before {
    color: #6c757d;
}


/* بخش بشنوید (Media Carousel) */
.media-carousel {
    padding: 30px 0;
    background-color: #fff;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: bold;
}
.section-header .arrow-link {
    font-size: 1.2rem;
    color: #888;
}
.carousel-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.media-card {
    width: 100%;
    cursor: pointer;
}
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 10px;
}
.card-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.media-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}
.media-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}
.card-title {
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: bold;
    margin: 0;
    color: var(--primary-text-color);
    transition: color 0.3s ease;
}
.media-card:hover .card-title {
    color: var(--accent-color);
}


.notes-section {
    margin: 20px 0;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.note-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.note-item:hover {
    transform: translateY(-5px);
}

.note-image-wrapper {
    position: relative;
    overflow: hidden;
}

.note-image-wrapper img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.note-item:hover .note-image-wrapper img {
    transform: scale(1.05);
}

.note-author-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 10px 10px 10px;
    text-align: center;
}

.note-author-name {
    font-size: 12px;
    font-weight: bold;
}

.note-title {
    padding: 10px;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    background: #f8f9fa;
}

.note-item a {
    text-decoration: none;
    color: #333;
}

.note-item a:hover {
    color: #007cba;
}

/* بنر تبلیغاتی */
.promo-banner-wrapper {
    padding: 20px 0;
}
.promo-banner-contained {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    border-radius: 8px;
    overflow: hidden;
    background-image: linear-gradient(to left, rgba(39, 64, 74, 0.95) 0%, rgba(39, 64, 74, 0.8) 40%, rgba(39, 64, 74, 0.1) 70%), url('https://images.unsplash.com/photo-1589935447037-13372c3b224c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG9טby1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center 30%;
}
.promo-title {
    color: white;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0;
}
.promo-button {
    background-color: var(--footer-bg-color);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}
.promo-button:hover {
    background-color: #3a5c6b;
    color: white;
}

/* کیوسک روزنامه */
.newspaper-kiosk {
    padding: 30px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.kiosk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.kiosk-item {
    position: relative;
}

.kiosk-item a {
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.kiosk-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.kiosk-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.kiosk-item a:hover img {
    transform: scale(1.05);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.text-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 20px 10px 10px 10px;
}

.post-title-kiosk {
    margin: 0 0 5px 0;
    padding: 0;
font-size: 15px !important;
line-height: 1.3;
    font-weight: bold;
    text-align: center;
}

.author-name {
    font-size: 12px;
    text-align: center;
    opacity: 0.9;
}
/* --- 6. صفحه داخلی مطلب (Single Post) --- */
.single-post-page-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding: 30px 0;
}
.main-article-area {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
}
.post-content {
    background-color: white;
    padding: 30px;
}
.post-info-sticky-wrapper {
    position: sticky;
    top: 20px;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.post-meta {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}


/* ===============================================
// START: Author Sidebar Box Styles (Compact Version)
// =============================================== */
/* استایل باکس نویسنده مخصوص موبایل */
/* استایل باکس نویسنده مینیمال و جمع‌وجور (مخصوص موبایل) */
.author-mobile-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between; /* فاصله انداختن بین نام و دکمه */
    padding: 15px 0;
    margin: 20px 0;
    border-top: 1px solid #eee;    /* خط جداکننده بالا */
    border-bottom: 1px solid #eee; /* خط جداکننده پایین */
    background-color: transparent; /* بدون پس‌زمینه */
}

/* بخش سمت راست (عکس و نام) */
.author-min-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* استایل آواتار */
.author-min-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.author-min-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-min-avatar.no-image {
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* بخش متن (نام و لیبل) */
.author-min-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-label {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 2px;
}

.author-min-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.author-min-name a {
    color: #333;
    text-decoration: none;
}

/* دکمه سمت چپ */
.author-min-btn {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid; /* رنگ از PHP گرفته می‌شود */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    font-weight: bold;
    transition: all 0.3s ease;
}

.author-min-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.author-min-btn:hover {
    background-color: #f9f9f9;
}

.author-min-btn:hover i {
    transform: translateX(-3px);
}

/* مخفی کردن در دسکتاپ */
@media (min-width: 993px) {
    .author-mobile-minimal {
        display: none !important;
    }
}
.author-sidebar-box {
    background: var(--author-color, #3498db);
    border-radius: 8px;
padding: 16px 2px;
margin-bottom: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 70px;
    text-align: center;
}

.author-sidebar-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--author-color, #3498db) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.author-sidebar-box > * {
    position: relative;
    z-index: 2;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    margin: 0 auto 10px auto;
    background: rgba(255,255,255,0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    margin: 0 0 10px 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.author-name a {
    color: white;
    text-decoration: none;
    display: block;
}

.author-name a:hover {
    opacity: 0.9;
    color: white;
}

.author-full-profile {
    display: block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 500;
    line-height: 1.2;
}

.author-full-profile:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* استایل‌های واکنش‌گرا */
@media (max-width: 992px) {
    .author-sidebar-box {
        padding: 12px;
        max-width: 65px;
    }
    
    .author-avatar {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }
    
    .author-name {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .author-full-profile {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) {
    .author-sidebar-box {
        display: none;
    }
}
.post-meta span {
    display: block;
    font-family: farsinum;
}
.post-meta span:first-child {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}
.date-box {
    background-color: #f0f2f5;
    border-radius: 8px;
    padding: 10px;
    width: 70px;
    margin: 0 auto;
    border: 1px solid #e5e5e5;
}
.date-day {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    display: block;
    line-height: 1.1;
}
.date-month-year {
    font-size: 0.8rem;
    color: #777;
    display: block;
    margin-top: 5px;
}
.post-id-box {
    margin-top: 15px;
    padding: 8px 10px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    font-family: farsinum, sans-serif;
    text-align: center;
}
.post-id-box span {
    font-weight: bold;
}

.rank-math-breadcrumb {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 15px 0 25px 0;
    font-size: 1.2rem;
    color: #777;
    font-weight: bold;
}
.rank-math-breadcrumb a {
    color: #555;
}
.rank-math-breadcrumb a:hover {
    color: var(--accent-color);
}
.rank-math-breadcrumb .separator {
    margin: 0 6px;
}
.rank-math-breadcrumb .last {
    color: #333;
    font-weight: bold;
}

.post-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 20px 0;
}
.post-rootitr {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: bold;
}
.post-extract {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin: 15px 0;
    background-color:#eee;
    padding: 8px;
    border-radius: 4px;
        text-align: justify;
}
.post-header-meta {
    padding: 10px 0;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
}
.post-header-meta .meta-item {
    margin-left: 20px;
}
.post-author-name {
    font-size: 0.9rem;
    color: #777;
}
.hot-post-badge {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 10px;
}

.social-share-desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.social-share-desktop span {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 5px;
}
.social-share-desktop a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #eee;
    color: #555;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.social-share-desktop a:hover {
    background-color: var(--accent-color);
    color: white;
}
.social-share a.facebook:hover { background-color: #3b5998; }
.social-share a.twitter:hover { background-color: #00acee; }
.social-share a.telegram:hover { background-color: #0088cc; }
.social-share a.envelope:hover { background-color: #bb001b; }
.social-share a.print:hover { background-color: #666; }

.featured-image {
    margin: 0 0 25px 0;
    padding: 0;
}
.featured-image img {
    width: 100%;
    border-radius: 5px;
}
.article-body {
    font-size: 1.1rem;
    line-height: 2;
}
.article-body p {
    margin: 0 0 25px 0;
}

.article-body a {
color: var(--accent-color);
    
}

    .table-responsive {
            display: block;
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        /* استایل کلی جدول */
        .article-body table {
            width: 100% !important;
            font-size: 14px;
            margin-bottom: 15px;
            color: var(--primary-text-color); /* استفاده از متغیر */
            height: auto !important;
            border: none !important;
            border-collapse: separate !important;
            border-spacing: 0 5px;
        }

        /* استایل هدر جدول (ردیف اول) - استفاده از accent-color */
        .article-body table tr:first-of-type td,
        .article-body table tr th {
            background-color: var(--accent-color) !important; /* استفاده از متغیر */
            color: #fff;
            padding: 10px;
            border: none;
            text-align: center;
            font-weight: 400;
            height: auto !important;
            vertical-align: middle;
        }
        
        /* اصلاح برای ردیف دوم که ادامه‌ی هدر است */
        .article-body table tr:nth-child(2) td {
            background-color: var(--accent-color) !important; /* استفاده از متغیر */
            color: #fff;
            border: none;
        }

        /* استایل سلول‌های بدنه جدول */
        .article-body table tr td {
            border: 1px solid var(--border-color); /* استفاده از متغیر */
            padding: 12px 12px;
            line-height: 2.1;
            font-size: 14px;
            text-align: center;
            background-color: #fff;
            border-radius: 10px;
            height: auto !important;
            vertical-align: middle;
        }

        /* رنگ‌بندی راه راه (Zebra Striping) */
        .article-body table tr:nth-child(odd) td {
            background-color: #f9f9f9; /* می‌توان این را هم کمی تغییر داد اما پیش‌فرض خوب است */
        }
        
        /* بازنویسی رنگ پس‌زمینه برای ردیف‌های هدر */
        .article-body table tr:first-of-type td, 
        .article-body table tr:nth-child(2) td {
            background-color: var(--accent-color) !important; /* استفاده از متغیر */
        }

        /* استایل تگ‌های داخلی */
        .article-body table h3 {
            font-size: 14px !important;
            margin: 0;
            font-weight: bold;
            line-height: 1.5;
        }
        
        /* رنگ متن هدرها */
        .article-body table tr:first-of-type td h3 {
            color: #fff; /* معمولا روی رنگ accent سفید بهتر است */
        }

.article-body h1,.article-body h2,.article-body h3,.article-body h4,.article-body h5,.article-body h6{margin-top:25px;font-family:"daythemes";margin-bottom:10px;line-height:1.5;font-weight:400}


.article-body pre {
	max-width:100%;
	overflow:auto}

.article-body img {
	max-width:100%}
.article-body iframe {
	max-width:100%}


.article-body .gallery{    clear: both;
    margin: 0 auto 18px;
    display: inline-table;}
.article-body .gallery .gallery-item{display:inline-block;text-align:center;vertical-align:top;width:100%;padding:10px}
.article-body .gallery-columns-2 .gallery-item{max-width:50%}
.article-body .gallery-columns-3 .gallery-item{max-width:33.33%}
.article-body .gallery-columns-4 .gallery-item{max-width:25%}
.article-body .gallery-columns-5 .gallery-item{max-width:20%}
.article-body .gallery-columns-6 .gallery-item{max-width:16.66%}
.article-body .gallery-columns-7 .gallery-item{max-width:14.28%}
.article-body .gallery-columns-8 .gallery-item{max-width:12.5%}
.article-body .gallery-columns-9 .gallery-item{max-width:11.11%}
.article-body .gallery .gallery-item img{height:auto;-webkit-transition:all .4s;transition:all .4s;margin:0 auto}
.article-body .gallery .gallery-item a:hover img{opacity:.6!important;-webkit-transform:scale(1.1);transform:scale(1.1);box-shadow:0 0 6px rgba(0,0,0,.32)}
.article-body .gallery-caption{color:#888;margin:0 0 12px}

.article-body ol,.article-body ul{margin:20px 20px 20px 0}
.article-body ul li{list-style:outside disc;list-style-image:none}
.article-body ol li::marker {font-family: farsinum;}


.article-body ol li{list-style:outside decimal}
.article-body li{margin:0 0 5px}
.article-body li ul,.article-body li ol{margin:5px 0 0 15px}
.article-body blockquote{position:relative;font-style:normal;padding:20px;background:#eee;margin:20px 0;margin-top:40px;border-radius:10px}
.article-body blockquote p{padding:0;margin:0}
.article-body blockquote:before{position:relative;content:"\e91f";top:-25px;color:#aaa;font-family:'bamdad';font-size:2em;right:45%;padding:15px;line-height:5px;border-radius:50%}
.article-body blockquote p{font-size:1em;font-weight:800}
.wp-caption-text {
    display: block;
    text-align: center;
    font-size: 15px;
    color: #444;
    margin-top: 15px;
    padding: 12px 20px;
 background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
 border: 1px solid #e1e5e9;
    border-radius: 0 0 4px 4px;
    line-height: 1.6;
}


/* اطمینان از وسط‌چین شدن تصاویر با کپشن و کلاس aligncenter */
/* **اجبار** به وسط‌چین شدن المان wp-caption با استفاده از !important */
.wp-caption.aligncenter {
    /* اطمینان از حذف خاصیت شناور (float) که مانع وسط‌چین می‌شود */
    float: none !important; 
    
    /* اطمینان از اینکه المان به صورت بلوکی نمایش داده شود */
    display: block !important; 
    
    /* دستور اصلی وسط‌چین کردن بلوک‌ها */
    margin-left: auto !important;
    margin-right: auto !important;
    width: 80%;
}




/* ===============================================
// START: All Authors Page Styles
// =============================================== */











.authors-grid-container {
    padding: 40px 0;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.author-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
    position: relative;
}

.author-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--author-color, #3498db);
}

.author-card-inner {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.author-card-header {
    position: relative;
    padding: 40px 30px 60px 30px;
    background: linear-gradient(135deg, var(--author-color, #3498db) 0%, var(--author-color, #3498db) 100%);
    text-align: center;
}

.author-card-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card-avatar.no-image {
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.author-card-avatar.no-image i {
    opacity: 0.8;
}

.author-card-badge {
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    background: white;
    padding: 8px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 3;
    border: 2px solid var(--author-color, #3498db);
}

.post-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--author-color, #3498db);
    white-space: nowrap;
    font-family: farsinum, sans-serif;
}

.author-card-body {
    padding: 40px 25px 25px 25px;
    flex-grow: 1;
    text-align: center;
}

.author-card-name {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.author-card-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-card-name a:hover {
    color: var(--author-color, #3498db);
}

.author-card-bio {
    margin-bottom: 20px;
}

.author-card-bio p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-card-footer {
    padding: 0 25px 25px 25px;
    text-align: center;
}

.author-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--author-color, #3498db);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--author-color, #3498db);
}

.author-profile-link:hover {
    background: transparent;
    color: var(--author-color, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* استایل‌های واکنش‌گرا */
@media (max-width: 1200px) {
    .authors-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .authors-grid-container {
        padding: 30px 0;
    }
    
    .authors-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .author-card-header {
        padding: 30px 20px 50px 20px;
    }
    
    .author-card-avatar {
        width: 100px;
        height: 100px;
    }
    
    .author-card-body {
        padding: 35px 20px 20px 20px;
    }
    
    .author-card-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .authors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .author-card-header {
        padding: 25px 15px 45px 15px;
    }
    
    .author-card-avatar {
        width: 90px;
        height: 90px;
    }
    
    .author-card-body {
        padding: 30px 15px 15px 15px;
    }
    
    .author-card-name {
        font-size: 1.1rem;
    }
    
    .author-card-bio p {
        font-size: 0.9rem;
    }
}

/* انیمیشن برای کارت‌ها */
.author-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استاگرام برای کارت‌ها */
.author-card:nth-child(2) { animation-delay: 0.1s; }
.author-card:nth-child(3) { animation-delay: 0.2s; }
.author-card:nth-child(4) { animation-delay: 0.3s; }
.author-card:nth-child(5) { animation-delay: 0.4s; }
.author-card:nth-child(6) { animation-delay: 0.5s; }


/* --- استایل‌های واکنشگرا برای ویدئوهای وردپرس --- */
.wp-video {
    width: 100% !important;
    height: auto !important;
}

.wp-video-shortcode {
    max-width: 100%;
    height: auto;
}

video.wp-video-shortcode {
    width: 100% !important;
    height: auto !important;
}

/* استایل برای container ویدئو */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* نسبت 16:9 */
    margin: 20px 0;
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* استایل برای ویدئوهای جاسازی شده */
.embed-youtube,
.embed-vimeo {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin: 20px 0;
}

.embed-youtube iframe,
.embed-vimeo iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* استایل برای پلیر ویدیو در single-media.php */
.video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 25px auto;
}

.video-player-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-section-title {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-quality-links {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 3px solid var(--accent-color);
}

.video-quality-links h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1rem;
}

.video-quality-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-quality-links li {
    margin-bottom: 8px;
}

.quality-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.quality-link:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.quality-link::before {
    content: "↓";
    font-weight: bold;
}

/* استایل برای ویدئو در محتوای مقاله */
.article-body video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    .video-player-wrapper {
        margin: 15px auto;
    }
    
    .video-section-title {
        font-size: 1.1rem;
    }
    
    .video-quality-links {
        padding: 12px;
    }
    
    .quality-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .article-body video {
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .video-quality-links {
        padding: 10px;
    }
    
    .video-quality-links h5 {
        font-size: 0.9rem;
    }
    
    .quality-link {
        width: 100%;
        justify-content: center;
    }
}






/* ===============================================
// START: Styles for New Meta Fields in Single Post
// =============================================== */

/* استایل بخش منبع خبر در انتهای مطلب */
.post-source {
    margin: 30px 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
}

/* اصلاح چیدمان در بخش متای زیر عنوان */
.post-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* فاصله بین آیتم‌ها */
}
.post-header-meta .meta-item {
    margin-left: 0; /* حذف مارجین اضافی */
}

img.alignright {
	float:right;
	margin:0 0 1em 1em}
img.alignleft {
	float:left;
	margin:0 1em 1em 0}
img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto}
	.alignright {
	float:right;
	}
.alignleft {
	float:left;
	}
.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto}





/* --- استایل لینک کوتاه کپی‌کردنی (Short Link Copy) --- */

/* --- استایل لینک کوتاه کپی‌کردنی (حالت خطی و بدون کادر) --- */

/* 1. تنظیمات خطی برای لیبل و گروه ورودی */
.short-link-inline-group {
    display: flex; /* برای خطی کردن لیبل و گروه ورودی */
    align-items: center; /* تراز کردن عمودی */
    gap: 10px; /* فاصله بین لیبل و گروه ورودی */
    margin: 15px 0; /* فاصله بالا و پایین */
    /* حذف پس‌زمینه و کادر از ظرف اصلی */
}

.short-link-inline-group label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-text-color);
    margin-bottom: 0; /* حذف margin پایین برای خطی شدن */
    flex-shrink: 0; /* جلوگیری از کوچک شدن لیبل */
}

/* 2. گروه ورودی */
.short-link-input-group {
    display: flex;
    align-items: stretch;
    border: none; /* حذف کادر از ظرف داخلی */
    background-color: transparent; /* حذف پس‌زمینه از ظرف داخلی */
    flex-grow: 1; /* اجازه رشد به کل گروه ورودی */
    border-radius: 4px;
    overflow: hidden;
}

/* 3. استایل آیکون (بدون پس‌زمینه) */
.short-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background-color: #f1f1f1; /* پس‌زمینه خاکستری روشن برای آیکون */
    color: #555; 
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid #ddd; /* کادر نازک */
    border-right: none; /* حذف کادر سمت راست */
    border-radius: 4px 0 0 4px; /* گرد کردن گوشه چپ */
}

/* 4. استایل فیلد نمایش لینک */
.short-link-input {
    flex-grow: 1;
    border: 1px solid #ddd; /* کادر نازک */
    padding: 8px 10px; 
    background-color: #fff; /* نگه داشتن بک‌گراند سفید برای فیلد */
    text-indent: 0 !important; 
    font-size: 0.9rem;
    direction: ltr; 
    text-align: left;
    height: auto; 
    line-height: normal;
    /* حذف border-radius در سمت چپ */
    border-radius: 0; 
}

/* 5. استایل دکمه کپی */
.btn-copy {
    background-color: var(--accent-color); 
    color: white;
    padding: 8px 12px; 
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
    border: none;
    border-radius: 0 4px 4px 0; /* گرد کردن گوشه راست */
}

.btn-copy:hover {
    background-color: #b31b1b; 
}

/* پیام موفقیت‌آمیز بودن کپی */
.copy-message {
    /* ... (این استایل‌ها را می‌توانید بدون تغییر نگه دارید) ... */
    display: block;
    visibility: hidden;
    opacity: 0;
    color: #388e3c; 
    font-weight: bold;
    margin-top: 5px; 
    font-size: 0.9rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.copy-message.show {
    visibility: visible;
    opacity: 1;
}








/* استایل کپی در حالت موبایل (تغییر به عمودی برای نمایش بهتر) */
@media (max-width: 768px) {
    .short-link-inline-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .short-link-inline-group label {
        margin-bottom: 5px;
    }
    .short-link-input-group {
        width: 100%; /* اشغال عرض کامل */
    }
    .btn-copy .copy-text {
        display: none; 
    }
}





/* --- استایل بخش اخبار مرتبط (Related Posts) --- */
.related {
    background-color: white;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.related header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.related header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-text-color);
    margin: 0;
    padding: 0;
}

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

.related ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 15px;
}

.related ul li:last-child {
    border-bottom: none;
}

.related ul li:hover {
    background-color: #f8f9fa;
    padding-right: 20px;
}

.related ul li:hover::before {
    content: "›";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.related ul li a {
    color: var(--primary-text-color);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.6;
    display: block;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.related ul li a:hover {
    color: var(--accent-color);
}

/* استایل برای حالت‌های مختلف نمایش */
@media (max-width: 768px) {
    .related {
        padding: 20px;
        margin: 20px 0;
    }
    
    .related header h2 {
        font-size: 1.2rem;
    }
    
    .related ul li {
        padding: 10px 0;
    }
    
    .related ul li a {
        font-size: 0.9rem;
    }
}

/* استایل برای حالت hover پیشرفته */
.related ul li a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related ul li:hover a::before {
    opacity: 1;
}











/* ===============================================
// START: Gallery Meta Info Styles
// =============================================== */

/* استایل بخش متای گالری در هدر */
.post-header-meta .meta-item {
    color: #666;
    font-size: 0.9rem;
    font-family: farsinum, sans-serif;
}

.post-header-meta .meta-item:not(:last-child) {
    margin-left: 20px;
}

/* استایل credit عکس در زیر تصویر شاخص */
.photo-credit {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    margin-top: 8px;
    padding: 5px 0;
    border-top: 1px solid #eee;
    font-family: farsinum, sans-serif;
}

/* استایل بخش چکیده گالری */
.gallery-summary {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-right: 4px solid var(--accent-color);
    border-radius: 6px;
    padding: 20px 25px;
    margin: 25px 0;
    position: relative;
}

.gallery-summary::before {
    content: '\e91f';
    font-family: 'bamdad';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    color: #dee2e6;
    line-height: 1;
}

.summary-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
    margin: 0;
    position: relative;
    z-index: 2;
    text-align: justify;
}

/* استایل‌های واکنش‌گرا */
@media (max-width: 768px) {
    .post-header-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .post-header-meta .meta-item {
        margin-left: 0;
    }
    
    .gallery-summary {
        padding: 15px 20px;
        margin: 20px 0;
    }
    
    .gallery-summary::before {
        font-size: 1.5rem;
        top: 12px;
        right: 12px;
    }
    
    .summary-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* حالت hover برای چکیده گالری */
.gallery-summary:hover {
    background-color: #f1f3f4;
    border-color: #d92121;
    transition: all 0.3s ease;
}

.gallery-summary:hover::before {
    color: var(--accent-color);
    transition: color 0.3s ease;
}



.article-body .inline-related {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    margin: 30px 0;
    border-right: 3px solid var(--accent-color);
}
.inline-related img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.inline-related a {
    font-weight: bold;
    line-height: 1.7;
    color: var(--primary-text-color);
}
.inline-related a:hover {
    color: var(--accent-color);
}
.social-share-mobile {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    margin: 30px 0;
}
.social-share-mobile span {
    font-weight: bold;
    margin-left: 10px;
}
.social-share-mobile a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: #555;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.social-share-mobile a:hover {
    background-color: var(--accent-color);
    color: white;
}

/* دسته بندی و برچسب ها */
.post-taxonomies {
    padding: 15px 0;
    margin: 25px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.post-categories-list, .post-tags-list {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}
.post-tags-list {
    margin-top: 15px;
}
.taxonomy-title {
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
    margin: 0;
}
.taxonomy-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.post-taxonomies a {
    display: inline-block;
    background-color: #f0f2f5;
    color: #555;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}
.post-taxonomies a:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}
.post-categories-list ul, .post-categories-list li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline;
}
.post-categories-under-title {
    margin-bottom: 20px;
    padding: 0;
}
.post-categories-under-title a {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.95rem;
    margin-left: 15px;
    text-decoration: none;
}
.post-categories-under-title a:hover {
    text-decoration: underline;
    color: #333;
}
.post-categories-under-title ul, .post-categories-under-title li {
    display: inline;
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-tags-list .taxonomy-items a {
    background-color: transparent !important;
    border: none !important;
    padding: 2px 0 !important;
    border-radius: 0 !important;
    color: #555;
    font-weight: normal;
    font-size: 0.9rem;
}
.post-tags-list .taxonomy-items a::before {
    content: "#";
    margin-left: 8px;
    color: var(--accent-color);
    font-weight: bold;
}
.post-tags-list .taxonomy-items a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}


/* --- 7. صفحه آرشیو و نتایج جستجو (Archive & Search Results) --- */
.archive-header {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: white;
    margin-bottom: 30px;
}
.archive-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}
.archive-title span {
    font-weight: 400;
    color: #777;
}
.archive-body-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}
.archive-post-list {
    /* Container for post list */
}
.list-post-card {
    background-color: white;
    margin-bottom: 25px;
    border-radius: 5px;
    overflow: hidden;
}
.list-post-card a {
    display: flex;
    align-items: flex-start;
}


/* ===============================================
// START: Author Archive Page Styles
// =============================================== */

.author-profile-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 40px 30px;
    margin-bottom: 40px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.author-profile-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.author-profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.author-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-profile-info {
    flex-grow: 1;
}

.author-profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #2c3e50;
    line-height: 1.2;
}

.author-profile-bio p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
    text-align: justify;
}

.author-posts-section {
    margin-top: 40px;
}

.author-posts-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    color: #2c3e50;
}

/* استایل‌های واکنش‌گرا */
@media (max-width: 992px) {
    .author-profile-content {
        gap: 25px;
    }
    
    .author-profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .author-profile-name {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .author-profile-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .author-profile-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .author-profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .author-profile-name {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .author-profile-bio p {
        font-size: 1rem;
        text-align: center;
    }
    
    .author-posts-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .author-profile-header {
        padding: 25px 15px;
    }
    
    .author-profile-name {
        font-size: 1.4rem;
    }
    
    .author-profile-bio p {
        font-size: 0.95rem;
    }
}

/* استفاده از رنگ نویسنده اگر موجود باشد */
.author-profile-header.has-author-color {
    background: linear-gradient(135deg, var(--author-color) 0%, var(--author-color-dark) 100%);
    color: white;
}

.author-profile-header.has-author-color .author-profile-name {
    color: white;
}

.author-profile-header.has-author-color .author-profile-bio p {
    color: rgba(255,255,255,0.9);
}

/* ===============================================
// START: Archive Hot Badge Styles (Icon + Text)
// =============================================== */

.archive-post-list .hot-badge.archive-hot {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #d92121; /* بک‌گراند قرمز */
    color: white; /* متن و آیکون سفید */
    font-size: 0.8rem;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.archive-post-list .hot-badge.archive-hot i {
    font-size: 0.9rem;
}

/* انیمیشن برای جلب توجه در آرشیو */
.archive-post-list .hot-badge.archive-hot {
    animation: pulse-archive 2s infinite;
}

@keyframes pulse-archive {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(217, 33, 33, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .archive-post-list .hot-badge.archive-hot {
        top: 8px;
        left: 8px;
        font-size: 0.7rem;
        padding: 4px 8px;
        gap: 3px;
    }
    
    .archive-post-list .hot-badge.archive-hot i {
        font-size: 0.8rem;
    }
}






/* استایل‌های گالری فیلم */
.media-archive .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.media-archive .media-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-archive .media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.media-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.media-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.media-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card:hover .media-card-image img {
    transform: scale(1.05);
}

/* آیکون نوع رسانه جدید */
.media-type-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.media-type-icon .icon-playtw2 {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.media-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.media-card:hover .media-card-overlay {
    background: rgba(0,0,0,0.5);
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.media-card-overlay:hover .play-button {
   
    background: var(--footer-bg-color);
   
}
.play-button {
   
    background: var(--accent-color);
   
}
.media-card:hover .play-button {
    transform: scale(1.1);
}

.media-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.media-card-content {
    padding: 20px;
}

.media-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: var(--primary-text-color);
}

.media-reporter {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.media-reporter i {
    color: var(--accent-color);
}

.media-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.8rem;
    color: #888;
}

.media-views {
    display: flex;
    align-items: center;
    gap: 5px;
}
/* حذف سایدبار از صفحه آرشیو رسانه */
.archive-body-container .media-archive {
    width: 100%;
}

.archive-body-container:has(.media-archive) {
    display: block !important;
    grid-template-columns: 1fr !important;
}

/* روش جایگزین برای مرورگرهایی که از :has پشتیبانی نمی‌کنند */
.archive-body-container.media-archive-display {
    display: block !important;
    grid-template-columns: 1fr !important;
}

.archive-body-container.media-archive-display .archive-post-list {
    width: 100%;
    max-width: 100%;
}

/* اطمینان از حذف سایدبار در حالت‌های واکنش‌گرا */
@media (max-width: 992px) {
    .archive-body-container.media-archive-display,
    .archive-body-container:has(.media-archive) {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .archive-body-container.media-archive-display,
    .archive-body-container:has(.media-archive) {
        display: block !important;
    }
}

/* رسپانسیو */
@media (max-width: 768px) {
    .media-archive .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .media-card-content {
        padding: 15px;
    }
    
    .media-card-title {
        font-size: 1.1rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .media-type-icon {
        top: 10px;
        left: 10px;
        width: 35px;
        height: 35px;
    }
    
    .media-type-icon .icon-playtw2 {
        font-size: 1rem;
    }
}






/* استایل‌های گالری عکس */
.gallery-archive .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.gallery-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.05);
}

/* آیکون عکس جدید */
.gallery-image-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery-image-icon .icon-image1 {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-view-btn {
    color: white;
    background: var(--accent-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
}

.gallery-card-content {
    padding: 20px;
}

.gallery-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: var(--primary-text-color);
}

.gallery-photographer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.gallery-photographer i {
    color: var(--accent-color);
}

.gallery-summary {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.8rem;
    color: #888;
}

.gallery-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* حذف سایدبار از صفحه آرشیو گالری */
.archive-body-container.media-gallery-display {
    display: block !important;
    grid-template-columns: 1fr !important;
}

.archive-body-container.media-gallery-display .archive-post-list {
    width: 100%;
    max-width: 100%;
}

/* اطمینان از حذف سایدبار در حالت‌های واکنش‌گرا */
@media (max-width: 992px) {
    .archive-body-container.media-gallery-display {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .archive-body-container.media-gallery-display {
        display: block !important;
    }
}

/* رسپانسیو */
@media (max-width: 768px) {
    .gallery-archive .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-card-content {
        padding: 15px;
    }
    
    .gallery-card-title {
        font-size: 1.1rem;
    }
    
    .gallery-image-icon {
        top: 10px;
        left: 10px;
        width: 35px;
        height: 35px;
    }
    
    .gallery-image-icon .icon-image1 {
        font-size: 1rem;
    }
}






/* استایل‌های توییت‌ها */
.tweet-archive .tweet-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.tweet-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.tweet-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.tweet-card {
    padding: 25px;
}

.tweet-content {
    margin-bottom: 15px;
}

.tweet-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.tweet-text p {
    margin: 0;
}

.tweet-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.tweet-date {
    color: #888;
    font-size: 0.85rem;
    font-family: farsinum, sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* سایدبار توییت‌ها */
.tweet-about {
    text-align: center;
    padding: 20px 0;
}

.tweet-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.tweet-stats {
    display: flex;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.hashtag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag {
    display: inline-block;
    background: #f0f2f5;
    color: #1da1f2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hashtag:hover {
    background: #1da1f2;
    color: white;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .tweet-card {
        padding: 20px;
    }
    
    .tweet-footer {
        justify-content: flex-start;
    }
}














/* ===============================================
// START: Archive Hot Badge Position Style
// =============================================== */

/* 1. کانتینر تصویر را به عنوان مرجع موقعیت‌یابی تعریف می‌کنیم */
.list-card-thumbnail {
    position: relative;
}

/* ۱. استایل ظاهری اصلی برای همه نشان‌های "مهم" */
.hot-badge {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px; /* ردیوس ۴ پیکسل طبق درخواست شما */
    display: inline-block;
    line-height: 1.4;
}

/* ۲. استایل موقعیت مکانی فقط برای نشان روی تصویر در آرشیو */
.list-card-thumbnail .hot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    margin: 0;
}
.list-card-thumbnail {
    flex-shrink: 0;
}
.list-card-thumbnail img {
width: 286px;
    height: 200px;
    object-fit: cover;
}
.list-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.list-card-content .card-rootitr {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.list-card-content .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 10px 0;
}
.list-card-content .card-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 15px 0;
    text-align: justify;
}
.list-card-content .card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
    font-family: farsinum;
}
.list-card-content .hot-badge {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 10px;
}

/* صفحه بندی (Pagination) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--primary-text-color);
    font-weight: bold;
        font-family: farsinum, sans-serif;
}
.pagination span.current {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}
.pagination a:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* صفحه "هیچ نتیجه ای یافت نشد" */
.no-results-content {
    background-color: #fff;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}
.no-results-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.no-results-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}
.no-results-content .search-form {
    max-width: 500px;
    margin: 0 auto;
}


/* --- 8. سایدبار و ابزارک‌ها (Sidebar & Widgets) --- */
.post-sidebar .sidebar-widget {
    background-color: white;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}
.widget-post {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.widget-post:last-child {
    margin-bottom: 0;
}
.widget-post a {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.widget-post img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.widget-post h4 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: bold;
}
.widget-most-read {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget-most-read li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.widget-most-read li:first-child {
    padding-top: 0;
}
.widget-most-read li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.widget-most-read .rank-number {
    font-size: 1.5rem;
    font-family: farsinum;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1.2;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}
.widget-most-read a {
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--primary-text-color);
}
.widget-most-read a:hover {
    color: var(--accent-color);
}
.archive-btn {
    display: block;
    width: 100%;
    background-color: #27404a;
    color: white;
    padding: 0px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.archive-btn:hover {
    background-color: #1a2e36;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* --- 9. بخش نظرات (Comments) --- */
.comments_title {
    background: #27404a;
    border-radius: 4px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.comments_title h5 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}
.comment-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
    margin-right: auto;
}
.comments_title span {
    background: rgba(255, 255, 255, 0.85);
    color: #27404a;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: farsinum;
}
.comments ul {
    border-bottom: 1px dashed #f2f2f2;
    padding: 10px 5px;
    margin-bottom: 10px;
    text-align: right;
}
.comments li {
    color: #aaa;
}
.comments li:before {
    content: "";
    background-color: #aaa;
    height: 4px;
    width: 4px;
    float: right;
    margin: 10px 5px 0;
}
.comment-form {
    padding: 5px 10px;
}
.comment-respond {
    border-bottom: 1px dashed #F2F2F2;
    margin-bottom: 9px;
    display: inline-block;
    width: 100%;
    padding-bottom: 8px;
}
.comment-form .right {
    height: 76px;
    float: right;
}
.comment-form input, .comment-form textarea, .wpcf7-form input, .wpcf7-form textarea {
    width: 100%;
    background: #f2f2f2;
    padding: 2px 0;
    text-indent: 9px;
    margin-bottom: 10px;
    color: #777;
    border: 2px solid #e5e5e5; /* Added for consistency */
}
input#wp-comment-cookies-consent {
    float: right;
    width: 5%;
}
.comment-form input:hover, .comment-form textarea:hover {
    background: #f7f7f7
}
.wpcf7-form input {
    width: auto;
}
.wpcf7-form label, .wpcf7-form {
    width: 100%;
    display: inline-block;
    padding-bottom: 8px;
}
.comment-form textarea, .wpcf7-form textarea {
    resize: none;
    margin: 15px 0 0;
    height: 70px;
}
.comment-form button, .form-submit #submit, .wpcf7-form .wpcf7-form-control.wpcf7-submit {
    float: left;
    padding: 5px 10px;
    color: #FFF;
    cursor: pointer;
    margin-right: 5px;
    margin-top: 7px;
    border-radius: 2px;
    font: 1em daythemes;
    background: #d92121;
}
.form-submit #submit {
    border: 0;
}
.comments p.form-submit {
    display: none;
}
.comment {
    background: #FFF;
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid #e5e5e5;
}
.comment .content {
    text-align: initial;
    padding: 5px 5px 0 !important;
    color: #777 !important;
}
.vcard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 33px;
    padding: 5px;
    background: #c8dae1;
    border-radius: 4px;
}
.cm-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    float: none;
    height: auto;
    background: none;
    padding: 0;
    margin: 0;
}
.vcard .fn, .vcard .fn a {
    float: none;
    color: #ffffff;
    font-size: 0.7rem;
    background: #27404a;
    padding: 1px 10px;
    border-radius: 4px;
    font-style: normal;
}
.bypostauthor .fn:after {
    content: "مدیریت سایت";
    color: #FFF;
    margin: 5px 5px 5px 0;
    padding: 0 5px 3px;
    background: #d20001;
}
.vcard .says {
    float: none;
    color: #999;
    line-height: 1.5;
    font-family: farsinum;
}
.vcard .reply {
    float: left; /* Kept for positioning */
    margin: 0;
}
.comment-reply-title a {
    padding: 4px 6px;
    color: #888;
    float: left;
    background: #d60707;
    border-radius: 4px;
}
.vcard .reply a {
    padding: 2px 0 0 10px;
    color: #888;
    float: left;
    font-size: 12px;
}
.vcard .reply a:hover {
    background: #d60707;
    color: #fff;
    padding: 0 10px;
    border-radius: 4px;
}
.comment-reply-title a:before {
    content: "x";
    margin: 0 0 0 5px;
}
.comment-awaiting-moderation {
    float: left;
    opacity: 0.8;
    font-size: .8em;
}
.comment-body {
    margin: 5px 0;
    border-bottom: 3px dashed #F2F2F2;
}
.comments .depth-2, .comments .depth-3, .comments .depth-4, .comments .depth-5, .comments .depth-6, .comments .depth-7, .comments .depth-8, .comments .depth-9, .comments .depth-10 {
    background: #fff;
    margin: 5px;
}
.depth-2 .vcard, .depth-3 .vcard, .depth-4 .vcard, .depth-5 .vcard, .depth-6 .vcard, .depth-7 .vcard, .depth-8 .vcard, .depth-9 .vcard, .depth-10 .vcard {
    background: #f7f7f7;
}
.comments .navigation {
    display: inline-block;
    width: 100%;
}
.comments .navigation a {
    color: #FFF;
    float: right;
    padding: 4px 10px;
    background: rgba(35, 35, 35, 0.5);
    margin: 2px 0 5px;
}
.comments .navigation a:hover {
    background: #d20001;
}
.comments .navigation a:last-child {
    float: left;
}
.cm_like {
    float: left;
    margin: 10px;
}
.cm_like .ldc-ul_cont span {
    float: right;
    font-size: 11px;
    line-height: 15px;
    margin-left: 5px;
}
.cm_like .c_like, .cm_like .c_dislike {
    cursor: pointer;
    color: #666;
    float: left;
}
.cm_like .c_dislike {
    margin-left: 10px;
}
.cm_like .c_like i {
    color: #44be1f
}
.cm_like .c_dislike i {
    color: #d20001
}






/* ===============================================
// START: Tweet Section Styles (4-Column Grid)
// =============================================== */

.tweet-section {
    padding: 30px 0;
    background-color: #fff;
}

/* ساختار گرید اصلی */
.tweet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ۴ ستون مساوی در دسکتاپ */
    gap: 20px; /* فاصله بین ستون‌ها */
}

.tweet-card-link {
    display: flex; /* برای هم‌قد شدن کارت‌ها */
    text-decoration: none;
}

.tweet-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-right: 4px solid var(--accent-color);
    padding: 20px 25px 20px 35px; /* کاهش پدینگ برای ستون‌های کوچکتر */
    border-radius: 8px;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.tweet-card-link:hover .tweet-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.tweet-card::before {
    content: '\e91e';
    font-family: 'bamdad';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem; /* کوچکتر شدن آیکون */
    color: #e9ecef;
    line-height: 1;
    z-index: 1;
}

.tweet-content {
    position: relative;
    z-index: 2;
}

.tweet-content p {
    font-size: 1rem; /* کوچکتر شدن فونت */
    line-height: 1.7;
    color: #343a40;
    margin: 0;
}

.tweet-meta {
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.tweet-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem; /* کوچکتر شدن فونت برچسب */
}

/* --- استایل‌های واکنش‌گرا برای گرید توییت --- */
@media (max-width: 992px) {
    .tweet-grid {
        grid-template-columns: repeat(2, 1fr); /* ۲ ستونه در تبلت */
    }
}

@media (max-width: 768px) {
    /* در موبایل به اسکرول افقی تبدیل می‌شود (مانند سایر بخش‌ها) */
    .tweet-grid {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .tweet-grid::-webkit-scrollbar {
        display: none;
    }

    .tweet-grid .tweet-card-link {
        flex: 0 0 85%;
        max-width: 300px;
        scroll-snap-align: start;
    }
}





/* ===============================================
// START: Tweet List Column Styles
// =============================================== */

.tweet-list-column .most-read-list li {
    padding: 4px 8px 8px 4px; /* تغییر پدینگ برای حذف شماره */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
        background-color: #bf4949;
            border-radius: 3px;

}
.tweet-list-column .most-read-list li:nth-child(even) {
    background-color: #bd3b3b;
}
/* حذف شماره شمارنده از کنار توییت‌ها */
.tweet-list-column .most-read-list li::before {
    display: none;
}

.tweet-list-column .tweet-list-content p {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    /* **کد اصلاحی برای چسباندن متن و زمان به یکدیگر:** */
}

/* استایل محتوای توییت */
.tweet-list-column .tweet-list-content span {
    font-size: 0.7rem;
    line-height: 1.3;
    color: #000;
    margin: 0;
    /* **کد پیشنهادی:** تضمین می‌کند که خود عبارت زمان (مثلاً '(دیروز)') شکسته نشود. */
}





/* استایل برچسب */
.tweet-list-column .tweet-list-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 10px;
    background-color: #e9ecef;
    color: #6c757d;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}



    /* استایل‌های اختصاصی صفحه 404 */
    .error-404-container {
        text-align: center;
        padding: 120px 0;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        margin: 30px 0;
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .error-number {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 40px;
        position: relative;
    }
    
    .digit {
        font-size: 14rem;
        font-weight: 900;
        color: #d92121;
        text-shadow: 5px 5px 0 rgba(217, 33, 33, 0.1);
        margin: 0 15px;
        line-height: 1;
        position: relative;
        display: inline-block;
        animation: pulse 3s infinite;
    }
    
    .digit:nth-child(2) {
        color: #27404a;
        animation-delay: 0.5s;
    }
    
    .digit:nth-child(3) {
        color: #d92121;
        animation-delay: 1s;
    }
    
    @keyframes pulse {
        0% {
            transform: scale(1);
            text-shadow: 5px 5px 0 rgba(217, 33, 33, 0.1);
        }
        50% {
            transform: scale(1.05);
            text-shadow: 8px 8px 0 rgba(217, 33, 33, 0.15);
        }
        100% {
            transform: scale(1);
            text-shadow: 5px 5px 0 rgba(217, 33, 33, 0.1);
        }
    }
    
    .error-title {
        font-size: 3rem;
        color: #27404a;
        margin-bottom: 30px;
        font-weight: 800;
    }
    
    .error-body {
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }
    
    .error-body p {
        font-size: 1.4rem;
        line-height: 1.8;
        margin-bottom: 50px;
        color: #555;
    }
    
    /* دکمه‌های عملی */
    .action-buttons {
        margin: 50px 0;
    }
    
    .btn-home {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 18px 40px;
        background: #27404a;
        color: white;
        text-decoration: none;
        border-radius: 50px;
        font-weight: 700;
        font-size: 1.3rem;
        transition: all 0.3s ease;
        box-shadow: 0 6px 20px rgba(39, 64, 74, 0.3);
    }
    
    .btn-home:hover {
        background: #1a2e36;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(39, 64, 74, 0.4);
        color: white;
    }
    
    .btn-home i {
        font-size: 1.5rem;
    }
    
    /* واکنش‌گرا */
    @media (max-width: 768px) {
        .error-404-container {
            padding: 80px 20px;
        }
        
        .digit {
            font-size: 10rem;
            margin: 0 10px;
        }
        
        .error-title {
            font-size: 2.2rem;
        }
        
        .error-body p {
            font-size: 1.2rem;
        }
        
        .btn-home {
            padding: 15px 30px;
            font-size: 1.1rem;
        }
    }
    
    @media (max-width: 576px) {
        .digit {
            font-size: 6rem;
            margin: 0 5px;
        }
        
        .error-title {
            font-size: 1.8rem;
        }
        
        .error-body p {
            font-size: 1.1rem;
            margin-bottom: 40px;
        }
        
        .btn-home {
            padding: 12px 25px;
            font-size: 1rem;
        }
    }



.textads {
display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 0px;
    margin: 6px 0;
}

.textads a {
display: inline-block;
    padding: 2px 10px;
    background-color: #24A1DE;
    color: #333;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s 
ease;
    width: 100%;
    text-align: center;
}

.textads a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* برای حالت موبایل */
@media (max-width: 768px) {
    .textads {
        flex-direction: column;
        align-items: center;
    }
    
    .textads a {
        width: 100%;
        text-align: center;
    }
}








/* --- 10. فوتر (Footer) --- */
.main-footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 40px 0 0;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-column h3 {
    color: var(--footer-heading-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: bold;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul li a {
    color: var(--footer-text-color);
    display: block;
    padding: 5px 0;
}
.footer-column ul li a:hover {
    color: var(--accent-color);
}
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text-color);
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.social-icon:hover {
    background-color: var(--accent-color);
    color: white;
}
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #889ba2;
}
.scrolltop {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.scrolltop.visible {
    opacity: 1;
    visibility: visible;
}





/* استایل‌های صفحه تماس */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-right: 4px solid var(--accent-color);
}

.contact-info h3 {
    color: var(--primary-text-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.contact-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form-wrapper h3 {
    color: var(--primary-text-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: #b31b1b;
}

.contact-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.contact-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 20px;
    }
}








/* --- 11. کلاس‌های آیکون‌ها (Icon Classes) --- */



.icon-copy:before {
  content: "\e92f";
}
.icon-fire:before {
  content: "\e92b";
}
.icon-copy2:before {
  content: "\e930";
}
.icon-x:before {
  content: "\e91c";
}
.icon-twitter:before {
  content: "\e91c";
}
.icon-arrow-up-outline:before {
  content: "\e900";
}
.icon-arrow-up2:before {
  content: "\e901";
}
.icon-keyboard_arrow_up:before {
  content: "\e902";
}
.icon-menu:before {
  content: "\e903";
}
.icon-news_paper:before {
  content: "\e904";
}
.icon-search:before {
  content: "\e905";
}
.icon-search1:before {
  content: "\e906";
}
.icon-arrow-up:before {
  content: "\e907";
}
.icon-right-quote3:before {
  content: "\e908";
}
.icon-left-quote3:before {
  content: "\e909";
}
.icon-quotes-right2:before {
  content: "\e90a";
}
.icon-quotes-left2:before {
  content: "\e90b";
}
.icon-soundcloud2:before {
  content: "\e90c";
}
.icon-soundcloud1:before {
  content: "\e90d";
}
.icon-volume-lowtw1:before {
  content: "\e90e";
}
.icon-mictw:before {
  content: "\e90f";
}
.icon-telegramtw1:before {
  content: "\e910";
}
.icon-headphonestw1:before {
  content: "\e911";
}
.icon-stoptw:before {
  content: "\e912";
}
.icon-playtw2:before {
  content: "\e913";
}
.icon-filmtw1:before {
  content: "\e914";
}
.icon-playtw21:before {
  content: "\e915";
}
.icon-moon:before {
  content: "\e916";
}
.icon-sun:before {
  content: "\e917";
}
.icon-file-picture:before {
  content: "\e918";
}
.icon-camera:before {
  content: "\e919";
}
.icon-image1:before {
  content: "\e91a";
}
.icon-imagestw1:before {
  content: "\e91b";
}
.icon-chevron-up:before {
  content: "\e91d";
}
.icon-quote-right:before {
  content: "\e91e";
}
.icon-quote-left:before {
  content: "\e91f";
}
.icon-feed:before {
  content: "\e920";
}
.icon-feed1:before {
  content: "\e921";
}
.icon-link2:before {
  content: "\e922";
}
.icon-locate:before {
  content: "\e923";
}
.icon-point1:before {
  content: "\e924";
}
.icon-printer2:before {
  content: "\e925";
}
.icon-comment:before {
  content: "\e926";
}
.icon-printer:before {
  content: "\e927";
}
.icon-mode_comment:before {
  content: "\e928";
}
.icon-printer1:before {
  content: "\e929";
}
.icon-comments2:before {
  content: "\e92a";
}
.icon-instagramtw2:before {
  content: "\e92c";
}
.icon-time:before {
  content: "\e92d";
}
.icon-time1:before {
  content: "\e92e";
}
.icon-aparat:before {
  content: "\e935";
}
.icon-cloob:before {
  content: "\e936";
}
.icon-fz3:before {
  content: "\e955";
}
.icon-fz1:before {
  content: "\e956";
}
.icon-share:before {
  content: "\e957";
}
.icon-close:before {
  content: "\e95c";
}
.icon-phone1:before {
  content: "\e962";
}
.icon-home3:before {
  content: "\e96e";
}
.icon-qrcode:before {
  content: "\e979";
}
.icon-youtube:before {
  content: "\e97e";
}
.icon-language:before {
  content: "\e97f";
}
.icon-iran:before {
  content: "\e980";
}
.icon-igap:before {
  content: "\e981";
}
.icon-wispi:before {
  content: "\e982";
}
.icon-soroush:before {
  content: "\e983";
}
.icon-gap:before {
  content: "\e984";
}
.icon-Eitaa:before {
  content: "\e985";
}
.icon-bale:before {
  content: "\e986";
}
.icon-rubika:before {
  content: "\e987";
}
.icon-linkedin:before {
  content: "\e988";
}
.icon-linkedin1:before {
  content: "\e989";
}
.icon-pinterest:before {
  content: "\e98a";
}
.icon-link1:before {
  content: "\e9cb";
}
.icon-cancel-circle:before {
  content: "\ea0d";
}
.icon-facebook:before {
  content: "\ea90";
}
.icon-whatsapp:before {
  content: "\ea93";
}
.icon-twitter1:before {
  content: "\ea96";
}
.icon-appleinc:before {
  content: "\eabe";
}
.icon-android:before {
  content: "\eac0";
}
.icon-square1:before {
  content: "\f0c8";
}
.icon-circle:before {
  content: "\f111";
}
.icon-chevron-circle-left:before {
  content: "\f137";
}
.icon-chevron-circle-right:before {
  content: "\f138";
}
.icon-chevron-circle-up:before {
  content: "\f139";
}
.icon-chevron-circle-down:before {
  content: "\f13a";
}
.icon-pause_circle_outline:before {
  content: "\e01a";.pagination a, .pagination span
}
.icon-play_circle_outline:before {
  content: "\e01d";
}
.icon-stack-2:before {
  content: "\e033";
}
.icon-clear:before {
  content: "\e070";
}
.icon-arrow-left:before {
  content: "\e094";
}
.icon-arrow-right:before {
  content: "\e095";
}
.icon-vertical_align_bottom:before {
  content: "\e0f2";
}
.icon-apps:before {
  content: "\e1ff";
}
.icon-fullscreen:before {
  content: "\e20c";
}
.icon-fullscreen_exit:before {
  content: "\e20d";
}
.icon-zoom_in:before {
  content: "\e311";
}
.icon-zoom_out:before {
  content: "\e312";
}


.podcast-players {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

 audio {
	margin: 2px 0 8px;
	width: 100%;
}

audio::-webkit-media-controls-panel {
	width: 100%;
	background-color: #5a6e76;
	border: 3px solid white;
}

audio::-webkit-media-controls-timeline-container,
audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-volume-slider-container,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-current-time-display {
	color: white;
	text-shadow: none;
	box-shadow: none;
}

audio::-webkit-media-controls-play-button {
	background-color: white;
	border-radius: 50%;
	border: white 2px solid;
}

/* --- 12. استایل‌های واکنش‌گرا (Responsive Media Queries) --- */

/* دسکتاپ‌های کوچک و تبلت‌های بزرگ */
@media (max-width: 1024px) {
    .top-stories-grid {
        grid-template-columns: 2fr 1.5fr;
    }
    .extra-stories-col {
        grid-column: 1 / -1;
        margin-top: 25px;
    }
    .extra-list {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }
}

/* تبلت */
@media (max-width: 992px) {
    /* General */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .carousel-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Single Post */
    .single-post-page-content {
        grid-template-columns: 1fr;
    }
    .main-article-area {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .post-info-sticky-wrapper {
        display: none !important; /* Hide side meta */
    }
    .social-share-mobile {
        display: flex;
        justify-content: space-between;    }
    
    /* Archive/Search */
    .archive-body-container {
        grid-template-columns: 1fr !important;
    }
}

/* موبایل‌های بزرگ */
@media (max-width: 768px) {
    
    
    .mobile {
    display: block;

}
.desktop {
       display: none;

}
    
    .post-taxonomies {
    padding: 4px 0;
    margin: 4px 0;

}
    
    /* ======================================================
// START: Horizontal Scroll for Homepage Sections on Mobile
// ====================================================== */

/* ۱. استایل کلی برای کانتینرهای اسکرولی */
.media-carousel .carousel-content,
.photo-carousel .carousel-content,
.video-carousel .carousel-content,
.newspaper-kiosk .kiosk-grid {
    display: flex;             /* آیتم‌ها را در یک ردیف قرار می‌دهد */
    overflow-x: auto;          /* اسکرول افقی را فعال می‌کند */
    flex-wrap: nowrap;         /* از رفتن آیتم‌ها به خط بعدی جلوگیری می‌کند */
    
    /* بهبود تجربه کاربری اسکرول */
    scroll-snap-type: x mandatory; /* اسکرول را به لبه آیتم‌ها می‌چسباند */
    -webkit-overflow-scrolling: touch; /* اسکرول روان در دستگاه‌های اپل */
    padding-bottom: 15px; /* کمی فاصله برای سایه‌ها و زیبایی */
    
    /* مخفی کردن نوار اسکرول در مرورگرها */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}
.media-carousel .carousel-content::-webkit-scrollbar,
.photo-carousel .carousel-content::-webkit-scrollbar,
.video-carousel .carousel-content::-webkit-scrollbar,
.newspaper-kiosk .kiosk-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}


/* ۲. استایل آیتم‌های داخلی برای چسبیدن به لبه‌ها */
.carousel-content .media-card,
.kiosk-grid .kiosk-item {
    scroll-snap-align: start; /* هر آیتم را به ابتدای اسکرول می‌چسباند */
}


/* ۳. تعیین عرض آیتم‌ها برای بخش‌های تک پستی (بشنوید، عکس، فیلم) */
.media-carousel .carousel-content .media-card,
.photo-carousel .carousel-content .media-card,
.video-carousel .carousel-content .media-card {
    flex: 0 0 85%; /* هر آیتم ۸۵٪ عرض والد خود را می‌گیرد تا فقط یکی دیده شود */
    max-width: 300px; /* یک عرض حداکثری برای جلوگیری از کشیدگی بیش از حد */
}

/* ۴. تعیین عرض آیتم‌ها برای گیشه روزنامه (دو پستی) */
.newspaper-kiosk .kiosk-grid .kiosk-item {
    flex: 0 0 45%; /* هر آیتم ۴۵٪ عرض را می‌گیرد تا دو عدد در صفحه جا شوند */
    max-width: 180px;
}
/* ======================================================
// END: Horizontal Scroll for Homepage Sections on Mobile
// ====================================================== */
    
    
    .comments_title span {
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 0.7rem;
}
    .social-share-mobile span {
   
    display: none;
}
    .main-content {
    padding: 1px 0;
}
    .single-post-page-content {

     padding: 0px 0; 
}
    .rank-math-breadcrumb {
   
    margin: 0 0 ;
   
}
    
    
    /* General Layout */
    .top-stories-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    .extra-list {
        grid-template-columns: 1fr;
    }

    /* Header */
    .logo {
        max-height: 40px;
    }
    .menu-toggle span {
        display: none;
    }
    .header-controls-right, .header-controls-left {
        flex-basis: auto;
    }
    .main-nav {
        display: none;
    }
    body.sidebar-is-open #page-wrapper {
        transform: translateX(0);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 20px;
    }
    .footer-column {
        margin-bottom: 30px;
    }
    .social-icons {
        justify-content: center;
    }
    
    /* Homepage Sections */
    .promo-banner-contained {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        padding: 40px 25px;
    }
    .promo-title {
        font-size: 2.2rem;
    }

    /* Single Post */
    .post-content {
        padding: 20px;
    }
    .post-title {
        font-size: 1.6rem;
    }
    
    /* Archive/Search */
    .archive-title {
        font-size: 1.5rem;
    }
    .list-post-card a {
        flex-direction: column !important;
    }
    .list-card-thumbnail img {
        width: 100% !important;
        height: 200px !important;
    }
    .list-card-content {
        position: relative;
    }
    .list-post-card .list-card-thumbnail {
        position: relative;
    }
    .list-post-card .card-meta {
        position: absolute;
        bottom: 10px;
        left: 10px;
        background-color: rgba(0,0,0,0.5);
        color: white;
        padding: 3px 8px;
        border-radius: 3px;
        font-size: 0.8rem;
    }
    .list-card-content .card-title {
        margin-top: 15px;
    }
    .list-card-content .card-excerpt {
        display: none !important;
    }
    
    /* Comments */
    .comments_title {
        flex-direction: column;
        align-items: flex-start;
    }
    .comment-stats {
        margin-right: 0;
    }
}

/* موبایل‌های کوچک */
@media (max-width: 576px) {
    .lead-story-title {
        font-size: 1.5rem;
    }
    .sub-stories-grid {
        grid-template-columns: 1fr;
    }
    .carousel-content {
        grid-template-columns: 1fr;
    }
        .comments_title span {
   
        font-size: 0.6rem;
    }
}

/* استایل‌های متا دیتای دسکتاپ */
@media (min-width: 993px) {
    .post-header-meta {
        display: none;
    }
    .post-meta {
        text-align: center;
    }
    .post-meta span {
        font-family: farsinum, sans-serif;
    }
}









/* --- START: Custom Styles for Mobile Archive (Final RTL FIX) --- */
@media (max-width: 768px) {
    
    /* 1. تغییر چیدمان اصلی کارت‌های آرشیو */
    .list-post-card a {
        /* *** تغییر اصلی اینجاست *** */
        flex-direction: row !important; /* در حالت راست‌چین، این مقدار عکس را به راست منتقل می‌کند */
        gap: 15px; 
        align-items: flex-start;
    }

    /* 2. تنظیم اندازه ثابت برای تصویر */
    .list-post-card .list-card-thumbnail {
        flex: 0 0 110px; 
    }

    .list-card-thumbnail img {
        height: 85px !important; 
    }

    /* 3. تنظیمات بخش محتوا (عنوان و تاریخ) */
    .list-card-content {
        flex-grow: 1; 
        position: static; 
        padding: 5px 0; 
    }

    .list-card-content .card-rootitr {
        font-size: 0.75rem;
    }
    
    .list-card-content .card-title {
        margin-top: 0; 
                font-size: 1.1rem;
    }

    /* 4. استایل جدید برای تاریخ (حذف پس‌زمینه و افزودن آیکون) */
    .list-card-content .card-meta {
        position: static !important; 
        background-color: transparent !important; 
        color: #777; 
        padding: 0 !important; 
        display: flex; 
        align-items: center; 
        gap: 6px; 
    }

    /* 5. افزودن آیکون ساعت قبل از تاریخ */
    .list-card-content .card-meta::before {
        content: "\e92d"; 
        font-family: 'bamdad'; 
        font-size: 1rem;
        line-height: 1;
    }
}
/* --- END: Custom Styles for Mobile Archive (Final RTL FIX) --- */










/* ==========================================================================
   استایل نهایی پرینت (اصلاح شده طبق نظر شما)
   ========================================================================== */
@media print {
    @page { margin: 1.5cm; size: auto; }

    /* تنظیمات پایه */
    body {
        background: #fff !important;
        color: #000 !important;
    }

    /* 1. نمایش اجباری محتوا و لوگو */
    .main-content, .container, .single-post-page-content, .main-article-area, .post-content {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: visible !important;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* هدر و لوگو */
    .main-header {
        display: block !important;
        visibility: visible !important;
        border-bottom: 2px solid #000 !important;
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
        text-align: center !important;
    }
    
    .top-bar { display: block !important; }
    
    .logo-container, .logo-container a, .logo-container img {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: 80px !important; /* اندازه لوگو */
        width: auto !important;
    }

    /* 2. مخفی کردن ستاره‌ها و موارد اضافی */
    .top-bar .header-controls-right,
    .top-bar .header-controls-left,
    .main-nav,
    .post-sidebar,
    .main-footer,
    .comments, .comments_title, #respond, #comments,
    .social-share-desktop, .social-share-mobile,
    .short-link-inline-group,
    .rank-math-breadcrumb,
    .post-info-sticky-wrapper, /* حذف باکس چسبان کناری */
    .related,
    .post-ratings, /* مخفی کردن ستاره‌ها */
    .ratings,
    .rate-box,
    .post-like,
    .wp-postratings, /* کلاس‌های مختلف افزونه‌های امتیازدهی */
    button, iframe {
        display: none !important;
    }

    /* 3. استایل محتوای خبر */
    .post-title {
        text-align: center !important;
        font-size: 20pt !important;
        font-weight: bold !important;
        margin-top: 10px !important;
        color: #000 !important;
    }

    .post-rootitr {
        text-align: center !important;
        display: block !important;
        font-size: 13pt !important;
        color: #444 !important;
    }

    .featured-image img {
        max-width: 60% !important;
        height: auto !important;
        margin: 10px auto !important;
        display: block !important;
        border: 1px solid #ddd !important;
    }

    .article-body {
        font-size: 13pt !important;
        line-height: 1.8 !important;
        text-align: justify !important;
        color: #000 !important;
    }
    
    .article-body a {
        text-decoration: none !important;
        color: #000 !important;
    }

    /* 4. استایل بخش فوتر خبر (کد خبر و لینک) */
    .print-only-source {
        display: block !important;
        visibility: visible !important;
        margin-top: 40px !important;
        padding-top: 20px !important;
        border-top: 2px solid #000 !important;
        font-family: 'B Nazanin', Tahoma, sans-serif !important;
        font-size: 11pt !important;
        line-height: 2 !important;
        text-align: left !important; /* چپ چین یا راست چین طبق سلیقه */
        direction: rtl !important;
    }
    
    .print-row {
        display: flex;
        justify-content: space-between;
    }
}
/* --- اصلاح نهایی و قدرتمند جدول (فیکس اسکرول افقی) --- */
@media only screen and (max-width: 768px) {
    
    /* 1. تنظیم کانتینر اسکرول (باکس دور جدول) */
    html body .article-body .table-responsive {
        display: block !important;
        width: 300px !important;
        overflow-x: scroll !important; /* اسکرول افقی اجباری */
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 20px !important;
        border: 2px solid #007cba !important; /* کادر آبی برای تست (بعدا پاک کنید) */
        padding: 5px !important;
    }

    /* 2. زور کردن جدول به عریض شدن (جلوگیری از له شدگی) */
    html body .article-body .table-responsive table {
        width: max-content !important; /* عرض به اندازه محتوا باز شود */
        min-width: 900px !important; /* حداقل عرض 900 پیکسل باشد */
        max-width: none !important;
        table-layout: auto !important;
    }

    /* 3. جلوگیری از شکستن متن‌ها در سلول‌ها */
    html body .article-body .table-responsive table td,
    html body .article-body .table-responsive table th {
        white-space: nowrap !important; /* متن‌ها در یک خط بمانند */
        padding: 10px 15px !important;
        font-size: 13px !important;
        height: auto !important;
        width: auto !important;
    }
}





/* --- استایل مدرن و شیشه‌ای برای هدر نویسنده --- */

.author-profile-header {
    /* گرادینت پس زمینه (نارنجی) */
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%); 
    border-radius: 20px;
    padding: 50px 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(255, 94, 98, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

/* افزودن پترن یا طرح محو به پس زمینه (اختیاری برای زیبایی بیشتر) */
.author-profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.author-profile-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* استایل آواتار */
.author-profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.4); /* حاشیه نیمه شفاف */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
    overflow: hidden;
    background-color: #fff;
}

.author-profile-info {
    flex-grow: 1;
    text-align: right; /* راست چین کردن متن */
}

.author-profile-name {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    color: #fff; /* متن سفید */
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.2;
}

/* باکس توضیحات با افکت شیشه‌ای */
.author-profile-bio {
    background: rgba(255, 255, 255, 0.15); /* پس زمینه شیشه‌ای */
    backdrop-filter: blur(5px); /* تار کردن پشت شیشه */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px 25px;
    color: #fff;
}

.author-profile-bio p {
    font-size: 1.1rem;
    line-height: 2;
    color: #fff;
    margin: 0;
    text-align: justify;
    opacity: 0.95;
}

/* --- اصلاح افکت مشاهده بیشتر (بسیار مهم) --- */

.read-more-box {
    position: relative;
}

.read-more-content {
    max-height: 115px; /* ارتفاع بسته */
    overflow: hidden;
    position: relative;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* استفاده از ماسک برای محو کردن به جای گرادینت سیاه */
/* این روش باعث می‌شود متن به آرامی ناپدید شود بدون اینکه رنگش عوض شود */
.read-more-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.1) 100%); /* یک سایه سفید خیلی ملایم */
    
    /* تکنیک ماسک برای فید شدن واقعی */
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    
    pointer-events: none;
    transition: opacity 0.4s;
}

.read-more-content.expanded {
    max-height: 2000px;
}

.read-more-content.expanded::after {
    opacity: 0;
}

/* --- استایل دکمه مشاهده بیشتر (شیک‌تر) --- */
.read-more-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #ff5e62; /* رنگ متن دکمه همرنگ با تم */
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: auto;
    min-width: 160px;
}

.read-more-trigger:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: #d92121;
}

.read-more-trigger i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.read-more-trigger.active i {
    transform: rotate(180deg);
}

/* واکنش‌گرا (موبایل) */
@media (max-width: 768px) {
    .author-profile-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-profile-info {
        text-align: center;
    }
    
    .author-profile-name {
        font-size: 2rem;
    }
    
    .author-profile-avatar {
        width: 140px;
        height: 140px;
        margin-bottom: 10px;
    }
}






.container.mombi {
    color: var(--border-color);
}

.container.mombi a {
    color: white;
}

.container.mombi a:hover {
    color: var(--accent-color);
}





