/* styles.css - بارگیری غیرحیاتی */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #e53e3e;
    --accent-color: #2d3748;
    --text-color: #2d3748;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: Vazir, system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

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

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

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.date-time {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-time::before {
    content: "📅";
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 5px;
    border-radius: 50%;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: var(--white);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0;
    font-family: Vazir, system-ui, sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.logo-text::before {
    content: "📁";
    margin-left: 10px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search Bar */
.search-bar form {
    display: flex;
    background: var(--light-bg);
    border-radius: 25px;
    padding: 8px 15px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    min-width: 300px;
}

.search-bar form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.search-input {
    border: none;
    background: transparent;
    padding: 5px 10px;
    width: 100%;
    outline: none;
    direction: rtl;
    font-size: 14px;
    font-family: Vazir, system-ui, sans-serif;
}

.search-btn {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    min-width: 40px;
    font-family: Vazir, system-ui, sans-serif;
}

.search-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Navigation */
nav {
    background: var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    color: var(--white);
    padding: 15px 20px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 5px;
    margin: 2px;
    font-family: Vazir, system-ui, sans-serif;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: Vazir, system-ui, sans-serif;
}

.close-menu {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: Vazir, system-ui, sans-serif;
}

.close-menu:hover {
    background: rgba(255,255,255,0.1);
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.mobile-nav {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 8px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    transition: var(--transition);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
    font-family: Vazir, system-ui, sans-serif;
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(-8px);
    border-color: rgba(255,255,255,0.2);
}

.mobile-nav i {
    margin-left: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.menu-badge {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: auto;
    margin-left: 10px;
    font-family: Vazir, system-ui, sans-serif;
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.menu-overlay.active {
    display: block;
}

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

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: #1a365d;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background: white;
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background: white;
}

/* Breaking News */
.breaking-news {
    background: linear-gradient(135deg, var(--secondary-color), #c53030);
    color: var(--white);
    padding: 12px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.breaking-news::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.breaking-label {
    background: rgba(0,0,0,0.2);
    padding: 8px 20px;
    font-weight: bold;
    border-radius: 25px;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    font-family: Vazir, system-ui, sans-serif;
}

.breaking-text {
    flex: 1;
    overflow: hidden;
}

.breaking-text marquee {
    font-weight: 500;
    padding: 5px 0;
    font-family: Vazir, system-ui, sans-serif;
}

.breaking-text a {
    color: var(--white);
    margin: 0 20px;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: Vazir, system-ui, sans-serif;
}

.breaking-text a:hover {
    color: #fed7d7;
    background: rgba(255,255,255,0.1);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin: 30px 0;
    align-items: start;
}

/* Article Styles */
.article {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.article-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc, var(--white));
}

.breadcrumb {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: Vazir, system-ui, sans-serif;
}

.breadcrumb a {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: var(--transition);
    font-family: Vazir, system-ui, sans-serif;
}

.breadcrumb a:hover {
    background: var(--light-bg);
    color: var(--secondary-color);
}

.article-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 800;
    text-align: right;
    font-family: Vazir, system-ui, sans-serif;
}

.article-meta {
    display: flex;
    gap: 25px;
    color: #64748b;
    font-size: 0.9rem;
    flex-wrap: wrap;
    font-family: Vazir, system-ui, sans-serif;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--light-bg);
    border-radius: 20px;
    font-weight: 500;
}

.article-meta i {
    color: var(--secondary-color);
}

.article-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition);
}

.article-image:hover {
    transform: scale(1.02);
}

.article-content {
    padding: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    font-family: Vazir, system-ui, sans-serif;
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.content-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
    transition: var(--transition);
    font-family: Vazir, system-ui, sans-serif;
}

.content-link:hover {
    color: var(--secondary-color);
    background: rgba(229, 62, 62, 0.1);
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    margin: 40px 30px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.download-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-family: Vazir, system-ui, sans-serif;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
    font-family: Vazir, system-ui, sans-serif;
}

.download-btn:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(229, 62, 62, 0.4);
    border-color: var(--secondary-color);
}

/* Fixed Download */
.fixed-download {
    position: fixed;
    bottom: -10px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 20px;
    z-index: 999;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.3);
}

.fixed-download.show {
    bottom: 0;
    animation: fadeIn 0.5s ease;
}

.fixed-download-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    gap: 20px;
}

.fixed-download-text {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Vazir, system-ui, sans-serif;
}

.fixed-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
    font-family: Vazir, system-ui, sans-serif;
}

.fixed-download-btn:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

/* Article Tags */
.article-tags {
    margin: 40px 30px 30px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 15px;
    border-left: 4px solid var(--secondary-color);
}

.article-tags h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Vazir, system-ui, sans-serif;
}

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

.tag {
    background: var(--white);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-family: Vazir, system-ui, sans-serif;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.3);
}

