/* ====================================================================== */
/* --- 1. VARIABEL & DARK MODE --- */
/* ====================================================================== */

:root {
    /* Warna Mode Terang */
    --bg-body: #FFFFFF;
    --text-color: #333;
    --light-text-color: #777;
    --border-color: #e9ecef;
    --primary-color: #0056b3;
    --bg-header: #000;
    --text-header: #fff;
    --bg-ad: #eee;
    --border-ad: #ddd;
    
    /* Variabel Baru untuk Menu Mobile (digunakan sebagai latar belakang gelap di Light Mode) */
    --bg-mobile-menu: #000; /* Latar belakang menu (Light Mode: Hitam) */
    --text-mobile-menu: #fff; /* Teks menu (Light Mode: Putih) */
    --border-mobile-menu: #333; /* Batas antar item (Dark Grey) */
    --bg-mobile-dropdown: #252525; /* Warna latar belakang untuk sub-menu mobile */
    --overlay-color: rgba(0, 0, 0, 0.7); /* BARU: Overlay di light mode */
}

/* Warna Mode Gelap */
body.dark-mode {
    --bg-body: #121212;
    --text-color: #e0e0e0;
    --light-text-color: #a0a0a0;
    --border-color: #444;
    --primary-color: #0371e7;
    --bg-header: #1e1e1e;
    --text-header: #fff;
    --bg-ad: #2c2c2c;
    --border-ad: #555;
    
    /* Variabel Menu Mobile di Dark Mode */
    --bg-mobile-menu: #1e1e1e; /* Latar belakang menu (Dark Mode: Lebih gelap) */
    --text-mobile-menu: #e0e0e0; /* Teks menu (Dark Mode: Light Grey) */
    --border-mobile-menu: #444; /* Batas antar item (Darker Grey) */
    --bg-mobile-dropdown: #333; /* Warna latar belakang untuk sub-menu mobile di dark mode */
    --overlay-color: rgba(0, 0, 0, 0.7); /* BARU: Overlay di dark mode (bisa disamakan) */
}
body.dark-mode .news-title {
    color: var(--text-color);
}
body.dark-mode .news-meta {
    color: var(--light-text-color);
}
body.dark-mode .load-more-container .btn-primary-custom {
    /* Di Dark Mode, tombol menjadi OUTLINE */
    background-color: transparent; 
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
body.dark-mode .load-more-container .btn-primary-custom:hover {
    /* Gaya Hover Dark Mode: Diisi warna */
    background-color: var(--primary-color);
    color: var(--bg-body);
    border-color: var(--primary-color);
}

/* ====================================================================== */
/* --- 2. DASAR & LAYOUT UMUM --- */
/* ====================================================================== */

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: var(--bg-body);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* BARU: Style untuk Body saat Menu Dibuka (Mematikan scroll body) */
body.menu-open {
    overflow: hidden; 
}
/* BARU: Efek Overlay (Transparansi) saat Menu Dibuka */
body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 900; /* Harus di bawah z-index menu */
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: none; 
    padding-bottom: 5px;
}

/* Tombol Load More */
.load-more-container {
    text-align: center;
    margin: 25px auto;
}
.load-more-container .btn-primary-custom {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

/* Hot Issue Title */
.hot-issue-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
}
.hot-issue-icon {
    color: red;
    font-size: 1.8rem;
}

/* Top News Layout (Main Headline, Popular, Iklan) */
.top-news-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 0 20px 0;
    align-items: flex-start; 
}
.main-headline-container {
    flex: 2;
    min-width: 50%;
}
.sidebar-popular-container, .sidebar-ad-container {
    flex: 1;
    min-width: 250px;
}
.sub-headlines {
    margin-top: 20px;
}
.sub-headline-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sub-headline-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.sub-headline-item h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}
.sub-headline-item a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.sub-headline-item a:hover {
    color: var(--primary-color);
}

