.post-hero {
  background: var(--light-bg);
  padding: calc(var(--navbar-height) + 20px) 0 48px;
  border-bottom: 1px solid var(--border);
}
.post-hero-inner { max-width: 760px; }

.post-hero .breadcrumb a        { color: var(--primary); font-weight: 600; }
.post-hero .breadcrumb a:hover  { text-decoration: underline; }

.post-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.post-category-badge {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-date,
.post-read-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.post-date svg,
.post-read-time svg { width: 14px; height: 14px; }

.post-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.post-excerpt {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 680px;
}

.post-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-info .author-name  { font-family: var(--font-heading); font-size: 0.88rem; font-weight: 700; color: var(--text-dark); }
.author-info .author-label { font-size: 0.76rem; color: var(--text-muted); }

.post-banner-wrap {
  padding: 40px 0 0;
  background: var(--light-bg);
}

.post-banner {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: var(--shadow-sm);
}

.post-body-section {
  padding: 56px 0 80px;
  overflow: hidden;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.post-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-dark);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.post-content p       { margin-bottom: 20px; color: var(--text-body); }
.post-content strong  { font-weight: 700; color: var(--text-dark); }

.post-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 14px;
  color: var(--text-dark);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.post-content h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; color: var(--text-dark); }

.post-content ul,
.post-content ol  { padding-left: 24px; margin-bottom: 20px; }
.post-content li  { margin-bottom: 8px; }

.post-content a { text-decoration: underline; color: var(--primary); }
.post-content a:hover { color: var(--accent); }

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 14px 20px;
  margin: 28px 0;
  background: var(--light-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

.post-content code {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.88em;
  color: #e11d48;
}

.post-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-bottom: 24px;
  font-size: 0.88rem;
  line-height: 1.7;
}
.post-content pre code { background: none; color: inherit; padding: 0; }


.post-sidebar {
  width: 300px;
  min-width: 300px;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;

}
.post-sidebar::-webkit-scrollbar {
  display: none;
}

.share-buttons { display: flex; flex-direction: column; gap: 8px; }

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: var(--transition);
  width: 100%;
}
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.share-twitter  { background: #000; color: var(--white); }
.share-linkedin { background: #0077b5; color: var(--white); }
.share-copy     { background: var(--light-bg); color: var(--text-dark); border: 1px solid var(--border); }

.share-twitter:hover,
.share-linkedin:hover { opacity: 0.85; }
.share-copy:hover     { background: var(--border); }

.author-card { display: flex; align-items: flex-start; gap: 12px; }

.author-avatar-lg {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
}

.author-name-lg {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.author-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.sidebar-service-cta {
  background: linear-gradient(145deg, #f0f4ff, #e8f0fe);
  border: 1.5px solid rgba(26, 43, 107, 0.12);
  text-align: center;
}
.sidebar-service-cta h4 { display: none; }
.sidebar-service-cta p  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }

.back-to-blog {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.back-to-blog svg { width: 16px; height: 16px; }
.back-to-blog:hover { background: var(--light-bg); border-color: var(--primary); transform: translateX(-2px); }

.related-section {
  padding: 72px 0;
  background: var(--light-bg);
  border-top: 1px solid var(--border);
}

.related-header {
  text-align: center;
  margin-bottom: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-section .blog-card .card-img-wrap { height: 180px; }


@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr 260px; gap: 32px; }
  .post-sidebar { min-width: 260px; width: 260px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .post-layout  { grid-template-columns: 1fr; }
  .post-sidebar { position: static; width: 100%; min-width: unset; }
  .post-hero    { padding-top: calc(var(--navbar-height) + 12px); }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .post-title   { font-size: 1.4rem; }
  .share-buttons { flex-direction: row; flex-wrap: wrap; }
  .share-btn    { flex: 1; justify-content: center; }
}