/* ═══════════════════════════════════════════════════════════
   UpMobile Theme - Blog System Stylesheet
   
   این فایل شامل استایل‌های زیر است:
   ۱. صفحه اصلی بلاگ (Blog Home)
   ۲. کارت‌های مقاله (Blog Cards)
   ۳. صفحه نوشته تکی (Single Post)
   ۴. صفحات آرشیو (Archive Pages)
   ۵. ریسپانسیو
   
   @package UpMobile
   @version 2.1.0
   ═══════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════
   ۱. صفحه اصلی بلاگ (Blog Home Page)
   ═══════════════════════════════════════════════════════════ */
.up-blog-wrapper {
    background: #f4f6f9;
    min-height: 100vh;
}

.up-blog-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ═══ Hero صفحه بلاگ ═══ */
.up-blog-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: 0;
}

.up-blog-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.up-blog-hero:hover .up-blog-hero-bg {
    transform: scale(1.12);
}

.up-blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 5, 40, 0.15) 0%,
        rgba(10, 5, 40, 0.6) 50%,
        rgba(10, 5, 40, 0.95) 100%
    );
}

.up-blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 25px 55px;
    color: #fff;
    animation: upHeroFadeIn 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes upHeroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.up-blog-hero-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.up-blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 10px;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.up-blog-hero-badge.badge-featured {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(255, 200, 0, 0.4);
}

.up-blog-hero-badge.badge-featured svg {
    fill: #1a1a1a;
    stroke: none;
}

.up-blog-hero-badge.badge-cat {
    background: rgba(72, 55, 243, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(72, 55, 243, 0.4);
}

.up-blog-hero-badge.badge-cat:hover {
    background: #4837F3;
    transform: translateY(-2px);
}

.up-blog-hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 18px;
    max-width: 850px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.up-blog-hero-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.up-blog-hero-title a:hover {
    color: #ede9ff;
}

.up-blog-hero-excerpt {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 22px;
    max-width: 720px;
    font-weight: 500;
}

.up-blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.up-blog-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.up-blog-hero-meta-item svg {
    stroke: #FFD700;
}

.up-blog-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 12px;
    box-shadow:
        0 8px 25px rgba(72, 55, 243, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.up-blog-hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.up-blog-hero-btn:hover::before {
    left: 100%;
}

.up-blog-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(72, 55, 243, 0.6);
    color: #fff;
}

/* ═══ تب‌های دسته‌بندی ═══ */
.up-blog-tabs-section {
    padding: 45px 0 20px;
    background: #f4f6f9;
}

.up-blog-tabs-header {
    text-align: center;
    margin-bottom: 30px;
}

.up-blog-tabs-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
    color: #222;
    margin: 0 0 10px;
}

.up-blog-tabs-title svg {
    stroke: #4837F3;
}

.up-blog-tabs-subtitle {
    font-size: 14px;
    color: #777;
    margin: 0;
    font-weight: 500;
}

.up-blog-tabs-scroll {
    overflow-x: auto;
    padding-bottom: 10px;
    margin: 0 -25px;
    padding-right: 25px;
    padding-left: 25px;
}

.up-blog-tabs-scroll::-webkit-scrollbar {
    height: 5px;
}

.up-blog-tabs-scroll::-webkit-scrollbar-thumb {
    background: #d0d0da;
    border-radius: 5px;
}

.up-blog-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: max-content;
    padding: 5px 0;
}

.up-blog-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: #fff;
    color: #555;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    border: 1.5px solid #e6e8f5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.up-blog-tab:hover {
    border-color: rgba(72, 55, 243, 0.4);
    color: #4837F3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(72, 55, 243, 0.1);
}

.up-blog-tab.is-active {
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(72, 55, 243, 0.35);
}

.up-blog-tab svg {
    stroke: currentColor;
}

.up-blog-tab em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    background: rgba(72, 55, 243, 0.1);
    color: #4837F3;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    border-radius: 8px;
    transition: all 0.3s;
}

.up-blog-tab.is-active em {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ═══ بخش مقالات ═══ */
.up-blog-posts-section {
    padding: 20px 0 70px;
    background: #f4f6f9;
}

.up-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    perspective: 1400px;
    transition: opacity 0.4s ease;
}

.up-blog-grid.is-loading {
    opacity: 0.5;
}

/* ═══ کارت مقاله (3D) ═══ */
.up-blog-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 12px 30px rgba(72, 55, 243, 0.06);
    border: 1px solid #f0f0f5;
}

