/* =========================================
   استایل اختصاصی صفحه دسته‌بندی مقالات (Category)
   ========================================= */
.up-category-landing {
    background: #f8f9fa;
    padding: 60px 0 80px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.up-category-landing .container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر دسته‌بندی */
.category-hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(26, 43, 76, 0.04);
    border-bottom: 4px solid #D4AF37;
}

.hero-eyebrow {
    color: #D4AF37;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.8rem;
    color: #1a2b4c;
    font-weight: 900;
    margin-bottom: 15px;
}

.hero-desc {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* گرید کارت‌های مقاله */
.up-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.up-post-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.up-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
    border-color: #D4AF37;
}

/* تصویر کارت */
.up-card-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: block;
}

.up-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.up-post-card:hover .up-card-img-wrapper img {
    transform: scale(1.05);
}

.up-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
    font-size: 14px;
}

/* محتوای کارت */
.up-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.up-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.up-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 15px;
}

.up-card-title a {
    color: #1a2b4c;
    text-decoration: none;
    transition: color 0.3s;
}

.up-card-title a:hover {
    color: #D4AF37;
}

.up-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    flex: 1;
}

.up-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b8972f;
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.up-card-btn:hover {
    gap: 12px;
    color: #1a2b4c;
}

/* صفحه‌بندی */
.up-pagination-wrapper {
    margin-top: 60px;
    text-align: center;
}

.up-pagination-wrapper ul.page-numbers {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.up-pagination-wrapper .page-numbers li a,
.up-pagination-wrapper .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border-radius: 12px;
    color: #1a2b4c;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.up-pagination-wrapper .page-numbers li span.current {
    background: #1a2b4c;
    color: #fff;
    border-color: #1a2b4c;
}

.up-pagination-wrapper .page-numbers li a:hover {
    background: #D4AF37;
    color: #fff;
    border-color: #D4AF37;
    transform: translateY(-2px);
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .up-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .hero-title { font-size: 2rem; }
}

@media (max-width: 600px) {
    .up-posts-grid {
        grid-template-columns: 1fr;
    }
    .up-category-landing { padding: 40px 0; }
    .hero-title { font-size: 1.8rem; }
    .up-card-img-wrapper { height: 220px; }
}