/* ============================================
   PROFIL SEKOLAH STYLES - SMK CIJANGKAR
   ============================================ */

.profil-section {
    padding: 50px 0;
}

.profil-section.alt {
    background: var(--surface);
}

.profil-content {
    max-width: 800px;
    margin: 0 auto;
}

.profil-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.profil-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

/* ============================================
   SEJARAH PAGE STYLES
   ============================================ */

.sejarah-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.sejarah-hero-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(88, 152, 25, 0.25);
}

.sejarah-hero h2 {
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
}

.sejarah-hero p {
    color: var(--text-light);
    line-height: 1.8;
}

.sejarah-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.sejarah-stat {
    background: var(--surface);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--secondary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sejarah-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sejarah-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.sejarah-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.sejarah-section-title {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

.sejarah-section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0.5rem auto 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.lab-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lab-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.lab-icon {
    width: 44px;
    height: 44px;
    background: var(--surface-muted);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.lab-card h4 {
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.lab-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Sejarah Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-photo {
    width: 100%;
    max-width: 400px;
    height: 220px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--secondary);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.timeline-year {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Profil hero image */
.profil-hero-image {
    width: 100%;
    max-width: 800px;
    height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
}

.profil-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Visi Misi Full */
.visimisi-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.visimisi-block {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.visimisi-block h3 {
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary);
}

/* Visi Misi Cards (halaman profil - disusun vertikal: visi di atas, misi di bawah) */
.visimisi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

.visimisi-card {
    position: relative;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    padding: 2rem 2.25rem 2.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.visimisi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.visimisi-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.visimisi-card h3 {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.visimisi-card h3 svg {
    width: 42px;
    height: 42px;
    padding: 10px;
    flex: none;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(88, 152, 25, 0.25);
}

.visimisi-card > p {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.85;
    text-align: justify;
}

.visimisi-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.visimisi-card ul li {
    position: relative;
    padding: 0.7rem 0 0.7rem 2.1rem;
    color: var(--text-light);
    line-height: 1.6;
    border-bottom: 1px dashed var(--gray-100);
}

.visimisi-card ul li:last-child {
    border-bottom: none;
}

.visimisi-card ul li::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 1.05rem;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 4px;
    transform: rotate(45deg);
}

/* Struktur Organisasi */
.struktur-chart {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    text-align: center;
}

.struktur-node {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Data Guru */
.guru-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guru-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    position: relative;
}

.scroll-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.scroll-btn:hover {
    background: var(--accent);
}

@media (max-width: 768px) {
    .scroll-btn {
        display: none;
    }
}

.guru-scroll-wrapper.active {
    cursor: grabbing;
}

.guru-scroll-wrapper::-webkit-scrollbar {
    height: 10px;
}

.guru-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--background-alt);
    border-radius: 5px;
}

.guru-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

.guru-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.guru-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: flex-start;
    width: max-content;
}

.tenaga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    justify-items: stretch;
}

.tenaga-grid .guru-card {
    flex: 0 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .tenaga-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }
}

.guru-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    flex: 0 0 160px;
    width: 160px;
}

.guru-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.guru-photo {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--background-alt), var(--background));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    overflow: hidden;
}

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

.guru-info {
    padding: 1rem;
}

.guru-info h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

.guru-info p {
    color: var(--text-light);
    font-size: 0.65rem;
    margin-bottom: 0;
    line-height: 1.2;
    word-break: break-word;
}

@media (max-width: 768px) {
    .guru-info h4 {
        font-size: 0.85rem;
    }

    .guru-info p {
        font-size: 0.75rem;
    }
}

/* Fasilitas */
.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.fasilitas-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.fasilitas-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.fasilitas-photo {
    height: 160px;
    overflow: hidden;
}

.fasilitas-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.fasilitas-card:hover .fasilitas-photo img {
    transform: scale(1.05);
}

.fasilitas-image {
    height: 60px;
    background: var(--background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.fasilitas-info {
    padding: 1.25rem;
}

.fasilitas-info h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Prestasi */
.prestasi-list {
    display: grid;
    gap: 1rem;
}

.prestasi-item {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
    overflow: hidden;
}

.prestasi-photo {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.prestasi-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.prestasi-item .medal {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--highlight), var(--highlight-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.prestasi-item h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.prestasi-item .year {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .visimisi-full,
    .guru-grid,
    .fasilitas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profil-section {
        padding: 50px 0;
    }

    .sejarah-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .sejarah-stat-number {
        font-size: 1.6rem;
    }

    .lab-grid {
        grid-template-columns: 1fr;
    }

    .visimisi-full,
    .guru-grid,
    .fasilitas-grid {
        grid-template-columns: 1fr;
    }

    .struktur-chart {
        padding: 1.5rem;
    }

    .prestasi-item {
        flex-direction: column;
        text-align: center;
    }
}


/* Struktur Organisasi - Tree */
.profil-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--text-light);
}

.org-tree {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.org-tree ul {
    position: relative;
    display: flex;
    justify-content: center;
    list-style: none;
    padding-top: 20px;
}

.org-tree li {
    position: relative;
    float: left;
    text-align: center;
    padding: 20px 12px 0;
}

.org-tree li::before,
.org-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    width: 50%;
    height: 20px;
    border-top: 2px solid var(--secondary);
}

.org-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid var(--secondary);
}

.org-tree li::before {
    border-right: 2px solid var(--secondary);
}

.org-tree li:only-child::before,
.org-tree li:only-child::after {
    display: none;
}

.org-tree li:only-child {
    padding-top: 0;
}

.org-tree li:first-child::before,
.org-tree li:last-child::after {
    border: none;
}

.org-tree li:last-child::before {
    border-right: 2px solid var(--secondary);
    border-radius: 0 6px 0 0;
}

.org-tree li:first-child::after {
    border-radius: 6px 0 0 0;
}

.org-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 20px;
    border-left: 2px solid var(--secondary);
    transform: translateX(-50%);
}

