/*
Theme Name:  KienTruc Pro
Theme URI:   https://xaydungkientruc.vn
Author:      Xây Dựng Kiến Trúc
Description: Theme magazine kiến trúc – Be Vietnam Pro, hero slider 2 cột, tab sections, sidebar widgets. Trang chủ pixel-matched với thiết kế chuẩn.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
Text Domain: ktp
Tags:        blog, news, magazine, architecture, two-columns, right-sidebar, custom-menu, featured-images
*/

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  background: #F5F5F5;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: color .15s; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.ktp-skip { position: absolute; top: -40px; left: 8px; z-index: 9999;
  background: #C9A84C; color: #1C1C2E; padding: 8px 16px; border-radius: 4px;
  font-weight: 700; font-size: 13px; transition: top .2s; }
.ktp-skip:focus { top: 8px; }

/* ═══════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════ */
:root {
  --gold:    #C9A84C;
  --gold-h:  #B8952A;
  --dark:    #1C1C2E;
  --dark2:   #252538;
  --white:   #FFFFFF;
  --bg:      #F5F5F5;
  --bd:      #E2E2E2;
  --t1:      #222222;
  --t2:      #555555;
  --t3:      #888888;
  --orange:  #E07820;
  --max:     1200px;
  --r:       5px;
}

/* ═══════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════ */
.ktp-wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ═══════════════════════════════════════
   TOPBAR
