/* ==========================================
   CHRONICA - Jurnalistik SMAN 3 Banjarbaru
   Core Styling - FULL VERSION (FIXED LAYOUT)
   ========================================== */

/* ==========================================
   RESET & VARIABLES
   ========================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent;
}

:root {
    --color-maroon: #600000;
    --color-gold: #FFD700;
    --color-silver: #C0C0C0; 
    --color-bg-main: #000000;
    --color-bg-section: rgba(26, 26, 26, 0.6); 
    --text-primary: #e0e0e0;
    --text-white: #ffffff;   
    --glass-border: rgba(255, 215, 0, 0.2);
    --glass-blur: blur(15px);
}

/* ==========================================
   PRELOADER (LOADING SCREEN) STYLE
   ========================================== */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.loader-content { text-align: center; }
.loader-logo { position: relative; width: 120px; margin: 0 auto 20px; }
.loader-logo img {
    width: 100%;
    filter: drop-shadow(0 0 15px rgba(192, 192, 192, 0.5));
    animation: pulseLogo 2s infinite ease-in-out;
}
.loader-line {
    width: 100%;
    height: 3px;
    background: rgba(192, 192, 192, 0.2);
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.loader-line::after {
    content: "";
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--color-silver), transparent);
    animation: loadingBar 1.5s infinite;
}
.loader-content p {
    color: var(--color-silver);
    letter-spacing: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}
@keyframes loadingBar { 0% { left: -100%; } 100% { left: 100%; } }
#loader-wrapper.fade-out { opacity: 0; visibility: hidden; }

/* ==========================================
   BASE STYLE & ANIMATIONS
   ========================================== */
body { 
    font-family: 'Montserrat', sans-serif; 
    background: var(--color-bg-main); 
    color: var(--text-primary); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes shineEffect {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* ==========================================
   TOMBOL SOSIAL MEDIA MELAYANG (FAB)
   ========================================== */
.fab-instagram, .fab-whatsapp, .fab-message {
    position: fixed;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 3000;
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
    text-decoration: none;
    animation: floatIcon 3s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    overflow: hidden;
    outline: none;
}

.fab-instagram:active, .fab-whatsapp:active, .fab-message:active { transform: scale(0.9); }

.fab-instagram::before, .fab-message::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: 0.5s;
}

.fab-instagram:hover::before, .fab-message:hover::before { left: 150%; }

.fab-instagram {
    right: 25px !important;
    bottom: 95px !important; 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    font-size: 28px;
}

.fab-whatsapp { 
    right: 95px; 
    bottom: 25px; 
    background: #25D366; 
    font-size: 30px; 
}

.fab-message {
    right: 25px !important;
    bottom: 25px !important; 
    background: var(--color-maroon) !important;
    border: 2px solid var(--color-silver) !important;
    font-size: 24px !important;
}

.fab-instagram:hover, .fab-whatsapp:hover, .fab-message:hover { 
    animation-play-state: paused;
    transform: scale(1.2); 
}

/* ==========================================
   HEADER & BRANDING
   ========================================== */
header {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    background-image: 
        linear-gradient(to bottom, transparent 65%, var(--color-bg-main) 100%), 
        linear-gradient(rgba(0,0,0,0.6), rgba(96,0,0,0.4)), 
        url('wqeqwe.gif') !important;
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.header-brand-wrapper {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.logo-mini { 
    height: 180px; 
    width: auto;
    position: relative;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.8));
    overflow: hidden;
    flex-shrink: 0;
}

.logo-mini::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 60%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: rotate(30deg);
    animation: shineEffect 3.5s infinite;
}

.text-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-container h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 3.5em; 
    color: white; 
    letter-spacing: 2px; 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(192, 192, 192, 0.5) !important;
    animation: textGlowWhite 3s infinite alternate;
}

@keyframes textGlowWhite {
    from { text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(192, 192, 192, 0.4); }
    to { text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 35px rgba(192, 192, 192, 0.7); }
}

