body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f8;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* HEADER */
header {
    background: #8aade2;
    color: white;
    padding: 15px 0;
}

header .brand {
    font-size: 26px;
    font-weight: bold;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

nav a:hover {
    text-decoration: underline;
}

/* GRID BERITA */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* CARD */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.card-body p {
    color: #555;
    font-size: 14px;
}

/* DETAIL */
.detail img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
}

.detail h1 {
    margin-top: 20px;
}

/* FOOTER */
footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.homepage {
  display: grid;
  grid-template-columns: 330px minmax(0,1fr) 300px;
  gap: 20px;
  align-items: start;
}

/* ===== SIDEBAR KIRI (seperti contoh) ===== */
.kolom-kiri{
  background:#fff;
  padding:14px;
}

.side-section{
  margin-bottom:18px;
}

.side-title{
  font-size:20px;
  font-weight:800;
  color:#000000;            /* warna judul seperti contoh (oranye) */
  margin:0 0 12px 0;
  padding-bottom:8px;
  border-bottom:2px solid #73bbff;
}

.side-row{
  display:flex;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid #eee;
}

.side-thumb img{
  width:52px;
  height:52px;
  object-fit:cover;
  border-radius:4px;
  display:block;
}

.side-text{
  min-width:0;
}

.side-link{
  display:block;
  font-size:14px;
  color:#111;
  text-decoration:none;
  line-height:1.35;
}

.side-link:hover{
  text-decoration:underline;
}

.side-meta{
  font-size:12px;
  color:#0b518b;            /* hijau kecil seperti contoh */
  margin-top:4px;
}

/* Foto grid tetap rapi */
.foto-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:6px;
}
.foto-grid img{
  width:100%;
  height:90px;
  object-fit:cover;
  border-radius:4px;
  display:block;
}

.kolom-tengah, .kolom-kanan {
    background: #fff;
    padding: 15px;
}

.side-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.news-item img {
    width: 200px;
    height: 130px;
    object-fit: cover;
}


.foto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.foto-grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.news-item img {
    width: 180px;
    height: 120px;
    object-fit: cover;
}

.box {
  background: #fffbe6;
  padding: 20px;
  text-align: left; /* ganti dari center */
  border-radius: 10px;
}

.slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.slider img {
  height: 240px;
  object-fit: cover;
}

.slider-box {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.slide {
    position: relative;
    margin-bottom: 10px;
}

.slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 6px;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.caption a {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}
.caption a:hover {
    text-decoration: underline;
}

/* Left sidebar banner carousel */
.banner-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

/* Popup modal banner */
.pb-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.pb-modal.is-open { display: flex; }
.pb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.pb-modal__card {
  position: relative;
  width: min(92vw, 700px);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,.25);
  z-index: 1;
}
.pb-modal__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.pb-modal__title {
  font-weight: 700;
  margin-top: 10px;
}
.pb-modal__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pb-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.pb-btn {
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b518b;
  color: #fff;
  cursor: pointer;
}
.pb-btn--ghost {
  background: #f1f5f9;
  color: #0b518b;
}

/* TOPBAR */
.topbar {
    background: #2e8563;
    color: #fff;
    font-size: 13px;
}

.topbar-flex {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.topbar a {
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
}

/* HEADER */
.main-header {
    background: #0b518b;
    position: relative; 
    z-index: 1000;
    padding: 1px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
}

/* MENU */
.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* SUB MENU */
.sub-menu {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.sub-flex {
    display: flex;
    gap: 15px;
    padding: 8px 0;
}

.sub-flex a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}
.sub-flex a:hover {
    text-decoration: underline;
}

/* BREAKING NEWS */
.breaking-news {
    background: #fff;
    border-bottom: 2px solid #0b518b;
}

.breaking-flex {
    display: flex;
    align-items: center;
}

.breaking-title {
    background: #0b518b;
    color: #fff;
    padding: 8px 15px;
    font-weight: bold;
}

.breaking-running {
    flex: 1;
    padding-left: 10px;
}

.breaking-running a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}
.breaking-running a:hover {
    text-decoration: underline;
}
/* DETAIL BERITA */
.detail-berita {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
}

