.articles-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    min-height: 60vh;
}

.page-title {
    text-align: center;
    color: #1e293b;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #10b981;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* استایل جدید فرم جستجو و فیلتر */
.filter-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border: 1px solid #f1f5f9;
}

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

.input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-group svg {
    flex-shrink: 0;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 10px;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: #334155;
}

.input-group select {
    cursor: pointer;
}

.search-btn-modern {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-btn-modern:hover {
    background: #059669;
}

/* استایل کارت‌های مقالات */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

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

.article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #e2e8f0;
}

.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #94a3b8;
}

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

.article-title {
    font-size: 18px;
    font-weight: bold;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.article-excerpt {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #ecfdf5;
    color: #059669;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
}

.read-more:hover {
    background-color: #10b981;
    color: #ffffff;
}

/* استایل خالی بودن محتوا */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
}

/* استایل صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f8fafc;
    color: #475569;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.page-link:hover {
    background-color: #e2e8f0;
}

.page-link.active {
    background-color: #10b981;
    color: #fff;
    border-color: #10b981;
}

/* طراحی واکنش‌گرا */
@media (max-width: 768px) {
    .search-wrapper {
        flex-direction: column;
    }
    
    .input-group, .search-btn-modern {
        width: 100%;
        box-sizing: border-box;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 24px;
    }
}
/* استایل مربوط به تصویر و نشان دسته‌بندی */
.article-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #e2e8f0;
    transition: transform 0.4s ease;
}

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

.article-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #10b981;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    z-index: 2;
}
