/*
Theme Name: Lintas Berita
Theme URI: https://urbanbogor.com/
Author: Urbanbogor.com
Description: Tema portal berita ringan untuk WordPress: headline slider, breaking news ticker, blok kategori, Baca Juga otomatis, paginasi artikel ?page=N, halaman Terpopuler/Trending, schema NewsArticle.
Version: 1.0.0
Requires at least: 6.0
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: lintas
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ========== Variabel ========== */
:root {
	--primary: #1658a8;
	--primary-dark: #104484;
	--accent: #f2b705;
	--text: #1d1d1f;
	--muted: #6b6f76;
	--bg: #ffffff;
	--bg-soft: #f3f5f8;
	--border: #e2e6ec;
	--dark-bar: #172233;
	--radius: 8px;
	--font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Lato", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--container: 1180px;
}

/* ========== Dasar ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 .5em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--bg); padding: 8px 12px; clip: auto; width: auto; height: auto; }

/* ========== Iklan ========== */
.ad-slot { margin: 16px auto; text-align: center; max-width: 100%; overflow: hidden; }
.ad-slot:empty { display: none; }
.ad-slot .widget { margin: 0; }
.ad-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }

/* ========== Header ========== */
.site-header { background: var(--bg); }
.header-main { display: flex; align-items: center; gap: 40px; padding: 0 16px; min-height: 76px; }
.site-branding { flex: 0 0 auto; }
.site-branding img { max-height: 48px; width: auto; }
.site-title { font-family: var(--font-head); font-size: 34px; font-weight: 900; margin: 0; letter-spacing: -.5px; line-height: 1; text-transform: none; }
.site-title a { color: var(--primary); }
.site-title span { color: var(--text); }
.site-description { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.header-search { flex: 1 1 auto; max-width: 400px; }
.search-form { display: flex; align-items: center; background: #f1f2f1; border: 1px solid #e2e4e2; border-radius: 999px; padding: 4px 5px 4px 20px; }
.search-form input[type="search"] { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text); outline: none; padding: 7px 0; min-width: 0; }
.search-form button { border: 0; background: var(--primary); color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.search-form button svg { width: 15px; height: 15px; }
.header-actions { margin-left: auto; display: flex; align-items: center; align-self: stretch; gap: 10px; }
.header-btn { display: flex; align-items: center; gap: 10px; align-self: stretch; padding: 0 0 0 26px; border-left: 1px solid var(--border); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; color: var(--text); }
.header-btn:hover { color: var(--primary); }
.header-btn-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 15px; }
.icon-btn { border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; align-self: center; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

/* Menu utama */
.main-nav { background: var(--primary); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.admin-bar .main-nav { top: 32px; }
.main-nav .container { display: flex; align-items: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav li { position: relative; flex: 0 0 auto; }
.main-nav a { display: block; color: #fff; font-weight: 700; font-size: 15px; padding: 11px 18px; white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-category-ancestor > a, .main-nav .current-post-ancestor > a { background: var(--primary-dark); color: #fff; }
.main-nav .home-link a { padding: 11px 18px; }
.main-nav .home-link svg { width: 18px; height: 18px; display: block; }
.main-nav .sub-menu { display: none; }

/* Menu kedua */
.sub-nav { background: #ececec; }
.sub-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sub-nav a { display: block; font-size: 14px; font-weight: 700; padding: 9px 12px; white-space: nowrap; color: #2b2f2d; }
.sub-nav a:hover { color: var(--primary); }
.sub-nav a::first-letter { color: var(--primary); }

/* Ticker */
.ticker-wrap { background: linear-gradient(#ececec 50%, var(--bg) 50%); }
.ticker { display: flex; align-items: center; background: var(--dark-bar); color: #fff; border-radius: 4px; margin: 0 auto; overflow: hidden; font-size: 13px; }
.ticker-label { flex: 0 0 auto; background: var(--primary); font-weight: 800; padding: 8px 16px; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; position: relative; z-index: 2; border-radius: 4px 0 0 4px; }
.ticker-track { flex: 1; overflow: hidden; position: relative; }
.ticker-items { display: inline-flex; gap: 48px; white-space: nowrap; padding-left: 100%; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-items { animation-play-state: paused; }
.ticker-items a { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.ticker-items a:hover { color: var(--accent); }
.tk-ico { width: 14px; height: 14px; opacity: .8; flex: 0 0 auto; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-items { animation: none; padding-left: 16px; } }

/* ========== Layout ========== */
.site-content { padding: 20px 0 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
.sidebar { min-width: 0; }
.sidebar-inner { position: sticky; top: 64px; }

/* Judul seksi */
.section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 18px; font-weight: 900; text-transform: uppercase; }
.section-title .accent { color: var(--primary); }
.section-title::after { content: ""; flex: 1; border-top: 2px dotted var(--border); }
.section-title .more { order: 3; font-size: 12px; font-weight: 700; color: var(--primary); text-transform: none; white-space: nowrap; }
.section-kicker { display: block; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.section-head-bar { border-left: 4px solid var(--primary); padding-left: 12px; margin-bottom: 16px; }
.section-head-bar h2 { margin: 0; font-size: 20px; font-weight: 900; text-transform: uppercase; }

/* Label kategori & waktu */
.cat-label { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); padding: 2px 8px; border-radius: 999px; }
.cat-label:hover { background: var(--primary); color: #fff; }
.meta-time { font-size: 12px; color: var(--muted); }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ========== Slider headline ========== */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.hero-slides { display: flex; transition: transform .5s ease; }
.hero-slide { flex: 0 0 100%; position: relative; aspect-ratio: 16 / 9; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .no-thumb { width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary), var(--dark-bar)); }
.hero-caption { position: absolute; inset: auto 0 0 0; padding: 60px 20px 34px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; }
.hero-caption h2 { font-size: 26px; margin: 4px 0 0; }
.hero-caption a { color: #fff; }
.hero-caption .meta-time { color: #ddd; }
.hero-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; }
.hero-dots button.is-active { background: #fff; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; font-size: 20px; line-height: 1; }
.hero-arrow.prev { left: 10px; } .hero-arrow.next { right: 10px; }

/* Baris headline bawah slider */
.headline-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; padding: 16px 0 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.headline-row h3 { font-size: 15px; margin: 0; }
.badge { display: inline-block; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; margin-top: 12px; }

/* ========== Daftar berita ========== */
.post-list { display: flex; flex-direction: column; }
.post-item { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.post-item:first-child { padding-top: 0; }
.post-thumb { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-thumb:hover img { transform: scale(1.04); }
.post-item h3 { font-size: 18px; margin: 4px 0 0; }
.post-item .excerpt { font-size: 14px; color: var(--muted); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Grid berita */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.post-card h3 { font-size: 15px; margin: 8px 0 0; }
.home-section { margin: 28px 0; }
.home-section.boxed { background: var(--bg-soft); padding: 20px; border-radius: var(--radius); }

/* Blok kategori: 1 besar + daftar */
.cat-block { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 18px; }
.cat-block .lead h3 { font-size: 20px; margin-top: 10px; }
.cat-block .lead .excerpt { font-size: 14px; color: var(--muted); }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-item { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mini-item:first-child { padding-top: 0; }
.mini-item .post-thumb { aspect-ratio: 4 / 3; }
.mini-item h4 { font-size: 14px; margin: 0; }

.load-more { display: block; text-align: center; margin: 20px auto 0; padding: 10px 20px; border: 1px solid var(--primary); color: var(--primary); border-radius: 999px; font-weight: 700; font-size: 14px; max-width: 240px; }
.load-more:hover { background: var(--primary); color: #fff; }

/* ========== Sidebar & widget ========== */
.widget { margin-bottom: 28px; }
.widget-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 900; text-transform: uppercase; margin: 0 0 14px; }
.widget-title::after { content: ""; flex: 1; border-top: 2px dotted var(--border); }
.widget-title .accent { color: var(--primary); }
.widget ul, .widget ol { list-style: none; margin: 0; padding: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a, .tagcloud a { display: inline-block; background: var(--primary); color: #fff; font-size: 12px !important; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.tag-cloud a:hover, .tagcloud a:hover { background: var(--primary-dark); color: #fff; }
.popular-list { list-style: none; margin: 0; padding: 0; }
.popular-list li { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.popular-list .num { font-family: var(--font-head); font-size: 30px; font-weight: 900; color: var(--primary); line-height: 1; opacity: .85; }
.popular-list h4 { font-size: 14px; margin: 0; }
.widget .mini-item h4 { font-size: 14px; }

/* ========== Artikel ========== */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:last-child, .breadcrumb .current { color: var(--primary); font-weight: 700; }
.breadcrumb .sep { margin: 0 6px; }
.entry-title { font-size: 32px; font-weight: 900; margin: 0 0 12px; }
.entry-date { font-size: 13px; color: var(--muted); }
.entry-byline { display: flex; align-items: center; gap: 12px; margin: 12px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.entry-byline img { width: 40px; height: 40px; border-radius: 50%; }
.entry-byline strong { color: var(--text); }
.entry-byline .credits { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.entry-figure { margin: 0 0 20px; }
.entry-figure img { width: 100%; border-radius: var(--radius); }
.entry-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.entry-content { font-size: 17px; line-height: 1.75; overflow-wrap: break-word; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2 { font-size: 24px; margin-top: 1.4em; }
.entry-content h3 { font-size: 20px; margin-top: 1.3em; }
.entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.entry-content blockquote { margin: 1.4em 0; padding: 12px 20px; border-left: 4px solid var(--primary); background: var(--bg-soft); font-style: italic; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: 13px; color: var(--muted); }
.entry-content .wp-block-embed, .entry-content iframe { max-width: 100%; }
.dateline { font-weight: 800; }

/* Baca juga (kartu dengan thumbnail) */
.baca-juga { display: flex; align-items: center; gap: 14px; margin: 1.5em 0; padding: 12px 14px; background: var(--bg-soft); border-radius: 10px; position: relative; overflow: hidden; }
.baca-juga::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--primary); }
.baca-juga .bj-thumb { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--border); margin-left: 4px; }
.baca-juga .bj-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.baca-juga .bj-body { min-width: 0; }
.baca-juga .bj-label { display: block; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.entry-content .baca-juga a { color: var(--text); text-decoration: none; }
.entry-content .baca-juga .bj-title { font-weight: 700; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry-content .baca-juga a:hover .bj-title { color: var(--primary); }
.baca-juga:not(.has-thumb) .bj-body { padding-left: 6px; }

/* Paginasi artikel (bar abu-abu, tombol bulat) */
.post-pages { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 24px 0; padding: 10px 14px; background: var(--bg-soft); border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.post-pages .label { font-weight: 700; font-size: 14px; }
.post-pages .pages-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-pages .page-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--border); color: var(--text); font-size: 13px; font-weight: 700; }
.post-pages .page-num.current { background: var(--primary); color: #fff; }
.post-pages a.page-num:hover { background: var(--primary); color: #fff; }
.post-pages .pg-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--border); color: var(--text); font-size: 13px; font-weight: 700; }
.post-pages .pg-btn:hover { background: var(--primary); color: #fff; }
.post-pages .pg-btn svg { width: 10px; height: 10px; }
.view-all { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); margin: -12px 0 20px; }

/* Tag & share */
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.entry-tags a { background: var(--bg-soft); border: 1px solid var(--border); padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.entry-tags a:hover { border-color: var(--primary); }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.share .label { font-weight: 800; font-size: 14px; margin-right: 4px; }
.share a, .share button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; cursor: pointer; }
.share svg { width: 16px; height: 16px; fill: currentColor; }
.share .wa { background: #25d366; } .share .fb { background: #1877f2; } .share .x { background: #111; } .share .tg { background: #229ed9; } .share .cp { background: var(--muted); }

/* Terkait */
.related { margin-top: 28px; }
.related .post-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

.btn { background: var(--primary); color: #fff; border: 0; padding: 10px 20px; border-radius: 6px; font-weight: 700; cursor: pointer; font: inherit; }

/* ========== Arsip ========== */
.archive-header { margin-bottom: 20px; }
.archive-header h1 { font-size: 26px; font-weight: 900; margin: 0; text-transform: uppercase; }
.archive-header .archive-desc { color: var(--muted); font-size: 14px; }
.pagination { margin: 24px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Indeks */
.index-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.index-filter input, .index-filter select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }

/* Terpopuler / Trending */
.trend-wrap { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 24px; align-items: start; }
.trend-filter { background: var(--dark-bar); color: #fff; border-radius: 12px; padding: 16px 12px; position: sticky; top: 64px; }
.trend-filter-title { font-family: var(--font-head); font-size: 18px; font-weight: 900; padding: 0 6px 10px; }
.trend-filter ul { list-style: none; margin: 0; padding: 0; }
.trend-filter a { display: flex; justify-content: space-between; align-items: center; color: #e7ece9; font-size: 14px; font-weight: 600; padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 6px; }
.trend-filter a::after { content: "›"; color: var(--accent); font-weight: 800; opacity: 0; }
.trend-filter a:hover, .trend-filter a.is-active { background: rgba(255,255,255,.08); color: #fff; }
.trend-filter a.is-active::after { opacity: 1; }
.trend-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--bg-soft); padding: 4px; border-radius: 999px; width: fit-content; }
.trend-tabs a { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); }
.trend-tabs a.is-active { background: var(--primary); color: #fff; }
.trend-note { font-size: 13px; color: var(--muted); background: var(--bg-soft); padding: 8px 12px; border-radius: 6px; }
.trend-list { list-style: none; margin: 0; padding: 0; }
.trend-item { display: grid; grid-template-columns: 34px 170px minmax(0,1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.trend-item:first-child { padding-top: 0; }
.trend-rank { font-family: var(--font-head); font-size: 28px; font-weight: 900; color: var(--primary); line-height: 1; text-align: center; }
.trend-item h3 { font-size: 17px; margin: 6px 0 0; }

/* 404 */
.error-404 { text-align: center; padding: 40px 0; }
.error-404 .big { font-size: 96px; font-weight: 900; color: var(--primary); line-height: 1; }

/* Halaman biasa */
.page-content { font-size: 16px; }

/* ========== Footer ========== */
.site-footer { background: var(--footer-bg, color-mix(in srgb, var(--primary) 4%, #fff)); border-top: 3px solid var(--primary); color: #3a3d40; margin-top: 30px; font-size: 14px; }
.site-footer a { color: #3a3d40; }
.site-footer a:hover { color: var(--primary); }
.footer-top { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) minmax(0,.9fr); gap: 40px; padding-top: 38px; padding-bottom: 30px; }
.footer-logo .site-title { font-size: 30px; }
.site-footer .footer-logo .site-title a { color: var(--primary); }
.site-footer .footer-logo .site-title span { color: var(--text); }
.footer-logo img { max-height: 52px; width: auto; }
.footer-tagline { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.footer-about { margin: 10px 0 0; font-size: 13px; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; }
.footer-email svg { width: 18px; height: 18px; }
.site-footer .social { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.site-footer .social a { width: 30px; height: 30px; border-radius: 50%; background: #2b2d30; display: grid; place-items: center; }
.site-footer .social a:hover { background: var(--primary); }
.site-footer .social svg { width: 14px; height: 14px; fill: #fff; }
.footer-title { color: #222; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; padding-bottom: 8px; position: relative; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; background: var(--primary); border-radius: 2px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 24px; }
.footer-menu.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-menu li { line-height: 1.5; font-size: 15px; }
.footer-apps { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.site-footer .app-card { display: flex; align-items: center; gap: 12px; background: #141414; color: #fff; border-radius: 8px; padding: 10px 14px; width: 100%; max-width: 232px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.site-footer .app-card:hover { background: #000; color: #fff; }
.app-card-ico { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 6px; background: var(--primary); display: grid; place-items: center; }
.app-card-ico svg { width: 18px; height: 18px; color: #fff; }
.app-card-text { display: flex; flex-direction: column; font-weight: 800; font-size: 15px; line-height: 1.2; }
.app-card-text small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .85; margin-bottom: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid color-mix(in srgb, var(--primary) 12%, #ddd); padding-top: 16px; padding-bottom: 20px; font-size: 13px; color: #555; }
.footer-inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.footer-inline li { display: flex; align-items: center; }
.footer-inline li + li::before { content: "|"; color: #aaa; margin: 0 10px; }
.footer-inline a { color: #444; }
.to-top { position: fixed; right: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; font-size: 18px; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ========== Responsif ========== */
@media (max-width: 1024px) {
	.layout { grid-template-columns: minmax(0,1fr) 280px; gap: 24px; }
}
@media (max-width: 860px) {
	.layout { grid-template-columns: minmax(0,1fr); }
	.sidebar-inner { position: static; }
	.header-search { display: none; }
	.header-btn { display: none; }
	.header-main { min-height: 62px; }
	.header-search.open { display: block; position: absolute; left: 16px; right: 16px; top: 66px; z-index: 70; max-width: none; }
	.site-header { position: relative; }
	.menu-toggle { display: grid; }
	.post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.related .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.footer-top { grid-template-columns: minmax(0,1fr); gap: 28px; }
	.footer-apps { align-items: flex-start; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.footer-inline { gap: 6px 16px; }
	.footer-inline li + li::before { display: none; }
	.trend-wrap { grid-template-columns: minmax(0,1fr); }
	.trend-filter { position: static; padding: 10px; }
	.trend-filter-title { display: none; }
	.trend-filter ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
	.trend-filter a { white-space: nowrap; border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; }
	.trend-filter a::after { display: none; }
}
@media (max-width: 600px) {
	.site-title { font-size: 24px; }
	.header-main { gap: 12px; padding: 10px 16px; }
	.hero-caption { padding: 40px 14px 30px; }
	.hero-caption h2 { font-size: 18px; }
	.hero-arrow { display: none; }
	.headline-row { grid-template-columns: minmax(0,1fr); gap: 10px; }
	.post-item { grid-template-columns: 120px minmax(0,1fr); gap: 12px; padding: 12px 0; }
	.post-item h3 { font-size: 15px; }
	.post-item .excerpt { display: none; }
	.cat-block { grid-template-columns: minmax(0,1fr); }
	.entry-title { font-size: 24px; }
	.entry-content { font-size: 16px; }
	.post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
	.post-card h3 { font-size: 14px; }
	.home-section.boxed { padding: 14px; }
	.trend-item { grid-template-columns: 26px 110px minmax(0,1fr); gap: 10px; }
	.trend-rank { font-size: 22px; }
	.trend-item h3 { font-size: 15px; }
}