.detail-berita h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.detail-berita .meta {
    color: #777;
    margin-bottom: 15px;
}

.img-detail {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 20px;
}

.isi-berita {
    font-size: 16px;
    line-height: 1.8;
}

/* ===== HEADLINE ===== */
.headline {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  margin: 18px auto;
  max-width: 1200px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.headline img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.headline-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.headline .meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.headline h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
}

.headline h2 a {
  color: #111;
  text-decoration: none;
}

.headline h2 a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .headline {
    grid-template-columns: 1fr;
  }
  .headline img {
    height: 200px;
  }
}

.badge-headline {
  display: inline-block;
  background: #dc3545;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 6px;
  font-weight: bold;
}
.badge-headline:hover {
  background: #c82333;
}

.meta {
  font-size: 14px;
  color: #555;
}

.meta a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.meta a:hover {
  text-decoration: underline;
}

/* Badge Role */
.badge-role {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  vertical-align: middle;
}

.badge-admin {
  background: #dc3545; /* merah */
}

.badge-editor {
  background: #0d6efd; /* biru */
}
.badge-contributor {
  background: #198754; /* hijau */
}

/* Search Box */
.search-box input{
  padding:7px 10px;
  border:1px solid #ddd;
  border-radius:8px;
}
.search-box button{
  padding:7px 12px;
  border:0;
  border-radius:8px;
  cursor:pointer;
}
mark{
  padding:0 3px;
  border-radius:4px;
}

.related-news{
  margin-top:40px;
}
.related-news h3{
  margin-bottom:15px;
}
.related-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:16px;
}
.related-item{
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
}
.related-item img{
  width:100%;
  height:140px;
  object-fit:cover;
}
.related-item h4{
  font-size:15px;
  margin:10px;
}
.related-item small{
  display:block;
  margin:0 10px 10px;
  color:#777;
}

/* ===== SLIDER HOMEPAGE (di kolom tengah) ===== */
.homepage-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.pengumuman{
  margin: 10px 0 18px;
}

/* GRID 3 KOLOM */
.homepage{
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

/* ===== LOCK SIZE SLIDER (FIXED FRAME) ===== */
#newsSwiper {
  width: 100% !important;
  height: 260px !important;     /* UBAH ANGKA ini kalau mau lebih kecil/besar */
  overflow: hidden !important;
  border-radius: 10px !important;
  position: relative !important;
}

/* semua bagian swiper ikut tinggi frame */
#newsSwiper .swiper-wrapper,
#newsSwiper .swiper-slide {
  height: 100% !important;
}

/* gambar WAJIB ikut frame, bukan frame ikut gambar */
#newsSwiper .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;     /* crop otomatis */
  object-position: center !important;
  display: block !important;
}

/* kalau ada css lama yg ganggu */
.slider, .slide, .slide img {
  height: auto !important;
}
#newsSwiper .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}

#newsSwiper .caption a {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
#newsSwiper .caption a:hover {
  text-decoration: underline;
}


/* RESPONSIVE */
@media (max-width: 768px){
  .homepage{ grid-template-columns: 1fr; }
  #newsSwiper{ height: 180px; }
}

/* ===== DETAIL GRID (2 kolom) ===== */
.detail-grid{
  display:grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap:20px;
  align-items:start;
  max-width:1200px;
  margin: 18px auto;
  padding: 0 15px;
}
@media(max-width: 900px){
  .detail-grid{ grid-template-columns:1fr; }
}

.widget-box{
  background:#fff;
  padding:14px;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,0.06);
  margin-bottom:14px;
}

.widget-box h3{
  margin:0 0 10px 0;
  font-size:16px;
}

/* share bar */
.share-bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:16px 0;
}
.share-bar a, .share-bar button{
  padding:8px 12px;
  border-radius:8px;
  border:1px solid #ddd;
  background:#fff;
  cursor:pointer;
  text-decoration:none;
  color:#111;
  font-size:14px;
}
.share-bar a:hover, .share-bar button:hover{
  background:#f0f0f0;
}

