/*▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ blog-list.html (/blog 목록) 스타일 ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
  시안: 케이피 홈페이지/Blog main (2026-10-28)
  [인기 글 TOP 5 | 대표 글 슬라이드] → [목록 | 카테고리·소개서 배너] → 전환 띠.
  흰 바탕에 선으로 나누는 평평한 서가. 주황은 선택 표시·카테고리 칩·현재 슬라이드 순위에만 쓴다.
  사이트 공통 스타일과 겹치지 않도록 모두 .kp-blog 아래에 둔다. */

.kp-blog {
  --kb-page: #ffffff;
  --kb-soft: #faf8f6;
  --kb-ink: #1e1e1e;
  --kb-sub: #6b6560;
  --kb-mute: #b5aea8;
  --kb-rule: #ebe6e1;
  --kb-brand: #dd5e1e;
  --kb-chip: #fdf0e8;
  --kb-black: #0e0207;
  --kb-header: 144px; /* 사이트 공통 헤더(공지 띠 + 메뉴, sticky) 높이 */

  background: var(--kb-page);
  color: var(--kb-ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  overflow-x: clip;
}

.kp-blog *, .kp-blog *::before, .kp-blog *::after { box-sizing: content-box; }
.kp-blog a { color: inherit; text-decoration: none; }
.kp-blog a, .kp-blog button, .kp-blog input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.kp-blog :focus-visible { outline: 3px solid var(--kb-brand); outline-offset: 3px; border-radius: 6px; }
.kp-blog img { display: block; max-width: 100%; }
.kp-blog h1, .kp-blog h2, .kp-blog h3, .kp-blog p { margin: 0; }

.kb-wrap { max-width: 1232px; margin: 0 auto; padding: 0 16px; }
.kb-feat > .kb-wrap { width: calc(100% - 32px); max-width: 1200px; padding: 0; }
.kb-wrap, .kb-lead, .kb-search input { box-sizing: border-box; }
.kb-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kb-chip { align-self: flex-start; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; background: var(--kb-chip); color: var(--kb-brand); font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; }
.kb-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 주요 글: 인기 글 TOP 5 | 대표 글 슬라이드 */
.kb-feat-in { display: grid; grid-template-columns: minmax(0, 1fr) 620px; align-items: start; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--kb-rule); }
.kb-top5 { min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.kb-top5-head { padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--kb-ink); }
.kb-top5 h2 { font-size: 20px; font-weight: 600; }
.kb-top5 ol { flex: 1 1 auto; display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.kb-top5 li { flex: 1 1 0; display: flex; align-items: center; border-bottom: 1px solid var(--kb-rule); }
.kb-top5 li:last-child { border-bottom: 0; }
.kb-top { width: 100%; display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; column-gap: 20px; padding: 12px 0; }
.kb-rank { align-self: center; font-weight: 500; line-height: 1.2; text-align: center; transition: color .3s; }
.kb-top-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kb-top-t { min-width: 0; font-size: 18px; font-weight: 600; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.kb-rank.on, .kb-top-t.on, .kb-top:hover .kb-top-t { color: var(--kb-brand); }

.kb-slide { position: relative; min-width: 0; }
.kb-slide-view { overflow: hidden; min-width: 0; }
/* 오른쪽에서 왼쪽으로 쌓아(row-reverse) 다음 카드가 왼쪽에서 밀려 나오게 한다 */
.kb-slide-track { display: flex; flex-direction: row-reverse; gap: 24px; }
.kb-lead { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.kb-lead-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--kb-soft); }
.kb-lead-copy { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.kb-lead-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kb-lead-meta .kb-chip { font-size: 14px; }
.kb-lead-meta time { font-size: 14px; font-variant-numeric: tabular-nums; }
.kb-lead-t { font-size: 22px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.kb-lead:hover .kb-lead-t { color: var(--kb-brand); }
.kb-lead-s { font-size: 15px; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-arrows { box-sizing: border-box; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 15px; pointer-events: none; }
.kb-arrows > span { pointer-events: auto; display: inline-flex; align-items: center; height: 32px; padding: 0 4px; border-radius: 999px; background: rgba(30, 30, 30, .2); }
.kb-arrow { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; transition: color .15s; }
.kb-arrow:hover { color: #fe8848; }

/* 목록 | 카테고리 */
.kb-body > .kb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 24px; }
.kb-list { min-width: 0; }
.kb-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--kb-ink); }
.kb-list-head h2 { flex: none; font-size: 20px; font-weight: 600; }
.kb-list-head h2:focus { outline: none; }
.kb-list-head p { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 300; color: var(--kb-sub); }
.kb-search { align-self: center; position: relative; flex: none; width: 280px; margin: 0; }
.kb-search svg { position: absolute; left: 15px; top: 13px; color: var(--kb-mute); pointer-events: none; }
.kb-search input {
  width: 100%; height: 44px; padding: 0 16px 0 44px; border: 1px solid var(--kb-rule); border-radius: 999px;
  font: 500 15px "Pretendard", "Apple SD Gothic Neo", sans-serif; color: var(--kb-sub); background: #fff; outline: none;
  -webkit-appearance: none; appearance: none;
}
.kb-search input::placeholder { color: var(--kb-mute); }
.kp-blog .kb-search input:focus,
.kp-blog .kb-search input:focus-visible { outline: 0; border-color: var(--kb-brand); border-radius: 999px; }
/* 입력 지우기(X): 돋보기와 같은 선 굵기·색, 올리면 브랜드색 */
.kb-search input::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-left: 8px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' stroke='%23b5aea8' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.kb-search input::-webkit-search-cancel-button:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' stroke='%23dd5e1e' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

.kb-rows { list-style: none; margin: 0; padding: 0; }
.kb-rows li { border-bottom: 1px solid var(--kb-rule); }
.kb-row { display: grid; grid-template-columns: minmax(0, 1fr) 208px; column-gap: 36px; align-items: start; padding: 28px 0; }
.kb-row-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kb-row h3 { font-size: 20px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; transition: color .15s; }
.kb-row:hover h3 { color: var(--kb-brand); }
.kb-row .kb-clamp { max-width: 46em; font-size: 14px; line-height: 1.6; font-weight: 300; }
.kb-row time { font-size: 13px; }
.kb-thumb { display: block; width: 208px; height: 117px; overflow: hidden; border-radius: 8px; background: var(--kb-soft); box-shadow: 0 2px 10px rgba(30, 30, 30, .10), 0 0 0 1px rgba(30, 30, 30, .04); }
.kb-thumb img { width: 100%; height: 100%; object-fit: cover; }

.kb-empty { padding: 64px 0; text-align: center; color: var(--kb-sub); }
.kb-empty b { color: var(--kb-ink); }
.kb-empty a { color: var(--kb-brand); text-decoration: underline; text-underline-offset: 3px; }

.kb-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 56px; }
.kb-pager a, .kb-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 8px; font-weight: 500; transition: color .15s; }
.kb-pager a:hover { color: var(--kb-brand); }
.kb-pager a[aria-current="page"] { font-weight: 700; color: var(--kb-brand); }
.kb-pager .disabled { opacity: .3; }

