/*
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-brown: #5D4037; 
  --dark-brown: #3E2723;    
  --accent-yellow: #FFC107; 
  --accent-red: #D32F2F;    
  --bg-light: #F5F6FA;      
  --text-dark: #333333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background: var(--bg-light); color: var(--text-dark); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--accent-yellow); }
img { max-width: 100%; height: auto; display: block; }

/* --- HEADER UPGRADE (SATU WARNA COKLAT) --- */
.top-bar { background: var(--dark-brown); color: #fff; padding: 8px 5%; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.top-bar-links { display: flex; gap: 20px; }
.top-bar-social { display: flex; gap: 15px; color: var(--accent-yellow); font-size: 14px; cursor: pointer; }

/* Main header sekarang berwarna Coklat */
.main-header { background: var(--primary-brown); padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.branding { display: flex; align-items: center; gap: 15px; transition: 0.3s; }
.branding img { height: 55px; }
.branding h1 { font-size: 26px; font-weight: 900; color: #fff; text-transform: uppercase; margin: 0; line-height: 1; letter-spacing: -0.5px; }
.branding h1 span { color: var(--accent-red); } /* Tulisan 'NEWS' berwarna Merah */

/* Aksi Header Kanan */
.header-actions { display: flex; align-items: center; gap: 15px; }

/* Search Bar Modern disesuaikan dengan latar coklat */
.search-container { display: flex; border-radius: 4px; overflow: hidden; }
.search-container input { padding: 10px 15px; border: 2px solid var(--accent-yellow); border-right: none; width: 220px; outline: none; font-size: 13px; background: #fff; color: var(--dark-brown); }
.search-container button { padding: 10px 20px; background: var(--accent-yellow); border: none; font-weight: 900; cursor: pointer; color: var(--dark-brown); transition: 0.3s; }
.search-container button:hover { background: var(--accent-red); color: #fff; }

/* Tombol Titik Tiga */
.btn-dots { background: transparent; color: var(--accent-yellow); border: 2px solid var(--accent-yellow); font-size: 20px; font-weight: bold; width: 40px; height: 40px; border-radius: 4px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.3s; }
.btn-dots:hover { background: var(--accent-yellow); color: var(--primary-brown); }

/* Wrapper Menu & Ticker */
.header-bottom-wrapper { width: 100%; background: var(--primary-brown); z-index: 1000; transition: all 0.3s ease; }
.main-navigation { padding: 0 5%; }
.main-navigation ul { list-style: none; display: flex; }
.main-navigation ul li a { display: block; padding: 16px 20px; color: #fff; font-weight: 700; text-transform: uppercase; font-size: 14px; border-bottom: 3px solid transparent; transition: 0.3s; }
.main-navigation ul li a:hover, .main-navigation ul li.current-menu-item a { background: rgba(0,0,0,0.15); border-bottom-color: var(--accent-yellow); color: var(--accent-yellow); }

/* Ticker Breaking News */
.breaking-ticker { background: var(--dark-brown); color: #fff; display: flex; align-items: center; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 2px solid var(--accent-red); }
.ticker-label { background: var(--accent-red); color: #fff; padding: 8px 15px; font-weight: 900; white-space: nowrap; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.ticker-label::before { content: ''; display: inline-block; width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: blink 1s infinite; }
.breaking-ticker marquee { padding: 0 15px; font-weight: 600; color: #ddd; }
.breaking-ticker a { color: #fff; }
.breaking-ticker a:hover { color: var(--accent-yellow); text-decoration: underline; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Sticky Mode */
.header-bottom-wrapper.sticky { position: fixed; top: 0; left: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.header-bottom-wrapper.sticky .breaking-ticker { display: none; } 

/* Mode Baca Single.php */
.reading-header { background: var(--primary-brown); padding: 10px 5%; display: flex; justify-content: space-between; align-items: center; position: fixed; width: 100%; top:0; z-index: 999; border-bottom: 2px solid var(--accent-yellow); box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.btn-exit { color: var(--accent-yellow); font-weight: bold; border: 1px solid var(--accent-yellow); padding: 5px 12px; border-radius: 3px; font-size: 12px; transition: 0.3s; }
.btn-exit:hover { background: var(--accent-yellow); color: var(--primary-brown); }
.reading-title { color: #fff; font-size: 14px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.reading-logo { height: 35px; }

/* Menu Toggle Mobile */
.menu-toggle { display: none; background: var(--accent-yellow); color: var(--primary-brown); padding: 10px 15px; font-weight: 900; cursor: pointer; border-radius: 4px; font-size: 14px; }

/* Responsive Mobile Header Fix */
@media (max-width: 768px) {
    .main-header { flex-wrap: wrap; gap: 15px; padding: 15px; }
    .branding h1 { font-size: 18px; }
    .branding img { height: 40px; }
    
    .search-container, .btn-dots { display: none; } /* Sembunyikan search & titik 3 di HP, pakai hamburger saja */
    .menu-toggle { display: block; margin-left: auto; }
    
    .header-bottom-wrapper .main-navigation { display: none; }
    .ticker-label { font-size: 11px; padding: 8px 10px; }
    .breaking-ticker marquee { font-size: 12px; }
    
    .reading-logo { display: none; }
    .reading-title { max-width: 55%; font-size: 13px; }
    .reading-header .btn-dots { display: flex; border:none; width:auto; height:auto; }
}

/* Wrapper Menu & Ticker */
.header-bottom-wrapper { width: 100%; background: var(--primary-brown); z-index: 1000; transition: all 0.3s ease; }
.main-navigation { padding: 0 5%; }
.main-navigation ul { list-style: none; display: flex; }
.main-navigation ul li a { display: block; padding: 16px 20px; color: #fff; font-weight: 700; text-transform: uppercase; font-size: 14px; border-bottom: 3px solid transparent; transition: 0.3s; }
.main-navigation ul li a:hover, .main-navigation ul li.current-menu-item a { background: rgba(0,0,0,0.15); border-bottom-color: var(--accent-yellow); color: var(--accent-yellow); }

/* Ticker Breaking News */
.breaking-ticker { background: var(--dark-brown); color: #fff; display: flex; align-items: center; font-size: 13px; border-bottom: 2px solid var(--accent-red); }
.ticker-label { background: var(--accent-red); color: #fff; padding: 8px 15px; font-weight: 900; white-space: nowrap; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.ticker-label::before { content: ''; display: inline-block; width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: blink 1s infinite; }
.breaking-ticker marquee { padding: 0 15px; font-weight: 600; color: #ddd; }
.breaking-ticker a { color: #fff; }
.breaking-ticker a:hover { color: var(--accent-yellow); text-decoration: underline; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Sticky Mode Attributes */
.header-bottom-wrapper.sticky { position: fixed; top: 0; left: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.header-bottom-wrapper.sticky .breaking-ticker { display: none; } /* Sembunyikan ticker saat scroll agar rapi */

/* Mode Baca Single.php */
.reading-header { background: var(--dark-brown); padding: 10px 5%; display: flex; justify-content: space-between; align-items: center; position: fixed; width: 100%; top:0; z-index: 999; border-bottom: 2px solid var(--accent-yellow); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.btn-exit { color: var(--accent-yellow); font-weight: bold; border: 1px solid var(--accent-yellow); padding: 5px 12px; border-radius: 3px; font-size: 12px; transition: 0.3s; }
.btn-exit:hover { background: var(--accent-yellow); color: var(--dark-brown); }
.reading-title { color: #fff; font-size: 14px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.reading-logo { height: 35px; }

/* Menu Toggle Mobile */
.menu-toggle { display: none; background: var(--accent-yellow); color: var(--dark-brown); padding: 10px 15px; font-weight: 900; cursor: pointer; border-radius: 3px; font-size: 14px; }

/* --- SECTIONS BERSAMA --- */
.container { width: 90%; max-width: 1200px; margin: 30px auto; }
.section-title { font-size: 18px; font-weight: 900; color: var(--primary-brown); text-transform: uppercase; border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 20px; position: relative; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 50px; height: 2px; background: var(--accent-red); }

/* --- HERO SECTION --- */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 40px; }
.hero-main { position: relative; background: #333; height: 350px; border-radius: 4px; overflow: hidden; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.hero-content { position: absolute; bottom: 30px; left: 30px; color: #fff; right: 30px; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
.tag-yellow { background: var(--accent-yellow); color: var(--dark-brown); padding: 4px 10px; font-weight: 900; font-size: 12px; display: inline-block; margin-bottom: 10px; text-transform: uppercase; text-shadow: none; }
.hero-content h2 { font-size: 28px; font-weight: 900; text-transform: uppercase; line-height: 1.2; }

.hero-side { display: flex; flex-direction: column; gap: 20px; }
.hero-side-item { position: relative; background: #444; height: 165px; border-radius: 4px; overflow: hidden; }
.hero-side-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.tag-brown { background: var(--primary-brown); color: #fff; padding: 4px 10px; font-weight: bold; font-size: 10px; display: inline-block; position: absolute; top: 15px; left: 15px; text-transform: uppercase; }
.hero-side-content { position: absolute; bottom: 15px; left: 15px; right: 15px; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.4; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }

/* --- LATEST NEWS --- */
.latest-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.news-card { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-card-body { padding: 15px; position: relative; }
.news-card .tag-brown { top: -12px; left: 15px; } 
.news-card h3 { font-size: 14px; line-height: 1.4; margin-top: 10px; font-weight: 700; }

.subscribe-widget { background: var(--primary-brown); padding: 20px; text-align: center; border-radius: 4px; }
.subscribe-widget h4 { color: #fff; font-size: 16px; margin-bottom: 15px; }
.subscribe-widget input { width: 100%; padding: 10px; margin-bottom: 10px; border: none; outline: none; }
.subscribe-widget button { width: 100%; padding: 10px; background: var(--accent-yellow); color: var(--dark-brown); font-weight: bold; border: none; cursor: pointer; }

/* --- PUBLIC SERVICE --- */
.public-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.public-card { background: #fff; padding: 20px; border-top: 3px solid var(--primary-brown); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.public-card h3 { font-size: 14px; color: var(--primary-brown); margin-bottom: 10px; }
.public-card p { font-size: 12px; color: #666; line-height: 1.5; }
.public-image-card { background: #fff; overflow: hidden; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.public-image-card img { height: 150px; width: 100%; object-fit: cover; }
.public-image-card .desc { padding: 15px; font-size: 13px; font-weight: 700; }

/* --- PRESS RELEASE --- */
.press-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 40px; }
.press-main img { width: 100%; border-radius: 4px; margin-top: 15px; }
.press-main h2 { font-size: 22px; font-weight: 900; line-height: 1.3; }
.press-side-item { position: relative; border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.press-side-item img { width: 100%; height: 150px; object-fit: cover; }
.press-overlay { position: absolute; top: 0; left: 0; right: 0; background: rgba(93, 64, 55, 0.9); color: #fff; padding: 10px; font-size: 12px; font-weight: bold; }

/* --- FOOTER --- */
.site-footer { background: var(--primary-brown); color: #fff; padding: 50px 0 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; width: 90%; max-width: 1200px; margin: auto; padding-bottom: 40px; }
.footer-brand img { height: 60px; margin-bottom: 15px; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: #ddd; margin-bottom: 20px; }
.contact-info { font-size: 13px; line-height: 2; color: #ddd; }
.footer-col h4 { font-size: 16px; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #ddd; font-size: 13px; }
.footer-col ul li a:hover { color: var(--accent-yellow); }

.footer-bottom { background: var(--dark-brown); padding: 20px 5%; display: flex; justify-content: space-between; font-size: 12px; color: #aaa; border-top: 3px solid var(--accent-yellow); }

/* --- OFF CANVAS MOBILE MENU --- */
.mobile-menu-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.7); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; }
.mobile-menu { position: fixed; top:0; right:-300px; width:280px; height:100vh; background: var(--primary-brown); z-index: 2001; transition: 0.3s; padding: 20px; border-left: 3px solid var(--accent-yellow); overflow-y:auto; }
.mobile-menu.active { right: 0; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li a { display: block; padding: 15px; border-bottom: 1px dashed rgba(255,255,255,0.2); color: #fff; font-weight: bold; text-transform: uppercase; }

/* Responsive Mobile Header Fix */
@media (max-width: 768px) {
    /* 1. Baris Logo */
    .main-header { flex-direction: column; align-items: stretch; gap: 15px; padding: 15px; }
    .branding { justify-content: center; width: 100%; }
    .branding h1 { font-size: 20px; }
    .branding img { height: 45px; }
    
    /* 2. Baris Search, Titik Tiga, dan Menu */
    .header-actions { display: flex; width: 100%; justify-content: space-between; gap: 8px; }
    
    /* Kotak pencarian menyesuaikan sisa lebar layar */
    .search-container { flex-grow: 1; border-radius: 4px; }
    .search-container input { width: 100%; padding: 8px 10px; font-size: 13px; }
    .search-container button { padding: 8px 12px; font-size: 12px; }
    
    /* Munculkan kembali titik tiga dan atur ukurannya */
    .btn-dots { display: flex; width: 38px; height: 38px; font-size: 18px; padding: 0; margin: 0; }
    
    /* Tombol Menu Mobile */
    .menu-toggle { display: flex; align-items: center; justify-content: center; padding: 0 12px; margin: 0; font-size: 13px; }
    
    /* Sembunyikan navigasi teks panjang */
    .header-bottom-wrapper .main-navigation { display: none; }
    
    /* Rapikan Ticker di HP */
    .ticker-label { font-size: 11px; padding: 8px 10px; }
    .breaking-ticker marquee { font-size: 12px; }
    
    /* Mode Baca di HP */
    .reading-logo { display: none; }
    .reading-title { max-width: 55%; font-size: 13px; }
    .reading-header .btn-dots { display: flex; border:none; width:auto; height:auto; padding: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://elangtigatribratanews.com/wp-content/uploads/2026/02/TRIBRATA-NEWS-.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;
    }
}