/* reactions */
.reaction-bar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:10px 0 6px 0;
}
.reaction-btn{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #ddd;
  background:#fff;
  cursor:pointer;
  font-size:14px;
}
.reaction-btn[aria-pressed="true"]{
  border-color:#0b518b;
  box-shadow:0 0 0 2px rgba(11,81,139,0.10);
}
.reaction-count{ font-weight:700; margin-left:4px; }
.reaction-hint{ color:#777; font-size:12px; }

/* ===== BERITA TERBARU STYLE (seperti contoh) ===== */
.latest-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#0b518b; /* blue */
  padding:10px 12px;
  border-radius:6px;
  margin-bottom:10px;
}

.latest-title{
  color:#fff;
  font-weight:800;
  letter-spacing:.5px;
  font-size:14px;
}

.latest-link{
  color:#fff;
  text-decoration:none;
  font-size:13px;
}
.latest-link:hover{ text-decoration:underline; }

.latest-item{
  display:grid;
  grid-template-columns: minmax(0,1fr) 180px;
  gap:14px;
  padding:14px 0;
  border-bottom:1px dashed #cfcfcf;
}

.latest-judul{
  margin:0;
  font-size:20px;
  line-height:1.1;
}
.latest-judul a{
  color:#111;
  text-decoration:none;
}
.latest-judul a:hover{ text-decoration:underline; }

.latest-meta{
  margin-top:6px;
  font-size:12px;
  color:#0b518b;
  font-weight:600;
}

.latest-excerpt{
  margin:10px 0 0;
  font-size:13px;
  color:#444;
  line-height:1.6;
}

.latest-thumb img{
  width:100%;
  height:120px;
  object-fit:cover;
  border-radius:4px;
  display:block;
}

/* Responsive */
@media(max-width: 768px){
  .latest-item{
    grid-template-columns: 1fr;
  }
  .latest-thumb img{
    height:160px;
  }
}

/* ===== POLISH PACK (TEMPel PALING BAWAH) ===== */

/* Base */
:root{
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0,0,0,.07);
  --soft: 0 6px 18px rgba(0,0,0,.08);
  --border: 1px solid #eee;
  --gap: 20px;
  --brand: #0b8b73;
}

body{
  color:#111;
}

a{ transition: .15s; }

/* Semua card seragam */
.kolom-kiri, .kolom-tengah, .kolom-kanan,
.detail-berita, .widget-box, .related-item, .card{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: var(--border);
}

/* Spacing antar section */
.kolom-kiri, .kolom-tengah, .kolom-kanan{
  padding: 14px;
}

/* Hover halus */
.news-item, .latest-item, .related-item, .side-row{
  transition: transform .15s ease, box-shadow .15s ease;
}
.news-item:hover, .latest-item:hover, .related-item:hover{
  transform: translateY(-2px);
  box-shadow: var(--soft);
}

/* Image hover sedikit zoom */
.latest-thumb img, .related-item img, .side-thumb img{
  transition: transform .2s ease;
}
.latest-thumb:hover img,
.related-item:hover img,
.side-thumb:hover img{
  transform: scale(1.03);
}

/* Tombol & input rapi */
button, input, textarea{
  font-family: inherit;
}
button{
  background: #fff;
}
button:hover{
  filter: brightness(.97);
}

/* Breadcrumb */
.breadcrumbs{
  max-width:1200px;
  margin: 14px auto 0;
  padding: 0 15px;
  font-size: 13px;
  color:#666;
}
.breadcrumbs a{
  color: var(--brand);
  text-decoration:none;
  font-weight:600;
}
.breadcrumbs a:hover{ text-decoration: underline; }
.breadcrumbs span{ color:#999; }

/* Share bar lebih clean */
.share-bar a, .share-bar button{
  box-shadow: none;
  border: 1px solid #ddd;
}
.share-bar a:hover, .share-bar button:hover{
  border-color:#bbb;
}

/* Responsive safety: biar grid ga overflow */
.homepage, .detail-grid{ min-width: 0; }
.kolom-tengah{ min-width: 0; }

.empty-state{
  background:#fff;
  border:1px dashed #cfcfcf;
  padding:18px;
  border-radius:10px;
  color:#666;
  text-align:center;
}
.empty-state strong{
  display:block;
  color:#111;
  margin-bottom:6px;
}

mark{
  background:#ffe58f;
  padding:0 3px;
  border-radius:3px;
}

/* Sticky sidebar kanan */
.sticky-sidebar{
  position: sticky;
  top: 14px;
}

@media (min-width: 992px){
  .detail-sidebar,
  .kolom-kanan{
    position: sticky;
    top: 80px; /* sesuaikan tinggi header */
  }
}

@media(max-width:768px){
  .detail-grid{ grid-template-columns:1fr; }
  .latest-item{ grid-template-columns:1fr; }
  .latest-thumb img{ height:160px; }
}

/* ===== DROPDOWN MENU ===== */
.menu li { position: relative; }
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  z-index: 2000;
  margin-top: 6px;
}
.has-dropdown > a { display: inline-block; padding: 10px 12px; }

