
/* Filters */
.hpm-tg-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 0 0 14px;
}
.hpm-tg-filter{
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}
.hpm-tg-filter.is-active{
  background: rgba(0,0,0,.10);
}

/* Base grid */
.hpm-tg-wrap{
  display:grid;
  grid-template-columns: repeat(var(--hpm-cols, 3), minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* Responsive */
@media (max-width: 1024px){
  .hpm-tg-wrap{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .hpm-tg-wrap{ grid-template-columns: 1fr; }
}

/* Cards */
.hpm-tg-card{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  display:flex;
  flex-direction: column;
}
.hpm-tg-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}
.hpm-tg-img img{ width:100%; height:auto; display:block; }
.hpm-tg-text{ padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.hpm-tg-text p{ margin: 0 0 10px; }
.hpm-tg-text p:last-child{ margin-bottom: 0; }

.hpm-tg-actions{ margin-top:auto; padding: 12px 14px 14px; }
.hpm-tg-wa{
  display:inline-flex; align-items:center; gap: 8px;
  text-decoration:none; font-weight: 600;
  border-radius: 12px; padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
}
.hpm-tg-wa:hover{ background: rgba(0,0,0,.06); }

/* Hide cards when filtered out */
.hpm-tg-card.is-hidden{ display:none !important; }