.up-blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(72, 55, 243, 0), rgba(107, 91, 255, 0.3), rgba(72, 55, 243, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.up-blog-card:hover::before {
    opacity: 1;
}

.up-blog-card:hover {
    transform: translateY(-8px) rotateX(-1.5deg) rotateY(1deg);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.05),
        0 12px 28px rgba(72, 55, 243, 0.12),
        0 30px 60px rgba(72, 55, 243, 0.15);
}

.up-blog-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f4f6f9, #e8eaf5);
    text-decoration: none;
}

.up-blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.up-blog-card:hover .up-blog-card-media img {
    transform: scale(1.1) rotate(0.5deg);
}

.up-blog-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c0d0;
}

.up-blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(20, 10, 50, 0.5) 100%);
    pointer-events: none;
    transition: opacity 0.4s;
}

.up-blog-card:hover .up-blog-card-overlay {
    opacity: 0.85;
}

.up-blog-card-cat {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    background: rgba(72, 55, 243, 0.95);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 9px;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 15px rgba(72, 55, 243, 0.4);
    z-index: 2;
    transition: all 0.3s;
}

.up-blog-card:hover .up-blog-card-cat {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(72, 55, 243, 0.6);
}

.up-blog-card-reading-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.up-blog-card-reading-badge svg {
    stroke: #FFD700;
    flex-shrink: 0;
}

.up-blog-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    background: #fff;
    position: relative;
    z-index: 1;
}

.up-blog-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #999;
    font-weight: 600;
    align-self: flex-start;
}

.up-blog-card-date svg {
    stroke: #4837F3;
    flex-shrink: 0;
}

.up-blog-card-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.55em * 2);
    transition: color 0.3s;
}

.up-blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
    background-image: linear-gradient(120deg, #4837F3, #6b5bff);
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-position: right bottom;
    padding-bottom: 2px;
}

.up-blog-card:hover .up-blog-card-title a {
    color: #4837F3;
    background-size: 100% 2px;
}

