/* ══════════════════════════════════════════
   BLOG — matches nehalag.com design system
   Tokens: #0F172A · #64748B · #94A3B8 · #F1F5F9 · #F8FAFC
   Font: Inter (same as main site)
   ══════════════════════════════════════════ */

/* ── BLOG NAV ── */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #F1F5F9;
  padding: 0 24px;
}

.blog-nav-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.blog-nav-brand {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0F172A;
  text-decoration: none;
}

.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.blog-nav-links a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748B;
  text-decoration: none;
  transition: color 0.15s;
}

.blog-nav-links a:hover {
  color: #0F172A;
}

.blog-nav-active {
  color: #0F172A !important;
  font-weight: 600 !important;
}

/* ── LISTING LAYOUT ── */
.blog-listing-layout {
  background: #ffffff;
}

.blog-page-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ── */
.blog-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid #F1F5F9;
}

.blog-hero-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0F172A;
  margin-bottom: 14px;
  max-width: 680px;
}

.blog-hero-sub {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 4px;
  max-width: 480px;
}

/* ── SECTION ── */
.blog-section {
  padding: 24px 0 0;
}

.blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.blog-section-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94A3B8;
}

/* ── SERIES GRID ── */
.blog-series-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 0;
}

.blog-series-card {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  display: block;
}

.blog-series-card:hover {
  border-color: #E2E8F0;
  background: #F1F5F9;
}

.blog-series-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.blog-series-badge-parts {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
  background: #E2E8F0;
  padding: 3px 10px;
  border-radius: 100px;
}

.blog-series-badge-status {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #F97316;
  padding: 3px 10px;
  border-radius: 100px;
  background: #FFF7ED;
}

.blog-series-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog-series-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.55;
}

/* ── ARTICLES LIST ── */
.blog-articles-list {
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.blog-article-row {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  border-bottom: 1px solid #F1F5F9;
  text-decoration: none;
  transition: opacity 0.15s;
}

.blog-article-row:hover {
  opacity: 0.7;
}

.blog-article-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.blog-article-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0F172A;
  line-height: 1.4;
}

.blog-article-date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11.5px;
  color: #CBD5E1;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}

.blog-article-series-tag {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F97316;
  margin-bottom: 4px;
}

.blog-article-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── POST LAYOUT ── */
.blog-post-layout {
  padding: 0;
  background: #ffffff;
}

.blog-post-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-back {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #94A3B8;
  text-decoration: none;
  margin-bottom: 32px;
  margin-top: 40px;
  transition: color 0.15s;
}

.blog-back:hover {
  color: #475569;
}

/* ── POST HEADER ── */
.post-header {
  margin-bottom: 36px;
}

.post-meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.post-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0F172A;
  margin-bottom: 12px;
}

.post-subtitle {
  font-size: 15px;
  color: #64748B;
  line-height: 1.6;
}

/* ── POST HERO IMAGE ── */
.post-hero-img {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  background: #E2E8F0;
  margin-top: 24px;
  overflow: hidden;
}

.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── POST BODY ── */
.post-body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 12px;
}

.post-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 28px;
  margin-bottom: 8px;
}

.post-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.post-body li {
  margin-bottom: 6px;
}

.post-body ul, .post-body ul.post-checklist {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.post-body ul li, .post-body ul.post-checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.post-body ul li::before, .post-body ul.post-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border: 1.5px solid #CBD5E1;
  border-radius: 3px;
  background: #ffffff;
  box-sizing: border-box;
}

.post-body a {
  color: #0F172A;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body strong {
  font-weight: 700;
  color: #0F172A;
}

/* ── CODE BLOCKS ── */
.post-body pre {
  background: #0F172A;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
  overflow-x: auto;
  line-height: 1.65;
}

.post-body code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  font-size: 13px;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0F172A;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: #E2E8F0;
  font-size: 13px;
}

/* ── POST FOOTER ── */
.post-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 80px;
}

.post-footer-linkedin {
  color: #94A3B8;
  display: inline-flex;
  transition: color 0.15s;
}

.post-footer-linkedin:hover {
  color: #0A66C2;
}

/* ── SERIES CARD (inside post) ── */
.series-card {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 36px;
}

.series-card-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.series-card-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0F172A;
  margin-bottom: 14px;
}

.series-card-parts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.series-part-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}

.series-part-row:hover {
  background: #E2E8F0;
}

.series-part-current {
  background: #0F172A;
}

.series-part-current:hover {
  background: #1E293B;
}

.series-part-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #CBD5E1;
  width: 20px;
  flex-shrink: 0;
}

.series-part-current .series-part-num {
  color: #475569;
}

.series-part-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}

.series-part-current .series-part-title {
  color: #ffffff;
  font-weight: 500;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .blog-series-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .blog-article-top {
    flex-direction: column;
    gap: 3px;
  }

  .blog-hero {
    padding: 40px 0 36px;
  }
}