.has-dropdown:hover .dropdown {
  display: block;
}
.dropdown li a {
  display: block;
  padding: 10px 12px;
  color: #111 !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}
.dropdown li a:hover {
  background: #f4f6f8;
}
@media (max-width: 768px){
  .has-dropdown .dropdown{
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
  }
  .dropdown li a{
    padding: 8px 0;
    font-weight: 600;
  }
}

/* ===== DROPDOWN MENU FIX (anti hilang cepat) ===== */
.menu { 
  position: relative;
  z-index: 1000;
}

.menu li {
  position: relative;
}

/* Parent dropdown */
.menu li.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
}

/* Dropdown box */
.menu li.has-dropdown > .dropdown {
  display: none;
  position: absolute;
  top: 100%;          /* tepat di bawah parent */
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  padding: 8px 0;
  margin-top: 0;      /* PENTING: jangan ada gap */
  z-index: 9999;
}

/* Hover trigger: selama kursor di li ATAU di dropdown, tetap tampil */
.menu li.has-dropdown:hover > .dropdown {
  display: block;
}

/* Item dropdown */
.menu li.has-dropdown > .dropdown li a {
  display: block;
  padding: 10px 14px;
  color: #111 !important;
  text-decoration: none;
  white-space: nowrap;
}

.menu li.has-dropdown > .dropdown li a:hover {
  background: #f2f5f7;
}

/* OPTIONAL: kasih "hover buffer" transparan supaya aman kalau ada jarak kecil */
.menu li.has-dropdown > .dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

/* ===== SIDEBAR WIDGET ===== */
.widget{
  background:#fff;
  border-radius:10px;
  padding:12px;
  margin-bottom:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}
.widget-title{
  background:#0b518b;
  color:#fff;
  padding:10px 12px;
  border-radius:8px;
  font-weight:800;
  letter-spacing:.3px;
  margin:-12px -12px 12px -12px;
  text-transform:uppercase;
  font-size:14px;
}
.widget-desc{
  margin:10px 0 0;
  font-size:13px;
  color:#444;
  line-height:1.5;
}

.widget{
  background:#fff;
  border-radius:10px;
  padding:12px;
  margin-bottom:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}