.up-blog-card-excerpt {
    font-size: 13px;
    color: #777;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.up-blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 9px 18px;
    background: linear-gradient(135deg, #f5f3ff, #ede9ff);
    color: #4837F3;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(72, 55, 243, 0.15);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

.up-blog-card-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.up-blog-card-link:hover::before {
    transform: translateX(0);
}

.up-blog-card-link:hover {
    color: #fff;
    border-color: #4837F3;
    transform: translateX(-4px);
    box-shadow: 0 8px 20px rgba(72, 55, 243, 0.35);
}

.up-blog-card-link svg {
    stroke: currentColor;
    transition: transform 0.3s;
}

.up-blog-card-link:hover svg {
    transform: translateX(-3px);
}

/* ═══ دکمه "بیشتر" ═══ */
.up-blog-load-more-wrap {
    margin-top: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.up-blog-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    background: linear-gradient(135deg, #ffffff, #fafbff);
    color: #4837F3;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 800;
    border: 2px solid rgba(72, 55, 243, 0.2);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 6px 20px rgba(72, 55, 243, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
}

.up-blog-load-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    transform: translateY(101%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.up-blog-load-more:hover::before {
    transform: translateY(0);
}

.up-blog-load-more > * {
    position: relative;
    z-index: 1;
}

.up-blog-load-more:hover {
    color: #fff;
    border-color: #4837F3;
    transform: translateY(-3px);
    box-shadow:
        0 15px 35px rgba(72, 55, 243, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.up-blog-load-more:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.up-blog-load-more svg {
    stroke: currentColor;
    transition: transform 0.3s;
}

.up-blog-load-more:hover svg {
    transform: translateY(3px);
}

/* ═══ Loader ═══ */
.up-blog-loader {
    display: none;
    align-items: center;
    gap: 6px;
}

.up-blog-loader.is-visible {
    display: flex;
}

.up-blog-loader span {
    width: 10px;
    height: 10px;
    background: #4837F3;
    border-radius: 50%;
    animation: upBlogLoader 1.4s ease-in-out infinite both;
}

.up-blog-loader span:nth-child(2) { animation-delay: 0.16s; }
.up-blog-loader span:nth-child(3) { animation-delay: 0.32s; }

@keyframes upBlogLoader {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
    40%           { transform: scale(1); opacity: 1; }
}

/* ═══ حالت خالی ═══ */
.up-blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 25px;
    background: #fff;
    border-radius: 20px;
    border: 1.5px solid #f0f0f5;
}

.up-blog-empty svg {
    margin: 0 auto 20px;
    display: block;
    stroke: #ccc;
}

.up-blog-empty h3 {
    font-size: 20px;
    font-weight: 900;
    color: #222;
    margin: 0 0 10px;
}

.up-blog-empty p {
    font-size: 14px;
    color: #777;
    margin: 0;
    line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════
   ۲. صفحه نوشته تکی (Single Post)
   ═══════════════════════════════════════════════════════════ */
.up-blog-single-wrapper {
    width: 100%;
    background: #f4f6f9;
    padding: 25px 0 60px;
    direction: rtl;
}

.up-blog-single-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Breadcrumb */
.up-blog-breadcrumb {
    margin-bottom: 20px;
    padding: 12px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 12.5px;
    color: #777;
}

.up-blog-breadcrumb .up-breadcrumb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.up-blog-breadcrumb a {
    color: #4837F3;
    font-weight: 500;
    text-decoration: none;
}

.up-blog-breadcrumb a:hover { color: #FF6B35; }
.up-blog-breadcrumb .sep { color: #ccc; font-weight: bold; margin: 0 5px; }

/* Layout */
.up-blog-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    align-items: start;
}

/* مقاله */
.up-blog-article {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1.5px solid #f0f0f5;
    padding: 35px 40px;
    overflow: hidden;
}

.up-blog-header { margin-bottom: 25px; }

.up-blog-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.up-blog-cat {
    display: inline-flex;
    padding: 5px 12px;
    background: linear-gradient(135deg, #ede9ff, #f5f3ff);
    color: #4837F3;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(72, 55, 243, 0.15);
    transition: all 0.25s;
}

.up-blog-cat:hover {
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    color: #fff;
    transform: translateY(-2px);
}

.up-blog-title {
    font-size: 30px;
    font-weight: 900;
    color: #222;
    line-height: 1.4;
    margin: 0 0 20px;
}

.up-blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1.5px solid #f0f0f5;
    border-bottom: 1.5px solid #f0f0f5;
}

.up-blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.up-blog-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #ede9ff;
    object-fit: cover;
}

.up-blog-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.up-blog-author-label {
    font-size: 10.5px;
    color: #999;
    font-weight: 600;
}

.up-blog-author-name {
    font-size: 13px;
    color: #222;
    font-weight: 800;
}

.up-blog-meta-divider {
    width: 1px;
    height: 25px;
    background: #e8e8f0;
}

.up-blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #666;
    font-weight: 600;
}

.up-blog-meta-item svg {
    stroke: #4837F3;
    flex-shrink: 0;
}

.up-blog-featured-image {
    margin: 25px -40px;
    overflow: hidden;
}

.up-blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.up-blog-featured-image:hover img {
    transform: scale(1.02);
}

/* محتوای مقاله */
.up-blog-content {
    font-size: 15.5px;
    color: #444;
    line-height: 2;
    margin-bottom: 25px;
}

.up-blog-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    margin: 30px 0 15px;
    padding-right: 12px;
    border-right: 4px solid #4837F3;
    line-height: 1.5;
}

.up-blog-content h3 {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin: 25px 0 12px;
    line-height: 1.5;
}

.up-blog-content h4 {
    font-size: 16px;
    font-weight: 800;
    color: #222;
    margin: 20px 0 10px;
}

.up-blog-content p { margin: 0 0 18px; }

.up-blog-content a {
    color: #4837F3;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #4837F3;
    transition: all 0.2s;
}

.up-blog-content a:hover {
    color: #FF6B35;
    border-bottom-color: #FF6B35;
}

.up-blog-content ul,
.up-blog-content ol {
    margin: 0 0 20px;
    padding-right: 25px;
}

.up-blog-content li { margin-bottom: 10px; }
.up-blog-content ul li::marker { color: #4837F3; }

.up-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 15px 0;
}

.up-blog-content blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, #fafbff, #f5f6ff);
    border-right: 4px solid #4837F3;
    border-radius: 12px;
    font-style: italic;
    color: #555;
    font-size: 15px;
    line-height: 1.9;
}

.up-blog-content code {
    background: #f4f6f9;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 13.5px;
    color: #4837F3;
    direction: ltr;
    display: inline-block;
}

.up-blog-content pre {
    background: #1e1e2e;
    color: #f8f8f2;
    padding: 18px 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
    direction: ltr;
    text-align: left;
    line-height: 1.6;
}

.up-blog-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.up-blog-page-links {
    margin: 20px 0;
    padding: 15px;
    background: #f7f8fc;
    border-radius: 10px;
    font-size: 13px;
    color: #666;
}

/* تگ‌ها */
.up-blog-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 18px 0;
    border-top: 1.5px solid #f0f0f5;
    margin-top: 25px;
}

.up-blog-tags-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 800;
    color: #666;
}

.up-blog-tags-label svg { stroke: #4837F3; }

.up-blog-tag {
    display: inline-flex;
    padding: 5px 12px;
    background: #f4f6f9;
    color: #555;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    border: 1.5px solid #e6e8f5;
    transition: all 0.25s;
}

.up-blog-tag:hover {
    background: #4837F3;
    color: #fff;
    border-color: #4837F3;
    transform: translateY(-2px);
}

/* اشتراک‌گذاری */
.up-blog-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 0;
    border-top: 1.5px solid #f0f0f5;
    margin-top: 15px;
}

.up-blog-share-label {
    font-size: 12.5px;
    font-weight: 800;
    color: #666;
    margin-left: 5px;
}

.up-blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #f4f6f9;
    color: #666;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.up-blog-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.up-blog-share-btn.share-telegram:hover { background: #229ED9; color: #fff; }
.up-blog-share-btn.share-whatsapp:hover { background: #25D366; color: #fff; }
.up-blog-share-btn.share-twitter:hover  { background: #000; color: #fff; }
.up-blog-share-btn.share-linkedin:hover { background: #0077B5; color: #fff; }
.up-blog-share-btn.share-copy:hover     { background: #4837F3; color: #fff; }

.up-blog-share-btn.is-copied {
    background: #2e7d32;
    color: #fff;
}

/* ناوبری بین نوشته‌ها */
.up-blog-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1.5px solid #f0f0f5;
}

.up-blog-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 15px 18px;
    background: #fafbfd;
    border: 1.5px solid #f0f0f5;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.up-blog-nav-item:hover {
    background: #fff;
    border-color: rgba(72, 55, 243, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(72, 55, 243, 0.08);
}

.up-blog-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #4837F3;
    font-weight: 700;
}

.up-blog-nav-label svg { stroke: #4837F3; }

.up-blog-nav-item strong {
    font-size: 13px;
    color: #222;
    font-weight: 800;
    line-height: 1.5;
}

.up-blog-nav-next { text-align: left; }
.up-blog-nav-next .up-blog-nav-label { justify-content: flex-end; }

.up-blog-comments {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1.5px solid #f0f0f5;
}

/* سایدبار */
.up-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.up-blog-widget {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1.5px solid #f0f0f5;
    padding: 22px;
    overflow: hidden;
}

.up-blog-widget-title {
    font-size: 15px;
    font-weight: 900;
    color: #222;
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f5;
    position: relative;
}

.up-blog-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #4837F3, #6b5bff);
}

.up-blog-author-widget {
    text-align: center;
    padding: 25px 20px;
}

.up-blog-author-big-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ede9ff;
    margin: 0 auto 15px;
    display: block;
    object-fit: cover;
}

.up-blog-author-widget h3 {
    font-size: 15px;
    font-weight: 900;
    color: #222;
    margin: 0 0 8px;
}

.up-blog-author-widget p {
    font-size: 12.5px;
    color: #777;
    line-height: 1.7;
    margin: 0;
}

.up-blog-search-form {
    position: relative;
    display: flex;
}

.up-blog-search-form input {
    width: 100%;
    padding: 11px 15px 11px 42px;
    background: #f7f8fc;
    border: 1.5px solid #e6e8f5;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    color: #222;
    outline: none;
    transition: all 0.3s;
}

.up-blog-search-form input:focus {
    border-color: #4837F3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(72, 55, 243, 0.1);
}

.up-blog-search-form button {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.up-blog-search-form button:hover {
    box-shadow: 0 4px 12px rgba(72, 55, 243, 0.4);
}

.up-blog-search-form button svg { stroke: #fff; }

.up-blog-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.up-blog-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    background: #fafbfd;
    border-radius: 9px;
    text-decoration: none;
    font-size: 12.5px;
    color: #444;
    font-weight: 600;
    transition: all 0.25s;
}

.up-blog-cat-list li a:hover {
    background: linear-gradient(135deg, #ede9ff, #f5f3ff);
    color: #4837F3;
    transform: translateX(-4px);
}

.up-blog-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    background: #e8eaf5;
    color: #4837F3;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 800;
}

.up-blog-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.up-blog-recent-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.25s;
}

.up-blog-recent-list li a:hover {
    background: #fafbfd;
    transform: translateX(-3px);
}

.up-blog-recent-thumb {
    width: 55px;
    height: 55px;
    border-radius: 9px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f4f6f9;
}

.up-blog-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.up-blog-recent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.up-blog-recent-info strong {
    font-size: 12.5px;
    color: #222;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.up-blog-recent-info span {
    font-size: 11px;
    color: #999;
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   ۳. صفحات آرشیو (Archive Pages)
   ═══════════════════════════════════════════════════════════ */
.up-archive-wrapper {
    width: 100%;
    background: #f4f6f9;
    padding: 25px 0 60px;
    direction: rtl;
}

.up-archive-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

.up-archive-breadcrumb {
    margin-bottom: 20px;
    padding: 12px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 12.5px;
    color: #777;
}

.up-archive-breadcrumb .up-breadcrumb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.up-archive-breadcrumb a {
    color: #4837F3;
    font-weight: 500;
    text-decoration: none;
}

.up-archive-breadcrumb a:hover { color: #FF6B35; }
.up-archive-breadcrumb .sep { color: #ccc; font-weight: bold; margin: 0 5px; }

/* ═══ هدر آرشیو (قدیمی) ═══ */
.up-archive-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 35px;
    background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
    border-radius: 18px;
    border: 1.5px solid #eef0fa;
    box-shadow: 0 4px 20px rgba(72, 55, 243, 0.06);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.up-archive-header::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(72, 55, 243, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.up-archive-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(72, 55, 243, 0.3);
    position: relative;
    z-index: 1;
}

.up-archive-header-icon svg { stroke: #fff; }

.up-archive-header-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.up-archive-label {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ede9ff, #f5f3ff);
    color: #4837F3;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 8px;
    border: 1px solid rgba(72, 55, 243, 0.15);
    margin-bottom: 4px;
}

.up-archive-title {
    font-size: 26px;
    font-weight: 900;
    color: #222;
    margin: 0;
    line-height: 1.4;
}

.up-archive-desc {
    font-size: 13.5px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.up-archive-count {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #f4f6f9;
    color: #666;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 4px;
}

/* ═══ Hero آرشیو (جدید) ═══ */
.up-archive-hero {
    position: relative;
    padding: 40px 0 55px;
    background: linear-gradient(135deg, #1a1145 0%, #2a1f7a 40%, #4837F3 100%);
    overflow: hidden;
    margin-bottom: 0;
}

.up-archive-hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
}

.up-archive-hero-shape.shape-1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #6b5bff 0%, transparent 70%);
    top: -120px;
    right: -80px;
}

.up-archive-hero-shape.shape-2 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #FF6B35 0%, transparent 70%);
    bottom: -100px;
    left: -60px;
    opacity: 0.25;
}

.up-archive-hero-shape.shape-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #FFD700 0%, transparent 70%);
    top: 40%;
    left: 35%;
    opacity: 0.15;
}

.up-archive-hero-inner {
    position: relative;
    z-index: 1;
}

.up-archive-hero-breadcrumb { margin-bottom: 25px; }

.up-archive-hero-breadcrumb .up-breadcrumb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
}

.up-archive-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.up-archive-hero-breadcrumb a:hover { color: #FFD700; }

.up-archive-hero-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
    margin: 0 5px;
}

.up-archive-hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.up-archive-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(20px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    position: relative;
}

.up-archive-hero-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 30px;
    background: linear-gradient(135deg, #6b5bff, #FF6B35);
    opacity: 0.4;
    filter: blur(15px);
    z-index: -1;
    animation: upArchiveIconGlow 3s ease-in-out infinite;
}

@keyframes upArchiveIconGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.05); }
}

.up-archive-hero-icon svg {
    stroke: #fff;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.up-archive-hero-text {
    flex: 1;
    min-width: 250px;
}

.up-archive-hero-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    font-size: 12px;
    font-weight: 800;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 215, 0, 0.35);
    backdrop-filter: blur(10px);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.up-archive-hero-title {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.up-archive-hero-desc {
    font-size: 14.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 15px;
    max-width: 700px;
    font-weight: 500;
}

.up-archive-hero-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.up-archive-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.up-archive-hero-meta-item svg {
    stroke: #FFD700;
    flex-shrink: 0;
}

.up-archive-hero + .up-blog-posts-section {
    padding-top: 45px;
}

/* ═══ شبکه کارت‌های آرشیو ═══ */
.up-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.up-archive-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #f0f0f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.up-archive-card:hover {
    transform: translateY(-6px);
    border-color: rgba(72, 55, 243, 0.2);
    box-shadow: 0 15px 35px rgba(72, 55, 243, 0.12);
}

