.evolua-posts-section {
  width: 100%;
}

.evolua-posts-section__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.evolua-posts-section__filter {
  appearance: none;
  align-items: center;
  border: 1px solid var(--e-global-color-accent);
  border-radius: 100vw;
  background: #ffffff !important;
  color: var(--e-global-color-accent) !important;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 1;
  min-height: 32px;
  padding: 8px 18px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.evolua-posts-section__filter:hover,
.evolua-posts-section__filter.is-active {
  background: var(--e-global-color-accent) !important;
  color: #ffffff !important;
}

.evolua-posts-section__filter .evolua-post-category-icon,
.evolua-posts-section__filter img,
.evolua-posts-section__filter svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.evolua-posts-section__filter svg,
.evolua-posts-section__filter svg * {
  fill: currentColor;
}

.evolua-posts-section__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.evolua-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4e4df;
  border-radius: 16px;
  color: #64645f;
  min-width: 0;
}

.evolua-post-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e7eee9;
  overflow: hidden;
}

.evolua-post-card__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.evolua-post-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 100, 50, 0.16), rgba(83, 158, 117, 0.18)), #eef3ef;
}

.evolua-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 14px 16px;
}

.evolua-post-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.evolua-post-card__category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 22px;
  padding: 4px 16px;
  border: 1px solid var(--e-global-color-accent);
  border-radius: 100vw;
  color: var(--e-global-color-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  min-height: 28px;
}

.evolua-post-card__category .evolua-post-category-icon,
.evolua-post-card__category img,
.evolua-post-card__category svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.evolua-post-card__title {
  margin: 0 0 8px;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.25;
}

.evolua-post-card__title a {
  color: #64645f;
  text-decoration: none;
}

.evolua-post-card__title a:hover {
  color: var(--e-global-color-accent);
}

.evolua-post-card__date {
  color: var(--e-global-color-accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.evolua-post-card__excerpt {
  margin: 0 0 14px;
  color: #60605c;
  font-size: 14px;
  line-height: 1.4;
}

.evolua-post-card__read-more {
  margin-top: auto;
  color: var(--e-global-color-accent) !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: underline !important;
}

.evolua-posts-section.is-replacing .evolua-posts-section__grid {
  display: none;
}

.evolua-posts-section__empty {
  margin: 24px 0 0;
  color: #60605c;
  text-align: center;
}

.evolua-posts-section__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.evolua-posts-section__load-more {
  appearance: none;
  min-height: 36px;
  padding: 10px 22px;
  border: 0;
  border-radius: 100vw;
  background: var(--e-global-color-accent);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.evolua-posts-section__load-more:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .evolua-posts-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .evolua-posts-section__filters {
    justify-content: flex-start;
  }

  .evolua-posts-section__grid {
    grid-template-columns: 1fr;
  }
}
