/*
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.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elang-tiga-hambalang
*/

/* --- VARIABEL & RESET --- */
:root {
  --primary-black: #0f0f0f; 
  --dark-bg: #000000; 
  --gold-accent: #D4AF37; 
  --text-dark: #333333;
  --text-gray: #666666;
  --light-bg: #f4f4f4;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text-dark); background: var(--light-bg); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: var(--gold-accent); }
img { max-width: 100%; height: auto; display: block; }
}
/* 1. Bebaskan kotak pelindung logo dari semua batasan tinggi */
.site-header, 
.main-header, 
.header-inner, 
.branding, 
.branding a {
    height: auto !important;
    min-height: fit-content !important;
}

/* 2. Ini yang bikin logonya besar secara paksa mutlak */
.branding img {
    height: 300px !important; /* GANTI ANGKA INI UNTUK MENGATUR UKURAN LOGO */
    width: auto !important;
    max-height: none !important;
    min-height: 120px !important;
    display: block !important;
    object-fit: contain !important;
    margin: 5px 0 !important;
}

/* 3. Khusus di layar HP agar tidak memenuhi layar */
@media (max-width: 768px) {
    .branding img {
        height: 60px !important; 
        min-height: 50px !important;
    }
}
/* --- HEADER DESKTOP (Hitam & Emas) --- */
/* 1. Mencegah elemen lain ikut melar mengikuti tinggi logo */
.header-inner, 
.main-header,
.header-actions {
    align-items: center !important; 
}

/* 2. Mengunci tinggi kotak pencarian ke ukuran normal */
.search-container, 
form.search-container {
    align-self: center !important;
    height: fit-content !important;
    display: flex !important;
    align-items: stretch !important;
}

/* 3. Menormalkan ukuran kotak input teks dan tombol "Cari" */
.search-container input {
    height: 42px !important; /* Kunci tinggi input */
    padding: 0 15px !important;
    font-size: 14px !important;
}