.up-archive-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f6f9;
    text-decoration: none;
}

.up-archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.up-archive-card:hover .up-archive-card-image img {
    transform: scale(1.08);
}

.up-archive-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.up-archive-card-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    background: rgba(72, 55, 243, 0.95);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(72, 55, 243, 0.4);
}

.up-archive-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.up-archive-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: #999;
    font-weight: 600;
}

.up-archive-card-date,
.up-archive-card-reading {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.up-archive-card-date svg,
.up-archive-card-reading svg {
    stroke: #4837F3;
    flex-shrink: 0;
}

.up-archive-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #222;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.55em * 2);
}

.up-archive-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s;
}

.up-archive-card:hover .up-archive-card-title a {
    color: #4837F3;
}

.up-archive-card-excerpt {
    font-size: 13px;
    color: #777;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.up-archive-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f5f3ff, #ede9ff);
    color: #4837F3;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(72, 55, 243, 0.15);
    transition: all 0.3s;
    margin-top: 4px;
}

.up-archive-card-link:hover {
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    color: #fff;
    border-color: #4837F3;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(72, 55, 243, 0.3);
}

.up-archive-card-link svg {
    stroke: currentColor;
    transition: transform 0.3s;
}

.up-archive-card-link:hover svg {
    transform: translateX(-3px);
}

