.content-section-layout {
  padding-top: 5.75rem;
  background: #f7fafc;
}

.post-single-modern {
  position: relative;
  padding: 4.75rem 0 5rem;
  background: #f7fafc;
}

.post-single-modern ~ .error-modern {
  display: none !important;
}

.post-shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.post-main-column,
.post-sidebar,
.post-related-list,
.post-share-grid {
  display: grid;
  gap: 1rem;
}

.post-main-column {
  gap: 1.5rem;
}

.post-sidebar {
  position: sticky;
  top: 1.5rem;
}

.post-hero-card,
.post-content-card,
.post-sidebar-card,
.post-pagination-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.post-hero-card,
.post-content-card {
  padding: 1.75rem;
}

.post-sidebar-card {
  padding: 1.2rem;
}

.post-breadcrumb-wrap {
  margin-bottom: 1rem;
}

.post-topbar,
.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.post-topbar {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.post-meta-row {
  margin-top: 1.35rem;
}

.post-back-link,
.post-category-chip,
.post-stat-chip,
.post-meta-pill,
.post-share-link {
  min-height: 36px;
  border-radius: 8px;
}

.post-back-link,
.post-category-chip,
.post-stat-chip,
.post-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.post-back-link {
  color: #162033;
  background: #fff7ee;
  border: 1px solid rgba(253, 119, 2, 0.16);
}

.post-category-chip {
  color: #be570e;
  background: rgba(253, 119, 2, 0.1);
  border: 1px solid rgba(253, 119, 2, 0.16);
}

.post-meta-pill,
.post-stat-chip {
  color: #475467;
  background: #f8fafc;
  border: 1px solid #edf1f6;
}

.post-hero-title {
  max-width: 900px;
  margin: 0;
  color: #162033;
  font-size: 37px;
  line-height: 1.12;
  letter-spacing: 0;
}

.post-inline-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.post-featured-media {
  margin-top: 1.5rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #eef2f7;
}

.post-featured-media img,
.post-pagination-thumb,
.post-related-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-single-content {
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.9;
}

.post-single-content > *:first-child {
  margin-top: 0;
}

.post-single-content h2,
.post-single-content h3,
.post-single-content h4 {
  margin: 2rem 0 0.9rem;
  color: #162033;
  line-height: 1.2;
  letter-spacing: 0;
}

.post-single-content h2 {
  font-size: 37px;
  line-height: 1.16;
}

.post-single-content h2[id],
.post-single-content h3[id],
.post-single-content h4[id] {
  scroll-margin-top: 96px;
}

.post-single-content a {
  color: #ea580c;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.post-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-single-content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #fd7702;
  border-radius: 0 8px 8px 0;
  background: #fff8f1;
  color: #5b6472;
}

.post-single-content ul,
.post-single-content ol {
  padding-left: 1.3rem;
}

.blog-toc {
  margin: 1.5rem 0;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
}

.blog-toc__toggle {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 0;
  background: #f7f9fb;
  color: #162033;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.blog-toc__toggle i {
  transition: transform 0.25s ease;
}

.blog-toc.is-open .blog-toc__toggle i {
  transform: rotate(180deg);
}

.blog-toc__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.blog-toc.is-open .blog-toc__body {
  max-height: 1200px;
}

.blog-toc__list {
  margin: 0;
  padding: 0.9rem 1rem 1rem 1.25rem;
}

.blog-toc__list--nested {
  padding: 0.45rem 0 0 1rem;
}

.blog-toc__item {
  margin: 0.35rem 0;
  color: #9aa4b2;
}

.blog-toc__item a {
  color: #334155;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.45;
}

.blog-toc__item a:hover {
  color: #ea580c;
  text-decoration: underline;
}

.post-pagination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.post-pagination-card {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-height: 110px;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-pagination-card:hover,
.post-related-item:hover,
.post-share-link:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 119, 2, 0.24);
}

.post-pagination-card.is-next {
  flex-direction: row-reverse;
  text-align: right;
}

.post-pagination-thumb {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 8px;
  background: #f4f7fb;
}

.post-pagination-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  color: #fd7702;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.post-pagination-title {
  display: block;
  color: #162033;
  font-size: 1rem;
  line-height: 1.4;
}

.post-sidebar-title {
  margin: 0 0 0.85rem;
  color: #162033;
  font-size: 1.05rem;
}

.post-share-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.post-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  color: #334155;
  border: 1px solid #e7edf6;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.post-share-link:hover {
  color: #ea580c;
}

.post-related-list {
  gap: 0.85rem;
}

.post-related-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.post-related-item img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  background: #f4f7fb;
}

.post-related-item strong {
  display: block;
  color: #162033;
  line-height: 1.4;
}

.post-related-date {
  display: inline-block;
  margin-top: 0.3rem;
  color: #667085;
  font-size: 0.86rem;
}

@media (max-width: 991.98px) {
  .post-single-modern {
    padding-top: 4rem;
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .post-hero-card,
  .post-content-card,
  .post-sidebar-card {
    padding: 1.15rem;
  }

  .post-pagination-grid,
  .post-share-grid {
    grid-template-columns: 1fr;
  }

  .post-pagination-card,
  .post-pagination-card.is-next {
    flex-direction: row;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .content-section-layout {
    padding-top: 5.25rem;
  }

  .post-hero-card,
  .post-content-card,
  .post-sidebar-card {
    padding: 1rem;
  }
}
