* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    color: #1e293b;
    direction: rtl;
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 992px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }
}

/* ========== هدر و ناوبری ========== */
.top-bar {
    background: #1e293b;
    color: #cbd5e1;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.date {
    font-weight: 500;
}

.social-links a {
    color: #cbd5e1;
    margin-right: 15px;
    text-decoration: none;
    transition: 0.2s;
}

.social-links a:hover {
    color: #3b82f6;
}

header {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-area {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.logo-area h1 {
    font-size: 2rem;
    color: #1e3a5f;
    letter-spacing: -0.5px;
}

.logo-area p {
    color: #64748b;
    font-size: 0.8rem;
}

.navbar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #334155;
    text-decoration: none;
    padding: 14px 18px;
    display: block;
    font-weight: 600;
    transition: 0.2s;
    border-radius: 8px;
}

.nav-menu a:hover, .nav-menu a.active {
    background: #eff6ff;
    color: #2563eb;
}

.search-btn {
    background: #f1f5f9;
    border: none;
    color: #475569;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 40px;
    transition: 0.2s;
}

.search-btn:hover {
    background: #e2e8f0;
    color: #2563eb;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #334155;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 820px) {
    .hamburger {
        display: block;
    }
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 140px;
        flex-direction: column;
        background: white;
        width: 75%;
        height: 100vh;
        padding: 30px;
        gap: 0;
        transition: 0.3s;
        z-index: 999;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu a {
        padding: 14px 0;
        border-bottom: 1px solid #e2e8f0;
    }
}

/* ========== نوار خبر فوری (کمتر تهاجمی) ========== */
.breaking-news {
    background: #fef2f2;
    border-bottom: 2px solid #fecaca;
    padding: 10px 0;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.breaking-label {
    background: #dc2626;
    color: white;
    padding: 4px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.75rem;
}

.breaking-ticker {
    flex: 1;
    overflow: hidden;
}

.breaking-ticker marquee {
    color: #991b1b;
    font-weight: 500;
}

/* ========== اسلایدر ========== */
.slider {
    margin: 30px 0;
}

.slider-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.main-slide {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 420px;
}

.main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, #0f172aee);
    color: white;
    padding: 30px 24px 24px;
}

.slide-caption h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.slide-caption .category {
    background: #2563eb;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.side-slides {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-slide {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 195px;
}

.side-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-slide .slide-caption {
    padding: 20px;
}

.side-slide .slide-caption h3 {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .slider-grid {
        grid-template-columns: 1fr;
    }
    .main-slide {
        height: 300px;
    }
    .slide-caption h2 {
        font-size: 1.2rem;
    }
}

/* ========== بخش‌های اصلی ========== */
.section {
    margin: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #2563eb;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 1.6rem;
    color: #0f172a;
}

.section-header a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: 0.25s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-category {
    color: #2563eb;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

.news-card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #0f172a;
}

.news-meta {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 12px;
    display: flex;
    gap: 15px;
}

/* ========== سایدبار ========== */
.home-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.sidebar {
    margin-top: 50px;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sidebar-widget h3 {
    border-right: 4px solid #2563eb;
    padding-right: 14px;
    margin-bottom: 20px;
    color: #0f172a;
}

.trending-list {
    list-style: none;
}

.trending-list li {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.trending-list li:hover {
    background: #f8fafc;
    padding-right: 8px;
}

.trending-list li span {
    color: #2563eb;
    font-weight: bold;
    font-size: 1.2rem;
    background: #eff6ff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.poll-option {
    margin: 12px 0;
}

.poll-option label {
    margin-right: 10px;
    color: #334155;
}

.vote-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 12px;
    font-weight: 600;
    transition: 0.2s;
}

.vote-btn:hover {
    background: #1d4ed8;
}

.newsletter input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-family: inherit;
}

.newsletter button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 768px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
}

/* ========== فوتر ========== */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: 0.2s;
}

.footer-col a:hover {
    color: #3b82f6;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
}