/*
Theme Name: Bedah Kasus News
Theme URI: https://bedahkasus.com/
Author: Bedahkasus.com
Author URI: https://bedahkasus.com/
Description: Tema berita modern, cepat, dan SEO friendly untuk Bedahkasus.com — tanpa Elementor / page builder. Beranda, menu, dan seksi kategori tersusun otomatis dari kategori yang ada (Kepolisian, Hukum, Kriminal, Kejatisu, Pemerintah, TNI, Pendidikan, dst) sehingga langsung siap pakai tanpa pengaturan. Mendukung Rank Math, WordPress Popular Posts, mode gelap, schema NewsArticle, dan slot iklan.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bedahkasus
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--bk-primary: #eb3136;
	--bk-secondary: #3158a5;
	--bk-nav: #1f3f80;
	--bk-ink: #0f172a;
	--bk-text: #1e293b;
	--bk-muted: #64748b;
	--bk-bg: #ffffff;
	--bk-surface: #f4f6f9;
	--bk-line: #e3e7ee;
	--bk-card: #ffffff;
	--bk-footer: #0b1834;
	--bk-radius: 10px;
	--bk-radius-sm: 6px;
	--bk-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .06);
	--bk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--bk-font-read: Georgia, "Times New Roman", "Noto Serif", serif;
	--bk-header-h: 72px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bk-nav: #14244a;
		--bk-ink: #f1f5f9;
		--bk-text: #d5dbe4;
		--bk-muted: #94a3b8;
		--bk-bg: #0c1018;
		--bk-surface: #141a25;
		--bk-line: #243042;
		--bk-card: #121823;
		--bk-footer: #070b12;
		--bk-shadow: 0 1px 2px rgba(0, 0, 0, .4);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bk-nav: #14244a;
	--bk-ink: #f1f5f9;
	--bk-text: #d5dbe4;
	--bk-muted: #94a3b8;
	--bk-bg: #0c1018;
	--bk-surface: #141a25;
	--bk-line: #243042;
	--bk-card: #121823;
	--bk-footer: #070b12;
	--bk-shadow: 0 1px 2px rgba(0, 0, 0, .4);
	color-scheme: dark;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
html.no-scroll { overflow: hidden; }

body {
	margin: 0;
	background: var(--bk-bg);
	color: var(--bk-text);
	font-family: var(--bk-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--bk-primary); }

h1, h2, h3, h4, h5, h6 { color: var(--bk-ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--bk-primary); outline-offset: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--bk-primary); color: #fff; border-radius: var(--bk-radius-sm);
}

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 16px; }

.icon { flex-shrink: 0; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%;
	background: transparent; color: var(--bk-ink); cursor: pointer;
	transition: background .15s ease;
}
.icon-btn:hover { background: var(--bk-surface); }

.btn, .btn-more, .comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 10px 20px; border: 0; border-radius: 999px;
	background: var(--bk-primary); color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}
.btn:hover, .btn-more:hover, .comment-form .submit:hover { color: #fff; filter: brightness(1.08); }
.btn:active, .btn-more:active { transform: scale(.98); }

/* ==========================================================================
   3. Top bar, header, nav
   ========================================================================== */
