﻿/* ============================================================
   Koranpress â€” Main Stylesheet
   Portal berita bergaya editorial. Vanilla CSS, zero dependency.
   Cocok 1:1 dengan markup template (kp-*).
   ============================================================ */

/* ----- 0. Custom Properties -------------------------------- */
:root {
  --accent: #d92336;
  --accent-hover: #b91c2c;
  --accent-soft: rgba(217, 35, 54, .08);
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --bg-card: #ffffff;
  --text: #16181d;
  --text-soft: #4c515a;
  --text-muted: #858b96;
  --border: #e3e6ea;
  --border-soft: #eef0f3;
  --shadow: rgba(16, 20, 28, .07);
  --shadow-lg: rgba(16, 20, 28, .16);
  --overlay: rgba(10, 12, 16, .6);
  --radius: 8px;
  --radius-sm: 5px;
  --gap: 20px;
  --container: 1220px;
  --sidebar-w: 330px;
  --nav-h: 50px;
  --topbar-h: 36px;
  --font-body: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
  --font-heading: Georgia, 'Times New Roman', Times, serif;
  --transition: .22s ease;
}

/* Typography preset from Customizer (body class kp-modern / kp-editorial) */
.kp-modern { --font-heading: var(--font-body); }

/* ----- 1. Dark mode ---------------------------------------- */
.kp-dark {
  --bg: #101216;
  --bg-alt: #171a20;
  --bg-card: #1b1e25;
  --text: #e6e8ec;
  --text-soft: #aeb3bd;
  --text-muted: #767c88;
  --border: #2a2e37;
  --border-soft: #23262e;
  --shadow: rgba(0, 0, 0, .3);
  --shadow-lg: rgba(0, 0, 0, .5);
  --overlay: rgba(0, 0, 0, .7);
  --accent-soft: rgba(217, 35, 54, .16);
}

/* ----- 2. Reset & base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--bg-alt);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.kp-drawer-open, body.kp-search-open { overflow: hidden; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
svg { flex-shrink: 0; }
.kp-icon { vertical-align: middle; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.kp-skip:focus {
  position: fixed; top: 10px; left: 10px; z-index: 10000;
  width: auto; height: auto; clip: auto; clip-path: none;
  padding: 10px 18px; background: var(--accent); color: #fff;
  border-radius: var(--radius); font-weight: 600;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----- 3. Layout primitives -------------------------------- */
.kp-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.kp-header { background: var(--bg); }
.kp-main { background: var(--bg-alt); min-height: 60vh; padding: 24px 0 40px; }
.kp-content { min-width: 0; }

/* ----- 4. Progress bar ------------------------------------- */
.kp-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 9999; pointer-events: none; }
.kp-progress__bar { display: block; height: 100%; width: 0; background: var(--accent); transition: width .12s linear; }

/* ----- 5. Buttons, chips, badge ---------------------------- */
.kp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; background: var(--accent); color: #fff;
  border-radius: var(--radius); font-weight: 600; font-size: 15px; line-height: 1;
  transition: background var(--transition), transform var(--transition);
}
.kp-btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.kp-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.kp-btn--sm { padding: 8px 15px; font-size: 13px; }
.kp-btn--lg { padding: 14px 28px; font-size: 16px; }
.kp-btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.kp-btn--ghost:hover { background: var(--bg-alt); color: var(--accent); border-color: var(--accent); }

.kp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; background: var(--bg-alt); color: var(--text-soft);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; font-weight: 500; transition: all var(--transition);
}
.kp-chip span { font-size: 11px; color: var(--text-muted); }
.kp-chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.kp-chip:hover span { color: rgba(255, 255, 255, .8); }

.kp-badge {
  display: inline-block; padding: 4px 11px; background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.4;
  transition: background var(--transition);
}
.kp-badge span { color: inherit; }
.kp-badge:hover { background: var(--accent-hover); color: #fff; }

/* ----- 6. Thumbnail & placeholder -------------------------- */
.kp-thumb__img { width: 100%; height: 100%; object-fit: cover; }
.kp-thumb__placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 120px;
  background: linear-gradient(135deg, hsl(var(--kp-hue, 210) 45% 55%), hsl(calc(var(--kp-hue, 210) + 40) 45% 42%));
  color: rgba(255, 255, 255, .92);
}
.kp-thumb__placeholder span { font-family: var(--font-heading); font-size: 34px; font-weight: 700; }

/* ----- 7. Meta --------------------------------------------- */
.kp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--text-muted); }
.kp-meta__item { display: inline-flex; align-items: center; gap: 5px; }
.kp-meta__item a { color: var(--text-soft); font-weight: 500; }
.kp-meta__item a:hover { color: var(--accent); }
.kp-meta--sm { font-size: 12px; gap: 4px 10px; }
.kp-meta--light { color: rgba(255, 255, 255, .78); }
.kp-meta--light .kp-meta__item a { color: rgba(255, 255, 255, .9); }