═══════════════════════════════════════ */
.ktp-topbar { background: var(--dark); height: 35px; display: flex; align-items: center; }
.ktp-topbar-inner {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.ktp-topbar-left  { display: flex; align-items: center; gap: 20px; }
.ktp-topbar-date  { font-size: 12px; color: rgba(255,255,255,.62); letter-spacing: .02em; }
.ktp-topbar-links { display: flex; gap: 18px; }
.ktp-topbar-links a { font-size: 12px; color: rgba(255,255,255,.58); }
.ktp-topbar-links a:hover { color: var(--gold); }
.ktp-topbar-social { display: flex; gap: 9px; }
.ktp-topbar-social a {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.58);
}
.ktp-topbar-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.ktp-header {
  background: #fff; border-bottom: 1px solid var(--bd);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.ktp-header-inner { display: flex; align-items: center; height: 62px; gap: 28px; }

/* Logo */
.ktp-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.ktp-logo-icon {
  width: 40px; height: 40px; background: var(--gold); border-radius: 7px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ktp-logo-icon svg { width: 22px; height: 22px; fill: var(--dark); }
.ktp-logo-text { line-height: 1.1; }
.ktp-logo-name { font-size: 14.5px; font-weight: 800; color: var(--dark); letter-spacing: .01em; }
.ktp-logo-sub  { font-size: 10px; color: #999; letter-spacing: .06em; font-weight: 500; }

/* Nav */
.ktp-nav { flex: 1; }
.ktp-nav ul { display: flex; align-items: center; }
.ktp-nav ul li { position: relative; }
.ktp-nav > ul > li > a {
  display: flex; align-items: center; gap: 3px;
  font-size: 13.5px; font-weight: 600; color: var(--t1);
  padding: 0 13px; height: 62px;
  border-bottom: 2.5px solid transparent;
  letter-spacing: .01em;
}
.ktp-nav > ul > li > a:hover,
.ktp-nav > ul > li.current-menu-item > a,
.ktp-nav > ul > li.current-menu-ancestor > a { color: var(--orange); border-bottom-color: var(--orange); }
.ktp-nav .arr { font-size: 9px; color: #bbb; margin-left: 1px; }
/* dropdown */
.ktp-nav .sub-menu {
  position: absolute; top: 62px; left: 0;
  background: #fff; border: 1px solid var(--bd);
  border-top: 2px solid var(--orange);
  min-width: 192px; box-shadow: 0 4px 16px rgba(0,0,0,.1);
  opacity: 0; visibility: hidden; transform: translateY(-5px);
  transition: all .18s; z-index: 300;
}
.ktp-nav ul li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ktp-nav .sub-menu li a {
  display: block; padding: 10px 15px; font-size: 13px; font-weight: 500;
  border-bottom: 1px solid #f0f0f0; height: auto;
}
.ktp-nav .sub-menu li:last-child a { border-bottom: none; }
.ktp-nav .sub-menu li a:hover { background: #fafafa; color: var(--orange); padding-left: 19px; }

/* Search btn */
.ktp-search-btn {
  background: none; border: none; cursor: pointer; color: var(--t2);
  padding: 8px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.ktp-search-btn:hover { background: #f5f5f5; }
.ktp-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px; flex-shrink: 0;
}
.ktp-hamburger span { display: block; width: 22px; height: 2px; background: var(--t1); border-radius: 2px; }

/* ═══════════════════════════════════════
   SEARCH OVERLAY
═══════════════════════════════════════ */
.ktp-search-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(28,28,46,.9); z-index: 500;
  align-items: flex-start; padding-top: 16vh;
}
.ktp-search-overlay.open { display: flex; }
.ktp-search-box { width: 100%; max-width: 600px; margin: 0 auto; padding: 0 20px; }
.ktp-search-box form { display: flex; background: #fff; border-radius: var(--r); overflow: hidden; }
.ktp-search-box input[type=search] {
  flex: 1; border: none; padding: 16px 20px; font-size: 17px;
  outline: none; color: var(--t1); font-family: inherit;
}
.ktp-search-box button[type=submit] {
  background: var(--gold); border: none; padding: 0 24px;
  cursor: pointer; color: var(--dark); font-size: 18px;
}
.ktp-search-close {
  display: block; margin: 14px auto 0; background: none; border: none;
  color: rgba(255,255,255,.5); font-size: 13px; cursor: pointer;
  letter-spacing: .08em; text-transform: uppercase; font-family: inherit;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.ktp-hero { background: #fff; padding: 14px 0 0; }
.ktp-hero-inner {
  display: grid; grid-template-columns: 1fr 290px; gap: 14px; padding-bottom: 14px;
}

/* ── Slider ── */
.ktp-slider { position: relative; border-radius: var(--r); overflow: hidden; background: var(--dark); height: 310px; }
.ktp-slide { position: absolute; inset: 0; display: none; }
.ktp-slide.active { display: block; }
.ktp-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .73; }
.ktp-slide-ph  { position: absolute; inset: 0; width: 100%; height: 100%; }
.ktp-slide-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,10,28,.9) 42%, rgba(10,10,28,.08) 100%);
}
.ktp-slide-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 32px 36px; max-width: 68%; z-index: 2;
}
.ktp-slide-cat {
  display: inline-block; background: var(--gold); color: var(--dark);
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 2px; margin-bottom: 12px;
}
.ktp-slide-title {
  font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; color: #fff;
  line-height: 1.24; letter-spacing: -.01em; margin-bottom: 10px;
}
.ktp-slide-title a { color: inherit; }
.ktp-slide-desc {
  font-size: 12.5px; color: rgba(255,255,255,.7);
  line-height: 1.6; margin-bottom: 18px; max-width: 380px;
}
.ktp-slide-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid rgba(255,255,255,.55); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 3px; background: none; cursor: pointer;
  font-family: inherit; transition: all .18s;
}
.ktp-slide-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
/* dots */
.ktp-dots { position: absolute; bottom: 14px; left: 32px; display: flex; gap: 6px; z-index: 3; }
.ktp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0;
  transition: all .18s;
}
.ktp-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }
/* arrows */
.ktp-sl-prev, .ktp-sl-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(255,255,255,.14); border: none; color: #fff;
  width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 17px; transition: background .15s;
}
.ktp-sl-prev { left: 10px; } .ktp-sl-next { right: 10px; }
.ktp-sl-prev:hover, .ktp-sl-next:hover { background: var(--gold); color: var(--dark); }