.topbar { background: var(--bk-footer); color: #cbd5e1; font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.topbar-date { white-space: nowrap; }
.topbar-nav { margin-left: auto; }
.topbar-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar-nav a:hover { color: #fff; }
.topbar .social-links a { color: #cbd5e1; }

.social-links { display: flex; gap: 6px; align-items: center; }
.social-links a {
	display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	transition: background .15s ease, color .15s ease;
}
.social-links a:hover { background: var(--bk-primary); color: #fff; }
.social-links .icon { width: 16px; height: 16px; }

.site-header {
	position: sticky; top: calc(var(--bk-header-h) * -1); z-index: 50;
	background: var(--bk-bg);
	box-shadow: 0 1px 0 var(--bk-line);
}
.admin-bar .site-header { top: calc(var(--bk-header-h) * -1 + 32px); }
@media (max-width: 782px) { .admin-bar .site-header { top: calc(var(--bk-header-h) * -1 + 46px); } }
@media (max-width: 600px) { .admin-bar .site-header { top: calc(var(--bk-header-h) * -1); } }

.header-inner { display: flex; align-items: center; gap: 16px; height: var(--bk-header-h); }

.site-logo { margin: 0; line-height: 0; font-size: 1rem; }
.site-logo a { display: inline-block; }
.site-logo img { max-height: 52px; width: auto; }

.header-search { flex: 1; max-width: 420px; margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.menu-toggle, .search-toggle { display: none; }

.theme-toggle .when-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .when-dark { display: inline; }
:root[data-theme="dark"] .theme-toggle .when-light { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .when-dark { display: inline; }
	:root:not([data-theme="light"]) .theme-toggle .when-light { display: none; }
}

/* Logo berwarna tetap terbaca di latar gelap */
:root[data-theme="dark"] .site-logo img,
.site-footer .site-logo img { background: #fff; padding: 4px 10px; border-radius: 8px; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .site-logo img { background: #fff; padding: 4px 10px; border-radius: 8px; }
}

/* Search form */
.search-form { position: relative; display: flex; }
.search-field {
	width: 100%; height: 42px; padding: 0 46px 0 18px;
	border: 1px solid var(--bk-line); border-radius: 999px;
	background: var(--bk-surface); color: var(--bk-ink);
	transition: border-color .15s ease, background .15s ease;
}
.search-field:focus { outline: none; border-color: var(--bk-secondary); background: var(--bk-bg); }
.search-field::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-submit {
	position: absolute; right: 4px; top: 4px; width: 34px; height: 34px;
	display: grid; place-items: center; border: 0; border-radius: 50%;
	background: var(--bk-primary); color: #fff; cursor: pointer;
}
.search-submit .icon { width: 17px; height: 17px; }

.search-overlay { background: var(--bk-bg); border-bottom: 1px solid var(--bk-line); padding: 12px 0; }

/* Primary nav */
.primary-nav { background: var(--bk-nav); color: #fff; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; align-items: center; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 14px;
	font-size: .88rem; font-weight: 700; letter-spacing: .01em; color: #fff; white-space: nowrap;
	position: relative;
}
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
	background: var(--bk-primary); border-radius: 3px 3px 0 0;
	transform: scaleX(0); transition: transform .2s ease;
}
.primary-nav .menu > li > a:hover::after,
.primary-nav .menu > .current-menu-item > a::after,
.primary-nav .menu > .current-menu-ancestor > a::after,
.primary-nav .menu > .current-category-ancestor > a::after { transform: scaleX(1); }
.primary-nav .menu > li:first-child > a { padding-left: 0; }
.primary-nav .menu > li:first-child > a::after { left: 0; }
.primary-nav .menu-item-has-children > a::before {
	content: ""; order: 2; width: 0; height: 0; margin-left: 2px;
	border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
}
.primary-nav .sub-menu {
	position: absolute; top: 100%; right: 0; min-width: 220px; padding: 8px;
	background: var(--bk-card); color: var(--bk-text);
	border: 1px solid var(--bk-line); border-radius: var(--bk-radius); box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
	display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu,
.primary-nav .menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 8px 10px; border-radius: var(--bk-radius-sm); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.primary-nav .sub-menu a:hover { background: var(--bk-surface); color: var(--bk-primary); }

/* Ticker */
.ticker { background: var(--bk-bg); border-bottom: 1px solid var(--bk-line); }
.ticker-inner { display: flex; align-items: center; gap: 14px; height: 42px; overflow: hidden; }
.ticker-label {
	display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
	padding: 4px 12px; border-radius: 999px; background: var(--bk-primary); color: #fff;
	font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.ticker-label .icon { width: 14px; height: 14px; }
.ticker-viewport {
	flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 40px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 40px), transparent);
}
.ticker-viewport::-webkit-scrollbar { display: none; }
.ticker-track { display: flex; width: max-content; }
.ticker-track.is-animated { animation: bk-ticker 70s linear infinite; }
.ticker-viewport:has(.is-animated) { overflow: hidden; }
.ticker-viewport:hover .ticker-track, .ticker-viewport:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.ticker-list li { font-size: .88rem; font-weight: 600; color: var(--bk-ink); }
.ticker-list li::after { content: "•"; margin: 0 16px; color: var(--bk-primary); }
@keyframes bk-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .55); animation: bk-fade .2s ease; }
.drawer-panel {
	position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 88vw);
	background: var(--bk-bg); padding: 16px; overflow-y: auto;
	animation: bk-slide .25s cubic-bezier(.2, .8, .2, 1);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-head .site-logo img { max-height: 40px; }
.drawer-title { margin: 22px 0 8px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bk-muted); }
.drawer-cats, .drawer-pages { list-style: none; margin: 0; padding: 0; }
.drawer-cats a {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 10px 12px 10px 14px; border-radius: var(--bk-radius-sm); font-weight: 700;
	border-left: 3px solid var(--cat, var(--bk-primary));
}
.drawer-cats li + li { margin-top: 2px; }
.drawer-cats a:hover { background: var(--bk-surface); }
.drawer-cats .count { font-size: .75rem; font-weight: 600; color: var(--bk-muted); }
.drawer-pages a { display: block; padding: 8px 0; color: var(--bk-muted); font-size: .92rem; }
.drawer .social-links { margin-top: 18px; }
@keyframes bk-fade { from { opacity: 0; } }
@keyframes bk-slide { from { transform: translateX(-100%); } }

/* ==========================================================================
   4. Layout & section heads
   ========================================================================== */
.site-main { padding-bottom: 48px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.content-col { min-width: 0; }

.home-section { margin-top: 36px; }
.section-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	border-bottom: 2px solid var(--bk-line); margin-bottom: 18px;
}
.section-title { margin: 0; font-size: 1.15rem; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.section-title span {
	display: inline-block; padding-bottom: 8px; margin-bottom: -2px;
	border-bottom: 3px solid var(--cat, var(--bk-primary));
}
.section-more { font-size: .82rem; font-weight: 700; color: var(--cat, var(--bk-primary)); white-space: nowrap; }
.section-more:hover { text-decoration: underline; color: var(--cat, var(--bk-primary)); }

.ad-slot { margin: 24px 0; text-align: center; }
.ad-slot img { margin: 0 auto; }
.ad-label { display: block; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bk-muted); margin-bottom: 4px; }

/* ==========================================================================
   5. Cards
   ========================================================================== */
.card { position: relative; min-width: 0; }
.card-thumb {
	display: block; position: relative; overflow: hidden; border-radius: var(--bk-radius);
	background: var(--bk-surface); aspect-ratio: 16 / 9;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-title { margin: 0; font-weight: 800; color: var(--bk-ink); }
.card-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease, color .15s; }
.card-title a:hover { background-size: 100% 1px; }
.card-excerpt { margin: 6px 0 0; color: var(--bk-muted); font-size: .92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: .78rem; color: var(--bk-muted); }
.card-meta .icon { width: 13px; height: 13px; }

.thumb-placeholder {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--bk-secondary), var(--bk-primary));
	color: rgba(255, 255, 255, .85); font-weight: 900; font-size: .9rem; letter-spacing: .04em; text-align: center; padding: 8px;
}
.card-mini .thumb-placeholder, .card-rank .thumb-placeholder, .card-list .thumb-placeholder { font-size: .55rem; letter-spacing: 0; padding: 4px; }

