/*
Theme Name: Elang Tiga Hambalang
Theme URI: https://elangtiga.local
Author: Alexander
Author URI: https://elangtiga.local
Description: Theme berita simpel, cepat, dan siap dikembangkan (REST API, AI, Firebase)
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elang-tiga-hambalang
*/
:root {
  --primary-blue: #0A192F; 
  --darker-blue: #060F1D;  
  --gold-accent: #D4AF37;  
  --text-light: #E0E0E0;
  --font-stencil: 'Black Ops One', system-ui; 
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-body); color: var(--text-light); background: var(--darker-blue); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--gold-accent); }
img { max-width: 100%; height: auto; display: block; }

/* --- HEADER & NAVIGATION --- */
.site-header { width: 100%; background: var(--primary-blue); z-index: 999; border-bottom: 2px solid var(--gold-accent); transition: all 0.3s ease; }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 0 5%; }
.branding { display: flex; align-items: center; gap: 10px; padding: 15px 0; transition: all 0.3s ease; }
.branding img { height: 50px; }
.branding h1 { font-family: var(--font-stencil); color: var(--gold-accent); font-size: 22px; line-height: 1.1; letter-spacing: 1px; text-transform: uppercase; }

/* Menu Top */
.main-nav { display: flex; flex-grow: 1; justify-content: flex-end; height: 100%; align-self: stretch; }
.main-nav ul { list-style: none; display: flex; align-items: stretch; }
.main-nav ul li { border-right: 1px solid rgba(255,255,255,0.1); display: flex; }
.main-nav ul li a { display: flex; align-items: center; padding: 0 20px; font-weight: 800; font-size: 14px; text-transform: uppercase; color: #fff; }
.main-nav ul li a:hover { background: var(--gold-accent); color: var(--primary-blue); }

.header-actions { display: flex; align-items: center; gap: 15px; padding-left: 20px; }
.btn-search, .btn-dots { background: transparent; color: var(--gold-accent); border: none; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* --- STICKY HEADER --- */
.site-header.sticky { position: fixed; top: 0; left: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.8); }
.site-header.sticky .main-nav, .site-header.sticky .mega-title-section { display: none; }
.site-header.sticky .branding { padding: 5px 0; }
.site-header.sticky .branding h1 { display: none; }
.site-header.sticky .branding img { height: 40px; }
.header-spacer { display: none; }
.site-header.sticky ~ .header-spacer { display: block; height: 160px; }

/* --- OFF-CANVAS SIDEBAR --- */
.offcanvas-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(3px); }
.offcanvas-sidebar { position: fixed; top:0; right:-320px; width:300px; max-width: 85%; height:100vh; background: var(--primary-blue); z-index: 2001; transition: 0.4s ease-in-out; padding: 20px; border-left: 2px solid var(--gold-accent); overflow-y: auto; }
.offcanvas-sidebar.active { right: 0; }
.offcanvas-overlay.active { opacity: 1; visibility: visible; }
.offcanvas-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 20px; }
.offcanvas-header h3 { color: var(--gold-accent); font-family: var(--font-stencil); letter-spacing: 1px; }
.close-offcanvas { font-size: 28px; color: #fff; background: none; border: none; cursor: pointer; }
.offcanvas-cat-list { list-style: none; }
.offcanvas-cat-list li a { display: block; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- BERITA TERBARU (HERO BANNER) --- */
.mega-title-section { background: var(--primary-blue); text-align: center; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mega-title-section h2 { font-family: var(--font-stencil); font-size: 50px; color: #fff; letter-spacing: 4px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

.hero-banner { background: #111e30; padding: 40px 5%; display: flex; gap: 40px; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.hero-content { flex: 1; }
.hero-content .time { color: var(--gold-accent); font-size: 12px; font-weight: 800; margin-bottom: 12px; display: block; letter-spacing: 1px; }
.hero-content h2 { font-family: var(--font-stencil); font-size: 36px; line-height: 1.2; text-transform: uppercase; color: #fff; }
.hero-ad { width: 300px; height: 250px; background: #222; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #666; border: 1px solid #333; flex-shrink: 0; }

/* --- MAIN LAYOUT --- */
.container { width: 90%; max-width: 1200px; margin: 50px auto; }
.news-grid { display: grid; grid-template-columns: 6.5fr 3.5fr; gap: 50px; }
.section-stencil-title { font-family: var(--font-stencil); font-size: 28px; margin-bottom: 30px; letter-spacing: 1.5px; border-bottom: 2px solid var(--gold-accent); padding-bottom: 10px; color: #fff; }

/* Trending Section */
.trending-list { display: flex; flex-direction: column; gap: 30px; }
.trending-post img { width: 100%; height: 300px; object-fit: cover; background: #222; margin-bottom: 15px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); }
.post-meta { font-size: 12px; margin-bottom: 8px; color: #aaa; }
.post-meta .cat { color: var(--gold-accent); font-weight: 800; text-transform: uppercase; }
.trending-post h3 { font-size: 22px; line-height: 1.4; font-weight: 800; color: #fff; }

/* Sidebar Section */
.other-news-list { list-style: none; margin-bottom: 40px; }
.other-news-list li { display: flex; gap: 15px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.other-news-list img { width: 110px; height: 85px; object-fit: cover; background: #333; border-radius: 4px; flex-shrink: 0; }
.other-news-list h4 { font-size: 15px; line-height: 1.4; margin-top: 5px; font-weight: 600; color: #eee; }

.subscribe-box { background: var(--gold-accent); color: var(--darker-blue); padding: 30px; border-radius: 4px; margin-bottom: 40px; text-align: center; }
.subscribe-box h4 { font-family: var(--font-stencil); font-size: 20px; margin-bottom: 10px; letter-spacing: 1px; }
.subscribe-box p { font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.subscribe-box input { width: 100%; padding: 12px; border: none; margin-bottom: 10px; outline: none; background: #fff; border-radius: 2px; }
.subscribe-box button { width: 100%; padding: 12px; background: var(--darker-blue); color: var(--gold-accent); border: none; font-weight: 800; cursor: pointer; border-radius: 2px; transition: 0.3s; }
.subscribe-box button:hover { background: var(--primary-blue); color: #fff; }

.tag-populer h4 { font-size: 16px; margin-bottom: 15px; text-transform: uppercase; color: #fff; font-weight: 800; }
.tag-populer a { display: inline-block; font-size: 13px; color: #aaa; margin: 0 10px 10px 0; font-weight: 600; background: rgba(255,255,255,0.05); padding: 5px 12px; border-radius: 3px; }
.tag-populer a:hover { background: var(--gold-accent); color: var(--primary-blue); }

/* --- FOOTER --- */
.site-footer { background: var(--primary-blue); border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; }
.footer-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; padding: 25px 5%; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-social a { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; color: #ccc; letter-spacing: 1px; }

.footer-main { padding: 60px 5%; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 20px 20px; }
.footer-brand p { font-size: 14px; color: #aaa; margin-top: 20px; line-height: 1.7; }
.footer-col h4 { color: var(--gold-accent); font-size: 16px; margin-bottom: 20px; font-family: var(--font-stencil); letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #aaa; font-size: 14px; font-weight: 500; }

.footer-bottom { text-align: center; padding: 25px; background: var(--darker-blue); font-size: 13px; color: #666; font-weight: 600; }

/* ==========================================================================
   ADAPTIVE MOBILE OPTIMIZATION (FOKUS UTAMA)
   ========================================================================== */

@media (max-width: 992px) {
    /* Tablet Portrait */
    .news-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-banner { flex-direction: column; text-align: center; padding: 40px 5%; }
    .hero-ad { width: 100%; max-width: 500px; height: 150px; } /* Iklan memanjang di tablet */
    .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    /* Tampilan HP Sesungguhnya */
    
    /* 1. Header Ringkas */
    .site-header .main-nav { display: none; } /* Sembunyikan menu atas */
    .header-top { padding: 10px 15px; }
    .branding h1 { font-size: 16px; max-width: 150px; }
    .branding img { height: 40px; }
    .btn-search { display: none; } /* Pindahkan fungsi search ke off-canvas jika perlu */
    .btn-dots { padding: 5px; }

    /* 2. Hero Banner & Stencil Text Mengecil */
    .mega-title-section { padding: 15px 0; }
    .mega-title-section h2 { font-size: 26px; letter-spacing: 2px; }
    
    .hero-banner { padding: 25px 15px; gap: 20px; }
    .hero-content h2 { font-size: 22px; line-height: 1.3; }
    .hero-ad { width: 100%; height: 100px; } /* Iklan menjadi banner tipis di HP */

    /* 3. Grid & Layout Utama */
    .container { width: 100%; padding: 0 15px; margin: 30px 0; }
    .section-stencil-title { font-size: 22px; margin-bottom: 20px; }
    
    /* Kartu Berita menyesuaikan layar HP */
    .trending-post img { height: 200px; }
    .trending-post h3 { font-size: 18px; }
    
    .other-news-list li { padding-bottom: 15px; margin-bottom: 15px; }
    .other-news-list img { width: 90px; height: 70px; }
    .other-news-list h4 { font-size: 14px; }

    /* 4. Footer Menyusun ke Bawah */
    .footer-main { grid-template-columns: 1fr; text-align: center; padding: 40px 15px; gap: 30px; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-social { gap: 15px; flex-direction: column; align-items: center; }
    .footer-social a { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; justify-content: center; }
    
    /* 5. Sticky Header khusus Mobile */
    .site-header.sticky .branding { padding: 8px 0; }
    .site-header.sticky ~ .header-spacer { height: 70px; } /* Spacer lebih kecil agar tidak lompat */
}
/* =========================================
   UNIVERSAL FOOTER STYLES (Untuk Semua Tema)
   ========================================= */
.universal-footer { padding: 60px 0 0 0; color: #d1d1d1; border-top: 3px solid rgba(255,255,255,0.1); margin-top: 50px; font-family: sans-serif; }
.universal-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; width: 90%; max-width: 1200px; margin: 0 auto; padding-bottom: 50px; }
.universal-footer .footer-logo { height: 60px; margin-bottom: 15px; width: auto; }
.universal-footer .footer-site-title { font-size: 22px; font-weight: 900; color: #ffffff; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
.universal-footer .footer-description { font-size: 14px; line-height: 1.7; margin-bottom: 25px; color: #bbbbbb; }

/* Ikon Kontak */
.universal-footer .footer-contact-info p { font-size: 13px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; color: #bbbbbb; }
.universal-footer .footer-contact-info p i { margin-top: 3px; color: #ffffff; opacity: 0.7; }

/* Styling Kolom & Tautan */
.universal-footer .footer-heading { font-size: 16px; font-weight: bold; color: #ffffff; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; position: relative; padding-bottom: 10px; }
.universal-footer .footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: rgba(255,255,255,0.5); }
.universal-footer .footer-col ul { list-style: none; padding: 0; margin: 0; }
.universal-footer .footer-col ul li { margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; }
.universal-footer .footer-col ul li a { color: #bbbbbb; font-size: 14px; transition: 0.3s; display: inline-block; }
.universal-footer .footer-col ul li a:hover { color: #ffffff; transform: translateX(5px); } /* Efek geser kanan saat di-hover */

/* Ikon Sosial Media Bulat */
.universal-footer .footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
.universal-footer .footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(255,255,255,0.08); color: #ffffff; border-radius: 50%; font-size: 16px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.1); }
.universal-footer .footer-social a:hover { background: #ffffff; color: #000000; transform: translateY(-4px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* Bagian Bawah Copyright */
.universal-footer .footer-bottom { background: rgba(0,0,0,0.25); padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #999999; border-top: 1px solid rgba(255,255,255,0.05); }
.universal-footer .footer-legal-links a { color: #999999; margin: 0 8px; transition: 0.3s; }
.universal-footer .footer-legal-links a:hover { color: #ffffff; text-decoration: underline; }

/* Responsive Mobile */
@media (max-width: 992px) {
    .universal-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .universal-footer .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .universal-footer .footer-heading::after { left: 50%; transform: translateX(-50%); } /* Ketengahkan garis bawah judul */
    .universal-footer .footer-contact-info p { justify-content: center; }
    .universal-footer .footer-social { justify-content: center; }
    .universal-footer .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
/* =========================================================
   UNIVERSAL INDEX WITH CUSTOM BACKGROUND & GLASSMORPHISM
   ========================================================= */

/* 1. Pengaturan Background Utama */
.universal-index-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* GANTI URL DI BAWAH INI DENGAN LINK GAMBAR BACKGROUND ANDA */
    background-image: url('https://elangtigaglobalnews.com/wp-content/uploads/2026/02/global-backgroung.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Membuat efek parallax saat discroll */
    font-family: sans-serif;
}

/* 2. Overlay Kaca Gelap (Agar Teks Mudah Dibaca) */
.glass-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Atur kegelapan di sini. 0.6 = 60% gelap */
    z-index: 1;
}

/* 3. Container Konten */
.uni-container {
    position: relative;
    z-index: 2; /* Berada di atas overlay */
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0 60px 0;
}

/* 4. Efek Kaca (Glassmorphism) untuk Kartu Berita */
.uni-glass-card {
    background: rgba(255, 255, 255, 0.08); /* Putih sangat transparan */
    backdrop-filter: blur(12px); /* Efek blur/kaca buram */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Garis tepi tipis seperti kaca */
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    color: #ffffff;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.uni-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 5. Komponen Teks & Tag */
.uni-tag { background: #D4AF37; color: #111; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; display: inline-block; margin-bottom: 10px; letter-spacing: 0.5px; }
.uni-meta { font-size: 12px; color: #bbbbbb; margin-top: 10px; }
.uni-section-title, .uni-widget-title { font-size: 20px; font-weight: 800; color: #ffffff; text-transform: uppercase; border-bottom: 2px solid #D4AF37; padding-bottom: 10px; margin-bottom: 20px; display: inline-block; }

/* 6. Layout Hero (Sorotan Utama) */
.hero-card { display: flex; flex-direction: row; margin-bottom: 40px; }
.hero-image-box { flex: 1.2; }
.hero-image-box img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.hero-text-box { flex: 1; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.hero-text-box h2 { font-size: 28px; line-height: 1.3; margin-bottom: 15px; }
.hero-text-box p { font-size: 15px; line-height: 1.6; color: #dddddd; }

/* 7. Grid Utama (2 Kolom) */
.uni-main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.uni-card-list { display: flex; flex-direction: column; gap: 20px; }
.article-card { display: flex; flex-direction: row; height: 140px; }
.article-img { width: 180px; flex-shrink: 0; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 15px 20px; display: flex; flex-direction: column; justify-content: center; }
.article-body h4 { font-size: 16px; line-height: 1.4; margin-bottom: 5px; font-weight: 600; }

/* 8. Layout Sidebar */
.widget-box { padding: 25px; margin-bottom: 25px; }
.uni-pop-list { list-style: none; padding: 0; }
.uni-pop-list li { display: flex; align-items: center; gap: 15px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.uni-pop-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.num-badge { background: #D4AF37; color: #111; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; flex-shrink: 0; }
.uni-pop-list a { font-size: 14px; line-height: 1.5; font-weight: 500; color: #eeeeee; }

/* 9. Pagination */
.uni-pagination { margin-top: 30px; text-align: center; }
.uni-pagination .page-numbers { display: inline-block; padding: 8px 15px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; color: #fff; margin: 0 5px; transition: 0.3s; }
.uni-pagination .page-numbers:hover, .uni-pagination .current { background: #D4AF37; color: #111; border-color: #D4AF37; font-weight: bold; }

/* =========================================================
   ADAPTIF LAYAR PONSEL (MOBILE RESPONSIVE 100%)
   ========================================================= */
@media (max-width: 992px) {
    .uni-main-grid { grid-template-columns: 1fr; } /* Sidebar turun ke bawah */
    .hero-card { flex-direction: column; }
    .hero-image-box img { height: 250px; min-height: auto; }
}

@media (max-width: 768px) {
    .uni-container { padding: 20px 0 40px 0; }
    
    /* Hero Section di HP */
    .hero-text-box { padding: 20px; }
    .hero-text-box h2 { font-size: 22px; }
    .hero-text-box p { font-size: 14px; }
    
    /* List Berita di HP (Gambar pindah ke atas) */
    .article-card { flex-direction: column; height: auto; }
    .article-img { width: 100%; height: 180px; }
    .article-body { padding: 15px; }
    .article-body h4 { font-size: 18px; }
    
    .uni-section-title, .uni-widget-title { font-size: 18px; }
}
/* =========================================
   PENGATURAN UKURAN LOGO CUSTOM
   ========================================= */

/* 1. Ukuran Logo di Header (Layar PC/Laptop) */
.branding img {
    height: 85px !important; /* Ganti angka 85px jadi lebih besar (misal 100px) kalau masih kurang */
    width: auto !important;
    max-height: none !important;
}

/* 2. Ukuran Logo di Footer (Layar PC/Laptop) */
.universal-footer .footer-logo,
.site-footer .footer-brand img {
    height: 95px !important; /* Ganti angka ini untuk logo footer */
    width: auto !important;
}

/* 3. Ukuran Logo Saat Mode Baca Artikel (single.php) */
.reading-logo {
    height: 50px !important; /* Dibuat sedikit lebih kecil agar header baca tidak menutupi layar */
}

/* =========================================
   UKURAN LOGO KHUSUS DI LAYAR HP
   ========================================= */
@media (max-width: 768px) {
    .branding img {
        height: 55px !important; /* Jangan terlalu besar di HP agar tombol menu tidak tergeser */
    }
    .universal-footer .footer-logo,
    .site-footer .footer-brand img {
        height: 70px !important;
    }
}
/* =========================================
   KODE UNIVERSAL: KUNCI MATI UKURAN LOGO FOOTER
   (Berlaku untuk semua web Elang 3 News)
   ========================================= */

.universal-footer .footer-logo,
.universal-footer .footer-brand img,
.site-footer .footer-brand img {
    height: 120px !important; /* KUNCI TINGGI LOGO (Bisa diganti misal 60px atau 80px, asal semua web angkanya sama) */
    width: auto !important; /* Biarkan lebarnya menyesuaikan secara proporsional */
    max-width: 250px !important; /* Mencegah logo yang terlalu memanjang ke samping */
    object-fit: contain !important; /* Memastikan logo tidak gepeng/distorsi */
    display: block !important;
    margin-bottom: 20px !important; /* Jarak pas antara logo dan teks deskripsi */
}

/* Penyesuaian Otomatis Saat Dibuka di Layar HP */
@media (max-width: 768px) {
    .universal-footer .footer-logo,
    .universal-footer .footer-brand img,
    .site-footer .footer-brand img {
        height: 55px !important; /* Sedikit lebih kecil di HP agar rapi */
        margin-left: auto !important; /* Otomatis ke tengah di layar HP */
        margin-right: auto !important;
        margin-bottom: 15px !important;
    }
}
/* =========================================================
   🌐 UNIVERSAL MOBILE FIX (ANTI-HANCUR DI HP)
   Pasang di baris paling bawah untuk semua web Elang 3 News
   ========================================================= */

@media (max-width: 768px) {
    
    /* 1. MENGUNCI LAYAR GOYANG (Horizontal Scroll Fix) */
    /* Mencegah layar HP bisa digeser ke kiri-kanan karena ada elemen meluber */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 2. MEMAKSA SEMUA GRID MENJADI 1 BARIS KE BAWAH */
    /* Apapun bentuk gridnya di PC, di HP akan otomatis berbaris ke bawah */
    .main-grid, .grid-2, .grid-3, .footer-grid, 
    .uni-main-grid, .mh-main-area, .footer-top {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 25px !important;
    }

    /* 3. MENJINAKKAN GAMBAR RAKSASA */
    /* Memastikan gambar berita/thumbnail tidak menabrak batas layar ponsel */
    img, iframe, video, object, embed {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* 4. MERAPIKAN PADDING/SPASI PINGGIR */
    /* Mengurangi jarak kosong di kiri-kanan agar ruang baca berita lebih luas */
    .container, .uni-container, .main-content, .sidebar {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* 5. MENYESUAIKAN UKURAN JUDUL (TYPOGRAPHY FIX) */
    /* Mengecilkan judul berita yang terlalu raksasa di layar HP */
    h1, .single-title, .hero-content h2 { 
        font-size: 24px !important; 
        line-height: 1.3 !important; 
    }
    h2, .section-title { 
        font-size: 20px !important; 
        line-height: 1.4 !important; 
    }
    h3, .card h3 { 
        font-size: 18px !important; 
        line-height: 1.4 !important; 
    }

    /* 6. MEMOTONG TEKS/LINK PANJANG */
    /* Kalau ada link URL atau kata yang sangat panjang, akan dipotong otomatis ke bawah */
    p, a, span, h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    /* 7. PERBAIKAN SIDEBAR (WIDGET KANAN) */
    /* Sidebar otomatis turun ke paling bawah dan ukurannya disesuaikan */
    aside.sidebar, .uni-sidebar {
        margin-top: 30px !important;
        padding: 0 15px !important;
        border-top: 2px solid rgba(255,255,255,0.1) !important;
        padding-top: 30px !important;
    }
    
    /* 8. MERAPIKAN KARTU BERITA HERO (YANG ADA GAMBAR BESARNYA) */
    .hero-section, .hero-card {
        flex-direction: column !important;
    }
    .hero-image, .hero-image-box {
        width: 100% !important;
        min-height: 200px !important;
    }
}
/* =========================================================
   MAHAKARYA FINAL: GLOBAL NEWS HEADER + SIDEBAR + TICKER
   ========================================================= */

/* --- 1. RESET GAP RAKSASA (ANTI-BENGKAK) --- */
body .site-content, body #content, body .site-main, body #main,
body .universal-index-wrapper, body .uni-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.gn-header-spacer {
    height: 125px !important; /* Tinggi ganjal dikunci pas untuk Header + Ticker */
    width: 100% !important;
    display: block !important;
    background: transparent !important;
    margin: 0 !important; padding: 0 !important;
}

/* --- 2. FLOATING GLASS HEADER --- */
.gn-glass-header {
    position: fixed !important;
    top: 15px; 
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(10, 25, 47, 0.75); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Mengunci ticker agar ikut melengkung di ujungnya */
}

/* Efek saat discroll ke bawah */
.gn-glass-header.scrolled {
    top: 0; width: 100%; max-width: 100%; border-radius: 0;
    background: rgba(10, 25, 47, 0.95);
    border-bottom: 1px solid rgba(0, 195, 255, 0.3);
}

.gn-header-inner { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 12px 25px; 
    width: 100%; box-sizing: border-box;
}

/* Branding / Logo */
.gn-brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.gn-brand img { height: 45px !important; width: auto !important; max-width: 150px; object-fit: contain; display: block; }
.gn-brand-text { display: flex; flex-direction: column; }
.gn-brand-text h1 { color: #fff; font-size: 22px; margin: 0; line-height: 1; font-family: 'Oswald', sans-serif; letter-spacing: 1px; white-space: nowrap; }
.gn-brand-text span { color: #00c3ff; font-size: 11px; font-weight: bold; letter-spacing: 3px; font-family: sans-serif; margin-top: 3px; white-space: nowrap; }

/* Navigasi Desktop Minimalis */
.gn-desktop-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.gn-desktop-nav ul li a { color: #ccd6f6; font-size: 14px; font-weight: 600; font-family: sans-serif; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; position: relative; text-decoration: none; }
.gn-desktop-nav ul li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: #00c3ff; transition: 0.3s; }
.gn-desktop-nav ul li a:hover { color: #00c3ff; }
.gn-desktop-nav ul li a:hover::after { width: 100%; }

/* Tombol Aksi Kanan */
.gn-actions { display: flex; align-items: center; gap: 15px; }
.gn-btn-premium { background: linear-gradient(45deg, #005b96, #00c3ff); color: #fff; padding: 8px 20px; border-radius: 20px; font-size: 12px; font-weight: bold; font-family: sans-serif; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(0, 195, 255, 0.3); transition: 0.3s; border: none; text-decoration: none; }
.gn-btn-premium:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 195, 255, 0.5); color: #fff; }

/* Hamburger Menu Kekinian */
.gn-hamburger { background: transparent; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 5px; outline: none; }
.gn-line { width: 25px; height: 2px; background: #fff; transition: 0.3s; border-radius: 2px; }
.gn-hamburger:hover .gn-line { background: #00c3ff; }
.gn-hamburger:hover .gn-line:nth-child(2) { width: 15px; transform: translateX(10px); }

/* --- 3. TICKER BERITA BERJALAN (TERBARU) --- */
.gn-latest-ticker {
    display: flex; align-items: center; width: 100%; height: 35px;
    background: rgba(0, 0, 0, 0.3); 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.gn-ticker-badge {
    background: rgba(255, 51, 102, 0.9); /* Merah Neon */
    color: #fff; font-size: 11px; font-weight: 800; padding: 0 15px; height: 100%;
    display: flex; align-items: center; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0;
}
.gn-red-dot {
    display: inline-block; width: 6px; height: 6px; background: #fff; border-radius: 50%;
    margin-right: 6px; animation: gnRedPulse 1s infinite;
}
@keyframes gnRedPulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
.gn-ticker-scroll { flex-grow: 1; display: flex; align-items: center; height: 100%; padding-left: 10px; overflow: hidden; }
.gn-ticker-scroll marquee { color: #ccd6f6; font-size: 13px; font-family: sans-serif; line-height: 35px; width: 100%; }
.gn-ticker-scroll marquee a { color: #ccd6f6; text-decoration: none; transition: 0.3s; font-weight: 500; }
.gn-ticker-scroll marquee a:hover { color: #00c3ff; text-decoration: underline; }

/* --- 4. SIDEBAR OFF-CANVAS (GIMMICK MENU) --- */
.gn-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 1999; opacity: 0; visibility: hidden; transition: 0.4s; }
.gn-sidebar { position: fixed; top: 0; right: -400px; width: 350px; max-width: 90%; height: 100vh; background: #0a192f; z-index: 2000; box-shadow: -10px 0 30px rgba(0,0,0,0.5); border-left: 1px solid rgba(0, 195, 255, 0.2); transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); overflow-y: auto; }
.gn-overlay.active { opacity: 1; visibility: visible; }
.gn-sidebar.active { right: 0; }
.gn-sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 25px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.gn-sidebar-header h3 { color: #fff; font-family: 'Oswald', sans-serif; font-size: 20px; margin: 0; letter-spacing: 1px; }
.gn-neon { color: #00c3ff; text-shadow: 0 0 10px rgba(0,195,255,0.5); }
.gn-close-btn { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.gn-close-btn:hover { background: #ff3366; transform: rotate(90deg); }

/* Konten Sidebar */
.gn-sidebar-content { padding: 25px; font-family: sans-serif; }
.gn-modern-search { display: flex; margin-bottom: 30px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0,195,255,0.3); }
.gn-modern-search input { flex-grow: 1; padding: 12px 15px; background: rgba(255,255,255,0.05); border: none; color: #fff; outline: none; }
.gn-modern-search button { padding: 0 15px; background: #00c3ff; color: #000; border: none; font-weight: bold; cursor: pointer; transition: 0.3s; }
.gn-modern-search button:hover { background: #fff; }
.gn-sidebar-title { color: #8892b0; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; border-left: 3px solid #00c3ff; padding-left: 10px; }

/* Gimmick: Shortcuts dengan Pulse */
.gn-quick-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 35px; }
.gn-mini-card { display: flex; align-items: center; gap: 15px; padding: 12px 15px; background: rgba(255,255,255,0.03); border-radius: 8px; text-decoration: none; transition: 0.3s; border: 1px solid transparent; }
.gn-mini-card:hover { background: rgba(0, 195, 255, 0.1); border-color: rgba(0, 195, 255, 0.3); transform: translateX(5px); }
.gn-pulse { width: 8px; height: 8px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); animation: gnPulse 1.5s infinite; flex-shrink: 0; }
@keyframes gnPulse { 70% { box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); } }
.gn-card-text { color: #ccd6f6; font-size: 13px; font-weight: 500; line-height: 1.4; }

/* Gimmick: Grid Kategori */
.gn-cat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gn-cat-grid li a { display: block; padding: 10px; text-align: center; background: rgba(255,255,255,0.05); color: #ccd6f6; text-decoration: none; font-size: 12px; font-weight: bold; text-transform: uppercase; border-radius: 6px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05); }
.gn-cat-grid li a:hover { background: #00c3ff; color: #000; border-color: #00c3ff; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,195,255,0.2); }

/* --- 5. RESPONSIVE MOBILE FIX --- */
@media (max-width: 992px) {
    .gn-desktop-nav { display: none; }
}
@media (max-width: 768px) {
    .gn-header-spacer { height: 100px !important; }
    .gn-glass-header { width: 100%; top: 0; border-radius: 0; border: none; }
    .gn-header-inner { padding: 10px 15px; }
    .gn-brand img { height: 40px !important; }
    .gn-brand-text h1 { font-size: 18px; }
    .gn-brand-text span { font-size: 10px; }
    .gn-btn-premium { display: none; } 
    .gn-sidebar { width: 300px; }
    .gn-ticker-badge { font-size: 10px; padding: 0 10px; }
    .gn-ticker-scroll marquee { font-size: 12px; }
}
/* =========================================================
   PERBAIKAN GAP AMAN (TIDAK MERUSAK LAYOUT)
   ========================================================= */

/* Kunci Spacer agar ukurannya pas dengan Header + Ticker */
.gn-header-spacer {
    height: 120px !important;
    min-height: 120px !important;
    width: 100% !important;
    display: block !important;
    background: transparent !important;
}

/* Hilangkan margin/padding bawaan tema TANPA merusak layout */
.site-content, #content, .site-main, #primary {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Pastikan konten web Anda terlihat kembali */
body {
    background-color: #111 !important; /* Kembalikan warna background */
}
