.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;
    }
}

















.latest-posts-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
}

.latest-post-col {
  flex: 1 1 calc(33.333% - 1rem);
  box-sizing: border-box;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

@media (max-width: 991px) {
  .latest-post-col {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 576px) {
  .latest-post-col {
    flex: 1 1 100%;
  }
}

.latest-post-card {
  background: linear-gradient(145deg, #eefaf6, #d7f5ec);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(12, 50, 39, 0.2);
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #bfe9dc;
  position: relative;
}

.latest-post-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0, 172, 122, 0.35);
  border-color: #00ac7a;
}

.post-image {
  max-height: 200px;
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  position: relative;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  filter: brightness(1);
}

.latest-post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1rem 1.25rem;
  color: #0c3227;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  line-height: 1.4;
}

.post-title a {
  color: #00ac7a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #0cdb9f;
}

/* وسط چین اطلاعات */
.post-info {
  font-size: 0.85rem;
  color: #5f7f75;
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
}

.post-info .fa {
  color: #00ac7a;
}

.post-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3e5f56;
  margin-top: auto;
}