/* ----- 8. Top bar ------------------------------------------ */
.kp-topbar { background: var(--text); color: rgba(255, 255, 255, .85); font-size: 13px; }
.kp-dark .kp-topbar { background: #0b0d10; }
.kp-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--topbar-h); }
.kp-topbar__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.kp-topbar__date { white-space: nowrap; font-weight: 500; }
.kp-topbar__text { color: rgba(255, 255, 255, .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-topbar__right { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.kp-topbar__right .kp-iconbtn { color: rgba(255, 255, 255, .85); width: 32px; height: 32px; }
.kp-topbar__right .kp-iconbtn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ----- 9. Masthead & brand --------------------------------- */
.kp-masthead { padding: 18px 0; background: var(--bg); border-bottom: 1px solid var(--border-soft); }
.kp-masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.kp-brand { min-width: 0; }
.kp-brand__name { font-family: var(--font-heading); font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.kp-brand__name a { color: var(--text); }
.kp-brand__name a:hover { color: var(--accent); }
.kp-brand__tagline { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.kp-brand .custom-logo { max-height: 70px; width: auto; }
.kp-masthead__aside { flex-shrink: 0; }

/* ----- 10. Navbar ------------------------------------------ */
.kp-navbar-wrap { background: var(--accent); color: #fff; position: relative; z-index: 200; }
.kp-navbar-wrap.is-stuck { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 3px 14px var(--shadow-lg); animation: kp-slide-down .3s ease; }
@keyframes kp-slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.kp-navbar { display: flex; align-items: center; gap: 6px; min-height: var(--nav-h); }
.kp-nav { flex: 1; min-width: 0; }
.kp-nav__list, #kp-primary-nav > ul { display: flex; align-items: center; gap: 0; min-height: var(--nav-h); }
.kp-nav__list li, #kp-primary-nav > ul > li { position: relative; }
.kp-nav__list li a, .kp-nav__link, #kp-primary-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px; min-height: var(--nav-h);
  padding: 0 15px; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background var(--transition);
}
.kp-nav__list li a:hover, .kp-nav__link:hover,
.kp-nav__list .current-menu-item > a, #kp-primary-nav .current-menu-item > a,
#kp-primary-nav > ul > li > a:hover { background: rgba(0, 0, 0, .16); color: #fff; }
/* Dropdown */
.kp-nav__list .sub-menu, #kp-primary-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px; z-index: 210;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 10px 28px var(--shadow-lg); padding: 6px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition);
}
.kp-nav__list .sub-menu .sub-menu, #kp-primary-nav .sub-menu .sub-menu { top: 0; left: 100%; border-radius: var(--radius); }
.kp-nav__list li:hover > .sub-menu, #kp-primary-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.kp-nav__list .sub-menu a, #kp-primary-nav .sub-menu a {
  display: block; min-height: 0; padding: 9px 18px; color: var(--text); font-size: 13.5px; font-weight: 500;
}
.kp-nav__list .sub-menu a:hover, #kp-primary-nav .sub-menu a:hover { background: var(--bg-alt); color: var(--accent); }
.kp-navbar__actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.kp-navbar__actions .kp-iconbtn { color: #fff; }
.kp-navbar__actions .kp-iconbtn:hover { background: rgba(0, 0, 0, .16); }

/* ----- 11. Subnav ------------------------------------------ */
.kp-subnav { background: var(--bg); border-bottom: 1px solid var(--border); font-size: 13px; }
.kp-subnav .kp-container { display: flex; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.kp-subnav a { color: var(--text-soft); }
.kp-subnav a:hover { color: var(--accent); }

/* ----- 12. Icon button & burger ---------------------------- */
.kp-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: inherit;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.kp-iconbtn:hover { background: var(--accent-soft); color: var(--accent); }
.kp-iconbtn--lg { width: 42px; height: 42px; }
.kp-iconbtn--xs { width: 28px; height: 28px; }
.kp-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; padding: 8px; }
.kp-burger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.kp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- 13. Scrim ------------------------------------------- */
.kp-scrim {
  position: fixed; inset: 0; z-index: 900; background: var(--overlay);
  opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.kp-scrim.is-visible { opacity: 1; visibility: visible; }
.kp-scrim[hidden] { display: none; }

/* ----- 14. Drawer (off-canvas) ----------------------------- */
.kp-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000;
  width: min(340px, 88vw); display: flex; flex-direction: column;
  background: var(--bg); border-right: 1px solid var(--border);
  box-shadow: 4px 0 30px var(--shadow-lg);
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.kp-drawer.is-open { transform: translateX(0); }
.kp-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.kp-drawer__brand { display: flex; align-items: center; }
.kp-drawer__brand .custom-logo { max-height: 40px; width: auto; }
.kp-drawer__brand--text { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--text); }
.kp-drawer__body { padding: 16px 18px; flex: 1; }
.kp-drawer__menu { display: flex; flex-direction: column; gap: 2px; }
.kp-drawer__menu li a, .kp-drawer__menu .kp-nav__link {
  display: block; padding: 10px 12px; color: var(--text); font-weight: 500;
  border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition);
}
.kp-drawer__menu li a:hover, .kp-drawer__menu .kp-nav__link:hover { background: var(--accent-soft); color: var(--accent); }
.kp-drawer__menu .sub-menu { padding-left: 12px; margin-top: 2px; border-left: 2px solid var(--border); }
.kp-drawer__search { margin: 16px 0; }
.kp-drawer__search .search-form { display: flex; gap: 8px; }
.kp-drawer__search .search-field {
  flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-alt); color: var(--text);
}
.kp-drawer__section { margin-top: 20px; }
.kp-drawer__heading {
  font-family: var(--font-heading); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 12px;
}
.kp-drawer__foot { padding: 16px 18px; border-top: 1px solid var(--border); flex-shrink: 0; }

/* ----- 15. Search overlay ---------------------------------- */
.kp-search-overlay {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.kp-search-overlay.is-open { opacity: 1; visibility: visible; }
.kp-search-overlay__inner { max-width: 760px; margin: 0 auto; padding: 40px 20px; }
.kp-search-overlay__head { display: flex; align-items: center; gap: 12px; }
.kp-searchform { flex: 1; display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--accent); padding-bottom: 10px; }
.kp-searchform svg { color: var(--text-muted); }
.kp-searchform input[type="search"] {
  flex: 1; min-width: 0; border: none; background: none; font-size: 22px;
  font-family: var(--font-heading); color: var(--text); padding: 4px 0;
}
.kp-searchform input[type="search"]:focus { outline: none; }
.kp-searchform input[type="search"]::placeholder { color: var(--text-muted); }
.kp-search-overlay__results, .kp-search-overlay__popular { margin-top: 28px; }
.kp-search-overlay__title {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); margin-bottom: 14px;
}
.kp-search-overlay__results ul { display: flex; flex-direction: column; gap: 4px; }
.kp-suggest__item a {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  border-radius: var(--radius); transition: background var(--transition);
}
.kp-suggest__item a:hover { background: var(--bg-alt); }
.kp-suggest__item img { width: 56px; height: 42px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.kp-suggest__item span { font-size: 15px; color: var(--text); font-weight: 500; }
.kp-search-overlay[aria-hidden="true"] { pointer-events: none; }

/* ----- 16. Breaking news ticker ---------------------------- */
.kp-breaking { background: var(--bg-card); border-bottom: 1px solid var(--border); }
.kp-breaking__inner { display: flex; align-items: center; gap: 14px; height: 44px; }
.kp-breaking__label {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: 5px 12px; border-radius: var(--radius-sm);
}
.kp-breaking__viewport { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; overflow: hidden; }
.kp-breaking__list { flex: 1; min-width: 0; position: relative; height: 44px; overflow: hidden; }
.kp-breaking__item { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.kp-breaking__item.is-active { opacity: 1; transform: translateY(0); }
.kp-breaking__item a { display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; }
.kp-breaking__cat {
  flex-shrink: 0; font-size: 10px; font-weight: 700; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: var(--radius-sm);
}
.kp-breaking__title {
  font-size: 14px; color: var(--text); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kp-breaking__title:hover { color: var(--accent); }
.kp-breaking__nav { display: flex; gap: 2px; flex-shrink: 0; }
.kp-breaking__nav .kp-iconbtn--xs[data-kp-ticker="prev"] svg { transform: rotate(90deg); }
.kp-breaking__nav .kp-iconbtn--xs[data-kp-ticker="next"] svg { transform: rotate(-90deg); }

/* ----- 17. Layout: content + sidebar ----------------------- */
.kp-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-w); gap: 32px; align-items: start; }
.kp-layout--full, .kp-layout--sidebar-none { grid-template-columns: minmax(0, 1fr); }
.kp-layout--sidebar-left { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.kp-layout--sidebar-left .kp-layout__main { order: 2; }
.kp-layout--sidebar-left .kp-layout__sidebar { order: 1; }
.kp-layout__main, .kp-content { min-width: 0; }
.kp-layout__sidebar { min-width: 0; }
.kp-layout__sidebar.is-sticky, .kp-sidebar.is-sticky { position: sticky; top: calc(var(--nav-h) + 14px); }

/* ----- 18. Section heading & module wrapper ---------------- */
.kp-module { margin-bottom: 34px; }
.kp-section__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border);
}
.kp-section__title { font-family: var(--font-heading); font-size: 21px; font-weight: 700; line-height: 1.2; display: flex; align-items: center; gap: 10px; }
.kp-section__title span { position: relative; padding-bottom: 12px; margin-bottom: -14px; }
.kp-section__title span::after { content: ''; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--accent); border-radius: 2px; }
.kp-section__more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.kp-section__more:hover { color: var(--accent); }

