/* ==============================================
   Hdev Stat Box
   ============================================== */

.hdev-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 24px;
  border: 1px solid var(--hdev-orange-line);
  border-radius: var(--hdev-radius);
  background-color: #fff;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Chỉ cao bằng cột khi ô đứng một mình trong cột (row "Equal" → các ô cao đều).
   Nhiều ô chung 1 cột thì cao tự nhiên, cách nhau 20px. */
.hdev-stat:only-child {
  height: 100%;
}

.hdev-stat + .hdev-stat {
  margin-top: 20px;
}

.hdev-stat:hover {
  box-shadow: var(--hdev-shadow);
  transform: translateY(-2px);
}

.hdev-stat__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  font-size: 26px;
}

.hdev-stat__icon img.hdev-icon {
  width: 28px;
  height: 28px;
}

.hdev-stat__number {
  color: var(--hdev-orange);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
}

.hdev-stat__label {
  margin-top: 8px;
  color: var(--hdev-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.hdev-stat__sub {
  margin-top: 6px;
  color: var(--hdev-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* "|" = điểm ngắt ưu tiên: mỗi cụm là 1 khối inline,
   chỉ xuống dòng giữa các cụm (cụm quá dài mới tự ngắt bên trong). */
.hdev-stat__seg {
  display: inline-block;
  max-width: 100%;
}

@media (max-width: 549px) {
  .hdev-stat {
    padding: 20px 12px 18px;
  }

  .hdev-stat__icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .hdev-stat__number {
    font-size: 32px;
  }

  .hdev-stat__label {
    font-size: 14px;
  }

  .hdev-stat__sub {
    font-size: 12px;
  }
}
