/* ============================
   صفحه وبلاگ blog
   ============================ */
/* روپوش اسپینر روی کانتینر */
.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* خود اسپینر */
.blog-overlay .blog-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* پست‌ها */
body.blog .elementor-loop-container .e-loop-item {
    display: none;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ظاهر شدن */
body.blog .elementor-loop-container .e-loop-item.is-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* محو شدن */
body.blog .elementor-loop-container .e-loop-item.is-hiding {
    opacity: 0;
    transform: translateY(40px);
}

search.e-filter {
  padding: 25px;
}

button.e-filter-item {
  box-shadow: inset 0px 7px 14px 4px var(--color-shadow) !important;
  transition: all 0.8s ease;
}

button.e-filter-item[aria-pressed="true"] {
  background-color: var(--color-secondary) !important;
  color: var(--color-primary) !important;
  transition: all 0.3s ease;
}

button.e-filter-item[aria-pressed="true"]:hover {
  background-color: var(--color-accent) !important; /* تیره‌تر هنگام hover */
}


button.e-filter-item:hover {
  transform: translateY(-5px);
}

/* ------------------------
   دسته‌بندی‌ها
------------------------ */
.cs-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.cs-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--color-primary) !important;
  border-radius: 999px;
  padding: .6rem .9rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.cs-cat-list li a:hover {
  color: var(--color-secondary) !important;
  background-color: var(--color-background-light) !important;
  box-shadow: inset 0px -4px 8px 2px var(--color-shadow) !important;
}

.cs-cat-count {
  font-size: .85em;
  opacity: .85
}