/* Header Wiki */
.wiki-hero-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wiki-header h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.wiki-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
}

.wiki-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin-top: 1.5rem;
}

/* Layout Utama Dua Kolom */
.wiki-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: flex-start;
}

/* Sidebar (Daftar Isi) */
.wiki-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: sticky;
    top: 6rem; 
    max-height: calc(100vh - 8rem); 
    overflow-y: auto;
}

.sidebar-sticky {
    position: sticky;
    top: 6rem; /* Jarak dari atas layar saat discroll */
}

.toc-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: var(--accent);
}

/* Konten Utama Wiki */
.wiki-main section {
    margin-bottom: 3rem;
}

.wiki-main h2 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wiki-main p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.wiki-main strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Responsif Mobile */
@media (max-width: 860px) {
    .wiki-layout {
        grid-template-columns: 1fr;
        /* Berubah jadi 1 kolom di HP */
        gap: 2rem;
    }
    
    /* Matikan efek sticky di HP */
    .wiki-sidebar {
        position: static;
        max-height: none;
    }
}
@media (max-width: 992px) {

    .wiki-sidebar,
    .sidebar-sticky {
        position: static !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        box-shadow: none !important;
    }
}
    
/* ==========================================================================
   RESPONSIVE STYLES FOR WIKI PAGE (MOBILE & TABLET OPTIMIZED)
   ========================================================================== */

/* Pastikan gambar tidak pernah melebihi lebar layar */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Pengaturan untuk Tablet & Mobile (Di bawah 992px) */
@media (max-width: 800px) {
    /* Mengubah layout utama wiki dari 2 kolom menjadi 1 kolom ke bawah */
    .wiki-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .wiki-sidebar {
        position: static !important;
        height: auto !important;
        overflow: visible !important;
        margin-bottom: 1.5rem;
    }

    .sidebar-sticky {
        position: static !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
    }
}

    /* Menyesuaikan ukuran judul masif agar pas di layar HP */
    .hero-title-massive {
        font-size: 2.5rem !important;
    }


    /* Padding kartu kaca (glass-panel) diperkecil agar pas di layar kecil */
    .glass-panel {
        padding: 1.25rem !important;
    }

    /* Ukuran font judul langkah instalasi disesuaikan */
    .glass-panel h3 {
        font-size: 1.05rem !important;
    }

    /* Navigasi header agar bisa digeser horizontal jika menu terlalu panjang */
    .nav-island {
        padding: 0.5rem 1rem;
        max-width: 100%;
    }

    .nav-links {
        gap: 0.8rem;
        overflow-x: auto;
        scrollbar-width: none; /* Sembunyikan scrollbar di Firefox */
    }

    .nav-links::-webkit-scrollbar {
        display: none; /* Sembunyikan scrollbar di Chrome/Safari */
    }