/*
Theme Name: Khobor
Theme URI: https://example.com/khobor
Author: Khobor Team
Author URI: https://example.com
Description: Khobor — a fully responsive multi-niche WordPress theme for news, magazine, tech, sports and lifestyle sites. The design applies automatically on activation: hero mosaic, breaking news ticker, auto homepage category sections, per-category color badges, 65 built-in designs (5 layout skins × 13 color palettes, including dark palettes for any layout), sidebar and footer widgets, and a Customizer accent color.
Version: 1.7.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khobor
Tags: news, blog, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, threaded-comments, translation-ready
*/

/* =========================================================
   1. Tokens & base
   ========================================================= */
:root {
  --kb-red: #C21E2C;
  --kb-ink: #191D24;
  --kb-ink-2: #22262E;
  --kb-paper: #F7F6F2;
  --kb-card: #FFFFFF;
  --kb-mut: #6B7078;
  --kb-line: #E5E2DA;
  --kb-line-dark: rgba(255, 255, 255, .09);
  --f-serif: 'Newsreader', 'Source Serif 4', Georgia, serif;
  --f-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --shadow: 0 10px 28px rgba(16, 20, 24, .10);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--kb-paper);
  color: var(--kb-ink);
  font-family: var(--f-sans);
  font-size: clamp(15px, 0.3vw + 14px, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: break-word;
}

img { max-width: 100%; height: auto; }
iframe, embed, video { max-width: 100%; }

a { color: var(--kb-red); text-decoration: none; transition: color .2s; }
a:hover { color: #8f1520; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-serif);
  line-height: 1.5;
  color: var(--kb-ink);
  margin: 0 0 .5em;
}

::selection { background: var(--kb-red); color: #fff; }

.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* Accessibility */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden; position: absolute !important;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--kb-red); color: #fff;
  padding: 10px 16px; border-radius: 6px; z-index: 999;
  transition: top .2s;
}
.skip-link:focus { top: 8px; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--kb-red); outline-offset: 2px;
}

/* =========================================================
   2. Top bar
   ========================================================= */
.topbar { background: var(--kb-ink); color: #C8CCD2; font-size: .8rem; }
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 36px;
}
.top-date { display: inline-flex; align-items: center; gap: 8px; }
.top-date::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--kb-red);
}
.top-links { display: flex; list-style: none; margin: 0; padding: 0; gap: 18px; }
.top-links a { color: #C8CCD2; }
.top-links a:hover { color: #fff; }

/* =========================================================
   3. Masthead
   ========================================================= */
.masthead { padding: 30px 0 22px; text-align: center; }
.site-title {
  margin: 0; font-family: var(--f-serif); font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.25;
  letter-spacing: .01em;
}
.site-title a { color: var(--kb-ink); }
.site-title a::after { content: "."; color: var(--kb-red); }
.site-desc { margin: 4px 0 0; color: var(--kb-mut); font-size: .95rem; }
.custom-logo-link img { max-height: 86px; width: auto; }

/* =========================================================
   4. Navbar
   ========================================================= */
.navbar {
  background: var(--kb-ink);
  position: sticky; top: 0; z-index: 80;
  border-top: 1px solid var(--kb-line-dark);
}
.navbar.scrolled { box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.admin-bar .navbar { top: 32px; }

.navbar-in { display: flex; align-items: center; min-height: 54px; position: relative; }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 0; color: #fff; cursor: pointer;
  font: 700 .95rem var(--f-sans); padding: 14px 4px;
}
.nav-toggle .bars { position: relative; width: 22px; height: 2px; background: #fff; display: inline-block; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff;
  transition: transform .25s, top .25s;
}
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
body.nav-open .nav-toggle .bars { background: transparent; }
body.nav-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 12px; flex: 1; }
.site-nav .menu { display: flex; flex: 1; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav .menu li { position: relative; }
.site-nav .menu a {
  display: block; padding: 15px 15px; color: #E7E9EC;
  font-weight: 600; font-size: .95rem; line-height: 1.5;
}
.site-nav .menu > li:hover > a,
.site-nav .menu > li > a:focus { color: #fff; }
.site-nav .menu > li.current-menu-item > a,
.site-nav .menu > li.current_page_item > a,
.site-nav .menu > li.current-cat > a {
  color: #fff; box-shadow: inset 0 -3px 0 var(--kb-red);
}

/* Dropdowns (desktop) */
.site-nav .menu ul {
  position: absolute; top: 100%; left: 0; z-index: 90;
  min-width: 220px; margin: 0; padding: 8px 0; list-style: none;
  background: #fff; border-radius: 0 0 10px 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.site-nav .menu ul a { color: var(--kb-ink); padding: 9px 18px; font-weight: 500; }
.site-nav .menu ul a:hover { color: var(--kb-red); background: #faf9f5; }
.site-nav .menu li:hover > ul,
.site-nav .menu li:focus-within > ul {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav .menu ul ul { top: 0; left: 100%; border-radius: 10px; }

.sub-toggle { display: none; }

/* Nav search */
.nav-search { margin-left: auto; }
.nav-search .search-form { display: flex; }
.nav-search .search-field {
  width: 170px; padding: 8px 12px; font: .88rem var(--f-sans);
  color: #fff; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px 0 0 7px; transition: width .25s, background .25s;
}
.nav-search .search-field::placeholder { color: #9aa0a8; }
.nav-search .search-field:focus { width: 230px; background: rgba(255, 255, 255, .14); outline: none; }
.nav-search .search-submit {
  border: 0; background: var(--kb-red); color: #fff; cursor: pointer;
  padding: 0 13px; border-radius: 0 7px 7px 0; display: inline-flex; align-items: center;
}
.nav-search .search-submit svg { width: 15px; height: 15px; }

/* =========================================================
   5. Breaking ticker
   ========================================================= */
.ticker { background: var(--kb-card); border-bottom: 1px solid var(--kb-line); }
.ticker-in { display: flex; align-items: stretch; min-height: 44px; }
.ticker-label {
  flex: none; display: inline-flex; align-items: center; gap: 9px;
  background: var(--kb-red); color: #fff;
  font-weight: 800; font-size: .85rem; padding: 0 16px; letter-spacing: .02em;
}
.ticker-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: kb-blink 1.1s ease-in-out infinite;
}
@keyframes kb-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ticker-track {
  flex: 1; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-move {
  display: inline-flex; gap: 42px; white-space: nowrap; padding-left: 24px;
  animation: kb-tick 30s linear infinite; will-change: transform;
}
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { color: var(--kb-ink); font-weight: 500; font-size: .92rem; }
.ticker-move a:hover { color: var(--kb-red); }
.ticker-move a::before { content: "●"; color: var(--kb-red); font-size: .55em; margin-right: 9px; vertical-align: 2px; }
@keyframes kb-tick { to { transform: translateX(-50%); } }

/* =========================================================
   6. Hero mosaic
   ========================================================= */
.hero { margin-top: 26px; }
.hero-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(180px, 16vw, 228px);
}
.hero-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--kb-ink-2);
}
.hero-item:first-child { grid-column: span 2; grid-row: span 2; }
.hero-item img, .hero-item .ph-thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .55s ease;
}
.hero-item:hover img { transform: scale(1.06); }
.hero-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(185deg, rgba(12, 14, 18, 0) 32%, rgba(12, 14, 18, .90) 92%);
}
.hero-overlay {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 8px;
}
.hero-title {
  margin: 0; font-size: 1.05rem; line-height: 1.55; font-weight: 700;
}
.hero-item:first-child .hero-title { font-size: clamp(1.25rem, 2.3vw, 1.6rem); }
.hero-title a { color: #fff; }
.hero-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero-meta { color: rgba(255, 255, 255, .78); font-size: .78rem; }
.hero-overlay .cat-badge { position: relative; z-index: 3; }

/* =========================================================
   7. Layout & section titles
   ========================================================= */
.site-content { padding-bottom: 60px; }
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 336px;
  gap: 36px; align-items: start; margin-top: 34px;
}
.layout.no-hero { margin-top: 30px; }

.sec-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 20px; padding-bottom: 10px;
  border-bottom: 3px solid var(--kb-ink);
  font-size: clamp(1.16rem, 1.02rem + 0.6vw, 1.34rem); font-weight: 800;
}
.sec-title::before {
  content: ""; flex: none; width: 11px; height: 24px;
  background: var(--kb-red); border-radius: 3px;
}
.sec-title a { color: inherit; }

.archive-head { margin: 0 0 6px; }
.archive-kicker {
  display: inline-block; background: var(--kb-red); color: #fff;
  font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 4px;
  margin-bottom: 10px; letter-spacing: .03em;
}
.archive-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 6px; }
.archive-desc { color: var(--kb-mut); max-width: 640px; margin: 0 0 8px; }

