/*
Theme Name: Ava News
Theme URI: https://rtl-theme.ir
Description: قالب حرفه‌ای خبری آواخبر با امکانات کامل برای پایگاه‌های خبری
Version: 1.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* لود فونت Vazirmatn از فایل محلی */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Thin.woff2') format('woff2'),
         url('fonts/Vazirmatn-Thin.woff') format('woff');
    font-weight: 100;
    font-display: swap; /* برای لود سریع‌تر */
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC; /* محدوده یونیکد فارسی */
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-ExtraLight.woff2') format('woff2'),
         url('fonts/Vazirmatn-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Light.woff2') format('woff2'),
         url('fonts/Vazirmatn-Light.woff') format('woff');
    font-weight: 300;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('fonts/Vazirmatn-Regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2'),
         url('fonts/Vazirmatn-Medium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2'),
         url('fonts/Vazirmatn-SemiBold.woff') format('woff');
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('fonts/Vazirmatn-Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-ExtraBold.woff2') format('woff2'),
         url('fonts/Vazirmatn-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Black.woff2') format('woff2'),
         url('fonts/Vazirmatn-Black.woff') format('woff');
    font-weight: 900;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

/* اعمال فونت به body (یا هر جایی که می‌خوای) */
body {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 400; /* وزن پیش‌فرض */
}