/* ── Hero sidebar numbered list ── */
.ktp-hero-list { display: flex; flex-direction: column; }
.ktp-hero-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 0; border-bottom: 1px solid var(--bd);
  text-decoration: none; transition: opacity .15s;
}
.ktp-hero-item:hover { opacity: .72; }
.ktp-hero-item:first-child { padding-top: 0; }
.ktp-hero-item:last-child  { border-bottom: none; padding-bottom: 0; }
.ktp-hero-num  { font-size: 22px; font-weight: 800; color: #D5D5D5; flex-shrink: 0; line-height: 1; width: 26px; margin-top: 2px; }
.ktp-hero-thumb { width: 78px; height: 58px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #e0e0e0; }
.ktp-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ktp-hero-ttl  { font-size: 12.5px; font-weight: 600; color: var(--t1); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ═══════════════════════════════════════
   CATEGORY STRIP
═══════════════════════════════════════ */
.ktp-cat-strip { background: #fff; border-top: 1px solid var(--bd); border-bottom: 2px solid var(--bd); }
.ktp-cat-strip-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.ktp-cat-strip-inner::-webkit-scrollbar { display: none; }
.ktp-cat-chip {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 0; min-width: 165px; flex-shrink: 0;
  border-right: 1px solid var(--bd); text-decoration: none; color: var(--t2);
  transition: background .15s;
}
.ktp-cat-chip:hover, .ktp-cat-chip.active { background: #FDF8EE; }
.ktp-cat-chip:last-child { border-right: none; }
.ktp-cat-chip-icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: #888; }
.ktp-cat-chip-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ktp-cat-chip-name { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--t1); text-align: center; }
.ktp-cat-chip-sub  { font-size: 10px; color: var(--t3); text-align: center; line-height: 1.3; }

/* ═══════════════════════════════════════
   MAIN 2-COLUMN LAYOUT
═══════════════════════════════════════ */
.ktp-content-wrap {
  display: grid; grid-template-columns: 1fr 300px; gap: 22px;
  padding-top: 22px; padding-bottom: 52px;
}

/* ═══════════════════════════════════════
   SECTION HEADING
═══════════════════════════════════════ */
.ktp-sh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ktp-sh-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--t1);
}
.ktp-sh-title::before { content: ''; width: 3px; height: 17px; background: var(--gold); border-radius: 2px; flex-shrink: 0; }
.ktp-sh-link { font-size: 12px; color: var(--orange); font-weight: 600; }
.ktp-sh-link:hover { color: var(--gold-h); }

/* ═══════════════════════════════════════
   SECTION: BÀI VIẾT MỚI NHẤT
═══════════════════════════════════════ */
.ktp-latest-box { background: #fff; border: 1px solid var(--bd); border-radius: var(--r); padding: 18px; margin-bottom: 20px; }
.ktp-latest-grid { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }

/* Featured overlay card */
.ktp-card-feat {
  position: relative; border-radius: var(--r); overflow: hidden;
  display: block; min-height: 240px; background: var(--dark);
}
.ktp-card-feat-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .72; transition: transform .35s;
}
.ktp-card-feat:hover .ktp-card-feat-img { transform: scale(1.04); }
.ktp-card-feat-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,28,.93) 0%, rgba(10,10,28,.22) 62%, transparent 100%); }
.ktp-card-feat-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; z-index: 2; }
.ktp-card-feat-cat  { display: inline-block; background: var(--gold); color: var(--dark); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; margin-bottom: 7px; }
.ktp-card-feat-ttl  { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ktp-card-feat-ttl a { color: inherit; }
.ktp-card-feat-meta { font-size: 10.5px; color: rgba(255,255,255,.6); }

/* Horizontal card */
.ktp-card-h {
  display: flex; gap: 11px; padding: 11px 0;
  border-bottom: 1px solid var(--bd); text-decoration: none; transition: opacity .15s;
}
.ktp-card-h:hover { opacity: .74; }
.ktp-card-h:last-child { border-bottom: none; padding-bottom: 0; }
.ktp-card-h:first-child { padding-top: 0; }
.ktp-card-h-thumb { width: 90px; height: 66px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #e0e0e0; }
.ktp-card-h-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ktp-card-h-cat  { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; display: block; }
.ktp-card-h-ttl  { font-size: 13px; font-weight: 600; color: var(--t1); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.ktp-card-h:hover .ktp-card-h-ttl { color: var(--orange); }
.ktp-card-h-meta { font-size: 11px; color: var(--t3); }

/* ═══════════════════════════════════════
   SECTION: KHÁM PHÁ THEO CHỦ ĐỀ
═══════════════════════════════════════ */
.ktp-explore-sec { margin-bottom: 20px; }
.ktp-explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ktp-explore-card {
  position: relative; border-radius: var(--r); overflow: hidden;
  display: block; aspect-ratio: 4/3; background: var(--dark);
}
.ktp-explore-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; transition: transform .4s, opacity .3s; }
.ktp-explore-card:hover img { transform: scale(1.06); opacity: .52; }
.ktp-explore-grad  { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,28,.88) 0%, transparent 60%); }
.ktp-explore-body  { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; z-index: 2; }
.ktp-explore-title { font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 3px; }
.ktp-explore-sub   { font-size: 11px; color: rgba(255,255,255,.6); }
.ktp-explore-plus  {
  position: absolute; bottom: 12px; right: 12px; width: 28px; height: 28px;
  background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--dark); z-index: 2;
  transition: transform .18s;
}
.ktp-explore-card:hover .ktp-explore-plus { transform: scale(1.14); }

