/* =============================================
   PVA Project — Main Stylesheet
   Bootstrap + Gerold Design System
   ============================================= */

@import url("../fonts/stylesheet.css");
@import url("variables.css");
@import url("header.css");
@import url("footer.css");
@import url("product-cards.css");
@import url("contact.css");
@import url("home.css");
@import url("product-detail.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Peyda", sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
}

body.overflow-hidden {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

.ul-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

.section-header .section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto;
}

/* Buttons */
.btn-pva-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white) !important;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.btn-pva-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 82, 204, 0.35);
  color: var(--white) !important;
}

.btn-pva-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--dark);
  font-weight: 500;
  background: var(--white);
  transition: border-color 0.25s, color 0.25s;
}

.btn-pva-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, visibility 0.3s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader svg {
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}
/* ============================================================
   Sticky Footer - حل مشکل چسبیدن فوتر به محتوا
   ============================================================ */

/* استفاده از Flexbox برای چسباندن فوتر به پایین صفحه */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* هدرها نباید در محاسبه flex شرکت کنند */
.tj-header-area {
    flex-shrink: 0;
}

/* محتوای اصلی باید فضای خالی را پر کند */
.site-content {
    flex: 1 0 auto;
    padding-bottom: 60px; /* فاصله از فوتر */
}

/* فوتر باید در پایین باقی بماند */
.tj-footer-area {
    flex-shrink: 0;
    margin-top: auto;
}

/* برای صفحات با هدر absolute (مثل صفحه اصلی) */
body:has(.header-absolute) .site-content {
    padding-top: 100px; /* فضای خالی برای هدر شناور */
}

/* ============================================================
   بهبود کارت محصولات در گرید
   ============================================================ */
.product-list-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-list-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-list-card .plc-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 15px;
}

.product-list-card .plc-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-list-card .plc-brand {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
}

.product-list-card .plc-cta {
    margin-top: auto; /* دکمه را به پایین کارت هل می‌دهد */
    text-align: center;
    padding: 8px 12px;
}
/* ============================================================
   انیمیشن و استایل حرفه‌ای کارت محصول
   ============================================================ */

.product-list-card {
    background: var(--white, #ffffff);
    border-radius: 16px;
    border: 1px solid var(--border, #eef0f2);
    overflow: hidden; /* جلوگیری از بیرون زدن عکس هنگام زوم */
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    /* انیمیشن هاور روی کل کارت */
    .product-list-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 82, 204, 0.15); /* سایه آبی ملایم و شیک */
        border-color: var(--primary, #0052cc);
    }

/* کادر تصویر برای زوم */
.plc-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* نسبت تصویر ثابت و زیبا */
    overflow: hidden;
    background-color: #f8f9fa;
}

    .plc-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

/* افکت زوم ملایم روی عکس هنگام هاور کارت */
.product-list-card:hover .plc-img-wrapper img {
    transform: scale(1.08);
}

/* محتوای متنی کارت */
.product-list-card .plc-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.product-list-card .plc-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--dark, #1a1a1a);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px; /* هم‌تراز کردن کارت‌ها */
}