.search-container button,
.btn-search {
    height: 42px !important; /* Kunci tinggi tombol */
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 4. Mencegah Breaking News Box (kalau ada) ikut raksasa */
.breaking-box {
    height: fit-content !important;
    align-self: center !important;
    padding: 8px 20px !important;
}

.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 5%; border-bottom: 1px solid #222; background: #050505; }
.btn-subscribe { background: var(--gold-accent); color: var(--primary-black); padding: 6px 15px; font-size: 11px; font-weight: 800; border-radius: 2px; letter-spacing: 0.5px; }
.search-form { display: flex; }
.search-form input { padding: 6px 10px; width: 220px; border: 1px solid #333; border-radius: 3px 0 0 3px; outline: none; background: #1a1a1a; color: #fff; font-size: 13px; }
.search-form button { padding: 6px 12px; background: var(--gold-accent); color: var(--primary-black); border: none; border-radius: 0 3px 3px 0; cursor: pointer; font-weight: bold; font-size: 13px; }

/* Area Branding & Links */
.site-branding { padding: 15px 5%; display: flex; align-items: center; justify-content: space-between; background: var(--primary-black); position: relative; }
.branding-left { display: flex; align-items: center; gap: 15px; }
.branding-left img { height: 55px; width: auto; }
.branding-left h1 { color: var(--gold-accent); font-size: 22px; text-transform: uppercase; margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.5px; }

.header-quick-links { display: flex; gap: 20px; }
.header-quick-links a { color: #ccc; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 5px 0; border-bottom: 2px solid transparent; }
.header-quick-links a:hover { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }

.header-right-actions { display: flex; align-items: center; gap: 10px; }
.btn-dots { background: transparent; color: var(--gold-accent); border: 1px solid #333; font-size: 18px; width: 38px; height: 38px; border-radius: 4px; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.menu-toggle { display: none; background: var(--gold-accent); color: var(--primary-black); padding: 8px 12px; border-radius: 4px; font-weight: bold; font-size: 14px; cursor: pointer; align-items: center; gap: 5px; }

/* Navigasi Utama */
.main-navigation { background: #0a0a0a; border-top: 1px solid #222; padding: 0 5%; }
.main-navigation ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; }
.main-navigation ul li a { display: block; padding: 12px 15px; color: #bbb; font-weight: 600; font-size: 13px; text-transform: uppercase; }
.main-navigation ul li a:hover { color: #fff; background: #1a1a1a; }

/* Ticker */
.news-ticker { background: var(--primary-black); color: #fff; padding: 8px 5%; font-size: 12px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #222; }
.news-ticker .label { color: var(--gold-accent); font-weight: bold; white-space: nowrap; }

/* --- HEADER KHUSUS BACA --- */
.reading-header { background: var(--primary-black); padding: 0; }
.reading-header .header-inner { padding: 10px 5%; display: flex; justify-content: space-between; align-items: center; }
.btn-exit { color: var(--gold-accent); border: 1px solid var(--gold-accent); padding: 5px 10px; border-radius: 3px; font-size: 12px; font-weight: bold; }
.reading-title { color: #fff; font-size: 14px; text-align: center; margin: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }

/* --- SIDEBAR OFF-CANVAS --- */
.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(2px); }
.offcanvas-sidebar { position: fixed; top: 0; right: -320px; width: 280px; height: 100%; background: #111; z-index: 2001; transition: 0.3s; 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; margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.offcanvas-header h3 { color: var(--gold-accent); margin: 0; font-size: 16px; text-transform: uppercase; }
.close-offcanvas { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.offcanvas-cat-list { list-style: none; }
.offcanvas-cat-list li a { display: block; padding: 10px 0; color: #ccc; border-bottom: 1px dashed #333; font-size: 14px; }

/* --- LAYOUT KONTEN --- */
.container { width: 92%; max-width: 1100px; margin: 25px auto; }
.home-grid { display: grid; grid-template-columns: 7fr 3fr; gap: 30px; }

/* Kartu Berita */
.post-card { background: #fff; border-radius: 6px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #eee; }
.post-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.post-content-box { padding: 20px; }
.tag-hukum { background: var(--primary-black); color: var(--gold-accent); padding: 3px 8px; font-size: 10px; font-weight: 700; border-radius: 2px; display: inline-block; margin-bottom: 8px; text-transform: uppercase; }
.post-card h2 { font-size: 20px; line-height: 1.4; margin-bottom: 10px; color: #111; font-weight: 700; }
.post-card p { font-size: 15px; color: #555; line-height: 1.6; margin-bottom: 0; }
.time { font-size: 11px; color: #888; margin-left: 8px; }

/* Sidebar Widget */
.widget { background: #fff; padding: 20px; border-radius: 6px; margin-bottom: 25px; border: 1px solid #eee; border-top: 3px solid var(--primary-black); }
.widget-title { font-size: 16px; font-weight: 700; margin-bottom: 15px; border-bottom: 2px solid #f0f0f0; padding-bottom: 8px; display: flex; justify-content: space-between; }
.widget-title span { color: var(--gold-accent); }
.populer-list li { padding: 10px 0; border-bottom: 1px dashed #eee; display: flex; gap: 10px; }
.populer-list li a { font-size: 14px; font-weight: 600; line-height: 1.4; }
.subscribe-box { background: var(--primary-black); color: #fff; text-align: center; border-color: var(--gold-accent); }
.subscribe-box input { width: 100%; padding: 10px; margin: 10px 0; border: none; border-radius: 3px; }
.subscribe-box button { width: 100%; padding: 10px; background: var(--gold-accent); border: none; font-weight: bold; cursor: pointer; }

/* Footer */
.site-footer { background: #080808; color: #fff; padding: 50px 0 20px; border-top: 4px solid var(--gold-accent); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; margin-bottom: 30px; }
.footer-widget h4 { color: var(--gold-accent); font-size: 16px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-recent-posts li { border-bottom: 1px solid #222; padding-bottom: 8px; margin-bottom: 8px; }
.footer-post-title { font-size: 13px; line-height: 1.4; color: #ddd; display: block; }
.site-info { border-top: 1px solid #222; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: #666; }

/* ==========================================================================
   MOBILE OPTIMIZATION (RESPONSIVE) - BAGIAN PALING PENTING
   ========================================================================== */

/* Tablet & Mobile Header Sticky Logic */
.site-header.sticky { position: fixed; top: 0; left: 0; width: 100%; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.site-header.sticky ~ .header-spacer { display: block; height: 160px; }
.site-header.sticky .top-bar, 
.site-header.sticky .news-ticker, 
.site-header.sticky .main-navigation,
.site-header.sticky .header-quick-links,
.site-header.sticky .branding-left h1 { display: none !important; }

/* Sticky Mode Layout Mobile */
.site-header.sticky .site-branding { padding: 10px 5%; justify-content: space-between; }
.site-header.sticky .branding-left img { height: 35px; }
.site-header.sticky .menu-toggle { display: flex; padding: 5px 10px; font-size: 12px; }

/* --- TAMPILAN KHUSUS PONSEL (Layar < 768px) --- */
@media (max-width: 768px) {
  /* Header Mobile Normal */
  .top-bar { display: none; } /* Sembunyikan bar atas */
  .header-quick-links { display: none; } /* Sembunyikan menu teks 'Terbaru' dll di HP */
  .header-right-actions .btn-dots { display: none; } /* Sembunyikan titik 3, ganti pakai menu hamburger saja */
  
  .site-branding { padding: 12px 15px; flex-wrap: wrap; }
  .branding-left h1 { font-size: 16px; max-width: 180px; }
  .branding-left img { height: 40px; }
  .menu-toggle { display: flex; margin-left: auto; } /* Munculkan tombol Hamburger */

  /* Navigasi Mobile (Dropdown) */
  .main-navigation { display: none; width: 100%; background: #111; padding: 0; text-align: left; }
  .main-navigation.active { display: block; animation: slideDown 0.3s ease; }
  .main-navigation ul { flex-direction: column; }
  .main-navigation ul li { width: 100%; border-bottom: 1px solid #222; }
  .main-navigation ul li a { padding: 15px; }
  
  /* Layout Konten Mobile */
  .container { width: 100%; padding: 0 15px; }
  .home-grid { grid-template-columns: 1fr; gap: 20px; } /* Jadi 1 Kolom */
  
  /* Kartu Berita Mobile */
  .post-card img { height: 200px; }
  .post-card h2 { font-size: 18px; }
  .post-content-box { padding: 15px; }
  
  /* Sidebar Mobile */
  .sidebar-area { margin-top: 10px; }
  
  /* Footer Mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-widget { text-align: center; }
  .site-info { flex-direction: column; text-align: center; gap: 10px; }
  
  /* Header Baca Mobile */
  .reading-logo { display: none; } /* Sembunyikan logo saat baca di HP biar judul muat */
  .reading-title { max-width: 200px; font-size: 13px; }
  .site-header.sticky ~ .header-spacer { height: 70px; } /* Jarak spacer lebih kecil di HP */
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
/* =========================================
   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://elangtigajusticenews.com/wp-content/uploads/2026/02/JUSTICE-NEWS-new.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; }
}
/* 1. Bebaskan kotak pelindung logo dari semua batasan tinggi */
.site-header, 
.main-header, 
.header-inner, 
.branding, 
.branding a {
    height: auto !important;
    min-height: fit-content !important;
}

/* 2. Ini yang bikin logonya besar secara paksa mutlak */
.branding img {
    height: 300px !important; /* GANTI ANGKA INI UNTUK MENGATUR UKURAN LOGO */
    width: auto !important;
    max-height: none !important;
    min-height: 120px !important;
    display: block !important;
    object-fit: contain !important;
    margin: 5px 0 !important;
}

/* 3. Khusus di layar HP agar tidak memenuhi layar */
@media (max-width: 768px) {
    .branding img {
        height: 60px !important; 
        min-height: 50px !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;
    }
}