/* ─── DTECHTION BLOG ───────────────────────────────────── */
.nav-logo { cursor: pointer; }
.blog-container { max-width: 1100px; margin: 0 auto; }

.post-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Featured post */
.post-featured {
  display: block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 52px 48px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.post-featured::after {
  content: '';
  position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(123,47,255,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.post-featured:hover { box-shadow: 0 12px 40px rgba(123,47,255,0.12); transform: translateY(-3px); }
.post-featured h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 14px; max-width: 760px;
}
.post-featured p:not(.section-eyebrow) {
  font-size: 1.02rem; color: var(--text-secondary);
  line-height: 1.75; max-width: 680px; margin-bottom: 20px;
}

/* Post cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.post-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 30px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.post-card:hover { border-color: var(--border); box-shadow: 0 8px 32px rgba(123,47,255,0.09); transform: translateY(-3px); }
.post-card-cover { width: calc(100% + 60px); margin: -30px -30px 10px; height: 180px; object-fit: cover; border-radius: 14px 14px 0 0; }
.post-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.post-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.68; flex: 1; }
.post-card-link { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--purple); }

.blog-empty { text-align: center; max-width: 560px; margin: 0 auto; }
.blog-empty .section-sub { margin: 0 auto; }

/* Article */
.article-hero {
  padding: 140px 5vw 56px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.article-hero-inner { max-width: 760px; margin: 0 auto; }
.article-back { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--purple); margin-bottom: 26px; }
.article-back:hover { text-decoration: underline; }
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.article-excerpt { font-size: 1.12rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 22px; }
.article-cover { max-width: 960px; width: calc(100% - 10vw); margin: 48px auto 0; border-radius: 18px; }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 5vw 96px;
  font-size: 1.06rem;
  line-height: 1.82;
  color: #222;
  box-sizing: content-box;
}
.article-body > * + * { margin-top: 1.25em; }
.article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em; line-height: 1.25; color: var(--text-primary);
}
.article-body h2 { font-size: 1.65rem; margin-top: 2.1em; }
.article-body h3 { font-size: 1.28rem; margin-top: 1.8em; }
.article-body a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: 0.45em; }
.article-body li::marker { color: var(--purple); }
.article-body li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.4em; }
.article-body input[type="checkbox"] { accent-color: var(--purple); margin-right: 8px; transform: translateY(1px); }
.article-body blockquote {
  border-left: 3px solid var(--purple);
  background: var(--bg-alt);
  padding: 16px 22px; border-radius: 0 10px 10px 0;
  color: var(--text-secondary);
}
.article-body code { font-size: 0.9em; background: var(--purple-dim); padding: 2px 6px; border-radius: 4px; }
.article-body pre { background: var(--black); color: #eee; padding: 20px; border-radius: 12px; overflow-x: auto; }
.article-body pre code { background: none; padding: 0; }
.article-body img { border-radius: 12px; margin-left: auto; margin-right: auto; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.article-body th, .article-body td { border-bottom: 1px solid var(--border-light); padding: 10px; text-align: left; }

/* CTA strip */
.blog-cta { background: var(--black); color: var(--white); padding: 80px 5vw; text-align: center; }
.blog-cta-inner { max-width: 620px; margin: 0 auto; }
.blog-cta h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.blog-cta p { color: #888; font-size: 1rem; margin-bottom: 32px; }

@media (max-width: 768px) {
  .post-featured { padding: 36px 26px; }
  .post-grid { grid-template-columns: 1fr; }
}
