#tree-vertical {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 20px;
}

/* CHA */
.parent-wrap {
  text-align: center;
  position: relative;
}

/* CARD ROW (vợ chồng) */
.card-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* CARD */
.node-card {
  min-width: 180px;
  padding: 10px;
}

.spouse-card {
  min-width: 160px;
  padding: 10px;
  font-size: 14px;
  background: #f8f9fa;
  border: 1px dashed #ccc;
}

/* CONNECTOR */
.connector {
  margin-top: 10px;
}

/* LINES */
.line-vertical {
  width: 2px;
  height: 20px;
  background: #999;
  margin: auto;
}

.line-horizontal {
  height: 2px;
  background: #999;
  margin: 0 auto;
  width: 100%;
}

/* CHILDREN */
.children-box {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 10px;
}

.child-wrap {
  text-align: center;
}

/* MOBILE */
@media (max-width: 768px) {
  .children-box {
    gap: 20px;
    flex-wrap: wrap;
  }
}