/* --- Headline Utama --- */
.main-headline {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.main-headline img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.main-headline-info {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(72, 69, 69, 0.6); 
    color: #fff;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.main-headline-info h2 {
    margin: 0;
    font-size: 1.5rem;
}
.main-headline-info a {
    color: #fff;
    text-decoration: none;
}

/* Ad Spot (Iklan) */
.ad-spot {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 250px;
    border-radius: 8px;
    overflow: hidden;
}
.ad-spot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Bagian Terpopuler */
.sidebar-popular-container .section-title {
    margin-top: 0;
}
.sidebar-popular-container h3.section-title {
    border-bottom: none;
}
.sidebar-popular ol {
    list-style-type: none;
    padding: 0;
    counter-reset: top-news-counter;
}
.sidebar-popular .list-item {
    counter-increment: top-news-counter;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-popular .list-item::before {
    content: counter(top-news-counter) ".";
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 5px;
}
.sidebar-popular a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.sidebar-popular a:hover {
    color: var(--primary-color);
}
.sidebar-popular h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}
.sidebar-popular .list-item img {
    display: none;
}

/* --- Slider Hot Issue --- */
.hot-issue-section {
    padding: 20px 0;
}
.hot-issue-slider-container {
    overflow: hidden;
    position: relative;
}
.hot-issue-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
    user-select: none;
    will-change: transform;
}
.hot-issue-slide {
    flex: 0 0 33.333%;
    min-width: 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
}
.hot-issue-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
.hot-issue-slide h4 {
    margin: 10px 0 0 0;
    font-size: 1.1rem;
}
.hot-issue-slide a {
    color: var(--text-color);
    text-decoration: none;
}
.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.slider-nav button {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 5px 15px;
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.slider-nav button:hover {
    background: #004494;
}

/* --- Recent News & Spotlight Layout --- */
.recent-spotlight-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    align-items: flex-start;
}
.recent-news-container {
    flex: 1 1 65%;
    max-width: 65%;
}
.spotlight-container {
    flex: 1 1 30%;
    max-width: 30%;
}

/* Gaya untuk daftar berita terkini */
.recent-news-list {
    list-style: none;
    padding: 0;
}
.recent-news-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 0px;
    border-bottom: 1px solid var(--border-color);
}
.recent-news-item img {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 0px 8px 0px 0px;
}
.news-meta-date {
    font-size: 0.75rem;
}
.news-meta-category{
    font-size: 0.8rem;
}
.recent-news-info h4 {
    margin-top: 0;
    margin-left: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}
.recent-news-info p {
    font-size: 0.6rem;
    margin-left: 1.5rem;
    color: var(--light-text-color);
    line-height: 1.5;
}
.recent-news-info a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.recent-news-info a:hover {
    color: var(--primary-color);
}

/* CSS Khusus untuk Tampilan Berita Terkini (Menggunakan Flex) */
.recent-news-layout {
    gap: 1.5rem;
}
.recent-news-container .news-item-berita {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.news-item-berita .news-image-col {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 1.5rem;
}
.news-item-berita .news-info-col {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}
.news-item-berita h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.news-item-berita .news-meta {
    font-size: 0.8rem;
    color: #6c757d;
}
.spotlight-item-baru .spotlight-info-baru h5 {
    font-size: 1rem;
}

/* Gaya untuk daftar sorot */
.spotlight-list {
    list-style: none;
    padding: 0;
}
.spotlight-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.spotlight-item img {
    max-width: 100%;
    height: 100px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}
.spotlight-info h5 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}
.spotlight-item a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.spotlight-item a:hover {
    color: var(--primary-color);
}