.text-container p { 
    color: var(--color-silver) !important; 
    font-size: 0.9rem;
    font-weight: 600; 
    letter-spacing: 5px;       
    text-transform: uppercase;
    margin-bottom: 8px;         
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ==========================================
           FIX NAVIGASI & TOMBOL MENU (Z-INDEX TINGGI)
           ========================================== */
        
        .nav-container {
            /* Posisi Default (Desktop) */
            position: absolute;
            top: 25px;
            right: 25px;
            
            /* Agar selalu di atas elemen lain */
            z-index: 999999 !important; 
            
            /* WAJIB: Agar area ini bisa diklik */
            pointer-events: auto !important; 
            
            display: flex;
            align-items: center;
            gap: 15px;
        }

        #hamburger {
            /* Style Tombol */
            background: rgba(0, 0, 0, 0.6) !important;
            border: 2px solid var(--color-silver) !important;
            border-radius: 50px !important;
            padding: 10px 25px !important;
            
            /* Teks */
            font-family: 'Montserrat', sans-serif;
            color: #ffffff !important;
            font-weight: bold;
            font-size: 0.85rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            
            /* Interaksi */
            cursor: pointer !important;
            pointer-events: auto !important; /* MEMAKSA TOMBOL BISA DIKLIK */
            transition: all 0.3s ease;
            position: relative;
            z-index: 1000000 !important; /* Paling atas */
        }

        #hamburger:hover {
            background: var(--color-maroon) !important;
            border-color: var(--color-gold) !important;
            color: var(--color-gold) !important;
            transform: translateY(-2px);
        }

        /* Tampilan saat Aktif (Klik) */
        #hamburger.active {
            background: #800000 !important;
            border-color: #ffffff !important;
            box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
        }

        /* ==========================================
   PERBAIKAN TOTAL NAVIGASI (COPY & PASTE INI)
   ========================================== */

/* 1. WADAH UTAMA (Posisi Kanan Atas) */
.nav-container {
    position: fixed !important; /* Tetap di layar saat scroll */
    top: 25px !important;
    right: 25px !important;
    z-index: 999999 !important; /* Selalu paling depan */
    display: flex;
    flex-direction: column; /* Agar menu turun ke bawah tombol */
    align-items: flex-end;  /* Rata kanan */
    pointer-events: auto !important; /* Agar bisa diklik */
}

/* 2. TOMBOL MENU (KAPSUL) */
#hamburger {
    /* Tampilan */
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid var(--color-silver) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
    
    /* Teks */
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    
    /* Fungsi */
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    
    /* Reset gaya default button */
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
}

#hamburger:hover {
    background: var(--color-maroon) !important;
    border-color: var(--color-gold) !important;
    color: var(--color-gold) !important;
    transform: translateY(-2px);
}

#hamburger.active {
    background: #800000 !important; /* Warna merah saat aktif */
    border-color: #ffffff !important;
    content: "TUTUP"; /* Teks akan berubah lewat JS */
}

/* Hapus garis ikon lama jika masih muncul */
#hamburger span { display: none !important; }

/* 3. MENU DROPDOWN (RAPI & ADA BACKGROUND) */
.nav-menu {
    position: absolute !important;
    top: 55px !important; /* Jarak dari tombol menu */
    right: 0 !important;  /* Rata kanan dengan tombol */
    
    /* Background Gelap Kaca */
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px;
    
    /* Ukuran & Spasi */
    min-width: 220px;
    padding: 10px 0 !important;
    margin: 0 !important;
    
    /* Hilangkan Titik List */
    list-style: none !important;
    display: flex;
    flex-direction: column;
    
    /* Animasi Muncul */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8) !important;
}

/* Tampilkan saat aktif */
.nav-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Item Link di Dalam Menu */
.nav-menu li {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important; /* Hapus titik bullet */
}

.nav-menu a {
    display: block;
    padding: 12px 20px !important;
    color: #e0e0e0 !important;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    text-align: right; /* Teks rata kanan */
}

.nav-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--color-gold) !important;
    padding-right: 25px !important; /* Efek geser saat hover */
}

.nav-menu li:last-child a {
    border-bottom: none; /* Hapus garis di item terakhir */
}

.nav-menu a { color: white; text-decoration: none; padding: 12px; display: block; border-bottom: 1px solid rgba(255,255,255,0.1); transition: 0.2s; }

/* ==========================================
   PERBAIKAN MEGAPHONE & MUSIK (KIRI)
   ========================================== */
.music-btn {
    position: fixed !important; 
    top: 25px !important;
    left: 25px !important; 
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--color-silver);
    color: var(--color-silver);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    z-index: 6000 !important;
    pointer-events: auto !important;
}

