/* =========================================
   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;
}

        /* --- 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: 15px;
                /* 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;
            }
        }
   


/* =========================================
   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: 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: 3fr 1fr; /* Rasio yang lebih seimbang */
    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: Berita Utama Besar & List Kecil di Samping */
.news-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; /* Berita utama 2x lebih besar dari list */
    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 Menjadi 3 Kolom */
.sub-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* Membuat 3 kolom sama rata */
    gap: 25px; 
    margin-top: 20px;
}

/* Penyesuaian Kartu untuk Testimoni */
.vertical-card {
    text-align: center; /* Mengetengahkan konten testimoni */
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mengubah Gambar menjadi Foto Profil Bulat */
.vertical-card img { 
    height: 80px; 
    width: 80px; 
    object-fit: cover; 
    border-radius: 50%; /* Membuat foto jadi bulat */
    margin: 0 auto 15px auto; /* Ketengah */
    border: 3px solid #f1f5f9;
}

.vc-content { padding: 10px 0; }

/* Gaya Teks Testimoni */
.testimonial-text {
    font-style: italic;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.vc-content h4 { 
    margin: 5px 0; 
    font-size: 1.1rem; 
    color: #1e293b;
}

/* Responsif: Di Tablet jadi 2 kolom, di HP jadi 1 kolom */
@media (max-width: 992px) {
    .sub-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .sub-grid { grid-template-columns: 1fr; }
}


/* =========================================
   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) {
    /* 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 DI HP */
    #hamburger-btn, .hamburger { 
        display: flex !important; /* Wajib Flex agar icon di tengah */
        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; }

    /* LAYOUT HP 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); }
    .content-layout { grid-template-columns: 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 12px; } 
    .section-gap { margin-bottom: 30px; }
    .mobile-bottom-nav { display: flex; }
    .floating-container { bottom: 90px; right: 15px; }
}

/* ==========================================================================
   FIX DARK MODE: MENYAMAKAN TESTIMONI DENGAN ARTIKEL
   ========================================================================== */

/* 1. Target kondisi Dark Mode */
body.dark-mode .vertical-card,
body[data-theme="dark"] .vertical-card,
.dark .vertical-card {
    /* UBAH BACKGROUND:
       Menggunakan warna gelap yang sama dengan artikel (#1e1e2d adalah standar dark theme).
       Jika ingin efek kaca transparan, gunakan: rgba(30, 30, 45, 0.8) 
    */
    background-color: #1e1e2d !important; 
    
    /* Samakan border dengan artikel */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    
    /* Hilangkan bayangan putih jika ada */
    box-shadow: none !important;
}

/* 2. Target Teks di dalam Testimoni saat Dark Mode */
body.dark-mode .vertical-card h4,
body.dark-mode .vertical-card .testimonial-text,
body.dark-mode .vertical-card p,
[data-theme="dark"] .vertical-card h4,
[data-theme="dark"] .vertical-card p {
    color: #ffffff !important; /* Paksa teks jadi Putih */
}

/* 3. Target Teks Kecil (Pekerjaan/Info) agar tidak abu mati */
body.dark-mode .vertical-card small,
body.dark-mode .vertical-card .text-muted,
[data-theme="dark"] .vertical-card small {
    color: #b0b0b5 !important; /* Abu terang */
}


    /* =========================================
       CUSTOM HORIZONTAL CARD (FIX LAYOUT)
       ========================================= */
       .horizontal-card {
        display: flex; /* Flexbox agar Kiri-Kanan */
        flex-direction: row;
        background: #fff; /* Warna Default (Light Mode) */
        border-radius: 15px;
        overflow: hidden;
        margin-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid rgba(0, 0, 0, 0.05);
        height: 160px; /* Tinggi fix */
        position: relative;
    }

    .horizontal-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    /* Bagian Kiri: Gambar */
    .hc-img-wrapper {
        width: 180px;
        height: 100%;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }

    .hc-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .horizontal-card:hover .hc-img-wrapper img {
        transform: scale(1.1);
    }

    /* Bagian Kanan: Konten */
    .hc-content {
        flex-grow: 1;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    /* Judul */
    .hc-title {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 8px;
        line-height: 1.4;
        color: #333; /* Warna Judul Default (Hitam) */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-decoration: none;
    }

    /* Isi / Caption Singkat */
    .hc-desc {
        color: #6c757d; /* Abu-abu default */
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    /* Kategori Badge */
    .hc-cat {
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 8px;
        display: inline-block;
    }

    .hc-cat.loker { color: #dc3545; }
    .hc-cat.workshop { color: #17a2b8; }

    /* Tanggal & Info */
    .hc-meta {
        font-size: 0.85rem;
        color: #888;
        margin-top: auto;
        display: flex;
        align-items: center;
    }

    /* =========================================
       DARK MODE SUPPORT (PERBAIKAN DI SINI)
       ========================================= */
    
    /* Selector ini mencakup berbagai jenis tema dark mode */
    body.dark-mode .horizontal-card,
    body[data-theme="dark"] .horizontal-card,
    .dark .horizontal-card {
        background: #1e1e2d !important; /* Ubah Background jadi Gelap */
        border: 1px solid #2d2d3f;
        box-shadow: none;
    }

    /* Ubah Warna Judul jadi Putih */
    body.dark-mode .hc-title,
    body[data-theme="dark"] .hc-title,
    .dark .hc-title {
        color: #ffffff !important;
    }

    /* Ubah Warna Deskripsi/Isi jadi Abu Terang */
    body.dark-mode .hc-desc,
    body.dark-mode p,
    body[data-theme="dark"] .hc-desc,
    .dark .hc-desc {
        color: #b5b5c3 !important;
    }

    /* Ubah Warna Meta (Tanggal) jadi lebih terang sedikit */
    body.dark-mode .hc-meta,
    body[data-theme="dark"] .hc-meta,
    .dark .hc-meta {
        color: #80808f !important;
    }

    /* =========================================
       RESPONSIVE (HP)
       ========================================= */
    @media (max-width: 576px) {
        .horizontal-card {
            height: auto;
            align-items: flex-start;
        }

        .hc-img-wrapper {
            width: 110px;
            height: 120px; /* Fix tinggi gambar di HP */
        }

        .hc-content {
            padding: 15px;
        }

        .hc-title {
            font-size: 1rem;
        }
        
        /* MENGHAPUS TOMBOL GESER HIJAU (OWL NAV) */
.product-carousel .owl-nav {
    display: none !important;
}
    }
