




.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, #f5f8fc, #e3eaf5);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(100, 120, 160, 0.2);
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #cbd6e4;
  position: relative;
}

.latest-post-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
  border-color: #0d6efd;
}

.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: #333f58;
  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: #0d6efd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #4a90e2;
}

/* ✅ تغییر داده شده برای وسط چین کردن آیکون و تاریخ */
.post-info {
  font-size: 0.85rem;
  color: #7a869a;
  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: #0d6efd;
}

.post-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555f7a;
  margin-top: auto;
}