.org-node {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    max-width: 240px;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
    transition: var(--transition);
}

/* Flat member list (mis. anggota Tata Usaha) */
.org-member-list {
    list-style: none;
    margin: 0.75rem auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: max-content;
    max-width: 100%;
    text-align: left;
}

.org-member-list li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    min-width: 280px;
    max-width: 420px;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--secondary);
    box-shadow: var(--shadow);
    font-size: 0.85rem;
}

.org-member-list .member-no {
    flex: none;
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    padding: 0.1rem 0.35rem;
    font-size: 0.75rem;
}

.org-member-list .member-role {
    font-weight: 600;
    color: var(--text-light);
}

.org-member-list .member-name {
    color: var(--primary);
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .org-member-list {
        width: 100%;
    }

    .org-member-list li {
        min-width: 0;
        flex-wrap: wrap;
    }

    .org-member-list .member-name {
        margin-left: 0;
        white-space: normal;
    }
}

.org-node:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.org-node.root {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-top: none;
    margin-bottom: 2rem;
}

.org-node.root .org-role,
.org-node.root .org-name {
    color: var(--white);
}

.org-node.root .org-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.org-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--background-alt), var(--background));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.org-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.org-name {
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.4;
}

/* Multi-member names inside a node */
.org-members {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.4rem;
    width: 100%;
}

.org-member {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
    padding: 0.2rem 0.4rem;
    background: var(--surface-muted);
    border-radius: 0.35rem;
    border: 1px solid var(--border-soft);
}

.struktur-keterangan {
    max-width: 700px;
    margin: 2.5rem auto 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .org-tree {
        padding: 1rem 0;
    }

    .org-tree ul {
        flex-direction: column;
        align-items: center;
        padding-top: 0;
    }

    .org-tree li {
        padding: 12px 0 0;
        width: 100%;
        max-width: 320px;
    }

    .org-tree li::before,
    .org-tree li::after,
    .org-tree ul ul::before {
        display: none;
    }

    .org-node {
        min-width: unset;
        width: 100%;
    }

    .org-node.root {
        margin-bottom: 1rem;
    }
}

/* =========================================
   STRUKTUR ORGANISASI - BAGAN (CHART)
   ========================================= */
.mobile-hint {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 25px;
    text-align: center;
    background: #16a34a;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.3);
    letter-spacing: 0.5px;
}

.chart-wrapper {
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    background-color: #ffffff;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    scrollbar-width: thin;
    scrollbar-color: #86efac #f0fdf4;
    -webkit-overflow-scrolling: touch;
}

.chart-container {
    position: relative;
    width: 1200px;
    height: 1200px;
    margin: 0 auto;
}

.chart-container .box {
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #bbf7d0;
    border-top: 4px solid #22c55e;
    border-radius: 12px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-container .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(22, 163, 74, 0.15), 0 10px 10px -5px rgba(22, 163, 74, 0.05);
    border-top-color: #16a34a;
}

