.post_item_wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.post_item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #f0f0f0;
}

.post_item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.post_cover {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background-color: #f5f5f5;
}

.post_cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post_item:hover .post_cover img {
  transform: scale(1.08);
}

.post-cover-noimage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.9rem;
}

.post-content-wrapper {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-content-wrapper h2 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.4;
}

.post-content-wrapper h2 a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}

.post-content-wrapper h2 a:hover {
  color: var(--primary-color);
}

.post-meta-id {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.post-meta-id span a {
  color: #666;
  text-decoration: none;
  background: #efefef;
  padding: 2px 8px;
  border-radius: 4px;
}

.post-content {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  padding-bottom: 60px;
}

.pagination .page-link {
  border: 1px solid #e0e0e0;
  color: #007bff;
  margin: 0 5px;
  border-radius: 5px !important;
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.2s;
}

.pagination .page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.pagination .page-link:hover {
  background-color: #f0f7ff;
}

@media (max-width: 600px) {
  .post_item_wrap {
    grid-template-columns: 1fr;
  }
}