.music-btn svg { width: 22px; height: 22px; fill: currentColor; }

/* ==========================================
   MAIN SECTIONS & GLOBAL STRUCTURE
   ========================================== */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    position: relative;
}

main { max-width: 1200px; margin: 0 auto; padding: 20px; }

section { 
    margin-bottom: 60px; 
    padding: 40px; 
    background: rgba(26, 26, 26, 0.45) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border-radius: 20px; 
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: 8px solid var(--color-silver) !important; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
}

/* ============= PERBAIKAN UTAMA DI SINI ============= */
/* MENGHILANGKAN MARGIN NEGATIF AGAR TIDAK MENUTUPI JAM */
section:first-of-type { 
    margin-top: 0 !important; 
    position: relative; 
    z-index: 1; /* Z-Index lebih rendah dari Jam (999) */
}
/* =================================================== */

h2 { 
    color: var(--color-silver); 
    margin-bottom: 40px; 
    font-family: 'Playfair Display', serif; 
    font-size: 2.2em; 
    text-align: center; 
    text-shadow: 0 0 15px rgba(192, 192, 192, 0.6) !important;
    letter-spacing: 3px;
}

/* STRUCTURE CARDS */
.silsilah-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.card-maroon { 
    background: rgba(192, 192, 192, 0.9) !important;
    border: 2px solid var(--color-maroon) !important;
    border-radius: 15px; 
    padding: 25px 20px; 
    text-align: center; 
    min-width: 220px; 
    flex: 1; 
    max-width: 300px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.card-maroon:hover { transform: translateY(-8px); background: rgba(220, 220, 220, 1) !important; border-color: #a00000 !important; }
.card-maroon h4 { color: var(--color-maroon) !important; text-transform: uppercase; font-weight: 800; letter-spacing: 1.5px; }
.card-maroon p { color: #000000 !important; font-weight: 700; }

/* DIVISI & ANGGOTA */
.divisi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; align-items: flex-start; }
.divisi-box { 
    background: rgba(255, 255, 255, 0.03) !important; 
    backdrop-filter: blur(12px) !important;
    padding: 25px; 
    border-radius: 15px; 
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top: 5px solid var(--color-silver) !important; 
    text-align: center; 
}
.anggota-list { display: none; margin-top: 15px; list-style: none; color: var(--text-white); opacity: 0; transition: opacity 0.4s ease; }
.anggota-list.active { display: block !important; opacity: 1 !important; }
.toggle-btn { width: 100%; padding: 10px; background: var(--color-maroon); color: white; border: 1px solid var(--color-silver); border-radius: 8px; cursor: pointer; font-weight: bold; transition: all 0.3s ease; outline: none; position: relative; z-index: 10; }

/* SLIDER */
.slider-container { position: relative; max-width: 900px; margin: 0 auto; overflow: hidden; border-radius: 15px; border: 2px solid var(--color-maroon); }
.slider-wrapper { display: flex; transition: transform 0.5s ease; }
.slider-item { min-width: 100%; position: relative; }
.slider-item img { width: 100%; height: 450px; object-fit: cover; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--color-maroon); color: white; border: 1px solid var(--color-silver); width: 45px; height: 45px; cursor: pointer; border-radius: 50%; z-index: 10; transition: 0.2s; outline: none; }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

/* ==========================================
   SUARA SMAGA & FAQ
   ========================================== */
.suara-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(96, 0, 0, 0.25) 0%, rgba(26, 26, 26, 0.8) 100%) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    padding: 60px 20px !important;
}
.btn-suara {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-maroon);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: bold;
    border: 2px solid var(--color-silver);
    transition: all 0.4s ease;
}

.suara-icon {
    font-size: 5rem !important; 
    color: var(--color-silver); 
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(192, 192, 192, 0.5)); 
    animation: pulseIcon 2s infinite ease-in-out; 
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.faq-item { background: rgba(255, 255, 255, 0.04) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; border-radius: 12px; margin-bottom: 15px; overflow: hidden; }
.faq-question { width: 100%; padding: 20px; background: none; border: none; color: var(--color-silver); font-size: 1.1rem; font-weight: 600; text-align: left; display: flex; justify-content: space-between; cursor: pointer; outline: none; position: relative; z-index: 10; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 500px !important; padding: 15px 20px; }

