/* =========================================================
   Keystone - Blog listing page
   Loads after css/style.css and css/service.css
   ========================================================= */

.bl-wrap { padding: 70px 0 90px; }
.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; align-items: start; max-width: 1180px; }

/* ---------- Post cards ---------- */
.bl-posts { display: grid; gap: 44px; }
.bl-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(11,58,92,.08); border: 1px solid #edf0f4; }
.bl-card.ktp-reveal { transition: opacity .7s var(--ktp-ease), transform .7s var(--ktp-ease), box-shadow .35s; }
.bl-card.ktp-reveal.is-in:hover { box-shadow: 0 18px 40px rgba(11,58,92,.16); transform: translateY(-4px); transition: transform .35s var(--ktp-ease), box-shadow .35s; }
.bl-card__media { display: block; position: relative; overflow: hidden; }
.bl-card__media img { width: 100%; aspect-ratio: 900 / 467; object-fit: cover; transition: transform .9s var(--ktp-ease); }
.bl-card:hover .bl-card__media img { transform: scale(1.06); }
.bl-cat { position: absolute; left: 18px; top: 18px; background: rgba(255,255,255,.95); color: var(--ktp-primary); font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 6px 12px; border-radius: 50px; }

.bl-card__body { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 28px 30px 30px; }
.bl-date {
  width: 66px; height: 70px; border-radius: 10px; background: var(--ktp-primary); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 14px; font-weight: 600; line-height: 1.1; margin-top: -58px; position: relative;
  box-shadow: 0 10px 22px rgba(0,71,187,.3); transition: transform .35s var(--ktp-ease);
}
.bl-date strong { font-size: 26px; }
.bl-card:hover .bl-date { transform: translateY(-4px); }
.bl-meta { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ktp-muted); }
.bl-title { font-size: clamp(20px, 2vw, 25px); letter-spacing: -.5px; line-height: 1.3; margin-bottom: 12px; }
.bl-title a { background: linear-gradient(var(--ktp-primary), var(--ktp-primary)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ktp-ease), color .3s; }
.bl-title a:hover { color: var(--ktp-primary); background-size: 100% 2px; }
.bl-excerpt { margin: 0 0 18px; font-size: 15px; line-height: 1.8; color: #6b7480; }
.bl-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ktp-primary); padding: 10px 18px; border: 1.5px solid var(--ktp-primary); border-radius: 50px; transition: background .3s, color .3s; }
.bl-more span { transition: transform .3s var(--ktp-ease); }
.bl-more:hover { background: var(--ktp-primary); color: #fff; }
.bl-more:hover span { transform: translateX(5px); }
.bl-card.is-hidden { display: none; }
.bl-empty { padding: 40px; text-align: center; background: var(--ktp-bg-light); border-radius: 12px; color: var(--ktp-muted); margin: 0; }
mark.bl-hl { background: #fff3a8; color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- Sidebar ---------- */
.bl-side { position: sticky; top: 100px; display: grid; gap: 22px; }
.bl-widget { background: #fff; border: 1px solid #edf0f4; border-radius: 14px; padding: 24px 24px 26px; box-shadow: 0 2px 12px rgba(11,58,92,.05); }
.bl-widget p { margin: 0; font-size: 14.5px; line-height: 1.75; color: #6b7480; }
.bl-widget__title { font-size: 18px; margin-bottom: 16px; position: relative; padding-bottom: 10px; color: var(--sv-navy); }
.bl-widget__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--ktp-primary); }
.bl-widget--search .bl-widget__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bl-search { position: relative; }
.bl-search input { width: 100%; padding: 14px 46px 14px 18px; border: 1.5px solid #e1e6ee; border-radius: 50px; font: 14.5px var(--ktp-font); background: var(--ktp-bg-light); outline: none; transition: border-color .25s, box-shadow .25s, background .25s; }
.bl-search input:focus { border-color: var(--ktp-primary); background: #fff; box-shadow: 0 0 0 4px rgba(0,71,187,.12); }
.bl-search svg { position: absolute; right: 16px; top: 50%; width: 20px; margin-top: -10px; fill: var(--ktp-muted); pointer-events: none; }

.bl-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bl-recent a { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.bl-recent img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; transition: transform .35s var(--ktp-ease); }
.bl-recent strong { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ktp-heading); transition: color .25s; }
.bl-recent time { font-size: 12px; color: var(--ktp-muted); text-transform: uppercase; letter-spacing: .5px; }
.bl-recent a:hover img { transform: scale(1.06); }
.bl-recent a:hover strong { color: var(--ktp-primary); }

.bl-cats { list-style: none; margin: 0; padding: 0; }
.bl-cats a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--ktp-bg-light); font-size: 14.5px; font-weight: 500; transition: background .25s, color .25s, padding .25s; }
.bl-cats span { background: #fff; color: var(--ktp-primary); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 50px; }
.bl-cats a:hover { background: var(--ktp-primary); color: #fff; padding-left: 20px; }

.bl-widget--cta { background: linear-gradient(135deg, var(--ktp-primary), var(--ktp-primary-dark)); border: 0; }
.bl-widget--cta .bl-widget__title { color: #fff; }
.bl-widget--cta .bl-widget__title::after { background: #fff; }
.bl-widget--cta p { color: rgba(255,255,255,.85); margin-bottom: 18px; }
.bl-widget--cta .ktp-btn { background: #fff; color: var(--ktp-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bl-layout { grid-template-columns: 1fr; gap: 40px; }
  .bl-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .bl-widget--search { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 640px) {
  .bl-wrap { padding: 44px 0 60px; }
  .bl-side { grid-template-columns: 1fr; }
  .bl-card__body { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px 24px; }
  .bl-date { flex-direction: row; gap: 6px; width: auto; height: auto; padding: 8px 14px; justify-self: start; margin-top: -42px; }
  .bl-date strong { font-size: 18px; }
}
