@font-face{font-family:'iransans';font-display:swap;src:url("../font/IRANSansXFaNum-Regular.woff2") format("woff2");font-weight:normal}
* {
    font-family: 'iransans', 'Tahoma', 'IranSans', sans-serif;
}
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'iransans', 'Tahoma', 'IranSans', sans-serif;
    background: #fff;
    direction: rtl;
    line-height: 1.6;
    color: #333;
}
img {
    max-width: 100% !important;
    height: auto !important;
}
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(135deg, #ff6500 0%, #ff6500 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    flex-wrap: wrap;
    gap: 15px;
}

/* ========== لوگو ========== */
.logo {
    flex-shrink: 0;
    min-width: 180px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo-text span {
    color: #ffe0b2;
    font-size: 26px;
}
/* ============================================
   جدول ریسپانسیو برای همه تیبل‌های سایت
   ============================================ */

/* کانتینر اسکرول افقی برای همه جدول‌ها */
.wp-block-table,
.single-content table,
.post-body table,
.entry-content table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5rem 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* استایل خود تیبل */
.wp-block-table table,
.single-content table,
.post-body table,
.entry-content table {
    width: 100% !important;
    min-width: 50% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    font-size: 14px !important;
    background: #fff !important;
}

/* حذف عرض ثابت از سلول‌ها */
.wp-block-table td,
.wp-block-table th,
.single-content td,
.single-content th,
.post-body td,
.post-body th {
    border: 1px solid #e0e0e0 !important;
    padding: 10px 12px !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

/* هدر جدول */
.wp-block-table th,
.single-content th,
.post-body th {
    background-color: #1e3a5f !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-color: #2c4a7a !important;
}

/* ردیف‌های ضربدری */
.wp-block-table tr:nth-child(even),
.single-content tr:nth-child(even),
.post-body tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

/* افکت هاور روی ردیف‌ها */
.wp-block-table tbody tr:hover,
.single-content tbody tr:hover,
.post-body tbody tr:hover {
    background-color: #eef2f7 !important;
    transition: all 0.2s ease !important;
}

/* استایل استریپ برای وردپرس بلاک */
.wp-block-table.is-style-stripes {
    border: none !important;
}

/* تنظیمات موبایل */
@media screen and (max-width: 768px) {
    .wp-block-table td,
    .wp-block-table th,
    .single-content td,
    .single-content th,
    .post-body td,
    .post-body th {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
}

/* نوار اسکرول زیبا */
.wp-block-table::-webkit-scrollbar,
.single-content table::-webkit-scrollbar,
.post-body table::-webkit-scrollbar {
    height: 6px !important;
}

.wp-block-table::-webkit-scrollbar-track,
.single-content table::-webkit-scrollbar-track,
.post-body table::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 10px !important;
}

.wp-block-table::-webkit-scrollbar-thumb,
.single-content table::-webkit-scrollbar-thumb,
.post-body table::-webkit-scrollbar-thumb {
    background: #888 !important;
    border-radius: 10px !important;
}

.wp-block-table::-webkit-scrollbar-thumb:hover,
.single-content table::-webkit-scrollbar-thumb:hover,
.post-body table::-webkit-scrollbar-thumb:hover {
    background: #555 !important;
}
/* ============================================
   ریسپانسیو کردن عکس‌های داخل متن
   ============================================ */
/* عکس‌های داخل محتوای خبر */
.post-body img,
.single-content img,
.entry-content img,
.page-body img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
}

/* عکس‌های float دار رو هم ریسپانسیو کن */
.post-body img.alignleft,
.single-content img.alignleft {
    float: none !important;
    display: block !important;
    margin: 10px auto !important;
}

.post-body img.alignright,
.single-content img.alignright {
    float: none !important;
    display: block !important;
    margin: 10px auto !important;
}

/* جلوگیری از سرریز شدن iframe و ویدیو */
.post-body iframe,
.single-content iframe,
.entry-content iframe {

}

.single-content video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* کانتینر عکس‌ها */
.post-body figure,
.single-content figure,
.entry-content figure {
    max-width: 100% !important;
    margin: 20px 0 !important;
}

/* عکس‌های داخل جدول هم محدود بشن */
.wp-block-table img,
table img,
td img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* برای موبایل: حذف عرض ثابت از هر چیزی که باعث کشیدگی میشه */
@media screen and (max-width: 768px) {
    .post-body *,
    .single-content *,
    .entry-content * {
        max-width: 100% !important;
    }
    
    /* عکس‌ها رو از حالت absolute/relative خارج کن */
    .post-body img,
    .single-content img {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
}
/* ========== منوی اصلی ========== */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-menu ul li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-menu ul li a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-menu ul li.active a {
    background: #af4500;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========== فرم جستجو ========== */
.search-form {
    flex-shrink: 0;
    min-width: 260px;
}

.search-form form {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 40px;
    padding: 3px;
    backdrop-filter: blur(8px);
}

.search-form input {
    flex: 1;
    padding: 10px 18px;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    background: white;
    color: #333;
}

.search-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(243,156,18,0.5);
}

.search-form button {
    background: #af4500;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.search-form button:hover {
    background: #af4500;
    transform: scale(1.02);
}

/* ========== دکمه همبرگر ========== */
.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   ریسپانسیو هدر (موبایل)
   ============================================ */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    
    /* لوگو در راست */
    .logo {
        order: 1;
        margin-left: auto;
        min-width: auto;
    }
    
    /* دکمه همبرگر در چپ */
    .menu-toggle {
        display: block;
        order: 2;
        margin-right: auto;
        margin-left: 0;
    }
    
    /* فرم جستجو زیر لوگو و دکمه */
    .search-form {
        order: 3;
        width: 100%;
        min-width: auto;
        margin-top: 12px;
    }
    
    .search-form form {
        width: 100%;
    }
    
    /* منوی کشویی از چپ به راست */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        z-index: 10000;
        padding: 70px 20px 30px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 25px rgba(0,0,0,0.3);
        overflow-y: auto;
        order: 4;
    }
    
    .nav-menu.active {
        display: block;
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-menu ul li a {
        display: block;
        padding: 14px 15px;
        font-size: 15px;
        text-align: right;
        background: transparent;
    }
    
    .nav-menu ul li a:hover {
        background: #af4500;
        padding-right: 25px;
    }
    
    /* دکمه بستن منو - با ::before */
.nav-menu.active::before {
    content: "✕";
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    font-family: sans-serif;
    font-weight: bold;
}
    
    .nav-menu.active::before:hover {
        background: rgba(255,255,255,0.2);
    }
    
    /* overlay پشت منو */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
    }
    
    .menu-overlay.active {
        
    }
    
    /* ریسپانسیو برای کدهای تکراری دیگه */
    .latest-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .latest-grid-item {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .latest-grid-image {
        width: 100% !important;
        height: auto !important;
        min-height: 160px !important;
    }
    
    .latest-grid-image img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }
    
    .vertical-boxes {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* ریسپانسیو برای گوشی‌های خیلی کوچک */
@media (max-width: 480px) {
    .logo-text {
        font-size: 16px;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .nav-menu {
        width: 260px;
    }
    
    .latest-grid-image img {
        height: 150px !important;
    }
}

/* ============================================
   ریسپانسیو هدر
   ============================================ */
@media (max-width: 1100px) {
    .nav-menu ul li a {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .search-form {
        min-width: 220px;
    }
}

@media (max-width: 900px) {
    .header-container {
        padding: 10px 20px;
    }
    
    .nav-menu ul li a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .search-form {
        min-width: 200px;
    }
    
    .search-form input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-form button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    .menu-toggle {
        display: block;
        order: 2;
    }
    
    .search-form {
        order: 3;
        width: 100%;
        min-width: auto;
        margin-top: 10px;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        order: 4;
        background: #d35400;
        border-radius: 12px;
        margin-top: 10px;
        padding: 15px;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu ul li a {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 16px;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .search-form form {
        width: 100%;
    }
    
    .search-form input {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .search-form button {
        padding: 8px 15px;
        font-size: 12px;
    }
}
/* ============================================
   بدنه ۲ ستونه و لیست اخبار
   ============================================ */

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* استایل پست‌های ستون چپ */
.post-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-right: 3px solid transparent;
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-right-color: #af4500;
}

.post-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.post-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #af4500;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.post-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #888;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.no-posts {
    background: white;
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    color: #888;
}

/* ============================================
   ریسپانسیو
   ============================================ */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .post-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 16px;
    }
    
    .post-excerpt {
        font-size: 13px;
    }
}
/* ============================================
   باکس مطالب جدیدترین (گرید 2 ستونی)
   ============================================ */

.latest-news-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #af4500;
}

.section-header h2 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.more-link {
    color: #af4500;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.more-link:hover {
    color: #d35400;
    text-decoration: underline;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.latest-grid-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: #fefefe;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.latest-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #af4500;
}

.latest-grid-image {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
}

.latest-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.latest-grid-content {
    flex: 1;
}

.latest-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 11px;
}

.latest-grid-date {
    color: #888;
}

.latest-grid-comments {
    color: #af4500;
}

.latest-grid-title {
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 6px 0;
}

.latest-grid-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.latest-grid-title a:hover {
    color: #af4500;
}

.latest-grid-excerpt {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   سایر اخبار
   ============================================ */
.other-news-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.post-item {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.post-item:last-child {
    border-bottom: none;
}

.post-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.post-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #af4500;
}

.post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.post-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #888;
}

/* ============================================
   سایدبار موقت
   ============================================ */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #af4500;
    font-size: 18px;
}