.chart-container .box-header {
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 12px 10px 4px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.chart-container .box-content {
    color: #064e3b;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px 12px 10px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    word-break: break-word;
}

.chart-container .tu-table {
    position: absolute;
    left: 660px;
    top: 120px;
    width: 400px;
    background-color: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #bbf7d0;
    border-top: 4px solid #22c55e;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.chart-container .tu-table:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(22, 163, 74, 0.15);
}

.chart-container .tu-table th,
.chart-container .tu-table td {
    padding: 6px 12px;
    font-size: 11.5px;
    text-align: left;
    border-bottom: 1px solid #dcfce7;
}

.chart-container .tu-table tr:last-child td {
    border-bottom: none;
}

.chart-container .tu-table th {
    text-align: center;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #ffffff;
}

.chart-container .tu-table td:nth-child(1) {
    color: #166534;
    font-weight: 500;
}

.chart-container .tu-table td:nth-child(2) {
    text-align: center;
    font-weight: 700;
    color: #022c22;
    text-transform: uppercase;
    line-height: 1.3;
}

.chart-container .tu-table tr:nth-child(even) td {
    background-color: #f0fdf4;
}

.chart-container .line {
    position: absolute;
    background-color: #22c55e;
    z-index: 1;
}

.chart-container .line-dashed {
    position: absolute;
    border-color: #16a34a;
    border-style: dashed;
    border-width: 0;
    z-index: 1;
}

/* POSISI KOTAK (BOX POSITIONS) */
.chart-container .yayasan { left: 30px; top: 0; width: 310px; height: 100px; }
.chart-container .kepsek  { left: 445px; top: 0; width: 310px; height: 100px; border-top-color: #047857; }
.chart-container .komite  { left: 860px; top: 0; width: 310px; height: 100px; }

.chart-container .wakasek-1 { left: 35px; top: 470px; width: 275px; height: 115px; }
.chart-container .wakasek-2 { left: 320px; top: 470px; width: 275px; height: 115px; }
.chart-container .wakasek-3 { left: 605px; top: 470px; width: 275px; height: 115px; }
.chart-container .wakasek-4 { left: 890px; top: 470px; width: 275px; height: 115px; }

.chart-container .pembina {
    left: 430px;
    top: 620px;
    width: 160px;
    height: 72px;
    padding: 0;
}
.chart-container .pembina-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #166534;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}
.chart-container .pembina-inner:first-child {
    border-bottom: 1px solid #bbf7d0;
}

.chart-container .kaprog-1 { left: 35px; top: 745px; width: 275px; height: 110px; border-top-color: #10b981; }
.chart-container .kaprog-2 { left: 320px; top: 745px; width: 275px; height: 110px; border-top-color: #10b981; }
.chart-container .kaprog-3 { left: 605px; top: 745px; width: 275px; height: 110px; border-top-color: #10b981; }
.chart-container .kaprog-4 { left: 890px; top: 745px; width: 275px; height: 110px; border-top-color: #10b981; }

.chart-container .bpbk { left: 140px; top: 880px; width: 280px; height: 115px; }
.chart-container .pustakawan { left: 740px; top: 880px; width: 280px; height: 115px; }

.chart-container .box-label {
    background-color: #16a34a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.3);
}
.chart-container .guruwali { left: 420px; top: 1030px; width: 140px; height: 55px; justify-content: center; }
.chart-container .walikelas { left: 640px; top: 1030px; width: 140px; height: 55px; justify-content: center; }
.chart-container .murid {
    left: 450px;
    top: 1120px;
    width: 300px;
    height: 60px;
    justify-content: center;
    background-color: #064e3b;
    color: #ffffff;
}

/* GARIS PENGHUBUNG KONEKSI (LINES) */
.chart-container .l-yayasan-kepsek { left: 340px; top: 50px; width: 105px; height: 2px; }
.chart-container .l-kepsek-komite { left: 755px; top: 50px; width: 105px; border-top: 2px dashed #16a34a; }

.chart-container .main-spine { left: 600px; top: 100px; width: 2px; height: 1020px; }

.chart-container .l-tu { left: 602px; top: 200px; width: 58px; height: 2px; }

.chart-container .l-wakasek-h { left: 172px; top: 455px; width: 855px; height: 2px; }
.chart-container .l-w-stem-1 { left: 172px; top: 455px; width: 2px; height: 15px; }
.chart-container .l-w-stem-2 { left: 457px; top: 455px; width: 2px; height: 15px; }
.chart-container .l-w-stem-3 { left: 742px; top: 455px; width: 2px; height: 15px; }
.chart-container .l-w-stem-4 { left: 1027px; top: 455px; width: 2px; height: 15px; }

.chart-container .l-pembina { left: 590px; top: 656px; width: 10px; border-top: 2px dashed #16a34a; }

.chart-container .l-kaprog-h { left: 172px; top: 730px; width: 855px; height: 2px; }
.chart-container .l-k-stem-1 { left: 172px; top: 730px; width: 2px; height: 15px; }
.chart-container .l-k-stem-2 { left: 457px; top: 730px; width: 2px; height: 15px; }
.chart-container .l-k-stem-3 { left: 742px; top: 730px; width: 2px; height: 15px; }
.chart-container .l-k-stem-4 { left: 1027px; top: 730px; width: 2px; height: 15px; }

.chart-container .l-bpbk { left: 420px; top: 937px; width: 180px; height: 2px; }
.chart-container .l-pustakawan { left: 600px; top: 937px; width: 140px; height: 2px; }

.chart-container .l-wali { left: 560px; top: 1057px; width: 80px; border-top: 2px dashed #16a34a; }

.chart-container .l-komite-right { left: 1170px; top: 50px; width: 24px; border-top: 2px dashed #16a34a; }
.chart-container .l-komite-down { left: 1192px; top: 50px; height: 1100px; border-right: 2px dashed #16a34a; }
.chart-container .l-komite-bottom { left: 750px; top: 1150px; width: 442px; border-top: 2px dashed #16a34a; }

.struktur-kosong {
    padding: 3rem;
    text-align: center;
    color: var(--text-light);
    background: #ffffff;
    border: 1px dashed var(--border-soft);
    border-radius: 1rem;
}

@media (max-width: 768px) {
    .chart-wrapper {
        padding: 24px 12px;
    }
}
