.struktur-page {
    padding-top: 100px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.page-title-container {
    background: #2b2b2b;
    padding: 10px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border: 1px solid #888;
}

.page-title {
    font-family: var(--font-orbitron);
    font-size: 20px;
    color: white;
    text-shadow: 1px 1px 2px black;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

.tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.profile-card {
    background:#2b2b2b;
    width: 280px;
    padding: 25px 15px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border: 2px solid #333;
    position: relative;
    z-index: 2; /* Agar kartu di atas garis */
    transition: transform 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: var(--merah-solid);
}

.img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #2b2b2b;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid transparent;
}

.img-wrapper.icon-mode {
    border: none;
}
.img-wrapper.icon-mode i {
    font-size: 40px;
    color: black;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-text .jabatan {
    font-family: var(--font-orbitron);
    color: var(--merah-solid);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-text .nama {
    font-family: var(--font-exo);
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.card-text .gelar {
    font-family: var(--font-exo);
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.profile-card.small {
    width: 240px;
    padding: 20px 10px;
}
.profile-card.small .jabatan { font-size: 14px; }

.node-level {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row-level {
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
    margin-top: 10px;
}

.wrap-row {
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.line-vertical {
    width: 2px;
    height: 30px;
    background-color: black;
}

.line-vertical.long {
    height: 50px;
}
/* Container utama untuk garis cabang 3 */
.branch-connector-3 {
    width: 600px; /* Lebar total garis (sesuaikan agar pas di tengah kartu kiri & kanan) */
    height: 20px;
    border-top: 2px solid black;   /* 1. Garis Horizontal Atas */
    border-left: 2px solid black;  /* 2. Garis Kaki Kiri */
    border-right: 2px solid black; /* 3. Garis Kaki Kanan */
    margin: 0 auto; /* Menengahkan garis */
    position: relative; /* Penting agar kita bisa taruh garis tengah */
    margin-bottom: -10px; /* Tarik sedikit ke bawah mendekati kartu */
}

/* Membuat garis tengah (Kaki Tengah) */
.branch-connector-3::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%; /* Taruh tepat di tengah (50%) */
    width: 2px; /* Ketebalan garis */
    height: 100%; /* Tinggi mengikuti container */
    background-color: black; /* Warna garis */
    transform: translateX(-50%); /* Geser dikit biar benar-benar center */
}

.branch-connector {
    width: 300px;
    height: 20px;
    border-top: 2px solid black;
    border-left: 2px solid black;
    border-right: 2px solid black;
    margin-bottom: -10px;
}

@media (max-width: 768px) {
    .branch-connector { display: none; }
    .row-level { flex-direction: column; align-items: center; }
    .line-vertical { height: 20px; }
}