/* =========================================
   1. FONT OFFLINE (WAJIB DI PALING ATAS)
   ========================================= */
   @font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay.ttf') format('truetype');
    font-weight: 400 900; 
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans.ttf') format('truetype');
    font-weight: 200 800;
    font-style: normal;
}

/* =========================================
   2. VARIABLES & RESET
   ========================================= */
:root {
    /* MODE TERANG (ASLI) */
    --topbar-bg: #94a3b8;
    --header-bg: #475569;
    --accent: #fcd34d; /* Emas (Warna Khas NU) */
    --text-white: #ffffff;
    --body-bg: #f1f5f9;
    --text-main: #334155;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    
    /* Footer Colors */
    --footer-bg: #1e293b;
    --footer-text: #cbd5e1;
    
    /* Navigasi Bawah HP */
    --bottom-nav-bg: #ffffff;
}

/* --- MODE GELAP (NU ELEGANT THEME) --- */
[data-theme="dark"] {
    --body-bg: #051a0f;       
    --text-main: #e2e8f0;     
    --header-bg: #0b291a;     
    
    /* WARNA TOP BAR (HIJAU GELAP MEWAH) */
    --topbar-bg: #021208; 
    
    --glass-bg: rgba(11, 41, 26, 0.9); 
    --glass-border: rgba(252, 211, 77, 0.1); 
    --footer-bg: #020f06;     
    --bottom-nav-bg: #0b291a;
    --shadow: 0 4px 15px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    transition: all 0.4s ease;
    padding-top: 100px; 
    padding-bottom: 0;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   3. TOP BAR
   ========================================= */
#top-bar {
    background-color: var(--topbar-bg);
    height: 30px;
    display: flex; align-items: center;
    color: var(--text-white);
    font-size: 0.85rem; font-weight: 600;
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 900;
    transition: background-color 0.4s ease;
}
.top-bar-content { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.tb-socials { display: flex; gap: 15px; }
.tb-socials a { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.tb-socials a:hover { color: var(--accent); }

/* =========================================
   4. HEADER UTAMA (ALIGNMENT FIXED)
   ========================================= */
header {
    position: fixed; top: 30px; left: 0; width: 100%;
    background-color: var(--header-bg);
    color: var(--text-white);
    padding: 0.6rem 0;
    z-index: 1000;
    border-bottom-right-radius: 100px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

header.scrolled {
    top: 0; padding: 0.5rem 0;
    border-bottom-right-radius: 60px;
    background: var(--header-bg); opacity: 0.98;
}

/* CONTAINER UTAMA - RATA TENGAH */
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 100%; 
}

/* LOGO KIRI */
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 2.2rem; color: var(--text-white); line-height: 0; }
.logo-text h1 { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; line-height: 1; margin: 0; }
.logo-text p { font-size: 0.65rem; opacity: 0.8; margin-top: 3px; line-height: 1; margin-bottom: 0; }

/* MENU TENGAH */
.desktop-nav .nav-links { display: flex; gap: 25px; margin: 0; padding: 0; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; opacity: 0.9; position: relative; display: flex; align-items: center; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--accent); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px;
    background: var(--accent); transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* BAGIAN KANAN (SEARCH + LOGO MITRA + HAMBURGER) */
.right-section {
    display: flex; align-items: center; gap: 20px; height: 100%;
}

.search-box {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50px; padding: 5px 15px; height: 35px;
}
.search-box input { background: transparent; border: none; outline: none; color: #fff; width: 120px; }
.search-box button { background: transparent; border: none; color: #fff; cursor: pointer; display: flex; align-items: center; }

/* LOGO MITRA */
.partner-logos { display: flex; align-items: center; gap: 15px; }
.partner-logos img {
    height: 35px; width: auto; object-fit: contain;
    opacity: 0.8; transition: 0.3s; margin: 0; display: block;
}
.partner-logos img:hover { opacity: 1; transform: scale(1.1); }

/* HAMBURGER DEFAULT (HIDDEN ON DESKTOP) */
#hamburger-btn, .hamburger {
    display: none; /* Sembunyi di laptop */
    align-items: center;
    font-size: 1.5rem; 
    cursor: pointer; color: white; margin-left: 15px; z-index: 1001;
}

/* PROGRESS BAR */
#scroll-progress {
    position: absolute; bottom: 0; left: 0;
    height: 4px; background: var(--accent);
    width: 0%; z-index: 2000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(252, 211, 77, 0.6);
    border-bottom-right-radius: 100px; 
}
header.scrolled #scroll-progress { border-bottom-right-radius: 60px; }


/* =========================================
   5. MOBILE MENU & DROPDOWN
   ========================================= */
.mobile-menu-dropdown {
    position: fixed; top: 0; right: -100%;
    width: 80%; height: 100vh;
    background-color: var(--header-bg);
    display: flex; flex-direction: column;
    padding: 80px 20px 20px;
    transition: right 0.4s ease;
    z-index: 1100; box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.mobile-menu-dropdown.active { right: 0; }
.mobile-menu-dropdown a {
    display: block; padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white; font-weight: 600; text-decoration: none;
}
.btn-login-mobile {
    background: var(--accent); color: var(--header-bg) !important;
    text-align: center; border-radius: 8px; margin-top: 20px;
    border: none !important; padding: 12px !important;
}

/* MOBILE SUB-MENU */
.mobile-parent { display: flex !important; justify-content: space-between; align-items: center; cursor: pointer; }
.mobile-sub-links {
    display: none; flex-direction: column;
    background-color: rgba(0,0,0,0.2); width: 100%; margin-bottom: 5px; border-radius: 5px;
}
.mobile-sub-links.open { display: flex !important; }
.mobile-sub-links a {
    padding-left: 40px !important; font-size: 0.9rem; font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important; color: #cbd5e1 !important;
}

/* =========================================
   6. DROPDOWN DESKTOP
   ========================================= */
.dropdown-parent { position: relative; }
.dropdown-parent i { font-size: 0.7rem; margin-left: 5px; transition: transform 0.3s; }
.dropdown-parent:hover i { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute; top: 100%; left: 0; width: 200px;
    background-color: var(--header-bg);
    border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 10px 0; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.3s ease; display: block;
}
.dropdown-parent:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 10px 20px; color: var(--text-white); font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dropdown-menu li a:hover { background-color: rgba(255,255,255,0.1); color: var(--accent); padding-left: 25px; }
.dropdown-menu li a::after { display: none; }

/* =========================================
   7. CONTENT CARDS & LAYOUT
   ========================================= */
.section-gap { margin-bottom: 20px; }
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px; box-shadow: var(--shadow); transition: 0.3s;
}
.glass-card:hover { transform: translateY(-5px); }

/* Hero Slider */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; height: 300px; }
.main-slider { position: relative; overflow: hidden; padding: 0; height: 100%; border-radius: 12px; }
.slider-wrapper, .hero-slide { height: 100%; width: 100%; }
.hero-slide {
    position: absolute; top: 0; left: 0; background-size: cover; background-position: center;
    display: flex; align-items: flex-end; opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.overlay-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}
