/* بخش عنوان */
/* استایل هدر آرشیو هوشمند و کشسان */
.gap-archive-header {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 0px;
    padding: 0px 0px;
    position: relative;
    z-index: 1;
}

.gap-archive-title {
    font-size: 32px;
    font-weight: 850;
    color: #1a1a1a;
    margin: 0;
    position: relative;
    display: inline-block; /* باعث می‌شود عرض المان فقط به اندازه متن باشد */
    padding-bottom: 15px; /* فاصله برای قرارگیری خط */
}

/* متن کمرنگ پشت عنوان */
.gap-archive-header::before {
    content: "BLOG";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    z-index: -1;
    letter-spacing: 8px;
    pointer-events: none; /* که مانع کلیک روی متن نشود */
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .gap-archive-header::before {
        font-size: 60px; /* کوچک کردن متن پشت در موبایل */
    }
    .gap-archive-title {
        font-size: 24px;
    }
}

/* کانتینر اصلی */
.gap-force-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 35px !important;
    direction: rtl !important;
    padding: 20px !important;
}

/* استایل کارت با لبه‌های گردتر و سایه عمیق در هاور */
.gap-final-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    position: relative;
}

.gap-final-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

/* بخش تصویر */
.gap-img-container {
    position: relative !important;
    width: 100% !important;
    height: 320px !important; /* کمی بلندتر برای جلوه بیشتر */
    background: transparent !important; /* حذف پس‌زمینه سفید */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important; /* حذف فضای داخلی اضافه */
}

.gap-img-obj {
    width: 100% !important; /* استفاده از حداکثر عرض */
    height: 100% !important;
    object-fit: contain !important; /* حفظ تناسب بدون برش */
    transition: 0.6s !important;
}

.gap-final-card:hover .gap-img-obj {
    transform: scale(1.1);
}

/* نشان (Badge) دسته بندی */
.gap-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 122, 255, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: bold;
    z-index: 5;
    backdrop-filter: blur(5px);
}

/* لایه روی عکس در هاور */
.gap-overlay-layer {
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4) !important;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
    z-index: 4;
}

.gap-img-container:hover .gap-overlay-layer { opacity: 1; }

.gap-btn-link {
    background: #fff !important;
    color: #000 !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 13px;
    transform: translateY(20px);
    transition: 0.4s;
}

.gap-img-container:hover .gap-btn-link { transform: translateY(0); }

/* محتوای متنی */
.gap-content-section {
    padding: 25px !important;
}

.gap-meta-top {
    margin-bottom: 10px;
}

.gap-badge-new {
    font-size: 11px !important;
    background: #eef5ff !important;
    color: #007aff !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    text-decoration: none !important; /* حذف زیرخط لینک */
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.gap-badge-new:hover {
    background: #007aff !important; /* در هاور رنگش عوض شود */
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.gap-read-time {
    font-size: 11px;
    color: #999;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
}

.gap-title-final {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 10px 0 !important;
    line-height: 1.4 !important;
}

.gap-title-final a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: 0.2s;
}

.gap-title-final a:hover { color: #007aff !important; }

.gap-excerpt-final {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* فوتر کارت */
.gap-footer-final {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 15px !important;
    border-top: 1px solid #eee !important;
}

.gap-date {
    font-size: 12px;
    color: #bbb;
}

.gap-more-link {
    color: #007aff !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: 0.3s;
}

.gap-more-link:hover {
    letter-spacing: -0.5px;
    padding-right: 5px;
}

/* ریسپانسیو */
@media (max-width: 1024px) { .gap-force-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 650px) { .gap-force-grid { grid-template-columns: 1fr !important; } }
