.latest-posts-grid-block {
  margin: 0;
  height: auto;
  min-height: 350px;
  overflow: scroll;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  background: var(--bg-color);
  border-radius: 8px;
  /* overflow: hidden; */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0.5rem;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-date {
  color: #fff;
  font-family: var(--notesesa), sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 1.05rem */
  letter-spacing: 0.09625rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  -webkit-transition: all 0.3s 0s ease;
  -moz-transition: all 0.3s 0s ease;
  -o-transition: all 0.3s 0s ease;
  transition: all 0.3s 0s ease;
}

.post-item:hover .post-title {
  color: var(--pure-teal);
}

/* Responsive design */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .post-content {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* No posts message */
.latest-posts-grid-block p {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
}