/* ============================================
   ریسپانسیو
   ============================================ */
@media (max-width: 768px) {
    .latest-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .latest-grid-item {
        padding: 10px;
    }
    
    .latest-grid-image {
        width: 80px;
        height: 70px;
    }
    
    .latest-grid-title {
        font-size: 14px;
    }
    
    .post-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .latest-news-box, .other-news-box {
        padding: 15px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .latest-grid-image {
        width: 70px;
        height: 60px;
    }
    
    .latest-grid-title {
        font-size: 13px;
    }
    
    .post-title {
        font-size: 15px;
    }
}
/* ============================================
   اسلایدر اصلی (Hero Slider)
   ============================================ */

.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 2;
    direction: rtl;
}

.slide-date {
    font-size: 13px;
    color: #ffd700;
    margin-bottom: 10px;
    font-weight: 500;
}

.slide-title {
    font-size: 28px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.slide-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.slide-title a:hover {
    color: #af4500;
}

.slide-excerpt {
    font-size: 14px;
    color: #f0f0f0;
    margin-bottom: 15px;
    max-width: 70%;
    line-height: 1.6;
}

.slide-btn {
    display: inline-block;
    background: #af4500;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.slide-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* دکمه‌های قبلی و بعدی */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-prev:hover,
.slider-next:hover {
    background: #af4500;
    transform: translateY(-50%) scale(1.05);
}

/* دایره‌های ناوبری */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #af4500;
    width: 30px;
    border-radius: 20px;
}

.dot:hover {
    background: #af4500;
    transform: scale(1.2);
}

.no-slider {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 30px;
    color: #888;
}

/* ============================================
   ریسپانسیو اسلایدر
   ============================================ */
@media (max-width: 992px) {
    .hero-slider {
        height: 420px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-excerpt {
        max-width: 85%;
        font-size: 13px;
    }
    
    .slide-content {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
    }
    
    .slide-title {
        font-size: 20px;
    }
    
    .slide-excerpt {
        display: none;
    }
    
    .slide-content {
        padding: 20px 25px;
    }
    
    .slide-date {
        font-size: 11px;
    }
    
    .slide-btn {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 280px;
    }
    
    .slide-title {
        font-size: 16px;
    }
    
    .slide-content {
        padding: 15px 20px;
    }
    
    .slide-date {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .slide-btn {
        padding: 4px 12px;
        font-size: 11px;
    }
}
/* ============================================
   بخش خبری دسته newsir
   ============================================ */
.newsir-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.newsir-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* خبر اصلی (راست) */
.newsir-main {
    background: #fefefe;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.newsir-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.newsir-main-image {
    height: 280px;
    overflow: hidden;
}

.newsir-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.newsir-main-image img:hover {
    transform: scale(1.05);
}

.newsir-main-content {
    padding: 20px;
}

.newsir-main-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.newsir-main-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.newsir-main-title a {
    text-decoration: none;
    color: #333;
}

.newsir-main-title a:hover {
    color: #af4500;
}

.newsir-main-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* لیست اخبار دیگر (چپ) */
.newsir-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newsir-side-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.newsir-side-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.newsir-side-image {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
}

.newsir-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.newsir-side-image img:hover {
    transform: scale(1.05);
}

.newsir-side-content {
    flex: 1;
}

.newsir-side-date {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
}

.newsir-side-title {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.newsir-side-title a {
    text-decoration: none;
    color: #333;
}

.newsir-side-title a:hover {
    color: #af4500;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .newsir-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .newsir-main-image {
        height: 220px;
    }
    
    .newsir-main-title {
        font-size: 18px;
    }
    
    .newsir-side-image {
        width: 80px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .newsir-main-image {
        height: 180px;
    }
    
    .newsir-side-item {
        gap: 10px;
    }
    
    .newsir-side-image {
        width: 70px;
        height: 60px;
    }
    
    .newsir-side-title {
        font-size: 13px;
    }
}
/* ============================================
   بخش چندرسانه‌ای (Multimedia) - دارک مود
   ============================================ */
.multimedia-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 0;
    margin: 40px 0;
    border-radius: 20px;
}

.multimedia-header {
    border-bottom-color: #af4500 !important;
}

.multimedia-header h2 {
    color: white !important;
}

.multimedia-more {
    color: #af4500 !important;
}

.multimedia-more:hover {
    color: #af4500 !important;
}

.multimedia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* خبر اصلی (راست) */
.multimedia-main {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.multimedia-main:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.multimedia-main-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.multimedia-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.multimedia-main-image img:hover {
    transform: scale(1.05);
}

.multimedia-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(230,126,34,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    padding-right: 5px;
    transition: all 0.3s;
    opacity: 0.9;
}

.multimedia-main-image:hover .multimedia-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: #af4500;
}

.multimedia-main-content {
    padding: 20px;
}

.multimedia-main-category {
    display: inline-block;
    background: #af4500;
    color: white;
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.multimedia-main-date {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
}

.multimedia-main-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.multimedia-main-title a {
    text-decoration: none;
    color: white;
}

.multimedia-main-title a:hover {
    color: #af4500;
}

.multimedia-main-excerpt {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

/* لیست اخبار دیگر (چپ) */
.multimedia-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.multimedia-side-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.multimedia-side-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.multimedia-side-image {
    position: relative;
    width: 120px;
    height: 80px;
    flex-shrink: 0;
}

.multimedia-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.multimedia-side-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(230,126,34,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    padding-right: 2px;
}

.multimedia-side-content {
    flex: 1;
}

.multimedia-side-date {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 5px;
}

.multimedia-side-title {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.multimedia-side-title a {
    text-decoration: none;
    color: white;
}

.multimedia-side-title a:hover {
    color: #af4500;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .multimedia-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .multimedia-main-image {
        height: 220px;
    }
    
    .multimedia-main-title {
        font-size: 18px;
    }
    
    .multimedia-side-image {
        width: 100px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .multimedia-section {
        padding: 25px 0;
        margin: 25px 0;
    }
    
    .multimedia-main-image {
        height: 180px;
    }
    
    .multimedia-play-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .multimedia-side-item {
        gap: 10px;
    }
    
    .multimedia-side-image {
        width: 80px;
        height: 60px;
    }
    
    .multimedia-side-title {
        font-size: 13px;
    }
}
/* ============================================
   دو باکس عمودی (اجتماعی و سیاسی)
   ============================================ */
.vertical-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 30px 0;
}

.vertical-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.vertical-box:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-color: #af4500;
}

.vertical-box-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* خبر اصلی */
.vertical-main {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.vertical-main-image {
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
}

.vertical-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vertical-main-image img:hover {
    transform: scale(1.03);
}

.vertical-main-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.vertical-main-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.vertical-main-title a {
    text-decoration: none;
    color: #333;
}

.vertical-main-title a:hover {
    color: #af4500;
}

.vertical-main-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* لیست اخبار دیگر */
.vertical-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vertical-side-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.vertical-side-image {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
}

.vertical-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.vertical-side-content {
    flex: 1;
}

.vertical-side-date {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.vertical-side-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.vertical-side-title a {
    text-decoration: none;
    color: #333;
}

.vertical-side-title a:hover {
    color: #af4500;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .vertical-boxes {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* برای آیتم‌های داخل باکس جدیدترین (latest-grid) */
    .latest-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* برای آیتم‌های باکس جدیدترین - نمایش ستونی و تیتر پایین عکس */
    .latest-grid-item {
        flex-direction: column !important;
        text-align: center !important;
        padding: 12px !important;
    }
    
    .latest-grid-image {
        width: 100% !important;
        height: auto !important;
        min-height: 160px !important;
    }
    
    .latest-grid-image img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }
    
    .latest-grid-content {
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    .latest-grid-meta {
        justify-content: center !important;
        gap: 15px !important;
    }
    
    .latest-grid-title {
        text-align: center !important;
        font-size: 15px !important;
    }
    
    .latest-grid-excerpt {
        text-align: center !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .vertical-box {
        padding: 15px;
    }
    
    .vertical-main-image {
        height: 150px;
    }
    
    .vertical-side-image {
        width: 80px;
        height: 60px;
    }
    
    .vertical-side-title {
        font-size: 13px;
    }
}
/* ============================================
   صفحه برگه (page.php)
   ============================================ */
.single-page-container {
    margin: 30px 0;
}

.page-grid {
    gap: 30px;
}

.page-content-wrapper {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px;
}

/* مسیر سایت */
.page-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}
.page-breadcrumb a {
    color: #af4500;
    text-decoration: none;
}
.page-breadcrumb a:hover {
    text-decoration: underline;
}
.page-breadcrumb .current {
    color: #555;
}

/* عنوان صفحه */
.page-title {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
}
.page-title-underline {
    width: 80px;
    height: 3px;
    background: #af4500;
    border-radius: 3px;
    margin-bottom: 25px;
}

/* متن صفحه */
.page-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}
.page-body p {
    margin-bottom: 20px;
}
.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 20px;
    }
    .page-title {
        font-size: 24px;
    }
    .page-body {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page-content-wrapper {
        padding: 15px;
    }
    .page-title {
        font-size: 20px;
    }
}
/* ============================================
   صفحه نمایش خبر (single.php)
   ============================================ */
/* ============================================
   باکس محتوای اصلی با بوردر خاکستری
   ============================================ */
.single-content-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .single-content-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .single-content-box {
        padding: 15px;
    }
}
.single-post-container {
    margin: 30px 0;
}

.single-grid {
    gap: 30px;
}

/* مسیر دسته‌بندی */
.post-breadcrumb {
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
}
.post-breadcrumb a {
    color: #af4500;
    text-decoration: none;
}
.post-breadcrumb a:hover {
    text-decoration: underline;
}

/* عنوان اصلی */
.post-main-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #222;
    line-height: 1.4;
}

/* چکیده */
.post-summary-box {
    background: #f9f9f9;
    border-right: 3px solid #af4500;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
    border-radius: 8px;
}

/* تاریخ و نظرات */
.post-meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #777;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* تصویر شاخص */
.post-featured-image {
    margin-bottom: 25px;
}
.post-featured-image img {
    width: 100%;
    border-radius: 12px;
}

/* متن خبر */
.post-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}
.post-body p {
    margin-bottom: 20px;
}
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* برچسب‌ها */
.post-tags {
    margin: 30px 0 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.tags-title {
    font-weight: bold;
    margin-left: 10px;
}
.post-tag-link {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    margin-left: 8px;
    margin-bottom: 8px;
    transition: 0.3s;
}
.post-tag-link:hover {
    background: #af4500;
    color: white;
}

/* شورت لینک */
.shortlink-box {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.shortlink-label {
    font-weight: bold;
}
.shortlink-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    direction: ltr;
}
.copy-shortlink-btn {
    background: #af4500;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}
.copy-shortlink-btn:hover {
    background: #e05e00;
}

/* دکمه‌های اشتراک گذاری */
.share-print-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0 30px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.share-label {
    font-weight: bold;
}
.share-icon {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}
.share-icon.whatsapp { background: #25D366; }
.share-icon.telegram { background: #0088cc; }
.share-icon.twitter { background: #1DA1F2; }
.share-icon.facebook { background: #1877F2; }
.share-icon.print { background: #6c757d; }
.share-icon:hover { opacity: 0.85; transform: translateY(-2px); }

/* مطالب مرتبط */
.related-posts-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
}
.related-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #af4500;
}
.related-list {
    list-style: none;
    padding: 0;
}
.related-list li {
    margin-bottom: 12px;
}
.related-list li a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: 0.3s;
    display: block;
}
.related-list li a:hover {
    color: #af4500;
    padding-right: 5px;
}

/* باکس نظرات */
.comments-box {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #e0e0e0;
}
.comments-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #af4500;
}
.comments-list {
    margin-bottom: 30px;
}
.comment-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.comment-meta {
    margin-bottom: 8px;
    font-size: 14px;
}
.comment-meta strong {
    color: #af4500;
}
.comment-date {
    font-size: 12px;
    color: #888;
    margin-right: 15px;
}
.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}
.comment-form-wrapper {
    margin-top: 20px;
}
.comment-form-wrapper h4 {
    font-size: 18px;
    margin-bottom: 15px;
}
.comment-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.comment-form input, 
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.comment-form input:focus, 
.comment-form textarea:focus {
    outline: none;
    border-color: #af4500;
}
.comment-form button {
    background: #af4500;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    margin-top: 10px;
}
.comment-form button:hover {
    background: #e05e00;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .post-main-title {
        font-size: 24px;
    }
    .post-summary-box {
        font-size: 14px;
    }
    .post-body {
        font-size: 15px;
    }
    .shortlink-box {
        flex-direction: column;
        align-items: stretch;
    }
    .shortlink-input {
        text-align: center;
    }
    .share-print-box {
        justify-content: center;
    }
    .comment-form .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .post-main-title {
        font-size: 20px;
    }
    .post-meta-info {
        font-size: 12px;
        gap: 12px;
    }
    .share-icon {
        padding: 4px 10px;
        font-size: 11px;
    }
}
/* ============================================
   سایدبار
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ویجت‌های سایدبار */
.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #af4500;
    font-size: 18px;
}
.sidebar-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-comment-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-comment-avatar {
    width: 36px;
    height: 36px;
    background: #af4500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.sidebar-comment-content {
    flex: 1;
    min-width: 0;
}

.sidebar-comment-author a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.sidebar-comment-author a:hover {
    color: #af4500;
}

.sidebar-comment-text {
    margin: 4px 0;
}

.sidebar-comment-text a {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    font-style: italic;
    line-height: 1.5;
}

.sidebar-comment-text a:hover {
    color: #af4500;
}

.sidebar-comment-post a {
    color: #888;
    font-size: 11px;
    text-decoration: none;
}

.sidebar-comment-post a:hover {
    color: #af4500;
}
/* لیست دسته‌بندی‌ها در سایدبار */
.sidebar-categories {
    list-style: none;
    padding: 0;
}

.sidebar-categories li {
    margin-bottom: 12px;
}

.sidebar-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 8px 0;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-categories li a:hover {
    color: #af4500;
    padding-right: 5px;
}

.category-count {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: #666;
}

/* خبرهای داغ در سایدبار */
.sidebar-hot-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-hot-rank {
    width: 28px;
    height: 28px;
    background: #af4500;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-hot-content {
    flex: 1;
}

.sidebar-hot-content a {
    text-decoration: none;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    display: block;
    margin-bottom: 5px;
}

.sidebar-hot-content a:hover {
    color: #af4500;
}

.sidebar-hot-views {
    font-size: 11px;
    color: #888;
}

/* آخرین اخبار در سایدبار */
.sidebar-latest-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-latest-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.sidebar-latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-latest-content {
    flex: 1;
}

.sidebar-latest-date {
    font-size: 10px;
    color: #888;
    margin-bottom: 5px;
}

.sidebar-latest-title {
    font-size: 13px;
    line-height: 1.5;
}

.sidebar-latest-title a {
    text-decoration: none;
    color: #333;
}

.sidebar-latest-title a:hover {
    color: #af4500;
}

/* برچسب‌ها در سایدبار */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag {
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s;
}

.sidebar-tag:hover {
    background: #af4500;
    color: white;
    transform: translateY(-2px);
}

/* ریسپانسیو سایدبار */
@media (max-width: 768px) {
    .sidebar {
        margin-top: 30px;
    }
}

/* ============================================
   ویجت‌های سایدبار
   ============================================ */
.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #af4500;
    font-size: 18px;
}
/* فرم جستجو */
.sidebar-search {
    display: flex;
    gap: 8px;
}
.sidebar-search input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
.sidebar-search button {
    background: #af4500;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 8px;
    cursor: pointer;
}
.sidebar-categories {
    list-style: none;
    padding: 0;
}

