.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 #00ac7a; /* ← رنگ جدید برند */
    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: #00ac7a; /* ← رنگ جدید در ها.هاور */
}

/* باکس قیمت جدید — با پالت سبز برند */
.post-price-box {
    background: linear-gradient(135deg, #00ac7a, #008f61); /* سبز اصلی → سبز تیره‌تر */
    color: #fff;
    font-weight: 900;
    font-size: 19px;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0,172,122,0.45);
    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, #008f61, #0c3227); /* سبز تیره → سبز خیلی تیره */
    box-shadow: 0 10px 28px rgba(0,172,122,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;
    }
}