/* متغیرهای رنگ */
:root {
    --primary-color: #1e3a8a;        /* سورمه‌ای تیره */
    --primary-light: #3b82f6;        /* سورمه‌ای روشن */
    --secondary-color: #fbbf24;      /* زرد */
    --secondary-light: #fde047;      /* زرد روشن */
    --dark-color: #1f2937;           /* خاکستری تیره */
    --light-color: #f9fafb;          /* خاکستری روشن */
    --border-color: #e5e7eb;         /* رنگ مرز */
    --text-primary: #111827;         /* متن اصلی */
    --text-secondary: #6b7280;       /* متن ثانویه */
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

/* تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--light-color);
    direction: rtl;
    text-align: right;
}

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

a:hover {
    color: var(--primary-light);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flow;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* هدر */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.header-date span {
    display: inline-block;
}

.header-time {
    font-weight: 500;
    color: var(--secondary-color);
    margin-right: 5px;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-social a {
    color: var(--white);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header-social a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}



.mobile-menu-toggle.active {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* استایل‌های اصلی منو در موبایل */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        overflow-y: auto;
        padding: 0;
        width: 100vw;
    }

    .main-navigation.active {
        display: block !important;
        animation: slideInFromRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .main-navigation .container {
        padding: 0;
        height: 100%;
        background: var(--white);
        width: 300px;
        max-width: 85%;
        margin-left: auto;
        margin-right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        position: relative;
    }

    .main-nav {
        flex-direction: column;
        padding: 80px 0 20px;
        height: 100%;
        margin: 0;
        list-style: none;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border-color);
        position: relative;
        width: 100%;
        margin: 0;
    }

    .main-nav > li > a {
        padding: 18px 20px;
        color: var(--text-primary) !important;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .main-nav > li > a:hover {
        background: var(--primary-color);
        color: var(--white) !important;
        transform: translateX(-5px);
    }

    /* زیرمنوها */
    .sub-menu {
        display: none;
        background: #f8f9fa;
        padding: 0;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        min-width: auto;
        border-top: 1px solid var(--border-color);
    }

    .sub-menu.active {
        display: block !important;
        animation: slideDown 0.3s ease;
    }

    .submenu-toggle {
        display: flex !important;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--text-secondary);
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        padding: 5px;
        width: 30px;
        height: 30px;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: all 0.3s ease;
        z-index: 2;
    }

    .submenu-toggle:hover {
        background: rgba(0,0,0,0.05);
        color: var(--primary-color);
    }

    .submenu-toggle.active {
        color: var(--primary-color);
        transform: translateY(-50%) rotate(45deg);
    }
}

/* انیمیشن‌ها */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* نمایش دسکتاپ */
@media (min-width: 769px) {
    .main-navigation {
        display: block !important;
        position: static;
        background: none;
        overflow: visible;
    }

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

/* اسلایدر ویژه */
.featured-slider {
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.featured-slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.featured-slide.active {
    opacity: 1;
}

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

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 40px 30px 30px;
}

.slide-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.slide-title a {
    color: white;
    text-decoration: none;
}

.slide-title a:hover {
    color: var(--secondary-color);
}

.slide-meta {
    font-size: 14px;
    color: #ccc;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.dots-container {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--secondary-color);
}

/* تیکر اخبار فوری */
.breaking-ticker {
      background: #fbbf24;
    color: white;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.ticker-container {
    display: flex;
    align-items: center;
    padding: 12px 20px;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    background: rgb(30 58 138);
    padding: 6px 12px;
    border-radius: 4px;
    margin-left: 20px;
}

.ticker-icon {
    color: #fde047;
    font-size: 16px;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

.ticker-content marquee {
    white-space: nowrap;
}

.ticker-item {
    color: #000000;
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.ticker-item:hover {
    color: #1e3a8a;
}

/* کارت‌های خبری */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.news-card-image {
    position: relative;
    overflow: hidden;
}

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

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

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

.news-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-card-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* گالری */
.gallery-card {
    cursor: pointer;
    position: relative;
}

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

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

.gallery-icon svg {
    color: white;
    margin-bottom: 10px;
}

.image-count {
    color: white;
    font-size: 14px;
}

.gallery-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-actions {
    margin-top: 15px;
}

.gallery-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gallery-view-btn:hover {
    color: var(--primary-light);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 20px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* بخش‌ها */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.sports-section,
.reports-section,
.notes-section,
.dashboard-section {
    margin: 40px 0;
}

/* پیشخوان روزنامه */
.newspaper-dashboard {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.newspaper-item {
    text-align: center;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.newspaper-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.newspaper-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 10px;
}

.newspaper-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

/* استایل‌های صفحات داخلی */
.page-content,
.single-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    line-height: 1.8;
}

.page-title,
.single-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-thumbnail {
    margin: 30px 0;
    text-align: center;
}

.single-thumbnail img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: var(--primary-color);
    color: white;
}

/* بخش ورزشی */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.sports-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sports-card:hover {
    transform: translateY(-5px);
}

.sports-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.sports-card h4 {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.sports-card p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* پیشخوان روزنامه */
.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-widget {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.dashboard-widget:hover {
    transform: translateY(-3px);
}

.dashboard-widget h4 {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.dashboard-widget .number {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.newspaper-dashboard {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.newspaper-dashboard h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.newspaper-item {
    text-align: center;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.newspaper-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.newspaper-logo,
.newspaper-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin: 0 auto 10px;
    object-fit: cover;
}

.newspaper-logo-placeholder {
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.newspaper-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 10px;
}

.newspaper-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s ease;
}

.newspaper-link:hover {
    background: var(--primary-light);
    color: white;
}

.more-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: #e9ecef;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .header-main .header-content {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .slide-title {
        font-size: 20px;
    }

    .slide-overlay {
        padding: 20px 15px 15px;
    }

    .news-card-content {
        padding: 15px;
    }

    .section-title {
        font-size: 20px;
    }

    .newspaper-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

    .sports-grid {
        grid-template-columns: 1fr;
    }

    .more-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-content,
    .single-content {
        padding: 20px;
        margin: 10px 0;
    }

    .page-title,
    .single-title {
        font-size: 24px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .newspaper-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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

    .ticker-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ticker-label {
        margin-left: 0;
    }
}
    transform: translateY(-1px);
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 300px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn'

}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-button {
    position: absolute;
    left: 10px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: var(--primary-light);
}

/* منوی اصلی */
.main-navigation {
    background: var(--primary-color);
    position: relative;
}

.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.main-nav > li > a {
    display: block;
    padding: 12px 20px;
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.main-nav > li > a:hover {
    background: var(--primary-light);
    color: var(--white);
}

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1000;
}

.main-nav > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

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

.main-nav .sub-menu li a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* آیتم اصلی در زیرمنو */
.main-nav .sub-menu li.submenu-main-item a {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-light);
}

.main-nav .sub-menu li.submenu-main-item a:hover {
    background: var(--primary-light);
    color: var(--white);
}

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

.content-area {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
}

/* اسلایدر اصلی */
.main-slider {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.slider-container {
    position: relative;
    height: 400px;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(#0000000f, rgb(0 0 0 / 84%));
    color: var(--white);
    padding: 50px 20px 50px;
}

.slide-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.slide-meta {
    font-size: 12px;
    opacity: 0.9;
}

.slider-navigation {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 8px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* بخش‌های خبری */
.news-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.view-all-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
}

.view-all-link:hover {
    color: var(--primary-color);
}

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

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.news-card-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.news-card-content {
    padding: 15px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card-excerpt {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ویژگی‌های خبر فوری */
.breaking-news {
    background: var(--danger);
    color: var(--white);
    padding: 10px 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.breaking-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background: var(--white);
    color: var(--danger);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}

.breaking-text {
    animation: scroll-left 30s linear infinite;
    font-weight: 500;
}

/* شبکه‌های اجتماعی */
.social-share {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}



.social-share a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* سایدبار */
.sidebar {
    padding-right: 20px;
}

.widget {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-title {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.widget-content {
    padding: 20px;
}

/* بنر تبلیغات */
.ad-banner {
    text-align: center;
    margin: 20px 0;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.ad-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* فوتر */
.site-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
    position: relative;
    z-index: 100;
}

.footer-top {
    margin-bottom: 30px;
}

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

.footer-widget h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    color: #d1d5db;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

/* انیمیشن‌ها */
@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* بخش گالری گسترده */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.gallery-item-count {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: -50px;
}

.lightbox-next {
    right: -50px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

/* بخش ویدیو با امبد */
.video-embed-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
}

.video-embed-container iframe,
.video-embed-container video {
    width: 100%;
    height: 100%;
    border: none;
}

/* بخش‌های جدید */
.sports-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.sports-section .section-title {
    color: white;
    border-bottom: 2px solid #ffd700;
}

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

.sports-card {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sports-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.sports-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.reports-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.notes-section {
    background: linear-gradient(135deg, #e9971d 0%, #fe7500 100%);
    color: white;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.dashboard-section {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.dashboard-widget {
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dashboard-widget h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.dashboard-widget .number {
    font-size: 28px;
    font-weight: bold;
    color: #007cba;
}

/* آمار بیشتر */
.more-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin: 5px;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}


/* حالت تاریک */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1f2937;
        --white: #374151;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --border-color: #4b5563;
    }
}

/* Video Modal */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.video-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-backdrop {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

.lightbox-content {
    position: relative;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Play Button Improvements */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(0,0,0,0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}/* آیکون‌ها در منو */
.main-nav a svg {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.8;
}

.main-nav > li > a svg {
    display: none; /* آیکون صفحه اصلی */
}

.main-nav .sub-menu a svg {
    width: 14px;
    height: 14px;
    margin-left: 8px;
    margin-right: 0;
}

/* شبکه‌های اجتماعی سفارشی */
.header-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-social a,
.header-social .social-custom {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.header-social a:hover,
.header-social .social-custom:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.header-social svg {
    width: 16px;
    height: 16px;
}

.header-social .social-custom img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.header-social .social-custom {
    cursor: pointer;
}

.header-social .social-custom svg {
    width: 16px;
    height: 16px;
}

/* منوی اصلی بهبود یافته */
.main-navigation {
    background: linear-gradient(135deg, #d57300 0%, #975100 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav > li > a {
    position: relative;
    overflow: hidden;
}

.main-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav > li > a:hover::after {
    width: 80%;
}

.submenu-toggle {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    opacity: 0;
}

.has-submenu:hover .submenu-toggle {
    opacity: 1;
}

.submenu-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

/* ریسپانسیو منو */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .main-nav > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        margin-left: 20px;
        border-radius: 0;
    }

    .submenu-toggle {
        display: none;
    }

    .header-social {
        gap: 10px;
    }

    .header-social a,
    .header-social .social-custom {
        width: 28px;
        height: 28px;
    }
}

/* بهبود انیمیشن کارت روزنامه */
.newspaper-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

/* بهبود گرید محتوا */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.news-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.section-title {
    font-size: 26px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.view-all-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-all-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.view-all-link:hover::before {
    width: 100%;
}

.view-all-link:hover {
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ====== NEW FEATURES CSS V2.3 ====== */

/* Gallery Popup Styles */
.gallery-popup-container {
    margin-bottom: 30px;
}

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

.gallery-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    background: var(--gray-100);
}

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

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.1), rgba(80, 200, 120, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
    animation: slideIn 0.3s ease;
}

.lightbox img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* Video Player Styles */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: #000;
}

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

.video-container video {
    object-fit: contain;
}

/* Enhanced Social Share */
.social-share {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid var(--gray-200);
}

.social-share h4 {
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-buttons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.social-buttons a:hover::before {
    left: 100%;
}

.social-buttons a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}



/* Newspaper Post Type Styles */
.newspaper-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.newspaper-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.newspaper-thumbnail {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.newspaper-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.newspaper-card:hover .newspaper-thumbnail img {
    transform: scale(1.1);
}

.newspaper-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.newspaper-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.newspaper-title a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.newspaper-title a:hover {
    color: var(--primary-color);
}

.newspaper-excerpt {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.newspaper-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-500);
}

.newspaper-section {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.newspaper-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.newspaper-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.newspaper-card:hover .newspaper-link {
    opacity: 1;
    transform: translateY(0);
}

.newspaper-link:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

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

.fadeInUp {
    animation: slideInUp 0.6s ease forwards;
}

/* Enhanced Mobile Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-item img {
        height: 150px;
    }

    .lightbox-close {
        top: -40px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: -60px;
    }

    .lightbox-next {
        right: -60px;
    }

    .social-buttons {
        gap: 10px;
    }

    .social-buttons a {
        width: 45px;
        height: 45px;
    }

    .newspaper-thumbnail {
        height: 200px;
    }

    .newspaper-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-item img {
        height: 120px;
    }

    .video-container {
        border-radius: 10px;
    }

    .social-share {
        padding: 20px;
    }

    .social-buttons a {
        width: 40px;
        height: 40px;
    }
}

/* مود تاریک - استایل‌های اصلی */
body.dark-mode {
    background: #0f0f0f !important;
    color: #e5e5e5 !important;
}

/* override all other styles */
body.dark-mode * {
    background-color: inherit;
    color: inherit;
}

body.dark-mode .site-header,
body.dark-mode .header-top,
body.dark-mode .main-navigation {
    background: #0f0f0f !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .site-header .header-content {
    background: transparent !important;
}

body.dark-mode .header-top {
    background: #0f0f0f !important;
}

body.dark-mode .container {
    background: transparent !important;
}

body.dark-mode .news-card,
body.dark-mode .video-card,
body.dark-mode .gallery-card {
    background: #1a1a1a !important;
    color: #e5e5e5 !important;
    border: 1px solid #333 !important;
}

body.dark-mode .news-card:hover,
body.dark-mode .video-card:hover,
body.dark-mode .gallery-card:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .header-top {
    background: #0f0f0f !important;
}

body.dark-mode .post-header,
body.dark-mode .post-content {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #e5e5e5 !important;
}

body.dark-mode .post-lead {
    background: #2a2a2a !important;
    border-right-color: #60a5fa !important;
    color: #e5e5e5 !important;
}

body.dark-mode .news-card-title a,
body.dark-mode .video-title-link,
body.dark-mode .gallery-title-link {
    color: #60a5fa !important;
}

body.dark-mode .news-card-title a:hover,
body.dark-mode .video-title-link:hover,
body.dark-mode .gallery-title-link:hover {
    color: #fbbf24 !important;
}

body.dark-mode .social-share,
body.dark-mode .comments-section {
    background: var(--white) !important;
    border: 1px solid var(--border-color) !important;
}

body.dark-mode .pagination a,
body.dark-mode .pagination span {
    background: var(--white) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .pagination a:hover,
body.dark-mode .pagination .current {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

body.dark-mode .search-input {
    background: var(--white) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .search-input::placeholder {
    color: var(--text-secondary) !important;
}

body.dark-mode .no-image-placeholder {
    background: #2a2a2a !important;
}

/* Dark Mode Toggle Responsive */
@media (max-width: 768px) {
    .dark-mode-toggle {
        margin: 0 10px;
        order: 3;
    }

    .dark-mode-button {
        width: 40px;
        height: 40px;
    }

    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .header-search {
        order: 2;
        width: 100%;
        margin-top: 15px;
    }

    .site-logo {
        order: 1;
    }
}

@media (max-width: 480px) {
    .dark-mode-toggle {
        margin: 0 5px;
    }

    .dark-mode-button {
        width: 35px;
        height: 35px;
    }

    .dark-mode-button svg {
        width: 16px;
        height: 16px;
    }
}

/* Newspaper Images Section */
.newspaper-images-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.newspaper-images-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.newspaper-images-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.newspaper-images-section .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newspaper-images-section .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.newspaper-images-section .gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.newspaper-images-section .gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Dark mode for newspaper images */
body.dark-mode .newspaper-images-section {
    background: #1a1a1a !important;
    border-color: #333 !important;
}

body.dark-mode .newspaper-images-section h3 {
    color: #e5e5e5 !important;
}

body.dark-mode .newspaper-images-section .gallery-item:hover {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1) !important;
}

/* Newspaper Gallery Grid */
.newspaper-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.newspaper-gallery-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    background: var(--gray-100);
    aspect-ratio: 1;
}

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

.newspaper-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.1), rgba(80, 200, 120, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.newspaper-gallery-item:hover::before {
    opacity: 1;
}

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

.newspaper-gallery-item:hover .newspaper-gallery-image {
    transform: scale(1.1);
}

/* Dark mode for newspaper gallery */
body.dark-mode .newspaper-gallery-item {
    background: #2a2a2a !important;
}

body.dark-mode .newspaper-gallery-item:hover {
    box-shadow: 0 8px 25px rgba(255,255,255,0.1) !important;
}

@media (max-width: 768px) {
    .newspaper-images-section .gallery-grid,
    .newspaper-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .newspaper-images-section .gallery-image,
    .newspaper-gallery-image {
        height: 150px;
    }
}
}
/* پایه هدر - اضافه کن به بالای فایل */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px; /* فاصله بین لوگو، سرچ و دکمه */
}

/* موبایل - بهبود media query موجود (max-width: 768px) */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .site-logo {
        order: 1;
        flex-shrink: 0; /* لوگو فشرده نشه */
    }

    .header-search {
        order: 2;
        width: 100%;
        margin-top: 10px;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 3;
        flex-shrink: 0;
        background: rgb(255 255 255);
        border-radius: 8px;
        padding: 10px;
        margin: 10px;
    }


    .dark-mode-toggle {
        order: 4;
        margin: 0 5px;
    }
}

/* ======================================================================
   استایل‌های بخش‌های جدید - اخبار سیاسی، اجتماعی، روایت روز، پیشنهاد سردبیر و اخبار داغ
   ====================================================================== */

/* بخش اسلایدر ویژگی‌ها - برای نمایش در کنار پیشنهاد سردبیر */
.featured-slider-row {
    margin-bottom: 30px;
}

/* ======================================================================
   بخش ترکیبی اسلایدر و پیشنهاد سردبیر (60% - 40%)
   ====================================================================== */
.slider-editors-container {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.featured-slider-col {
    flex: 0 0 60%;
    max-width: 60%;
}

.editors-choice-col {
    flex: 0 0 40%;
    max-width: 40%;
}

/* استایل اسلایدر */
.featured-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.featured-slider-container {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.featured-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

.featured-slide:not(.active) {
    opacity: 0.4;
    z-index: 1;
    transform: scale(0.95);
}

.featured-slide:hover:not(.active) {
    opacity: 0.7;
    transform: scale(0.98);
}

.slide-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-slide.active .slide-image img {
    transform: scale(1.05);
}

.slide-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 30px 30px;
    color: white;
}

.slide-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.slide-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slide-title a:hover {
    color: #64b5f6;
}

.slide-meta {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* دات‌های اسلایدر */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dots-container {
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.5);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active,
.dot:hover {
    background: #64b5f6;
    transform: scale(1.2);
    border-color: rgba(255,255,255,0.8);
}

/* استایل بخش پیشنهاد سردبیر */
.editors-choice-section {
    height: 100%;
    min-height: 500px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.editors-choice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #51399b;
    color: white;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.editors-choice-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.editors-choice-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.editors-choice-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.editors-choice-content {
    padding: 0 20px 20px;
    height: calc(100% - 100px);
    overflow-y: auto;
}

.secondary-editors-choice {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.secondary-editors-choice:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.secondary-editors-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

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

.secondary-editors-choice:hover .secondary-editors-image img {
    transform: scale(1.1);
}

.editors-image-placeholder.small {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.secondary-editors-content {
    flex: 1;
    min-width: 0;
}

.secondary-editors-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.secondary-editors-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.secondary-editors-choice:hover .secondary-editors-title a {
    color: #667eea;
}

.secondary-editors-date {
    font-size: 12px;
    color: #666;
}

.no-editors-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    font-style: italic;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    margin: 0;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 1200px) {
    .slider-editors-container {
        flex-direction: column;
        gap: 0;
    }

    .featured-slider-col,
    .editors-choice-col {
        flex: none;
        max-width: 100%;
    }

    .featured-slider-container {
        min-height: 300px;
    }

    .editors-choice-section {
        min-height: auto;
    }

    .slide-overlay {
        padding: 20px;
    }

    .slide-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .featured-slider-container {
        min-height: 250px;
    }

    .slide-title {
        font-size: 18px;
    }

    .slide-overlay {
        padding: 15px;
    }

    .editors-choice-header {
        padding: 20px;
    }

    .editors-choice-title {
        font-size: 18px;
    }

    .secondary-editors-choice {
        flex-direction: column;
        gap: 10px;
    }

    .secondary-editors-image {
        width: 100%;
        height: 120px;
    }
}

/* ======================================================================
   بخش پیشنهاد سردبیر
   ====================================================================== */
.editors-choice-section {
    background: #715ab8;
    border-radius: 15px;
    padding: 25px;
    color: white;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.editors-choice-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.editors-choice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.editors-choice-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editors-choice-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.editors-choice-content {
    position: relative;
    z-index: 1;
}

.main-editors-choice {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-editors-choice:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.main-editors-choice-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.main-editors-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-editors-choice:hover .main-editors-image {
    transform: scale(1.05);
}

.main-editors-choice-content {
    padding: 15px;
}

.main-editors-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.main-editors-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-editors-title a:hover {
    color: #f0f0f0;
}

.main-editors-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    margin: 0 0 10px 0;
}

.main-editors-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.secondary-editors-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.secondary-editors-choice:hover {
    background: rgba(255,255,255,0.15);
}

.secondary-editors-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.secondary-editors-content {
    flex: 1;
}

.secondary-editors-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.secondary-editors-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.secondary-editors-title a:hover {
    color: #f0f0f0;
}

.secondary-editors-date {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.editors-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    border-radius: 8px;
}

.editors-image-placeholder.small {
    width: 60px;
    height: 60px;
    font-size: 12px;
}

.editors-choice-footer {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.editors-all-link {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.editors-all-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* ======================================================================
   بخش اخبار سیاسی
   ====================================================================== */
/* ===== بخش اخبار سیاسی - طراحی جدید با گرادیان رسمی ===== */
.political-news-section {
    margin-bottom: 40px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
}

.political-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #1e40af);
    animation: politicalGradient 3s ease-in-out infinite;
}

@keyframes politicalGradient {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.political-header {
    background: transparent;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
}

.political-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.political-icon {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    animation: politicalPulse 2s ease-in-out infinite;
}

@keyframes politicalPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
        transform: scale(1.05);
    }
}

.political-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.political-view-all {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.political-view-all:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.political-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    background: transparent;
    padding: 30px;
    position: relative;
}

.political-news-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.political-main-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;
}

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

.political-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.political-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.political-main-card:hover .political-main-image {
    transform: scale(1.05);
}

.political-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.political-category {
    background: #1e3c72;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.political-main-content {
    padding: 20px;
}

.political-main-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.political-main-title a {
    color: #1e3c72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.political-main-title a:hover {
    color: #2a5298;
}

.political-main-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 15px 0;
}

.political-main-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.political-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.political-secondary-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
}

.political-secondary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.political-secondary-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.political-secondary-content {
    padding: 12px;
    flex: 1;
}

.political-secondary-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.political-secondary-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.political-secondary-title a:hover {
    color: #1e3c72;
}

.political-secondary-date {
    font-size: 11px;
    color: #888;
}

/* ===== Layout جدید بخش سیاسی - ستون دوگانه ===== */
.political-layout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background: transparent;
    padding: 30px;
    position: relative;
}

.political-layout-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.political-main-column {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.political-sidebar-column {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
}

.political-sidebar-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

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

.political-sidebar-item:hover {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    margin: 0 -10px;
    padding: 15px 10px;
}

.political-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.political-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.political-sidebar-title a {
    color: #1e3c72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.political-sidebar-title a:hover {
    color: #2a5298;
}

.political-sidebar-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
}

/* ======================================================================
   بخش اخبار اجتماعی
   ====================================================================== */
/* ===== بخش اخبار اجتماعی - طراحی جدید با گرادیان گرم ===== */
.social-news-section {
    margin-bottom: 40px;
    background: linear-gradient(145deg, #ff6b35 0%, #f7931e 50%, #ffc107 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    overflow: hidden;
    position: relative;
}

.social-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ffc107);
    animation: socialShimmer 2.5s ease-in-out infinite;
}

@keyframes socialShimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.social-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
}

.social-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.social-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    animation: socialFloat 3s ease-in-out infinite;
}

@keyframes socialFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.social-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #fff3e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-view-all {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.social-view-all:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.social-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    position: relative;
}

.social-news-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.social-main-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;
}

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

.social-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.social-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.social-main-card:hover .social-main-image {
    transform: scale(1.05);
}

.social-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.social-category {
    background: #11998e;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.social-main-content {
    padding: 20px;
}

.social-main-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.social-main-title a {
    color: #11998e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-main-title a:hover {
    color: #38ef7d;
}

.social-main-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 15px 0;
}

.social-main-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.social-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-secondary-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.social-secondary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.social-secondary-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.social-secondary-content {
    padding: 12px;
    flex: 1;
}

.social-secondary-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.social-secondary-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-secondary-title a:hover {
    color: #11998e;
}

.social-secondary-date {
    font-size: 11px;
    color: #888;
}

/* ===== Layout جدید بخش اجتماعی - ستون دوگانه ===== */
.social-layout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    position: relative;
}

.social-layout-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.social-main-column {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.social-sidebar-column {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.08);
    backdrop-filter: blur(10px);
}

.social-sidebar-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

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

.social-sidebar-item:hover {
    background: rgba(255, 107, 53, 0.05);
    border-radius: 8px;
    margin: 0 -10px;
    padding: 15px 10px;
}

.social-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.social-sidebar-title a {
    color: #e65100;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-sidebar-title a:hover {
    color: #ff6b35;
}

.social-sidebar-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
}

/* ======================================================================
   بخش اخبار داغ
   ====================================================================== */
.hot-news-section {
    margin-bottom: 40px;
}

.hot-header {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    border-radius: 15px 15px 0 0;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hot-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: hot-shimmer 2s infinite;
}

@keyframes hot-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hot-icon.fire {
    position: relative;
    z-index: 2;
}

.hot-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
}

.hot-trending-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.trending-pulse {
    width: 8px;
    height: 8px;
    background: #ffeb3b;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.trending-text {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

/* ===== بخش اخبار داغ - طراحی جدید لیست ===== */
.hot-news-container {
    background: linear-gradient(145deg, #1a0000 0%, #2d0000 50%, #4a0000 100%);
    padding: 30px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.hot-news-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: hot-flame 3s ease-in-out infinite;
}

@keyframes hot-flame {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hot-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
}

/* استایل‌های آیتم‌های لیست اخبار داغ */
.hot-news-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hot-news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ffc107);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hot-news-item:hover::before {
    transform: scaleX(1);
}

.hot-news-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

/* انواع مختلف آلارم */
.hot-news-item.super-hot {
    border-left: 4px solid #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.hot-news-item.hot {
    border-left: 4px solid #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.hot-news-item.special {
    border-left: 4px solid #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.hot-news-item.trending {
    border-left: 4px solid #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.hot-news-alert {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    justify-content: center;
}

.alert-badge {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4);
    animation: alert-pulse 2s ease-in-out infinite;
}

.super-hot .alert-badge {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    animation: super-hot-flash 1.5s ease-in-out infinite;
}

.special .alert-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
}

.trending .alert-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

@keyframes alert-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.6);
    }
}

@keyframes super-hot-flash {
    0%, 100% {
        background: linear-gradient(135deg, #ff0000, #cc0000);
        box-shadow: 0 2px 15px rgba(255, 0, 0, 0.5);
    }
    50% {
        background: linear-gradient(135deg, #ff4444, #ff0000);
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }
}

.hot-news-content {
    flex: 1;
}

.hot-news-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.hot-news-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hot-news-title a:hover {
    color: #ffd700;
}

.hot-news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.hot-views-count,
.hot-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hot-views-count svg,
.hot-date svg {
    opacity: 0.7;
}

/* استایل responsive برای موبایل */
@media (max-width: 768px) {
    .hot-news-item {
        padding: 15px;
        gap: 15px;
    }

    .hot-news-alert {
        width: 70px;
    }

    .alert-badge {
        font-size: 10px;
        padding: 6px 8px;
    }

    .hot-news-title {
        font-size: 14px;
    }

    .hot-news-meta {
        gap: 15px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hot-news-container {
        padding: 20px 15px;
    }

    .hot-news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hot-news-alert {
        width: auto;
    }
}

/* ======================================================================
   بخش روایت روز
   ====================================================================== */
.daily-stories-section {
    margin-bottom: 40px;
    background: linear-gradient(135deg, #c16700 0%, #f18b12 100%);
    border-radius: 15px;
    overflow: hidden;
}

.daily-header {
    background: rgba(255,255,255,0.1);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    backdrop-filter: blur(10px);
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.daily-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.daily-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.daily-nav-controls {
    display: flex;
    gap: 10px;
}

.daily-nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.daily-nav-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.daily-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.daily-stories-container {
    padding: 25px;
    overflow: hidden;
}

.daily-stories-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.daily-story-card {
    background: rgba(255,255,255,0.95);
    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;
    min-width: 300px;
    position: relative;
}

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

.daily-story-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.daily-story-card:hover .daily-image {
    transform: scale(1.05);
}

.daily-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
}

.daily-time-label {
    background: rgba(102,126,234,0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.daily-story-content {
    padding: 18px;
}

.daily-story-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.daily-story-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.daily-story-title a:hover {
    color: #667eea;
}

.daily-story-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0 0 15px 0;
}

.daily-story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #888;
}

.daily-date,
.daily-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.daily-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

/* ======================================================================
   پیام عدم وجود اخبار
   ====================================================================== */
.no-news-message,
.no-hot-news-message,
.no-editors-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    font-style: italic;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    margin: 0;
}

/* ======================================================================
   ریسپانسیو برای بخش‌های جدید
   ====================================================================== */
@media (max-width: 1200px) {
    .political-news-grid,
    .social-news-grid {
        grid-template-columns: 1fr;
    }

    .editors-choice-section {
        margin-bottom: 20px;
    }

    .daily-story-card {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .editors-choice-section {
        padding: 20px;
    }

    .editors-choice-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .political-header,
    .social-header,
    .hot-header,
    .daily-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .political-news-grid,
    .social-news-grid {
        padding: 20px 15px;
        gap: 15px;
    }

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

    .daily-story-card {
        min-width: 250px;
    }

    .daily-stories-container {
        padding: 20px 15px;
    }

    .daily-nav-controls {
        order: -1;
    }

    .secondary-editors-choice {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .secondary-editors-image {
        width: 80px;
        height: 80px;
    }

    .political-secondary-card,
    .social-secondary-card,
    .hot-secondary-card {
        flex-direction: column;
        text-align: center;
    }

    .political-secondary-image,
    .social-secondary-image {
        width: 100%;
        height: 120px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .daily-story-card {
        min-width: 220px;
    }

    .daily-nav-btn {
        width: 35px;
        height: 35px;
    }

    .main-editors-choice-image {
        height: 150px;
    }

    .political-main-card .political-card-image,
    .social-main-card .social-card-image {
        height: 200px;
    }

    .hot-main-card .hot-card-image {
        height: 180px;
    }

    .daily-story-image {
        height: 150px;
    }
}
}


/* ========================================
   استایل‌های جدید و متفاوت برای بخش‌ها
   ======================================== */

/* ---------- بخش پیشنهاد سردبیر - استایل الماس ---------- */
.editors-choice-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.editors-choice-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: editors-shine 3s infinite;
}

@keyframes editors-shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.editors-choice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.editors-choice-icon.diamond-gradient {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    animation: diamond-pulse 2s ease-in-out infinite;
}

@keyframes diamond-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6); }
}

.editors-choice-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.main-editors-choice {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.main-editors-choice:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.2);
}

.main-editors-choice-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-editors-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-editors-choice:hover .main-editors-image {
    transform: scale(1.05);
}

.main-editors-title a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.main-editors-title a:hover {
    color: #ffd700;
}

.main-editors-excerpt {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0;
    line-height: 1.6;
}

.main-editors-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.editors-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.secondary-editors-choice {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.secondary-editors-choice:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.secondary-editors-image {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.secondary-editors-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.secondary-editors-title a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.secondary-editors-title a:hover {
    color: #ffd700 !important;
}

.secondary-editors-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.editors-choice-footer {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.editors-all-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.editors-all-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ---------- بخش اخبار داغ - استایل آتش ---------- */
.hot-news-section {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff4757 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.hot-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="heat" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="20" cy="20" r="5" fill="url(%23heat)"/><circle cx="80" cy="30" r="8" fill="url(%23heat)"/><circle cx="30" cy="70" r="6" fill="url(%23heat)"/><circle cx="70" cy="80" r="4" fill="url(%23heat)"/></svg>') repeat;
    animation: heat-wave 4s linear infinite;
    opacity: 0.3;
}

@keyframes heat-wave {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
    100% { transform: translateY(0) scale(1); }
}

.hot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hot-icon.fire {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff2d2d, #ff8c00, #ff2d2d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 45, 45, 0.5);
    animation: fire-pulse 1.5s ease-in-out infinite;
}

@keyframes fire-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(255, 45, 45, 0.5);
        background: linear-gradient(45deg, #ff2d2d, #ff8c00, #ff2d2d);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(255, 45, 45, 0.8);
        background: linear-gradient(45deg, #ff4500, #ff6347, #ff4500);
    }
}

.hot-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hot-trending-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.trending-pulse {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: trend-pulse 1s infinite;
}

@keyframes trend-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.trending-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.hot-news-container {
    position: relative;
    z-index: 2;
}

.hot-main-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.hot-main-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.2);
}

.hot-card-image {
    position: relative;
    overflow: hidden;
}

.hot-main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hot-main-card:hover .hot-main-image {
    transform: scale(1.1);
}

.hot-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hot-badge {
    background: linear-gradient(45deg, #ff2d2d, #ff4757);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(255, 45, 45, 0.4);
}

.trending-diamond {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    animation: diamond-bounce 2s infinite;
}

@keyframes diamond-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.hot-main-content {
    padding: 20px;
}

.hot-main-title a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    margin-bottom: 10px;
}

.hot-main-title a:hover {
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hot-main-excerpt {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0;
    line-height: 1.6;
}

.hot-main-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.hot-views,
.hot-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.hot-secondary-card {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hot-secondary-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.hot-secondary-image {
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.hot-secondary-image img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.secondary-trending-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 12px;
}

.hot-secondary-title a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
}

.hot-secondary-title a:hover {
    color: #ffd700;
}

.hot-secondary-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.hot-views-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.hot-secondary-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* ---------- استایل‌های رسپانسیو برای بخش‌های جدید ---------- */
@media (max-width: 768px) {
    .editors-choice-section,
    .hot-news-section {
        margin: 15px 10px;
        padding: 20px 15px;
    }

    .editors-choice-header,
    .hot-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .section-title-wrapper {
        justify-content: center;
    }

    .main-editors-choice {
        padding: 15px;
    }

    .main-editors-image {
        height: 180px;
    }

    .secondary-editors-choice {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .secondary-editors-image img {
        width: 100%;
        height: 120px;
    }

    .hot-main-image {
        height: 200px;
    }

    .hot-secondary-card {
        flex-direction: column;
        gap: 10px;
    }

    .hot-secondary-image img {
        width: 100%;
        height: 120px;
    }

    .hot-main-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hot-secondary-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* ---------- Layout جدید political و social در موبایل ---------- */
    .political-layout-container,
    .social-layout-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }

    .political-main-column,
    .social-main-column {
        order: 1;
    }

    .political-sidebar-column,
    .social-sidebar-column {
        order: 2;
        background: rgba(255, 255, 255, 0.95);
        margin-top: 10px;
    }

    .political-sidebar-item,
    .social-sidebar-item {
        padding: 12px 0;
    }

    .political-sidebar-title,
    .social-sidebar-title {
        font-size: 15px;
        line-height: 1.5;
    }

    .political-card-image,
    .social-card-image {
        height: 200px;
    }

    .political-main-title,
    .social-main-title {
        font-size: 18px;
    }

    .political-main-excerpt,
    .social-main-excerpt {
        font-size: 14px;
    }
}

/* ---------- پلیر صوتی پادکست ---------- */
.audio-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.audio-player-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-player-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-player-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.audio-player-content audio {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

.audio-player-content audio::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.1);
}

.audio-player-content audio::-webkit-media-controls-play-button {
    background-color: #6366f1;
    border-radius: 50%;
}

.audio-player-content audio::-webkit-media-controls-timeline {
    background-color: rgba(255, 255, 255, 0.3);
}

/* استایل پلیر موبایل */
@media (max-width: 768px) {
    .audio-player-content {
        margin: 10px;
        padding: 20px;
        max-width: none;
    }

    .audio-player-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 10px;
        right: 15px;
    }
}

/* انیمیشن ورودی پلیر */
@keyframes audioPlayerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.audio-player-overlay {
    animation: audioPlayerFadeIn 0.3s ease-out;
}

/* بهبود استایل دکمه‌های پخش در کارت پادکست */
.audio-play-btn {
    transition: all 0.3s ease;
}

.audio-play-btn:hover {
    transform: scale(1.05);
}

.audio-play-btn:active {
    transform: scale(0.95);
}

/* استایل ویژه برای دکمه پخش بزرگ */
.play-button {
    position: relative;
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button:hover::before {
    opacity: 1;
}

/* استایل بخش اطلاعات پلیر */
.audio-player-info {
    text-align: center;
    margin-bottom: 20px;
}

.audio-player-info h3 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    animation: audioPlayerFadeIn 0.5s ease-out 0.2s both;
}

.audio-player-info p {
    text-align: center;
    animation: audioPlayerFadeIn 0.5s ease-out 0.3s both;
}

/* بهبود کنترل‌های صوتی */
.audio-player-content audio {
    height: 50px;
    outline: none;
}

.audio-player-content audio::-webkit-media-controls-panel {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 25px;
    padding: 10px;
}

.audio-player-content audio::-webkit-media-controls-play-button,
.audio-player-content audio::-webkit-media-controls-pause-button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border-radius: 50% !important;
}

.audio-player-content audio::-webkit-media-controls-timeline {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px;
    margin: 0 10px;
}

.audio-player-content audio::-webkit-media-controls-current-time-display,
.audio-player-content audio::-webkit-media-controls-time-remaining-display {
    color: white !important;
    font-weight: 600;
}

/* حالت فوکوس برای دسترسی‌پذیری */
.audio-player-close:focus,
.audio-player-content audio:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* انیمیشن ویژه برای موبایل */
@media (max-width: 768px) {
    .audio-player-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .audio-player-content {
        animation: audioPlayerSlideUp 0.3s ease-out;
    }
}

@keyframes audioPlayerSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* وضعیت لودینگ برای فایل صوتی */
.audio-player-content audio[data-loading="true"]::before {
    content: "در حال بارگذاری...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

/* استایل دکمه بدون فایل صوتی */
.audio-play-btn.no-audio {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
}

.audio-play-btn.no-audio:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: none;
}

/* هایلایت خطا */
.podcast-card.error-highlight {
    animation: errorPulse 0.3s ease-in-out 3;
    border: 2px solid #ff6b6b;
}

@keyframes errorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
}