.sidebar-categories li {
    margin-bottom: 12px;
}

.sidebar-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-categories li a:hover {
    color: #af4500;
    padding-right: 5px;
}

.sidebar-hot-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-hot-rank {
    width: 28px;
    height: 28px;
    background: #af4500;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
}

.sidebar-hot-content a {
    text-decoration: none;
    color: #333;
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
}

.sidebar-hot-content a:hover {
    color: #af4500;
}

.sidebar-hot-views {
    font-size: 11px;
    color: #888;
}

.sidebar-latest-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-latest-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.sidebar-latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-latest-title a {
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

.sidebar-latest-title a:hover {
    color: #af4500;
}

.sidebar-latest-date {
    font-size: 10px;
    color: #888;
    margin-bottom: 5px;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag {
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: #555;
}

.sidebar-tag:hover {
    background: #af4500;
    color: white;
}

/* ============================================
   صفحه دسته‌بندی (category.php)
   ============================================ */

/* باکس بالایی (مسیر سایت + عنوان دسته) */
.category-header-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

/* مسیر سایت (Breadcrumb) */
.category-breadcrumb {
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}
.category-breadcrumb a {
    color: #af4500;
    text-decoration: none;
}
.category-breadcrumb a:hover {
    text-decoration: underline;
}
.category-breadcrumb .current {
    color: #555;
}

/* عنوان دسته */
.category-title-wrapper {
    margin-top: 5px;
}
.category-title {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
}
.category-title-underline {
    width: 80px;
    height: 3px;
    background: #af4500;
    border-radius: 3px;
}

/* کارت‌های خبر */
.category-post-card {
    display: flex;
    gap: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}
.category-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #af4500;
}

.category-post-image {
    width: 220px;
    min-width: 220px;
    height: 150px;
}
.category-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.category-post-content {
    flex: 1;
}
.category-post-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}
.category-post-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.category-post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}
.category-post-title a:hover {
    color: #af4500;
}
.category-post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}
.category-read-more {
    display: inline-block;
    color: #af4500;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}
.category-read-more:hover {
    color: #d35400;
    transform: translateX(-5px);
}

/* صفحه‌بندی دسته‌بندی */
.category-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.category-pagination a {
    display: inline-block;
    padding: 8px 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}
.category-pagination a:hover {
    background: #af4500;
    color: white;
    border-color: #af4500;
}
.category-pagination .active {
    background: #af4500;
    color: white;
    border-color: #af4500;
}
.category-pagination .page-prev,
.category-pagination .page-next {
    font-weight: 500;
}

/* حالت خالی */
.category-empty {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    color: #888;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .category-post-card {
        flex-direction: column;
        padding: 15px;
    }
    .category-post-image {
        width: 100%;
        height: 180px;
    }
    .category-title {
        font-size: 24px;
    }
    .category-post-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .category-post-image {
        height: 150px;
    }
    .category-title {
        font-size: 20px;
    }
    .category-pagination a {
        padding: 6px 12px;
        font-size: 12px;
    }
}
/* ============================================
   صفحه جستجو (search.php)
   ============================================ */

