body {
  background-color: #f8f9fa;
  font-family: "Arial", sans-serif;
  color: #333;
}

.top-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
}
.search-box {
  border-radius: 20px;
  border: 1px solid #ccc;
  padding: 5px 15px;
  outline: none;
  width: 100%;
  max-width: 300px;
  font-size: 13px;
}
.social-icons a {
  color: #333;
  margin-left: 15px;
  font-size: 16px;
  text-decoration: none;
}

.sticky-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: all 0.3s ease;
}

/* Kotak Menu Utama */
.sub-navbar-outer {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin: 2px auto;
  max-width: 1140px; /* Membuatnya di tengah */
  width: 95%;
  transition: all 0.3s ease;
}

/* Saat di-Scroll (Sticky Mode) */
.is-sticky .sub-navbar-outer {
  margin: 0 auto;
  max-width: 100% !important;
  width: 100% !important;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sub-navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px; /* Tinggi ramping */
  padding: 0 12px;
}

.menu-group-left {
  display: flex;
  align-items: center;
  gap: 15px; /* Jarak antar menu */
  overflow-x: auto;
}

.menu-group-left::-webkit-scrollbar {
  display: none;
}

/* Styling Logo F */
.logo-f {
  font-family: "Times New Roman", Times, serif;
  font-size: 22px;
  font-weight: 900;
  color: #0b5b9e;
  line-height: 1;
  display: block;
  margin-right: 5px;
}

.sub-nav-item {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s;
}
.sub-nav-item:hover {
  color: #0b5b9e;
}

.sticky-menu {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
.menu-scroll {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 0;
  align-items: center;
}
.menu-scroll::-webkit-scrollbar {
  display: none;
}
.menu-scroll a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-right: 25px;
}
.menu-scroll a:hover {
  color: #0056b3;
}

/* 2. Kontainer Dalam (Flexbox) */
.sub-navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  font-size: 13px; /* Ukuran font kecil */
  color: #333;
}

/* 3. Grup Menu di Kiri */
.menu-group-left {
  display: flex;
  align-items: center;
  gap: 15px; /* Jarak antar item */
}

.sub-caret {
  font-size: 10px;
  color: #888;
}

.icon-logo-start {
  color: #008080;
  font-size: 16px;
}

/* 4. Grup Panah Navigasi di Paling Kanan */
.nav-arrows-right {
  display: flex;
  gap: 3px;
  padding-left: 10px;
  border-left: 1px solid #eee;
}

/* Gaya Tombol Panah Kecil */
.arrow-small-btn {
  border: none;
  background: none;
  color: #0b5b9e;
  font-size: 11px;
  cursor: pointer;
}
.arrow-small-btn:hover {
  opacity: 1;
  color: #000;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Sembunyikan caret bawaan Bootstrap di dropdown custom */
.sub-navbar-inner .dropdown-toggle::after {
  display: none;
}

/* 3. Kilas Kota */
.kilas-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  overflow-x: auto;
}
.kilas-label {
  font-size: 11px;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  border-right: 1px solid #ddd;
  padding-right: 10px;
}

