/*
Theme Name: Suara Media
Theme URI: https://example.com
Author: Anda
Description: Tema portal berita/media online "Suara Media" - ringan dan cepat, mendukung iklan lokal (upload gambar sendiri) sekaligus Google AdSense. Dibangun dari nol tanpa page builder berat.
Version: 1.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: suara-media
Tags: news, blog, grid-layout, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f5f7;
  color: #1a1a1a;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block;
    width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================================
   TOP BAR (tanggal/jam + sosial media)
   ========================================================= */
.top-bar { background: #0d2b52; color: #dbe4f0; font-size: 12px; }
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}
.top-bar-clock { font-variant-numeric: tabular-nums; }
.top-bar-clock { font-size: 14px; padding-left: 21px; }
.top-bar-social { display: flex; gap: 10px; }
.top-bar-social a {
  color: #dbe4f0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  text-transform: uppercase;
}
.top-bar-social a:hover { background: #c0392b; text-decoration: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid #c0392b;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 10px;
}
.site-branding { text-align: left; flex: 1; }
.site-branding .site-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0;
}
.site-branding .site-title a { color: #1a1a1a; }
.site-branding .site-description {
  font-size: 12px;
  color: #777;
  margin: 0;
}

.site-branding img.custom-logo {
    width: 230px; 
}
.main-nav-wrap { background: #0d2b52; }
.main-nav-wrap .container { display: flex; flex-direction: column; }
.main-nav { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.main-nav::-webkit-scrollbar { height: 4px; }
.main-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 4px; }
/* PENTING: pakai ">" supaya hanya ul level atas yang di-flex, bukan submenu di dalamnya */
.main-nav > ul { display: flex; flex-wrap: nowrap; gap: 18px; white-space: nowrap; }
.main-nav-row1 > ul { padding: 10px 0; }
.main-nav-row2 { border-top: 1px solid rgba(255,255,255,.15); }
.main-nav-row2 > ul { padding: 8px 0; gap: 16px; }
.main-nav-row2 a { font-size: 12px; font-weight: 500; text-transform: none; }
.main-nav li { position: relative; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #fff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a:hover { color: #ffd0c8; text-decoration: none; }
.main-nav .menu-item-has-children > a::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
}
/* Submenu di-"portal" ke <body> lewat JS supaya tidak terpotong oleh scroll horizontal nav */
.pr-dropdown-portal {
  display: none;
  position: fixed;
  min-width: 210px;
  background: #0d2b52;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  border-radius: 0 0 6px 6px;
  padding: 6px 0;
  z-index: 2000;
}
.pr-dropdown-portal li { border-bottom: 1px solid rgba(255,255,255,.08); }
.pr-dropdown-portal li:last-child { border-bottom: none; }
.pr-dropdown-portal a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  text-transform: none;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
.pr-dropdown-portal a:hover { background: rgba(192,57,43,.3); color: #fff; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 25px;
  color: #1a1a1a;
}


/* =========================================================
   SEARCH (Pencarian)
   ========================================================= */
/* 1. Container Utama Header Search (Moda Terbuka) */

.search-toggle {
  background: none;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
}
.header-search { display: none; padding: 12px 0; border-top: 1px solid #eee; }
.header-search.is-open { display: block; }
.header-search {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Bayangan halus di bawah header */
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease-in-out;
}

/* 2. Merapikan Elemen Form */
.header-search .search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 650px; /* Batas lebar form agar tidak terlalu melebar */
    margin: 0 auto;   /* Posisikan persis di tengah */
    position: relative;
}

/* Sembunyikan Teks Aksesibilitas Screen Reader */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Memastikan label mengisi ruang pencarian */
.header-search .search-form label {
    flex: 1;
    margin: 0;
}

/* 3. Input Kolom Pencarian */
.header-search .search-field {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: #333333;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 30px 0 0 30px; /* Sudut melengkung di sisi kiri */
    outline: none;
    transition: all 0.2s ease;
}

/* Efek saat Input Kolom Pencarian Diklik/Aktif */
.header-search .search-field:focus {
    background-color: #ffffff;
    border-color: #d9534f; /* Berubah warna aksen tema saat diketik */
}

/* 4. Tombol Submit "Cari" */
.header-search .search-submit {
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #d9534f; /* Warna tombol sesuai tema */
    border: 2px solid #d9534f;
    border-radius: 0 30px 30px 0; /* Sudut melengkung di sisi kanan */
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: -2px; /* Menutup celah piksel antara input & button */
}

/* Efek Hover Tombol Submit */
.header-search .search-submit:hover {
    background-color: #052578;
    border-color: #052578;
}

/* 5. Penyesuaian Responsif untuk Layar HP */
@media (max-width: 576px) {
    .header-search {
        padding: 10px 0;
    }
    
    .header-search .search-field {
        padding: 10px 15px;
        font-size: 0.88rem;
    }

    .header-search .search-submit {
        padding: 10px 18px;
        font-size: 0.88rem;
    }
}   

/* =========================================================
   MOBILE DRAWER MENU (geser dari kiri)
   ========================================================= */
.mobile-drawer {
  position: fixed;
  top: 0px; left: 0;
  width: 300px;
  max-width: 84%;
  height: 100%;
  background: #0d1522;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  /*box-shadow: 4px 0 24px rgba(0,0,0,.35);*/
  display: flex;
  flex-direction: column;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgb(255 255 255);
  border-bottom: 3px solid #c0392b;
  flex-shrink: 0;
}
.mobile-drawer-head .custom-logo { max-height: 56px; width: auto; }
.mobile-drawer-title { color: #fff; font-weight: 700; font-size: 16px; }
.drawer-close {
  background: rgb(0 19 110 / 80%);
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}
.drawer-close:hover { background: #c0392b; }
/*new*/
/* 1. Container Utama Mobile Drawer Search */
.mobile-drawer-search {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 2. Merapikan Elemen Form */
.mobile-drawer-search .search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.mobile-drawer-search .search-form label {
    flex: 1;
    margin: 0;
}

/* Sembunyikan teks screen reader agar tidak merusak tampilan */
.mobile-drawer-search .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 3. Kolom Input Pencarian */
.mobile-drawer-search input[type="search"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px 0 0 6px; /* Lengkungan di sisi kiri */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right: none; /* Menghilangkan border kanan agar menyatu dengan tombol */
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.mobile-drawer-search input[type="search"]::placeholder {
    color: #8b93a3;
}

/* Efek saat input diklik/aktif */
.mobile-drawer-search input[type="search"]:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 4. Tombol Submit "Cari" */
.mobile-drawer-search input[type="submit"] {
    padding: 10px 14px;
    border-radius: 0 6px 6px 0; /* Lengkungan di sisi kanan */
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #d9534f; /* Warna aksen tombol suaramediaa.id */
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-drawer-search input[type="submit"]:hover {
    background: #c9302c;
}
/*.mobile-drawer-search { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }*/
/*.mobile-drawer-search input[type="search"] {*/
/*  width: 100%;*/
/*  padding: 9px 12px;*/
/*  border-radius: 5px;*/
/*  border: 1px solid rgba(255,255,255,.15);*/
/*  background: rgba(255,255,255,.06);*/
/*  color: #fff;*/
/*  font-size: 13px;*/
/*}*/
/*.mobile-drawer-search input[type="search"]::placeholder { color: #8b93a3; }*/
.mobile-drawer-nav { padding: 6px 0; flex: 1; background-color: rgb(255 255 255); }
.mobile-drawer-nav ul { display: flex; flex-direction: column; }
.mobile-drawer-nav li { position: relative; border-bottom: 1px solid rgb(173 10 10 / 0%); }
.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  color: #021c48;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, padding-left .15s;
}
.mobile-drawer-nav a::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #565f70;
  font-size: 12px;
}
.mobile-drawer-nav .menu-item-has-children > a { padding-right: 46px; }
.mobile-drawer-nav .menu-item-has-children > a::after { content: ""; }
.mobile-drawer-nav a:hover {
  background: ;
  padding-left: 20px;
  color: #fff;
  text-decoration: none;
}
/* Tombol buka/tutup submenu (accordion) di drawer mobile */
.drawer-submenu-toggle {
  position: absolute;
  top: 4px; right: 4px;
  width: 38px; height: 38px;
  background: none;
  border: none;
  color: #9aa4b2;
  cursor: pointer;
  font-size: 12px;
}
.drawer-submenu-toggle i { transition: transform .2s ease; }
.mobile-drawer-nav li.is-open > .drawer-submenu-toggle i { transform: rotate(180deg); }
.mobile-drawer-nav .sub-menu { display: none; background: rgba(0,0,0,.18); }
.mobile-drawer-nav .sub-menu a {
  padding-left: 32px;
  font-size: 13px;
  font-weight: 500;
}
.mobile-drawer-nav .sub-menu a::after { content: ""; }
.mobile-drawer-subheading {
    margin: 6px -1px 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: #f2f0ff;
    padding-top: 17px;
    padding-left: 17px;
    padding-bottom: 17px;
    background-color: #04174a;
  /*margin: 10px 16px 4px;*/
  /*font-size: 11px;*/
  /*text-transform: uppercase;*/
  /*letter-spacing: .5px;*/
  /*color: #6b7484;*/
}
.menu-secondary a { font-size: 13px; font-weight: 500; }
.mobile-drawer-social {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.mobile-drawer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.mobile-drawer-social a:hover { background: #c0392b; }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1000;
  display: none;
  transition: background .35s ease;
}
.drawer-overlay.is-open { display: block; background: rgba(0,0,0,.5); }

/* =========================================================
   BREAKING NEWS TICKER
   ========================================================= */
.breaking-ticker {
  background: #14161c;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.breaking-label {
  background: #c0392b;
  padding: 0 16px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track-wrap { overflow: hidden; flex: 1; height: 46px; }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  width: max-content;
  height: 100%;
}
.ticker-track.is-paused { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 10px; color: #fff; }
.ticker-item:hover .ticker-item-title { color: #ff8a7a; }
.ticker-item-thumb {
  width: 50px; height: 50px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  /*background: #2a2f3a;*/
}
.wp-block-image img {
    width: 100%;
}
.ticker-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ticker-item-body { display: flex; flex-direction: column; line-height: 1.25; }
.ticker-item-time { font-size: 10px; color: #022454; }
.ticker-item-title { font-size: 13px; }
.ticker-pause {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #fff;
  padding: 0 16px;
  height: 46px;
  cursor: pointer;
  font-size: 13px;
}
.ticker-pause:hover { color: #c0392b; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   AD SLOTS
   ========================================================= */
.ad-slot {
  margin: 18px 0;
  text-align: center;
  min-height: 0;
}
.ad-slot .widget-title { display: none; }
.ad-slot-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 4px;
}
.local-ad-banner {
  position: relative;
  margin: 18px 0;
  text-align: center;
  border-radius: 6px;
  overflow: hidden;
}
.local-ad-banner img { width: 100%; height: auto; border-radius: 6px; }
.local-ad-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 3px;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  margin: 24px 0;
  align-items: start;
}
@media (max-width: 880px) {
  .content-layout { grid-template-columns: 1fr; }
}

/* =========================================================
   BACA JUGA (Tampilan Modern & Elegan)
   ========================================================= */
/* Box utama Baca Juga */
.baca-juga {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f8f9fa; /* Warna latar bersih/soft */
    border-left: 4px solid #d9534f; /* Garis aksen di sisi kiri */
    padding: 12px 16px;
    margin: 20px 0;
    /*border-radius: 0 8px 8px 0;*/
    box-shadow: 0 2px 5px rgb(0 0 0 / 8%); /* Bayangan halus */
    transition: all 0.3s ease;
}

/* Efek saat box di-hover */
.baca-juga:hover {
    background-color: #f1f3f5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Label "Baca Juga:" dan ikon */
.baca-juga-label {
    font-weight: 700;
    color: #d9534f; /* Warna teks label disamakan dengan aksen garis */
    white-space: nowrap; /* Mencegah kata "Baca Juga:" terputus jadi 2 baris */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

/* Ukuran dan warna ikon FontAwesome */
.baca-juga-label i {
    font-size: 1rem;
}

/* Link Judul Artikel */
.baca-juga a {
    color: #212529; /* Warna teks gelap yang nyaman dibaca */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

/* Efek saat judul artikel di-hover */
.baca-juga a:hover {
    color: #d9534f; /* Warna berubah saat diarahkan kursor */
    text-decoration: underline;
}

/* Penyesuaian Tampilan HP / Layar Kecil */
@media (max-width: 576px) {
    .baca-juga {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 14px;
    }
}
/* =========================================================
   SECTION: CATEGORY BLOCK
   ========================================================= */
.category-block { margin-bottom: 32px; }
.category-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.category-block-header h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-left: 4px solid #c0392b;
  padding-left: 10px;
}
.category-block-header a {
  font-size: 12px;
  font-weight: 600;
  color: #c0392b;
}
.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .news-grid { grid-template-columns: 1fr; }
}
/* =========================================================
   FIX FOR NEWS CARD LAYOUT
   ========================================================= */
.news-card { 
  background: #fff; 
  border-radius: 6px; 
  overflow: hidden; 
  box-shadow: 0 1px 3px rgba(0,0,0,.08); 
  display: flex;
  flex-direction: column; /* Memastikan gambar di atas dan teks di bawah */
  height: 100%;
}

.news-thumb { 
  display: block;
  width: 100%;
  aspect-ratio: 16/11; 
  overflow: hidden; 
  background: #e6e6e6; 
  flex-shrink: 0; /* Mencegah gambar ciut jika teks panjang */
}

.news-card.is-featured .news-thumb { 
  aspect-ratio: 16/10; 
}

.news-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform .3s; 
  display: block;
}

.news-card:hover .news-thumb img { 
  transform: scale(1.04); 
}

.news-body { 
  padding: 12px 14px; 
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Mengisi sisa ruang card */
}

.news-body h3 { 
  font-size: 15px; 
  margin: 0 0 6px 0; 
  line-height: 1.3;
}

.news-body h3 a {
  color: #1a1a1a;
  text-decoration: none;
}

.news-body h3 a:hover {
  color: #c0392b;
}

.news-card.is-featured .news-body h3 { 
  font-size: 20px; 
}

.news-meta { 
  font-size: 11px; 
  color: #888; 
  margin-bottom: 6px;
}

.news-excerpt { 
  font-size: 13px; 
  color: #555; 
  margin-top: 6px; 
  line-height: 1.4;
}
/* =========================================================
   HERO SLIDER (artikel unggulan homepage)
   ========================================================= */
.hero-slider {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #e6e6e6;
  margin-bottom: 24px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 40px 20px 18px;
}
.hero-slide-caption a { color: #fff; font-size: 20px; font-weight: 700; }
.hero-slide-caption .news-meta { color: #ddd; margin-top: 6px; }
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.4);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  z-index: 5;
}
.hero-nav:hover { background: #c0392b; }
.hero-nav.prev { left: 12px; }
.hero-nav.next { right: 12px; }
.hero-dots {
  position: absolute;
  bottom: 14px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.hero-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.is-active { background: #fff; }

/* =========================================================
   BADGE VIDEO DI THUMBNAIL (grid, sidebar, hero, dll)
   ========================================================= */
.video-play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(192,57,43,.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  pointer-events: none;
}
.news-thumb, .ticker-item-thumb, .popular-post-item .thumb, .footer-recent-posts .thumb {
  position: relative;
}
.popular-post-item .video-play-badge,
.ticker-item-thumb .video-play-badge,
.footer-recent-posts .video-play-badge { width: 22px; height: 22px; font-size: 9px; }

/* =========================================================
   EMBED VIDEO YOUTUBE RESPONSIF (halaman single)
   ========================================================= */
.entry-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 18px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.entry-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   Iklan Tengah Artikel
   ========================================================= */
/* Container luar pembungkus iklan */
.ad-slot-wrap {
    display: contents;
    justify-content: center;
    align-items: center;
    margin: 30px 0; /* Jarak atas-bawah dari paragraf artikel */
    padding: 0;
    width: 100%;
}

/* Kotak area iklan */
.ad-slot {
    position: relative;
    background-color: #fafafa; /* Warna latar halus */
    border: 1px solid #eaeaea;   /* Garis tipis pembatas */
    border-radius: 8px;         /* Sudut sedikit melengkung */
    padding: 24px 15px 15px 15px; /* Padding atas disisa kan untuk label "IKLAN" */
    max-width: 100%;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03); /* Bayangan sangat lembut */
    transition: box-shadow 0.3s ease;
}

/* Efek saat kursor diarahkan ke area iklan */
.ad-slot:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Label penanda "IKLAN" di pojok atas */
.ad-slot::before {
    content: "IKLAN";
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #999999;
    text-transform: uppercase;
}

/* Merapikan tag <figure> bawaan Gutenberg/WordPress */
.ad-slot figure.wp-block-image {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
}

/* Menjaga presisi ukuran dan kelengkungan gambar iklan */
.ad-slot img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* Menyesuaikan lengkungan gambar di dalam box */
    margin: 0 auto;
}
/* =========================================================
   TOMBOL BAGIKAN
   ========================================================= */
/* Container Utama Tombol Bagikan */
.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Mencegah tombol terpotong di layar HP sempit */
    gap: 10px;      /* Jarak antar tombol */
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;    /* Garis pemisah halus atas */
    border-bottom: 1px solid #f0f0f0; /* Garis pemisah halus bawah */
}

/* Label "Bagikan:" */
.share-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #444444;
    margin-right: 5px;
}

/* Base Style untuk Semua Tombol */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Jarak antara ikon FontAwesome dan Teks */
    padding: 8px 16px;
    border-radius: 50px; /* Bentuk kapsul (pill style) khas tren modern */
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff !important; /* Memastikan teks selalu putih */
    text-decoration: none !important;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Efek umum saat tombol disorot kursor / di-tap */
.share-btn:hover {
    transform: translateY(-2px); /* Tombol terangkat sedikit ke atas */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

/* Ukuran Ikon */
.share-btn i {
    font-size: 1rem;
}

/* --- WARNA KHUSUS BRAND --- */

/* WhatsApp */
.share-wa {
    background-color: #25D366;
}
.share-wa:hover {
    background-color: #20ba5a;
}

/* Facebook */
.share-fb {
    background-color: #1877F2;
}
.share-fb:hover {
    background-color: #1365d0;
}

/* Telegram */
.share-tg {
    background-color: #229ED9;
}
.share-tg:hover {
    background-color: #1b87ba;
}

/* Responsif untuk Layar HP / Mobile */
@media (max-width: 576px) {
    .share-buttons {
        gap: 8px;
    }
    .share-label {
        width: 100%; /* Membuat tulisan "Bagikan:" ada di baris tersendiri di HP */
        margin-bottom: 4px;
    }
    .share-btn {
        flex: 1; /* Membuat ukuran tombol membagi rata lebar layar HP */
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}
/*.share-buttons {*/
/*  display: flex;*/
/*  flex-wrap: wrap;*/
/*  align-items: center;*/
/*  gap: 8px;*/
/*  margin: 16px 0;*/
/*  padding: 12px 0;*/
/*  border-top: 1px solid #eee;*/
/*  border-bottom: 1px solid #eee;*/
/*}*/
/*.share-label { font-size: 13px; font-weight: 700; color: #555; margin-right: 4px; }*/
/*.share-btn {*/
/*  display: inline-flex;*/
/*  align-items: center;*/
/*  gap: 1px;*/
/*  padding: 7px 14px;*/
/*  border-radius: 3px;*/
/*  font-size: 12px;*/
/*  font-weight: 600;*/
/*  color: #fff;*/
/*}*/
/*.share-btn:hover { opacity: .88; text-decoration: none; color: #fff; }*/
/*.share-wa { background: #25d366; }*/
/*.share-fb { background: #1877f2; }*/
/*.share-tg { background: #229ed9; }*/

/* =========================================================
   SIDEBAR
   ========================================================= */
.widget { background: #fff; border-radius: 6px; padding: 16px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.widget-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.popular-post-item { display: flex; gap: 10px; margin-bottom: 14px; }
.popular-post-item .thumb {
  position: relative;
  width: 105px;
  height: 105px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e6e6e6;
}
.popular-post-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-post-item .num {
  position: absolute;
  bottom: 0; left: 0;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.popular-post-item h4 { font-size: 13px; margin: 0; }
.popular-post-item .cat-label { font-size: 10px; text-transform: uppercase; color: #c0392b; font-weight: 700; }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-post { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.single-post .entry-title { font-size: 28px; }
.single-post .entry-meta { font-size: 12px; color: #888; margin-bottom: 16px; }
.single-post .entry-thumb { margin-bottom: 18px; border-radius: 6px; overflow: hidden; }
.single-post .entry-content { font-size: 16px; }
.single-post .entry-content p { margin: 0 0 1.2em; }
.in-content-ad { margin: 24px 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #0d1117; color: #ccc; margin-top: 40px; padding: 44px 0 0; font-size: 13px; }
.site-footer a { color: #dbe4f0; }
.site-footer a:hover { color: #ff6b5c; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #232936;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-left: 3px solid #c0392b;
  padding-left: 8px;
  margin-bottom: 14px;
}
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.footer-desc { color: #9aa4b2; line-height: 1.6; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #1c2230;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-transform: uppercase;
}
.footer-social a:hover { background: #c0392b; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: #b7c0cc; font-size: 13px; }
.footer-recent-posts li a { display: flex; align-items: center; gap: 10px; }
.footer-recent-posts .thumb { width: 44px; height: 44px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #1c2230; }
.footer-recent-posts .thumb img { width: 100%; height: 100%; object-fit: cover; }
.footer-recent-posts .txt { font-size: 12.5px; line-height: 1.4; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  color: #8b93a3;
  font-size: 12px;
}
.back-to-top {
  background: #1c2230;
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}
.back-to-top:hover { background: #c0392b; }

/* =========================================================
   RESPONSIVE NAV
   ========================================================= */
@media (max-width: 780px) {
  .top-bar-inner { font-size: 11px; }
  .site-header-inner { padding: 10px 16px; }
  .menu-toggle { display: inline-block; }
  .site-branding { text-align: center; }
  .site-branding .site-title { font-size: 20px; }

  /* Nav baris biasa disembunyikan di mobile, diganti drawer geser */
  .main-nav-wrap { display: none; }

  .hero-slide-caption a { font-size: 16px; }
  .hero-nav { width: 28px; height: 28px; font-size: 13px; }
}