/* === Tag filter pills === */
  #ai_blog .site-tag-filter > div,
  #ai_blog .site-tag-filter > [id] { display: contents; }

  #ai_blog .ct-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  }
  #ai_blog .ct-tag-pill:hover,
  #ai_blog .ct-tag-pill.active {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
    border-color: var(--brand-primary) !important;
  }
  #ai_blog .ct-tag-pill:hover .ct-tag-pill-count,
  #ai_blog .ct-tag-pill.active .ct-tag-pill-count { color: rgba(255,255,255,0.85); }
  #ai_blog .ct-tag-pill-count {
    font-size: 11px;
    color: #9ca3af;
    transition: color 0.18s ease;
  }

  /* Dark-hero variant of the tag pill */
  #ai_blog .ct-tag-pill-dark {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
    color: #d1d5db;
  }
  #ai_blog .ct-tag-pill-dark:hover,
  #ai_blog .ct-tag-pill-dark.active {
    background-color: var(--ct-accent, #2dd4bf) !important;
    color: #0b0f1a !important;
    border-color: var(--ct-accent, #2dd4bf) !important;
  }

  /* === Sidebar cards === */
  #ai_blog .ct-sidebar-card {
    background: #fafafa;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 20px;
  }
  #ai_blog .ct-sidebar-card-head { margin-bottom: 14px; }
  #ai_blog .ct-sidebar-card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
  }
  #ai_blog .ct-sidebar-card-sub {
    font-size: 12px;
    color: #9ca3af;
  }
  #ai_blog .ct-sidebar-search:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
  }

  /* === Post-card hover (theme integration) === */
  #ai_blog .post-item { transition: transform 0.2s ease; }
  #ai_blog .post-item:hover { transform: translateY(-2px); }
  #ai_blog .post-item:hover .post-title { color: var(--brand-primary); }

  /* === Load-more button === */
  #ai_blog .ct-btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
