/*
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 {
  --bg-body: #2B3A2C;        /* Hijau Militer (Background Utama) */
  --bg-card: #384A39;        /* Hijau Militer Terang (Kotak Berita) */
  --bg-darker: #135725;      /* Hijau Militer Gelap (Header & Footer) */
  --accent-gold: #D4AF37;    /* Emas Mewah */
  --accent-white: #FFFFFF;   /* Putih Bersih */
  --text-main: #F4F6F4;      /* Putih Tulang untuk Teks Bacaan */
  --text-muted: #A3B5A4;     /* Hijau Pudar untuk Teks Tanggal/Kecil */
  --font-heading: 'times-new-roman', times-new-roman;
  --font-body: 'Roboto', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-body); background: var(--bg-body); color: var(--text-main); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--accent-gold); }
img { max-width: 100%; height: auto; display: block; }
/* =========================================
   HEADER MILITER (STRUKTUR KAKU & RAPI)
   ========================================= */
.mh-header { width: 100%; background: #135725; z-index: 1000; position: relative; font-family: var(--font-heading); }

/* --- BARIS 1: TOP BAR --- */
.mh-top-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 5%; height: 40px; background: #0A0D0B; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mh-btn-sub { background: var(--accent-gold); color: #000; font-size: 12px; font-weight: 900; padding: 0 25px; height: 100%; display: flex; align-items: center; text-transform: uppercase; letter-spacing: 1px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: 0.3s; }
.mh-btn-sub:hover { background: #fff; }
.mh-search { display: flex; height: 28px; background: #111; border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 2px; }
.mh-search input { background: transparent; border: none; padding: 0 10px; color: #fff; font-size: 12px; width: 220px; outline: none; font-family: var(--font-body); }
.mh-search button { background: var(--accent-gold); color: #000; border: none; padding: 0 15px; cursor: pointer; font-weight: bold; }

/* --- BARIS 2: MAIN AREA --- */
.mh-main-area { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: #143d1f; gap: 20px; border-bottom: 3px solid var(--accent-gold); }

/* Branding (Logo + Text) Dikunci agar tidak tumpah */
.mh-branding { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.mh-logo-box { display: flex; align-items: center; justify-content: center; height: 60px; min-width: 60px; }
.mh-logo-box img { height: 60px !important; width: auto !important; max-width: 200px; object-fit: contain; }
.mh-titles { display: flex; flex-direction: column; justify-content: center; white-space: nowrap; }
.mh-titles h1 { color: var(--accent-gold); font-size: 28px; line-height: 1; margin: 0; letter-spacing: 1px; text-transform: uppercase; }
.mh-titles span { color: var(--accent-white); font-size: 14px; font-weight: 700; letter-spacing: 3px; margin-top: 4px; text-transform: uppercase; }

/* Navigasi Tengah */
.mh-nav { flex-grow: 1; display: flex; justify-content: flex-end; overflow: hidden; }
.mh-nav ul { list-style: none; display: flex; gap: 5px; margin: 0; padding: 0; }
.mh-nav ul li a { display: block; padding: 10px 15px; color: var(--accent-white); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; border-bottom: 2px solid transparent; white-space: nowrap; }
.mh-nav ul li a:hover { color: var(--accent-gold); border-bottom: 2px solid var(--accent-gold); }

/* Tombol Menu Kanan (Titik Tiga) */
.mh-actions { flex-shrink: 0; }
.btn-dots { background: transparent; color: var(--accent-gold); border: 2px solid var(--accent-gold); width: 42px; height: 42px; display: flex; justify-content: center; align-items: center; font-size: 20px; font-weight: bold; cursor: pointer; transition: 0.3s; border-radius: 4px; }
.btn-dots:hover { background: var(--accent-gold); color: #000; }

/* --- BARIS 3: TICKER LATEST INTEL --- */
.mh-ticker-bar { display: flex; height: 40px; background: #111; overflow: hidden; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mh-ticker-badge { background: #D32F2F; color: #fff; font-size: 13px; font-weight: 900; padding: 0 20px; display: flex; align-items: center; white-space: nowrap; letter-spacing: 1px; flex-shrink: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 0 100%); margin-right: -10px; z-index: 2; position: relative; }
.mh-ticker-scroll { flex-grow: 1; display: block; height: 40px; overflow: hidden; padding-left: 15px; white-space: nowrap; }
.mh-ticker-scroll marquee { font-family: 'Courier New', monospace; font-size: 13px; color: #bbb; line-height: 40px; width: 100%; display: block; }
.mh-ticker-scroll marquee a { color: #fff; font-weight: bold; transition: 0.3s; }
.mh-ticker-scroll marquee a:hover { color: var(--accent-gold); text-decoration: underline; }

/* --- STICKY BEHAVIOR --- */
.mh-header.sticky { position: fixed; top: 0; left: 0; box-shadow: 0 5px 20px rgba(0,0,0,0.8); }
.mh-header.sticky .mh-top-bar, .mh-header.sticky .mh-ticker-bar { display: none; }
.mh-header.sticky .mh-main-area { padding: 10px 5%; }
.mh-header.sticky .mh-logo-box img { height: 45px !important; }
.mh-header.sticky .mh-titles h1 { font-size: 22px; }
.mh-header.sticky .mh-titles span { font-size: 11px; }
.header-spacer { display: none; height: 160px; }
.mh-header.sticky ~ .header-spacer { display: block; }

/* --- RESPONSIVE MOBILE FIX --- */
@media (max-width: 992px) {
    .mh-nav { display: none; }
}
@media (max-width: 768px) {
    /* Sembunyikan top bar di HP agar tidak sumpek */
    .mh-top-bar { display: none; } 
    
    /* Rapikan posisi logo dan tombol di HP */
    .mh-main-area { padding: 15px; flex-wrap: nowrap; justify-content: space-between; }
    .mh-branding { gap: 10px; width: calc(100% - 50px); }
    .mh-logo-box { height: 45px; min-width: 45px; }
    .mh-logo-box img { height: 45px !important; }
    .mh-titles h1 { font-size: 18px; }
    .mh-titles span { font-size: 10px; letter-spacing: 2px; }
    
    .btn-dots { width: 38px; height: 38px; font-size: 16px; }
    
    /* Rapikan Ticker di HP */
    .mh-ticker-badge { padding: 0 15px 0 10px; font-size: 11px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); margin-right: -5px; }
    .mh-ticker-scroll marquee { font-size: 12px; }
}
/* --- 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; }
.offcanvas-sidebar { position: fixed; top:0; right:-320px; width:300px; height:100vh; background: var(--bg-darker); z-index: 2001; transition: 0.4s ease; padding: 20px; border-left: 2px solid var(--accent-gold); overflow-y: auto; }
.offcanvas-sidebar.active { right: 0; }
.offcanvas-overlay.active { opacity: 1; visibility: visible; }
.close-offcanvas { font-size: 24px; color: var(--accent-white); background: none; border: none; cursor: pointer; float: right; }
.offcanvas-cat-list { list-style: none; clear: both; margin-top: 20px; }
.offcanvas-cat-list li a { display: block; padding: 15px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); font-family: var(--font-heading); font-size: 16px; text-transform: uppercase; color: var(--accent-white); letter-spacing: 1px; }

/* --- SECTIONS BERSAMA --- */
.container { width: 92%; max-width: 1200px; margin: 40px auto; }
.section-title { background: var(--bg-card); display: inline-block; padding: 10px 20px; font-family: var(--font-heading); font-size: 18px; color: var(--accent-gold); text-transform: uppercase; border: 1px solid var(--accent-gold); margin-bottom: 20px; letter-spacing: 1px; }

/* --- HERO SECTION --- */
.hero-section { background: var(--bg-card); padding: 30px; border: 1px solid rgba(255,255,255,0.05); display: flex; gap: 30px; margin-bottom: 40px; }
.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-label { color: var(--accent-gold); font-family: var(--font-heading); font-size: 16px; margin-bottom: 15px; letter-spacing: 1px; }
.hero-content h2 { font-family: var(--font-heading); font-size: 32px; line-height: 1.2; margin-bottom: 15px; color: var(--accent-white); }
.hero-content p { font-size: 14px; color: var(--text-main); line-height: 1.6; margin-bottom: 25px; }
.hero-action { display: flex; align-items: center; gap: 20px; }
.btn-read { background: var(--accent-gold); color: var(--bg-darker); padding: 10px 20px; font-family: var(--font-heading); font-size: 14px; text-transform: uppercase; font-weight: bold; }
.hero-date { font-size: 13px; color: var(--text-muted); }

.hero-image { flex: 1; background: #222; position: relative; min-height: 250px; border: 1px solid rgba(255,255,255,0.1); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-cat { position: absolute; bottom: 0; left: 0; background: rgba(0,0,0,0.8); color: var(--accent-white); padding: 8px 15px; font-family: var(--font-heading); font-size: 12px; border-top: 2px solid var(--accent-gold); text-transform: uppercase; }

/* --- MAIN LAYOUT (GRID) --- */
.main-grid { display: grid; grid-template-columns: 7fr 3fr; gap: 30px; }

/* Kiri (Card Berita) */
.card { background: var(--bg-card); padding: 15px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; display: flex; flex-direction: column; }
.card:hover { border-color: var(--accent-gold); }
.card img { width: 100%; height: 150px; object-fit: cover; background: #222; margin-bottom: 15px; }
.card h3 { font-family: var(--font-heading); font-size: 16px; line-height: 1.3; margin-bottom: 15px; flex-grow: 1; color: var(--accent-white); }
.card .date { font-size: 11px; color: var(--text-muted); }

.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }

/* Kanan (Sidebar Lists) */
.sidebar-list { background: var(--bg-darker); padding: 20px; border: 1px solid var(--accent-gold); margin-bottom: 30px; }
.sidebar-list ul { list-style: none; }
.sidebar-list ul li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-list ul li a { display: block; padding: 15px 0; font-family: var(--font-heading); font-size: 15px; color: var(--accent-white); }
.sidebar-list ul li a::before { content: '>'; color: var(--accent-gold); margin-right: 10px; font-weight: bold; }

/* --- SINGLE ARTICLE --- */
.single-article { background: var(--bg-card); padding: 40px; border: 1px solid rgba(255,255,255,0.05); margin-bottom: 40px; }
.single-title { font-family: var(--font-heading); font-size: 36px; color: var(--accent-gold); margin-bottom: 20px; line-height: 1.2; text-transform: uppercase; }
.single-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.single-content { font-size: 16px; line-height: 1.8; color: var(--text-main); }
.single-content img { border-radius: 4px; margin-bottom: 20px; border: 1px solid var(--accent-gold); }

/* --- FOOTER --- */
.site-footer { background: var(--bg-darker); border-top: 3px solid var(--accent-gold); margin-top: 50px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 50px 5%; }
.footer-brand h2 { font-family: var(--font-heading); font-size: 24px; color: var(--accent-gold); margin-bottom: 15px; text-transform: uppercase; line-height: 1.2; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.footer-col h4 { font-family: var(--font-heading); font-size: 18px; color: var(--accent-gold); margin-bottom: 20px; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--accent-white); font-size: 14px; font-weight: 500; }
.footer-social { display: flex; gap: 15px; font-size: 20px; color: var(--accent-white); }
.footer-bottom { background: var(--accent-gold); color: var(--bg-darker); padding: 20px 5%; display: flex; justify-content: space-between; font-size: 13px; font-weight: bold; font-family: var(--font-heading); }

/* --- MOBILE RESPONSIVE ADAPTIVE --- */
@media (max-width: 992px) {
    .main-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .hero-section { flex-direction: column; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-header { position: relative; }
    .header-inner { flex-wrap: wrap; height: auto; }
    .branding { width: 100%; justify-content: space-between; padding: 15px 5%; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .branding h1 { font-size: 20px; }
    
    .main-navigation { display: none; }
    .breaking-box { width: 100%; flex-direction: row; align-items: center; justify-content: flex-start; gap: 15px; padding: 10px 5%; }
    .breaking-label { margin: 0; }
    
    .btn-dots { display: block; }
    .menu-toggle { display: flex; }
    .header-actions-mobile { display: flex; align-items: center; }

    .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .hero-content h2 { font-size: 24px; }
    .hero-action { flex-direction: column; align-items: flex-start; gap: 10px; }
    
    .footer-top { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 10px; }
}
.footer-social { display: flex; gap: 18px; font-size: 22px; color: var(--accent-white); margin-top: 10px; }
.footer-social a { transition: all 0.3s ease; display: inline-block; }
.footer-social a:hover { color: var(--accent-gold); transform: translateY(-5px); } /* Efek ikon melompat sedikit saat disentuh mouse */
/* =========================================================
   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://elangtigamilitarynews.com/wp-content/uploads/2026/02/bgmilitary.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;
    }
}/* =========================================
   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;
    }
}
/* =========================================
   FOOTER MILITER (GRID 4 KOLOM TEGAS)
   ========================================= */
.universal-footer { background: #111111; padding: 60px 0 0 0; color: #d1d1d1; border-top: 3px solid var(--accent-gold, #D4AF37); margin-top: 50px; font-family: var(--font-body, sans-serif); }
.universal-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; width: 92%; max-width: 1200px; margin: 0 auto; padding-bottom: 50px; }

/* Kolom 1: Branding */
.universal-footer .footer-logo { height: 65px; margin-bottom: 15px; width: auto; }
.universal-footer .footer-site-title { font-family: var(--font-heading, 'Oswald', sans-serif); font-size: 26px; color: var(--accent-gold, #D4AF37); margin-bottom: 15px; text-transform: uppercase; line-height: 1.1; }
.universal-footer .footer-site-title span { color: #fff; font-size: 14px; letter-spacing: 2px; }
.universal-footer .footer-description { font-size: 14px; line-height: 1.7; color: #aaaaaa; margin-bottom: 25px; }
.universal-footer .footer-contact-info p { font-size: 13px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; color: #aaaaaa; }
.universal-footer .footer-contact-info i { color: var(--accent-gold, #D4AF37); font-size: 15px; width: 20px; text-align: center; }

/* Kolom 2 & 3: Navigasi List */
.universal-footer .footer-heading { font-family: var(--font-heading, 'Oswald', sans-serif); font-size: 18px; color: #ffffff; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--accent-gold, #D4AF37); padding-bottom: 10px; display: inline-block; }
.universal-footer .footer-col ul { list-style: none; padding: 0; margin: 0; }
.universal-footer .footer-col ul li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.universal-footer .footer-col ul li a { color: #aaaaaa; font-size: 14px; display: block; padding: 12px 0; transition: 0.3s; font-weight: 500; text-transform: uppercase; }
.universal-footer .footer-col ul li a:hover { color: var(--accent-gold, #D4AF37); padding-left: 8px; border-left: 2px solid var(--accent-gold, #D4AF37); background: rgba(255,255,255,0.02); }

/* Kolom 4: Sosial Media (Desain Tactical Box) */
.universal-footer .footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.universal-footer .footer-social a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: #222; color: #fff; font-size: 18px; transition: 0.3s; border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 3px; }
.universal-footer .footer-social a:hover { background: var(--accent-gold, #D4AF37); color: #000; transform: translateY(-3px); }

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

/* RESPONSIVE MOBILE FIX */
@media (max-width: 992px) {
    .universal-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .universal-footer { padding-top: 40px; }
    .universal-footer .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .universal-footer .footer-contact-info p { justify-content: center; }
    .universal-footer .footer-heading { width: 100%; border-bottom: 1px solid rgba(212, 175, 55, 0.3); }
    .universal-footer .footer-col ul li a:hover { padding-left: 0; border-left: none; color: var(--accent-gold, #D4AF37); }
    .universal-footer .footer-social { justify-content: center; }
    .universal-footer .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
/* =========================================
   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: 1200px !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;
    }
}
/* =========================================
   FIXED: FOOTER MILITARY STYLE
   ========================================= */
.military-footer {
    background: #1a1a1a; /* Hitam Arang */
    color: #b0b0b0; /* Abu-abu terang */
    padding-top: 60px;
    margin-top: 50px;
    border-top: 4px solid #D4AF37; /* Garis Emas di atas */
    font-family: var(--font-body, sans-serif);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* 4 Kolom: Kolom 1 lebih lebar */
    gap: 40px;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* Styling Kolom Branding */
.footer-logo { height: 70px; width: auto; margin-bottom: 15px; object-fit: contain; }
.footer-title { font-family: var(--font-heading, serif); font-size: 24px; color: #fff; margin-bottom: 15px; }
.footer-title span { color: #D4AF37; } /* Kata MILITARY berwarna emas */
.footer-desc { font-size: 14px; line-height: 1.6; margin-bottom: 25px; }
.footer-contact p { font-size: 13px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-contact i { color: #D4AF37; }

/* Styling Judul & Link */
.tactical-heading {
    font-family: var(--font-heading, serif);
    font-size: 16px;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
}
.tactical-heading::after { /* Garis kecil di bawah judul */
    content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 2px; background: #D4AF37;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; border-bottom: 1px dashed #333; padding-bottom: 8px; }
.footer-links li a { color: #b0b0b0; text-decoration: none; transition: 0.3s; font-size: 14px; }
.footer-links li a:hover { color: #D4AF37; padding-left: 5px; }

/* Styling Tombol Sosmed Taktis */
.tactical-social { display: flex; gap: 10px; }
.tactical-social a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: #2c2c2c;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    transition: 0.3s;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%); /* Sudut terpotong */
}
.tactical-social a:hover { background: #D4AF37; color: #000; }

/* Copyright Bar */
.footer-bottom {
    background: #111;
    text-align: center;
    padding: 20px;
    font-size: 12px;
    border-top: 1px solid #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RESPONSIVE MOBILE (Agar tidak berantakan di HP) */
@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; } /* Jadi 1 kolom di HP */
    .footer-logo { margin: 0 auto 15px auto; }
    .footer-contact p { justify-content: center; }
    .tactical-heading::after { left: 50%; transform: translateX(-50%); }
    .tactical-social { justify-content: center; }
}
/* =========================================================
   REVISI TOTAL: MOBILE FIX MILITARY NEWS HEADER
   ========================================================= */
@media (max-width: 768px) {
    /* 1. Paksa Baris Utama Menyamping (Membunuh susunan sate ke bawah) */
    .mh-header .mh-main-area {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Paksa Logo & Judul Berdampingan Rapat di Kiri */
    .mh-header .mh-branding {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        width: calc(100% - 50px) !important; /* Sediakan ruang 50px untuk tombol titik tiga */
        margin: 0 !important;
    }

    /* 3. Cegah Logo Raksasa di HP */
    .mh-header .mh-logo-box {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    .mh-header .mh-logo-box img {
        height: 40px !important;
        width: auto !important;
        max-width: 50px !important;
        margin: 0 !important;
    }

    /* 4. Rapikan Teks Judul (Rata Kiri, Bukan Rata Tengah) */
    .mh-header .mh-titles {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    .mh-header .mh-titles h1 {
        font-size: 18px !important;
        margin: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
    .mh-header .mh-titles span {
        font-size: 10px !important;
        letter-spacing: 2px !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
    }

    /* 5. Paksa Tombol Titik Tiga Nyangkut di Kanan */
    .mh-header .mh-actions {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }
    .mh-header .btn-dots {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    /* 6. Perbaiki Ticker "Latest Intel" yang Tergencet */
    .mh-header .mh-ticker-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        height: 35px !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    .mh-header .mh-ticker-badge {
        font-size: 10px !important;
        padding: 0 10px !important;
        height: 35px !important;
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%) !important;
        margin-right: -5px !important;
    }
    .mh-header .mh-ticker-scroll {
        height: 35px !important;
        display: flex !important;
        align-items: center !important;
    }
    .mh-header .mh-ticker-scroll marquee {
        line-height: 35px !important;
        font-size: 12px !important;
    }
	/* =========================================================
   KUNCI MATI HEADER HP (LOGO & TITIK TIGA WAJIB SEBARIS)
   ========================================================= */
@media (max-width: 768px) {
    /* 1. Paksa area utama menjadi SATU BARIS (Row) dan dilarang turun (Nowrap) */
    .mh-header .mh-main-area {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* INI KUNCI UTAMANYA: Dilarang turun baris */
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Batasi area Logo & Judul agar menyisakan ruang untuk tombol */
    .mh-header .mh-branding {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        flex: 1 1 auto !important;
        max-width: calc(100% - 50px) !important; /* Sediakan ruang 50px di kanan */
        margin: 0 !important;
    }

    /* 3. Kunci Tombol Titik Tiga di Posisi Kanan Atas */
    .mh-header .mh-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: 45px !important;
        flex-shrink: 0 !important; /* Pastikan tombol tidak tergencet/mengecil */
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .mh-header .btn-dots {
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
    }
}
}