/*
Theme Name: BeritaKini
Theme URI: https://dipostore.com
Author: BeritaKini Dev Team 1nspiron
Author URI: https://dipostore.com
Description: Template WordPress profesional untuk portal berita modern. Desain gelap elegan dengan layout editorial, hero grid, ticker berita, sidebar populer, dan dukungan penuh kategori WordPress.
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: beritakini
Tags: news, blog, dark, editorial, two-columns, custom-menu, featured-images, post-formats
*/

/* ===================================================
   GLOBAL RESET & VARIABLES
=================================================== */

/* ── TEMA GELAP (default) ── */
:root,
body.bk-dark {
  --red: #C0392B;
  --dark: #0F0F0F;
  --mid: #1A1A1A;
  --text: #E8E8E8;
  --muted: #888888;
  --border: #2A2A2A;
  --accent: #E74C3C;
  --card-bg: #1A1A1A;
  --shadow: rgba(0,0,0,.4);
  --font-display: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max-width: 1200px;
}

/* ── TEMA TERANG ── */
body.bk-light {
  --red: #C0392B;
  --dark: #F4F4F4;
  --mid: #FFFFFF;
  --text: #111111;
  --muted: #666666;
  --border: #E0E0E0;
  --accent: #E74C3C;
  --card-bg: #FFFFFF;
  --shadow: rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  transition: background .3s ease, color .3s ease;
}

/* ══════════════════════════════════════════════════
   TEMA TERANG — override menyeluruh
══════════════════════════════════════════════════ */