/* =========================================================
   8. Cards
   ========================================================= */
.card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
  background: var(--kb-card); border: 1px solid var(--kb-line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card.sticky { border-color: var(--kb-red); }
.card-media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; background: #E9E7E0;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 16px 17px 19px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-title { margin: 0; font-size: clamp(1.04rem, 0.96rem + 0.45vw, 1.15rem); line-height: 1.55; font-weight: 700; }
.card-title a { color: var(--kb-ink); }
.card-title a:hover { color: var(--kb-red); }
.card-excerpt { margin: 0; color: var(--kb-mut); font-size: .9rem; line-height: 1.7; }

/* Category badge — auto colour per category via --cat */
.cat-badge {
  --cat: var(--kb-red);
  display: inline-block; align-self: flex-start;
  background: var(--cat); color: #fff;
  font-family: var(--f-sans); font-size: .72rem; font-weight: 700;
  line-height: 1.45; padding: 4px 11px; border-radius: 4px; letter-spacing: .02em;
}
.cat-badge:hover { color: #fff; filter: brightness(.88); }

/* Meta row */
.meta {
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  color: var(--kb-mut); font-size: .8rem;
}
.meta > * { display: inline-flex; align-items: center; position: relative; }
.meta > * + *::before { content: "•"; color: #C4C1B8; margin-right: 16px; }
.meta a { color: inherit; }
.meta a:hover { color: var(--kb-red); }

/* Placeholder thumbnail */
.ph-thumb {
  --cat: var(--kb-red);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--cat);
  background: linear-gradient(135deg, var(--cat), color-mix(in srgb, var(--cat) 45%, #14181d));
}
.ph-thumb span {
  font-family: var(--f-serif); font-weight: 800; font-size: 2.7rem;
  color: rgba(255, 255, 255, .9);
}

/* No results */
.no-results {
  background: var(--kb-card); border: 1px dashed var(--kb-line);
  border-radius: var(--radius); padding: 34px 26px; text-align: center;
}
.no-results .search-form { justify-content: center; margin-top: 14px; }

/* =========================================================
   9. Sidebar & widgets
   ========================================================= */
.widget {
  background: var(--kb-card); border: 1px solid var(--kb-line);
  border-radius: var(--radius); padding: 19px 19px 14px; margin-bottom: 24px;
}
.widget-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 800;
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--kb-ink);
}
.widget-title::before {
  content: ""; flex: none; width: 9px; height: 19px;
  background: var(--kb-red); border-radius: 3px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 9px 0; border-bottom: 1px dashed var(--kb-line); font-size: .93rem; }
.widget ul li:last-child { border-bottom: 0; }
.widget ul ul { padding-left: 16px; }
.widget a { color: var(--kb-ink); }
.widget a:hover { color: var(--kb-red); }
.widget select { width: 100%; }
.widget .search-form { display: flex; }
.widget .search-field { flex: 1; border-radius: 7px 0 0 7px; }
.widget .search-submit { border-radius: 0 7px 7px 0; }

/* Mini post list */
.mini-list { display: flex; flex-direction: column; }
.mini-post { display: flex; gap: 13px; padding: 11px 0; border-bottom: 1px dashed var(--kb-line); }
.mini-post:last-child { border-bottom: 0; }
.mini-thumb {
  position: relative; flex: none; width: 80px; height: 60px;
  border-radius: 7px; overflow: hidden; background: #E9E7E0;
}
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-thumb .ph-thumb span { font-size: 1.3rem; }
.mini-title { margin: 0 0 3px; font-size: .92rem; line-height: 1.55; font-weight: 700; }
.mini-title a { color: var(--kb-ink); }
.mini-title a:hover { color: var(--kb-red); }
.mini-date { color: var(--kb-mut); font-size: .76rem; }

/* =========================================================
   10. Single post & pages
   ========================================================= */
.single-post-article, .page-article, .comments-area {
  background: var(--kb-card); border: 1px solid var(--kb-line);
  border-radius: var(--radius); padding: clamp(20px, 4vw, 38px);
}
.comments-area { margin-top: 28px; }
.entry-header { margin-bottom: 18px; }
.entry-title {
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  line-height: 1.45; margin: 10px 0 12px; font-weight: 800;
}
.entry-thumb { margin: 4px 0 22px; }
.entry-thumb img { width: 100%; border-radius: 10px; }
.entry-thumb figcaption { text-align: center; color: var(--kb-mut); font-size: .82rem; margin-top: 8px; }

.entry-content { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.1rem); line-height: 1.8; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.5em; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  margin: 1.4em 0; padding: 16px 22px;
  background: #FBF9F4; border-left: 4px solid var(--kb-red);
  border-radius: 0 10px 10px 0; font-family: var(--f-serif); font-size: 1.08em;
}
.entry-content blockquote > :last-child { margin-bottom: 0; }
.entry-content img { border-radius: 10px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content pre {
  background: var(--kb-ink); color: #E7E9EC; padding: 18px;
  border-radius: 10px; overflow: auto; font-size: .88em; line-height: 1.7;
}
.entry-content code { background: #EFEDE6; padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--kb-line); padding: 9px 12px; text-align: left; }
.entry-content th { background: #F3F1EA; }
.entry-content hr { border: 0; border-top: 1px solid var(--kb-line); margin: 2em 0; }

.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--kb-mut); font-size: .82rem; text-align: center; margin-top: 6px; }
.alignleft { float: left; margin: 6px 22px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 22px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { margin: 0; }
.bypostauthor { display: block; }

.entry-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--kb-line); }
.tag-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; }
.tag-links a {
  background: #F1EFE8; color: var(--kb-ink);
  padding: 5px 13px; border-radius: 999px; font-weight: 600;
}
.tag-links a:hover { background: var(--kb-red); color: #fff; }

/* Author box */
.author-box {
  display: flex; gap: 17px; align-items: flex-start;
  background: #FBF9F4; border: 1px solid var(--kb-line);
  border-radius: var(--radius); padding: 20px; margin-top: 26px;
}
.author-box img { border-radius: 50%; flex: none; }
.author-box h3 { margin: 0 0 4px; font-size: 1.05rem; }
.author-box p { margin: 0; color: var(--kb-mut); font-size: .9rem; }

/* Post navigation */
.post-navigation { margin-top: 28px; }
.post-navigation .nav-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.post-navigation a {
  display: block; background: var(--kb-card); border: 1px solid var(--kb-line);
  border-radius: 10px; padding: 14px 17px; color: var(--kb-ink);
  font-weight: 600; font-size: .92rem; line-height: 1.6;
}
.post-navigation a:hover { border-color: var(--kb-red); color: var(--kb-red); }
.post-navigation .nav-next { text-align: right; }

/* Related */
.related-posts { margin-top: 34px; }

/* =========================================================
   11. Comments
   ========================================================= */
.comments-title, .comment-reply-title { font-size: 1.25rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: clamp(14px, 4vw, 40px); }
.comment-body {
  border-bottom: 1px dashed var(--kb-line); padding: 16px 0;
}
.comment-author { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: .78rem; margin: 4px 0 8px; }
.comment-metadata a { color: var(--kb-mut); }
.comment-content { font-size: .95rem; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { font-size: .82rem; margin-top: 6px; }
.reply a { font-weight: 700; }
.comment-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.comment-form p { margin: 0 0 15px; }
.logged-in-as, .comment-notes { color: var(--kb-mut); font-size: .85rem; }

/* =========================================================
   12. Forms & buttons
   ========================================================= */
input[type="text"], input[type="email"], input[type="url"],
input[type="search"], input[type="password"], input[type="number"], textarea, select {
  width: 100%; padding: 10px 14px;
  border: 1px solid #D9D6CD; border-radius: 8px;
  background: #fff; color: var(--kb-ink);
  font: 1em var(--f-sans); transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--kb-red); outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kb-red) 16%, transparent);
}
button, input[type="submit"], .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--kb-red); color: #fff; border: 0; cursor: pointer;
  font: 700 .95rem var(--f-sans); padding: 11px 22px; border-radius: 8px;
  transition: background .2s, transform .15s;
}
button:hover, input[type="submit"]:hover, .btn:hover {
  background: color-mix(in srgb, var(--kb-red) 84%, #000); color: #fff;
}
button:active { transform: translateY(1px); }
.search-form { display: flex; gap: 0; }
.search-form .search-field { border-radius: 8px 0 0 8px; }
.search-form .search-submit { border-radius: 0 8px 8px 0; padding: 0 16px; }
.search-form .search-submit svg { width: 16px; height: 16px; }

/* Pagination */
.pagination, .comments-pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  background: var(--kb-card); border: 1px solid var(--kb-line);
  border-radius: 9px; color: var(--kb-ink); font-weight: 700; font-size: .92rem;
}
.page-numbers:hover { border-color: var(--kb-red); color: var(--kb-red); }
.page-numbers.current { background: var(--kb-red); border-color: var(--kb-red); color: #fff; }
.page-numbers.dots { border: 0; background: none; }

/* Back to top */
.to-top {
  position: fixed; right: max(20px, env(safe-area-inset-right));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; padding: 0;
  background: var(--kb-ink); color: #fff; font-size: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--kb-red); }

/* =========================================================
   13. Footer
   ========================================================= */
.site-footer { background: var(--kb-ink); color: #B8BDC4; margin-top: 26px; }
.foot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px; padding: 46px 20px 38px;
}
.site-footer .widget { background: none; border: 0; padding: 0; margin: 0; }
.site-footer .widget-title {
  color: #fff; border-bottom-color: var(--kb-line-dark); font-size: 1rem;
}
.site-footer a { color: #B8BDC4; }
.site-footer a:hover { color: #fff; }
.site-footer .widget ul li { border-bottom-color: var(--kb-line-dark); }
.site-footer .mini-post { border-bottom-color: var(--kb-line-dark); }
.site-footer .mini-title a { color: #E7E9EC; }
.site-footer .mini-date { color: #868C95; }
.foot-about .foot-logo {
  font-family: var(--f-serif); font-weight: 800; font-size: 1.6rem; color: #fff;
}
.foot-about .foot-logo::after { content: "."; color: var(--kb-red); }
.foot-about p { font-size: .9rem; line-height: 1.9; }
.foot-bottom { border-top: 1px solid var(--kb-line-dark); font-size: .82rem; }
.foot-bottom-in {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: center; justify-content: space-between; padding: 16px 0;
}
.foot-menu { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* =========================================================
   13b. Homepage niche sections (auto category blocks)
   ========================================================= */
.home-section { margin-top: 40px; }
.home-section .sec-title { border-bottom-color: var(--cat, var(--kb-ink)); }
.home-section .sec-title::before { background: var(--cat, var(--kb-red)); }
.home-section .sec-title > a:first-of-type:hover { color: var(--cat, var(--kb-red)); }
.home-section .card-title a:hover,
.home-section .mini-title a:hover { color: var(--cat, var(--kb-red)); }

.view-all {
  margin-left: auto; font-family: var(--f-sans);
  font-size: .8rem; font-weight: 700; letter-spacing: .01em;
  color: var(--cat, var(--kb-red)); white-space: nowrap;
}
.view-all:hover { text-decoration: underline; color: var(--cat, var(--kb-red)); }

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

.feat-row {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: 8px 26px; align-items: start;
}
.feat-main { display: flex; flex-direction: column; gap: 10px; }
.feat-main .card-media { border-radius: var(--radius); }
.feat-title { margin: 2px 0 0; font-size: 1.34rem; line-height: 1.5; font-weight: 800; }
.feat-title a { color: var(--kb-ink); }
.feat-title a:hover { color: var(--cat, var(--kb-red)); }
.feat-excerpt { margin: 0; color: var(--kb-mut); font-size: .92rem; line-height: 1.75; }
.feat-row .mini-list { margin-top: -8px; }
.feat-row .mini-post:first-child { padding-top: 0; }

/* =========================================================
   14. Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ticker-move { animation: none; }
}

/* =========================================================
   15. Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .hero-grid { grid-auto-rows: 190px; }
}

@media (max-width: 920px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; align-items: start; }
  .card-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 860px) {
  .admin-bar .navbar { top: 46px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--kb-ink); border-top: 1px solid var(--kb-line-dark);
    max-height: calc(100vh - 100px); overflow: auto;
    padding: 6px 0 16px; flex-direction: column; align-items: stretch;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav .menu { display: block; flex: none; }
  .site-nav .menu li { border-bottom: 1px solid var(--kb-line-dark); }
  .site-nav .menu li:last-child { border-bottom: 0; }
  .site-nav .menu a { padding: 13px 20px; }
  .site-nav .menu > li.current-menu-item > a { box-shadow: inset 3px 0 0 var(--kb-red); }
  .site-nav .menu ul {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; background: rgba(255, 255, 255, .04);
    box-shadow: none; border-radius: 0; padding: 0 0 0 14px; min-width: 0;
  }
  .site-nav .menu li.open > ul { display: block; }
  .site-nav .menu ul a { color: #C8CCD2; }
  .site-nav .menu ul li { border-bottom: 0; }
  .sub-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; top: 6px; right: 10px;
    width: 38px; height: 38px; padding: 0;
    background: rgba(255, 255, 255, .07); border-radius: 8px; color: #fff;
  }
  .sub-toggle::after {
    content: ""; width: 8px; height: 8px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px); transition: transform .2s;
  }
  li.open > .sub-toggle::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .nav-search { margin: 12px 20px 4px; }
  .nav-search .search-field, .nav-search .search-field:focus { width: 100%; }
  .nav-search .search-form { width: 100%; }
  .masthead { padding: 24px 0 18px; }
}

@media (max-width: 760px) {
  .feat-row { grid-template-columns: minmax(0, 1fr); }
  .feat-title { font-size: 1.18rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 175px; }
  .hero-item:first-child { grid-column: span 2; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .foot-bottom-in { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .wrap { padding-left: max(15px, env(safe-area-inset-left)); padding-right: max(15px, env(safe-area-inset-right)); }
  .topbar-in .top-links { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .hero-item { min-height: 200px; }
  .hero-item:first-child { grid-column: auto; grid-row: auto; min-height: 250px; }
  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .ticker-label { font-size: .78rem; padding: 0 12px; }
  .author-box { flex-direction: column; }
  .sec-title { font-size: 1.18rem; }
}

/* =========================================================
   16. Design skins — each preset is a complete design:
       colors, fonts and layout change together.
       Skin accent: a custom Customizer accent (--kb-accent)
       always beats the skin colour.
   ========================================================= */
body.khobor-skin-news      { --kb-red: var(--kb-accent, #C21E2C); }
body.khobor-skin-tech      { --kb-red: var(--kb-accent, #35A2F2); }
body.khobor-skin-magazine  { --kb-red: var(--kb-accent, #6A3FA0); }
body.khobor-skin-sports    { --kb-red: var(--kb-accent, #1E8A4C); }
body.khobor-skin-lifestyle { --kb-red: var(--kb-accent, #C86420); }

/* ---------------------------------------------------------
   Shared: light navbar variant (Magazine + Lifestyle)
   --------------------------------------------------------- */
.khobor-skin-magazine .navbar, .khobor-skin-lifestyle .navbar { border-top: 0; }
.khobor-skin-magazine .site-nav .menu a, .khobor-skin-lifestyle .site-nav .menu a,
.khobor-skin-magazine .nav-toggle, .khobor-skin-lifestyle .nav-toggle { color: var(--kb-ink); }
.khobor-skin-magazine .site-nav .menu > li:hover > a, .khobor-skin-lifestyle .site-nav .menu > li:hover > a,
.khobor-skin-magazine .site-nav .menu > li > a:focus, .khobor-skin-lifestyle .site-nav .menu > li > a:focus,
.khobor-skin-magazine .site-nav .menu > li.current-menu-item > a,
.khobor-skin-lifestyle .site-nav .menu > li.current-menu-item > a { color: var(--kb-red); }
.khobor-skin-magazine .nav-toggle .bars, .khobor-skin-lifestyle .nav-toggle .bars,
.khobor-skin-magazine .nav-toggle .bars::before, .khobor-skin-lifestyle .nav-toggle .bars::before,
.khobor-skin-magazine .nav-toggle .bars::after, .khobor-skin-lifestyle .nav-toggle .bars::after { background: var(--kb-ink); }
.khobor-skin-magazine body.nav-open .nav-toggle .bars, body.nav-open.khobor-skin-magazine .nav-toggle .bars,
body.nav-open.khobor-skin-lifestyle .nav-toggle .bars { background: transparent; }
.khobor-skin-magazine .nav-search .search-field, .khobor-skin-lifestyle .nav-search .search-field {
  color: var(--kb-ink); background: rgba(0, 0, 0, .05); border-color: var(--kb-line);
}
.khobor-skin-magazine .nav-search .search-field::placeholder,
.khobor-skin-lifestyle .nav-search .search-field::placeholder { color: var(--kb-mut); }
.khobor-skin-magazine .nav-search .search-field:focus,
.khobor-skin-lifestyle .nav-search .search-field:focus { background: rgba(0, 0, 0, .08); }

/* =========================================================
   SKIN: TECH — full dark mode, Space Grotesk, mono details
   ========================================================= */
body.khobor-skin-tech {
  --f-serif: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --kb-paper: #0B0F15; --kb-card: #121826; --kb-ink: #E8EDF4; --kb-ink-2: #0E141D;
  --kb-mut: #8C97A8; --kb-line: #232D3B; --kb-line-dark: rgba(255, 255, 255, .08);
  --shadow: 0 16px 36px rgba(0, 0, 0, .55);
}
.kb-dark .topbar, .kb-dark .navbar, .kb-dark .site-footer { background: #070B11; }
.kb-dark .site-nav .menu ul { background: var(--kb-card); border: 1px solid var(--kb-line); }
.kb-dark .site-nav .menu ul a { color: var(--kb-ink); }
.kb-dark .site-nav .menu ul a:hover { background: rgba(255, 255, 255, .06); color: var(--kb-red); }
.kb-dark .ticker-move a { color: var(--kb-ink); }
.kb-dark .ticker-label { color: #0B0F15; }
.kb-dark .card-media, .kb-dark .mini-thumb { background: var(--kb-ink-2); }
.khobor-skin-tech .hero-item { border: 1px solid var(--kb-line); }
.kb-dark .card:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--kb-red) 60%, transparent), var(--shadow);
}
.kb-dark input[type="text"], .kb-dark input[type="email"], .kb-dark input[type="url"],
.kb-dark input[type="search"], .kb-dark input[type="password"],
.kb-dark input[type="number"], .kb-dark textarea, .kb-dark select {
  background: var(--kb-ink-2); border-color: var(--kb-line); color: var(--kb-ink);
}
.kb-dark .entry-content blockquote { background: var(--kb-ink-2); }
.kb-dark .entry-content code { background: rgba(255, 255, 255, .09); color: var(--kb-ink); }
.kb-dark .entry-content pre { background: #070B11; }
.kb-dark .entry-content th { background: rgba(255, 255, 255, .06); }
.kb-dark .tag-links a { background: rgba(255, 255, 255, .09); color: var(--kb-ink); }
.kb-dark .tag-links a:hover { background: var(--kb-red); color: #0B0F15; }
.kb-dark .author-box { background: var(--kb-ink-2); }
.kb-dark .to-top { background: var(--kb-red); color: #0B0F15; }
.khobor-skin-tech .top-date, .khobor-skin-tech .meta, .khobor-skin-tech .mini-date,
.khobor-skin-tech .hero-meta, .khobor-skin-tech .comment-metadata {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .02em;
}
.khobor-skin-tech .site-title a::after {
  content: "_"; color: var(--kb-red);
  animation: kb-blink 1.2s steps(1) infinite;
}
.khobor-skin-tech .cat-badge { border-radius: 5px; }
.khobor-skin-tech .hero-overlay .cat-badge, .khobor-skin-tech .ticker-label { font-family: var(--f-mono); }
.kb-dark ::selection { background: var(--kb-red); color: #0B0F15; }

/* =========================================================
   SKIN: MAGAZINE — warm editorial, Playfair + Lora,
   full-width cover hero, flat ruled cards
   ========================================================= */
body.khobor-skin-magazine {
  --f-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-sans: 'Lora', Georgia, serif;
  --kb-paper: #F6F1E7; --kb-card: #FFFCF4; --kb-line: #E2D9C6;
  --kb-mut: #79715C; --radius: 4px;
  --shadow: 0 12px 30px rgba(80, 60, 20, .12);
}
.khobor-skin-magazine .masthead { padding: 40px 0 0; }
.khobor-skin-magazine .masthead .wrap { border-bottom: 4px double var(--kb-ink); padding-bottom: 24px; }
.khobor-skin-magazine .site-title { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: .01em; }
.khobor-skin-magazine .site-title a::after { content: ""; }
.khobor-skin-magazine .site-desc {
  text-transform: uppercase; letter-spacing: .34em; font-size: .66rem; margin-top: 8px;
}
.khobor-skin-magazine .navbar { background: var(--kb-paper); border-bottom: 1px solid var(--kb-ink); }
.khobor-skin-magazine .navbar.scrolled { box-shadow: 0 8px 22px rgba(70, 50, 15, .14); }
.khobor-skin-magazine .site-nav .menu a {
  text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700;
}
.khobor-skin-magazine .site-nav .menu > li.current-menu-item > a { box-shadow: inset 0 -2px 0 var(--kb-red); }
.khobor-skin-magazine .ticker { background: var(--kb-paper); border-bottom: 1px solid var(--kb-line); }
.khobor-skin-magazine .ticker-label { background: var(--kb-ink); color: var(--kb-paper); }
.khobor-skin-magazine .hero-grid { grid-auto-rows: 205px; }
.khobor-skin-magazine .hero-item { border-radius: var(--radius); }
.khobor-skin-magazine .hero-item:first-child,
.kb-hero-cover .hero-item:first-child {
  grid-column: 1 / -1; grid-row: auto; min-height: 480px;
}
.khobor-skin-magazine .hero-item:first-child .hero-title,
.kb-hero-cover .hero-item:first-child .hero-title {
  font-size: clamp(1.7rem, 3.8vw, 2.7rem); font-weight: 700; max-width: 22ch;
}
.khobor-skin-magazine .hero-item:first-child .hero-overlay,
.kb-hero-cover .hero-item:first-child .hero-overlay { padding: 30px 34px 28px; }
.khobor-skin-magazine .cat-badge {
  background: transparent; color: var(--cat, var(--kb-red));
  border: 1px solid currentColor; border-radius: 0;
  text-transform: uppercase; letter-spacing: .14em; font-size: .6rem; padding: 4px 10px;
}
.khobor-skin-magazine .cat-badge:hover { filter: none; background: var(--cat, var(--kb-red)); color: #fff; }
.khobor-skin-magazine .hero-overlay .cat-badge { color: #fff; border-color: rgba(255, 255, 255, .8); }
.khobor-skin-magazine .sec-title {
  justify-content: center; text-align: center; border-bottom: 0;
  text-transform: uppercase; letter-spacing: .24em; font-size: .95rem; gap: 18px;
}
.khobor-skin-magazine .sec-title::before, .khobor-skin-magazine .sec-title::after {
  content: ""; flex: none; width: 70px; height: 1px;
  background: var(--kb-ink); border-radius: 0;
}
.khobor-skin-magazine .home-section .sec-title::before,
.khobor-skin-magazine .home-section .sec-title::after { background: var(--cat, var(--kb-ink)); }
.khobor-skin-magazine .view-all { margin-left: 0; letter-spacing: .1em; font-size: .68rem; text-transform: uppercase; }
.khobor-skin-magazine .card {
  background: transparent; border: 0; border-top: 1px solid var(--kb-ink);
  border-radius: 0; overflow: visible;
}
.khobor-skin-magazine .card:hover { transform: none; box-shadow: none; }
.khobor-skin-magazine .card-media { border-radius: 0; margin-top: 14px; }
.khobor-skin-magazine .card-body { padding: 14px 2px 6px; }
.khobor-skin-magazine .card-title { font-size: 1.24rem; line-height: 1.42; }
.khobor-skin-magazine .feat-main .card-media { border-radius: 0; }
.khobor-skin-magazine .feat-title { font-size: 1.6rem; line-height: 1.35; }
.khobor-skin-magazine .widget { border-color: var(--kb-line); }
.khobor-skin-magazine .widget-title { text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; }
.khobor-skin-magazine .page-numbers { border-radius: 0; }
.khobor-skin-magazine button, .khobor-skin-magazine input[type="submit"], .khobor-skin-magazine .btn { border-radius: 3px; }
.khobor-skin-magazine input[type="text"], .khobor-skin-magazine input[type="email"],
.khobor-skin-magazine input[type="search"], .khobor-skin-magazine textarea { border-radius: 3px; background: var(--kb-card); }

/* =========================================================
   SKIN: SPORTS — bold condensed, skewed accents, scoreboard
   ========================================================= */
body.khobor-skin-sports {
  --f-serif: 'Barlow Condensed', 'Arial Narrow', 'Inter', sans-serif;
  --kb-paper: #F1F4F0; --radius: 8px;
}
.khobor-skin-sports .site-title { text-transform: uppercase; letter-spacing: .02em; font-size: clamp(2.5rem, 6vw, 4rem); }
.khobor-skin-sports .site-title a::after {
  content: ""; display: inline-block; width: .34em; height: .34em;
  background: var(--kb-red); margin-left: .14em; transform: skew(-12deg);
  border-radius: 2px; vertical-align: baseline;
}
.khobor-skin-sports .hero-title, .khobor-skin-sports .card-title, .khobor-skin-sports .feat-title,
.khobor-skin-sports .mini-title, .khobor-skin-sports .widget-title, .khobor-skin-sports .entry-title,
.khobor-skin-sports .archive-title, .khobor-skin-sports .sec-title {
  text-transform: uppercase; letter-spacing: .02em;
}
.khobor-skin-sports .card-title { font-size: 1.34rem; line-height: 1.28; }
.khobor-skin-sports .hero-title { font-size: 1.22rem; line-height: 1.35; }
.khobor-skin-sports .hero-item:first-child .hero-title { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
.khobor-skin-sports .feat-title { font-size: 1.7rem; line-height: 1.25; }
.khobor-skin-sports .mini-title { font-size: 1rem; line-height: 1.35; }
.khobor-skin-sports .sec-title { font-size: 1.5rem; }
.khobor-skin-sports .sec-title::before { transform: skew(-14deg); width: 14px; }
.khobor-skin-sports .widget-title::before { transform: skew(-14deg); }
.khobor-skin-sports .cat-badge {
  transform: skew(-10deg); border-radius: 3px;
  text-transform: uppercase; letter-spacing: .07em; font-weight: 800;
}
.khobor-skin-sports .navbar { border-bottom: 3px solid var(--kb-red); }
.khobor-skin-sports .ticker { background: var(--kb-ink); border-bottom: 3px solid var(--kb-red); }
.khobor-skin-sports .ticker-in { min-height: 46px; }
.khobor-skin-sports .ticker-label {
  transform: skew(-10deg); border-radius: 3px; margin: 6px 0 6px 2px; padding: 0 18px;
}
.khobor-skin-sports .ticker-move a {
  color: var(--kb-paper); text-transform: uppercase; font-weight: 700;
  font-size: .84rem; letter-spacing: .03em;
}
.khobor-skin-sports .ticker-move a:hover { color: var(--kb-paper); text-decoration: underline; }
.khobor-skin-sports .card { border-width: 2px; border-color: var(--kb-line); }
.khobor-skin-sports .card:hover { border-color: var(--kb-red); }
.khobor-skin-sports .view-all { text-transform: uppercase; letter-spacing: .05em; }
.khobor-skin-sports .page-numbers { border-radius: 6px; border-width: 2px; }
.khobor-skin-sports .meta { text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }

/* =========================================================
   SKIN: LIFESTYLE — soft & airy, Fraunces + Karla, pills
   ========================================================= */
body.khobor-skin-lifestyle {
  --f-serif: 'Fraunces', Georgia, serif;
  --f-sans: 'Karla', 'Inter', -apple-system, sans-serif;
  --kb-paper: #FBF6EF; --kb-card: #FFFFFF; --kb-line: #EFE5D6;
  --kb-mut: #8A8172; --radius: 20px;
  --shadow: 0 18px 44px rgba(150, 115, 70, .16);
}
.khobor-skin-lifestyle .topbar { background: transparent; color: var(--kb-mut); border-bottom: 1px solid var(--kb-line); }
.khobor-skin-lifestyle .top-links a { color: var(--kb-mut); }
.khobor-skin-lifestyle .top-links a:hover { color: var(--kb-ink); }
.khobor-skin-lifestyle .navbar { background: color-mix(in srgb, var(--kb-card) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--kb-line); }
.khobor-skin-lifestyle .navbar.scrolled { box-shadow: 0 8px 24px rgba(150, 115, 70, .14); }
.khobor-skin-lifestyle .ticker { background: transparent; border-bottom: 0; }
.khobor-skin-lifestyle .ticker-wrapper { }
.khobor-skin-lifestyle .ticker .ticker-in {
  background: var(--kb-card); border: 1px solid var(--kb-line);
  border-radius: 999px; overflow: hidden; margin-top: 16px; min-height: 42px;
}
.khobor-skin-lifestyle .cat-badge {
  background: color-mix(in srgb, var(--cat, var(--kb-red)) 13%, #fff);
  color: var(--cat, var(--kb-red)); border-radius: 999px; font-weight: 700;
}
.khobor-skin-lifestyle .cat-badge:hover { filter: none; background: var(--cat, var(--kb-red)); color: #fff; }
.khobor-skin-lifestyle .hero-grid { gap: 18px; }
.khobor-skin-lifestyle .hero-item { border-radius: 22px; }
.khobor-skin-lifestyle .card { border: 0; box-shadow: 0 8px 24px rgba(150, 115, 70, .10); }
.khobor-skin-lifestyle .card:hover { box-shadow: var(--shadow); }
.khobor-skin-lifestyle .widget { border: 0; box-shadow: 0 8px 24px rgba(150, 115, 70, .10); }
.khobor-skin-lifestyle .widget-title { border-bottom-color: var(--kb-line); }
.khobor-skin-lifestyle .widget-title::before,
.khobor-skin-lifestyle .sec-title::before { width: 12px; height: 12px; border-radius: 50%; }
.khobor-skin-lifestyle .sec-title { border-bottom: 0; padding-bottom: 0; }
.khobor-skin-lifestyle .home-section .sec-title { border-bottom: 0; }
.khobor-skin-lifestyle .mini-thumb { border-radius: 12px; }
.khobor-skin-lifestyle .feat-main .card-media, .khobor-skin-lifestyle .card-media { border-radius: 18px; }
.khobor-skin-lifestyle .card .card-media { border-radius: 18px 18px 0 0; }
.khobor-skin-lifestyle button, .khobor-skin-lifestyle input[type="submit"], .khobor-skin-lifestyle .btn,
.khobor-skin-lifestyle .page-numbers { border-radius: 999px; }
.khobor-skin-lifestyle .search-form .search-field { border-radius: 999px 0 0 999px; }
.khobor-skin-lifestyle .search-form .search-submit { border-radius: 0 999px 999px 0; }
.khobor-skin-lifestyle .nav-search .search-field { border-radius: 999px 0 0 999px; }
.khobor-skin-lifestyle .nav-search .search-submit { border-radius: 0 999px 999px 0; }
.khobor-skin-lifestyle .to-top { background: var(--kb-red); }
.khobor-skin-lifestyle .site-footer { background: #2B241B; }
.khobor-skin-lifestyle .tag-links a { border-radius: 999px; }

/* ---------------------------------------------------------
   Skin responsive tweaks
   --------------------------------------------------------- */
@media (max-width: 860px) {
  .kb-dark .site-nav { background: #0B1017; border-color: var(--kb-line); }
  .khobor-skin-magazine .site-nav, .khobor-skin-lifestyle .site-nav {
    background: var(--kb-card); border-color: var(--kb-line);
    box-shadow: 0 18px 30px rgba(70, 50, 15, .16);
  }
  .khobor-skin-magazine .site-nav .menu li, .khobor-skin-lifestyle .site-nav .menu li { border-color: var(--kb-line); }
  .khobor-skin-magazine .site-nav .menu ul a, .khobor-skin-lifestyle .site-nav .menu ul a { color: var(--kb-mut); }
  .khobor-skin-magazine .site-nav .menu ul, .khobor-skin-lifestyle .site-nav .menu ul { background: rgba(0, 0, 0, .04); }
  .khobor-skin-magazine .sub-toggle, .khobor-skin-lifestyle .sub-toggle { background: rgba(0, 0, 0, .06); color: var(--kb-ink); }
  .khobor-skin-magazine .site-nav .menu > li.current-menu-item > a,
  .khobor-skin-lifestyle .site-nav .menu > li.current-menu-item > a { box-shadow: inset 3px 0 0 var(--kb-red); }
}
@media (max-width: 760px) {
  .khobor-skin-magazine .hero-item:first-child,
  .kb-hero-cover .hero-item:first-child { min-height: 340px; }
  .khobor-skin-magazine .sec-title::before, .khobor-skin-magazine .sec-title::after { width: 34px; }
}

/* =========================================================
   17. Premium polish & all-device responsive
   ========================================================= */

/* Brand hairline across the very top (hidden on single posts,
   where the reading-progress bar takes its place) */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 3px;
  background: var(--kb-red); z-index: 125; pointer-events: none;
}
body.single::before { display: none; }

/* Reading progress (single posts) */
.read-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 130;
  display: none; pointer-events: none;
}
.single .read-progress { display: block; }
.read-progress span {
  display: block; height: 100%; width: 0;
  background: var(--kb-red); transition: width .1s linear;
}

/* Balanced headlines where supported */
h1, h2, h3, .hero-title, .card-title, .feat-title { text-wrap: balance; }

/* Scroll-reveal (activated by JS via body.kb-anim; reduced motion never gets it) */
body.kb-anim .card, body.kb-anim .hero-item, body.kb-anim .feat-main,
body.kb-anim .widget, body.kb-anim .home-section .mini-post { opacity: 0; }
body.kb-anim .kb-in { animation: kb-reveal .65s cubic-bezier(.2, .65, .2, 1) both; }
@keyframes kb-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Refined motion + layered shadows */
.card { transition: transform .3s cubic-bezier(.2, .65, .2, 1), box-shadow .3s cubic-bezier(.2, .65, .2, 1), border-color .2s; }
.card:hover { box-shadow: 0 2px 6px rgba(16, 20, 24, .06), 0 20px 44px rgba(16, 20, 24, .15); }
.card-media img { transition: transform .6s cubic-bezier(.2, .65, .2, 1); }
button, input[type="submit"], .btn { letter-spacing: .01em; }

/* Animated menu underline (pointer devices only) */
@media (hover: hover) {
  .site-nav .menu > li > a { position: relative; }
  .site-nav .menu > li > a::after {
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 9px;
    height: 2px; background: var(--kb-red); border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform .28s cubic-bezier(.2, .65, .2, 1);
  }
  .site-nav .menu > li:hover > a::after,
  .site-nav .menu > li > a:focus-visible::after { transform: scaleX(1); }
}

/* Back-to-top scroll-progress ring */
.to-top { overflow: visible; }
.to-top::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(var(--kb-red) calc(var(--p, 0) * 1%), rgba(0, 0, 0, .14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
}
.kb-dark .to-top::after,
.khobor-skin-lifestyle .to-top::after {
  background: conic-gradient(#fff calc(var(--p, 0) * 1%), rgba(255, 255, 255, .28) 0);
}

/* Themed scrollbar (uses skin tokens, so dark mode adapts) */
html { scrollbar-color: color-mix(in srgb, var(--kb-mut) 55%, transparent) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--kb-mut) 45%, transparent);
  border-radius: 8px; border: 3px solid var(--kb-paper);
}
::-webkit-scrollbar-thumb:hover { background: var(--kb-red); }

/* Magazine skin keeps its taller cover rows */
.khobor-skin-magazine .hero-grid { grid-auto-rows: clamp(185px, 15vw, 212px); }

/* ------------------- Large screens (1500px+) ------------------- */
@media (min-width: 1500px) {
  .wrap { max-width: 1320px; }
  .layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; }
  .hero-grid { grid-auto-rows: 238px; }
  .khobor-skin-magazine .hero-item:first-child,
  .kb-hero-cover .hero-item:first-child { min-height: 540px; }
}

/* ------------------- Tablets: scrollable tables ---------------- */
@media (max-width: 760px) {
  .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ------------------- Phones: swipeable hero carousel ----------- */
@media (max-width: 600px) {
  .hero-grid {
    display: grid; grid-auto-flow: column; grid-auto-columns: 84%;
    grid-template-columns: none; grid-auto-rows: auto;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 12px; padding-bottom: 8px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .hero-grid::-webkit-scrollbar { display: none; }
  .hero-item, .hero-item:first-child {
    grid-column: auto !important; grid-row: auto !important;
    scroll-snap-align: center; min-height: 240px !important;
  }
}

/* ------------------- Small phones (≤400px) --------------------- */
@media (max-width: 400px) {
  .site-title { font-size: clamp(1.8rem, 9vw, 2.2rem); }
  .masthead { padding: 20px 0 14px; }
  .hero-item, .hero-item:first-child { min-height: 215px !important; }
  .hero-grid { grid-auto-columns: 88%; }
  .card-body { padding: 14px 14px 16px; }
  .ticker-label { padding: 0 10px; font-size: .74rem; }
  .to-top { width: 42px; height: 42px; }
  .widget { padding: 16px 15px 12px; }
}

/* ------------------- Print ------------------------------------- */
@media print {
  body::before, .read-progress, .topbar, .navbar, .ticker, .sidebar,
  .site-footer, .to-top, .post-navigation, .related-posts,
  .comments-area, .nav-search, #kb-skins { display: none !important; }
  body { background: #fff; color: #000; }
  .layout { display: block; }
  .card, .single-post-article, .page-article { border: 0; box-shadow: none; }
  a { color: #000; }
}

/* =========================================================
   18. Social icons, footer CTA & topic blocks
   ========================================================= */
body.kb-no-topline::before { display: none; }

/* Guard: hide "Custom Sidebars" plugin explain/debug output */
.cs-explain, #cs-explain { display: none !important; }

.social-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .09); color: #C8CCD2;
  transition: background .2s, color .2s, transform .2s;
}
.social-links a:hover { background: var(--kb-red); color: #fff; transform: translateY(-2px); }
.social-links svg { width: 14px; height: 14px; }

.top-right { display: flex; align-items: center; gap: 16px; }
.top-social { gap: 4px; }
.top-social a { width: 26px; height: 26px; background: transparent; }
.top-social a:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: none; }
.top-social svg { width: 13px; height: 13px; }

.foot-cta { border-bottom: 1px solid var(--kb-line-dark); }
.foot-cta-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px 28px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 34px;
}
.foot-cta-txt h2 {
  margin: 0 0 6px; color: #fff;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}
.foot-cta-txt p { margin: 0; color: #A9AFB8; font-size: .92rem; max-width: 54ch; }
.foot-cta-act { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-cta .social-links a { width: 40px; height: 40px; }
.foot-cta .social-links svg { width: 17px; height: 17px; }
.btn.foot-rss svg { width: 14px; height: 14px; }
.foot-social { margin-top: 14px; }

.foot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-tags a {
  background: rgba(255, 255, 255, .08); color: #C8CCD2;
  padding: 6px 13px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; line-height: 1.5;
  transition: background .2s, color .2s;
}
.foot-tags a:hover { background: var(--kb-red); color: #fff; }
.khobor-skin-magazine .foot-tags a { border-radius: 3px; }
.khobor-skin-sports .foot-tags a { border-radius: 4px; text-transform: uppercase; font-size: .74rem; letter-spacing: .04em; }
.khobor-skin-tech .foot-cta-txt h2 { font-family: var(--f-serif); }

@media (max-width: 600px) {
  .top-social { display: none; }
  .foot-cta-in { padding-top: 26px; padding-bottom: 26px; }
}

/* =========================================================
   19. Color palettes — combine with any layout skin.
       5 layouts x 13 palettes = 65 built-in designs.
       Dark palettes pair with the shared .kb-dark component
       overrides (added automatically via body class).
   ========================================================= */
body.khobor-pal-crimson  { --kb-red: var(--kb-accent, #C21E2C); --kb-paper: #F7F6F2; --kb-card: #FFFFFF; --kb-ink: #191D24; --kb-ink-2: #22262E; --kb-mut: #6B7078; --kb-line: #E5E2DA; }
body.khobor-pal-ocean    { --kb-red: var(--kb-accent, #0E63C4); --kb-paper: #F2F6FA; --kb-card: #FFFFFF; --kb-ink: #16222F; --kb-ink-2: #101B26; --kb-mut: #5E6C7C; --kb-line: #DCE4EC; }
body.khobor-pal-emerald  { --kb-red: var(--kb-accent, #0F8A4F); --kb-paper: #F2F7F3; --kb-card: #FFFFFF; --kb-ink: #14231B; --kb-ink-2: #0F1D15; --kb-mut: #5D6E63; --kb-line: #DAE6DD; }
body.khobor-pal-royal    { --kb-red: var(--kb-accent, #5B2EC9); --kb-paper: #F6F4FB; --kb-card: #FFFFFF; --kb-ink: #1D1830; --kb-ink-2: #171228; --kb-mut: #6B6580; --kb-line: #E2DDF0; }
body.khobor-pal-sunset   { --kb-red: var(--kb-accent, #E4572E); --kb-paper: #FBF4EE; --kb-card: #FFFFFF; --kb-ink: #2A1E16; --kb-ink-2: #221811; --kb-mut: #83715F; --kb-line: #EFDFD3; }
body.khobor-pal-rose     { --kb-red: var(--kb-accent, #C2185B); --kb-paper: #FBF2F5; --kb-card: #FFFFFF; --kb-ink: #2B1A21; --kb-ink-2: #23151B; --kb-mut: #83636F; --kb-line: #F0DAE2; }
body.khobor-pal-teal     { --kb-red: var(--kb-accent, #0E7C86); --kb-paper: #F0F6F6; --kb-card: #FFFFFF; --kb-ink: #12262A; --kb-ink-2: #0D1E22; --kb-mut: #5A7175; --kb-line: #D8E6E6; }
body.khobor-pal-amber    { --kb-red: var(--kb-accent, #C77F00); --kb-paper: #FBF6EA; --kb-card: #FFFFFF; --kb-ink: #2A2312; --kb-ink-2: #221C0E; --kb-mut: #7E7355; --kb-line: #EEE2C8; }
body.khobor-pal-slate    { --kb-red: var(--kb-accent, #33415C); --kb-paper: #F4F5F7; --kb-card: #FFFFFF; --kb-ink: #16202E; --kb-ink-2: #101825; --kb-mut: #66707E; --kb-line: #DFE3E9; }
body.khobor-pal-midnight { --kb-red: var(--kb-accent, #4EA1FF); --kb-paper: #0D1220; --kb-card: #151C2E; --kb-ink: #E7ECF6; --kb-ink-2: #101728; --kb-mut: #8B96AC; --kb-line: #26304A; --kb-line-dark: rgba(255, 255, 255, .08); --shadow: 0 16px 36px rgba(0, 0, 0, .55); }
body.khobor-pal-forest   { --kb-red: var(--kb-accent, #4CC38A); --kb-paper: #0C1512; --kb-card: #12211B; --kb-ink: #E4F0E9; --kb-ink-2: #0E1A15; --kb-mut: #86A093; --kb-line: #23382E; --kb-line-dark: rgba(255, 255, 255, .08); --shadow: 0 16px 36px rgba(0, 0, 0, .55); }
body.khobor-pal-noir     { --kb-red: var(--kb-accent, #E3B341); --kb-paper: #101010; --kb-card: #1A1A1A; --kb-ink: #EDEDED; --kb-ink-2: #141414; --kb-mut: #9A9A9A; --kb-line: #2B2B2B; --kb-line-dark: rgba(255, 255, 255, .08); --shadow: 0 16px 36px rgba(0, 0, 0, .55); }

/* Lifestyle keeps its warm dark footer only on light palettes */
.kb-dark.khobor-skin-lifestyle .site-footer { background: #070B11; }

/* =========================================================
   20. Options layer: footer designs, share row, header toggles
   ========================================================= */
/* Header toggles */
.kb-no-sticky .navbar { position: static; }
.kb-no-sticky.admin-bar .navbar { top: auto; }
.kb-no-dates .meta time, .kb-no-dates .mini-date, .kb-no-dates .hero-meta { display: none; }
.top-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.top-msg { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Share row (single posts) */
.share-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--kb-line);
}
.share-label { font-weight: 700; font-size: .88rem; margin-right: 3px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; padding: 0; position: relative;
  background: #F1EFE8; color: var(--kb-ink); border: 0; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.share-btn:hover { background: var(--kb-red); color: #fff; transform: translateY(-2px); }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.kb-dark .share-btn { background: rgba(255, 255, 255, .09); }
.khobor-skin-magazine .share-btn { border-radius: 3px; }
.kb-copy-done {
  position: absolute; left: 50%; top: -30px; transform: translateX(-50%) translateY(4px);
  background: var(--kb-ink); color: var(--kb-paper); font-size: .7rem; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.kb-copy.copied .kb-copy-done { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Footer design: SPLIT ---------- */
@media (min-width: 921px) {
  .kb-footer-split .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.kb-footer-split .foot-about .foot-logo { font-size: 2rem; }
.kb-footer-split .foot-about p { max-width: 36ch; }

/* ---------- Footer design: BOXED ---------- */
.kb-footer-boxed .site-footer {
  background: transparent; margin-top: 46px;
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
}
.kb-footer-boxed .foot-shell {
  max-width: 1180px; margin: 0 auto 26px;
  background: var(--kb-ink); border-radius: 26px;
  overflow: hidden; box-shadow: var(--shadow);
}
body.kb-dark.kb-footer-boxed .foot-shell { background: #070B11; }
body.kb-dark.kb-footer-boxed .site-footer { background: transparent; }
body.khobor-skin-lifestyle.kb-footer-boxed .foot-shell { background: #2B241B; }
body.khobor-skin-lifestyle.kb-footer-boxed .site-footer { background: transparent; }
body.kb-dark.khobor-skin-lifestyle.kb-footer-boxed .foot-shell { background: #070B11; }

/* ---------- Footer design: CENTERED ---------- */
.foot-center {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 15px; padding-top: 46px; padding-bottom: 34px;
}
.foot-center .foot-logo { font-family: var(--f-serif); font-weight: 800; font-size: 2rem; color: #fff; }
.foot-center .foot-logo::after { content: "."; color: var(--kb-red); }
.khobor-skin-magazine .foot-center .foot-logo::after { content: ""; }
.foot-center p { margin: 0; max-width: 54ch; font-size: .92rem; line-height: 1.85; }
.foot-center .foot-menu { justify-content: center; }
.kb-footer-centered .foot-bottom-in { justify-content: center; text-align: center; }

/* ---------- Footer design: MINIMAL ---------- */
.kb-footer-minimal .site-footer { margin-top: 36px; }
.kb-footer-minimal .foot-bottom { border-top: 0; }
.kb-footer-minimal .foot-bottom-in { padding-top: 22px; padding-bottom: 22px; }
.foot-social-min a { width: 28px; height: 28px; }
.foot-social-min svg { width: 13px; height: 13px; }