/* ═══ صفحه‌بندی ═══ */
.up-archive-pagination {
    margin-top: 35px;
    display: flex;
    justify-content: center;
}

.up-archive-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.up-archive-pagination .page-numbers li {
    display: inline-block;
}

.up-archive-pagination .page-numbers a,
.up-archive-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    color: #555;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 11px;
    border: 1.5px solid #e6e8f5;
    transition: all 0.25s;
    cursor: pointer;
}

.up-archive-pagination .page-numbers a:hover {
    background: #4837F3;
    color: #fff;
    border-color: #4837F3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(72, 55, 243, 0.25);
}

.up-archive-pagination .page-numbers .current {
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(72, 55, 243, 0.35);
}

.up-archive-pagination .page-numbers .prev,
.up-archive-pagination .page-numbers .next {
    padding: 0 18px;
}

.up-archive-pagination .page-numbers a svg {
    stroke: currentColor;
}

/* ═══ حالت خالی ═══ */
.up-archive-empty {
    text-align: center;
    padding: 70px 25px;
    background: #fff;
    border-radius: 18px;
    border: 1.5px solid #f0f0f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.up-archive-empty svg {
    margin: 0 auto 20px;
    display: block;
}

.up-archive-empty h3 {
    font-size: 20px;
    font-weight: 900;
    color: #222;
    margin: 0 0 10px;
}

