.postgrid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.postgrid-card {
  background: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 1px 2px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
	justify-content: space-between;
  padding: 0;
}

.postgrid-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.postgrid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.postgrid-meta {
  padding: 12px 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6B7280;
  font-size: 14px;
}

.postgrid-title {
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  margin: 8px 16px 4px;
  color: #0A0A0A;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.postgrid-excerpt {
  margin: 0 16px 8px;
  font-size: 14px;
  color: #737373;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.postgrid-author {
  margin: 0 16px 12px;
  font-size: 14px;
  color: #4B5563;
}

.postgrid-button {
  color: #1E3A8A;
  font-weight: 500;
  font-size: 14px;
  margin: 0 16px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.postgrid-button i {
  margin-left: 6px;
}

.postgrid-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.postgrid-pagination .page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.postgrid-pagination .page-numbers li a,
.postgrid-pagination .page-numbers li span {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  color: #1f2937;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.postgrid-pagination .page-numbers li a:hover {
  background-color: #e5e7eb;
}

.postgrid-pagination .page-numbers .current {
  background-color: #1E3A8A;
  color: #fff;
  border-color: #1E3A8A;
}

#all-posts-grid-wrapper {
  position: relative;
}

.postgrid-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255,255,255,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.postgrid-spinner {
  border: 4px solid #d1d5db;
  border-top: 4px solid #1E3A8A;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.badge-noi-bat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #D97706;
  color: white;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 9999px;
  z-index: 1;
}
.postgrid-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center
}

.postgrid-filter button {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  color: #0A0A0A;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  border-radius: 9999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.postgrid-filter button:hover,
.postgrid-filter button.active {
  background-color: #1E3A8A;
  color: #FAFAFA;
  border-color: #1E3A8A;
}