.kb-aside { position: sticky; top: var(--kb-header); display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.kb-catnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.kb-cat { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; height: 30px; padding: 10px 12px 10px 14px; border-radius: 8px; }
.kb-cat::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--kb-brand); opacity: 0; transition: opacity .15s; }
.kb-cat span { font-weight: 500; transition: color .15s; }
.kb-cat span:first-child { font-size: 16px; }
.kb-cat span:last-child { font-size: 14px; }
.kb-cat:hover::before, .kb-cat[aria-current="true"]::before { opacity: 1; }
.kb-cat:hover span, .kb-cat[aria-current="true"] span { font-weight: 600; color: var(--kb-brand); }
.kb-cat[aria-current="true"] { background: var(--kb-soft); }
.kb-offer { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--kb-black); }
.kb-offer img { width: 100%; height: 100%; object-fit: cover; }
.kb-offer-h { display: none; }
.kb-offer-h img { width: 100%; height: auto; }

/* 하단 전환 띠 */
.kb-cta .kb-wrap { padding-top: 72px; padding-bottom: 96px; }
.kb-cta-box { position: relative; overflow: hidden; border-radius: 14px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--kb-black); }
.kb-cta-box p { position: relative; max-width: 22em; font-size: 24px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; color: #fff; }
.kb-cta-btn { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 36px; border-radius: 12px; background: #fff; color: var(--kb-ink) !important; font-size: 17px; font-weight: 700; }

@media (max-width: 1099px) {
  .kb-feat-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; }
  .kb-body > .kb-wrap { grid-template-columns: minmax(0, 1fr) 200px; gap: 36px; }
}
@media (max-width: 859px) {
  /* TOP 5 위, 대표 글 슬라이드 아래로 쌓는다 */
  .kb-feat-in { display: flex; flex-direction: column; gap: 40px; padding: 24px 0 40px; }
  .kb-slide { width: 100%; }
  .kb-lead-img, .kb-thumb, .kb-offer, .kb-offer-h { border-radius: 12px; }

  /* 카테고리 → 가로로 미는 칩 줄, 세로 배너 대신 목록 아래 가로 배너 */
  .kb-body > .kb-wrap { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; }
  .kb-body > .kb-wrap > * { min-width: 0; max-width: 100%; }
  .kb-aside { display: contents; }
  .kb-catnav { order: 1; position: relative; width: 100%; overflow: hidden; }
  .kb-list { order: 2; width: 100%; }
  .kb-offer { display: none; }
  .kb-offer-h { display: block; order: 3; width: 100%; overflow: hidden; margin-top: 24px; }
  .kb-catnav ul { flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .kb-catnav ul::-webkit-scrollbar { display: none; }
  .kb-catnav li { flex: none; scroll-snap-align: start; }
  .kb-cat { box-sizing: border-box; display: inline-flex; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--kb-rule); border-radius: 999px; white-space: nowrap; background: #fff; }
  .kb-cat::before { display: none; }
  .kb-cat[aria-current="true"] { background: var(--kb-ink); border-color: var(--kb-ink); }
  .kb-cat[aria-current="true"] span { color: #fff; }

  .kb-list-head { flex-wrap: wrap; row-gap: 12px; }
  .kb-search { order: 3; width: 100%; }
  .kb-pager { margin-top: 24px; }

  .kb-cta .kb-wrap { padding-top: 0; padding-bottom: 20px; }
  .kb-cta-box { flex-direction: column; align-items: stretch; padding: 24px; gap: 16px; border-radius: 12px; }
  .kb-cta-box p { font-size: 20px; }
  .kb-cta-btn { box-sizing: border-box; align-self: flex-start; min-height: 35px; height: 35px; width: 155px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
}
@media (max-width: 767px) {
  .kb-lead-t { font-size: 19px; }
  .kb-top-t { font-size: 14px; }
  .kb-list-head p { flex-basis: 100%; }
  .kb-row { display: flex; flex-direction: column; gap: 14px 36px; padding: 24px 0; }
  .kb-row h3 { font-size: 17px; }
  .kb-thumb { order: -1; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .kb-pager { gap: 2px; margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .kp-blog * { transition: none !important; scroll-behavior: auto !important; } }