.play-badge {
	position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center;
	width: 38px; height: 38px; border-radius: 50%; background: rgba(235, 49, 54, .92); color: #fff;
}

.cat-badge {
	display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 4px;
	background: var(--cat, var(--bk-primary)); color: #fff;
	font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5;
}
.cat-badge:hover { color: #fff; filter: brightness(1.1); }

/* Overlay */
.card-overlay { height: 100%; border-radius: var(--bk-radius); overflow: hidden; }
.card-overlay .card-thumb { height: 100%; aspect-ratio: auto; border-radius: 0; }
.card-overlay .card-thumb::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(2, 6, 23, 0) 30%, rgba(2, 6, 23, .55) 60%, rgba(2, 6, 23, .92) 100%);
}
.card-overlay .card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; z-index: 1; pointer-events: none; }
.card-overlay .card-body a { pointer-events: auto; }
.card-overlay .card-title { color: #fff; font-size: 1.05rem; line-height: 1.35; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.card-overlay .card-title a:hover { color: #fff; }
.card-overlay .card-meta { color: rgba(255, 255, 255, .8); }
.card-overlay .card-excerpt { color: rgba(255, 255, 255, .85); }

/* Grid */
.card-grid .card-body { padding-top: 12px; }
.card-grid .card-title { font-size: 1.02rem; line-height: 1.4; }

/* List */
.card-list { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--bk-line); }
.card-list:first-child { padding-top: 0; }
.card-list .card-title { font-size: 1.15rem; line-height: 1.38; }

