.blog-hero.blog-hero-detail {
  padding: 152px 0 74px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10,15,30,0.60), rgba(10,15,30,0.78)),
    url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1800&q=80') center center/cover no-repeat;
}
.blog-hero.blog-hero-detail::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,123,84,0.24), transparent 28%),
    radial-gradient(circle at 85% 24%, rgba(59,130,246,0.12), transparent 24%);
  pointer-events: none;
}
.blog-hero.blog-hero-archive {
  padding: 152px 0 84px;
}
.hero-inner { position: relative; z-index: 2; }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,.82);
  margin-bottom: 22px;
}
.crumb a { color: rgba(255,255,255,.9); text-decoration: none; }
.crumb a:hover { color: #fff; }
.hero-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(12px);
  margin-bottom: 20px;
}
.hero-kicker-light {
  color: var(--text) !important;
  background: rgba(255,255,255,0.92) !important;
  border-color: rgba(16,24,40,0.06) !important;
}
.hero-title {
  font-size: clamp(2.45rem,4vw,4.2rem);
  line-height: 1.05;
  font-weight: 800;
  max-width: 930px;
  margin-bottom: 18px;
}
.hero-excerpt {
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.85;
  color: rgba(255,255,255,.88);
  margin-bottom: 26px;
}
.post-meta-row,
.jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.meta-chip,
.jump-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}
.meta-chip {
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
}
.jump-chip {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 26px rgba(255,90,61,0.24);
  transition: .25s ease;
}
.jump-chip:hover { color:#fff; transform: translateY(-2px); }
.blog-main { padding: 72px 0 92px; }
.article-card,
.sidebar-card,
.content-callout,
.author-box,
.faq-card,
.share-bar,
.related-card,
.post-nav-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--shadow);
  border-radius: 26px;
  backdrop-filter: blur(12px);
}
.article-card,
.sidebar-card,
.share-bar,
.post-nav-card,
.faq-card {
  padding: 28px;
}
.featured-image {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
}
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.content-callout {
  padding: 24px;
  margin-bottom: 26px;
  background: linear-gradient(180deg, rgba(255,243,236,0.86), rgba(255,255,255,0.96));
}
.callout-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.84);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.content-callout p { margin: 0; color: #475467; line-height: 1.8; }
.article-card p,
.article-card li { font-size: 16px; line-height: 1.92; }
.article-card p { margin-bottom: 18px; }
.article-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 38px 0 14px;
  color: var(--text);
}
.article-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 28px 0 12px;
  color: var(--text);
}
.article-card ul,
.article-card ol {
  color: var(--muted);
  padding-left: 1.2rem;
  margin-bottom: 22px;
}
.article-card li { margin-bottom: 10px; }
.article-card img {
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(16,24,40,0.08);
  margin: 16px 0 22px;
}
.article-card blockquote {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--primary);
  background: #f8fafc;
  border-radius: 18px;
  color: #344054;
}
.share-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.share-links { display: flex; flex-wrap: wrap; gap: 10px; }
.share-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #f2f4f7;
  color: var(--text);
  text-decoration: none;
  transition: .25s ease;
}
.share-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  transform: translateY(-2px);
}
.sidebar-card { position: sticky; top: 110px; margin-bottom: 22px; }
.sidebar-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; }
.toc-list,
.sidebar-list { list-style: none; padding-left: 0; margin: 0; }
.toc-list li + li,
.sidebar-list li + li { margin-top: 10px; }
.toc-list a,
.sidebar-list a {
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(16,24,40,0.05);
  transition: .25s ease;
  font-weight: 700;
}
.toc-list a:hover,
.sidebar-list a:hover {
  background: rgba(255,90,61,0.08);
  color: var(--text);
  transform: translateX(4px);
}
.toc-list a.toc-sub-item { margin-left: 14px; font-weight: 600; }
.sidebar-stats-card .sidebar-stat-list { display: grid; gap: 12px; }
.sidebar-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(16,24,40,0.05);
}
.sidebar-stat-row span { color: var(--muted); font-size: 14px; font-weight: 600; }
.sidebar-stat-row strong { color: var(--text); font-size: 14px; font-weight: 800; text-align: right; }
.recent-post {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(16,24,40,0.08);
}
.recent-post:last-child { border-bottom: 0; padding-bottom: 0; }
.recent-post:first-child { padding-top: 0; }
.recent-post img { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; }
.recent-post h6 { font-size: 14px; font-weight: 800; line-height: 1.45; margin-bottom: 6px; color: var(--text); }
.recent-post span { font-size: 12px; color: var(--muted); font-weight: 600; }
.newsletter-box {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,243,236,0.85), rgba(255,255,255,0.96));
  border: 1px solid rgba(255,90,61,0.10);
}
.newsletter-box .form-control {
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(16,24,40,0.08);
  box-shadow: none;
  margin-bottom: 12px;
}
.faq-card-head { margin-bottom: 18px; }
.faq-title { font-size: 1.7rem; font-weight: 800; margin: 14px 0 8px; color: var(--text); }
.faq-copy { color: var(--muted); line-height: 1.8; margin: 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.faq-item {
  padding: 20px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(16,24,40,0.05);
}
.faq-item h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.faq-item p { margin: 0; font-size: 14px; line-height: 1.75; }
.author-box {
  padding: 24px;
  margin: 32px 0;
  display: flex;
  gap: 18px;
  align-items: center;
}
.author-box img { width: 78px; height: 78px; object-fit: cover; border-radius: 50%; }
.author-box h4 { font-size: 1.08rem; margin-bottom: 6px; font-weight: 800; }
.post-nav-card {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin-top: 34px;
}
.post-nav-card a {
  text-decoration: none;
  color: var(--text);
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(16,24,40,0.05);
  transition: .25s ease;
  display: block;
}
.post-nav-card a:hover { transform: translateY(-2px); }
.post-nav-card small { display: block; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.post-nav-card strong { display: block; font-size: 1rem; line-height: 1.5; }
.related-grid { margin-top: 18px; }
.related-card {
  overflow: hidden;
  height: 100%;
  transition: .28s ease;
}
.related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.related-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.related-body { padding: 22px; }
.related-body h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.related-body p { font-size: 14px; line-height: 1.75; margin-bottom: 16px; }
@media (max-width: 991px) {
  .blog-hero.blog-hero-detail,
  .blog-hero.blog-hero-archive { padding-top: 132px; }
  .sidebar-card { position: static; }
}
@media (max-width: 767px) {
  .hero-title { font-size: 2.2rem; }
  .share-bar { flex-direction: column; align-items: flex-start; }
  .post-nav-card,
  .faq-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; align-items: flex-start; }
}


.blog-sidebar-stack {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 22px;
}
.blog-sidebar-stack .sidebar-shell {
  margin: 0;
}
.blog-sidebar-stack .sidebar-card {
  position: static;
  margin-bottom: 0;
}
.blog-sidebar-stack .sidebar-search .input-group-text,
.blog-sidebar-stack .sidebar-search .form-control {
  border: 0;
  background: transparent;
  min-height: 54px;
  box-shadow: none;
}
.blog-sidebar-stack .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.blog-sidebar-stack .tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  transition: .25s ease;
}
.blog-sidebar-stack .tag-chip:hover {
  background: rgba(255,90,61,0.1);
  color: var(--primary);
}
@media (max-width: 991px) {
  .blog-sidebar-stack {
    position: static;
  }
}