/* Layout & background */
body.bk-light                     { background: #F4F4F4; color: #111; }
body.bk-light .bk-header          { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
body.bk-light .bk-nav-wrap        { background: #fff; border-top-color: #E0E0E0; }
body.bk-light .bk-header-meta     { color: #666; }
body.bk-light .bk-header-meta strong { color: #111; }

/* Nav */
body.bk-light .bk-nav a           { color: #444; }
body.bk-light .bk-nav a:hover,
body.bk-light .bk-nav a.current-menu-item { color: #111; border-top-color: var(--red); }

/* Ticker */
body.bk-light .bk-topbar          { background: var(--red); }

/* Hero — teks overlay tetap putih karena di atas foto gelap */
body.bk-light .bk-hero-main img   { filter: brightness(.82); }
body.bk-light .bk-hero-overlay h1 { color: #fff; }
body.bk-light .bk-hero-overlay .bk-meta { color: rgba(255,255,255,.75); }
body.bk-light .bk-side-card       { background: #ddd; }
body.bk-light .bk-side-card img   { filter: brightness(.8); }
body.bk-light .bk-side-card h2    { color: #fff; }

/* Cards */
body.bk-light .bk-card            { background: #fff; border-radius: 8px; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
body.bk-light .bk-card-img img    { filter: brightness(.95); }
body.bk-light .bk-card h3 a       { color: #111; }
body.bk-light .bk-card p          { color: #555; }
body.bk-light .bk-card .bk-meta   { color: #888; }
body.bk-light .bk-card-meta-link  { color: #888; border-top-color: #eee; }
body.bk-light .bk-card:hover h3 a { color: var(--red); }

/* Section header */
body.bk-light .bk-divider             { background: transparent; }

/* List cards */
body.bk-light .bk-list-card              { border-bottom-color: #E0E0E0; }
body.bk-light .bk-list-card-thumb img,
body.bk-light .bk-list-card img          { filter: brightness(.95); }
body.bk-light .bk-list-card h3          { color: #111; }
body.bk-light .bk-list-card h3 a        { color: #111; }
body.bk-light .bk-list-card:hover h3,
body.bk-light .bk-list-card:hover h3 a  { color: var(--red); }
body.bk-light .bk-list-card .bk-meta    { color: #888; }

/* Sidebar */
body.bk-light .bk-widget               { background: #fff; border-radius: 6px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
body.bk-light .bk-widget-title         { color: #111; border-bottom-color: var(--red); }
body.bk-light .bk-popular-item         { border-bottom-color: #E0E0E0; }
body.bk-light .bk-popular-num          { color: #E0E0E0; }
body.bk-light .bk-popular-item h4      { color: #111; }
body.bk-light .bk-popular-item:hover h4{ color: var(--red); }
body.bk-light .bk-popular-item .bk-meta{ color: #999; }

/* Tags */
body.bk-light .bk-tag              { background: #f0f0f0; border-color: #ddd; color: #444; }
body.bk-light .bk-tag:hover        { background: var(--red); border-color: var(--red); color: #fff; }

/* Footer */
body.bk-light .bk-footer               { background: #fff; border-top: 3px solid var(--red); }
body.bk-light .bk-footer-logo         { color: #111; }
body.bk-light .bk-footer-site-name    { color: #111; }
body.bk-light .bk-footer-tagline      { color: var(--red); }
body.bk-light .bk-footer-about        { color: #777; }
body.bk-light .bk-footer-brand-top    { border-bottom-color: #E8E8E8; }
body.bk-light .bk-contact-icon        { background: #F0F0F0; }
body.bk-light .bk-contact-text        { color: #666; }
body.bk-light .bk-contact-text a      { color: #666; }
body.bk-light .bk-contact-text a:hover { color: #111; }
body.bk-light .bk-footer-col h4       { color: var(--red); border-bottom-color: #E8E8E8; }
body.bk-light .bk-footer-col ul li    { border-bottom-color: #F0F0F0; }
body.bk-light .bk-footer-col ul li a  { color: #555; }
body.bk-light .bk-footer-col ul li a:hover { color: #111; }
body.bk-light .bk-footer-bottom-wrap  { border-top-color: #E8E8E8; }
body.bk-light .bk-footer-copy         { color: #999; }
body.bk-light .bk-footer-links a      { color: #999; }
body.bk-light .bk-footer-links a:hover { color: #333; }
body.bk-light .bk-sep                 { color: #ddd; }
body.bk-light .bk-footer-social-icon  { background: #F0F0F0; color: #666; }
body.bk-light .bk-footer-social-icon:hover { background: var(--red); color: #fff; }
body.bk-light .bk-social-link      { color: #555; border-color: #ddd; }

/* Single post */
body.bk-light .bk-single           { background: transparent; }
body.bk-light .bk-single h1        { color: #111; }
body.bk-light .bk-single-meta      { color: #666; border-bottom-color: #E0E0E0; }
body.bk-light .bk-single-content   { color: #222; }
body.bk-light .bk-single-content p { color: #333; }
body.bk-light .bk-single-content h2 { color: #111; }
body.bk-light .bk-single-content blockquote { background: #f5f5f5; border-left-color: var(--red); color: #555; }

/* Share & view count */
body.bk-light .bk-share-bar        { background: #fff; border-color: #E0E0E0; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
body.bk-light .bk-share-bar .bk-view-count { color: #666; }
body.bk-light .bk-share-btn        { background: #f0f0f0; color: #333; border-color: #ddd; }
body.bk-light .bk-share-btn:hover  { background: var(--red); color: #fff; border-color: var(--red); }

/* Pagination */
body.bk-light .bk-pagination a,
body.bk-light .bk-pagination span  { border-color: #ddd; color: #666; background: #fff; }
body.bk-light .bk-pagination a:hover,
body.bk-light .bk-pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* Toggle */
body.bk-light .bk-toggle-track     { background: var(--red); }
body.bk-light .bk-theme-toggle     { border-color: #E0E0E0; color: #333; }

/* Single post extras */
body.bk-light .bk-author-box         { background: #f9f9f9; border-color: #E0E0E0; }
body.bk-light .bk-sb-news-item       { border-bottom-color: #E0E0E0; }
body.bk-light .bk-sb-news-item p     { color: #111; }
body.bk-light .bk-widget             { background: #fff; border-radius: 6px; padding: 16px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
body.bk-light .bk-widget-title       { color: #111; }
body.bk-light .bk-popular-item       { border-bottom-color: #E0E0E0; }
body.bk-light .bk-popular-item h4    { color: #111; }
body.bk-light .bk-popular-num        { color: #e0e0e0; }
body.bk-light .bk-author-name a    { color: #111; }
body.bk-light .bk-breadcrumb a     { color: #555; }
body.bk-light .bk-img-caption      { background: #f0f0f0; border-top-color: #E0E0E0; color: #666; }
body.bk-light .bk-si-copy          { background: #f0f0f0; border-color: #ddd; color: #333; }
body.bk-light .bk-ad               { background: #f5f5f5; border: 1px dashed #ddd; border-radius: 4px; padding: 8px; }

/* ── TOGGLE BUTTON ── */
.bk-theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 5px 12px 5px 8px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  transition: all .25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.bk-theme-toggle:hover { border-color: var(--red); color: var(--red); }

.bk-toggle-track {
  width: 36px; height: 20px;
  background: var(--border);
  border-radius: 50px;
  position: relative;
  transition: background .25s;
  flex-shrink: 0;
}
body.bk-light .bk-toggle-track  { background: var(--red); }

.bk-toggle-thumb {
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
body.bk-light .bk-toggle-thumb  { transform: translateX(16px); }

.bk-toggle-icon { font-size: 15px; line-height: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================
   TICKER / TOPBAR
=================================================== */
.bk-topbar {
  background: var(--red);
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}
.bk-topbar-inner {
  display: flex;
  gap: 40px;
  animation: bk-ticker 35s linear infinite;
  width: max-content;
}
@keyframes bk-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.bk-topbar-item {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
}
.bk-topbar-item::before { content: '◆'; margin-right: 8px; opacity: .7; }

/* ===================================================
   HEADER
=================================================== */
.bk-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0 0;
  background: var(--dark);
  position: relative;
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.bk-header-sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}
body.bk-light .bk-header-sticky { box-shadow: 0 2px 16px rgba(0,0,0,.12); }
.bk-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
/* ══ BRAND: Logo gambar + Nama Situs + Slogan berdampingan ══ */
.bk-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

/* Logo gambar */
.bk-brand-logo-link            { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.bk-brand-logo-link img,
.bk-header-brand .custom-logo-link img,
.bk-header-brand .custom-logo  { height: 56px !important; width: auto !important; max-width: none; display: block; object-fit: contain; }

/* Teks samping logo: nama + slogan */
.bk-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border-left: 2px solid var(--red);
  padding-left: 12px;
}
.bk-brand-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 900; line-height: 1.15;
  color: var(--text); letter-spacing: -.2px; white-space: nowrap;
  text-decoration: none; display: block;
}
.bk-brand-name:hover { color: var(--red); }
.bk-brand-tagline {
  font-size: 11px; color: var(--muted);
  font-weight: 500; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}

/* Fallback teks (tanpa logo gambar) */
.bk-logo-text {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 900;
  letter-spacing: -1px; line-height: 1;
  color: var(--text); text-decoration: none; display: block;
}
.bk-logo-text span  { color: var(--red); }
.bk-logo-tagline    { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }

/* Legacy .bk-logo dipakai di footer */
.bk-logo            { font-family: var(--font-display); font-size: 32px; font-weight: 900; letter-spacing: -1px; line-height: 1; display: block; color: var(--text); text-decoration: none; }
.bk-logo span       { color: var(--red); }

/* Tengah header: tanggal */
.bk-header-meta        { color: var(--muted); font-size: 13px; text-align: center; flex: 1; min-width: 0; }
.bk-header-meta strong { display: block; color: var(--text); font-size: 14px; }
.bk-header-actions     { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Light mode */
body.bk-light .bk-brand-name    { color: #111; }
body.bk-light .bk-brand-tagline { color: #777; }
body.bk-light .bk-brand-text    { border-left-color: var(--red); }
body.bk-light .bk-logo-text     { color: #111; }

/* ===================================================
   NAVIGATION — selalu terlihat, scroll horizontal di mobile
=================================================== */
.bk-nav-wrap {
  border-top: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bk-nav-wrap::-webkit-scrollbar { display: none; }

.bk-nav {
  display: flex;
  gap: 0;
  width: max-content;
  min-width: 100%;
}
.bk-nav a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 12px 18px;
  border-top: 3px solid transparent;
  transition: all .2s;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.bk-nav a:hover,
.bk-nav a.current-menu-item,
.bk-nav a.current-menu-ancestor {
  color: var(--text);
  border-top-color: var(--red);
}

/* ===================================================
   HERO GRID
=================================================== */
.bk-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto auto;
  gap: 2px;
  margin: 40px auto;
  max-width: var(--max-width);
  padding: 0 24px;
}
.bk-hero-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
}
/* ── SLIDESHOW HERO ── */

/* Container slideshow — tinggi fixed agar slide absolute tidak collapse */
.bk-hero-main.bk-slideshow {
  position: relative;
  overflow: hidden;
  height: 540px; /* sama dengan tinggi gambar */
}

/* Semua slide: absolute, tumpuk di atas container */
.bk-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
  z-index: 1;
}
/* Slide aktif tampil di atas */
.bk-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Link membungkus seluruh slide */
.bk-slide > a,
.bk-slide .bk-hero-full-link {
  display: block;
  position: relative;
  width: 100%; height: 100%;
  text-decoration: none;
}

/* Gambar mengisi penuh container */
.bk-slide img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  filter: brightness(.72);
  transition: transform 6s ease;
  display: block;
}
.bk-slide.active img { transform: scale(1.04); }

/* Overlay teks selalu di dalam gambar */
.bk-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px 44px; /* padding bawah lebih besar untuk dots */
  background: linear-gradient(transparent 0%, rgba(0,0,0,.5) 40%, rgba(0,0,0,.92) 100%);
  pointer-events: none;
  z-index: 3;
}
.bk-hero-overlay h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 8px 0 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.bk-hero-overlay .bk-meta {
  color: rgba(255,255,255,.8);
  font-size: 13px;
}
.bk-hero-overlay h1,
.bk-hero-overlay p,
.bk-hero-overlay .bk-meta { pointer-events: none; }
.bk-hero-overlay .bk-cat-tag { pointer-events: auto; }

/* Tombol prev/next */
.bk-slide-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(0,0,0,.45);
  color: #fff; border: none;
  border-radius: 50%;
  font-size: 22px; line-height: 1;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.bk-slide-btn:hover { background: var(--red); }
.bk-slide-prev { left: 10px; }
.bk-slide-next { right: 10px; }

/* Dots indikator */
.bk-slide-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.bk-slide-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none; cursor: pointer;
  transition: all .25s; padding: 0;
}
.bk-slide-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* Progress bar */
.bk-slide-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,.12); z-index: 10;
}
.bk-slide-progress-bar {
  height: 100%; background: var(--red);
  width: 0%; transition: width linear;
}

/* ═══════════════════════════════════════
   SIDE CARDS — Desktop: kolom vertikal
   Mobile: baris horizontal
═══════════════════════════════════════ */

/* Desktop: vertikal, tiap card flex:1 mengisi tinggi hero */
.bk-hero-side {
  display: flex;
  flex-direction: column;
  gap: 3px;
  /* Tinggi sama persis dengan hero slideshow */
  height: 540px;
}

.bk-side-card {
  flex: 1;          /* bagi rata tinggi */
  position: relative;
  overflow: hidden;
  background: var(--mid);
  min-height: 0;    /* biarkan flex yang atur */
}

/* Link mengisi penuh area card */
.bk-side-card > a,
.bk-side-card .bk-hero-full-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

/* Gambar mengisi penuh area card dengan object-fit */
.bk-side-card img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72);
  transition: transform .4s;
  display: block;
}
.bk-side-card:hover img { transform: scale(1.05); }

/* Overlay teks SELALU di dalam card */
.bk-side-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  pointer-events: none;
  z-index: 2;
}
.bk-side-overlay h2 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 5px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Default jika tidak ada class (fallback = 2 cards) */
.bk-side-overlay h2                      { font-size: 14px; -webkit-line-clamp: 2; }
/* Judul menyesuaikan jumlah card */
.bk-hero--desktop-1 .bk-side-overlay h2 { font-size: 20px; -webkit-line-clamp: 4; }
.bk-hero--desktop-2 .bk-side-overlay h2 { font-size: 15px; -webkit-line-clamp: 3; }
.bk-hero--desktop-3 .bk-side-overlay h2 { font-size: 13px; -webkit-line-clamp: 2; }
.bk-hero--desktop-4 .bk-side-overlay h2 { font-size: 11px; -webkit-line-clamp: 2; }
.bk-side-overlay h2,
.bk-side-overlay .bk-meta { pointer-events: none; }

/* ===================================================
   CATEGORY TAG
=================================================== */
.bk-cat-tag {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 10px;
}

/* ===================================================
   SECTION HEADER
=================================================== */
.bk-section { max-width: var(--max-width); margin: 28px auto; padding: 0 24px; }
/* ===================================================
   SECTION HEADER — Rapi & Presisi
=================================================== */
.bk-section-header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

/* Judul dengan aksen merah di kiri */
.bk-section-header h2,
.bk-section-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
  background: var(--red);
  padding: 8px 18px;
  margin: 0;
  line-height: 1.3;
  letter-spacing: .01em;
  position: relative;
  /* Sudut miring di kanan */
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  padding-right: 28px;
}

/* Garis pemisah horizontal */
.bk-divider {
  flex: 1;
  height: 0;
  background: transparent;
}

/* Link "Lihat Semua" di kanan */
.bk-see-all {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--red);
  white-space: nowrap;
  text-decoration: none;
  padding: 0 0 6px 0;
  transition: opacity .2s;
  margin-left: auto;
}
.bk-see-all:hover { opacity: .75; }

/* Light mode */
body.bk-light .bk-section-header { border-bottom-color: #E0E0E0; }
body.bk-light .bk-section-header h2,
body.bk-light .bk-section-header h3 { color: #fff; background: var(--red); }

/* ===================================================
   CARD GRID
=================================================== */
/* ═══════════════════════════════════════════
   CARD GRID — Berita Terbaru & Berita Terkait
═══════════════════════════════════════════ */
.bk-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start; /* penting: tiap card tingginya sendiri */
}

.bk-card {
  cursor: pointer;
  background: var(--mid);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s;
}
.bk-card:hover { transform: translateY(-2px); }

/* Gambar */
.bk-card-img-link { display: block; text-decoration: none; flex-shrink: 0; }
.bk-card-img-link:hover .bk-card-img img { transform: scale(1.04); }

.bk-card-img { position: relative; overflow: hidden; margin-bottom: 0; }
.bk-card-img img {
  width: 100%; height: 180px; object-fit: cover;
  filter: brightness(.88); transition: transform .4s;
  display: block;
}
.bk-card-img .bk-cat-tag { position: absolute; top: 10px; left: 10px; }

/* Konten teks — padding seragam */
.bk-card h3 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; line-height: 1.4;
  margin: 12px 12px 6px;
  /* Batasi maksimal 3 baris agar semua card tingginya seragam */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bk-card h3 a {
  color: var(--text); text-decoration: none; transition: color .2s;
}
.bk-card h3 a:hover { color: var(--red); }
.bk-card:hover h3 a { color: var(--red); }

.bk-card p {
  font-size: 13px; color: var(--muted); line-height: 1.55;
  margin: 0 12px 8px;
  /* Batasi 2 baris */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta di bawah */
.bk-card-meta-link {
  text-decoration: none; color: var(--muted);
  font-size: 12px; display: block;
  margin: auto 12px 12px; /* auto margin atas = dorong ke bawah */
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.bk-card-meta-link:hover { color: var(--red); }

/* Link full pada hero (overlay card) */
.bk-hero-full-link {
  display: block;
  width: 100%; height: 100%;
  text-decoration: none;
  color: inherit;
}

/* List card thumb link */
.bk-list-card-thumb { display: block; flex-shrink: 0; }
.bk-list-card-thumb img { display: block; }

/* ===================================================
   TWO COLUMN LAYOUT
=================================================== */
.bk-two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
/* Seksi tanpa sidebar: satu kolom penuh */
.bk-one-col {
  display: block;
  width: 100%;
}

/* ===================================================
   LIST CARDS
=================================================== */
.bk-list-card {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.bk-list-card a {
  color: inherit; text-decoration: none;
}
/* Thumbnail wrapper — ukuran kotak, tidak melar */
.bk-list-card-thumb {
  display: block; flex-shrink: 0;
  width: 110px; height: 80px;
  border-radius: 5px; overflow: hidden;
}
.bk-list-card-thumb img,
.bk-list-card img {
  width: 110px; height: 80px;
  object-fit: cover; flex-shrink: 0;
  border-radius: 5px;
  filter: brightness(.88);
  display: block;
  transition: transform .35s;
}
.bk-list-card:hover .bk-list-card-thumb img,
.bk-list-card:hover img { transform: scale(1.04); }
.bk-list-card h3 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; line-height: 1.35;
  margin-bottom: 6px; transition: color .2s;
  color: var(--text);
}
.bk-list-card h3 a { color: var(--text); text-decoration: none; }
.bk-list-card:hover h3,
.bk-list-card:hover h3 a { color: var(--red); }

/* ===================================================
   SIDEBAR
=================================================== */
.bk-widget { margin-bottom: 28px; }

/* ── Style judul widget: .bk-widget-title DAN widget bawaan WordPress ── */
.bk-widget-title,
.widget-title,
.widgettitle,
.widget .widget-title,
.widget h2,
.widget h3,
.bk-single-sidebar .widget h2,
.bk-single-sidebar .widget h3,
.bk-single-sidebar .widget-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--red);
  padding: 8px 18px 8px 14px;
  margin: 0 0 16px 0;
  line-height: 1.3;
  letter-spacing: .01em;
  /* Sudut miring di kanan — sama persis dengan section header */
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  padding-right: 28px;
  display: block;
}

/* Wrapper widget bawaan WordPress — beri padding & border bawah tipis */
.bk-single-sidebar .widget,
.bk-home-right-sidebar .widget {
  margin-bottom: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.bk-single-sidebar .widget:last-child,
.bk-home-right-sidebar .widget:last-child { border-bottom: none; }

/* List item widget bawaan WordPress */
.bk-single-sidebar .widget ul,
.bk-home-right-sidebar .widget ul {
  list-style: none; padding: 0; margin: 0;
}
.bk-single-sidebar .widget ul li,
.bk-home-right-sidebar .widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.bk-single-sidebar .widget ul li:last-child,
.bk-home-right-sidebar .widget ul li:last-child { border-bottom: none; }
.bk-single-sidebar .widget ul li::before,
.bk-home-right-sidebar .widget ul li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.bk-single-sidebar .widget ul li a,
.bk-home-right-sidebar .widget ul li a {
  color: var(--text); text-decoration: none;
  font-size: 13px; font-weight: 600;
  line-height: 1.4; transition: color .2s;
}
.bk-single-sidebar .widget ul li a:hover,
.bk-home-right-sidebar .widget ul li a:hover { color: var(--red); }

/* Widget teks */
.bk-single-sidebar .textwidget,
.bk-home-right-sidebar .textwidget {
  font-size: 13px; color: var(--muted); line-height: 1.7;
}

/* Widget search bawaan WP */
.bk-single-sidebar .widget_search .search-form,
.bk-home-right-sidebar .widget_search .search-form {
  display: flex; gap: 0;
}
.bk-single-sidebar .widget_search input[type="search"],
.bk-home-right-sidebar .widget_search input[type="search"] {
  flex: 1; padding: 9px 12px;
  background: var(--dark); color: var(--text);
  border: 1px solid var(--border); border-right: none;
  border-radius: 4px 0 0 4px; font-size: 13px;
  outline: none;
}
.bk-single-sidebar .widget_search input[type="submit"],
.bk-home-right-sidebar .widget_search input[type="submit"] {
  background: var(--red); color: #fff;
  border: none; padding: 9px 14px;
  border-radius: 0 4px 4px 0;
  font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}

/* Widget tag cloud bawaan WP */
.bk-single-sidebar .tagcloud a,
.bk-home-right-sidebar .tagcloud a {
  display: inline-block;
  font-size: 11px !important;
  padding: 4px 10px; margin: 3px 2px;
  background: var(--mid); color: var(--muted);
  border: 1px solid var(--border); border-radius: 20px;
  text-decoration: none; transition: all .2s;
}
.bk-single-sidebar .tagcloud a:hover,
.bk-home-right-sidebar .tagcloud a:hover {
  background: var(--red); color: #fff; border-color: var(--red);
}

/* Light mode widget */
body.bk-light .bk-single-sidebar .widget ul li { border-bottom-color: #f0f0f0; }
body.bk-light .bk-single-sidebar .widget ul li a { color: #111; }
body.bk-light .bk-single-sidebar .widget { border-bottom-color: #f0f0f0; }
body.bk-light .bk-single-sidebar .widget_search input[type="search"] { background: #f8f8f8; color: #111; border-color: #ddd; }
body.bk-light .bk-single-sidebar .tagcloud a { background: #f5f5f5; border-color: #e0e0e0; color: #555; }
.bk-popular-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.bk-popular-num {
  font-size: 32px; font-weight: 900;
  color: var(--border); line-height: 1;
  flex-shrink: 0; width: 40px;
}
.bk-popular-item h4 { font-size: 14px; font-weight: 600; line-height: 1.35; transition: color .2s; }
.bk-popular-item:hover h4 { color: var(--red); }

/* ===================================================
   TAGS
=================================================== */
.bk-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-tag {
  background: var(--mid); border: 1px solid var(--border);
  padding: 5px 12px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  cursor: pointer; transition: all .2s;
}
.bk-tag:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ===================================================
   META INFO
=================================================== */
.bk-meta { font-size: 12px; color: #666; }

/* ===================================================
   FOOTER
=================================================== */
/* ══════════════════════════════════════════════════
   FOOTER — Rapi & Mobile Friendly
══════════════════════════════════════════════════ */
.bk-footer {
  background: var(--mid);
  border-top: 3px solid var(--red);
  margin-top: 60px;
}

/* ── Top Footer ── */
.bk-footer-top { padding: 48px 0 36px; }

.bk-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Brand kolom 1 ── */
.bk-footer-brand { }

/* Logo + nama situs + slogan (mirip header) */
.bk-footer-brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.bk-footer-logo-img { flex-shrink: 0; }
.bk-footer-logo-img .custom-logo-link img,
.bk-footer-logo-wrap img {
  max-height: 52px; width: auto; display: block;
}
.bk-footer-brand-text {
  display: flex; flex-direction: column; gap: 2px;
  border-left: 2px solid var(--red);
  padding-left: 12px; min-width: 0;
}
.bk-footer-site-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 900;
  color: var(--text); line-height: 1.15;
  letter-spacing: -.2px;
}
.bk-footer-tagline {
  font-size: 11px; color: var(--red);
  font-style: italic; font-weight: 500;
  display: block; margin-top: 2px;
}

/* Fallback logo teks */
.bk-footer-logo {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 900;
  margin-bottom: 4px; display: block; color: var(--text);
  text-decoration: none;
}
.bk-footer-logo span { color: var(--red); }

.bk-footer-about {
  font-size: 13px; color: var(--muted);
  line-height: 1.7; margin-bottom: 16px;
  max-width: 300px;
}

/* ── Kontak Redaksi ── */
.bk-footer-contact {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px;
}
.bk-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
}
.bk-contact-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  margin-top: 1px;
}
.bk-contact-icon svg { display: block; }
.bk-contact-text {
  font-size: 13px; color: var(--muted);
  line-height: 1.55; padding-top: 5px;
}
.bk-contact-text a {
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.bk-contact-text a:hover { color: var(--text); }

/* Social icons */
.bk-footer-socials {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.bk-footer-social-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--border); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all .2s; flex-shrink: 0;
}
.bk-footer-social-icon:hover { background: var(--red); color: #fff; }
.bk-footer-social-icon svg { display: block; }

/* Kolom 2-4 */
.bk-footer-col { }
.bk-footer-col h4 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--red); margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.bk-footer-col ul { list-style: none; padding: 0; margin: 0; }
.bk-footer-col ul li {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.bk-footer-col ul li:last-child { border-bottom: none; }
.bk-footer-col ul li a {
  display: block;
  font-size: 13px; color: var(--muted);
  padding: 9px 0;
  text-decoration: none; transition: color .2s;
  line-height: 1.4;
}
.bk-footer-col ul li a:hover { color: var(--text); padding-left: 4px; }

/* ── Khusus kolom KATEGORI: 2 kolom ── */
.bk-footer-col.bk-col-kategori ul {
  columns: 2;
  column-gap: 0;
}
.bk-footer-col.bk-col-kategori ul li {
  break-inside: avoid;
  border-bottom: 1px solid var(--border);
}
.bk-footer-col.bk-col-kategori ul li a {
  padding: 9px 8px 9px 0;
}
/* Kolom kategori butuh ruang lebih lebar — override grid utama */
.bk-footer-grid { grid-template-columns: 1.6fr 1.5fr 0.9fr 0.9fr; }

/* ── Bottom Footer ── */
.bk-footer-bottom-wrap {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.bk-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bk-footer-copy { font-size: 12px; color: var(--muted); }
.bk-footer-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bk-footer-links a { font-size: 12px; color: var(--muted); text-decoration: none; transition: color .2s; }
.bk-footer-links a:hover { color: var(--text); }
.bk-sep { color: var(--border); font-size: 12px; }

/* ===================================================
   READING PROGRESS BAR
=================================================== */
.bk-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--red); width: 0%;
  z-index: 9999; transition: width .1s linear;
}

/* ===================================================
   SINGLE POST — LAYOUT 2 KOLOM
=================================================== */
.bk-single-wrap {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.bk-single { min-width: 0; }

/* Breadcrumb */
.bk-breadcrumb {
  font-size: 13px; color: var(--muted);
  margin-bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.bk-breadcrumb a:hover { color: var(--red); }
.bk-bc-sep { color: var(--muted); opacity: .5; }
.bk-bc-current { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.bk-single-cats { margin-bottom: 12px; }

/* Title */
.bk-single-title {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 900; line-height: 1.25;
  margin-bottom: 16px; color: var(--text);
}

/* Meta */
.bk-single-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 12px; font-size: 13px; color: var(--muted);
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.bk-meta-author { display: flex; align-items: center; gap: 7px; }
.bk-author-avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.bk-meta-author a { font-weight: 600; color: var(--text); }
.bk-meta-author a:hover { color: var(--red); }
.bk-meta-sep { opacity: .3; }
.bk-meta-views, .bk-meta-read { display: flex; align-items: center; gap: 4px; }

/* Share atas (icon saja) */
.bk-share-top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.bk-share-top .bk-share-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
}
.bk-share-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; transition: transform .2s, opacity .2s;
}
.bk-share-icon:hover { transform: scale(1.12); opacity: .9; }
.bk-si-wa   { background: #1fad4b; color: #fff; }
.bk-si-fb   { background: #1877f2; color: #fff; }
.bk-si-tw   { background: #000; color: #fff; }
.bk-si-copy { background: var(--mid); color: var(--text); border: 1px solid var(--border); }

/* Hero image */
.bk-single-hero { margin-bottom: 28px; border-radius: 4px; overflow: hidden; }
.bk-single-hero img { width: 100%; height: 460px; object-fit: cover; display: block; filter: brightness(.92); }
.bk-img-caption {
  font-size: 12px; color: var(--muted); text-align: center;
  padding: 8px 12px; background: var(--mid); border-top: 1px solid var(--border);
  font-style: italic;
}

/* Content */
.bk-single-content { font-size: 17px; line-height: 1.85; color: var(--text); }
.bk-single-content p { margin-bottom: 20px; }
.bk-single-content h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 32px 0 14px; color: var(--text); }
.bk-single-content h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--text); }
.bk-single-content blockquote {
  border-left: 4px solid var(--red);
  padding: 14px 20px; margin: 24px 0;
  background: var(--mid); font-style: italic; color: var(--muted);
  border-radius: 0 4px 4px 0;
}
.bk-single-content img { max-width: 100%; border-radius: 4px; margin: 16px 0; }
.bk-single-content ul, .bk-single-content ol { margin: 0 0 20px 24px; }
.bk-single-content li { margin-bottom: 8px; }

/* Tags */
.bk-tags-wrap {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.bk-tags-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); padding-top: 6px; white-space: nowrap;
}

/* Author Box */
.bk-author-box {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--mid);
  border: 1px solid var(--border); border-radius: 6px;
  margin: 28px 0;
}
.bk-author-avatar { flex-shrink: 0; }
.bk-avatar-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; }
.bk-author-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--red); display: block; margin-bottom: 4px;
}
.bk-author-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.bk-author-name a { color: var(--text); }
.bk-author-name a:hover { color: var(--red); }
.bk-author-bio { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.bk-author-link { font-size: 13px; font-weight: 600; color: var(--red); }
.bk-author-link:hover { text-decoration: underline; }
.bk-comments-wrap { margin-top: 32px; }

/* ══════════════════════════════════════════════════
   AD SLOTS — In-content style seperti portal berita
══════════════════════════════════════════════════ */

/* Base wrapper semua iklan */
.bk-ad {
  width: 100%;
  overflow: hidden;
  position: relative;
  text-align: center;
  margin: 0;
  /* Tidak ada gap di atas/bawah — konten artikel langsung nyambung */
}

/* Label kecil "Advertisement" */
.bk-ad-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  opacity: .5;
  margin-bottom: 4px;
  text-align: center;
}

/* ── Iklan ATAS artikel (full width, di luar konten) ── */
.bk-ad-above_post {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 24px;
}

/* ── Iklan SETELAH FOTO (sebelum paragraf pertama) ── */
.bk-ad-before_content {
  margin: 0 0 28px 0;
  /* Muncul seolah bagian dari artikel, tanpa border */
}

/* ── IN-CONTENT: iklan di TENGAH paragraf ──
   Inilah teknik GeloraJatim — konten terpotong,
   muncul kotak iklan, lalu konten nyambung lagi.
   Tidak ada margin vertikal — terasa seamless.
─────────────────────────────────────────── */
.bk-ad-in_content,
.bk-ad-in_content_2 {
  /* Reset margin paragraph sebelum & sesudah */
  margin-top: 0;
  margin-bottom: 0;
  /* Lebar penuh kolom artikel */
  width: 100%;
  clear: both;
  /* Inner: beri jarak visual agar tidak menempel ke teks */
  padding: 20px 0;
  /* Garis tipis atas-bawah sebagai pemisah halus */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
}

/* Konten di dalam iklan (img, iframe, ins) */
.bk-ad-in_content img,
.bk-ad-in_content_2 img,
.bk-ad-in_content iframe,
.bk-ad-in_content_2 iframe,
.bk-ad-in_content ins,
.bk-ad-in_content_2 ins {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* Paragraf tepat sebelum iklan: hapus margin bawah
   agar gap antara teks & iklan tetap rapi */
.bk-single-content p + .bk-ad-in_content,
.bk-single-content p + .bk-ad-in_content_2 {
  margin-top: 0;
}

/* Paragraf tepat setelah iklan: margin atas normal */
.bk-ad-in_content + p,
.bk-ad-in_content_2 + p {
  margin-top: 20px;
}

/* Mode terang: border lebih soft */
body.bk-light .bk-ad-in_content,
body.bk-light .bk-ad-in_content_2 {
  border-color: #e8e8e8;
  background: transparent;
}

/* ── Iklan BAWAH konten ── */
.bk-ad-after_content {
  margin: 28px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

/* ── Iklan SIDEBAR (sticky, tidak perlu batas) ── */
.bk-ad-sidebar {
  margin-bottom: 24px;
}

/* ── Iklan BAWAH author box ── */
.bk-ad-below_author {
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

/* ── Iklan SEBELUM berita terkait (full width) ── */
.bk-ad-before_related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 28px;
  text-align: center;
}

/* ══════════════════════════════════════════════════
   SIDEBAR ARTIKEL — Rapi, tanpa widget bawaan WP
══════════════════════════════════════════════════ */

/* Container sidebar */
.bk-single-sidebar { position: relative; min-width: 0; }
.bk-sidebar-inner  { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }

/* Iklan sidebar */
.bk-ad-sidebar-wrap { text-align: center; }

/* Widget title — sudah didefinisikan di atas (bk-widget-title) */

/* Berita terbaru sidebar — item dengan thumbnail */
.bk-sb-news-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: opacity .2s;
}
.bk-sb-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.bk-sb-news-item:hover { opacity: .8; }
.bk-sb-news-item img {
  width: 80px; height: 58px;
  object-fit: cover; flex-shrink: 0;
  border-radius: 3px;
}
.bk-sb-news-item div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bk-sb-cat {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--red);
}
.bk-sb-news-item p {
  font-size: 13px; font-weight: 600;
  line-height: 1.35; color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.bk-sb-news-item .bk-meta { font-size: 11px; color: var(--muted); margin-top: auto; }

/* ══ SEMBUNYIKAN WIDGET BAWAAN WORDPRESS ══
   Widget default (Recent Posts, Recent Comments,
   Search, Archives, Categories, Meta) tidak boleh
   muncul di halaman artikel.
   Ini override untuk theme yang menggunakan dynamic_sidebar.
════════════════════════════════════════════ */
.bk-single-sidebar .widget_recent_entries,
.bk-single-sidebar .widget_recent_comments,
.bk-single-sidebar .widget_search,
.bk-single-sidebar .widget_archive,
.bk-single-sidebar .widget_categories,
.bk-single-sidebar .widget_meta,
.bk-single-sidebar .widget_rss,
.bk-single-sidebar .widget_pages,
.bk-single-sidebar .widget_calendar,
.bk-single-sidebar .widget_tag_cloud { display: none !important; }

/* Sembunyikan juga di dalam konten artikel */
.bk-single-content .widget,
.bk-single-content #searchform,
.bk-single-content .search-form { display: none !important; }

/* ══ SEMBUNYIKAN KOMENTAR DEFAULT WP ══
   Kalau komentar dinonaktifkan, semua elemen
   form komentar & list komentar harus tersembunyi.
════════════════════════════════════════════ */
.bk-comments-wrap { display: none; }
.show-comments .bk-comments-wrap { display: block; }

/* Style form komentar jika diaktifkan */
.bk-comments-wrap { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.bk-comments-wrap h2, .bk-comments-wrap h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  margin-bottom: 20px; color: var(--text);
}
.bk-comments-wrap .comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.bk-comments-wrap .comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.bk-comments-wrap .comment-author { font-weight: 600; font-size: 14px; color: var(--text); }
.bk-comments-wrap .comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.bk-comments-wrap .comment-content { font-size: 15px; color: var(--text); line-height: 1.7; }
.bk-comments-wrap .comment-content p { margin-bottom: 8px; }

/* Form komentar */
.bk-comments-wrap #respond { margin-top: 24px; }
.bk-comments-wrap #respond h3 { font-size: 18px; margin-bottom: 16px; }
.bk-comments-wrap .comment-form label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em;
}
.bk-comments-wrap .comment-form input[type="text"],
.bk-comments-wrap .comment-form input[type="email"],
.bk-comments-wrap .comment-form input[type="url"],
.bk-comments-wrap .comment-form textarea {
  width: 100%; padding: 10px 14px;
  background: var(--mid); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-family: var(--font-body);
  border-radius: 4px; outline: none;
  transition: border-color .2s;
}
.bk-comments-wrap .comment-form input:focus,
.bk-comments-wrap .comment-form textarea:focus { border-color: var(--red); }
.bk-comments-wrap .comment-form textarea { min-height: 120px; resize: vertical; }
.bk-comments-wrap .comment-form .form-submit input[type="submit"] {
  background: var(--red); color: #fff;
  border: none; padding: 11px 28px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .06em;
  transition: opacity .2s;
}
.bk-comments-wrap .comment-form .form-submit input:hover { opacity: .85; }

/* Light mode comment form */
body.bk-light .bk-comments-wrap .comment-form input[type="text"],
body.bk-light .bk-comments-wrap .comment-form input[type="email"],
body.bk-light .bk-comments-wrap .comment-form textarea {
  background: #f8f8f8; border-color: #ddd; color: #111;
}

/* ── READING PROGRESS ── */
#bk-progress-bar { box-shadow: 0 0 6px var(--red); }

/* ===================================================
   SHARE BAR & VIEW COUNT (single post)
=================================================== */
.bk-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 32px 0;
}
.bk-view-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-right: auto;
}
.bk-view-count svg { opacity: .6; }
.bk-share-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.bk-share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--dark);
  color: var(--text);
  transition: all .2s;
  text-decoration: none;
}
.bk-share-btn:hover      { background: var(--red); color: #fff; border-color: var(--red); }
.bk-share-btn.btn-wa     { background: #1fad4b; color: #fff; border-color: #1fad4b; }
.bk-share-btn.btn-wa:hover { background: #178a3b; border-color: #178a3b; }
.bk-share-btn.btn-fb     { background: #1877f2; color: #fff; border-color: #1877f2; }
.bk-share-btn.btn-fb:hover { background: #1461cc; border-color: #1461cc; }
.bk-share-btn.btn-tw     { background: #000; color: #fff; border-color: #000; }
.bk-share-btn.btn-copy   { }
.bk-copy-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #222; color: #fff; padding: 10px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 600; opacity: 0;
  transition: opacity .3s, transform .3s; pointer-events: none; z-index: 9999;
}
.bk-copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================================================
   ARCHIVE / KATEGORI / SEARCH
=================================================== */
.bk-archive-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
}
.bk-archive-header { margin-bottom: 28px; }
.bk-archive-desc {
  font-size: 14px; color: var(--muted);
  line-height: 1.7; margin-top: 12px;
  max-width: 680px;
}
.bk-archive-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ── Kartu artikel archive ── */
.bk-archive-list { display: flex; flex-direction: column; gap: 0; }

.bk-arc-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.bk-arc-card:first-child { padding-top: 0; }
.bk-arc-card:last-of-type { border-bottom: none; }

/* Thumbnail */
.bk-arc-thumb {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--mid);
}
.bk-arc-thumb img {
  width: 240px; height: 160px;
  object-fit: cover; display: block;
  transition: transform .4s ease;
  filter: brightness(.9);
}
.bk-arc-card:hover .bk-arc-thumb img { transform: scale(1.04); }

/* Body konten */
.bk-arc-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bk-arc-body .bk-cat-tag { align-self: flex-start; }

.bk-arc-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  line-height: 1.3; margin: 0;
}
.bk-arc-title a {
  color: var(--text); text-decoration: none;
  transition: color .2s;
}
.bk-arc-title a:hover { color: var(--red); }

.bk-arc-excerpt {
  font-size: 14px; color: var(--muted);
  line-height: 1.65; margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bk-arc-meta {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 6px 10px;
  font-size: 12px; color: var(--muted);
  margin-top: 4px;
}
.bk-arc-author { display: flex; align-items: center; gap: 6px; }
.bk-arc-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: block; }
.bk-arc-sep { opacity: .35; }
.bk-arc-readmore {
  margin-left: auto;
  font-size: 12px; font-weight: 600;
  color: var(--red); text-decoration: none;
  white-space: nowrap; transition: opacity .2s;
}
.bk-arc-readmore:hover { opacity: .75; }

/* Empty state */
.bk-arc-empty {
  padding: 48px 0; text-align: center;
  color: var(--muted); font-size: 15px;
}

/* Sidebar archive */
.bk-arc-sidebar {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 80px;
}

/* Sidebar beranda — mengikuti konten, tidak terpotong */
.bk-home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* TIDAK sticky, TIDAK max-height — tampilkan semua widget */
  width: 100%;
}
.bk-home-sidebar .bk-widget {
  margin-bottom: 24px;
}

/* Pagination archive */
.bk-pagination {
  display: flex; gap: 6px;
  margin: 32px 0 0; flex-wrap: wrap;
  align-items: center;
}
.bk-pagination a,
.bk-pagination span {
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); color: var(--muted);
  text-decoration: none; border-radius: 4px;
  transition: all .2s; display: inline-block;
}
.bk-pagination a:hover,
.bk-pagination .current {
  background: var(--red); border-color: var(--red); color: #fff;
}

/* Light mode archive */
body.bk-light .bk-arc-card        { border-bottom-color: #F0F0F0; }
body.bk-light .bk-arc-title a     { color: #111; }
body.bk-light .bk-arc-excerpt     { color: #666; }
body.bk-light .bk-arc-meta        { color: #888; }
body.bk-light .bk-pagination a,
body.bk-light .bk-pagination span { border-color: #ddd; color: #666; background: #fff; }

/* ===================================================
   PAGINATION
=================================================== */
.bk-pagination { display: flex; gap: 4px; margin: 32px 0; }
.bk-pagination a, .bk-pagination span {
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); color: var(--muted);
  transition: all .2s;
}
.bk-pagination a:hover, .bk-pagination .current {
  background: var(--red); border-color: var(--red); color: #fff;
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .bk-card-grid                { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bk-card-img img             { height: 150px; }
  .bk-card h3                  { font-size: 14px; margin: 10px 10px 5px; }
  .bk-card p                   { margin: 0 10px 6px; font-size: 12px; }
  .bk-card-meta-link           { margin: auto 10px 10px; }
  .bk-footer-grid                    { grid-template-columns: 1fr 1fr; gap: 20px; }
  .bk-footer-brand                   { grid-column: 1 / -1; }
  .bk-footer-top                     { padding: 36px 0 28px; }
  .bk-footer-col.bk-col-kategori     { grid-column: 1 / -1; }
  .bk-footer-col.bk-col-kategori ul  { columns: 3; }
}

/* ── TABLET ── */
@media (max-width: 768px) {
  .bk-hero                          { grid-template-columns: 1fr; grid-template-rows: auto auto; padding: 0 12px; margin: 16px auto; gap: 3px; }
  .bk-hero-main                     { grid-row: auto; }
  .bk-hero-main.bk-slideshow        { height: 260px; }
  .bk-slide img                     { height: 260px; }
  .bk-hero-overlay                  { padding: 14px 16px 36px; }
  .bk-hero-overlay h1               { font-size: 17px; line-height: 1.3; margin: 6px 0 6px; }
  .bk-hero-overlay .bk-meta         { font-size: 11px; }
  /* Mobile: side cards jadi baris horizontal di bawah slideshow */
  .bk-hero-side {
    flex-direction: row;
    height: auto;          /* reset height desktop */
    gap: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bk-hero-side::-webkit-scrollbar { display: none; }

  /* Tiap card: lebar sesuai setting mobile, tinggi fixed */
  .bk-side-card {
    flex: 0 0 auto;
    height: 140px;         /* tinggi fixed di mobile */
  }
  /* Default mobile fallback = 3 cards */
  .bk-side-card                     { width: calc(33.33% - 2px); }
  .bk-hero--mobile-2 .bk-side-card  { width: calc(50% - 2px); }
  .bk-hero--mobile-3 .bk-side-card  { width: calc(33.33% - 2px); }
  .bk-hero--mobile-4 .bk-side-card  { width: calc(25% - 2px); }

  /* Gambar tetap absolute mengisi card */
  .bk-side-card img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }
  /* Link mengisi penuh card */
  .bk-side-card > a,
  .bk-side-card .bk-hero-full-link { height: 100%; }

  /* Overlay tetap di bawah gambar */
  .bk-side-overlay                  { padding: 6px 8px 8px; z-index: 2; }
  .bk-side-overlay h2               { font-size: 11px !important; -webkit-line-clamp: 2 !important; margin: 3px 0 0; line-height: 1.3; }
  .bk-side-overlay .bk-cat-tag      { font-size: 9px; padding: 2px 6px; }
  .bk-section { padding: 0 12px; margin: 24px auto; }
  .bk-section-header              { margin-bottom: 16px; }
  .bk-section-header h2,
  .bk-section-header h3           { font-size: 14px; padding: 7px 22px 7px 14px; }
  .bk-see-all                     { font-size: 11px; }
  .bk-card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bk-card-img img { height: 130px; }
  .bk-card h3 { font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
  .bk-card p { display: none; }
  .bk-card-img .bk-cat-tag { font-size: 9px; padding: 2px 6px; }
  .bk-list-card               { padding: 14px 0; gap: 12px; }
  .bk-list-card-thumb         { width: 96px; height: 72px; border-radius: 4px; }
  .bk-list-card-thumb img,
  .bk-list-card img           { width: 96px; height: 72px; border-radius: 4px; }
  .bk-list-card h3            { font-size: 14px; line-height: 1.35; }
  .bk-list-card .bk-meta      { font-size: 12px; }
  .bk-two-col                   { grid-template-columns: 1fr; gap: 24px; }
  .bk-sidebar                   { order: -1; }
  .bk-archive-wrap              { padding: 20px 12px 32px; }
  .bk-archive-grid              { grid-template-columns: 1fr; gap: 24px; }
  .bk-arc-sidebar               { position: static; order: -1; }
  .bk-arc-card                  { grid-template-columns: 160px 1fr; gap: 14px; padding: 16px 0; }
  .bk-arc-thumb img             { width: 160px; height: 110px; }
  .bk-arc-title                 { font-size: 16px; }
  .bk-arc-readmore              { display: none; }

  /* Header — brand compact di mobile */
  .bk-header-brand                        { gap: 8px; }
  .bk-brand-logo-link img,
  .bk-header-brand .custom-logo-link img  { height: 42px !important; }
  .bk-brand-name                          { font-size: 16px; }
  .bk-brand-tagline                       { font-size: 10px; max-width: 140px; }
  .bk-brand-text                          { padding-left: 8px; gap: 1px; }
  .bk-logo-text                           { font-size: 26px; }
  .bk-logo                                { font-size: 26px; }
  .bk-header-meta                         { font-size: 11px; }
  .bk-header-meta strong                  { font-size: 12px; }
  .bk-header-top                          { margin-bottom: 12px; gap: 10px; }
  .bk-header-actions                      { gap: 6px; }

  /* Nav: selalu tampil, scroll horizontal */
  .bk-nav-wrap { border-top: 1px solid var(--border); }
  .bk-nav a { font-size: 11px; padding: 10px 12px; }
  .bk-theme-toggle { padding: 4px 10px 4px 6px; font-size: 11px; }
  .bk-toggle-label { display: none; } /* sembunyikan teks, tampilkan icon+track saja */

  /* Footer */
  .bk-footer-grid                    { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .bk-footer-brand                   { grid-column: 1 / -1; border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 4px; }
  .bk-footer-about                   { max-width: 100%; }
  .bk-footer-top                     { padding: 28px 0 20px; }
  .bk-footer-col h4                  { margin-bottom: 10px; padding-bottom: 6px; }
  .bk-footer-col ul li a             { padding: 7px 0; font-size: 13px; }
  .bk-footer-col.bk-col-kategori     { grid-column: 1 / -1; }
  .bk-footer-col.bk-col-kategori ul  { columns: 3; column-gap: 0; }
  .bk-footer-bottom                  { flex-direction: column; gap: 6px; text-align: center; }
  .bk-footer-links                   { justify-content: center; }
  .bk-footer                         { margin-top: 32px; }
  .bk-footer-logo                    { font-size: 24px; }

  /* Single post — 768px: stack sidebar bawah */
  .bk-single-wrap { grid-template-columns: 1fr; gap: 24px; padding: 0 12px; margin: 20px auto; }
  .bk-single-title { font-size: 22px; }
  .bk-single-hero img { height: 220px; }
  .bk-single-content { font-size: 15px; }
  .bk-popular-num { font-size: 24px; width: 32px; }
  .bk-topbar-item { font-size: 11px; }
  .bk-sidebar-sticky { position: static; }
}

/* ── MOBILE KECIL (≤ 480px) ── */
@media (max-width: 480px) {
  .bk-hero { padding: 0 10px; gap: 3px; }
  .bk-hero-main.bk-slideshow { height: 220px; }
  .bk-slide img              { height: 220px; }
  .bk-hero-overlay           { padding: 12px 14px 34px; }
  .bk-hero-overlay h1        { font-size: 15px; line-height: 1.3; margin: 4px 0 4px; }
  .bk-hero-side                     { gap: 2px; }
  .bk-side-card                     { height: 115px; }
  .bk-hero--mobile-2 .bk-side-card  { width: calc(50% - 1px); }
  .bk-hero--mobile-3 .bk-side-card  { width: calc(33.33% - 1px); }
  .bk-hero--mobile-4 .bk-side-card  { width: calc(25% - 1px); }
  .bk-side-overlay                  { padding: 5px 7px 7px; }
  .bk-side-overlay h2               { font-size: 10px !important; -webkit-line-clamp: 2 !important; line-height: 1.3; margin: 2px 0 0; }
  .bk-card-grid               { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .bk-card-img img            { height: 110px; }
  .bk-card h3                 { font-size: 12px; line-height: 1.35; margin: 8px 8px 4px; -webkit-line-clamp: 3; }
  .bk-card p                  { display: none; }
  .bk-card-meta-link          { font-size: 11px; margin: auto 8px 8px; }
  .bk-section { padding: 0 10px; margin: 18px auto; }
  .bk-list-card               { padding: 13px 0; gap: 11px; }
  .bk-list-card-thumb         { width: 88px; height: 68px; border-radius: 4px; }
  .bk-list-card-thumb img,
  .bk-list-card img           { width: 88px; height: 68px; border-radius: 4px; }
  .bk-list-card h3            { font-size: 14px; line-height: 1.35; }
  .bk-list-card .bk-meta      { font-size: 11px; }

  /* Header sangat compact di HP kecil */
  .bk-header-brand                        { gap: 6px; }
  .bk-brand-logo-link img,
  .bk-header-brand .custom-logo-link img  { height: 34px !important; }
  .bk-brand-name                          { font-size: 13px; }
  .bk-brand-tagline                       { display: none; }
  .bk-brand-text                          { padding-left: 7px; }
  .bk-logo-text                           { font-size: 20px; }
  .bk-logo                                { font-size: 20px; }
  .bk-header-meta                         { display: none; }
  .bk-header-top                          { padding: 0; gap: 8px; flex-wrap: nowrap; }

  /* Nav scroll horizontal */
  .bk-nav a { font-size: 10px; padding: 9px 10px; letter-spacing: .04em; }

  /* Footer 1 kolom */
  .bk-footer-grid                    { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .bk-footer-brand                   { grid-column: 1 / -1; }
  .bk-footer-top                     { padding: 24px 0 16px; }
  .bk-footer-col h4                  { font-size: 10px; margin-bottom: 8px; }
  .bk-footer-col ul li a             { padding: 7px 0; font-size: 12px; }
  .bk-footer-col.bk-col-kategori     { grid-column: 1 / -1; }
  .bk-footer-col.bk-col-kategori ul  { columns: 2; }
  .bk-footer-socials                 { gap: 6px; }
  .bk-footer-social-icon             { width: 30px; height: 30px; }
  .bk-footer-brand-top               { gap: 10px; }
  .bk-footer-site-name               { font-size: 15px; }
  .bk-footer-logo-img .custom-logo-link img,
  .bk-footer-logo-wrap img           { max-height: 42px; }
  .bk-footer-brand-text              { padding-left: 10px; }
  .bk-contact-icon                   { width: 26px; height: 26px; }
  .bk-contact-text                   { font-size: 12px; padding-top: 3px; }
  .bk-archive { padding: 0 10px; }
  .bk-single-wrap { padding: 0 10px; }
  .bk-single-title { font-size: 19px; }
  .bk-single-hero img { height: 190px; }

  /* Archive mobile */
  .bk-archive-wrap              { padding: 16px 10px 24px; }
  .bk-archive-grid              { grid-template-columns: 1fr; }
  .bk-arc-card                  { grid-template-columns: 110px 1fr; gap: 10px; padding: 14px 0; }
  .bk-arc-thumb img             { width: 110px; height: 78px; }
  .bk-arc-title                 { font-size: 14px; line-height: 1.35; }
  .bk-arc-excerpt               { display: none; }
  .bk-arc-meta                  { gap: 4px 8px; font-size: 11px; }
}


/* ═══════════════════════════════════════════════════════
   HALAMAN STATIS (page.php)
═══════════════════════════════════════════════════════ */
.bk-page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.bk-page-inner {
  max-width: 820px;
  margin: 0 auto;
}
.bk-page-header { margin-bottom: 24px; }
.bk-page-title {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 900;
  color: var(--text); line-height: 1.25;
  margin-bottom: 14px;
}
.bk-page-divider {
  height: 3px; width: 60px;
  background: var(--red); border-radius: 2px;
}
.bk-page-thumb {
  margin-bottom: 28px;
  border-radius: 8px; overflow: hidden;
}
.bk-page-thumb img {
  width: 100%; height: auto;
  display: block; filter: brightness(.9);
}
.bk-page-content {
  font-size: 16px; line-height: 1.85;
  color: var(--text);
}
.bk-page-content h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  margin: 28px 0 12px; color: var(--text);
  border-left: 4px solid var(--red);
  padding-left: 12px;
}
.bk-page-content h3 {
  font-size: 18px; font-weight: 700;
  margin: 20px 0 10px; color: var(--text);
}
.bk-page-content p { margin-bottom: 16px; color: var(--muted); }
.bk-page-content ul, .bk-page-content ol {
  padding-left: 24px; margin-bottom: 16px; color: var(--muted);
}
.bk-page-content li { margin-bottom: 6px; line-height: 1.7; }
.bk-page-content a { color: var(--red); }
.bk-page-content a:hover { opacity: .8; }
.bk-page-content img { max-width: 100%; height: auto; border-radius: 6px; }
.bk-page-content blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px; margin: 20px 0;
  background: var(--mid); border-radius: 0 6px 6px 0;
  font-style: italic; color: var(--muted);
}
.bk-page-content table {
  width: 100%; border-collapse: collapse;
  margin-bottom: 20px; font-size: 14px;
}
.bk-page-content th, .bk-page-content td {
  border: 1px solid var(--border);
  padding: 10px 14px; text-align: left;
}
.bk-page-content th {
  background: var(--mid); font-weight: 700; color: var(--text);
}
.bk-page-links { margin-top: 24px; font-size: 14px; color: var(--muted); }
.bk-page-links a { color: var(--red); margin: 0 4px; }

/* Light mode */
body.bk-light .bk-page-title    { color: #111; }
body.bk-light .bk-page-content  { color: #222; }
body.bk-light .bk-page-content p,
body.bk-light .bk-page-content li { color: #444; }
body.bk-light .bk-page-content blockquote { background: #f5f5f5; }
body.bk-light .bk-page-content th { background: #f0f0f0; }

/* Responsive */
@media (max-width: 768px) {
  .bk-page-wrap  { padding: 20px 16px 40px; }
  .bk-page-title { font-size: 24px; }
  .bk-page-content { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════
   404 PAGE
═══════════════════════════════════════════════════════ */
.bk-404-wrap { max-width: var(--max-width); margin: 0 auto; padding: 60px 24px; text-align: center; }
.bk-404-inner { max-width: 640px; margin: 0 auto; }
.bk-404-num {
  font-family: var(--font-display);
  font-size: 120px; font-weight: 900; color: var(--red);
  line-height: 1; opacity: .15; margin-bottom: -20px;
}
.bk-404-title { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--text); margin-bottom: 12px; }
.bk-404-desc  { font-size: 15px; color: var(--muted); margin-bottom: 24px; line-height: 1.7; }
.bk-404-btn {
  display: inline-block; background: var(--red); color: #fff;
  text-decoration: none; padding: 12px 28px; border-radius: 6px;
  font-size: 14px; font-weight: 700; margin-bottom: 48px;
  transition: opacity .2s;
}
.bk-404-btn:hover { opacity: .85; }
.bk-404-suggest h2 {
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  color: var(--text); margin-bottom: 20px; text-align: left;
}

/* ═══════════════════════════════════════════════════════
   HOMEPAGE LAYOUT — konten kiri + sidebar kanan (1 kali)
═══════════════════════════════════════════════════════ */
.bk-homepage-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.bk-homepage-main {
  min-width: 0; /* cegah overflow */
}
/* Seksi di dalam kolom kiri: tidak perlu container sendiri */
.bk-section--inset {
  max-width: 100%;
  padding: 0;
  margin: 0 0 8px 0;
}
.bk-section--inset:last-child { margin-bottom: 0; }

/* Sidebar kanan homepage */
.bk-homepage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 80px;
}
.bk-homepage-sidebar .bk-widget {
  margin-bottom: 24px;
}

/* Responsive tablet */
@media (max-width: 1024px) {
  .bk-homepage-wrap {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
}

/* Responsive mobile — stack vertikal */
@media (max-width: 768px) {
  .bk-homepage-wrap {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }
  .bk-homepage-sidebar {
    position: static;
    order: -1; /* sidebar naik ke atas di mobile */
  }
}