/* ----- 19. Hero module ------------------------------------- */
.kp-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); }
.kp-hero__lead { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 400px; background: var(--bg-card); }
.kp-hero__media { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.kp-hero__media img, .kp-hero__media .kp-thumb__placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kp-hero__lead:hover .kp-hero__media img { transform: scale(1.04); }
.kp-hero__content { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 60px 24px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); color: #fff; }
.kp-hero__title { font-family: var(--font-heading); font-size: 27px; font-weight: 700; line-height: 1.28; margin-top: 10px; }
.kp-hero__title a { color: #fff; }
.kp-hero__title a:hover { color: rgba(255, 255, 255, .85); }
.kp-hero__excerpt { font-size: 14px; color: rgba(255, 255, 255, .82); margin-top: 8px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kp-hero__content .kp-meta { color: rgba(255, 255, 255, .72); margin-top: 10px; }
.kp-hero__content .kp-meta .kp-meta__item a { color: rgba(255, 255, 255, .85); }
.kp-hero__side { display: flex; flex-direction: column; gap: var(--gap); }
.kp-hero__side .kp-card { flex: 1; }

/* ----- 20. Card variants ----------------------------------- */
.kp-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition); }
.kp-card:hover { box-shadow: 0 6px 22px var(--shadow); transform: translateY(-2px); border-color: var(--border); }
.kp-card__thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-alt); }
.kp-card__thumb img, .kp-card__thumb .kp-thumb__placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.kp-card:hover .kp-card__thumb img { transform: scale(1.06); }
.kp-card__body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 7px; }
.kp-card__title { font-family: var(--font-heading); font-size: 17px; font-weight: 700; line-height: 1.35; }
.kp-card__title a { color: var(--text); }
.kp-card__title a:hover { color: var(--accent); }
.kp-card__title--sm { font-size: 14.5px; line-height: 1.4; }
.kp-card__title--md { font-size: 16px; }
.kp-card__title--xl { font-size: 24px; }
.kp-card__excerpt { font-size: 14px; color: var(--text-soft); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* list (horizontal) */
.kp-card--list { display: flex; flex-direction: row; }
.kp-card--list .kp-card__thumb { flex-shrink: 0; width: 240px; aspect-ratio: auto; align-self: stretch; }
.kp-card--list .kp-card__body { flex: 1; justify-content: center; }
/* hero / hero-side / overlay: image + gradient overlay */
.kp-card--hero, .kp-card--hero-side, .kp-card--overlay { position: relative; border: none; background: #0c0e12; }
.kp-card--hero { min-height: 240px; }
.kp-card--hero .kp-card__thumb--hero { position: absolute; inset: 0; aspect-ratio: auto; }
.kp-card--hero-side { min-height: 150px; }
.kp-card--hero-side .kp-card__thumb--side { position: absolute; inset: 0; aspect-ratio: auto; }
.kp-card--overlay .kp-card__thumb { aspect-ratio: 4 / 3; }
.kp-card__overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 40px 18px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); color: #fff;
  display: flex; flex-direction: column; gap: 6px;
}
.kp-card__overlay--sm { padding: 30px 15px 15px; }
.kp-card__overlay .kp-card__title a { color: #fff; }
.kp-card__overlay .kp-card__title a:hover { color: rgba(255, 255, 255, .85); }
.kp-card__overlay .kp-meta { color: rgba(255, 255, 255, .75); }
/* compact (no image) */
.kp-card--compact { display: flex; padding: 13px 0; border: none; border-bottom: 1px solid var(--border-soft); border-radius: 0; background: none; }
.kp-card--compact:last-child { border-bottom: none; }
.kp-card--compact:hover { box-shadow: none; transform: none; }
.kp-card--compact .kp-card__body { padding: 0; gap: 5px; }
/* numbered */
.kp-card--numbered { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border: none; border-bottom: 1px solid var(--border-soft); border-radius: 0; background: none; }
.kp-card--numbered:hover { box-shadow: none; transform: none; }
.kp-card__number { font-family: var(--font-heading); font-size: 26px; font-weight: 700; line-height: 1; color: var(--accent); flex-shrink: 0; min-width: 30px; }
.kp-card--numbered .kp-card__thumb--sm { flex-shrink: 0; width: 78px; height: 60px; aspect-ratio: auto; border-radius: var(--radius-sm); }
.kp-card--numbered .kp-card__body { padding: 0; flex: 1; }

/* ----- 21. Grid module ------------------------------------- */
.kp-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--kp-cols, 3), minmax(0, 1fr)); }
.kp-grid .kp-card { height: 100%; display: flex; flex-direction: column; }
.kp-grid .kp-card__body { flex: 1; }