/* استایل اعلان‌ها */
.notification {
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 500 !important;
    border-right: 4px solid rgba(255, 255, 255, 0.3);
}

.notification::before {
    content: '🔊';
    margin-left: 8px;
}

.notification.error::before {
    content: '⚠️';
}

.notification.success::before {
    content: '✅';
}

/* موبایل برای اعلان‌ها */
@media (max-width: 768px) {
    .notification {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
        transform: translateY(-100%);
    }

    .notification.show {
        transform: translateY(0);
    }
}
.ava-sports-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #006e27 0%, #063400 100%);
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.ava-sports-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ========================================
   هدر بخش
======================================== */
.ava-sports-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ava-sports-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ava-sports-icon {
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.ava-sports-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ava-sports-view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ava-sports-view-all:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ava-sports-view-all svg {
    transition: transform 0.3s ease;
}

.ava-sports-view-all:hover svg {
    transform: translateX(-3px);
}

/* ========================================
   گرید کارت‌ها
======================================== */
.ava-sports-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* ========================================
   کارت خبر
======================================== */
.ava-sports-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.ava-sports-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

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

/* ========================================
   تصویر کارت
======================================== */
.ava-sports-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ava-sports-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ava-sports-card:hover .ava-sports-thumbnail {
    transform: scale(1.1);
}

.ava-sports-no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ava-sports-placeholder-icon {
    color: rgba(255, 255, 255, 0.5);
}

.ava-sports-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ava-sports-card:hover .ava-sports-card-overlay {
    opacity: 1;
}

.ava-sports-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #667eea;
    transition: all 0.3s ease;
}