/* --- Footer --- */
/* --- Footer --- */
.footer {
    background-color: var(--bg-header);
    color: var(--text-header);
    padding: 20px 0px 5px 0px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* KUNCI PERBAIKAN: Tambahkan kembali Flex agar col-4 dapat berjejer */
.footer-content {
    display: flex; /* WAJIB */
    flex-wrap: wrap; /* WAJIB */
    justify-content: space-between;
    gap: 10px;
}

.footer-section {
    flex: none; /* Netralisasi flex: 1 */
    min-width: unset; /* Netralisasi min-width */
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}


/* === MEDIA QUERY UNTUK PONSEL (< 992px) === */
@media (max-width: 991.98px) {
    
    /* PENAMBAHAN: Atur Font lebih kecil di HP */
    .footer-section, .footer-section a {
        font-size: 12px; /* Kecilkan font untuk menghemat ruang */
    }
    .footer-section h4, .footer-section b {
        font-size: 13px; /* Judul tetap sedikit lebih besar */
    }
    
    /* Perbaikan: Aturan untuk kol-4 (Indeks, Facebook, dan Podium Eco) */
    .footer-content > .col-4 {
        /* Bootstrap col-4 adalah 33.333% - kita gunakan nilai ini */

        margin-bottom: 0px;
        padding-left: 5px; /* Kurangi padding agar lebih muat */
        padding-right: 0px;
    }
    
    /* Aturan untuk kol-12 (PT Media) */
    .footer-content > .col-12 {
        width: 100%;
        margin-bottom: 0px;
    }
    .footer-content > .col-3 {
        /* Bootstrap col-4 adalah 33.333% - kita gunakan nilai ini */
        width: 20%; 
        margin-bottom: 20px;
        padding-left: 5px; /* Kurangi padding agar lebih muat */
        padding-right: 5px;
    }
    
    /* RATA TENGAH untuk Kolom 4 (PT Media) - Sisanya tetap rata kiri */
    .footer-section.text-center {
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer-section.text-center p {
        text-align: center;
    }

    /* Catatan: Karena Podium Eco (kolom 3) sekarang col-4, HAPUS style text-center di kolom 3 */
    /* Pastikan Anda HANYA menggunakan text-center pada kolom 4 di HTML */
}

/* === MEDIA QUERY UNTUK DESKTOP (>= 992px) === */
@media (min-width: 992px) {
    /* Setel ulang font size jika perlu, atau biarkan default */
    .footer-section, .footer-section a, .footer-section h4 {
        font-size: unset; /* Kembali ke ukuran default */
    }

    /* Pastikan kolom desktop mengambil lebar 25% (col-md-3) */
    .col-md-3 {
        width: 25%;
    }
    
    /* Pastikan rata tengah HILANG di desktop */
    .footer-section.text-md-start,
    .footer-section.text-center ul {
        text-align: center !important; /* Paksa kembali rata kiri */
    }
}


/* --- Gaya Umum Konten Footer --- */
.footer-section h4 {
font-family: 'Inter', sans-serif;
border-bottom: 1px solid var(--border-color);
padding-bottom: 5px;
transition: border-color 0.3s ease;
}
.footer-section ul {
list-style: none;
padding: 0;
}
.footer-section a {
color: var(--text-header);
text-decoration: none;
}
.footer-bottom {
text-align: center;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid var(--border-color);
transition: border-color 0.3s ease;
}

/* ====================================================================== */
/* --- 3. HEADER & NAVIGASI UMUM --- */
/* ====================================================================== */

.header {
    background-color: var(--bg-header);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 15px;
}
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo img {
    height: 30px;
    width: auto;
    display: block;
}
/* Gabungan untuk warna teks header: logo, menu, ikon */
.logo-text, .nav-menu a, .theme-toggle-btn, .search-icon, .menu-toggle {
    color: var(--text-header);
    /* Hapus border: none !important; dari sini */
}

.logo-text {
    font-family: "DM Serif Text", serif;
  font-weight: 400;
    font-size: 25px;
    margin-left: 5px;
    color: #FFFFFF;
    
}
.logo-text .com {
    font-size: 0.6em;
    font-weight: normal;
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}
.nav-menu a {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.nav-menu a:hover {
    color: var(--primary-color);
}
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-body);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
    background-color: var(--border-color);
}

/* FIX POIN 1 & 2: Hapus border dan background abu-abu/default pada ikon header */
.theme-toggle-btn, .search-icon, .menu-toggle, .search-close-btn {
    background: none !important;
    border: none !important; 
    padding: 0 !important; 
    margin: 0 5px; /* Tetapkan margin agar tidak terlalu rapat */
}

.theme-toggle-btn, .search-icon {
    cursor: pointer;
    font-size: 1.3rem;
}

/* Pastikan warna ikon Hamburger (menu-toggle) putih/sesuai variabel header */
.menu-toggle {
    color: var(--text-header);
    font-size: 2rem;
    cursor: pointer;
}
/* ======================================= */
/* 4. SEARCH OVERLAY STYLES (VERSI SEDERHANA HANYA ENTER) */
/* ======================================= */
.search-box { 
    display: none !important;
}

/* Jika tidak berhasil, coba class yang terlihat di screenshot: */
.search-input-header {
    display: none !important;
}
/* OVERLAY CONTAINER */
.pn-search-overlay {
    /* PENTING: Sembunyikan secara default */
    display: none; 
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* KELAS JS UNTUK MENAMPILKAN OVERLAY */
.pn-search-overlay.show {
    display: flex;
    opacity: 1;
}

/* FORM CONTAINER */
.pn-search-form {
    position: relative;
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Jarak antara input dan tombol close (X) */
}

/* WRAPPER INPUT (Opsional, tapi bagus untuk struktur) */
.pn-search-input-wrapper {
    width: 100%;
    position: relative;
}

/* INPUT TEXT */
.pn-search-input {
    width: 100%;
    padding: 15px 20px; /* Padding standar, tanpa ruang untuk ikon submit */
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    background-color: #fff;
    color: #333;
    outline: none; /* Hapus outline default saat focus */
}
.pn-search-input::placeholder {
    color: #999;
}

/* TOMBOL SUBMIT TERSEMBUNYI (WAJIB AGAR ENTER BERFUNGSI) */
.pn-hidden-submit-btn {
    /* Teknik untuk membuat tombol submit tidak terlihat, tetapi fungsional */
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    /* Agar Enter bekerja, tombol ini harus berupa type="submit" */
}

/* TOMBOL CLOSE (X) */
.pn-search-close-btn { 
    background: none !important; 
    border: none !important; 
    color: #ff0000; /* Warna merah */
    font-size: 2rem;
    cursor: pointer;
    align-self: flex-end; /* Memposisikan X ke kanan */
    margin-right: 0;
}
/* Ikon Dropdown (DEFAULT: Tersembunyi di Desktop) */
.dropdown-icon {
    display: none; 
    transition: transform 0.3s ease;
    margin-left: 10px; 
}


/* ====================================================================== */
/* --- 4. MEDIA QUERIES --- */
/* ====================================================================== */

/* --- TABLET (577px - 991px) --- */
@media (min-width: 577px) and (max-width: 991px) {
    .recent-news-info h4 {
        margin-top: 0;
        font-size: 2rem;
        font-weight: 500;
        line-height: 1.2;
        padding-left: 20px;
    }
    .recent-news-info p {
        font-size: 1rem;
        color: var(--light-text-color);
        line-height: 1.5;
        padding-left: 20px;
    }
    .recent-news-item img {
        width: 280px;
        height: 150px;
    }
    .recent-news-item .row {
        margin-bottom: 0px;
    }
    .news-item-berita h4 {
        font-size: 1.1rem;
    }
    .nav-menu .menu-toggle {
        display: none;
    }
    .nav-menu a {
        font-size: 0.7rem;
    }
    .spotlight-item-baru .spotlight-info-baru h5 {
        font-size: 1.25rem;
    }
    .spotlight-item img {
        width: 280px;
        height: 150px;
    }
    .spotlight-info h5 {
        margin: 0;
        font-size: 2rem;
        line-height: 1.3;
    }
    .header .container {
        padding: 8px 15px;
    }
    .recent-news-container, .spotlight-container {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/* --- MOBILE (MAX 768px) --- */
@media (max-width: 768px) {
    /* Layout */
    .top-news-layout, .recent-spotlight-layout {
        flex-direction: column;
    }
    .main-headline-container, .sidebar-popular-container, .sidebar-ad-container, 
    .recent-news-container, .spotlight-container {
        min-width: 100%;
        flex: none;
        max-width: 100%;
    }
    .sub-headline-item{
       flex: none;
        max-width: 100%; 
    }
    .recent-news-item {
        flex-direction: column;
    }
    .hot-issue-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    /* Search & Toggle */
    .search-overlay {
        display: flex;
    }
    .search-input {
        width: 100%;
    }
    .nav-menu .menu-toggle {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-header);
        transition: transform 0.3s ease, color 0.3s ease;
        background: none !important;
        border: none !important;
    }
    .nav-menu .menu-toggle.is-open {
        color: #ff0000; /* Asumsi X berwarna merah */
        font-weight: bold;
        transform: none; 
        background: none !important;
        border: none !important;
    }
    
    /* Menu Mobile Dropdown (Hamburger - Kontainer Utama) */
    .nav-menu ul {
        flex-direction: column;
        position: fixed; /* Diubah menjadi fixed agar tidak bergerak saat scroll */
        top: 55px;
        right: 0; /* Ubah dari 'left: 175px' menjadi 'right: 0' agar menempel kanan */
        background-color: var(--bg-mobile-menu); /* Poin 4: Menggunakan variabel baru */
        width: 60%; /* Disesuaikan agar lebih proporsional */
        box-shadow: -4px 0 10px rgba(0,0,0,0.3); /* Shadow di kiri */
        padding: 5px 0 20px 0;
        opacity: 0;
        transform: translateX(100%); /* BERUBAH: Sembunyikan ke kanan */
        transition: opacity 0.3s ease, transform 0.3s ease;
        display: none;
        z-index: 1050; /* Z-index tinggi di atas overlay */
        height: 100vh; /* Memenuhi tinggi viewport */
        overflow-y: auto; /* Memungkinkan scroll di dalam menu */
    }
    .nav-menu ul.show {
        display: flex;
        opacity: 1;
        transform: translateX(0); /* Tampilkan dari kanan */
    }

    /* Style untuk setiap item rubrik (border) */
    .nav-menu ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-mobile-menu); 
    }
    .nav-menu ul li:last-child {
        border-bottom: none;
    }
    
    /* Style untuk link rubrik utama (Aktual, Sorot, dll.) */
    .nav-menu ul li a {
        padding: 10px 25px;
        color: var(--text-mobile-menu);
        display: flex;
        justify-content: space-between; 
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* BARU: Highlight saat dropdown AKTIF */
    .dropdown.open > a {
        background-color: var(--bg-mobile-dropdown); 
        color: var(--primary-color); 
        font-weight: bold; 
    }

    /* 1. Tampilkan Ikon V (Dropdown Icon) */
    .dropdown .dropdown-icon {
        display: block; 
        font-size: 1.1rem;
        transform: rotate(0deg); 
    }
    
    /* 2. Rotasi Ikon saat Menu Dibuka */
    .dropdown.open .dropdown-icon {
        transform: rotate(180deg); 
    }

    /* 3. Dropdown Content (Sub-rubrik) */
    .dropdown-content {
        display: block; 
        position: static; 
        box-shadow: none;
        background-color: var(--bg-mobile-dropdown); 
        width: 100%;
        min-width: auto;
        
        /* Kontrol Animasi Buka/Tutup (REVISI KECEPATAN: 0.15s) */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.15s ease-out;
    }
    
    /* 4. Tampilkan Sub-rubrik saat Dropdown dibuka */
    .dropdown.open .dropdown-content {
        max-height: 500px; /* Nilai besar agar semua sub-menu muat */
        transition: max-height 0.15s ease-in;
    }
    
    /* 5. Styling Link Sub-rubrik */
    .dropdown-content a {
        padding: 8px 30px; 
        font-weight: normal;
        background-color: transparent;
        color: var(--light-text-color); /* REVISI: Menggunakan light-text-color untuk sub-menu */
    }
    .dropdown-content a:hover {
        background-color: var(--border-color);
    }
    
    /* BARU: Menonaktifkan ikon di luar menu saat menu terbuka */
    body.menu-open .header .search-icon,
    body.menu-open .header .theme-toggle-btn {
        pointer-events: none;
        opacity: 0.5;
    }

    /* Menu Scrollable (sebelum hamburger aktif) */
    .main-nav-scroll-container {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid #444;
        padding: 5px 0;
    }
    .main-nav-scroll-container::-webkit-scrollbar {
        display: none;
    }
    .nav-links-scrollable {
        display: inline-flex;
    }
    .nav-links-scrollable li {
        display: inline-block;
        margin: 0 5px;
        padding: 0;
    }
    .dropdown-content {
        display: none;
    }

    /* Spotlight Mobile adjustments */
    .spotlight-item.col-12 img {
        width: 100px;
        height: 80px;
    }
    .spotlight-item.col-6 img {
        width: 100%;
        height: 120px;
    }
}

/* --- DESKTOP (MIN 992px) --- */
@media (min-width: 992px) {
    /* Navigasi & Header */
    .nav-menu ul.show, .nav-menu ul {
        display: flex !important;
        position: static;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        transform: none;
    }
    .nav-menu .menu-toggle {
        display: none;
    }
    .search-icon {
        display: block;
    }
    .header .container {
        padding: 10px 15px;
    }
    .main-nav-scroll-container {
        overflow-x: visible;
    }
    .nav-links-scrollable {
        display: flex;
        list-style: none;
        padding: 0;
    }
    .nav-links-scrollable li {
        flex-shrink: 0;
    }
    
    /* Pastikan semua elemen/class mobile dimatikan di desktop */
    .dropdown-icon, .dropdown.open .dropdown-icon {
        display: none !important;
    }
    .dropdown-content {
        max-height: none !important; 
    }

    /* Penyesuaian Konten */
    .recent-news-info h4 {
        margin-top: 0px;
        font-size: 1.6rem;
        line-height: 1.2;
        padding-left: 0px;
        font-weight: 500;
    }
    .recent-news-info p {
        font-size: 1rem;
        color: var(--light-text-color);
        line-height: 1.5;
        padding-left: 0px;
        font-weight: 500;
    }
    .recent-news-item img {
        width: 250px;
        height: 150px;
    }
    .news-item-berita h4 {
        font-size: 1.6rem;
    }
    .spotlight-item-baru .spotlight-info-baru h5 {
        font-size: 1.1rem;
    }
    .hot-issue-slide h4 {
        margin: 10px 0 0 0;
        font-size: 1.3rem;
    }
}