 /* Main Container */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto;
}

/* Box Style */
.box {
    background: #ffffff;
      border: 1.5px solid #ccc;
      padding: 12px 20px;
      margin: 10px;
    min-width: 220px;
    height: 100px;   /* tetap semua kotak sama tinggi */
    display: flex;
    flex-direction: column;
    justify-content: center;
    

    border-radius: 8px;
    padding: 12px 18px;
    min-width: 220px;
    max-height: 120px;
    max-width: 90%;      /* jangan lebih dari screen */
    box-sizing: border-box;
    width: fit-content;
      text-align: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* soft shadow */
      transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.box:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* hover effect */
    }
    

/* Title */
.title {
    font-weight: bold;
      text-transform: uppercase;
      margin-bottom: 5px;
      color: #00509d;
}

/* Connector (Vertical) */
.connector {
    width: 2px;
      height: 20px;
      background: #333;
      margin: 0 auto;
}

/* Level */
.level {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
/* Engineer with child */
.has-children {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sub-connector {
    width: 2px;
    height: 20px;
    background: #999;
    margin: 5px 0;
}

.sub-level {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .level {
        flex-direction: column;     /* semua box stack vertikal */
        gap: 15px;
        align-items: center;        /* center kotak */
    }

    .sub-level {
        flex-direction: column;     /* technician bawah Engineer tetap bawah */
        gap: 10px;
    }

    .connector,
    .sub-connector {
        height: 20px;               /* connector lebih pendek */
        margin: 5px 0;
    }
}