.ava-sports-card:hover .ava-sports-badge {
    transform: rotate(360deg);
    background: #fff;
}

/* ========================================
   محتوای کارت
======================================== */
.ava-sports-card-content {
    padding: 20px;
}

.ava-sports-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.ava-sports-card:hover .ava-sports-card-title {
    color: #667eea;
}

.ava-sports-card-excerpt {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   متادیتا
======================================== */
.ava-sports-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.ava-sports-meta-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #a0aec0;
}

.ava-sports-meta-date svg {
    color: #cbd5e0;
}

.ava-sports-meta-category {
    font-size: 11px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #006e27 0%, #063400 100%);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
}

/* ========================================
   پیام عدم وجود مطلب
======================================== */
.ava-sports-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ava-sports-no-posts svg {
    color: rgba(255, 255, 255, 0.5);
}

.ava-sports-no-posts p {
    font-size: 16px;
    margin: 0;
}

/* ========================================
   ریسپانسیو
======================================== */

/* تبلت */
@media (max-width: 768px) {
    .ava-sports-section {
        padding: 40px 16px;
    }

    .ava-sports-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 30px;
    }

    .ava-sports-title {
        font-size: 26px;
    }

    .ava-sports-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .ava-sports-card-image {
        height: 180px;
    }

    .ava-sports-card-title {
        font-size: 16px;
    }
}