/* ==========================================
   RESPONSIVE (MOBILE OPTIMIZATION)
   ========================================== */
@media (max-width: 850px) {
    header { 
        aspect-ratio: 16 / 9;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .header-brand-wrapper { 
        display: flex !important;
        flex-direction: row !important; 
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important; 
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 10px !important;
        overflow: hidden;
    }

    .logo-mini { 
        height: 60px !important; 
        width: auto !important;
        flex-shrink: 0 !important; 
        overflow: visible !important; 
    }

    .logo-mini img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .text-container { 
        padding: 8px 12px !important; 
        flex: 0 1 auto !important; 
        max-width: fit-content; 
        background: rgba(0, 0, 0, 0.4) !important;
    }

    .text-container h1 { font-size: 1.2rem !important; margin: 0; }
    .text-container p { font-size: 0.55rem !important; }

    /* FLOATING UI MOBILE NAVIGATION */
    .nav-container {
        position: fixed !important;
        top: auto !important;
        right: 25px !important;
        bottom: 165px !important; 
        left: auto !important;
        z-index: 5000 !important;
        display: flex !important;
        pointer-events: none; 
    }

    .hamburger {
        pointer-events: auto; 
        background: var(--color-maroon) !important;
        border: 2px solid var(--color-silver) !important;
        width: 55px !important;
        height: 55px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6) !important;
    }

    .hamburger span { width: 25px !important; height: 3px !important; margin: 0 !important; }

    .nav-menu {
        pointer-events: auto;
        position: absolute !important;
        bottom: 70px !important; 
        top: auto !important;
        right: 0 !important;
        min-width: 200px !important;
        transform: translateY(20px) !important;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.8) !important;
    }

    .music-btn {
        top: 20px !important;
        left: 20px !important; 
        width: 40px !important;
        height: 40px !important;
    }

    section:first-of-type { 
        /* RESET MARGIN DI MOBILE JUGA */
        margin-top: 0 !important; 
        z-index: 100;
        margin-left: 10px !important;
        margin-right: 10px !important;
        width: calc(100% - 20px) !important;
        box-sizing: border-box !important;
    }
    
    section { padding-right: 25px !important; }
    
    .fab-instagram { right: 20px !important; bottom: 85px !important; }
    .fab-message { right: 20px !important; bottom: 20px !important; }
    
    main { padding: 15px; }
    h2 { font-size: 1.8rem; }
    .slider-item img { height: 280px; }
    .card-maroon { min-width: 100%; }
}

/* ==========================================
   HALAMAN SPESIFIK: SUARA & BERITA
   ========================================== */
.page-suara header {
    background-image: 
        linear-gradient(to bottom, transparent 65%, var(--color-bg-main) 100%), 
        linear-gradient(rgba(0,0,0,0.6), rgba(96,0,0,0.4)), 
        url('LB_3.gif') !important;
}

.page-berita header {
    background-image: 
        linear-gradient(to bottom, transparent 65%, var(--color-bg-main) 100%), 
        linear-gradient(rgba(0,0,0,0.6), rgba(96,0,0,0.4)), 
        url('LB_2.gif') !important;
}

.page-suara .nav-menu {
    background: rgba(0, 0, 50, 0.95) !important; 
    border: 1px solid rgba(100, 149, 237, 0.3) !important;
}

.page-suara .hamburger {
    background: #000032 !important;
    border: 2px solid #ffffff !important;
}

