/* ─────────────────────────────────────────
   Blog Post Page Styles
   ───────────────────────────────────────── */

/* Post meta bar (date / read time / tag) */
.post-meta-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 0.9rem 0;
}
.post-meta-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--gray-600);
  font-family: var(--font-body);
}
.post-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--steel);
}
.post-meta-back {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.post-meta-back:hover { color: var(--navy-mid); }

/* Layout: article + sidebar */
.post-layout {
  padding: 4rem 0 5rem;
  background: var(--white);
}
.post-content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

/* Article content */
.post-content {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.85;
}
.post-lead {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--gray-100);
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--navy-deep);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.post-content p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
}
.post-content ul, .post-content ol {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}
.post-content li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.post-content strong {
  color: var(--navy-deep);
  font-weight: 600;
}
.post-content em {
  color: var(--gray-600);
}

/* CTA box inside article */
.post-cta-box {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
}
.post-cta-box h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  margin: 0 0 0.75rem;
  color: var(--white);
}
.post-cta-box p {
  color: var(--steel-light);
  margin: 0 0 1.5rem;
}
.post-cta-box .btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.post-cta-box .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-widget {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.sidebar-widget h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--navy-deep);
  margin: 0 0 0.75rem;
}
.sidebar-widget p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0 0 0.5rem;
}
.sidebar-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-service-list li a {
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.sidebar-service-list li a:hover { color: var(--navy-mid); }

.sidebar-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-color: transparent;
}
.sidebar-cta h4, .sidebar-cta p {
  color: var(--white);
}
.sidebar-cta p { color: var(--steel-light); }

/* Blog card Read More link */
.blog-card-readmore {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s, gap 0.2s;
}
.blog-card-readmore:hover { color: var(--navy-mid); }

/* Responsive */
@media (max-width: 1024px) {
  .post-content-wrap {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .post-sidebar {
    grid-template-columns: 1fr;
  }
  .post-meta-inner {
    gap: 1rem;
  }
  .post-meta-back {
    margin-left: 0;
    width: 100%;
  }
}