/* موبایل */
@media (max-width: 480px) {
    .ava-sports-section {
        padding: 30px 12px;
    }

    .ava-sports-title {
        font-size: 22px;
    }

    .ava-sports-icon {
        width: 24px;
        height: 24px;
    }

    .ava-sports-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ava-sports-card-image {
        height: 160px;
    }

    .ava-sports-card-title {
        font-size: 15px;
    }

    .ava-sports-card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .ava-sports-card-content {
        padding: 16px;
    }

    .ava-sports-view-all {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* انیمیشن لود شدن */
@keyframes avaSportsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ava-sports-card {
    animation: avaSportsFadeInUp 0.6s ease forwards;
}

.ava-sports-card:nth-child(1) { animation-delay: 0.1s; }
.ava-sports-card:nth-child(2) { animation-delay: 0.2s; }
.ava-sports-card:nth-child(3) { animation-delay: 0.3s; }
.ava-sports-card:nth-child(4) { animation-delay: 0.4s; }
.ava-sports-card:nth-child(5) { animation-delay: 0.5s; }
.ava-sports-card:nth-child(6) { animation-delay: 0.6s; }

/* =============================================================================
   Dark Mode Toggle Button
   ============================================================================= */

/* Header Search Container - برای positioning دکمه */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dark Mode Toggle Button - خارج از فرم */
.dark-mode-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color, #e1e5e9);
    background: var(--bg-primary, #ffffff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color, #333333);
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    border-color: var(--accent-color, #007cba);
    background: var(--hover-bg, #f8f9fa);
    color: var(--accent-color, #007cba);
}

.dark-mode-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Icons in toggle */
.sun-icon,
.moon-icon {
    position: absolute;
    transition: all 0.3s ease;
    width: 18px;
    height: 18px;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

/* When in dark mode - مخفی/نمایش آیکون‌ها */
body.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

body.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Dark mode styles for toggle */
body.dark-mode .dark-mode-toggle {
    border-color: var(--border-color, #444444);
    background: var(--bg-secondary, #2d2d2d);
    color: var(--text-secondary, #cccccc);
}

body.dark-mode .dark-mode-toggle:hover {
    background: var(--hover-bg, #404040);
    color: var(--accent-color, #4a9eff);
    border-color: var(--accent-color, #4a9eff);
}

/* =============================================================================
   Dark Mode Styles
   ============================================================================= */

/* Root Variables for Dark Mode */
body.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: #444444;
    --accent-color: #4a9eff;
    --hover-bg: #404040;
    --card-bg: #2d2d2d;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* Dark Mode for ALL elements */
body.dark-mode {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* Header Dark Mode */
body.dark-mode .site-header {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .header-search {
    background: #1a1a1a !important;
}

body.dark-mode .search-input {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .search-button {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Navigation Dark Mode */
body.dark-mode .main-navigation {
    background: #1a1a1a !important;
}

body.dark-mode .main-navigation a {
    color: var(--text-primary) !important;
}

body.dark-mode .main-navigation a:hover {
    color: var(--accent-color) !important;
}

/* Content Dark Mode */
body.dark-mode .container {
    background: #1a1a1a !important;
}

body.dark-mode .content-area {
    background: var(--bg-primary) !important;
}

body.dark-mode .post,
body.dark-mode .page {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Widgets Dark Mode */
body.dark-mode .widget {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Links Dark Mode */
body.dark-mode a {
    color: #fff;
}

body.dark-mode a:hover {
    color: #ffffff !important;
}

/* Buttons Dark Mode */
body.dark-mode button,
body.dark-mode .button,
body.dark-mode .btn {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode button:hover,
body.dark-mode .button:hover,
body.dark-mode .btn:hover {
    background: var(--hover-bg) !important;
    color: var(--accent-color) !important;
}

/* Forms Dark Mode */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Footer Dark Mode */
body.dark-mode .site-footer {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

/* Body and General Elements */
body.dark-mode {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Headers */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--text-primary);
}

/* Links */
body.dark-mode a {
    color: #fff;
}

body.dark-mode a:hover {
    color: #66aaff;
}

/* Header Styles */
body.dark-mode .site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .header-top {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .header-main {
    background-color: #1a1a1a;
}

body.dark-mode .header-date,
body.dark-mode .header-social a {
    color: var(--text-secondary);
}

body.dark-mode .header-social a:hover {
    color: var(--accent-color);
}

/* Search Form */
body.dark-mode .search-form {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

body.dark-mode .search-input {
    background-color: transparent;
    color: var(--text-primary);
    border: none;
}

body.dark-mode .search-input::placeholder {
    color: var(--text-muted);
}

body.dark-mode .search-button {
    background-color: var(--hover-bg);
    color: var(--text-secondary);
    border: none;
}

body.dark-mode .search-button:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Navigation */
body.dark-mode .main-navigation {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

body.dark-mode .main-nav a {
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
}

body.dark-mode .main-nav a:hover,
body.dark-mode .main-nav .current-menu-item > a {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

body.dark-mode .sub-menu {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

body.dark-mode .sub-menu a {
    color: var(--text-secondary);
}

body.dark-mode .sub-menu a:hover {
    color: var(--accent-color);
    background-color: var(--hover-bg);
}

/* Mobile Menu */
body.dark-mode .mobile-menu-toggle {
    color: var(--text-secondary);
}

body.dark-mode .mobile-menu-toggle:hover {
    color: var(--accent-color);
}

/* Cards and Content */
body.dark-mode .post-card,
body.dark-mode .widget,
body.dark-mode .comment,
body.dark-mode .ava-sports-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

body.dark-mode .post-card-title a,
body.dark-mode .widget-title,
body.dark-mode .comment-author,
body.dark-mode .ava-sports-card-title {
    color: var(--text-primary);
}

body.dark-mode .post-card-title a:hover,
body.dark-mode .widget a:hover {
    color: var(--accent-color);
}

body.dark-mode .post-card-excerpt,
body.dark-mode .widget,
body.dark-mode .comment-content {
    color: var(--text-secondary);
}

/* Forms */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--text-muted);
}

body.dark-mode button,
body.dark-mode .btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

body.dark-mode button:hover,
body.dark-mode .btn:hover {
    background-color: #66aaff;
    color: white;
}

/* Footer */
body.dark-mode .site-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

body.dark-mode .footer-widgets {
    background-color: var(--bg-secondary);
}

body.dark-mode .footer-widget {
    color: var(--text-secondary);
}

body.dark-mode .footer-widget a {
    color: var(--text-secondary);
}

body.dark-mode .footer-widget a:hover {
    color: var(--accent-color);
}

/* Tables */
body.dark-mode table {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

body.dark-mode th,
body.dark-mode td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Blockquote */
body.dark-mode blockquote {
    background-color: var(--bg-tertiary);
    border-right: 4px solid var(--accent-color);
    color: var(--text-secondary);
}

/* Code */
body.dark-mode code,
body.dark-mode pre {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Scrollbar */
body.dark-mode ::-webkit-scrollbar {
    width: 8px;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Responsive adjustments for toggle button */
@media (max-width: 768px) {
    .theme-toggle {
        left: 5px;
    }

    .theme-toggle-btn {
        width: 35px;
        height: 35px;
    }

    .sun-icon,
    .moon-icon {
        width: 16px;
        height: 16px;
    }
}

/* Animation for smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ====================================
   FONT CONTROL STYLES
   ==================================== */

/* کنترل فونت سایز */
.font-control-section {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--light-gray);
}

.font-title {
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 600;
}

.font-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.font-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.font-btn:active {
    transform: scale(0.95);
}

.font-size-indicator {
    min-width: 60px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 16px;
    padding: 8px 12px;
    background: var(--light-gray);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* انیمیشن برای تغییر فونت */
#post-content {
    transition: font-size 0.3s ease;
}

#post-content.font-changing {
    opacity: 0.8;
}

/* استایل مخصوص موبایل */
@media (max-width: 768px) {
    .font-controls {
        gap: 10px;
    }

    .font-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .font-size-indicator {
        min-width: 50px;
        font-size: 14px;
        padding: 6px 10px;
    }
}
/* پنهان کردن تیکر در نسخه رسپانسیو (موبایل و تبلت کوچک) */
    @media (max-width: 768px) {
        .breaking-ticker {
            display: none !important;
        }
    }
/*صفحه سینگل */
.post-header {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.post-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}
.post-subtitle {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.post-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 14px;
}
.post-thumbnail {
    margin-bottom: 30px;
    text-align: center;
}
.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.post-lead {
    background: var(--light-gray);
    border-right: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.post-lead .lead-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-lead .lead-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}
.post-content {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 16px;
}
.post-content p {
    margin-bottom: 20px;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.gallery-item {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.05);
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
/* استایل خاص برای بخش کلمات کلیدی: بج‌های رنگی با انیمیشن چرخشی و گرادیان تصادفی */
.keywords-section {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-top: 3px solid var(--primary-color);
}
.keywords-title {
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.keywords-title::before {
    content: '🔑';
    font-size: 20px;
}
.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.keyword-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}
.keyword-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}
.keyword-badge:hover {
    transform: rotateY(360deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}
.keyword-badge:hover::before {
    left: 100%;
}
@media (max-width: 768px) {
    .keywords-container {
        justify-content: center;
    }
    .keyword-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}
/* بهبود اشتراک‌گذاری */
.social-share.enhanced {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border-top: 4px solid var(--primary-color);
}
.social-share.enhanced h4 {
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.social-share.enhanced h4::before {
    content: '📱';
}
.social-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
}
.social-tool-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: 'Vazirmatn';
}
.social-tool-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.social-buttons.enhanced {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    direction: ltr; /* برای آیکون‌ها RTL رو غیرفعال کن */
}
.social-buttons.enhanced a,
.social-buttons.enhanced button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	    background: rgb(160 86 0);
}
.social-buttons.enhanced a:hover,
.social-buttons.enhanced button:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.social-whatsapp { background: #25D366; }
.social-robiqa { background: #00BCD4; }
.social-bale { background: #4CAF50; }
.social-telegram { background: #0088cc; }
.social-facebook { background: #1877f2; }
.social-twitter { background: #1da1f2; }
.social-email { background: #ea4335; }
.social-copy-link {
    background: linear-gradient(135deg, #6c757d, #495057); /* مدل متفاوت: گرادیان خاکستری */
    border-radius: 25px; /* مستطیل گرد */
    width: auto;
    padding: 0 20px;
    gap: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    direction: ltr; /* برای آیکون و متن */
}
.social-copy-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.social-copy-link:hover::before {
    left: 100%; /* انیمیشن متفاوت: شاین افکت */
}
.social-copy-link .copy-icon {
    flex-shrink: 0; /* آیکون کوچک نشه */
    margin-right: 5px; /* فاصله از متن */
}
.social-copy-link .copy-text,
.social-copy-link .copy-success {
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease;
    z-index: 1;
    position: relative;
}
.social-copy-link .copy-success {
    color: #28a745;
    font-weight: 600;
}
/* رای‌دهی */
.rating-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.rating-title {
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: 18px;
}
.rating-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.rating-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.like-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}
.dislike-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}
.rating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.rating-count {
    font-weight: 600;
}

/* بهبود دکمه‌های رأی‌دهی */
.rating-btn {
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.rating-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.rating-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.rating-btn.success {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
/* کنترل فونت */
.font-control-section {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.font-title {
    margin-bottom: 15px;
    color: var(--primary-dark);
}
.font-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}
.font-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.font-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}
#post-content {
    transition: font-size 0.3s ease;
}
/* استایل بهبود یافته برای خبرهای مرتبط: گرادیان، انیمیشن پیشرفته، overlay و layout grid */
.related-posts.enhanced {
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}
.related-posts.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b, var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.related-title {
    margin-bottom: 25px;
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.related-title::after {
    content: '🔥';
    font-size: 20px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.news-card.enhanced-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
}
.news-card.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.news-card.enhanced-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}
.news-card.enhanced-card:hover::before {
    opacity: 1;
}
.news-thumbnail.enhanced {
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}
.news-thumbnail.enhanced img.enhanced-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-card.enhanced-card:hover .news-thumbnail.enhanced img {
    transform: scale(1.15);
}
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.news-card.enhanced-card:hover .card-overlay {
    transform: translateY(0);
}
.read-more {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.news-content.enhanced {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
.news-category {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    padding: 4px 8px;
    background: rgba(0,123,255,0.1);
    border-radius: 20px;
    align-self: flex-start;
    width: fit-content;
}
.news-content.enhanced h4 {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.4;
    flex-grow: 1;
}
.news-content.enhanced h4 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}
.news-content.enhanced h4 a:hover {
    color: var(--primary-color);
}
.news-content.enhanced p {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
    flex-shrink: 0;
}
.news-meta.enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.news-meta.enhanced .views {
    color: var(--primary-color);
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}
.lightbox-close:hover {
    opacity: 0.7;
}
/* بهبود lightbox برای موبایل */
@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
        margin: 10px auto;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}
/* مود تاریک برای lightbox */
body.dark-mode .lightbox {
    background: rgba(0, 0, 0, 0.95) !important;
}
body.dark-mode .lightbox-content {
    background: var(--white) !important;
    border-radius: 10px;
    overflow: hidden;
}
body.dark-mode .lightbox img {
    border: 1px solid var(--border-color);
}
/* بهبود گالری در موبایل */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .gallery-item img {
        height: 120px;
    }

    .video-container {
        padding-bottom: 50%; /* کاهش نسبت در موبایل */
    }

    .post-content {
        padding: 20px;
    }

    .post-title {
        font-size: 20px;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .related-posts.enhanced {
        padding: 20px;
    }
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .news-thumbnail.enhanced {
        height: 180px;
    }
    .news-content.enhanced h4 {
        font-size: 16px;
    }
    .social-tools { flex-direction: column; gap: 10px; }
    .rating-container { gap: 15px; }
    .social-buttons.enhanced a { width: 45px; height: 45px; }
}
@media (max-width: 768px) {
    .post-title {
        font-size: 24px;
    }
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    .post-content {
        padding: 25px;
    }
    .social-buttons {
        justify-content: center;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .news-thumbnail {
        height: 150px; /* کوچکتر در موبایل */
    }
    .comments-section {
        padding: 25px;
    }
    .comments-section .children {
        margin-left: 20px;
    }
}
/* ویجت گالری تعاملی - استایل‌های اصلی */

/* فونت‌ها و متغیرهای کلی */
.ige-widget-container {
    font-family: 'Vazir', 'IRANSans', Arial, sans-serif !important;
    direction: rtl;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.ige-widget-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 25px 40px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.ige-gallery-container {
    display: flex;
    background: #1e3a5f;
    min-height: 500px;
}

.ige-gallery-sidebar {
    background: #2c5282;
    width: 300px;
    overflow-y: auto;
    max-height: 600px;
    border-left: 3px solid #fbbf24;
}

.ige-gallery-item {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.ige-gallery-item:hover {
    background: #3d5a80;
    transform: translateX(-2px);
}

.ige-gallery-item.active {
    background: #dc2626;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.ige-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ige-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ige-placeholder-image {
    width: 100%;
    height: 100%;
    background: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #cbd5e0;
}

.ige-item-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ige-images-count {
    color: #fbbf24;
    font-size: 12px;
    font-weight: 500;
}

.ige-gallery-content {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.ige-featured-image-container {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.ige-featured-image-container:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.ige-featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 400px;
}

.ige-view-all-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

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

.ige-overlay-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.ige-overlay-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.ige-overlay-count {
    color: #fbbf24;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

.ige-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 18px;
}

.ige-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #2c5282;
    border-top: 2px solid #fbbf24;
    border-radius: 50%;
    animation: ige-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes ige-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ige-gallery-container {
        flex-direction: column;
        min-height: 400px;
    }

    .ige-gallery-sidebar {
        width: 100%;
        max-height: 200px;
        border-left: none;
        border-bottom: 3px solid #fbbf24;
    }

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

    .ige-featured-image-container {
        max-width: 95%;
        max-height: 60%;
    }
}