.page-suara .hamburger span {
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ==========================================
   HALAMAN SPESIFIK: ANGGOTA (FIX TOMBOL DI SINI)
   ========================================== */
.page-anggota { background: #000000 !important; }

.page-anggota header {
    background-image: 
        linear-gradient(to bottom, transparent 65%, #000000 100%), 
        linear-gradient(transparent, transparent), 
        url('img/LB_4.gif') !important;
    background-size: cover !important;
}

/* Menambah kontras agar tombol hamburger terlihat di background terang */
.page-anggota .hamburger {
    background: rgba(0, 0, 0, 0.6) !important; /* Background hitam transparan */
    border: 1px solid var(--color-silver) !important; /* Border perak */
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.page-anggota .text-container {
    background: rgba(0, 0, 0, 0.5) !important; 
    backdrop-filter: blur(8px) !important;
}

.page-anggota .nav-menu {
    background: rgba(40, 40, 40, 0.95) !important; 
    border: 1px solid rgba(192, 192, 192, 0.3) !important;
}

.page-anggota .nav-menu a {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
}

.foto-container {
    border: 3px solid var(--color-silver) !important;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.4) !important;
    overflow: hidden !important;
    border-radius: 50% !important;
}

.foto-lingkaran {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

footer { 
    padding: 30px; 
    background: #0a0a0a; 
    text-align: center; 
    border-top: 1px solid rgba(192, 192, 192, 0.1); 
}

/* ==========================================
   FIX TOTAL: NAVBAR & BUTTON TIDAK BISA DIKLIK
   ========================================== */

header, header::before, header::after {
    pointer-events: none !important;
}

.nav-container, .hamburger, .hamburger span, .nav-menu, .nav-menu *, .music-btn, .music-btn *, .fab-instagram, .fab-whatsapp, .fab-message {
    pointer-events: auto !important;
}

.nav-container { position: fixed !important; z-index: 100000 !important; }
.hamburger { z-index: 100001 !important; }
.nav-menu { z-index: 100002 !important; }
.music-btn { z-index: 100000 !important; }

/* =================================================
   FINAL FIX – PAGE SUARA
   ================================================= */
.nav-wrapper, .back-link, .back-link *, .faq-question, .faq-question *, .btn-suara {
    pointer-events: auto !important;
}

.back-link { z-index: 100001 !important; }

/* Styling dasar untuk ikon panah */
.faq-question i {
    transition: transform 0.3s ease; /* Durasi animasi 0.3 detik */
}

/* Class 'active' akan ditambahkan melalui JavaScript saat diklik */
.faq-item.active .faq-question i {
    transform: rotate(180deg); /* Memutar panah ke atas */
}

/* Opsional: Memberi warna berbeda saat aktif */
.faq-item.active .faq-question {
    color: #ffffff; /* Contoh: teks jadi lebih terang saat terbuka */
}

/* ==========================================
   POPUP PANDUAN DESKTOP MODE (FINAL)
   ========================================== */
#desktop-guide-overlay {
    display: none; /* Default sembunyi di Desktop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Latar gelap pekat */
    z-index: 999999999; /* Paling atas di atas loader sekalipun */
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease;
}

.guide-box {
    background: #1a1a1a;
    border: 2px solid var(--color-silver);
    border-radius: 20px;
    padding: 25px 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(192, 192, 192, 0.2);
    /* Update: Scroll jika layar pendek */
    max-height: 85vh;
    overflow-y: auto;
    animation: popUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.guide-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    animation: floatIcon 3s infinite ease-in-out;
}

.guide-box h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guide-desc {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.guide-steps {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.step-item {
    display: block; /* Agar gambar turun ke bawah */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.step-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.step-item i {
    font-size: 1.5rem;
    color: var(--color-silver);
    margin-top: 2px;
}

.step-text {
    font-size: 0.85rem;
    color: #eee;
    line-height: 1.4;
}

.step-text strong {
    color: var(--color-gold);
}

/* STYLE UNTUK GAMBAR PANDUAN DI POPUP */
.guide-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    margin-bottom: 5px;
    display: block;
    opacity: 0.9;
}

#close-guide-btn {
    background: var(--color-maroon);
    color: white;
    border: 1px solid var(--color-silver);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, background 0.3s;
    width: 100%;
}

#close-guide-btn:active {
    transform: scale(0.95);
    background: #400000;
}

/* HANYA MUNCUL DI LAYAR KECIL (MOBILE) */
@media (max-width: 850px) {
    #desktop-guide-overlay {
        display: flex; /* Munculkan popup */
    }
}

/* --- TAMBAHAN STYLE UNTUK LINK PANDUAN DI POPUP --- */
.full-guide-link {
    display: block;
    margin: 10px 0 15px; /* Jarak atas bawah */
    color: var(--color-gold); /* Warna Emas agar mencolok */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    border: 1px dashed rgba(255, 215, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.full-guide-link:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--color-gold);
    color: #fff;
    transform: translateY(-2px);
}

.full-guide-link i {
    margin-right: 8px;
}

/* ==========================================
   LIVE CLOCK WIDGET (POSISI BARU - DESKTOP FIX)
   ========================================== */
.clock-container-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;    /* Jarak positif dari Header */
    margin-bottom: 50px; /* Jarak positif ke Visi Misi */
    position: relative;
    z-index: 999;
}

.live-clock-widget {
    background: #1a1a1a;
    padding: 20px 40px;
    border: 1px solid var(--color-silver);
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border-bottom: 4px solid var(--color-gold);
    min-width: 300px;
    transition: transform 0.3s ease;
}

.live-clock-widget:hover {
    transform: translateY(-5px);
}

#clock-day-date {
    font-size: 1rem;
    color: var(--color-silver);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: bold;
}