.up-archive-empty p {
    font-size: 14px;
    color: #777;
    margin: 0 0 25px;
    line-height: 1.7;
}

.up-archive-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(72, 55, 243, 0.35);
    transition: all 0.3s;
}

.up-archive-empty-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(72, 55, 243, 0.5);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════
   ۴. ریسپانسیو (Responsive)
   ═══════════════════════════════════════════════════════════ */

/* === تبلت بزرگ (حداکثر ۱۲۰۰ پیکسل) === */
@media (max-width: 1200px) {
    .up-blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === تبلت (حداکثر ۱۱۰۰ پیکسل) === */
@media (max-width: 1100px) {
    .up-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .up-blog-hero-title { font-size: 32px; }
    .up-blog-hero-excerpt { font-size: 14.5px; }

    .up-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* === تبلت (حداکثر ۹۹۲ پیکسل) === */
@media (max-width: 992px) {
    .up-blog-single-layout {
        grid-template-columns: 1fr;
    }

    .up-blog-sidebar {
        position: static;
    }
}

/* === موبایل (حداکثر ۷۶۸ پیکسل) === */
@media (max-width: 768px) {
    /* کانتینر */
    .up-blog-container { padding: 0 12px; }
    .up-blog-single-container { padding: 0 15px; }
    .up-archive-container { padding: 0 15px; }

    /* Hero بلاگ */
    .up-blog-hero { min-height: 400px; }
    .up-blog-hero-content { padding: 40px 20px 35px; }
    .up-blog-hero-title { font-size: 24px; }
    .up-blog-hero-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* تب‌های دسته‌بندی */
    .up-blog-tabs-section { padding: 22px 0 12px; }
    .up-blog-tabs-header { margin-bottom: 18px; padding: 0 5px; }
    .up-blog-tabs-title { font-size: 17px; gap: 8px; margin-bottom: 6px; }
    .up-blog-tabs-title svg { width: 18px; height: 18px; }
    .up-blog-tabs-subtitle { font-size: 11.5px; line-height: 1.6; }

    .up-blog-tabs-scroll {
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .up-blog-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        min-width: auto;
        padding: 0;
    }

    .up-blog-tab {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 10px;
        white-space: normal;
        text-align: right;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .up-blog-tab span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
        font-weight: 700;
    }

    .up-blog-tab svg { width: 13px; height: 13px; flex-shrink: 0; }
    .up-blog-tab em {
        min-width: 20px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
        flex-shrink: 0;
    }

    .up-blog-tab:first-child { grid-column: 1 / -1; }

    /* کارت‌های مقاله - ۲ ستونی */
    .up-blog-posts-section { padding: 15px 0 45px; }

    .up-blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .up-blog-card { border-radius: 14px; }
    .up-blog-card-media { aspect-ratio: 1 / 1; }

    .up-blog-card-cat {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 9.5px;
        border-radius: 6px;
    }

    .up-blog-card-reading-badge { display: none; }

    .up-blog-card-body { padding: 12px 12px 14px; gap: 8px; }

    .up-blog-card-date { font-size: 10px; gap: 4px; }
    .up-blog-card-date svg { width: 10px; height: 10px; }

    .up-blog-card-title {
        font-size: 12.5px;
        line-height: 1.5;
        min-height: calc(1.5em * 2);
        -webkit-line-clamp: 2;
    }

    .up-blog-card-excerpt { display: none; }

    .up-blog-card-link {
        padding: 6px 10px;
        font-size: 10.5px;
        gap: 4px;
        border-radius: 8px;
        margin-top: 2px;
    }

    .up-blog-card-link svg { width: 11px; height: 11px; }

    .up-blog-card:hover {
        transform: none;
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.04),
            0 4px 12px rgba(0, 0, 0, 0.04),
            0 12px 30px rgba(72, 55, 243, 0.06);
    }

    .up-blog-card:hover .up-blog-card-media img { transform: scale(1); }

    /* دکمه Load More */
    .up-blog-load-more-wrap { margin-top: 30px; gap: 15px; }
    .up-blog-load-more { padding: 12px 26px; font-size: 13px; border-radius: 12px; }
    .up-blog-load-more svg { width: 14px; height: 14px; }

    /* صفحه نوشته تکی */
    .up-blog-single-wrapper { padding: 15px 0 40px; }
    .up-blog-article { padding: 22px 20px; border-radius: 14px; }
    .up-blog-featured-image { margin: 20px -20px; }
    .up-blog-title { font-size: 22px; }
    .up-blog-content { font-size: 14.5px; line-height: 1.9; }
    .up-blog-content h2 { font-size: 18px; }
    .up-blog-content h3 { font-size: 16px; }
    .up-blog-meta { gap: 10px; padding: 12px 0; }
    .up-blog-author-avatar { width: 36px; height: 36px; }
    .up-blog-author-name { font-size: 12px; }
    .up-blog-nav { grid-template-columns: 1fr; }
    .up-blog-share-btn { width: 36px; height: 36px; }

    /* آرشیو */
    .up-archive-wrapper { padding: 15px 0 40px; }

    .up-archive-header {
        padding: 22px 20px;
        gap: 15px;
        border-radius: 15px;
    }

    .up-archive-header-icon { width: 55px; height: 55px; border-radius: 14px; }
    .up-archive-header-icon svg { width: 22px; height: 22px; }
    .up-archive-title { font-size: 20px; }
    .up-archive-desc { font-size: 12.5px; }

    .up-archive-hero { padding: 22px 0 30px; }
    .up-archive-hero-breadcrumb { margin-bottom: 18px; font-size: 11px; }
    .up-archive-hero-content { gap: 15px; flex-direction: column; align-items: flex-start; gap: 20px; }
    .up-archive-hero-icon { width: 60px; height: 60px; border-radius: 16px; }
    .up-archive-hero-icon svg { width: 24px; height: 24px; }
    .up-archive-hero-label { padding: 4px 10px; font-size: 10.5px; margin-bottom: 8px; }
    .up-archive-hero-title { font-size: 20px; margin-bottom: 8px; }
    .up-archive-hero-desc {
        font-size: 12px;
        line-height: 1.7;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .up-archive-hero-meta-item { padding: 4px 10px; font-size: 10.5px; }
    .up-archive-hero-meta-item svg { width: 12px; height: 12px; }
    .up-archive-hero + .up-blog-posts-section { padding-top: 25px; }

    .up-archive-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .up-archive-card { border-radius: 14px; }
    .up-archive-card-image { aspect-ratio: 1 / 1; }
    .up-archive-card-cat { top: 8px; right: 8px; padding: 3px 8px; font-size: 9.5px; }
    .up-archive-card-body { padding: 12px; gap: 8px; }
    .up-archive-card-meta { font-size: 10px; gap: 8px; }
    .up-archive-card-meta svg { width: 11px; height: 11px; }
    .up-archive-card-title {
        font-size: 12.5px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
        min-height: calc(1.5em * 2);
    }
    .up-archive-card-excerpt { display: none; }
    .up-archive-card-link { padding: 6px 10px; font-size: 10.5px; gap: 4px; }
    .up-archive-card-link svg { width: 11px; height: 11px; }

    /* صفحه‌بندی */
    .up-archive-pagination .page-numbers a,
    .up-archive-pagination .page-numbers span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 12.5px;
    }
    .up-archive-pagination .page-numbers .prev,
    .up-archive-pagination .page-numbers .next {
        padding: 0 12px;
    }
}

/* === موبایل کوچک (حداکثر ۴۸۰ پیکسل) === */
@media (max-width: 480px) {
    /* هدر بلاگ */
    .up-blog-container { padding: 0 12px; }
    .up-blog-tabs-title { font-size: 16px; }
    .up-blog-tabs-title svg { width: 16px; height: 16px; }

    .up-blog-hero { min-height: 360px; }
    .up-blog-hero-title { font-size: 20px; }
    .up-blog-hero-meta { gap: 12px; }
    .up-blog-hero-meta-item { font-size: 11.5px; }
    .up-blog-hero-btn { padding: 12px 22px; font-size: 13px; }

    /* کارت‌ها */
    .up-blog-grid { gap: 8px !important; }
    .up-blog-card { border-radius: 12px; }
    .up-blog-card-body { padding: 10px; gap: 6px; }
    .up-blog-card-title { font-size: 11.5px; }
    .up-blog-card-date { font-size: 9.5px; }
    .up-blog-card-link { padding: 5px 8px; font-size: 10px; }
    .up-blog-card-link span { display: none; }
    .up-blog-card-link svg { width: 14px; height: 14px; }
    .up-blog-card-media { aspect-ratio: 4 / 3; }

    /* تب‌ها */
    .up-blog-tab { padding: 9px 10px; font-size: 11.5px; }
    .up-blog-tab em { min-width: 18px; height: 16px; font-size: 9.5px; }

    /* نوشته تکی */
    .up-blog-article { padding: 18px 15px; }
    .up-blog-title { font-size: 19px; }
    .up-blog-featured-image { margin: 15px -15px; }

    /* آرشیو */
    .up-archive-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }
    .up-archive-header-icon { width: 50px; height: 50px; }
    .up-archive-card-body { padding: 10px; }
    .up-archive-card-title { font-size: 11.5px; }
    .up-archive-card-link { padding: 5px 8px; font-size: 10px; }

    .up-archive-hero-title { font-size: 20px; }
    .up-archive-hero-icon { width: 65px; height: 65px; }

    .up-archive-pagination .page-numbers .prev,
    .up-archive-pagination .page-numbers .next {
        font-size: 0;
        padding: 0;
        min-width: 38px;
    }
}

/* === موبایل خیلی کوچک (حداکثر ۳۸۰ پیکسل) === */
@media (max-width: 380px) {
    .up-blog-tabs { grid-template-columns: 1fr; }
    .up-blog-tab { padding: 9px 12px; font-size: 11.5px; }
}

/* === تبلت متوسط (۶۰۰ تا ۹۰۰ پیکسل) === */
@media (min-width: 600px) and (max-width: 900px) {
    .up-blog-tabs { grid-template-columns: repeat(3, 1fr); }
    .up-blog-tab:first-child { grid-column: auto; }
    .up-blog-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
    .up-blog-card-title { font-size: 14px; }
    .up-blog-card-excerpt {
        display: -webkit-box;
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .up-blog-card-reading-badge { display: inline-flex; }
}

/* === حالت افقی موبایل === */
@media (max-width: 900px) and (orientation: landscape) {
    .up-blog-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .up-archive-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* === کاهش انیمیشن برای کاربران با prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
    .up-blog-card,
    .up-blog-card-media img,
    .up-blog-hero-bg,
    .up-blog-hero-btn,
    .up-blog-card-link,
    .up-blog-load-more {
        transition: none !important;
        animation: none !important;
    }

    .up-blog-card:hover { transform: none; }
}