/* =========================================================
   POBO — BLOG (NEW DESIGN)  ·  template: blog-new.php
   Loads after pobo-home-final.css (shared tokens, header, footer, buttons).
   Design reference: 1920px artboard, 1622px content.
========================================================= */

/* ---------- 1 · Intro ---------- */
.pbb-intro{padding:clamp(56px,5.4vw,104px) 0 clamp(52px,4.6vw,88px);border-bottom:1px solid var(--line)}
.pbb-intro__kicker{font-size:clamp(15px,1vw,19px);font-weight:400;letter-spacing:.005em;line-height:1.3;text-transform:uppercase;color:#111}
.pbb-intro__title{margin-top:clamp(10px,.8vw,14px)!important;font-size:clamp(36px,3.95vw,76px);font-weight:600;line-height:1.12;letter-spacing:-.02em;color:var(--ink);text-wrap:balance}
.pbb-intro__text{max-width:910px;margin-top:clamp(16px,1.5vw,28px)!important;font-size:clamp(15px,1vw,19px);line-height:1.34;color:#111}

/* ---------- 2 · All blogs ---------- */
.pbb-list{padding:clamp(52px,5.3vw,102px) 0 clamp(56px,4.2vw,81px);scroll-margin-top:clamp(40px,4vw,70px)}
.pbb-list__head{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.pbb-list__title{font-size:clamp(34px,3.75vw,72px)}
.pbb-list__status{margin-top:16px!important;font-size:clamp(15px,.95vw,18px);color:#555}

/* Search */
.pbb-search{position:relative;display:flex;align-items:center;width:min(304px,100%);height:50px;border:1px solid #dcdcdc;background:#fff;transition:border-color .25s var(--ease),box-shadow .25s var(--ease)}
.pbb-search:focus-within{border-color:#0b0b0b;box-shadow:0 0 0 3px rgba(10,60,255,.12)}
.pbb-search__ico{position:absolute;left:20px;top:50%;width:18px;height:18px;margin-top:-9px;color:#333;pointer-events:none}
.pbb-search__input{width:100%;height:100%;padding:0 40px 0 51px;border:0;background:none;outline:none;font-size:16px;color:#111;-webkit-appearance:none;appearance:none}
.pbb-search__input::placeholder{color:#6b6b6b;opacity:1;text-transform:uppercase;letter-spacing:.01em}
.pbb-search__input::-webkit-search-cancel-button{display:none}
.pbb a.pbb-search__clear{position:absolute;right:12px;top:50%;display:grid;place-items:center;width:24px;height:24px;margin-top:-12px;font-size:20px;line-height:1;color:#777}
.pbb-search__clear:hover{color:#000}

/* Post rows */
.pbb-posts{margin-top:clamp(28px,2.3vw,43px)!important}
.pbb-post{position:relative;display:grid;grid-template-columns:minmax(0,393fr) minmax(0,555fr) minmax(0,393fr) 50px;column-gap:clamp(24px,3.96vw,76px);align-items:center;padding:30px 0 29px;border-bottom:1px solid #e6e6e6}
.pbb-post__media{display:block;aspect-ratio:16 / 9;overflow:hidden;background:#eef2fb}
.pbb-post__media img{width:100%;height:100%;object-fit:cover;transition:transform 1s var(--ease)}
.pbb-post__title{max-width:530px;font-size:clamp(20px,1.56vw,30px);font-weight:500;line-height:1.42;letter-spacing:-.005em;color:#0b0b0b}
.pbb-post__title a{transition:color .3s var(--ease)}
.pbb-post__title a::after{content:"";position:absolute;inset:0}   /* whole row is clickable */
.pbb-post__excerpt{max-width:360px;font-size:clamp(15px,1vw,19px);line-height:1.34;color:#111}
.pbb a.pbb-post__go{position:relative;z-index:1;display:grid;place-items:center;width:50px;height:48px;background:linear-gradient(90deg,#050505 0%,#3c3c3c 100%);color:#fff;transition:background .3s var(--ease),transform .3s var(--ease)}
.pbb-post__go .pbf-arw{width:20px;height:11px}
.pbb-post__go:focus-visible,.pbb-post__title a:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@media (hover:hover) and (pointer:fine){
	.pbb-post:hover .pbb-post__title a{color:var(--blue)}
	.pbb-post:hover .pbb-post__media img{transform:scale(1.04)}
	.pbb-post:hover a.pbb-post__go{background:linear-gradient(90deg,#0a3cff 0%,#3d6bff 55%,#86b0ff 100%)}
	.pbb-post:hover .pbb-post__go .pbf-arw{transform:translateX(3px)}
}

/* Empty state */
.pbb-empty{padding:clamp(48px,5vw,96px) 0;border-bottom:1px solid #e6e6e6;text-align:center}
.pbb-empty__title{font-size:clamp(18px,1.25vw,24px);font-weight:500;color:#111}
.pbb-empty .pbf-btn{margin-top:24px}

/* Pagination */
.pbb-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:15px;margin-top:clamp(48px,4.3vw,82px)}
.pbb a.pbb-pager__btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:49px;height:50px;padding:0 14px;border:1px solid #dedede;background:#fff;font-size:clamp(16px,.95vw,18px);font-weight:500;line-height:1;color:#7a7a7a;transition:border-color .25s var(--ease),color .25s var(--ease),background .25s var(--ease)}
.pbb-pager__btn svg{width:16px;height:16px}
.pbb a.pbb-pager__btn--nav{padding:0 22px;color:#111}
.pbb a.pbb-pager__btn.is-active{background:var(--blue);border-color:var(--blue);color:#fff}
.pbb a.pbb-pager__btn.is-disabled{color:#8a8a8a;pointer-events:none}
.pbb a.pbb-pager__btn:not(.is-active):not(.is-disabled):hover{border-color:#111;color:#111}
.pbb-pager__btn:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.pbb-pager__gap{color:#8a8a8a}

/* ---------- Responsive ---------- */
@media (max-width:1199px){
	.pbb-post{grid-template-columns:minmax(0,300px) minmax(0,1fr) 50px;grid-template-areas:"media title go" "media excerpt go";column-gap:32px;row-gap:12px;align-items:center}
	.pbb-post__media{grid-area:media}
	.pbb-post__title{grid-area:title;align-self:end}
	.pbb-post__excerpt{grid-area:excerpt;align-self:start;max-width:560px}
	.pbb a.pbb-post__go{grid-area:go}
}
@media (max-width:767px){
	.pbb-list__head{align-items:flex-start;flex-direction:column}
	.pbb-search{width:100%}
	.pbb-post{grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"media media" "title go" "excerpt excerpt";row-gap:14px;column-gap:16px;padding:24px 0}
	.pbb-post__title{align-self:start}
	.pbb a.pbb-post__go{width:44px;height:42px;align-self:start}
	.pbb-pager{gap:8px}
	.pbb a.pbb-pager__btn--nav{padding:0 14px}
}