/* ----- 22. List module ------------------------------------- */
.kp-list { display: flex; flex-direction: column; gap: var(--gap); }
.kp-list--tight { gap: 0; }
.kp-list--tight .kp-card { border: none; border-bottom: 1px solid var(--border-soft); border-radius: 0; }
.kp-list--tight .kp-card:last-child { border-bottom: none; }
.kp-list--tight .kp-card:hover { box-shadow: none; transform: none; }

/* ----- 23. Numbered module --------------------------------- */
.kp-numbered { display: flex; flex-direction: column; }
.kp-numbered__item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.kp-numbered__item:last-child { border-bottom: none; }
.kp-numbered__rank { font-family: var(--font-heading); font-size: 28px; font-weight: 700; line-height: 1; color: var(--border); flex-shrink: 0; min-width: 34px; transition: color var(--transition); }
.kp-numbered__item:hover .kp-numbered__rank { color: var(--accent); }
.kp-numbered__body { flex: 1; min-width: 0; }
.kp-numbered__title { font-family: var(--font-heading); font-size: 16px; font-weight: 700; line-height: 1.4; }
.kp-numbered__title a { color: var(--text); }
.kp-numbered__title a:hover { color: var(--accent); }

/* ----- 24. Carousel module --------------------------------- */
.kp-carousel__controls { display: flex; gap: 6px; }
.kp-carousel__controls .kp-iconbtn { background: var(--bg-alt); border: 1px solid var(--border); }
.kp-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: thin; }
.kp-carousel::-webkit-scrollbar { height: 6px; }
.kp-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.kp-carousel::-webkit-scrollbar-track { background: var(--border-soft); }
.kp-carousel > .kp-card { flex: 0 0 clamp(240px, 30%, 300px); scroll-snap-align: start; }

/* ----- 25. Overlay module ---------------------------------- */
.kp-overlay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }

/* ----- 26. Compact module ---------------------------------- */
.kp-compact { display: flex; flex-direction: column; }
.kp-compact__item { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.kp-compact__item:last-child { border-bottom: none; }

/* ----- 27. Columns module ---------------------------------- */
.kp-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.kp-columns__col { min-width: 0; }

/* ----- 28. Latest module & load more ----------------------- */
.kp-latest { display: flex; flex-direction: column; gap: var(--gap); }
.kp-loadmore { display: flex; justify-content: center; margin-top: 26px; }
.kp-loadmore__infinite { height: 1px; }

/* ----- 29. Breadcrumb -------------------------------------- */
.kp-breadcrumb { margin-bottom: 16px; font-size: 13px; }
.kp-breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-muted); }
.kp-breadcrumb__item { display: inline-flex; align-items: center; gap: 6px; }
.kp-breadcrumb__item a { color: var(--text-soft); }
.kp-breadcrumb__item a:hover { color: var(--accent); }
.kp-breadcrumb__item + .kp-breadcrumb__item::before { content: '/'; color: var(--text-muted); margin-right: 2px; }
.kp-breadcrumb__item[aria-current="page"] { color: var(--text-muted); }

/* ----- 30. Single post ------------------------------------- */
.kp-single, .kp-page { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.kp-single__header { margin-bottom: 20px; }
.kp-single__cats { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.kp-single__title { font-family: var(--font-heading); font-size: clamp(25px, 3.6vw, 37px); font-weight: 700; line-height: 1.24; margin-bottom: 14px; }
.kp-single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; color: var(--text-muted); padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
.kp-single__featured { margin-bottom: 22px; }
.kp-single__featured img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.kp-single__featured figcaption { font-size: 12px; color: var(--text-muted); margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--accent); }
.kp-single__footer { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--border-soft); }
.kp-single__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kp-single__tags-label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* Page (static) */
.kp-page__header { margin-bottom: 16px; }
.kp-page__title { font-family: var(--font-heading); font-size: clamp(25px, 3.4vw, 34px); font-weight: 700; line-height: 1.25; padding-bottom: 12px; border-bottom: 3px solid var(--accent); display: inline-block; }
.kp-page__featured { margin-bottom: 22px; }
.kp-page__featured img { width: 100%; border-radius: var(--radius); }