.kilas-bar a {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
/* 4. Topik Pilihan */
.topik-container {
  display: flex;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
  flex-wrap: wrap; /* Agar responsif di HP */
}
.topik-title {
  background: #0b5b9e; /* Biru Tribun */
  color: #fff;
  padding: 20px;
  width: 100%;
}
.topik-content {
  display: flex;
  overflow-x: auto;
  padding: 15px;
  gap: 15px;
  width: 100%;
}
.topik-content::-webkit-scrollbar {
  display: none;
}
.topik-item {
  display: flex;
  gap: 10px;
  min-width: 280px;
  align-items: center;
  border-right: 1px solid #eee;
  padding-right: 15px;
}
.topik-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.topik-item h6 {
  font-size: 13px;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
  color: #222;
}

/* Responsif untuk layar besar (PC/Laptop) */
@media (min-width: 768px) {
  .topik-title {
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .topik-content {
    width: 80%;
  }
}

/* --- Penambahan Baru --- */

/* Trending Topic Styles */
.trending-container {
  background: #fff;
  padding: 15px;
  border: 1px solid #e0e0e0;
  margin-top: 20px;
}
.trending-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}
.trending-tabs div {
  flex: 1;
  text-align: center;
  padding: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}
.tab-active {
  background: #0b5b9e;
  color: #fff;
  border-radius: 20px 20px 0 0;
}
.trending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.trending-name {
  font-size: 13px;
  font-weight: 500;
}
.trending-bar-container {
  width: 40%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trending-bar {
  height: 12px;
  background: #dc3545; /* Merah sesuai gambar */
  border-radius: 2px;
}
.trending-val {
  font-size: 11px;
  color: #666;
  width: 40px;
}

/* Berita Lokal Styles */
.lokal-container {
  background: #fff;
  padding: 15px;
  border: 1px solid #e0e0e0;
  margin-top: 20px;
}

/* Footer Styles */
footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 40px 0;
  margin-top: 50px;
  color: #666;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}
.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
}
.footer-links a:hover {
  color: #0b5b9e;
}
.copyright {
  font-size: 13px;
  margin-top: 20px;
}

/* Sidebar Populer Style */
.sidebar-right .list-group-item:hover {
  background-color: #f8f9fa;
}

.sidebar-right .btn-outline-secondary {
  color: #666;
  border-color: #ddd;
}

.sidebar-right .btn-outline-secondary:hover {
  background-color: #0b5b9e;
  border-color: #0b5b9e;
  color: #fff;
}

/* Container untuk membungkus gambar agar tidak meluber saat di-zoom */
.img-zoom-container {
  width: 200px;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0; /* Mencegah gambar menyusut saat teks panjang */
}

.img-zoom-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Efek Zoom saat card berita atau link diarahkan kursor */
.news-item:hover .img-zoom-container img {
  transform: scale(1.1);
}

/* Pengaturan Font Utama - Tribun menggunakan font Sans-serif yang tegas */
body {
  font-family: "Roboto", Arial, sans-serif;
  background-color: #f6f6f6;
  color: #333;
}

/* Judul Berita - Besar, Hitam, dan Bold */
.article-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: #000;
  margin-bottom: 15px;
}

/* Meta Data (Penulis, Tanggal, Kategori) */
.article-meta {
  font-size: 13px;
  color: #666;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  margin-bottom: 20px;
}

.article-meta .category {
  color: #0b5b9e;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
}

/* Gambar Utama */
.main-article-img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 10px;
}

.img-caption {
  font-size: 12px;
  color: #888;
  font-style: italic;
  margin-bottom: 25px;
  display: block;
}

/* Isi Berita - Readability adalah Kunci */
.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #222;
  letter-spacing: 0.01em;
}

.article-content p {
  margin-bottom: 20px;
}

/* Sidebar Styling */
.sidebar-title {
  font-size: 18px;
  font-weight: bold;
  border-bottom: 2px solid #0b5b9e;
  padding-bottom: 5px;
  margin-bottom: 15px;
  display: inline-block;
}

.popular-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.popular-number {
  font-size: 24px;
  font-weight: bold;
  color: #ccc;
  margin-right: 15px;
}

/* Efek Zoom-in untuk Link Berita Lain */
.news-item img {
  transition: transform 0.3s ease;
}

.news-item:hover img {
  transform: scale(1.05);
}

/* Container Breadcrumb dengan gaya panah */
.breadcrumb-arrow {
  display: flex;
  background-color: transparent;
  padding: 0;
  margin-bottom: 20px;
  list-style: none;
}

.breadcrumb-arrow .breadcrumb-item {
  position: relative;
  display: inline-block;
  padding: 8px 20px 8px 30px;
  background-color: #0b5b9e; /* Warna Biru */
  color: white !important;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Link di dalam item agar tetap putih */
.breadcrumb-arrow .breadcrumb-item a {
  color: white !important;
  text-decoration: none;
}

/* Aksen Panah Kanan */
.breadcrumb-arrow .breadcrumb-item::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 19px solid transparent; /* Setengah dari tinggi item */
  border-bottom: 19px solid transparent;
  border-left: 14px solid #0b5b9e;
  z-index: 2;
}

/* Lubang Panah Kiri (Efek bertumpuk) */
.breadcrumb-arrow .breadcrumb-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
  border-left: 14px solid #fff; /* Warna background halaman (putih) */
  z-index: 1;
}