/* Related posts and comments cleanup */
.related-grid .related-card {
  height: 100%;
}
.related-grid .related-card img {
  height: 220px;
}
.comments-area {
  margin-top: 38px;
}
.comments-shell {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--shadow);
  border-radius: 26px;
  backdrop-filter: blur(12px);
  padding: 28px;
}
.comments-header {
  margin-bottom: 20px;
}
.comments-title {
  margin: 14px 0 8px;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}
.comments-subtitle,
.comment-notes,
.logged-in-as,
.comment-awaiting-moderation,
.comment-metadata,
.comment-form-cookies-consent,
.comment-form label {
  color: var(--muted);
}
.comment-list {
  margin: 0;
  padding: 0;
}
.comment-list > li {
  list-style: none;
  margin: 0 0 18px;
}
.comment-body {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid rgba(16,24,40,0.05);
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.comment-author .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.comment-author .fn {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}
.comment-author .says { display:none; }
.comment-metadata {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}
.comment-metadata a {
  color: var(--muted);
  text-decoration: none;
}
.comment-content p:last-child {
  margin-bottom: 0;
}
.reply {
  margin-top: 16px;
}
.reply a,
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,90,61,0.08);
  border: 1px solid rgba(255,90,61,0.16);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.children {
  list-style: none;
  margin: 16px 0 0 18px;
  padding: 0;
}
.comment-respond {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(16,24,40,0.08);
}
.comment-reply-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}
.comment-form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}
.comment-form p {
  margin: 0;
}
.comment-form .comment-form-comment,
.comment-form .comment-form-cookies-consent,
.comment-form .form-submit,
.comment-form .logged-in-as,
.comment-form .comment-notes {
  grid-column: 1 / -1;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid rgba(16,24,40,0.10);
  background: #fff;
  border-radius: 16px;
  min-height: 54px;
  padding: 14px 16px;
  box-shadow: none;
  outline: 0;
}
.comment-form textarea {
  min-height: 180px;
  resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: rgba(255,90,61,0.40);
  box-shadow: 0 0 0 4px rgba(255,90,61,0.10);
}
.comment-form .submit {
  min-height: 54px;
  padding: 0 24px;
  border: 0;
}
.comment-navigation {
  margin: 10px 0 22px;
}
.comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.comment-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
@media (max-width: 991px) {
  .related-grid .col-md-6:nth-child(n+5) {
    display: none;
  }
}
@media (max-width: 767px) {
  .comments-shell {
    padding: 22px;
  }
  .comment-form {
    grid-template-columns: 1fr;
  }
  .children {
    margin-left: 10px;
  }
}