#clock-time {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    letter-spacing: 3px;
    line-height: 1;
}

/* Responsif HP */
@media (max-width: 480px) {
    .clock-container-center {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .live-clock-widget {
        width: 85%;
        padding: 15px;
        min-width: auto;
        border-radius: 20px;
    }
    #clock-time { font-size: 1.8rem; }
    #clock-day-date { font-size: 0.8rem; }
}

/* Style Tombol Mading di Header */
.btn-mading-header {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: rgba(255, 215, 0, 0.1); 
    border: 2px solid #FFD700;
    color: #FFD700;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;

    /* --- BARIS DI BAWAH INI WAJIB ADA AGAR BISA DIKLIK --- */
    position: relative; 
    z-index: 10000;       /* Memastikan tombol ada di lapisan paling atas */
    pointer-events: auto !important; /* Memaksa tombol agar BISA DIKLIK */
    cursor: pointer;
}

.btn-mading-header:hover {
    background: #FFD700;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-5px);
}

/* PERBAIKAN TOMBOL KEMBALI (PRESISI TENGAH) */
        .btn-back-mading {
            /* 1. Posisi Container Tombol */
            position: relative;
            display: flex; /* Ganti ke Flex agar margin auto bekerja sempurna */
            margin: 0 auto 25px auto; /* Auto kiri-kanan = Center. Jarak bawah 25px */
            
            /* 2. Posisi Ikon di Dalam Tombol */
            align-items: center;     /* Tengah Vertikal */
            justify-content: center; /* Tengah Horizontal */
            
            /* 3. Tampilan Visual */
            width: 50px; 
            height: 50px;
            border-radius: 50%; /* Bulat sempurna */
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            
            /* 4. Style Ikon */
            color: white;
            font-size: 1.2rem; /* Ukuran ikon disesuaikan agar proporsional */
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            
            /* 5. WAJIB: Agar bisa diklik */
            z-index: 9999;
            pointer-events: auto !important; 
            cursor: pointer;
        }

        /* Fix khusus agar ikon panah benar-benar di tengah optik */
        .btn-back-mading i {
            margin-top: 2px; /* Kadang font icon agak naik, ini untuk menyeimbangkan */
            margin-right: 2px; /* Sedikit geser agar pas di tengah lingkaran */
            line-height: 1;
        }

        .btn-back-mading:hover {
            background: var(--color-maroon); /* Merah Maroon saat hover */
            border-color: var(--color-gold); /* Border Emas */
            transform: scale(1.15); /* Membesar sedikit */
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); /* Glow Emas */
        }

        /* --- SETTINGAN MOBILE (HP) --- */
        @media (max-width: 850px) {
            .nav-container {
                position: fixed !important; /* Agar tombol 'Nempel' di layar */
                top: 25px !important;       /* Jarak dari Sisi Atas */
                right: 20px !important;     /* Jarak dari Sisi Kanan (Pojok Kanan Atas) */
                z-index: 999999 !important; /* Pastikan selalu paling depan */
                
                /* Agar menu dropdown muncul rapi di bawah tombol */
                flex-direction: column;     
                align-items: flex-end;      

/* Animasi sederhana untuk ikon */
@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes popUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
               /* KELAS KHUSUS UNTUK MEMATIKAN SCROLL SAAT POPUP MUNCUL */
body.stop-scroll {
    overflow: hidden !important; /* Mematikan scroll bar */
    height: 100vh !important;    /* Membatasi tinggi body sesuai layar */
    touch-action: none;          /* Mencegah scroll sentuh di beberapa browser */
}
