.husoc-cnt {
  font-family: 'Prompt', sans-serif;
  color: #2b2b2e;
}
.husoc-cnt * { box-sizing: border-box; }

.husoc-cnt__title {
  font-size: 15px;
  font-weight: 600;
  color: #c2550a;
  margin-bottom: 10px;
}

.husoc-cnt__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;   /* center = จัดกลาง, flex-end = ชิดขวา */
  gap: 10px;
}

.husoc-cnt__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.husoc-cnt__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #ffb547, #f07a1a);
}
.husoc-cnt__icon svg { display: block; width: 20px; height: 20px; max-width: 100%; flex: 0 0 auto; }

.husoc-cnt__num {
  display: block;
  font-weight: 600;
  line-height: 1.2;
  color: #c2550a;
  font-variant-numeric: tabular-nums;
}
.husoc-cnt__label {
  display: block;
  color: #6b6b70;
  line-height: 1.4;
}

/* แบบการ์ด */
.husoc-cnt--card .husoc-cnt__item {
  flex: 0 0 auto;                /* ไม่ยืดเต็มหน้า ขนาดพอดีตัวเลข */
  background: #fff;
  border: 1px solid #f2ebe4;
  border-radius: 12px;
  padding: 9px 14px;
  box-shadow: 0 1px 2px rgba(60, 30, 0, .05), 0 6px 14px rgba(60, 30, 0, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.husoc-cnt--card .husoc-cnt__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(60, 30, 0, .06), 0 14px 26px rgba(60, 30, 0, .12);
}
.husoc-cnt--card .husoc-cnt__icon { width: 34px; height: 34px; border-radius: 10px; }
.husoc-cnt--card .husoc-cnt__icon svg { width: 19px; height: 19px; }
.husoc-cnt--card .husoc-cnt__num { font-size: 17px; }
.husoc-cnt--card .husoc-cnt__label { font-size: 12px; }

/* แบบบรรทัดเดียว เหมาะกับท้ายเว็บ */
.husoc-cnt--inline .husoc-cnt__row { gap: 20px; }
.husoc-cnt--inline .husoc-cnt__item { gap: 8px; }
.husoc-cnt--inline .husoc-cnt__icon { width: 32px; height: 32px; border-radius: 9px; }
.husoc-cnt--inline .husoc-cnt__icon svg { width: 18px; height: 18px; }
.husoc-cnt--inline .husoc-cnt__num { font-size: 16px; display: inline; }
.husoc-cnt--inline .husoc-cnt__label { font-size: 13px; display: inline; margin-left: 4px; }

@media (max-width: 600px) {
  .husoc-cnt__row { gap: 8px; }
  .husoc-cnt--card .husoc-cnt__item { flex: 1 1 100%; }
}

/* ตำแหน่งการจัดวาง (ตั้งผ่าน align="center" หรือ align="right") */
.husoc-cnt--acenter .husoc-cnt__row { justify-content: center; }
.husoc-cnt--aright  .husoc-cnt__row { justify-content: flex-end; }
.husoc-cnt--acenter .husoc-cnt__title { text-align: center; }
.husoc-cnt--aright  .husoc-cnt__title { text-align: right; }
