.hello-post-grid-filter {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hello-post-grid-filter__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hello-post-grid-filter__controls button {
  appearance: none;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0.4rem 1.2rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.hello-post-grid-filter__controls button.is-active {
  background: #f0c02a;
  color: #000;
  border-color: #f0c02a;
}

.hello-post-grid-filter__grid {
  display: grid;
  gap: 1.5rem;
}

.hello-post-grid-filter[data-columns="2"] .hello-post-grid-filter__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hello-post-grid-filter[data-columns="3"] .hello-post-grid-filter__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hello-post-grid-filter[data-columns="4"] .hello-post-grid-filter__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .hello-post-grid-filter[data-columns] .hello-post-grid-filter__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hello-post-grid-filter[data-columns] .hello-post-grid-filter__grid {
    grid-template-columns: 1fr;
  }
}

.hello-post-grid-filter__card {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.hello-post-grid-filter__card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.hello-post-grid-filter__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #01aeef;
}

.hello-post-grid-filter__thumb .elementor-post__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background-color: #f0c02a;
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
}

.hello-post-grid-filter__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hello-post-grid-filter__body {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hello-post-grid-filter__date {
  font-size: 0.8rem;
  color: #6d7280;
}

.hello-post-grid-filter__title {
  color: inherit;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 500;
}

.hello-post-grid-filter__excerpt {
  margin: 0;
  color: #4a4f5a;
  line-height: 1.6;
}

.hello-post-grid-filter__link {
  color: inherit;
  font-weight: 600;
  margin-top: auto;
  text-decoration: underline;
}

.hello-post-grid-filter__empty {
  margin: 0;
  color: #6d7280;
}

.hello-post-grid-filter__loader {
  display: none;
  justify-content: center;
  padding-top: 0.75rem;
}

.hello-post-grid-filter__spinner {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: #01aeef;
  animation: hello-post-grid-filter-spin 0.8s linear infinite;
}

.hello-post-grid-filter[data-loading="1"] .hello-post-grid-filter__loader {
  display: flex;
}

@keyframes hello-post-grid-filter-spin {
  to {
    transform: rotate(360deg);
  }
}

.hello-post-grid-filter__pagination {
  display: flex;
  justify-content: center;
}

.hello-post-grid-filter__pagination-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.hello-post-grid-filter__pagination-item a,
.hello-post-grid-filter__pagination-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.875rem;
}

.hello-post-grid-filter__pagination-item .current {
  background: currentColor;
  color: #fff;
}