/* Mini */
.card-mini { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; }
.card-mini .card-thumb { aspect-ratio: 4 / 3; border-radius: var(--bk-radius-sm); }
.card-mini .card-title { font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-mini .card-meta { margin-top: 4px; }

/* Rank (Terpopuler) */
.rank-list { counter-reset: rank; }
.card-rank { display: grid; grid-template-columns: 34px 76px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--bk-line); }
.card-rank:last-child { border-bottom: 0; }
.card-rank .rank-num { font-size: 1.9rem; font-weight: 900; line-height: 1; color: var(--bk-line); text-align: center; font-variant-numeric: tabular-nums; }
.card-rank:nth-child(-n+3) .rank-num { color: var(--bk-primary); }
.card-rank .card-thumb { aspect-ratio: 1; border-radius: var(--bk-radius-sm); }
.card-rank .card-title { font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-rank .card-meta { margin-top: 4px; }

/* ==========================================================================
   6. Home
   ========================================================================== */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; margin-top: 20px; height: 470px; }
.hero-main, .hero-side { min-height: 0; }
.hero-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.hero-main .card-title { font-size: 1.75rem; line-height: 1.25; }
.hero-main .card-body { padding: 24px; }
.hero-side .card-title { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-side .card-body { padding: 12px; }
.hero-side .cat-badge { margin-bottom: 6px; font-size: .62rem; }
.hero-side .card-meta { display: none; }

.btn-more { margin-top: 20px; width: 100%; background: var(--bk-surface); color: var(--bk-ink); border: 1px solid var(--bk-line); }
.btn-more:hover { background: var(--bk-primary); color: #fff; border-color: var(--bk-primary); }

.cat-block { display: grid; gap: 20px; }
.layout-feature .cat-block { grid-template-columns: 1.15fr 1fr; }
.layout-feature .cat-feature .card-title { font-size: 1.3rem; }
.cat-list { display: grid; gap: 16px; align-content: start; }
.layout-grid .cat-block { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-grid .card-title { font-size: .95rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* ==========================================================================
   7. Sidebar
   ========================================================================== */
.sidebar { display: grid; gap: 32px; padding-top: 36px; }
.sidebar .widget { min-width: 0; }
.widget-advertorial .card-mini + .card-mini { margin-top: 14px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cat-chips a {
	display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
	background: var(--bk-surface); border: 1px solid var(--bk-line);
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cat-chips a:hover { background: var(--cat, var(--bk-primary)); border-color: var(--cat, var(--bk-primary)); color: #fff; }
.sidebar .widget ul:not(.cat-chips) { list-style: none; margin: 0; padding: 0; }
.sidebar .widget ul:not(.cat-chips) li { padding: 8px 0; border-bottom: 1px solid var(--bk-line); }

/* ==========================================================================
   8. Archive
   ========================================================================== */
.archive-header {
	display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
	margin: 20px 0 24px; padding: 22px 24px; border-radius: var(--bk-radius);
	background: var(--bk-surface); border-left: 5px solid var(--cat, var(--bk-primary));
}
.archive-header > div { flex: 1; min-width: 0; }
.archive-header img { border-radius: 50%; }
.archive-title { margin: 0; font-size: 1.9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.archive-title .icon { width: 28px; height: 28px; color: var(--bk-primary); }
.archive-page { font-size: 1rem; font-weight: 600; color: var(--bk-muted); }
.archive-desc { margin: 6px 0 0; color: var(--bk-muted); }
.archive-desc p { margin: 0; }
.archive-search { width: 100%; max-width: 480px; margin-top: 12px; }
.archive-lead { height: 400px; margin-bottom: 8px; }
.archive-lead .card-title { font-size: 1.6rem; }
.archive-lead .card-body { padding: 24px; }
.sub-cats { margin: -8px 0 20px; }
.no-results { padding: 32px; text-align: center; background: var(--bk-surface); border-radius: var(--bk-radius); }

.tabs { display: flex; gap: 6px; margin-top: 14px; width: 100%; }
.tabs a { padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; border: 1px solid var(--bk-line); background: var(--bk-bg); }
.tabs a.is-active { background: var(--bk-primary); border-color: var(--bk-primary); color: #fff; }

.trending-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: start; }
.trend-num { font-size: 2.2rem; font-weight: 900; color: var(--bk-line); line-height: 1; padding-top: 14px; font-variant-numeric: tabular-nums; }
.trending-item:nth-child(-n+3) .trend-num { color: var(--bk-primary); }
.trending-item:first-child .card-list { padding-top: 18px; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border-radius: var(--bk-radius-sm); border: 1px solid var(--bk-line); font-weight: 700; font-size: .92rem;
}
.pagination .page-numbers.current { background: var(--bk-primary); border-color: var(--bk-primary); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--bk-primary); color: var(--bk-primary); }
.pagination .dots { border: 0; }

/* ==========================================================================
   9. Single
   ========================================================================== */
.breadcrumbs { margin: 20px 0 14px; font-size: .82rem; color: var(--bk-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.breadcrumbs a { color: var(--bk-secondary); font-weight: 600; }
.breadcrumbs [aria-current] span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.entry-title { font-size: 2.15rem; line-height: 1.22; margin: 4px 0 12px; letter-spacing: -.02em; }
.entry-lead { font-size: 1.1rem; color: var(--bk-muted); margin: 0 0 16px; line-height: 1.6; }
.entry-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
	padding: 12px 0; border-top: 1px solid var(--bk-line); border-bottom: 1px solid var(--bk-line);
	font-size: .85rem; color: var(--bk-muted);
}
.meta-author { display: inline-flex; align-items: center; gap: 8px; }
.meta-author img { border-radius: 50%; }
.meta-author a { font-weight: 800; color: var(--bk-ink); }
.meta-date { display: inline-flex; flex-direction: column; }
.meta-updated { font-size: .78rem; }
.meta-read { display: inline-flex; align-items: center; gap: 5px; }
.meta-read .icon { width: 14px; height: 14px; }

.share-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.share-label { font-size: .82rem; font-weight: 800; color: var(--bk-muted); margin-right: 2px; }
.share-btn {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	border: 0; color: #fff; cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.share-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.1); }
.share-btn .icon { width: 18px; height: 18px; }
.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-x { background: #111; }
.share-telegram { background: #229ed9; }
.share-copy { background: var(--bk-muted); position: relative; }
.share-copy.is-copied::after {
	content: "Tersalin!"; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
	padding: 3px 8px; border-radius: 4px; background: var(--bk-ink); color: var(--bk-bg); font-size: .72rem; font-weight: 700; white-space: nowrap;
}

.entry-thumb { margin: 0 0 24px; }
.entry-thumb img { width: 100%; border-radius: var(--bk-radius); aspect-ratio: 16 / 9; object-fit: cover; }
.entry-thumb figcaption, .wp-caption-text, .wp-element-caption {
	margin-top: 8px; font-size: .82rem; color: var(--bk-muted); line-height: 1.5; font-style: italic;
}

.entry-content { font-size: 1.12rem; line-height: 1.85; color: var(--bk-text); overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content h2 { font-size: 1.5rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.4em; }
.entry-content a { color: var(--bk-secondary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:hover { color: var(--bk-primary); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img { border-radius: var(--bk-radius-sm); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content blockquote {
	margin-left: 0; margin-right: 0; padding: 16px 22px; border-left: 4px solid var(--bk-primary);
	background: var(--bk-surface); border-radius: 0 var(--bk-radius) var(--bk-radius) 0;
	font-family: var(--bk-font-read); font-size: 1.15rem; font-style: italic; color: var(--bk-ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--bk-line); padding: 8px 10px; text-align: left; }
.entry-content th { background: var(--bk-surface); }
.entry-content iframe { width: 100%; border-radius: var(--bk-radius-sm); }
.entry-content .wp-block-embed iframe, .entry-content iframe[src*="youtube"] { aspect-ratio: 16 / 9; height: auto; }
.entry-content pre { overflow-x: auto; padding: 16px; background: var(--bk-surface); border-radius: var(--bk-radius-sm); font-size: .9rem; }
.entry-content hr { border: 0; border-top: 1px solid var(--bk-line); margin: 2em 0; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.wp-caption { max-width: 100%; }

.read-also {
	margin: 1.6em 0; padding: 14px 18px; border-left: 4px solid var(--bk-primary);
	background: var(--bk-surface); border-radius: 0 var(--bk-radius) var(--bk-radius) 0; font-size: 1rem; line-height: 1.5;
}
.read-also strong { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bk-primary); margin-bottom: 4px; }
.read-also ul { list-style: none; padding: 0; margin: 0; }
.read-also li + li { margin-top: 6px; }
.entry-content .read-also a { color: var(--bk-ink); font-weight: 700; text-decoration: none; }
.entry-content .read-also a:hover { color: var(--bk-primary); }

.page-links { margin: 1em 0; font-weight: 700; }

.entry-footer { margin-top: 28px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags-label { font-weight: 800; font-size: .85rem; }
.entry-tags a { padding: 5px 12px; border-radius: 999px; background: var(--bk-surface); border: 1px solid var(--bk-line); font-size: .82rem; font-weight: 600; }
.entry-tags a:hover { border-color: var(--bk-primary); }

.author-box { display: flex; gap: 16px; align-items: center; padding: 18px; margin-top: 20px; background: var(--bk-surface); border-radius: var(--bk-radius); }
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-name { margin: 0; font-weight: 800; font-size: 1.05rem; color: var(--bk-ink); }
.author-bio { margin: 2px 0 0; color: var(--bk-muted); font-size: .9rem; }

.related { margin-top: 40px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.post-nav > div { padding: 16px; border: 1px solid var(--bk-line); border-radius: var(--bk-radius); }
.post-nav span { display: block; font-size: .75rem; font-weight: 800; color: var(--bk-primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.post-nav a { font-weight: 700; color: var(--bk-ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav .nav-next { text-align: right; grid-column: 2; }

/* Comments */
.comments-area { margin-top: 40px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 32px; }
.comment-body { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--bk-line); }
.comment-avatar img { border-radius: 50%; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: .85rem; }
.comment-author { color: var(--bk-ink); }
.comment-date { color: var(--bk-muted); font-size: .78rem; }
.comment-content p { margin: 6px 0; }
.comment-awaiting { font-size: .85rem; color: var(--bk-primary); }
.reply a { font-size: .8rem; font-weight: 700; color: var(--bk-secondary); }
.comment-reply-title { font-size: 1.15rem; margin-top: 28px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 14px; border: 1px solid var(--bk-line); border-radius: var(--bk-radius-sm); background: var(--bk-bg);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--bk-secondary); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* 404 */
.error-404 { max-width: 560px; margin: 48px auto 0; text-align: center; }
.error-code { margin: 0; font-size: 6rem; font-weight: 900; line-height: 1; color: var(--bk-primary); letter-spacing: -.04em; }
.error-404 .search-form { margin-top: 20px; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer { background: var(--bk-footer); color: #aab4c4; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.footer-text p, .footer-address p { margin: 14px 0 0; line-height: 1.7; }
.footer-about .social-links { margin-top: 16px; }
.footer-about .social-links a { background: rgba(255, 255, 255, .08); color: #fff; }
.footer-title { margin: 0 0 14px; color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-cats { columns: 2; column-gap: 20px; }
.footer-cats, .footer-menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; }
.footer-cats li, .footer-menu li, .site-footer .menu li { padding: 4px 0; break-inside: avoid; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .82rem; text-align: center; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; font-weight: 700; }

.back-to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: var(--bk-primary); color: #fff; font-size: 1.2rem; font-weight: 800; cursor: pointer;
	box-shadow: 0 6px 18px rgba(235, 49, 54, .35);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
	.layout-grid .cat-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-list { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 960px) {
	:root { --bk-header-h: 60px; }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar { padding-top: 8px; }
	.header-search, .topbar-nav, .topbar .social-links { display: none; }
	.menu-toggle, .search-toggle { display: inline-grid; }
	.header-inner { gap: 8px; }
	.site-logo { margin-right: auto; }
	.site-logo img { max-height: 42px; }

	.primary-nav .container { padding: 0; }
	.primary-nav .menu { overflow-x: auto; scrollbar-width: none; padding: 0 16px; -webkit-overflow-scrolling: touch; }
	.primary-nav .menu::-webkit-scrollbar { display: none; }
	.primary-nav .menu > li > a { height: 42px; padding: 0 12px; font-size: .84rem; }
	.primary-nav .menu > li:first-child > a { padding-left: 0; }
	.primary-nav .menu-more, .primary-nav .sub-menu { display: none; }

	.hero { grid-template-columns: 1fr; height: auto; }
	.hero-main { height: 320px; }
	.hero-side { grid-template-rows: none; grid-auto-rows: 170px; }

	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	body { font-size: 15px; }
	.topbar-inner { min-height: 30px; justify-content: center; }
	.hero { margin-top: 12px; gap: 10px; }
	.hero-main { height: 260px; }
	.hero-main .card-title { font-size: 1.3rem; }
	.hero-main .card-body { padding: 16px; }
	.hero-side { gap: 10px; grid-auto-rows: 150px; }
	.hero-side .card-title { font-size: .85rem; }

	.home-section { margin-top: 28px; }
	.layout-feature .cat-block { grid-template-columns: 1fr; }
	.layout-grid .cat-block { gap: 16px 12px; }
	.layout-grid .card-title { font-size: .9rem; }

	.card-list { grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; padding: 14px 0; }
	.card-list .card-thumb { order: 2; aspect-ratio: 1; border-radius: var(--bk-radius-sm); }
	.card-list .card-title { font-size: 1rem; }
	.card-list .card-excerpt { display: none; }
	.card-list .cat-badge { font-size: .6rem; padding: 2px 6px; margin-bottom: 4px; }

	.grid-2, .grid-3 { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
	.grid-2 .card-title, .grid-3 .card-title { font-size: .9rem; }

	.archive-header { padding: 16px; margin-top: 12px; }
	.archive-title { font-size: 1.45rem; }
	.archive-lead { height: 260px; }
	.archive-lead .card-title { font-size: 1.2rem; }
	.archive-lead .card-body { padding: 16px; }

	.entry-title { font-size: 1.6rem; }
	.entry-content { font-size: 1.06rem; line-height: 1.8; }
	.entry-meta { gap: 8px 14px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav .nav-next { grid-column: auto; }
	.alignleft, .alignright { float: none; margin: 0 0 1em; }

	.footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 36px; }
	.footer-about { grid-column: 1 / -1; }
	.footer-cats { columns: 1; }
	.trending-item { grid-template-columns: 34px minmax(0, 1fr); }
	.trend-num { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .site-header, .ticker, .sidebar, .share-buttons, .related, .post-nav, .comments-area, .site-footer, .ad-slot, .back-to-top { display: none !important; }
	.layout { display: block; }
	body { color: #000; background: #fff; }
}