/* ----- 31. Entry content ----------------------------------- */
.kp-entry-content { font-size: 17px; line-height: 1.85; color: var(--text); overflow-wrap: break-word; }
.kp-entry-content > * + * { margin-top: 18px; }
.kp-entry-content h2, .kp-entry-content h3, .kp-entry-content h4 { font-family: var(--font-heading); line-height: 1.3; margin-top: 30px; }
.kp-entry-content h2 { font-size: 25px; }
.kp-entry-content h3 { font-size: 21px; }
.kp-entry-content h4 { font-size: 18px; }
.kp-entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.kp-entry-content a:hover { color: var(--accent-hover); }
.kp-entry-content ul, .kp-entry-content ol { margin-left: 26px; list-style: revert; }
.kp-entry-content li { margin-bottom: 6px; }
.kp-entry-content blockquote { padding: 16px 22px; background: var(--bg-alt); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-heading); font-size: 19px; line-height: 1.55; }
.kp-entry-content blockquote p:last-child { margin: 0; }
.kp-entry-content img { border-radius: var(--radius); height: auto; }
.kp-entry-content figure { margin-inline: 0; }
.kp-entry-content figcaption { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-align: center; }
.kp-entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.kp-entry-content th, .kp-entry-content td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.kp-entry-content th { background: var(--bg-alt); font-weight: 700; }
.kp-entry-content pre { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; font-family: 'Cascadia Mono', Consolas, monospace; font-size: 14px; }
.kp-entry-content code { font-family: 'Cascadia Mono', Consolas, monospace; font-size: .9em; background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; }
.kp-entry-content pre code { background: none; padding: 0; }
.kp-entry-content hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.kp-entry-content .alignwide { max-width: min(96vw, 1000px); margin-inline: auto; }
.kp-entry-content .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.kp-page-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; font-size: 14px; }
.kp-page-links a, .kp-page-links > span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text); font-weight: 600; }
.kp-page-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ----- 32. Share buttons ----------------------------------- */
.kp-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kp-share__label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.kp-share__list { display: flex; gap: 8px; flex-wrap: wrap; }
.kp-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--text-muted); transition: transform var(--transition), filter var(--transition); }
.kp-share__btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }
.kp-share__btn--whatsapp { background: #25d366; }
.kp-share__btn--facebook { background: #1877f2; }
.kp-share__btn--x { background: #111; }
.kp-share__btn--telegram { background: #229ed9; }
.kp-share__btn--copy { background: var(--text-soft); }

/* ----- 33. Author box -------------------------------------- */
.kp-author-box { display: flex; gap: 16px; padding: 20px; margin-top: 26px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); }
.kp-author-box__avatar { flex-shrink: 0; }
.kp-author-box__avatar img, .kp-author-box__avatar .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.kp-author-box__body { min-width: 0; }
.kp-author-box__label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; }
.kp-author-box__name { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin: 3px 0 6px; }
.kp-author-box__name a { color: var(--text); }
.kp-author-box__name a:hover { color: var(--accent); }
.kp-author-box__bio { font-size: 14px; color: var(--text-soft); line-height: 1.6; }
.kp-author-box__site { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; margin-top: 8px; }

/* ----- 34. Related posts ----------------------------------- */
.kp-related { margin-top: 30px; }
.kp-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.kp-related__grid .kp-card { height: 100%; display: flex; flex-direction: column; }

/* ----- 35. Post navigation --------------------------------- */
.kp-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.kp-postnav__item { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--transition), box-shadow var(--transition); }
.kp-postnav__item:hover { border-color: var(--accent); box-shadow: 0 4px 16px var(--shadow); }
.kp-postnav__item--next { text-align: right; }
.kp-postnav__dir { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.kp-postnav__item--next .kp-postnav__dir { justify-content: flex-end; }
.kp-postnav__title { font-family: var(--font-heading); font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text); }
.kp-postnav__item:hover .kp-postnav__title { color: var(--accent); }

/* ----- 36. Pagination -------------------------------------- */
.kp-pagination { display: flex; justify-content: center; margin-top: 32px; }
.kp-pagination__list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kp-pagination__item a, .kp-pagination__item span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text); font-weight: 600; font-size: 14px; transition: all var(--transition); }
.kp-pagination__item a:hover { border-color: var(--accent); color: var(--accent); }
.kp-pagination__item .current, .kp-pagination__item[aria-current] span { background: var(--accent); border-color: var(--accent); color: #fff; }
.kp-pagination__item .dots { border: none; background: none; color: var(--text-muted); }

/* ----- 37. Comments ---------------------------------------- */
.kp-comments { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; margin-top: 26px; }
.kp-comments__title { font-family: var(--font-heading); font-size: 21px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.kp-comment-list { display: flex; flex-direction: column; gap: 4px; }
.kp-comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.kp-comment-list .comment:last-child { border-bottom: none; }
.kp-comment-list .comment-body { display: flex; gap: 14px; }
.kp-comment-list .comment-author-avatar, .kp-comment-list img.avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.kp-comment-list .comment-content { flex: 1; min-width: 0; }
.kp-comment-list .comment-author-name, .kp-comment-list .fn { font-weight: 700; font-size: 15px; }
.kp-comment-list .fn a { color: var(--text); }
.kp-comment-list .comment-metadata { font-size: 12px; color: var(--text-muted); margin: 2px 0 8px; }
.kp-comment-list .comment-metadata a { color: var(--text-muted); }
.kp-comment-list .comment-metadata a:hover { color: var(--accent); }
.kp-comment-list .comment-content p { font-size: 15px; line-height: 1.65; margin-bottom: 8px; }
.kp-comment-list .reply a { font-size: 13px; font-weight: 600; color: var(--accent); }
.kp-comment-list .children { margin-left: 30px; padding-left: 18px; border-left: 2px solid var(--border-soft); margin-top: 4px; }
.kp-comment-list .bypostauthor > .comment-body { background: var(--accent-soft); border-radius: var(--radius); padding: 12px; }
.kp-comments__closed { color: var(--text-muted); font-style: italic; }
.comment-navigation, .comments-pagination { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0; font-size: 14px; }
.comment-navigation a, .comments-pagination a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-weight: 600; }
.comment-navigation a:hover, .comments-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.kp-comment-form { margin-top: 22px; }
.kp-comment-form .comment-reply-title { font-family: var(--font-heading); font-size: 19px; font-weight: 700; margin-bottom: 14px; display: block; }
.kp-comment-form .comment-notes, .kp-comment-form .logged-in-as { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.kp-comment-form .comment-form-comment, .kp-comment-form .comment-form-author, .kp-comment-form .comment-form-email, .kp-comment-form .comment-form-url { margin-bottom: 14px; }
.kp-comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 5px; }
.kp-comment-form input[type="text"], .kp-comment-form input[type="email"], .kp-comment-form input[type="url"], .kp-comment-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); transition: border-color var(--transition); }
.kp-comment-form input:focus, .kp-comment-form textarea:focus { outline: none; border-color: var(--accent); }
.kp-comment-form textarea { min-height: 130px; resize: vertical; }
.kp-comment-form .form-submit { margin-top: 6px; }
.kp-comment-form .submit { padding: 12px 26px; background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 600; transition: background var(--transition); }
.kp-comment-form .submit:hover { background: var(--accent-hover); }
.kp-comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-soft); }
.kp-comment-form .comment-form-cookies-consent input { width: auto; margin-top: 4px; }

