.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.grid-item {
  aspect-ratio: 1 / 1;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.grid-item:hover {
  transform: translateY(-3px);
}

.card-img {
  width: 100%;
  height: 50%;
  object-fit: cover;
}

.card-content {
  padding: 0.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: start;
  font-size: 0.9rem;
  color: #333;
}

.post-date {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.25rem;
}

.post-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.post-title:hover {
  text-decoration: underline;
}

.post-summary {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.4;
  margin: 0.4rem 0;
}

.read-more-link {
  font-size: 0.8rem;
  color: #1e88e5;
  text-decoration: none;
}

.read-more-link:hover {
  text-decoration: underline;
}

.post-tags {
  margin-top: auto;
  font-size: 0.75rem;
  color: #666;
}

.tag {
  margin-right: 0.3rem;
  color: #999;
}

