/* ============================================================
   Blog — listing + article pages (uses tokens from site.css)
   ============================================================ */

/* ---------- Hero tweaks ---------- */
.page-hero--blog .page-hero__grid { grid-template-columns: 1fr; }
.page-hero--blog .page-hero__lede { max-width: 62ch; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.page-hero .post-meta { color: #B9CCE4; margin-top: 22px; }
.page-hero .post-meta svg { color: #6FB0F0; }

.post-tag { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-050); border: 1px solid var(--blue-100); padding: 5px 12px; border-radius: 999px; }
.page-hero .post-tag { background: rgba(111,176,240,.14); border-color: rgba(111,176,240,.35); color: #9CCBF6; margin-bottom: 18px; }

/* ---------- Filter chips ---------- */
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(32px, 4vw, 52px); }
.blog-filter button { font-family: var(--display); font-weight: 700; font-size: 14.5px; padding: 10px 20px; border-radius: 999px; background: #fff; color: var(--heading); border: 1.5px solid var(--line-2); transition: all .2s ease; }
.blog-filter button:hover { border-color: var(--blue); color: var(--blue); }
.blog-filter button.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(26,111,196,.7); }

/* ---------- Featured post ---------- */
.post-feature { display: grid; grid-template-columns: 1.1fr .9fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: clamp(32px, 4vw, 52px); transition: transform .25s ease, box-shadow .3s ease; }
.post-feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-feature__media { position: relative; min-height: 340px; }
.post-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-feature:hover .post-feature__media img { transform: scale(1.04); }
.post-feature__badge { position: absolute; left: 20px; top: 20px; background: var(--blue); color: #fff; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.post-feature__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.post-feature__body h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.post-feature__body h2 a:hover { color: var(--blue); }
.post-feature__body p { font-size: 16.5px; }

/* ---------- Post grid + cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 28px); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.post-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy-700); }
.post-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__media .post-tag { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,.94); }
.post-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.post-card__body h3 { font-size: 20px; line-height: 1.25; }
.post-card__body h3 a:hover { color: var(--blue); }
.post-card__body p { font-size: 15px; line-height: 1.65; }
.post-card__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.post-card[hidden], .post-feature[hidden] { display: none; }
.blog-empty { text-align: center; padding: 48px 0; color: var(--muted); }

/* ---------- Pagination (static) ---------- */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: clamp(36px, 4vw, 56px); }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 15px; border: 1.5px solid var(--line-2); background: #fff; color: var(--heading); transition: all .2s ease; }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager .disabled { opacity: .45; }

/* ---------- Newsletter band ---------- */
.news-band { background: var(--navy); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; overflow: hidden; }
.news-band::before { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(26,111,196,.5), transparent 62%); }
.news-band > * { position: relative; }
.news-band h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.news-band p { color: #C6D4E4; margin-top: 12px; }
.news-form { display: flex; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px; }
.news-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 16px; padding: 0 18px; }
.news-form input::placeholder { color: #8CA6C4; }

/* ---------- Article layout ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/8.5; box-shadow: var(--shadow); margin-bottom: clamp(28px, 3.5vw, 44px); position: relative; background: var(--navy-700); }
.article-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.article-body { font-size: 18px; line-height: 1.8; color: var(--text); }
.article-body > p:first-child { font-size: 20px; color: var(--heading); line-height: 1.7; }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 42px 0 16px; }
.article-body ul { margin: 0 0 24px; display: grid; gap: 12px; }
.article-body ul li { position: relative; padding-left: 28px; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.article-body strong { color: var(--heading); }
.article-body blockquote { margin: 32px 0; padding: 24px 28px; background: var(--blue-050); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.5; color: var(--heading); }

.article-foot { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--text); transition: all .2s ease; }
.tag-list a:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.share { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--display); color: var(--heading); font-size: 14px; }
.share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-050); border: 1px solid var(--blue-100); color: var(--blue); transition: all .2s ease; }
.share a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.share svg { width: 17px; height: 17px; }

.author-box { display: flex; gap: 22px; align-items: center; margin-top: 36px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box .tst__avatar { width: 68px; height: 68px; font-size: 22px; flex: none; }
.author-box b { font-family: var(--display); color: var(--heading); font-size: 18px; display: block; }
.author-box span { font-size: 14px; color: var(--blue); font-weight: 700; display: block; margin-bottom: 6px; }
.author-box p { font-size: 15px; line-height: 1.6; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.post-nav a { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: all .25s ease; }
.post-nav a:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-nav small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.post-nav b { font-family: var(--display); color: var(--heading); font-size: 16px; line-height: 1.3; }
.post-nav .next { text-align: right; }

/* ---------- Sidebar ---------- */
.side { position: sticky; top: 110px; display: grid; gap: 24px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.side-box h4 { font-size: 18px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-search { display: flex; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.side-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 18px; font: inherit; font-size: 15px; color: var(--heading); }
.side-search:focus-within { border-color: var(--blue); box-shadow: var(--ring); }
.side-search button { border: 0; background: var(--blue); color: #fff; width: 48px; display: grid; place-items: center; }
.side-search svg { width: 18px; height: 18px; }
.side-cats li a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-weight: 600; color: var(--heading); transition: color .2s ease, padding .2s ease; }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats li a:hover { color: var(--blue); padding-left: 6px; }
.side-cats li a span { font-size: 12.5px; background: var(--blue-050); color: var(--blue); border-radius: 999px; padding: 2px 10px; }
.recent { display: grid; gap: 18px; }
.recent a { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center; }
.recent img { width: 78px; height: 66px; object-fit: cover; border-radius: 12px; }
.recent b { font-family: var(--display); font-size: 14.5px; line-height: 1.3; color: var(--heading); display: block; transition: color .2s ease; }
.recent a:hover b { color: var(--blue); }
.recent small { font-size: 12.5px; color: var(--muted); }
.side-cta { background: linear-gradient(165deg, var(--navy-900), var(--navy-700)); border: 0; color: #C6D4E4; }
.side-cta h4 { color: #fff; border-color: rgba(255,255,255,.16); }
.side-cta p { font-size: 15px; margin-bottom: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature__media { min-height: 240px; }
  .news-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .author-box { flex-direction: column; align-items: flex-start; }
  .article-body { font-size: 17px; }
  .news-form { flex-direction: column; border-radius: var(--radius); padding: 10px; }
  .news-form input { padding: 10px 12px; }
}