/* Menghilangkan lubang di item pertama */
.breadcrumb-arrow .breadcrumb-item:first-child::before {
  display: none;
}

.breadcrumb-arrow .breadcrumb-item:first-child {
  padding-left: 15px;
  border-radius: 4px 0 0 4px;
}

/* Warna berbeda untuk item terakhir (aktif) */
.breadcrumb-arrow .breadcrumb-item.active {
  background-color: #f1f1f1;
  color: #333 !important;
}

.breadcrumb-arrow .breadcrumb-item.active::after {
  border-left-color: #f1f1f1;
}

/* Menghilangkan separator bawaan Bootstrap (simbol /) */
.breadcrumb-item + .breadcrumb-item::before {
  content: none;
}

/* Container Utama */
.topik-mini-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px; /* Membuat sudut sangat bulat */
    height: 55px; /* Ukuran kecil/slim */
    overflow: hidden;
}

/* Sisi Kiri (Biru) */
.topik-label-left {
    background: #0b5b9e;
    color: #fff;
    padding: 0 20px;
    height: 100%;
    min-width: 180px;
    border-radius: 50px 0 0 50px; /* Bulat di kiri saja */
    font-size: 12px;
}

.label-text small {
    font-size: 10px;
    display: block;
    opacity: 0.8;
}

/* Tombol kecil di dalam biru */
.btn-scroll-topik {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 5px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: 0.3s;
}
.btn-scroll-topik:hover { background: rgba(255,255,255,0.4); }

/* Sisi Tengah (Berita) */
.topik-news-scroll {
    padding: 0 15px;
    white-space: nowrap;
}

.news-link {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-right: 30px;
    max-width: 400px;
}
.news-link:hover { color: #0b5b9e; }

/* Sisi Kanan (Panah) */
.btn-arrow-right {
    background: transparent;
    border: none;
    color: #0b5b9e;
    padding: 0 20px;
    font-size: 16px;
    cursor: pointer;
}
.btn-arrow-right:hover { transform: translateX(3px); transition: 0.3s; }

/* Animasi sederhana */
.news-group-item.active {
    display: block;
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box-modern {
    width: 100%;
    padding: 10px 45px 10px 20px;
    border: 1px solid #ddd;
    border-radius: 50px; /* Membuat lonjong bulat */
    outline: none;
    transition: 0.3s;
    font-size: 14px;
}

.search-box-modern:focus {
    border-color: #0b5b9e;
    box-shadow: 0 0 8px rgba(11, 91, 158, 0.2);
}

.search-icon-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #888;
    padding: 8px 12px;
    cursor: pointer;
}

.search-icon-btn:hover {
    color: #0b5b9e;
}

/* Tombol kecil di dalam biru */
.btn-scroll-topik {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 5px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: 0.3s;
}
.btn-scroll-topik:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Sisi Tengah (Berita) */
.topik-news-scroll {
  padding: 0 15px;
  white-space: nowrap;
}

.news-link {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-right: 30px;
  max-width: 400px;
}
.news-link:hover {
  color: #0b5b9e;
}

/* Sisi Kanan (Panah) */
.btn-arrow-right {
  background: transparent;
  border: none;
  color: #0b5b9e;
  padding: 0 20px;
  font-size: 16px;
  cursor: pointer;
}
.btn-arrow-right:hover {
  transform: translateX(3px);
  transition: 0.3s;
}

/* Animasi sederhana */
.news-group-item.active {
  display: block;
  animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Container Sidebar Populer */
.sidebar-populer-container {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

/* Header Judul dengan Garis Biru */
.populer-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0b5b9e;
    border-left: 4px solid #0b5b9e;
    padding-left: 10px;
    margin-bottom: 20px;
    text-transform: none;
}

/* Item List */
.populer-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none !important;
}

.populer-item:last-child {
    border-bottom: none;
}

/* Bagian Teks */
.populer-content {
    flex: 1;
}

.populer-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Maksimal 3 baris judul */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.populer-item:hover .populer-title {
    color: #0b5b9e;
}

.populer-meta {
    font-size: 0.75rem;
    color: #777;
    display: flex;
    align-items: center;
}

.populer-meta i {
    margin-right: 5px;
}

/* Bagian Gambar */
.populer-img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
}