.latest-posts-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 10px;
}

.post-modern-card {
    display: block;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.post-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.35);
}

.post-modern-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* حذف کامل لیبل قدیمی روی عکس */
.post-price-label {
    display: none !important;
}

/* بخش عنوان + قیمت جدید (کنار هم) */
.post-modern-title {
    padding: 18px 20px;
    background: #000;
    border-top: 3px solid #d51218;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    min-height: 70px;
}

.post-modern-title h3 {
    font-size: 20px;
    line-height: 1.4;
    color: #fff;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
    flex: 1;
    min-width: 0; /* برای شکستن خط عنوان‌های طولانی */
}

.post-modern-card:hover h3 {
    color: #d51218;
}

/* باکس قیمت جدید — کنار عنوان */
.post-price-box {
    background: linear-gradient(135deg, #e91e24, #c2181e);
    color: #fff;
    font-weight: 900;
    font-size: 19px;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(233,30,36,0.5);
    min-width: 110px;
    text-align: center;
    border: 3px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.post-modern-card:hover .post-price-box {
    transform: scale(1.09);
    background: linear-gradient(135deg, #c2181e, #a11616);
    box-shadow: 0 10px 28px rgba(233,30,36,0.65);
}

.price-value {
    font-size: 22px;
    letter-spacing: 0.5px;
}

.price-poa {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

/* فقط قیمت نشون بده اگر مقدار داشت */
.price-value:not(:empty) ~ .price-poa {
    display: none;
}

/* فقط POA نشون بده اگر قیمت خالی بود */
.price-value:empty + .price-poa {
    font-size: 18px !important;
}

/* ریسپانسیو موبایل */
@media (max-width: 480px) {
    .latest-posts-modern {
        grid-template-columns: 1fr;
    }
    
    .post-modern-title {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .post-modern-title h3 {
        font-size: 18px;
        width: 100%;
    }
    
    .post-price-box {
        align-self: flex-end;
        font-size: 18px;
        padding: 9px 16px;
        min-width: 100px;
    }
    
    .price-value:empty + .price-poa {
        font-size: 17px !important;
    }
}









/*autotrader blogs */
/* ====================== مشخصات خودرو - نسخه نهایی با قرمز خوانا ====================== */
.car-specs-container {
    max-width: 960px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.car-specs-left {flex: 2; min-width: 340px; padding: 36px; background: #fafafa; border-radius: 14px;}
.car-specs-right {flex: 1; min-width: 300px; padding: 36px 24px; display: flex; flex-direction: column; gap: 24px; justify-content: center;}

/* عنوان اصلی — ۱۰۰٪ ضدخراب */
.specs-title, .specs-title *, .specs-title p, .specs-title br, .specs-title span {
    margin: 0 0 32px !important;
    padding: 0 0 12px !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #111 !important;
    border-bottom: 5px solid #e91e24 !important;
    display: inline-block !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
}

/* عنوان اطلاعات اضافی */
.additional-title, .additional-title * {
    margin: 0 0 14px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #e91e24 !important;
}

.specs-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 20px;}

.spec-item {
    background: #fff;
    border: 3px solid #e91e24;
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(233,30,36,0.12);
    transition: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.spec-item strong {
    display: block;
    font-size: 16.5px;
    color: #222;
    margin-bottom: 6px;
    font-weight: 600;
    transition: color 0.38s ease;
}

.spec-item span {
    font-size: 23px !important;
    font-weight: 950 !important;
    color: #e91e24;
    letter-spacing: 0.4px;
    transition: all 0.38s ease;
}

/* هاور — قرمز روشن و خوانا + متن سفید کاملاً واضح */
.spec-item:hover {
    background: #e91e24 !important;        /* قرمز روشن و حرفه‌ای */
    border-color: #d81b21 !important;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(233,30,36,0.42);
}

.spec-item:hover strong,
.spec-item:hover span {
    color: #ffffff !important;
}

.spec-item:hover span {
    font-size: 24px !important;
}

/* خط نور سفید */
.spec-item::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: 0.7s; transform: skewX(-20deg);
}
.spec-item:hover::before {left: 120%;}

/* اطلاعات اضافی */
.additional-info {
    margin-top: 36px;
    padding: 24px;
    background: #fff;
    border-left: 6px solid #e91e24;
    border-radius: 0 12px 12px 0;
    font-size: 15.5px;
    line-height: 1.8;
    color: #333;
}
.additional-info p {margin: 0;}

/* باکس‌های تماس */
.contact-box {padding: 32px 20px; border-radius: 16px; text-align: center; color: #fff; font-weight: 900; transition: transform 0.3s ease;}
.contact-box:hover {transform: translateY(-8px);}
.contact-box p {margin: 0 0 12px; font-size: 17px; text-transform: uppercase; letter-spacing: 1.8px; opacity: 0.95;}
.contact-box a {color: #fff; text-decoration: none; font-size: 30px; letter-spacing: 1px;}
.insurance {background: linear-gradient(135deg, #e91e24, #c2181e); box-shadow: 0 15px 35px rgba(233,30,36,0.38);}
.accident {background: linear-gradient(135deg, #111, #000); box-shadow: 0 15px 35px rgba(0,0,0,0.5);}

/* موبایل */
@media (max-width: 768px) {
    .car-specs-container {gap: 24px; padding: 16px;}
    .specs-grid {grid-template-columns: 1fr;}
    .car-specs-left, .car-specs-right {min-width: 100%;}
    .specs-title, .specs-title * {font-size: 26px !important;}
}