.widget-title{
  background:#0b518b;
  color:#fff;
  padding:10px 12px;
  border-radius:8px;
  font-weight:800;
  letter-spacing:.3px;
  margin:-12px -12px 12px -12px;
  text-transform:uppercase;
  font-size:14px;
}
.widget-desc{
  margin:10px 0 0;
  font-size:13px;
  color:#444;
  line-height:1.5;
}
.social-buttons{ display:flex; flex-wrap:wrap; gap:8px; }
.social-btn{
  display:inline-block;
  padding:8px 10px;
  border-radius:6px;
  color:#fff !important;
  font-weight:700;
  font-size:12px;
  text-decoration:none;
  line-height:1;
}
.btn-fb{ background:#3b5998; }
.btn-tw{ background:#1da1f2; }
.btn-ig{ background:#405de6; }
.btn-yt{ background:#ff0000; }

.tag-cloud{ display:flex; flex-wrap:wrap; gap:8px; }
.tag-item{
  background:#6b6b6b;
  color:#fff !important;
  text-decoration:none;
  padding:7px 10px;
  border-radius:4px;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
}
.tag-item:hover{ opacity:.9; }
/* WIDGET BOX */
.widget-box{
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  margin-bottom:14px;
}
.widget-title{
  background:#0b518b;
  color:#fff;
  font-weight:800;
  padding:10px 12px;
  font-size:14px;
  letter-spacing:.4px;
  text-transform:uppercase;
}
.widget-note{
  padding:10px 12px 14px;
  font-size:12px;
  color:#555;
  line-height:1.5;
}

/* SOCIAL BUTTONS */
.widget-social{
  padding:10px 12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.soc-btn{
  display:inline-block;
  padding:7px 10px;
  border-radius:3px;
  color:#fff;
  font-weight:700;
  font-size:12px;
  text-decoration:none;
}
.soc-btn:hover{opacity:.9}
.btn-fb{background:#2d5cb7;}
.btn-tw{background:#2aa7df;}
.btn-ig{background:#5c4ad3;}
.btn-yt{background:#d93025;}
.btn-soc{background:#000000;}

/* TAGS */
.widget-tags{
  padding:10px 12px 14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.tag-item{
  background:#0b518b;
  color:#ffffff;
  text-decoration:none;
  padding:6px 10px;
  border-radius:3px;
  font-size:12px;
  font-weight:700;
}
.tag-item:hover{opacity:.9}

.site-footer{
  background:#0b518b;              /* abu muda seperti contoh */
  border-top: 2px solid #000000;    /* garis atas */
  padding: 16px 0;
  margin-top: 30px;
}

.footer-flex{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 14px;
  flex-wrap:wrap;
  font-size:12px;
  color: #ffffff;
}

.footer-left strong{
  color:#ffffff;
  font-weight:700;
}

.footer-nav{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: 6px;
  justify-content:flex-end;
}

.footer-nav a{
  color:#ffffff;
  text-decoration:none;
  font-size:12px;
}

.footer-nav a:hover{
  text-decoration:underline;
}

.footer-nav .sep{
  color:#ffffff;
}

/* Responsive biar rapi di HP */
@media (max-width: 768px){
  .footer-flex{ justify-content:center; text-align:center; }
  .footer-nav{ justify-content:center; }
}

/* konten berita */
.article-content { line-height:1.75; font-size:16px; overflow-wrap:anywhere; }
.article-content p { margin:0 0 14px; }
.article-content img { max-width:100%; height:auto; }

.article-content figure.news-figure { margin:14px 0; }
.article-content figure.news-figure figcaption { margin-top:6px; font-size:13px; color:#6c757d; }

.article-content .float-left  { float:left;  margin:6px 14px 10px 0; max-width:55%; }
.article-content .float-right { float:right; margin:6px 0 10px 14px; max-width:55%; }
.article-content .float-none  { float:none;  margin:14px 0; max-width:100%; }

.article-content::after { content:""; display:block; clear:both; }

@media (max-width: 768px){
  .article-content .float-left,
  .article-content .float-right { float:none; max-width:100%; margin:14px 0; }
}

/* =============================
   Light/Dark mode (Frontend)
   Toggle adds class `dark` on <html>
   ============================= */

.theme-toggle{
  margin-left: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  line-height: 1;
}

html.dark .theme-toggle{
  background: #1b1b1b;
  border-color: rgba(255,255,255,0.18);
}

html.dark body{
  background: #0f1115;
  color: #e7e7e7;
}

html.dark a{ color: #cfe3ff; }

html.dark .topbar,
html.dark .main-header,
html.dark .breaking-wrap,
html.dark .footer{
  background: #151823;
  color: #e7e7e7;
}

html.dark .menu > li > a,
html.dark .topbar a{ color: #e7e7e7; }

html.dark .dropdown{
  background: #1b2030;
}

html.dark .dropdown a{ color: #e7e7e7; }

html.dark input,
html.dark textarea,
html.dark select{
  background: #0f1115;
  color: #e7e7e7;
  border-color: rgba(255,255,255,0.18);
}

html.dark .card,
html.dark .news-card,
html.dark .sidebar-box,
html.dark .box,
html.dark .container-box{
  background: #151823;
  border-color: rgba(255,255,255,0.10);
}