/* پیام عدم وجود نتیجه */
.search-no-results {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
}
.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
}
.search-no-results h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}
.search-no-results p {
    color: #666;
    margin-bottom: 10px;
}
.back-to-home {
    display: inline-block;
    margin-top: 20px;
    color: #af4500;
    text-decoration: none;
    font-weight: 500;
}
.back-to-home:hover {
    color: #d35400;
    text-decoration: underline;
}

/* فرم جستجو (وقتی کلمه‌ای وارد نشده) */
.search-form-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
}
.search-icon {
    font-size: 64px;
    margin-bottom: 20px;
}
.search-form-box h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}
.search-form-box p {
    color: #666;
    margin-bottom: 25px;
}
.search-form-page {
    display: flex;
    max-width: 400px;
    margin: 0 auto 20px;
    gap: 10px;
}
.search-form-page input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
}
.search-form-page input:focus {
    outline: none;
    border-color: #af4500;
}
.search-form-page button {
    background: #af4500;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}
.search-form-page button:hover {
    background: #d35400;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .search-no-results, .search-form-box {
        padding: 30px 20px;
    }
    .search-form-page {
        flex-direction: column;
    }
    .search-form-page button {
        padding: 10px;
    }
}
/* ============================================
   صفحه 404
   ============================================ */