/* ----- 38. Sidebar & widgets ------------------------------- */
.kp-sidebar { display: flex; flex-direction: column; gap: var(--gap); }
.kp-sidebar.is-sticky { position: sticky; top: calc(var(--nav-h) + 14px); }

.kp-sidebar .kp-widget, .kp-footer__col .kp-widget, .kp-sidebar .kp-widget, .kp-footer__col .kp-widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin: 0;
}
.kp-sidebar .kp-widget, .kp-sidebar .kp-widget { padding-bottom: 20px; }
.kp-widget__title, .widget-title {
  font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent); position: relative; line-height: 1.35;
}
.kp-footer__col .kp-widget { background: transparent; border: none; padding: 0; }
.kp-footer__col .kp-widget + .kp-widget { margin-top: 22px; }
.kp-footer__col .kp-widget__title, .kp-footer__col .widget-title { color: #fff; border-bottom-color: var(--accent); }

.kp-widget--posts .kp-widget__title, .kp-widget--social .kp-widget__title,
.kp-widget--posts .widget-title, .kp-widget--social .widget-title { margin-bottom: 14px; }

/* Ad slot widgets: tanpa kartu, hanya wadah iklan */
.kp-ad-widget, .kp-sidebar .kp-ad-widget {
  background: transparent; border: none; padding: 0; margin: 0;
  text-align: center;
}
.kp-ad-widget img, .kp-ad-widget iframe, .kp-ad-widget ins { max-width: 100%; height: auto; }
.kp-ad-widget:empty { display: none; }
.kp-ad-widget > * { margin-inline: auto; }
.kp-ad { text-align: center; }
.kp-ad--under_nav, .kp-ad--before_footer { margin-block: var(--gap); }
.kp-ad--header { display: flex; align-items: center; justify-content: flex-end; }

/* Custom widget: popular / latest entries */
.kp-wp-entry {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.kp-wp-entry:first-of-type { padding-top: 0; }
.kp-wp-entry:last-of-type { border-bottom: none; padding-bottom: 0; }
.kp-wp-entry__rank {
  flex-shrink: 0; width: 26px; font-family: var(--font-heading);
  font-size: 20px; font-weight: 700; line-height: 1;
  color: var(--accent); opacity: .85; padding-top: 2px;
}
.kp-wp-entry__thumb {
  flex-shrink: 0; width: 84px; height: 62px; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-alt);
}
.kp-wp-entry__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kp-wp-entry__thumb .kp-thumb__placeholder { width: 100%; height: 100%; }
.kp-wp-entry__body { flex: 1; min-width: 0; }
.kp-wp-entry__title {
  font-size: 14px; line-height: 1.45; font-weight: 600; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kp-wp-entry__title a { color: var(--text); }
.kp-wp-entry__title a:hover { color: var(--accent); }
.kp-wp-compact .kp-wp-entry__title { font-size: 13px; }

/* Custom widget: social links */
.kp-social { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-social__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text-soft); transition: all var(--transition);
}
.kp-social__link:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.kp-social__link svg { width: 17px; height: 17px; }
.kp-social--widget { gap: 8px; }

/* WordPress core widgets inside sidebar */
.kp-sidebar .kp-widget ul, .kp-footer__col .kp-widget ul { list-style: none; margin: 0; padding: 0; }
.kp-sidebar .kp-widget ul li, .kp-footer__col .kp-widget ul li {
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.kp-sidebar .kp-widget ul li:last-child, .kp-footer__col .kp-widget ul li:last-child { border-bottom: none; }
.kp-sidebar .kp-widget ul li a { color: var(--text-soft); }
.kp-sidebar .kp-widget ul li a:hover { color: var(--accent); }
.kp-sidebar .kp-widget ul ul { margin-left: 14px; margin-top: 4px; }
.widget_text p, .widget_text .textwidget { font-size: 14px; line-height: 1.7; color: var(--text-soft); }
.widget_calendar table { width: 100%; border-collapse: collapse; font-size: 13px; }
.widget_calendar th, .widget_calendar td { border: 1px solid var(--border); padding: 6px; text-align: center; }
.widget_calendar caption { font-weight: 700; padding-bottom: 8px; }
.widget_tag_cloud a, .widget_categories a { color: var(--text-soft); }
.kp-sidebar .widget_search .search-form { display: flex; gap: 6px; }
.kp-sidebar .widget_search input[type="search"] {
  flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg); color: var(--text);
}
.kp-sidebar .widget_search input[type="search"]:focus { outline: none; border-color: var(--accent); }
.kp-sidebar .widget_search .search-submit {
  padding: 9px 14px; background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 600;
}

/* ----- 39. Entry tags -------------------------------------- */
.kp-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kp-tags__label {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-right: 2px; white-space: nowrap;
}
.kp-tags a {
  display: inline-block; padding: 4px 12px; font-size: 12px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text-soft); transition: all var(--transition);
}
.kp-tags a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ----- 40. Footer ------------------------------------------ */
.kp-footer { background: #171a1f; color: #c6cad2; border-top: 3px solid var(--accent); }
.kp-footer a { color: #dfe2e8; }
.kp-footer a:hover { color: var(--accent); }
.kp-footer__widgets-wrap { padding: 40px 0 12px; }
.kp-footer__widgets {
  display: grid; gap: 30px;
  grid-template-columns: repeat(var(--kp-cols, 4), minmax(0, 1fr));
}
.kp-footer__col { min-width: 0; font-size: 14px; line-height: 1.75; }
.kp-footer__col .kp-widget + .kp-widget { margin-top: 22px; }
.kp-footer__col .kp-widget ul li { border-bottom-color: rgba(255,255,255,.09); }
.kp-footer__col .kp-widget ul li a { color: #c6cad2; }
.kp-footer__col .kp-widget ul li a:hover { color: var(--accent); }
.kp-footer__col .kp-wp-entry { border-bottom-color: rgba(255,255,255,.09); }
.kp-footer__col .kp-wp-entry__title a { color: #dfe2e8; }
.kp-footer__col .kp-social__link {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #dfe2e8;
}
.kp-footer__col .kp-social__link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.kp-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 24px; padding: 16px 0; font-size: 13px;
}
.kp-footer__bottom-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px;
}
.kp-copyright { margin: 0; color: #a8adb8; }
.kp-copyright a { color: #dfe2e8; }
.kp-credit { margin: 0; color: #7c8290; font-size: 12px; }
.kp-menu--inline { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
.kp-menu--inline li a { color: #a8adb8; font-size: 13px; }
.kp-menu--inline li a:hover { color: var(--accent); }

/* ----- 41. Back to top ------------------------------------- */
.kp-totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  opacity: 0; transform: translateY(14px); pointer-events: none;
}
.kp-totop.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.kp-totop:hover { background: var(--accent-hover); color: #fff; }
.kp-totop svg { width: 18px; height: 18px; }

/* ----- 42. Floating ads ------------------------------------ */
.kp-float {
  position: fixed; z-index: 700; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: 6px;
  max-width: min(180px, 42vw);
}
.kp-float[hidden] { display: none; }
.kp-float--left { left: 12px; bottom: 74px; }
.kp-float--right { right: 12px; bottom: 74px; }
.kp-float--bottom {
  left: 0; right: 0; bottom: 0; max-width: none; width: 100%;
  border-radius: var(--radius) var(--radius) 0 0; text-align: center;
  padding: 8px 28px 8px 8px;
}
.kp-float__close {
  position: absolute; top: -9px; right: -9px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: background var(--transition);
}
.kp-float__close:hover { background: var(--accent-hover); }
.kp-float--bottom .kp-float__close { top: 4px; right: 6px; }
.kp-float img { max-width: 100%; height: auto; }

/* ----- 43. 404 --------------------------------------------- */
.kp-404 {
  text-align: center; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 46px 24px;
}
.kp-404__code {
  font-family: var(--font-heading); font-size: clamp(68px, 13vw, 116px);
  font-weight: 700; line-height: 1; color: var(--accent); margin-bottom: 4px;
}
.kp-404__title { font-family: var(--font-heading); font-size: 23px; margin-bottom: 10px; }
.kp-404__text { color: var(--text-soft); max-width: 460px; margin: 0 auto 24px; font-size: 15px; }
.kp-404 .search-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto 30px; }
.kp-404 .search-form .search-field {
  flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: 15px;
}
.kp-404 .search-form .search-field:focus { outline: none; border-color: var(--accent); }
.kp-404 .search-form .search-submit {
  padding: 10px 20px; background: var(--accent); color: #fff;
  border-radius: var(--radius); font-weight: 600; transition: background var(--transition);
}
.kp-404 .search-form .search-submit:hover { background: var(--accent-hover); }
.kp-404__recent {
  max-width: 520px; margin: 0 auto; text-align: left;
  border-top: 1px solid var(--border); padding-top: 22px;
}
.kp-404__recent h3 { font-family: var(--font-heading); font-size: 16px; margin-bottom: 10px; }
.kp-404__recent ul { list-style: none; margin: 0; padding: 0; }
.kp-404__recent li {
  padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 14px; line-height: 1.5;
}
.kp-404__recent li:last-child { border-bottom: none; }
.kp-404__recent a { color: var(--text-soft); }
.kp-404__recent a:hover { color: var(--accent); }

/* ----- 44. Page / archive headers & listings ---------------- */
.kp-page-header {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: var(--gap);
}
.kp-page-title { font-family: var(--font-heading); font-size: 24px; line-height: 1.3; margin: 0; }
.kp-page-title__query { color: var(--accent); }
.kp-page-desc { color: var(--text-soft); font-size: 15px; margin-top: 6px; }
.kp-page-desc p { margin-bottom: 0; }

.kp-home .kp-page-header { margin-bottom: var(--gap); }

.kp-posts { display: grid; gap: var(--gap); margin-bottom: var(--gap); }
.kp-posts--grid { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.kp-posts--list { grid-template-columns: 1fr; }
.kp-posts .kp-card { height: 100%; }
.kp-posts--grid .kp-card { display: flex; flex-direction: column; }
.kp-posts--grid .kp-card__body { flex: 1; display: flex; flex-direction: column; }
.kp-posts--grid .kp-card__excerpt { flex: 1; -webkit-line-clamp: 2; }

.kp-empty {
  text-align: center; background: var(--bg-card); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 46px 24px;
}
.kp-empty h2 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 8px; }
.kp-empty p { color: var(--text-soft); margin-bottom: 20px; font-size: 15px; }
.kp-empty .search-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.kp-empty .search-field {
  flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg); color: var(--text);
}
.kp-empty .search-submit {
  padding: 10px 18px; background: var(--accent); color: #fff;
  border-radius: var(--radius); font-weight: 600;
}

/* ============================================================
   45. Responsive
   ============================================================ */

/* ----- â‰¤ 1240px: padatkan container ------------------------ */
@media (max-width: 1240px) {
  .kp-container { padding-inline: 18px; }
  .kp-layout { gap: 26px; }
}

/* ----- â‰¤ 1120px: sidebar menyempit ------------------------- */
@media (max-width: 1120px) {
  :root { --sidebar-w: 280px; }
  .kp-posts--grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ----- â‰¤ 1024px: satu kolom, sidebar ke bawah -------------- */
@media (max-width: 1024px) {
  .kp-layout, .kp-layout--sidebar-left { grid-template-columns: minmax(0, 1fr); }
  .kp-layout--sidebar-left .kp-layout__main, .kp-layout--sidebar-left .kp-layout__sidebar { order: 0; }
  .kp-sidebar, .kp-layout__sidebar, .kp-sidebar.is-sticky, .kp-layout__sidebar.is-sticky { position: static; }
  .kp-sidebar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap); margin-top: var(--gap);
  }
  .kp-hero { grid-template-columns: 1fr; }
  .kp-hero__side { flex-direction: row; }
  .kp-hero__side .kp-card { min-width: 0; }
  .kp-footer__widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kp-subnav { display: none; }
}

/* ----- â‰¤ 900px: burger aktif, menu masuk drawer ------------ */
@media (max-width: 900px) {
  .kp-burger { display: flex; }
  .kp-nav, #kp-primary-nav { display: none; }
  .kp-navbar { justify-content: space-between; }
  .kp-navbar__actions { margin-left: auto; }
  .kp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kp-masthead__inner { justify-content: center; text-align: center; }
  .kp-masthead__aside { width: 100%; }
  .kp-masthead__aside .kp-widget, .kp-masthead__aside .kp-ad { margin-inline: auto; }
  .kp-single__footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .kp-card--list .kp-card__thumb { width: 190px; }
  .kp-entry-content { font-size: 16px; }
}

/* ----- â‰¤ 720px: topbar & header ringkas -------------------- */
@media (max-width: 720px) {
  :root { --gap: 16px; --nav-h: 46px; }
  .kp-topbar__text, .kp-topbar__menu { display: none; }
  .kp-topbar__inner { justify-content: space-between; }
  .kp-brand__name { font-size: 26px; }
  .kp-masthead { padding: 14px 0; }
  .kp-footer__widgets { grid-template-columns: 1fr; gap: 26px; }
  .kp-footer__widgets-wrap { padding: 30px 0 6px; }
  .kp-footer__bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
  .kp-hero__title, .kp-card__title--xl { font-size: 21px; }
  .kp-hero__media { min-height: 250px; }
  .kp-hero__lead { min-height: 250px; }
  .kp-hero__side { flex-direction: column; }
  .kp-hero__side .kp-card { min-height: 150px; }
  .kp-single__title { font-size: 24px; }
  .kp-single__meta { gap: 10px; font-size: 12px; }
  .kp-author__avatar img { width: 54px; height: 54px; }
  .kp-related__grid, .kp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kp-pagination { gap: 4px; }
  .kp-comments .children { margin-left: 22px; }
  .kp-float--left, .kp-float--right { display: none; }
  .kp-float--bottom { border-radius: 0; }
  .kp-404, .kp-empty { padding: 34px 18px; }
  .kp-search-overlay__head { flex-direction: column; align-items: stretch; gap: 10px; }
}

/* ----- â‰¤ 560px: kartu jadi tumpukan ------------------------ */
@media (max-width: 560px) {
  .kp-container { padding-inline: 14px; }
  .kp-grid, .kp-related__grid, .kp-posts--grid { grid-template-columns: 1fr; }
  .kp-card--list { flex-direction: column; }
  .kp-card--list .kp-card__thumb { width: 100%; aspect-ratio: 16/9; align-self: auto; }
  .kp-card--list .kp-card__body { padding: 14px 16px; }
  .kp-numbered__item { gap: 10px; }
  .kp-numbered__rank { font-size: 18px; }
  .kp-columns { grid-template-columns: 1fr; gap: 24px; }
  .kp-entry-content { font-size: 15.5px; line-height: 1.75; }
  .kp-entry-content h2 { font-size: 20px; }
  .kp-entry-content h3 { font-size: 17px; }
  .kp-entry-content blockquote { padding: 14px 16px; font-size: 16px; }
  .kp-404 .search-form, .kp-empty .search-form { flex-direction: column; }
  .kp-page-header { padding: 15px 16px; }
  .kp-page-title { font-size: 20px; }
  .kp-totop { right: 12px; bottom: 12px; width: 40px; height: 40px; }
  .kp-carousel__controls { display: none; }
  .kp-share__list { gap: 6px; }
}

/* ----- â‰¤ 380px: ponsel kecil ------------------------------- */
@media (max-width: 380px) {
  .kp-brand__name { font-size: 22px; }
  .kp-breaking__label span { display: none; }
  .kp-iconbtn { width: 32px; height: 32px; }
}

/* ----- Preferensi sistem ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

@media print {
  .kp-topbar, .kp-navbar-wrap, .kp-subnav, .kp-drawer, .kp-scrim, .kp-search-overlay,
  .kp-sidebar, .kp-footer, .kp-totop, .kp-float, .kp-share, .kp-ad, .kp-progress,
  .kp-comments, .kp-related, .kp-breadcrumb { display: none !important; }
  .kp-layout { grid-template-columns: 1fr; }
  body { background: #fff; color: #000; }
}

/* @KP-END@ */
