@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Serif+JP:wght@400;700&display=swap');

:root {
    --primary-color: #2a3d3c;
    /* Dark Teal dari background logo */
    --primary-hover: #1d2b2a;
    --accent-color: #f9a623;
    /* Orange/Kuning dari matahari */
    --accent-hover: #e09117;
    --dark-bg: #1d2b2a;
    --light-bg: #f9f9f9;
    --text-main: #3b4242;
    --text-muted: #64748b;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 50px rgba(42, 61, 60, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Serif JP', serif;
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Dropdown styles */
.nav-links .dropdown {
    position: relative;
    cursor: pointer;
}

.nav-links .dropdown-content {
    visibility: hidden;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 0.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-links .dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-links .dropdown-content a {
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    transition: background-color 0.2s, color 0.2s;
    text-align: left;
    opacity: 0;
    /* Untuk efek animasi masuk */
}

.nav-links .dropdown:hover .dropdown-content a {
    animation: dropdownItemAnim 0.3s ease forwards;
}

.nav-links .dropdown:hover .dropdown-content a:nth-child(1) {
    animation-delay: 0.05s;
}

.nav-links .dropdown:hover .dropdown-content a:nth-child(2) {
    animation-delay: 0.1s;
}

.nav-links .dropdown:hover .dropdown-content a:nth-child(3) {
    animation-delay: 0.15s;
}

.nav-links .dropdown:hover .dropdown-content a:nth-child(4) {
    animation-delay: 0.2s;
}

.nav-links .dropdown:hover .dropdown-content a:nth-child(5) {
    animation-delay: 0.25s;
}

@keyframes dropdownItemAnim {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links .dropdown-content a::after {
    display: none;
}

.nav-links .dropdown-content a:hover {
    color: var(--accent-color);
    background-color: rgba(249, 166, 35, 0.05);
    padding-left: 1.8rem;
    /* Memberikan efek geser saat di-hover */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--dark-bg);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    background: var(--dark-bg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.7);
    z-index: 1;
}

.premium-btn {
    transition: all 0.3s ease !important;
}

.premium-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--light-bg) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

.btn:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    border-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* Sections */
section {
    padding: 7rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--dark-bg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Cards & Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    top: 0;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

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

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-body {
    padding: 2rem;
    position: relative;
    background: var(--white);
    z-index: 1;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.card-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    display: block;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 4rem 5% 2rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-content h3 {
    color: var(--white);
}

.footer-content p,
.footer-content a {
    color: #999;
    font-size: 0.9rem;
}

.footer-content a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 166, 35, 0.2);
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    color: white;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Styles Overlay */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--dark-bg);
    color: white;
    padding: 2rem 1rem;
}

.admin-sidebar a {
    display: block;
    padding: 1rem;
    color: #ccc;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--primary-color);
    color: white;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background: var(--light-bg);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f4f4f4;
    font-weight: 600;
}

.admin-table tr:hover {
    background: #f9f9f9;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('https://images.unsplash.com/photo-1524413840807-0c3cb6fa808d?q=80&w=2070&auto=format&fit=crop') center/cover;
    padding: 8rem 5% 4rem;
    text-align: center;
    color: white;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 0;
}

/* Scrolled Navbar (Hamburger Menu for all devices) */
.navbar.scrolled {
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled .menu-toggle {
    display: flex;
}

.navbar.scrolled .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 15px 15px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.navbar.scrolled .nav-links li {
    margin: 0 !important;
    width: 100%;
    text-align: center;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.navbar.scrolled .nav-links li:last-child {
    border-bottom: none;
}

.navbar.scrolled .nav-links a {
    font-size: 1.05rem;
    display: block;
    padding: 0.8rem 0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--accent-color);
    background-color: rgba(249, 166, 35, 0.04);
    border-radius: 8px;
}

/* Dropdown styling for scrolled/mobile */
.navbar.scrolled .nav-links .dropdown-content {
    position: relative;
    top: 0;
    left: 0;
    transform: none !important;
    box-shadow: none;
    border: none;
    background-color: rgba(0, 0, 0, 0.02);
    min-width: 100%;
    border-radius: 8px;
    margin-top: 0.5rem;
    padding: 0;
    display: none;
    opacity: 1;
    visibility: visible;
}

.navbar.scrolled .nav-links .dropdown:hover .dropdown-content,
.navbar.scrolled .nav-links .dropdown.show-dropdown .dropdown-content {
    display: block;
}

.navbar.scrolled .nav-links .dropdown-content a {
    text-align: center;
    font-size: 0.95rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    opacity: 1;
    animation: none !important;
}

.navbar.scrolled .nav-links .dropdown-content a:hover {
    padding-left: 0;
}

.navbar.scrolled .nav-links .dropdown-content a:last-child {
    border-bottom: none;
}

/* Language Switcher Styling */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-left: 1rem;
}

