.blocksy-post-grid {
  width: 100%;
  max-width: 85%;
  margin: 3rem auto 0rem auto;
  padding: 3rem 5rem;
  background: #1e1e1e;
  color: #fff;
  border-radius: 40px;
}

/* Responsive styles for blocksy-post-grid */
@media screen and (max-width: 768px) {
  .blocksy-post-grid {
    padding: 2rem;
    border-radius: 12px;
  }
}

@media screen and (max-width: 480px) {
  .blocksy-post-grid {
    padding: 2rem 0rem;
  }
}

.blocksy-post-grid-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: flex-start;
  padding: 0 1rem;
}

.filter-btn {
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

.filter-btn:hover,
.filter-btn.active {
  background: #ccec41;
  border-radius: 10px;
  padding: 0px 10px;
  text-align: center;
  color: #000 !important;
}

.blocksy-post-grid-items {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

@media (max-width: 1024px) {
  .blocksy-post-grid-items {
    --grid-columns: 2;
  }
}

@media (max-width: 767px) {
  .blocksy-post-grid-items {
    --grid-columns: 1;
  }
}

.grid-item {
  background: #2d2d2d;
  border-radius: 13px;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

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

.post-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: 13px;
}

.post-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}

.post-content {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-category {
  display: inline-block;
  padding: 0px 10px;
  background: #ccec41;
  color: #000 !important;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.post-title {
  margin: 0 0 1rem;
  font-size: 57px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(57px * 2); /* Two lines of text based on font-size */
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  color: #ccec41;
}

.post-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-date {
  color: rgb(114, 114, 114) !important;
}

.read-more {
  display: inline-block;
  padding: 5px 10px;
  background: #ccec41;
  color: #000 !important;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-more:hover {
  transform: translateX(5px);
}

.post-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #888;
  font-size: 14px;
}

/* Pagination styles */
.blocksy-post-grid-pagination {
  margin-top: 2rem;
  text-align: center;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.blocksy-post-grid-pagination .page-numbers {
  cursor: pointer;
  color: rgb(67, 67, 67) !important;
  margin-left: 10px;
  font-size: 20px !important;
}

.blocksy-post-grid-pagination .page-numbers.current {
  color: #ccec41 !important;
  cursor: not-allowed;
}
.blocksy-post-grid-pagination .page-numbers:hover {
  color: #ccec41 !important;
}