/* Related News */
.related-news {
    margin: 50px 30px 30px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.related-news h3 {
    color: #1a365d;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Vazir, system-ui, sans-serif;
}

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

.related-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
/* مطالب مرتبط - طراحی جدید */
.related-news {
    margin: 50px 30px 30px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    width: 100%;
    clear: both;
}

.related-news h3 {
    color: #1a365d;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Vazir, system-ui, sans-serif;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* دو ستونه */
    gap: 25px;
    margin-top: 20px;
    width: 100%;
}

.related-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 300px;
}

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

.related-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.related-item:hover .related-image {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: Vazir, system-ui, sans-serif;
    min-height: 60px;
}

.related-title a {
    color: #1a365d;
    transition: color 0.3s ease;
    display: block;
    font-family: Vazir, system-ui, sans-serif;
    text-decoration: none;
}

.related-title a:hover {
    color: #e53e3e;
}

.related-date {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: Vazir, system-ui, sans-serif;
    margin-top: 10px;
}

/* اگر تصویر وجود نداشت */
.related-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr); /* دو ستونه در تبلت */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .related-news {
        margin: 40px 20px 20px;
        padding-top: 25px;
    }
    
    .related-news h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr; /* یک ستونه در موبایل */
        gap: 20px;
    }
    
    .related-image {
        height: 200px;
    }
    
    .related-content {
        padding: 15px;
    }
    
    .related-title {
        font-size: 1rem;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .related-news {
        margin: 30px 15px 15px;
    }
    
    .related-grid {
        gap: 15px;
    }
    
    .related-image {
        height: 180px;
    }
    
    .related-content {
        padding: 12px;
    }
}

/* Sidebar */
.sidebar {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 25px;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    margin-bottom: 35px;
    background: var(--white);
    padding: 0;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Vazir, system-ui, sans-serif;
}

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

.popular-posts {
    list-style: none;
}

.popular-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.popular-posts li:hover {
    transform: translateX(-5px);
}

.popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts a {
    color: var(--text-color);
    display: block;
    font-weight: 500;
    line-height: 1.5;
    padding: 8px 0;
    transition: var(--transition);
    font-family: Vazir, system-ui, sans-serif;
}

.popular-posts a:hover {
    color: var(--secondary-color);
}

.post-date {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: Vazir, system-ui, sans-serif;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 70px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    color: var(--white);
    font-family: Vazir, system-ui, sans-serif;
}

.footer-widget h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-widget p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e0;
    font-family: Vazir, system-ui, sans-serif;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-family: Vazir, system-ui, sans-serif;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #cbd5e0;
    gap: 12px;
    font-family: Vazir, system-ui, sans-serif;
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #a0aec0;
    font-family: Vazir, system-ui, sans-serif;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
    
    .main-content {
        grid-template-columns: 1fr 320px;
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 768px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .sidebar {
        position: static;
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
    }
    
    .logo-text {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .header-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-bar form {
        min-width: 250px;
        width: 100%;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu {
        width: 300px;
    }
    
    .article-header {
        padding: 25px 20px;
    }
    
    .article-title {
        font-size: 1.7rem;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .article-image {
        height: 350px;
    }
    
    .article-content {
        padding: 25px 20px;
    }
    
    .download-section {
        margin: 30px 20px 20px;
        padding: 30px 20px;
    }
    
    .download-title {
        font-size: 1.5rem;
    }
    
    .download-btn {
        padding: 14px 30px;
        font-size: 1.1rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .related-news {
        margin: 40px 20px 20px;
    }
    
    .fixed-download-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* بهبود مطالب مرتبط در موبایل */
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-item {
        display: flex;
        flex-direction: column;
    }
    
    /* برای تبلت */
    .related-image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .search-bar form {
        min-width: 200px;
    }
    
    .mobile-menu {
        width: 100%;
    }
    
    .article-header {
        padding: 20px 15px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .article-meta span {
        width: 100%;
        justify-content: flex-start;
    }
    
    .article-image {
        height: 280px;
    }
    
    .article-content {
        padding: 20px 15px;
        font-size: 1rem;
    }
    
    .download-section {
        margin: 25px 15px 15px;
        padding: 25px 15px;
    }
    
    .download-title {
        font-size: 1.3rem;
    }
    
    .download-btn {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-item {
        margin-bottom: 15px;
    }
    
  /* برای موبایل */
    .related-image {
        height: 180px;
    }
    
    .related-content {
        padding: 15px;
    }
    
    .related-title {
        font-size: 1rem;
    }
    
    .sidebar {
        padding: 20px 15px;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4rem;
    }
    
    .search-bar form {
        min-width: 180px;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .article-image {
        height: 220px;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .fixed-download {
        padding: 15px;
    }
    
    .fixed-download-text {
        font-size: 1rem;
    }
    
    .fixed-download-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* نمایش المان‌های غیرحیاتی پس از بارگیری */
.sidebar, .related-news, .fixed-download {
    animation: fadeIn 0.8s ease 0.5s forwards;
}

/* Print Styles */
@media print {
    .top-bar,
    nav,
    .sidebar,
    .breaking-news,
    .fixed-download,
    .hamburger-menu,
    .mobile-menu,
    .menu-overlay,
    footer {
        display: none !important;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .header {
        box-shadow: none;
        border-bottom: 1px solid #ccc;
    }
}
.related-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}