.lang-switcher a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.2rem !important;
    transition: transform 0.2s ease !important;
}

.lang-switcher a:hover {
    transform: scale(1.15) !important;
    background-color: transparent !important;
}

.lang-switcher img {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    height: 24px;
    width: auto;
}

.navbar.scrolled .lang-switcher {
    margin-left: 0;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 5%;
        background-color: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 1.5rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        border-radius: 0 0 15px 15px;
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 999;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        margin: 0 !important;
        width: 100%;
        text-align: center;
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1.05rem;
        display: block;
        padding: 0.8rem 0;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .nav-links a:hover {
        color: var(--accent-color);
        background-color: rgba(249, 166, 35, 0.04);
        border-radius: 8px;
    }

    .nav-links .dropdown-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none !important;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.02);
        min-width: 100%;
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 0;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-links .dropdown:hover .dropdown-content,
    .nav-links .dropdown.show-dropdown .dropdown-content {
        display: block;
    }

    .nav-links .dropdown-content a {
        text-align: center;
        font-size: 0.95rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        opacity: 1;
        animation: none !important;
    }

    .nav-links .dropdown-content a:hover {
        padding-left: 0;
    }

    .nav-links .dropdown-content a:last-child {
        border-bottom: none;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        border-bottom: none;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

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

@media (max-width: 600px) {
    .grid-gallery {
        grid-template-columns: 1fr;
    }
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.floating-wa:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
}

/* Organization Chart (Teachers) */
.org-chart {
    display: block;
    /* Hindari flexbox agar tidak memotong sisi kiri saat di-scroll */
    text-align: center;
    overflow-x: auto;
    /* Izinkan swipe ke samping di mobile */
    overflow-y: hidden;
    padding-top: 1rem;
    padding-bottom: 2rem;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling di iOS */
}

.org-chart ul {
    transform-origin: top center;
    /* Untuk Javascript scaling */
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
    display: block;
    text-align: center;
    white-space: nowrap;
    /* Cegah elemen anak turun ke baris baru */
    list-style-type: none;
    padding-left: 0;
    margin: 0 auto;
    font-size: 0;
    /* Hilangkan gap whitespace dari inline-block */
}

.org-chart li {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 10px 0 10px;
    /* Kembalikan padding lebar */
    transition: all 0.5s;
    white-space: normal;
    /* Kembalikan sifat text-wrap untuk teks di dalam kartu */
    font-size: 1rem;
    /* Kembalikan font-size */
}

/* Garis horizontal dari elemen anak ke saudaranya */
.org-chart li::before,
.org-chart li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #c1272d;
    /* Warna garis merah sesuai referensi */
    width: 50%;
    height: 20px;
    z-index: 0;
    animation: drawLineHorizontal 1.5s ease-out forwards;
    transform-origin: right;
}

.org-chart li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #c1272d;
    /* Warna garis merah sesuai referensi */
    transform-origin: left;
}

/* Hapus garis untuk node yang sendirian */
.org-chart li:only-child::after,
.org-chart li:only-child::before {
    display: none;
}

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

/* Hapus garis lebihan dari ujung kiri dan kanan */
.org-chart li:first-child::before,
.org-chart li:last-child::after {
    border: 0 none;
}

/* Garis vertikal (sudut siku-siku seperti referensi, tanpa radius) */
.org-chart li:last-child::before {
    border-right: 2px solid #c1272d;
    border-radius: 0;
}