.error-404-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.error-404-box {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    max-width: 700px;
    margin: 0 auto;
}

/* عدد 404 */
.error-404-number {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}
.error-digit {
    font-size: 120px;
    font-weight: 800;
    background: linear-gradient(135deg, #af4500 0%, #ff8c33 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(255,101,0,0.2);
    animation: bounce 1s ease infinite alternate;
}
.error-digit:nth-child(1) { animation-delay: 0s; }
.error-digit:nth-child(2) { animation-delay: 0.2s; }
.error-digit:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    from { transform: translateY(0px); }
    to { transform: translateY(-10px); }
}

/* عنوان و توضیحات */
.error-title {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
}
.error-description {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* دکمه‌ها */
.error-suggestions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.error-home-btn,
.error-back-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}
.error-home-btn {
    background: #af4500;
    color: white;
    box-shadow: 0 4px 12px rgba(255,101,0,0.3);
}
.error-home-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,101,0,0.4);
}
.error-back-btn {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}
.error-back-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* لینک‌های پیشنهادی */
.error-links {
    border-top: 1px solid #eee;
    padding-top: 30px;
}
.error-links h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}
.error-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
}
.error-links ul li a {
    color: #af4500;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.error-links ul li a:hover {
    color: #d35400;
    text-decoration: underline;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .error-404-box {
        padding: 30px 20px;
    }
    .error-digit {
        font-size: 80px;
    }
    .error-title {
        font-size: 22px;
    }
    .error-description {
        font-size: 14px;
    }
    .error-suggestions {
        gap: 12px;
    }
    .error-home-btn,
    .error-back-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .error-links ul {
        gap: 10px;
    }
    .error-links ul li a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .error-digit {
        font-size: 60px;
    }
    .error-title {
        font-size: 18px;
    }
    .error-suggestions {
        flex-direction: column;
        align-items: center;
    }
    .error-home-btn,
    .error-back-btn {
        width: 80%;
    }
}
/* ============================================
   فوتر سایت
   ============================================ */
