/* ── Blog index ──────────────────────────────────────────────── */

.blog-hero {
  min-height: auto;
  padding-block: 7rem 4rem;
}

.blog-hero .hero-content { max-width: 700px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  border-color: #1a6ef5;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.75rem;
  flex: 1;
}

.blog-tag {
  display: inline-block;
  background: rgba(26,110,245,.1);
  color: #1a6ef5;
  border-radius: 100px;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  width: fit-content;
}

.blog-card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0b1628;
  line-height: 1.4;
  margin: 0;
}

.blog-card p {
  font-size: .875rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: #64748b;
  padding: 1rem 1.75rem;
  border-top: 1px solid rgba(0,0,0,.06);
}

.blog-card-meta time { font-weight: 500; }

.blog-read-more {
  margin-left: auto;
  font-size: .8rem;
  font-weight: 600;
  color: #1a6ef5;
}

/* ── Post page ───────────────────────────────────────────────── */

/* Meta line in the hero */
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
  margin-top: 1rem;
}

.post-meta time { color: rgba(255,255,255,.8); font-weight: 500; }
.post-meta-dot  { opacity: .4; }

/* Two-column layout: article + sidebar */
.post-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  padding-block: 4rem;
  align-items: start;
}

/* Article */
.post-content { min-width: 0; }

.post-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0b1628;
  margin-block: 2rem .75rem;
}

.post-content h2:first-child { margin-top: 0; }

.post-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0b1628;
  margin-block: 1.5rem .5rem;
}

.post-content p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}

.post-content li {
  color: #475569;
  line-height: 1.75;
  margin-bottom: .4rem;
}

.post-content strong { color: #0b1628; font-weight: 600; }

.post-content a {
  color: #1a6ef5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Back to blog / next post nav */
.post-nav {
  border-top: 1px solid rgba(0,0,0,.07);
  padding-top: 2rem;
  margin-top: 2.5rem;
}

.post-nav a {
  font-size: .875rem;
  color: #1a6ef5;
  text-decoration: none;
  font-weight: 500;
}

.post-nav a:hover { text-decoration: underline; }

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-sidebar-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.post-sidebar-card h3 {
  font-size: .75rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.post-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.post-related-list a {
  font-size: .875rem;
  color: #1a6ef5;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.post-related-list a:hover { text-decoration: underline; }

.post-cta-card {
  background: #0b1628;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.post-cta-card h3 {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

.post-cta-card p {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .blog-grid  { grid-template-columns: 1fr 1fr; }
  .post-body  { grid-template-columns: 1fr; gap: 2.5rem; }
  .post-sidebar { position: static; }
}

@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}
