.news-filters {
    margin-bottom: 3rem;
    position: sticky;
    top: 70px;
    z-index: 5;
    backdrop-filter: blur(8px);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-input, .filter-select {
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'IRANSans', sans-serif;
    min-width: 200px;
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
    border-color: var(--primary-light);
}

.news-image {
    max-height: 280px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image img {
    width: 100%;
    height: auto;
    max-height: inherit;
    object-fit: contain;
    transition: var(--transition);
    background: #f5f5f5;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-date {
    color: var(--primary-light);
    font-weight: 500;
}

.news-category {
    background: var(--primary-light);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-title {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: inset 0 0 0 2px rgba(76,175,80,0.15);
    border-radius: 15px;
}

.news-card:hover::after {
    opacity: 1;
}

.news-read-time {
    color: #666;
    font-size: 0.9rem;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-light);
    background: transparent;
    color: var(--primary-light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'IRANSans', sans-serif;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-light);
    color: white;
}

.pagination-btn.active {
    background: var(--primary-light);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: center;
    }

    .filter-input, .filter-select {
        min-width: 250px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .news-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .news-image {
        max-height: 220px;
    }
}

@media (max-width: 576px) {
    .filter-input, .filter-select {
        min-width: 100%;
        width: 100%;
    }
    .news-grid {
        gap: 1rem;
    }
    .news-card {
        border-radius: 12px;
    }
    .news-title {
        font-size: 1.1rem;
    }
    .news-excerpt {
        font-size: 0.95rem;
    }
    .news-image {
        max-height: 180px;
    }
}

/* Dark mode styles */
body.dark-mode .news-card {
    background: var(--card-bg);
    border: 1px solid #333;
    box-shadow: 0 6px 24px #7ed95722, 0 2px 8px #ffd96622;
}

body.dark-mode .filter-input, 
body.dark-mode .filter-select {
    background: #23272b;
    border-color: #333;
    color: var(--light-text);
}

body.dark-mode .pagination-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode .pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #23272b;
}

body.dark-mode .pagination-btn.active {
    background: var(--primary-color);
    color: #23272b;
}