.product-list-card .plc-brand {
    font-size: 0.8rem;
    color: var(--gray, #6c757d);
    margin-bottom: 16px;
    display: block;
}

/* ============================================================
   استایل دکمه آبی "مشاهده جزئیات" با هاور جذاب
   ============================================================ */
.plc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    background-color: var(--primary, #0052cc); /* رنگ آبی اصلی */
    color: #ffffff !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: auto; /* هل دادن دکمه به پایین‌ترین نقطه کارت */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    /* افکت هاور دکمه */
    .plc-cta:hover {
        background-color: var(--primary-dark, #003d99); /* آبی تیره‌تر */
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 82, 204, 0.35);
        color: #ffffff !important;
    }

    /* افکت کلیک (فشرده شدن) */
    .plc-cta:active {
        transform: translateY(0);
        box-shadow: 0 2px 5px rgba(0, 82, 204, 0.2);
    }

/* ============================================================
   کارت مقاله بلاگ
   ============================================================ */
.blog-card {
    background: var(--white, #fff);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border, #eef0f2);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .blog-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(0, 82, 204, 0.12);
        border-color: var(--primary, #0052cc);
    }

.blog-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8f9fa;
}

    .blog-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.08);
}

.blog-meta-time {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-category {
    display: inline-block;
    background: rgba(0, 82, 204, 0.1);
    color: var(--primary, #0052cc);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}

.blog-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--dark, #1a1a1a);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
}

.blog-slog {
    font-size: 0.85rem;
    color: var(--gray, #6c757d);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border, #eef0f2);
    margin-top: auto;
}

.blog-author {
    font-size: 0.8rem;
    color: var(--gray, #6c757d);
}

.blog-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary, #0052cc);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

    .blog-cta:hover {
        gap: 10px;
        color: var(--primary-dark, #003d99);
    }

/* ============================================================
   سایدبار دسته‌بندی
   ============================================================ */
.blog-sidebar-card {
    background: var(--white, #fff);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border, #eef0f2);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary, #0052cc);
    display: inline-block;
}

.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-category-list li {
        margin-bottom: 8px;
    }

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--dark, #333);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .category-link:hover {
        background-color: rgba(0, 82, 204, 0.05);
        color: var(--primary, #0052cc);
        padding-right: 20px;
    }

    .category-link.active {
        background-color: var(--primary, #0052cc);
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
    }

        .category-link.active i {
            transform: translateX(-4px);
        }


/* ============================================================
   صفحه جزئیات مقاله بلاگ
   ============================================================ */

/* Breadcrumb */
.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--gray, #6c757d);
    margin-bottom: 20px;
}

    .blog-breadcrumb a {
        color: var(--gray, #6c757d);
        text-decoration: none;
        transition: color 0.25s ease;
    }

        .blog-breadcrumb a:hover {
            color: var(--primary, #0052cc);
        }

    .blog-breadcrumb .separator {
        color: var(--border, #dee2e6);
        font-size: 0.7rem;
    }

    .blog-breadcrumb .current {
        color: var(--primary, #0052cc);
        font-weight: 600;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* ============================================================
   Hero مقاله
   ============================================================ */
.blog-detail-hero {
    background: var(--white, #fff);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border, #eef0f2);
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.blog-hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: #f8f9fa;
}

    .blog-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

.blog-detail-hero:hover .blog-hero-image img {
    transform: scale(1.03);
}

.blog-hero-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary, #0052cc);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
    backdrop-filter: blur(10px);
}

.blog-hero-content {
    padding: 32px;
    text-align: center;
}

.blog-hero-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.5;
    color: var(--dark, #1a1a1a);
    margin-bottom: 16px;
}

.blog-hero-slog {
    font-size: 1.05rem;
    color: var(--gray, #6c757d);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 24px;
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border, #eef0f2);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--gray, #6c757d);
}

    .meta-item i {
        color: var(--primary, #0052cc);
        font-size: 1rem;
    }

/* ============================================================
   محتوای اصلی مقاله (Typography حرفه‌ای)
   ============================================================ */
.blog-detail-body {
    background: var(--white, #fff);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border, #eef0f2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.blog-body-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--dark, #2c2c2c);
    word-wrap: break-word;
}

    .blog-body-content h1,
    .blog-body-content h2,
    .blog-body-content h3,
    .blog-body-content h4 {
        color: var(--dark, #1a1a1a);
        font-weight: 700;
        margin: 32px 0 16px;
        line-height: 1.4;
    }

    .blog-body-content h2 {
        font-size: 1.6rem;
        padding-right: 16px;
        border-right: 4px solid var(--primary, #0052cc);
    }

    .blog-body-content h3 {
        font-size: 1.3rem;
    }

    .blog-body-content h4 {
        font-size: 1.1rem;
    }

    .blog-body-content p {
        margin-bottom: 18px;
        text-align: justify;
    }

    .blog-body-content img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 24px auto;
        display: block;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .blog-body-content ul,
    .blog-body-content ol {
        padding-right: 24px;
        margin-bottom: 20px;
    }

    .blog-body-content li {
        margin-bottom: 10px;
    }

    .blog-body-content blockquote {
        background: linear-gradient(135deg, rgba(0, 82, 204, 0.05) 0%, rgba(0, 82, 204, 0.02) 100%);
        border-right: 4px solid var(--primary, #0052cc);
        padding: 20px 24px;
        margin: 24px 0;
        border-radius: 12px;
        font-style: italic;
        color: var(--dark, #2c2c2c);
        position: relative;
    }

        .blog-body-content blockquote::before {
            content: '"';
            position: absolute;
            top: -10px;
            right: 16px;
            font-size: 4rem;
            color: var(--primary, #0052cc);
            opacity: 0.2;
            font-family: serif;
        }

    .blog-body-content a {
        color: var(--primary, #0052cc);
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: all 0.25s ease;
    }

        .blog-body-content a:hover {
            color: var(--primary-dark, #003d99);
        }

    .blog-body-content code {
        background: #f4f6f8;
        padding: 2px 8px;
        border-radius: 6px;
        font-family: 'Courier New', monospace;
        font-size: 0.9em;
        color: #d63384;
    }

    .blog-body-content pre {
        background: #1e1e1e;
        color: #d4d4d4;
        padding: 20px;
        border-radius: 12px;
        overflow-x: auto;
        margin: 24px 0;
        direction: ltr;
        text-align: left;
    }

        .blog-body-content pre code {
            background: transparent;
            color: inherit;
            padding: 0;
        }

    .blog-body-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 24px 0;
        border-radius: 12px;
        overflow: hidden;
    }

    .blog-body-content th,
    .blog-body-content td {
        padding: 12px 16px;
        border: 1px solid var(--border, #eef0f2);
        text-align: right;
    }

    .blog-body-content th {
        background: var(--primary, #0052cc);
        color: #fff;
        font-weight: 600;
    }

    .blog-body-content tr:nth-child(even) {
        background: #f8f9fa;
    }

/* ============================================================
   بخش اشتراک‌گذاری
   ============================================================ */
.blog-share-section {
    margin-top: 40px;
    padding: 28px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid var(--border, #eef0f2);
    text-align: center;
}

.share-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark, #1a1a1a);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .share-title i {
        color: var(--primary, #0052cc);
    }

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .share-btn:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        color: #fff;
    }

.share-telegram {
    background: #0088cc;
}

.share-whatsapp {
    background: #25D366;
}

.share-twitter {
    background: #000;
}

.share-linkedin {
    background: #0A66C2;
}

.share-copy {
    background: var(--primary, #0052cc);
}

    .share-copy.copied {
        background: #28a745;
    }

/* ============================================================
   باکس نویسنده
   ============================================================ */
.blog-author-box {
    margin-top: 40px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.03) 0%, rgba(0, 82, 204, 0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 82, 204, 0.15);
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary, #0052cc);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.author-info h4 {
    font-size: 0.85rem;
    color: var(--gray, #6c757d);
    margin-bottom: 4px;
    font-weight: 500;
}

.author-info h3 {
    font-size: 1.2rem;
    color: var(--dark, #1a1a1a);
    margin-bottom: 8px;
    font-weight: 700;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--gray, #6c757d);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   دکمه بازگشت
   ============================================================ */
.blog-back-section {
    margin-top: 40px;
    text-align: center;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary, #0052cc);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

    .blog-back-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 82, 204, 0.4);
        background: var(--primary-dark, #003d99);
        color: #fff !important;
    }

    .blog-back-btn i {
        transition: transform 0.3s ease;
    }

    .blog-back-btn:hover i {
        transform: translateX(-5px);
    }
/* ============================================================
   صفحه جزئیات مقاله بلاگ
   ============================================================ */

/* Breadcrumb */
.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--gray, #6c757d);
    margin-bottom: 20px;
}

    .blog-breadcrumb a {
        color: var(--gray, #6c757d);
        text-decoration: none;
        transition: color 0.25s ease;
    }

        .blog-breadcrumb a:hover {
            color: var(--primary, #0052cc);
        }

    .blog-breadcrumb .separator {
        color: var(--border, #dee2e6);
        font-size: 0.7rem;
    }

    .blog-breadcrumb .current {
        color: var(--primary, #0052cc);
        font-weight: 600;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* ============================================================
   Hero مقاله
   ============================================================ */
.blog-detail-hero {
    background: var(--white, #fff);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border, #eef0f2);
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.blog-hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: #f8f9fa;
}

    .blog-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

.blog-detail-hero:hover .blog-hero-image img {
    transform: scale(1.03);
}

.blog-hero-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary, #0052cc);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
    backdrop-filter: blur(10px);
}

.blog-hero-content {
    padding: 32px;
    text-align: center;
}

.blog-hero-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.5;
    color: var(--dark, #1a1a1a);
    margin-bottom: 16px;
}

.blog-hero-slog {
    font-size: 1.05rem;
    color: var(--gray, #6c757d);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 24px;
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border, #eef0f2);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--gray, #6c757d);
}

    .meta-item i {
        color: var(--primary, #0052cc);
        font-size: 1rem;
    }

/* ============================================================
   محتوای اصلی مقاله (Typography حرفه‌ای)
   ============================================================ */
.blog-detail-body {
    background: var(--white, #fff);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border, #eef0f2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.blog-body-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--dark, #2c2c2c);
    word-wrap: break-word;
}

    .blog-body-content h1,
    .blog-body-content h2,
    .blog-body-content h3,
    .blog-body-content h4 {
        color: var(--dark, #1a1a1a);
        font-weight: 700;
        margin: 32px 0 16px;
        line-height: 1.4;
    }

    .blog-body-content h2 {
        font-size: 1.6rem;
        padding-right: 16px;
        border-right: 4px solid var(--primary, #0052cc);
    }

    .blog-body-content h3 {
        font-size: 1.3rem;
    }

    .blog-body-content h4 {
        font-size: 1.1rem;
    }

    .blog-body-content p {
        margin-bottom: 18px;
        text-align: justify;
    }

    .blog-body-content img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 24px auto;
        display: block;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .blog-body-content ul,
    .blog-body-content ol {
        padding-right: 24px;
        margin-bottom: 20px;
    }

    .blog-body-content li {
        margin-bottom: 10px;
    }

    .blog-body-content blockquote {
        background: linear-gradient(135deg, rgba(0, 82, 204, 0.05) 0%, rgba(0, 82, 204, 0.02) 100%);
        border-right: 4px solid var(--primary, #0052cc);
        padding: 20px 24px;
        margin: 24px 0;
        border-radius: 12px;
        font-style: italic;
        color: var(--dark, #2c2c2c);
        position: relative;
    }

        .blog-body-content blockquote::before {
            content: '"';
            position: absolute;
            top: -10px;
            right: 16px;
            font-size: 4rem;
            color: var(--primary, #0052cc);
            opacity: 0.2;
            font-family: serif;
        }

    .blog-body-content a {
        color: var(--primary, #0052cc);
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: all 0.25s ease;
    }

        .blog-body-content a:hover {
            color: var(--primary-dark, #003d99);
        }

    .blog-body-content code {
        background: #f4f6f8;
        padding: 2px 8px;
        border-radius: 6px;
        font-family: 'Courier New', monospace;
        font-size: 0.9em;
        color: #d63384;
    }

    .blog-body-content pre {
        background: #1e1e1e;
        color: #d4d4d4;
        padding: 20px;
        border-radius: 12px;
        overflow-x: auto;
        margin: 24px 0;
        direction: ltr;
        text-align: left;
    }

        .blog-body-content pre code {
            background: transparent;
            color: inherit;
            padding: 0;
        }

    .blog-body-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 24px 0;
        border-radius: 12px;
        overflow: hidden;
    }

    .blog-body-content th,
    .blog-body-content td {
        padding: 12px 16px;
        border: 1px solid var(--border, #eef0f2);
        text-align: right;
    }

    .blog-body-content th {
        background: var(--primary, #0052cc);
        color: #fff;
        font-weight: 600;
    }

    .blog-body-content tr:nth-child(even) {
        background: #f8f9fa;
    }

/* ============================================================
   بخش اشتراک‌گذاری
   ============================================================ */
.blog-share-section {
    margin-top: 40px;
    padding: 28px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid var(--border, #eef0f2);
    text-align: center;
}

.share-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark, #1a1a1a);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .share-title i {
        color: var(--primary, #0052cc);
    }

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .share-btn:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        color: #fff;
    }

.share-telegram {
    background: #0088cc;
}

.share-whatsapp {
    background: #25D366;
}

.share-twitter {
    background: #000;
}

.share-linkedin {
    background: #0A66C2;
}

.share-copy {
    background: var(--primary, #0052cc);
}

    .share-copy.copied {
        background: #28a745;
    }

/* ============================================================
   باکس نویسنده
   ============================================================ */
.blog-author-box {
    margin-top: 40px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.03) 0%, rgba(0, 82, 204, 0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 82, 204, 0.15);
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary, #0052cc);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.author-info h4 {
    font-size: 0.85rem;
    color: var(--gray, #6c757d);
    margin-bottom: 4px;
    font-weight: 500;
}

.author-info h3 {
    font-size: 1.2rem;
    color: var(--dark, #1a1a1a);
    margin-bottom: 8px;
    font-weight: 700;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--gray, #6c757d);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   دکمه بازگشت
   ============================================================ */
.blog-back-section {
    margin-top: 40px;
    text-align: center;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary, #0052cc);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

    .blog-back-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 82, 204, 0.4);
        background: var(--primary-dark, #003d99);
        color: #fff !important;
    }

    .blog-back-btn i {
        transition: transform 0.3s ease;
    }

    .blog-back-btn:hover i {
        transform: translateX(-5px);
    }

/* ============================================================
   ریسپانسیو
   ============================================================ */
@media (max-width: 768px) {
    .blog-detail-body {
        padding: 24px 20px;
    }

    .blog-hero-content {
        padding: 24px 20px;
    }

    .blog-hero-meta {
        gap: 12px 20px;
    }

    .meta-item {
        font-size: 0.8rem;
    }

    .blog-author-box {
        flex-direction: column;
        text-align: center;
    }

    .blog-body-content h2 {
        font-size: 1.3rem;
    }
}

/* ============================================================
   کارت دسته‌بندی
   ============================================================ */
.category-card {
    background: var(--white, #fff);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border, #eef0f2);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .category-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(0, 82, 204, 0.12);
        border-color: var(--primary, #0052cc);
    }

.category-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border, #eef0f2);
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

    .category-title a {
        color: var(--dark, #1a1a1a);
        text-decoration: none;
        transition: color 0.25s ease;
    }

        .category-title a:hover {
            color: var(--primary, #0052cc);
        }

.category-count {
    background: rgba(0, 82, 204, 0.1);
    color: var(--primary, #0052cc);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.category-children {
    flex: 1;
    margin-bottom: 20px;
}

.children-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray, #6c757d);
    margin-bottom: 12px;
}

.children-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .children-list li {
        margin-bottom: 8px;
    }

    .children-list a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        border-radius: 8px;
        color: var(--dark, #333);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.25s ease;
    }

        .children-list a:hover {
            background: rgba(0, 82, 204, 0.05);
            color: var(--primary, #0052cc);
            padding-right: 16px;
        }

.child-count {
    font-size: 0.75rem;
    color: var(--gray, #6c757d);
}

.category-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary, #0052cc);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

    .category-cta:hover {
        background: var(--primary-dark, #003d99);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 82, 204, 0.3);
        color: #fff !important;
    }

/* ============================================================
   Badge تعداد محصولات در مگا منو
   ============================================================ */
.mega-count {
    font-size: 0.75rem;
    color: var(--gray, #6c757d);
    margin-right: 4px;
}