.org-chart li:first-child::after {
    border-radius: 0;
}

/* Garis vertikal ke bawah dari parent */
.org-chart ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #c1272d;
    /* Warna merah */
    width: 0;
    height: 20px;
    transform: translateX(-50%);
    animation: drawLineVertical 1s ease-out forwards;
}

@keyframes drawLineHorizontal {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes drawLineVertical {
    from {
        height: 0;
    }

    to {
        height: 20px;
    }
}

.org-card {
    background: transparent;
    border: none;
    box-shadow: none;
    display: inline-block;
    position: relative;
    text-align: center;
    z-index: 1;
    width: auto;
    min-width: 150px;
    cursor: pointer;
}

.org-card:hover {
    transform: translateY(-5px) scale(1.05);
    z-index: 10;
}

.org-card:hover .img-container {
    box-shadow: 0 0 15px rgba(249, 166, 35, 0.7);
    border-color: var(--accent-color);
}

.org-card:hover .role-badge {
    box-shadow: 0 0 15px rgba(249, 166, 35, 0.7);
}

.role-badge {
    background: linear-gradient(135deg, #f9a623, #e09117);
    color: #fff;
    font-weight: 700;
    padding: 6px 20px;
    /* Kembalikan ukuran */
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    position: relative;
    z-index: 2;
    margin-bottom: -15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    transition: var(--transition);
    max-width: 200px;
    line-height: 1.3;
}

.img-container {
    width: 130px;
    /* Diperbesar lagi sesuai permintaan */
    height: 130px;
    border-radius: 50%;
    border: 4px solid #f9a623;
    /* Border oranye agar menyerupai referensi */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background-color: #fff;
    /* Latar putih untuk cincin bagian dalam */
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-container img {
    width: 92%;
    /* Perkecil sedikit dari wadah (zoom-out) agar wajah tidak terpotong lengkungan pinggir */
    height: 92%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    /* Turunkan sedikit dari top agar berada di area lingkaran yang lebar */
}

.name-badge {
    background-color: #2a3d3c;
    color: #fff;
    font-weight: 600;
    padding: 6px 20px;
    /* Kembalikan ukuran besar */
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
    position: relative;
    z-index: 2;
    margin-top: -10px;
    /* Kurangi overlap agar foto tidak tertutup terlalu banyak */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 180px;
    line-height: 1.3;
}

/* Modal Staf CSS */
.staff-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    visibility: hidden;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.staff-modal-overlay.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.staff-modal {
    background: #fff;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    display: flex;
    overflow: hidden;
}

.staff-modal-left {
    flex: 0 0 45%;
    background: #f8f9fa;
    position: relative;
    min-height: 300px;
}

.staff-modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    border-radius: 0;
    margin: 0;
}

.staff-modal-right {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.staff-modal-overlay.active .staff-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.staff-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    line-height: 1;
    z-index: 10;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.staff-modal-close:hover {
    color: var(--primary-color);
    background: #fff;
}

.staff-modal h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
    font-size: 1.8rem;
}

.staff-modal .staff-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.staff-modal .staff-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .staff-modal {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
    .staff-modal-left {
        min-height: 250px;
    }
    .staff-modal-right {
        padding: 2rem 1.5rem;
    }
}

/* Memastikan scroll bisa dilakukan di mobile tanpa menampilkan scrollbar yang jelek */
.org-chart {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.org-chart::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Public Badge New */
.new-badge-public {
    background: #fbc02d;
    color: #000;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-left: 0.5rem;
    vertical-align: middle;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(251, 192, 45, 0.4);
    animation: pulse-badge-public 2s infinite;
}

@keyframes pulse-badge-public {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Glowing New Card (Shimmer / Arsiran Cahaya) */
.new-item-glow {
    position: relative;
    border: 1px solid #fbc02d !important;
    box-shadow: 0 0 15px rgba(251, 192, 45, 0.2) !important;
    overflow: hidden;
}

.new-item-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(251, 192, 45, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shimmer-light 3s infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes shimmer-light {
    0% { left: -150%; }
    50% { left: 200%; }
    100% { left: 200%; }
}