.footer {
    background: #161619;
    color: #aaa;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
}

/* ============================================
   گرید اصلی
   ============================================ */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* کارت خبر */
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-wrap: wrap;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.post-card-image {
    width: 250px;
    min-width: 250px;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
    flex: 1;
}

.post-card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.post-card-title a {
    text-decoration: none;
    color: #333;
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-meta {
    color: #888;
    font-size: 12px;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.post-card-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* سایدبار */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    font-size: 18px;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: white;
    text-decoration: none;
    border-radius: 8px;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .active {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   ریسپانسیو (موبایل فرندلی)
   ============================================ */
@media (max-width: 1024px) {
    .post-card {
        flex-direction: column;
    }
    .post-card-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        left: 20px;
        top: 15px;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
    }
    
    .nav-menu ul li a {
        padding: 12px;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-form form {
        width: 100%;
    }
    
    .search-form input {
        flex: 1;
        width: auto;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-widget h3:after {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .post-card-title {
        font-size: 18px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 13px;
    }
}
/* ============================================
   کپچاااااااااااااااا
   ============================================ */
.captcha-box {
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 3px solid #af4500;
}
.captcha-box label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: #333;
    font-size: 14px;
}
.captcha-box input {
    width: 100%;
    padding: 10px;
    margin: 8px 0 0 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
}
.captcha-box input:focus {
    outline: none;
    border-color: #af4500;
}
.captcha-box small {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 11px;
}
.refresh-captcha:hover {
    text-decoration: underline !important;
}
/* ============================================
   فوتر - کپی رایت راست و شبکه‌های اجتماعی چپ
   ============================================ */
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-links-top {
    padding: 1px 0;
    text-align: center;
}

.footer-links-top a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    margin: 0 5px;
}

.footer-links-top a:hover {
    color: #ff6500;
}

.footer-links-top .separator {
    color: #555;
    margin: 0 5px;
}

.footer-copyright {
    font-size: 13px;
    color: #888;
    text-align: right;
}

.footer-social-bottom {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social-bottom .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
    color: white;
    font-size: 16px;
    text-decoration: none;
}

.footer-social-bottom .social-link:hover {
    background: #af4500;
    transform: translateY(-3px);
}

/* ریسپانسیو فوتر */
@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-social-bottom {
        justify-content: center;
    }
}