/* ===== Shared components: blog, projects, slider, filters (uses theme vars from each page) ===== */
[hidden]{display:none!important}
.sec-alt{background:var(--bg-alt)}
.pill-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:34px 0 0}
.pill{font-family:var(--font-head);font-weight:600;font-size:14px;padding:10px 22px;border-radius:var(--radius-pill);border:1.5px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;transition:.25s}
.pill:hover{border-color:var(--brand);color:var(--brand)}
.pill.on{background:var(--brand);border-color:var(--brand);color:#fff}

/* ---------- Blog cards ---------- */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:56px}
.bcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:.35s ease}
.bcard:hover{transform:translateY(-8px);box-shadow:var(--shadow);border-color:transparent}
.bcard .bimg{display:block;overflow:hidden;background:var(--bg-alt)}
.bcard .bimg img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;transition:.6s ease}
.bcard:hover .bimg img{transform:scale(1.06)}
.bbody{display:flex;flex-direction:column;flex:1;padding:26px 26px 28px}
.bmeta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--muted);margin-bottom:12px}
.bmeta b{font-family:var(--font-head);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--brand)}
.bcard h3{font-size:21px;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bcard h3 a:hover{color:var(--brand)}
.bcard p{font-size:15.5px;margin-bottom:22px;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bcard .btn{align-self:flex-start;padding:11px 24px;font-size:14px}
.more-row{display:flex;justify-content:center;margin-top:46px}

/* ---------- Project cards, grid, slider ---------- */
.pj-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:56px}
.pj{position:relative;border-radius:22px;overflow:hidden;background:var(--ink);display:block;color:#fff}
.pj img{width:100%;height:auto;aspect-ratio:16/11;object-fit:cover;transition:.6s ease;opacity:.92}
a.pj:hover img,.pj:hover img{transform:scale(1.07);opacity:.7}
.pj-ind{position:absolute;left:16px;top:16px;font-family:var(--font-head);font-weight:600;font-size:12.5px;letter-spacing:.04em;padding:6px 14px;border-radius:var(--radius-pill);background:rgba(255,255,255,.92);color:var(--brand)}
.pj .info{position:absolute;left:0;bottom:0;width:100%;padding:60px 24px 22px;background:linear-gradient(to top,rgba(11,11,20,.92),transparent)}
.pj .cat{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#9DB5FF;font-weight:500}
.pj h3,.pj h4{color:#fff;font-size:22px;margin-top:4px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.pj em{font-style:normal;flex:none;width:40px;height:40px;border-radius:50%;background:var(--brand);display:grid;place-items:center;font-size:18px;transition:.3s}
.pj:hover em{transform:rotate(-45deg)}
.pj-slider{margin-top:56px}
.pj-slider-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}
.pj-slider-head h3{font-size:24px}
.pj-arrows{display:flex;gap:10px}
.pj-arrow{width:46px;height:46px;border-radius:50%;border:2px solid var(--ink);background:transparent;color:var(--ink);font-size:18px;cursor:pointer;transition:.25s;display:grid;place-items:center;line-height:1}
.pj-arrow:hover:not(:disabled){background:var(--brand);border-color:var(--brand);color:#fff}
.pj-arrow:disabled{opacity:.3;cursor:default}
.pj-track{display:flex;gap:28px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding-bottom:14px;scrollbar-width:thin}
.pj-track .pj{flex:0 0 calc((100% - 56px)/3);scroll-snap-align:start}
.pj-track:focus-visible{outline:3px solid var(--brand);outline-offset:4px;border-radius:12px}
.pj-empty{text-align:center;padding:40px 0;color:var(--muted)}

/* ---------- Portfolio CTA strip ---------- */
.pj-cta{margin-top:60px;background:var(--ink);border-radius:28px;padding:44px 48px;display:flex;align-items:center;justify-content:space-between;gap:30px;background-image:radial-gradient(420px 240px at 100% 0%,rgba(0,68,255,.45),transparent 65%)}
.pj-cta h3{color:#fff;font-size:clamp(23px,3vw,32px);margin-bottom:8px}
.pj-cta p{color:#9AA0B8;max-width:520px;font-size:16px}
.pj-cta .btn-row{flex:none}

/* ---------- Blog article ---------- */
.crumbs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;font-size:14px;color:var(--muted);margin-bottom:22px}
.crumbs a:hover{color:var(--brand)}
.post-hero h1{font-size:clamp(32px,4.8vw,56px);font-weight:700;max-width:900px;margin:0 auto 20px}
.post-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;font-size:15px;color:var(--muted)}
.post-lead{max-width:760px;margin:22px auto 0;font-size:19px;color:var(--text)}
.post-img{max-width:980px;margin:0 auto 60px;border-radius:26px;overflow:hidden;box-shadow:0 40px 80px -40px rgba(0,68,255,.45)}
.post-img img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.prose{max-width:760px;margin:0 auto;font-size:17.5px;line-height:1.85}
.prose h2{font-size:clamp(25px,3vw,32px);margin:44px 0 14px}
.prose h3{font-size:22px;margin:30px 0 10px}
.prose p{margin-bottom:18px}
.prose ul{list-style:disc;padding-left:24px;margin-bottom:20px}
.prose li{margin-bottom:8px}
.prose a{color:var(--brand);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.prose strong{color:var(--ink)}
.post-back{max-width:760px;margin:46px auto 0}

@media (max-width:1024px){
  .blog-grid,.pj-grid{grid-template-columns:repeat(2,1fr)}
  .pj-track .pj{flex-basis:calc((100% - 28px)/2)}
  .pj-cta{flex-direction:column;align-items:flex-start;padding:38px 32px}
}
@media (max-width:640px){
  .blog-grid,.pj-grid{grid-template-columns:1fr;gap:20px;margin-top:40px}
  .pj-track{gap:16px}
  .pj-track .pj{flex-basis:84%}
  .pj-slider{margin-top:40px}
  .pj-slider-head h3{font-size:21px}
  .pj .info{padding:44px 18px 18px}
  .pj h3,.pj h4{font-size:19px}
  .pj-cta{padding:30px 22px;border-radius:22px;margin-top:44px}
  .pj-cta .btn-row{width:100%}
  .bbody{padding:22px 20px 24px}
  .post-img{border-radius:18px;margin-bottom:40px}
  .prose{font-size:16.5px}
}