/* ═══════════════════════════════════════
   SECTION: BÀI VIẾT NỔI BẬT (Tabs)
═══════════════════════════════════════ */
.ktp-featured-box { background: #fff; border: 1px solid var(--bd); border-radius: var(--r); padding: 18px; margin-bottom: 20px; }
.ktp-featured-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--bd); }
.ktp-tab-row { display: flex; gap: 4px; align-items: center; }
.ktp-tab {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 3px; border: 1px solid var(--bd);
  background: none; color: var(--t2); cursor: pointer; font-family: inherit; transition: all .15s;
}
.ktp-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.ktp-tab:hover:not(.active) { background: #fafafa; color: var(--t1); }
.ktp-tab-panel { display: none; padding-top: 14px; }
.ktp-tab-panel.active { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* Vertical card */
.ktp-card-v { display: block; text-decoration: none; transition: opacity .15s; }
.ktp-card-v:hover { opacity: .8; }
.ktp-card-v-thumb { aspect-ratio: 3/2; border-radius: 4px; overflow: hidden; background: #e0e0e0; margin-bottom: 10px; }
.ktp-card-v-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ktp-card-v:hover .ktp-card-v-thumb img { transform: scale(1.05); }
.ktp-card-v-cat  { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 5px; display: block; }
.ktp-card-v-ttl  { font-size: 13px; font-weight: 700; color: var(--t1); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.ktp-card-v:hover .ktp-card-v-ttl { color: var(--orange); }
.ktp-card-v-exc  { font-size: 11.5px; color: var(--t2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.ktp-card-v-meta { font-size: 10.5px; color: var(--t3); }

/* ═══════════════════════════════════════
   GUIDE BANNER
═══════════════════════════════════════ */
.ktp-guide { background: var(--dark2); border-radius: var(--r); padding: 26px 28px 24px; margin-bottom: 20px; position: relative; overflow: hidden; }
.ktp-guide-kicker { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.ktp-guide-title  { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.01em; line-height: 1.22; margin-bottom: 8px; }
.ktp-guide-desc   { font-size: 12.5px; color: rgba(255,255,255,.48); line-height: 1.6; margin-bottom: 18px; max-width: 520px; }
.ktp-guide-steps  { display: flex; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.ktp-guide-step   { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.ktp-guide-step-n {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,.4); background: rgba(201,168,76,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--gold);
}
.ktp-guide-step-i { font-size: 20px; }
.ktp-guide-step-l { font-size: 9.5px; color: rgba(255,255,255,.44); max-width: 68px; line-height: 1.35; }
.ktp-guide-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid rgba(255,255,255,.38); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 3px; background: none; cursor: pointer;
  font-family: inherit; transition: all .18s;
}
.ktp-guide-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ═══════════════════════════════════════
   VIDEO SECTION
═══════════════════════════════════════ */
.ktp-video-sec  { margin-bottom: 20px; }
.ktp-video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ktp-video-card { display: block; text-decoration: none; }
.ktp-video-thumb {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r);
  overflow: hidden; background: var(--dark); margin-bottom: 8px;
}
.ktp-video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.ktp-video-card:hover .ktp-video-thumb img { opacity: .68; }
.ktp-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; background: rgba(255,255,255,.88); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); font-size: 15px; padding-left: 3px;
  transition: transform .18s, background .18s; z-index: 2;
}
.ktp-video-card:hover .ktp-video-play { transform: translate(-50%,-50%) scale(1.1); background: var(--gold); }
.ktp-video-dur {
  position: absolute; bottom: 7px; right: 7px;
  background: rgba(0,0,0,.72); color: #fff; font-size: 10.5px; font-weight: 600;
  padding: 2px 6px; border-radius: 3px; z-index: 2;
}
.ktp-video-ttl { font-size: 12.5px; font-weight: 600; color: var(--t1); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ktp-video-card:hover .ktp-video-ttl { color: var(--orange); }

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.ktp-sidebar { display: flex; flex-direction: column; gap: 18px; }
.ktp-widget  { background: #fff; border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; }
.ktp-widget-head {
  display: flex; align-items: center; gap: 7px; padding: 13px 15px;
  border-bottom: 1px solid var(--bd);
  font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--t1);
}
.ktp-widget-head::before { content: ''; width: 3px; height: 14px; background: var(--gold); border-radius: 2px; flex-shrink: 0; }
.ktp-widget-body { padding: 12px 15px; }

/* Topic list */
.ktp-topics { display: flex; flex-direction: column; }
.ktp-topic {
  display: flex; align-items: center; gap: 9px; padding: 8px 0;
  border-bottom: 1px solid var(--bd); text-decoration: none;
  color: var(--t2); font-size: 12.5px; transition: color .15s;
}
.ktp-topic:last-child { border-bottom: none; padding-bottom: 0; }
.ktp-topic:hover { color: var(--orange); }
.ktp-topic-icon { width: 18px; height: 18px; color: var(--t3); flex-shrink: 0; }
.ktp-topic-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ktp-topic-name  { flex: 1; font-weight: 500; }
.ktp-topic-count { font-size: 11px; font-weight: 600; color: var(--t3); background: #f5f5f5; padding: 2px 7px; border-radius: 10px; }
.ktp-btn-all {
  display: block; text-align: center; margin-top: 12px; padding: 9px;
  background: var(--gold); color: var(--dark); font-size: 11.5px;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  border-radius: 4px; transition: background .15s;
}
.ktp-btn-all:hover { background: var(--gold-h); }

/* Newsletter widget */
.ktp-nl-wrap { padding: 14px 15px; }
.ktp-nl-wrap p { font-size: 12px; color: var(--t2); line-height: 1.6; margin-bottom: 12px; }
.ktp-nl-input {
  width: 100%; border: 1px solid var(--bd); border-radius: 4px;
  padding: 9px 13px; font-size: 12.5px; outline: none;
  margin-bottom: 9px; font-family: inherit; transition: border-color .15s;
}
.ktp-nl-input:focus { border-color: var(--gold); }
.ktp-nl-btn {
  width: 100%; background: var(--gold); color: var(--dark); border: none;
  border-radius: 4px; padding: 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; cursor: pointer;
  font-family: inherit; margin-bottom: 8px; transition: background .15s;
}
.ktp-nl-btn:hover { background: var(--gold-h); }
.ktp-nl-note { font-size: 10.5px; color: var(--t3); text-align: center; display: flex; align-items: center; justify-content: center; gap: 4px; }

/* Popular posts */
.ktp-popular { display: flex; flex-direction: column; }
.ktp-pop-item {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 0;
  border-bottom: 1px solid var(--bd); text-decoration: none; transition: opacity .15s;
}
.ktp-pop-item:hover { opacity: .74; }
.ktp-pop-item:last-child { border-bottom: none; padding-bottom: 0; }
.ktp-pop-rank {
  width: 22px; height: 22px; border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 800; margin-top: 1px;
}
.ktp-pop-item:nth-child(1) .ktp-pop-rank { background: var(--gold); color: var(--dark); }
.ktp-pop-item:nth-child(2) .ktp-pop-rank { background: #C0C0C0; color: #333; }
.ktp-pop-item:nth-child(3) .ktp-pop-rank { background: #CD7F32; color: #fff; }
.ktp-pop-item:nth-child(n+4) .ktp-pop-rank { background: #f0f0f0; color: var(--t3); }
.ktp-pop-thumb { width: 62px; height: 48px; flex-shrink: 0; border-radius: 3px; overflow: hidden; background: #e0e0e0; }
.ktp-pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ktp-pop-ttl   { font-size: 11.5px; font-weight: 600; color: var(--t1); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 3px; }
.ktp-pop-views { font-size: 10.5px; color: var(--t3); }

/* ═══════════════════════════════════════
   NEWSLETTER BAR (full-width)
═══════════════════════════════════════ */
.ktp-nl-bar { background: #252538; padding: 22px 0; }
.ktp-nl-bar-inner { display: flex; align-items: center; gap: 24px; }
.ktp-nl-bar-icon  { font-size: 30px; flex-shrink: 0; }
.ktp-nl-bar-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ktp-nl-bar-sub   { font-size: 12px; color: rgba(255,255,255,.5); }
.ktp-nl-bar-form  { display: flex; gap: 8px; flex: 1; margin-left: auto; max-width: 450px; }
.ktp-nl-bar-input {
  flex: 1; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18); border-radius: 4px;
  padding: 10px 15px; font-size: 13px; color: #fff; outline: none;
  font-family: inherit; transition: border-color .15s;
}
.ktp-nl-bar-input::placeholder { color: rgba(255,255,255,.35); }
.ktp-nl-bar-input:focus { border-color: var(--gold); }
.ktp-nl-bar-btn {
  background: var(--gold); color: var(--dark); border: none; border-radius: 4px;
  padding: 10px 18px; font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; cursor: pointer; white-space: nowrap;
  font-family: inherit; transition: background .15s;
}
.ktp-nl-bar-btn:hover { background: var(--gold-h); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.ktp-footer { background: #1C1C2E; color: rgba(255,255,255,.55); }
.ktp-footer-main {
  display: grid; grid-template-columns: 240px repeat(4, 1fr); gap: 32px;
  padding: 36px 16px 28px; max-width: var(--max); margin: 0 auto;
}
.ktp-footer-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; text-decoration: none; }
.ktp-footer-logo-icon { width: 36px; height: 36px; background: var(--gold); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ktp-footer-logo-icon svg { width: 20px; height: 20px; fill: var(--dark); }
.ktp-footer-logo-name { font-size: 13.5px; font-weight: 800; color: #fff; letter-spacing: .01em; line-height: 1.1; }
.ktp-footer-logo-sub  { font-size: 9px; color: var(--gold); letter-spacing: .08em; font-weight: 500; }
.ktp-footer-desc  { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.65; margin-bottom: 15px; }
.ktp-footer-social { display: flex; gap: 8px; }
.ktp-footer-social a {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5);
  text-decoration: none; transition: all .15s;
}
.ktp-footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.ktp-footer-col-title { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.82); margin-bottom: 13px; }
.ktp-footer-col ul   { display: flex; flex-direction: column; gap: 8px; }
.ktp-footer-col a    { font-size: 12px; color: rgba(255,255,255,.44); transition: color .15s; }
.ktp-footer-col a:hover { color: var(--gold); }
.ktp-footer-contact   { display: flex; flex-direction: column; gap: 9px; }
.ktp-footer-crow      { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; color: rgba(255,255,255,.44); }
.ktp-footer-crow a    { color: rgba(255,255,255,.44); transition: color .15s; }
.ktp-footer-crow a:hover { color: var(--gold); }
.ktp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 13px 16px; max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: rgba(255,255,255,.28);
}
.ktp-footer-bottom a { color: rgba(255,255,255,.34); transition: color .15s; }
.ktp-footer-bottom a:hover { color: var(--gold); }

/* ═══════════════════════════════════════
   ARCHIVE / CATEGORY HEADER
═══════════════════════════════════════ */
.ktp-arch-header { background: var(--dark); padding: 28px 0; }
.ktp-arch-kicker { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ktp-arch-title  { font-size: clamp(20px, 3vw, 32px); font-weight: 800; color: #fff; letter-spacing: -.01em; }
.ktp-arch-meta   { font-size: 13px; color: rgba(255,255,255,.44); margin-top: 6px; }

/* ═══════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════ */
.ktp-art-header  { padding: 24px 0 18px; border-bottom: 1px solid var(--bd); margin-bottom: 20px; }
.ktp-art-kicker  { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.ktp-art-title   { font-size: clamp(20px,3.2vw,30px); font-weight: 800; color: var(--t1); line-height: 1.22; letter-spacing: -.02em; margin-bottom: 12px; }
.ktp-art-meta    { font-size: 12px; color: var(--t3); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ktp-art-meta a  { color: var(--orange); font-weight: 600; }
.ktp-art-cover   { margin-bottom: 20px; border-radius: var(--r); overflow: hidden; }
.ktp-art-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.ktp-specs       { background: #f5f5f5; border: 1px solid var(--bd); border-top: 3px solid var(--gold); border-radius: var(--r); padding: 18px 22px; margin: 24px 0; }
.ktp-specs-title { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A07830; margin-bottom: 12px; }
.ktp-specs-grid  { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.ktp-specs-label { font-size: 11px; color: var(--t3); margin-bottom: 2px; }
.ktp-specs-val   { font-size: 14px; font-weight: 700; color: var(--t1); }

/* Entry content */
.ktp-entry-content { font-size: 15.5px; line-height: 1.78; color: var(--t2); }
.ktp-entry-content h2 { font-size: 21px; font-weight: 800; color: var(--t1); margin: 32px 0 12px; padding-top: 32px; border-top: 1px solid var(--bd); }
.ktp-entry-content h3 { font-size: 17px; font-weight: 700; color: var(--t1); margin: 22px 0 10px; }
.ktp-entry-content p  { margin-bottom: 16px; }
.ktp-entry-content a  { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.ktp-entry-content blockquote { border-left: 3px solid var(--gold); padding: 12px 20px; background: rgba(201,168,76,.06); margin: 20px 0; font-style: italic; font-size: 16px; color: var(--t1); border-radius: 0 4px 4px 0; }
.ktp-entry-content ul, .ktp-entry-content ol { margin: 0 0 16px 22px; }
.ktp-entry-content ul { list-style: disc; }
.ktp-entry-content ol { list-style: decimal; }
.ktp-entry-content li { margin-bottom: 5px; }
.ktp-entry-content img { border-radius: var(--r); margin: 18px 0; width: 100%; }
.ktp-entry-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.ktp-entry-content th  { background: #f5f5f5; font-weight: 700; padding: 9px 13px; border: 1px solid var(--bd); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.ktp-entry-content td  { padding: 9px 13px; border: 1px solid var(--bd); }

/* Share bar */
.ktp-share      { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); margin: 28px 0; }
.ktp-share-lbl  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); }
.ktp-share-btn  { padding: 7px 13px; border: 1px solid var(--bd); border-radius: 3px; font-size: 12px; font-weight: 600; color: var(--t2); cursor: pointer; background: none; display: flex; align-items: center; gap: 5px; font-family: inherit; transition: all .15s; }
.ktp-share-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* Author box */
.ktp-author-box { background: #f5f5f5; border: 1px solid var(--bd); border-radius: var(--r); padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; margin: 24px 0; }
.ktp-author-box img { border-radius: 50%; flex-shrink: 0; }
.ktp-author-lbl  { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); margin-bottom: 3px; }
.ktp-author-name { font-weight: 700; font-size: 14px; color: var(--t1); margin-bottom: 5px; }
.ktp-author-bio  { font-size: 13px; color: var(--t2); line-height: 1.6; }

/* Post nav */
.ktp-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--bd); padding-top: 18px; margin-top: 18px; }
.ktp-post-nav a { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.ktp-post-nav-lbl  { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #bbb; }
.ktp-post-nav-ttl  { font-weight: 700; font-size: 13px; color: var(--t1); line-height: 1.4; }
.ktp-post-nav-next { text-align: right; }

/* Pagination */
.ktp-pagination { display: flex; justify-content: center; gap: 4px; padding: 24px 0; }
.ktp-pagination .page-numbers { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--bd); border-radius: 4px; font-size: 13px; color: var(--t2); transition: all .15s; }
.ktp-pagination .page-numbers:hover { border-color: var(--gold); color: var(--orange); }
.ktp-pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: var(--dark); font-weight: 700; }

/* Comments */
.ktp-comments-title { font-size: 17px; font-weight: 800; color: var(--t1); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--bd); }
.ktp-comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bd); }
.ktp-comment:last-child { border-bottom: none; }
.ktp-comment-meta { font-size: 12px; color: var(--t3); margin-bottom: 5px; }
.ktp-comment-author { font-weight: 700; color: var(--t2); }
.ktp-comment-body { font-size: 13.5px; color: var(--t2); line-height: 1.6; }
.comment-form label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); margin-bottom: 5px; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form textarea {
  width: 100%; border: 1px solid var(--bd); border-radius: 4px;
  padding: 9px 13px; font-size: 13.5px; font-family: inherit;
  outline: none; margin-bottom: 14px; transition: border-color .15s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--gold); }
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form .submit, .ktp-btn-primary {
  background: var(--gold); color: var(--dark); border: none; border-radius: 4px;
  padding: 11px 24px; font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; cursor: pointer; font-family: inherit; transition: background .15s;
}
.comment-form .submit:hover, .ktp-btn-primary:hover { background: var(--gold-h); }

/* 404 */
.ktp-404 { text-align: center; padding: 80px 20px; }
.ktp-404-code  { font-size: 72px; font-weight: 800; color: #ddd; line-height: 1; }
.ktp-404-title { font-size: 26px; font-weight: 800; color: var(--t1); margin-bottom: 10px; }
.ktp-404-desc  { font-size: 14px; color: var(--t2); max-width: 380px; margin: 0 auto 24px; line-height: 1.6; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 960px) {
  .ktp-hero-inner  { grid-template-columns: 1fr; }
  .ktp-hero-list   { flex-direction: row; flex-wrap: wrap; }
  .ktp-hero-item   { width: 50%; border-right: 1px solid var(--bd); }
  .ktp-content-wrap { grid-template-columns: 1fr; }
  .ktp-sidebar     { display: none; }
  .ktp-explore-grid, .ktp-video-grid { grid-template-columns: repeat(2,1fr); }
  .ktp-tab-panel.active { grid-template-columns: repeat(2,1fr); }
  .ktp-footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .ktp-nl-bar-inner { flex-direction: column; gap: 14px; }
  .ktp-nl-bar-form  { max-width: 100%; }
}
@media (max-width: 680px) {
  .ktp-wrap        { padding: 0 14px; }
  .ktp-header-inner { padding: 0 14px; }
  .ktp-nav         { display: none; }
  .ktp-hamburger   { display: flex; }
  .ktp-topbar-links { display: none; }
  .ktp-latest-grid { grid-template-columns: 1fr; }
  .ktp-explore-grid, .ktp-video-grid { grid-template-columns: 1fr 1fr; }
  .ktp-tab-panel.active { grid-template-columns: 1fr; }
  .ktp-footer-main { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ktp-guide-steps { gap: 14px; }
}
