/* Family Tree CSS structure */
.bloodline-tree-b3071e3e-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.bloodline-tree-b3071e3e * {
    margin: 0;
    padding: 0;
}

.bloodline-tree-b3071e3e ul {
    padding-top: 20px; 
    position: relative;
    display: flex;
    justify-content: center;
    transition: all 0.5s;
}

.bloodline-tree-b3071e3e li {
    float: left; 
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 10px 0 10px;
    transition: all 0.5s;
}

/* We will use ::before and ::after to draw the connectors */
.bloodline-tree-b3071e3e li::before, .bloodline-tree-b3071e3e li::after {
    content: '';
    position: absolute; 
    top: 0; 
    right: 50%;
    border-top: 2px solid #5a378c;
    width: 50%; 
    height: 20px;
}

.bloodline-tree-b3071e3e li::after {
    right: auto; 
    left: 50%;
    border-left: 2px solid #5a378c;
}

/* We need to remove left-right connectors from elements without any siblings */
.bloodline-tree-b3071e3e li:only-child::after, .bloodline-tree-b3071e3e li:only-child::before {
    display: none;
}

/* Remove space from the top of single children */
.bloodline-tree-b3071e3e li:only-child {
    padding-top: 0;
}

/* Remove left connector from first child and right connector from last child */
.bloodline-tree-b3071e3e li:first-child::before, .bloodline-tree-b3071e3e li:last-child::after {
    border: 0 none;
}

/* Adding back the vertical connector to the last nodes */
.bloodline-tree-b3071e3e li:last-child::before {
    border-right: 2px solid #5a378c;
    border-radius: 0 5px 0 0;
}
.bloodline-tree-b3071e3e li:first-child::after {
    border-radius: 5px 0 0 0;
}

/* Time to add downward connectors from parents */
.bloodline-tree-b3071e3e ul ul::before {
    content: '';
    position: absolute; 
    top: 0; 
    left: 50%;
    border-left: 2px solid #5a378c;
    width: 0; 
    height: 20px;
}

.bloodline-node-b3071e3e {
    border: 2px solid #5a378c;
    padding: 12px 18px;
    text-decoration: none;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    display: inline-block;
    border-radius: 8px;
    transition: all 0.3s;
    background: #150d22;
    min-width: 140px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.bloodline-node-b3071e3e strong {
    color: #e5d5ff;
}

.bloodline-node-b3071e3e:hover {
    background: #23163a;
    border-color: #8c53ff;
    box-shadow: 0 6px 15px rgba(140,83,255,0.3);
    transform: translateY(-2px);
}