/* Blog Post Page Refined Layout & Byline Header (Digit Insurance Style) */
.blog-post-page .post-subhero {
  background: #ffffff;
  padding: 135px 20px 28px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.blog-post-page .post-subhero .wrap {
  text-align: left;
  max-width: 960px;
  margin: 0 auto;
}

.post-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #64748b;
  margin-top: 0;
  margin-bottom: 12px;
  padding-top: 0;
  border-top: none;
}

.post-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  transition: color 0.15s ease;
}

.post-breadcrumbs a:hover {
  color: var(--red, #b00008);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-breadcrumbs .bc-sep {
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 400;
  margin: 0 4px;
  user-select: none;
}

.post-breadcrumbs .bc-current,
.post-breadcrumbs span:last-child {
  color: #64748b;
  font-size: 13.5px;
  font-weight: 500;
}

.blog-post-page .post-subhero .post-headline {
  text-align: left;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .blog-post-page .post-subhero {
    padding: 110px 16px 22px;
  }
  .blog-post-page .post-breadcrumbs {
    flex-wrap: nowrap;
    overflow: hidden;
    font-size: 12.5px;
    margin-top: 0;
    margin-bottom: 12px;
    padding-top: 0;
    border-top: none;
    gap: 2px;
  }
  .post-breadcrumbs a,
  .post-breadcrumbs .bc-current,
  .post-breadcrumbs span:last-child {
    font-size: 12.5px;
  }
  .post-breadcrumbs a { flex-shrink: 0; }
  .post-breadcrumbs .bc-current { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .blog-post-page .post-subhero .post-headline {
    font-size: 26px;
    line-height: 1.3;
  }
}

/* Post Article Content */
.post-article-content {
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 36px 20px 80px !important;
}

/* Post Header Meta Row */
.post-header-meta {
  margin-bottom: 30px;
}

.post-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.post-cat-badge {
  display: inline-block;
  background: #fdf2f2;
  color: var(--red, #b00008);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #fecaca;
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #64748b;
}

.post-meta-item svg {
  color: #94a3b8;
}

/* Author & Reviewer Byline Container - Exact match to user specification */
.post-bylines-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: transparent;
  max-width: 100%;
  width: 100%;
  margin-inline: auto;
}

.post-byline-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-left: 3.5px solid #b00008;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-byline-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.byline-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.byline-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

.byline-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.byline-role {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
}

.byline-role-icon {
  flex-shrink: 0;
}

.byline-name {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.byline-name:hover {
  color: var(--red, #b00008);
}

.byline-separator {
  width: 1px;
  height: 48px;
  background: #e2e8f0;
  margin: 0 4px;
}

@media (max-width: 680px) {
  .post-bylines-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .byline-separator {
    display: none;
  }

  .post-byline-card {
    width: 100%;
  }
}

/* Post Featured Image Enhancement */
.post-featured-image {
  margin: 28px 0 38px;
}

.post-featured-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

/* Content Feedback Card - Matching Image 1 */
.content-feedback-section {
  margin: 54px 0 48px;
}

.content-feedback-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.05);
  padding: 38px 24px 30px;
  overflow: hidden;
  text-align: center;
}

.feedback-confetti {
  position: absolute;
  top: 10px;
  width: 120px;
  height: 120px;
  pointer-events: none;
  opacity: 0.9;
}

.feedback-confetti.left {
  left: 10px;
}

.feedback-confetti.right {
  right: 10px;
}

@media (max-width: 640px) {
  .feedback-confetti {
    display: none;
  }
}

.feedback-inner {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 0 auto;
}

.feedback-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.feedback-rating-group {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.feedback-btn-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.feedback-rate-btn {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #f4f5f7;
  border: 1px solid #e5e7eb;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.feedback-rate-btn:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
  transform: translateY(-2px);
}

.feedback-rate-btn.active {
  background: #f59e0b;
  border-color: #d97706;
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.feedback-label {
  position: absolute;
  top: 60px;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  font-weight: 500;
}

.feedback-divider {
  height: 1px;
  background: #f1f5f9;
  width: 100%;
  margin: 36px auto 18px;
}

.feedback-stats {
  font-size: 14.5px;
  color: #64748b;
}

.feedback-stats strong {
  color: #1e293b;
  font-weight: 700;
}

.feedback-toast {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #059669;
  animation: fadeIn 0.25s ease;
}

/* Related Category Articles Section - Matching Image 2 */
.related-category-section {
  margin: 50px 0 20px;
}

.related-category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 26px;
  text-align: center;
}

.rc-line {
  display: inline-block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 2px;
}

.related-category-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.015em;
}

.related-category-box {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 30px 26px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

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

.related-article-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 16px 18px;
  min-height: 72px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  line-height: 1.45;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-article-card:hover {
  background: #ffffff;
  border-color: #f59e0b;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(245, 158, 11, 0.14);
}

@media (max-width: 860px) {
  .related-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
  .related-category-header h2 {
    font-size: 20px;
  }
  .rc-line {
    width: 25px;
  }
}