.slide-content { position: relative; z-index: 2; padding: 40px; color: #fff; }
.slide-content h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin: 15px 0 20px; }
.tag-red, .tag-blue { padding: 5px 12px; font-size: 0.75rem; font-weight: 700; border-radius: 4px; display: inline-block; color: white; }
.tag-red { background: #dc2626; } .tag-blue { background: #2563eb; }
.btn-red, .btn-blue { padding: 10px 25px; border-radius: 6px; font-weight: 600; display: inline-block; color: white; }
.btn-red { background: #dc2626; } .btn-blue { background: #2563eb; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 5; transition: 0.3s; }
.prev { left: 15px; } .next { right: 15px; }

/* Greeting */
.greeting-card { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.profile-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.profile-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.btn-outline-small {
    border: 1px solid #dc2626; color: #dc2626; padding: 8px 20px;
    border-radius: 20px; font-size: 0.85rem; text-align: center; width: fit-content;
}
/* =========================================
   Quick Menu (Global / Desktop)
   ========================================= */
   .quick-menu-grid { 
    display: grid; 
    /* UBAH JADI 6 KOLOM AGAR SATU BARIS */
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px; 
}

.qm-item {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 15px 15px;
    border-radius: 15px 0 15px 0; 
    
    color: white; 
    text-align: center;
    color: white; 
    text-align: center; 
    
    /* ANIMASI HALUS */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
}

/* EFEK HOVER (KEREN) */
.qm-item:hover {
    transform: translateY(-7px); /* Naik ke atas */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Bayangan */
    z-index: 2;
}

.qm-item i {
    font-size: 1.8rem !important; /* Ukuran ikon besar */
    margin-bottom: 8px; /* Jarak ikon ke teks */
}

/* 4. Atur Ukuran Teks (Dikecilkan) */
.qm-item, .qm-item span, .qm-item div {
    font-size: 0.65rem !important; /* Huruf diperkecil supaya muat */
    line-height: 1.2; /* Spasi antar baris teks */
    font-weight: 600;
}

/* WARNA-WARNI GRADASI (UNTUK 6 ITEM) */
.qm-item.red    { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.qm-item.blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.qm-item.purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.qm-item.green  { background: linear-gradient(135deg, #22c55e, #15803d); }
.qm-item.dark   { background: linear-gradient(135deg, #334155, #0f172a); }

/* INI WARNA BARU UNTUK ITEM KE-6 (ORANGE) */
.qm-item.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* News & Layout */
.content-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; }
.block-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-left: 4px solid #dc2626; padding-left: 15px; }
.news-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-bottom: 40px; }
.news-card.big img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px 12px 0 0; }
.nc-content { padding: 20px; }
.small-card { display: flex; gap: 15px; padding: 15px; align-items: center; margin-bottom: 10px; }
.small-card img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.sc-info .cat { font-size: 0.7rem; font-weight: 700; margin-bottom: 5px; display: block; }
.text-red { color: #dc2626; }

/* Sub Grid & Sidebar */
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vertical-card img { height: 160px; width: 100%; object-fit: cover; border-radius: 12px 12px 0 0; }
.vc-content { padding: 15px; }
.tag-text { font-size: 0.7rem; color: #64748b; font-weight: 600; }
.vc-content h4 { margin: 8px 0; font-size: 1rem; }

.widget { padding: 25px; margin-bottom: 30px; }
.widget-title { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #e2e8f0; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input { padding: 10px; border: 1px solid #ddd; border-radius: 6px; }
.newsletter-form button { padding: 10px; background: #dc2626; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg-item { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 6px; font-size: 0.8rem; color: #fff; }
.fb { background: #1877f2; } .tw { background: #1da1f2; }
.ig { background: #e1306c; } .yt { background: #ff0000; }
.trending-item { display: flex; gap: 15px; align-items: center; margin-bottom: 15px; }
.trending-item img { border-radius: 6px; width: 60px; height: 60px; object-fit: cover; }

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 60px; margin-top: 80px; padding-bottom: 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.brand-col h2 { color: #fff; font-size: 1.5rem; margin-bottom: 20px; }
.brand-col span { color: #8e7171; }
.brand-col p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; opacity: 0.8; }
.footer-socials a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 35px; height: 35px; background: rgba(255,255,255,0.1);
    color: #fff; border-radius: 50%; margin-right: 8px; transition: 0.3s;
}
.footer-socials a:hover { background: #a77d7d; }
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: #ceb3b3; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.9rem; opacity: 0.8; }
.footer-col ul li a:hover { opacity: 1; color: #a98585; padding-left: 5px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
    background: rgba(255,255,255,0.05); color: #cbd5e1;
    padding: 6px 12px; font-size: 0.8rem; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1);
}
.tag-cloud a:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.85rem; opacity: 0.7; }

/* =========================================
   9. MOBILE BOTTOM NAV & FLOATING BTNS
   ========================================= */
.mobile-bottom-nav {
    display: none; /* Desktop Hidden */
    position: fixed; bottom: 0; left: 0; width: 100%; height: 70px;
    background: var(--bottom-nav-bg); border-top: 1px solid var(--glass-border);
    z-index: 2000; justify-content: space-around; align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}
.mb-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-main); font-size: 0.7rem; gap: 5px; opacity: 0.6; width: 20%; }
.mb-item i { font-size: 1.3rem; }
.mb-item.active, .mb-item:hover { color: var(--accent); opacity: 1; }
.center-btn .center-icon {
    width: 50px; height: 50px; background: var(--header-bg); color: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-top: -30px; border: 4px solid var(--body-bg); box-shadow: 0 -5px 10px rgba(0,0,0,0.1);
}
.floating-container { position: fixed; bottom: 100px; right: 20px; z-index: 1001; display: flex; flex-direction: column; gap: 15px; }
.float-btn {
    width: 45px; height: 45px; border-radius: 50%; border: none; cursor: pointer; font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s;
    display: flex; justify-content: center; align-items: center;
}
.float-btn.primary { background: var(--header-bg); color: var(--accent); }
.float-btn.secondary { background: var(--accent); color: var(--header-bg); }
.float-btn.hide { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* =========================================
  /* =========================================
   10. RESPONSIVE FIXES (FINAL CHECK)
   ========================================= */
@media (max-width: 900px) {
    /* --- 1. HEADER ADJUSTMENTS --- */
    header { padding: 0.5rem 0; border-bottom-right-radius: 40px; }
    
    /* Sembunyikan Element Desktop */
    .desktop-nav, 
    .search-box, 
    .partner-logos { 
        display: none !important; 
    }

    /* Paksa Tombol Menu Muncul */
    #hamburger-btn, .hamburger { 
        display: flex !important; 
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        color: var(--text-white);
        z-index: 1200; 
        position: relative; 
    }
    
    .nav-container { justify-content: space-between; padding-right: 10px; }

    /* --- 2. LAYOUT KONTEN (PENTING INI!) --- */
    /* Agar di HP, Sidebar TURUN ke bawah, tidak di samping */
    .content-layout { 
        grid-template-columns: 1fr; /* Ubah jadi 1 kolom penuh */
        gap: 30px; 
    }

    /* --- 3. LAYOUT LAINNYA --- */
    .hero-grid { grid-template-columns: 1fr; height: auto; gap: 20px; }
    .main-slider { height: 250px; width: 100%; }
    .greeting-card { margin-top: 0; }
    .quick-menu-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .sub-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    footer { padding-bottom: 90px; }
    .container { padding: 0 15px; } 
    .section-gap { margin-bottom: 30px; }
    .mobile-bottom-nav { display: flex; }
    .floating-container { bottom: 90px; right: 15px; }
}


/* --- TAMPILAN KHUSUS HP (Mobile) --- */
@media (max-width: 991px) {

    /* 1. Sembunyikan Tombol Menu Hamburger di Kanan Atas */
    .navbar-toggle,
    .navbar-header .btn,
    .navbar-toggler {
        display: none !important;
    }

    /* 2. Tampilkan Navigasi Bawah */
    .mobile-bottom-nav {
        display: flex !important;
        /* Pastikan transisi halus saat ganti tema */
        transition: background-color 0.3s ease, border-color 0.3s ease;
        background-color: #ffffff;
        /* Default Putih */
        border-top: 1px solid #dee2e6;
    }

    .mb-item {
        color: #555555;
        /* Default Text Gelap */
        transition: color 0.3s ease;
    }

    /* --- LOGIKA DARK MODE (TEMA GELAP) --- */
    /* Kode ini akan jalan kalau body punya class 'dark-mode', 'dark', atau atribut data-theme='dark' */
    body.dark-mode .mobile-bottom-nav,
    body.dark-theme .mobile-bottom-nav,
    body.dark .mobile-bottom-nav,
    [data-theme="dark"] .mobile-bottom-nav {
        background-color: #1b262c !important;
        /* Warna Gelap (Sama seperti Sidebar) */
        border-top: 1px solid #2c3e50 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }

    body.dark-mode .mb-item,
    body.dark-theme .mb-item,
    body.dark .mb-item,
    [data-theme="dark"] .mb-item {
        color: #d1d5db !important;
        /* Text jadi Putih Abu */
    }

    body.dark-mode .mb-item:hover,
    body.dark-mode .mb-item.active,
    [data-theme="dark"] .mb-item.active {
        color: #ffffff !important;
        /* Text Putih Terang saat aktif */
    }

    /* --- AKHIR LOGIKA DARK MODE --- */


    /* 3. Style Menu POP-UP (Unik seperti gambar) */
    .mobile-sidebar {
        position: fixed;
        /* Posisi awal: Sembunyi di bawah layar */
        bottom: -100%;
        left: 50%;
        transform: translateX(-50%);
        /* Agar rata tengah horizontal */

        width: 90%;
        /* Lebar kartu 90% dari layar */
        max-width: 400px;
        max-height: 80vh;
        /* Maksimal tinggi 80% layar */

        background: #fff;
        border-radius: 015px;
        /* Sudut membulat */
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        z-index: 9999;

        /* Animasi muncul yang halus */
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        /* Efek membal sedikit */

        display: flex;
        flex-direction: column;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
    }

    /* --- SIDEBAR DARK MODE --- */
    body.dark-mode .mobile-sidebar,
    [data-theme="dark"] .mobile-sidebar {
        background: #1b262c !important;
        /* Sidebar jadi gelap */
        border: 1px solid #2c3e50;
    }

    body.dark-mode .sidebar-link,
    [data-theme="dark"] .sidebar-link {
        color: #d1d5db !important;
        /* Link Sidebar jadi putih */
        border-bottom: 1px solid #2c3e50 !important;
    }

    body.dark-mode .sidebar-link i,
    [data-theme="dark"] .sidebar-link i {
        color: #9ca3af !important;
        /* Icon Sidebar jadi abu terang */
    }

    body.dark-mode #sub-profil,
    body.dark-mode #sub-berita,
    body.dark-mode #sub-akademik,
    [data-theme="dark"] ul[id^="sub-"] {
        background: #151e23 !important;
        /* Submenu lebih gelap lagi */
    }

    /* 4. Saat Menu Aktif (Muncul ke Tengah) */
    .mobile-sidebar.active {
        bottom: 90px;
        /* Muncul di atas tombol navigasi bawah */
        opacity: 1;
        visibility: visible;
    }

    /* 5. Backdrop Gelap di belakang menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        /* Hitam transparan */
        z-index: 9990;
        /* Di bawah menu, di atas konten lain */
        display: none;
        /* Default sembunyi */
        backdrop-filter: blur(2px);
        /* Efek blur estetik */
    }

    .menu-overlay.active {
        display: block;
    }

    /* Styling Isi Menu agar Rapi */
    .sidebar-header {
        padding: 15px 20px;
        background: #1b262c;
        /* Warna Header Gelap */
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar-menu {
        padding: 0;
        margin: 0;
        list-style: none;
        overflow-y: auto;
        /* Bisa discroll kalau menu panjang */
        max-height: 50vh;
    }

    .sidebar-menu li {
        border-bottom: 1px solid #eee;
    }

    .sidebar-link {
        display: block;
        padding: 12px 20px;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
    }

    .sidebar-link i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
        color: #666;
    }
}
/* 1. DEFAULT: Sembunyikan Semua Elemen Mobile di Layar Besar (PC/Laptop) */
.mobile-bottom-nav,
.mobile-sidebar,
.menu-overlay {
    display: none !important;
}

/* 2. MEDIA QUERY: Munculkan Kembali Hanya di Layar HP (Max 991px) */
@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex !important;
    }

    /* Sidebar dikembalikan ke display flex, tapi visibilitas diatur opacity (untuk animasi) */
    .mobile-sidebar {
        display: flex !important;
    }

    /* Overlay diatur oleh JS (active), jadi biarkan defaultnya hidden */
    .menu-overlay {
        display: none;
    }

    .menu-overlay.active {
        display: block !important;
    }
}
/* =========================================
   11. REPOSITORY & TABLE STYLES (CUSTOM)
   ========================================= */

/* Container Utama Kaca */
.repo-container {
    padding: 10px 0;
}

/* Header Judul di dalam Card */
.glass-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.glass-header h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    font-size: 1.5rem;
}

/* Custom Table (Glass Style) */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
}

.custom-table th {
    text-align: left;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05); /* Sedikit gelap transparan */
    color: var(--text-main);
    font-weight: 700;
    border-bottom: 2px solid var(--glass-border);
}

.custom-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    vertical-align: top;
}

/* Hover Effect pada Baris Tabel */
.custom-table tr:hover td {
    background-color: rgba(252, 211, 77, 0.1); /* Efek warna emas tipis saat hover */
}

/* Dark Mode Adjustment untuk Tabel */
[data-theme="dark"] .custom-table th {
    background-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .custom-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Styling Metadata (Tahun, Penulis, dll) */
.meta-box {
    background: rgba(37, 99, 235, 0.1); /* Biru tipis */
    border-left: 4px solid #2563eb;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: var(--text-main);
}
[data-theme="dark"] .meta-box {
    background: rgba(37, 99, 235, 0.2);
    color: #e2e8f0;
}

/* Sidebar List Item yang Baru */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-list li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
[data-theme="dark"] .sidebar-list li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-list li a {
    display: flex;
    justify-content: space-between;
    padding: 12px 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}
.sidebar-list li a:hover {
    color: #dc2626; /* Merah sesuai tema */
    padding-left: 8px; /* Efek geser */
}

/* Badge Hitungan di Sidebar */
.badge-count {
    background: #dc2626;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}


    /* Styling Container Utama */
    .hero-container {
        position: relative;
        overflow: hidden;
        border-radius: 15px;
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        margin-bottom: 30px;
    }

    /* Styling Area Slider */
    .main-slider {
        position: relative;
        width: 100%;
        height: 300px;
        /* PENTING: Tinggi slider harus didefinisikan */
        overflow: hidden;
        border-radius: 15px;
    }

    .slider-wrapper {
        position: relative;
        height: 100%;
        width: 100%;
    }

    /* Styling Slide Individual */
    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        /* Sembunyikan slide yg tidak aktif */
        transition: opacity 0.8s ease-in-out;
        display: flex;
        align-items: center;
        z-index: 1;
    }

    .hero-slide.active {
        opacity: 1;
        /* Tampilkan slide aktif */
        z-index: 2;
    }

    /* Overlay Gelap agar teks terbaca */
    .overlay-gradient {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
        z-index: 1;
    }

    /* Konten Teks */
    .slide-content {
        position: relative;
        z-index: 2;
        padding-left: 50px;
        color: white;
        max-width: 600px;
        animation: slideUp 1s ease forwards;
    }

    .slide-content h4 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 20px;
        color: #fff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .slide-content span {
        font-size: 1.2rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #ffd700;
        /* Warna emas */
        display: block;
        margin-bottom: 10px;
    }

    /* Tombol Navigasi Slider */
    .slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        transition: 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slider-nav:hover {
        background: rgba(255, 255, 255, 0.9);
        color: #333;
    }

    .prev {
        left: 20px;
    }

    .next {
        right: 20px;
    }

    /* Tombol CTA */
    .btn-custom {
        padding: 12px 30px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: bold;
        transition: 0.3s;
        display: inline-block;
    }

    .btn-red {
        background-color: #dc2626;
        color: white;
    }

    .btn-blue {
        background-color: #2563eb;
        color: white;
    }

    .btn-custom:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        color: white;
    }

    /* Animasi Teks */
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    /* Mengatur Layout Grid Utama */
    .content-layout {
        display: grid;

        /* RUMUS BARU: 
       1fr   = Konten mengambil sisa ruang sebebas mungkin (Fleksibel)
       300px = Sidebar dipaksa lebarnya 300px (Angka pas, tidak kekecilan)
    */
        grid-template-columns: 1fr 300px;

        /* Jarak diperkecil jadi 15px (Sebelumnya 25px) agar terlihat rapat */
        gap: 15px;

        align-items: start;
    }

    .main-content-area {
        min-width: 0;
        width: 100%;
    }

    .sidebar-area {
        width: 100%;
        /* Pastikan widget di dalam sidebar tidak melebar aneh */
        max-width: 300px;
    }

    /* Responsive: Jika layar Tablet/HP (di bawah 991px), ubah jadi 1 kolom tumpuk */
    @media (max-width: 991px) {
        .content-layout {
            grid-template-columns: 1fr;
            /* Jadi 1 kolom */
            gap: 30px;
            /* Jarak vertikal saat ditumpuk */
        }

        .sidebar-area {
            max-width: 100%;
            /* Saat di HP, sidebar boleh lebar penuh */
        }
    }

    /* Responsive: Jika layar Tablet/HP, ubah jadi 1 kolom (tumpuk ke bawah) */
    @media (max-width: 991px) {
        .content-layout {
            grid-template-columns: 1fr;
            gap: 40px;
        }
    }

    /* CSS PAGINATION */
    .pagination {
        display: flex;
        justify-content: center;
        padding-left: 0;
        list-style: none;
        margin-top: 20px;
        gap: 5px;
    }

    .page-item .page-link {
        position: relative;
        display: block;
        padding: 8px 16px;
        line-height: 1.25;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
        color: var(--text-main, #333);
        /* Fallback color */
    }

    .page-item .page-link:hover {
        z-index: 2;
        background-color: rgba(220, 38, 38, 0.1);
        /* Warna merah tipis saat hover */
        border-color: #dc2626;
        color: #dc2626;
    }

    .page-item.active .page-link {
        z-index: 3;
        color: #fff;
        background-color: #dc2626;
        border-color: #dc2626;
        box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    }

    .page-item.disabled .page-link {
        color: #a0a0a0;
        pointer-events: none;
        background-color: rgba(0, 0, 0, 0.05);
    }

