/* Scoped overrides for the database-backed article page. */
.single-post-page > .header-banner-section {
  min-height: 76px;
}

.single-post-page .container-blog.blog-detail {
  width: calc(100% - 48px);
  max-width: 1200px;
  padding: 20px 0 24px !important;
  margin: 20px auto 0;
  overflow: visible;
}
.single-post-page .navigation-wrapper {
  margin: 0 0 20px;
}
.single-post-page .article-header .blog-title {
  max-width: 960px;
  margin: 0 0 32px;
  font-size: clamp(28px, 3vw, 38px) !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: #080808;
}
.single-post-page .article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid #c5c5c5;
  margin-bottom: 48px;
}
.single-post-page .article-read-time {
  font-size: 13px;
  color: #111;
}
.single-post-page .article-share {
  display: flex;
  align-items: center;
  gap: 8px;
}
.single-post-page .article-share a,
.single-post-page .article-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.single-post-page .article-share img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.single-post-page .article-share button {
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
}
.single-post-page .article-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.single-post-page .article-layout {
  display: grid;
  grid-template-columns: 450px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  padding: 0;
  overflow: visible;
}
.single-post-page .article-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  min-width: 0;
}
.single-post-page .article-sidebar {
  display: block;
  margin: 0 0 12px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #111;
}
.single-post-page .article-sidebar .toc-list {
  display: block;
  padding: 20px 18px;
  background: #eaf0f3;
  border-radius: 12px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.single-post-page .article-sidebar .toc {
  padding: 0;
  background: transparent;
}
.single-post-page .article-sidebar ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.single-post-page .article-sidebar ul ul {
  padding-top: 18px !important;
}
.single-post-page .article-sidebar li {
  position: relative;
  margin: 0;
  padding: 0 0 12px 22px;
  list-style: none !important;
}
.single-post-page .article-sidebar li:last-child {
  padding-bottom: 0;
}
.single-post-page .article-sidebar li::before {
  content: "";
  position: absolute;
  display: block;
  width: 1px;
  left: 5px;
  top: 12px;
  bottom: -6px;
  background: #d2d8dc;
}
.single-post-page .article-sidebar li::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border: 0;
  background: #d2d8dc;
}
.single-post-page .article-sidebar li.toc-active::after {
  left: 0;
  background: #149ed3;
}
.single-post-page .article-sidebar a {
  color: #242424;
  font-size: 14px;
  line-height: 1.7;
}
.single-post-page .article-sidebar a:focus-visible {
  outline: 2px solid #149ed3;
  outline-offset: 3px;
}
.single-post-page .article-content {
  min-width: 0;
  padding-top: 0;
  color: #111;
  overflow-wrap: anywhere;
}
.single-post-page .article-content p {
  font-size: 15px;
  line-height: 1.85;
  margin: 0px;
}
.single-post-page .article-content h2 {
  font-size: 32px !important;
  line-height: 1.3 !important;
  font-weight: 700;
  margin: 32px 0 28px;
}
.single-post-page .article-content :is(h1, h2, h3, h4, h5, h6, [id]) {
  scroll-margin-top: 130px;
}
.single-post-page .article-content img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .single-post-page .container-blog.blog-detail {
    width: calc(100% - 32px);
    padding-top: 24px !important;
  }
  .single-post-page .navigation-wrapper {
    margin-bottom: 32px;
    align-items: flex-start;
  }
  .single-post-page .article-header .blog-title {
    margin-bottom: 28px;
  }
  .single-post-page .article-meta {
    margin-bottom: 28px;
    padding-bottom: 24px;
  }
  .single-post-page .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .single-post-page .article-sidebar {
    position: static;
  }
  .single-post-page .article-sidebar .toc-list {
    max-height: 360px;
    padding: 24px;
  }
  .single-post-page .article-content {
    padding-top: 0;
  }
  .single-post-page .article-content h2 {
    font-size: 26px !important;
  }
}

/* Latest Insights cards; existing image and Read More links remain intact. */
.single-post-page .latest-blog-section > .insight-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.single-post-page .latest-blog-section > .insight-cards > .col-4 {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}
.single-post-page .latest-blog-section .inner-blog-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px #07111f08;
}
.single-post-page .latest-blog-section .inner-blog-post > a {
  display: block;
  border-radius: 9px;
  overflow: hidden;
}
.single-post-page .latest-blog-section .inner-blog-post > a img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 9px;
}
.single-post-page .latest-blog-section .text-inner-blog {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 4px 4px !important;
}
.single-post-page .latest-blog-section .category-blog label {
  padding: 4px 16px;
  margin: 0 0 14px;
  border-radius: 20px;
  background: #cee7f8;
  color: #0789dc;
  font-size: 11px;
  line-height: 1.2;
}
.single-post-page .latest-blog-section .text-inner-blog h3 {
  color: #111;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 10px;
}
.single-post-page .latest-blog-section .text-inner-blog p {
  color: #626262;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 18px !important;
}
.single-post-page .latest-blog-section .insight-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto !important;
  padding-top: 18px;
  border-top: 1px solid #ebedf0;
}
.single-post-page .insight-read-time {
  color: #222;
  font-size: 11px;
  white-space: nowrap;
}
.single-post-page .latest-blog-section .insight-card-footer .btn {
  display: inline-flex;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #0085ed;
  font-size: 12px;
  font-weight: 600;
}
.single-post-page .latest-blog-section .insight-card-footer .btn::before,
.single-post-page .latest-blog-section .insight-card-footer .btn::after {
  content: none;
}
.single-post-page .latest-blog-section .insight-card-footer .btn > span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: inherit;
}
.single-post-page .latest-blog-section .insight-card-footer .btn:hover {
  color: #005ca6;
}
.single-post-page .latest-blog-section a:focus-visible {
  outline: 2px solid #0085ed;
  outline-offset: 3px;
}
@media (max-width: 991px) {
  .single-post-page .latest-blog-section > .insight-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .single-post-page .latest-blog-section > .insight-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Preserve rich article content independently of the sidebar timeline. */
.single-post-page .article-sidebar li:last-child::before {
  display: none;
}
.single-post-page .article-content ul,
.single-post-page .article-content ol {
  margin: 0 0 24px !important;
  padding-left: 26px !important;
  list-style-position: outside !important;
}
.single-post-page .article-content ul {
  list-style-type: disc !important;
}
.single-post-page .article-content ol {
  list-style-type: decimal !important;
}
.single-post-page .article-content ul ul {
  list-style-type: circle !important;
}
.single-post-page .article-content ul ul ul {
  list-style-type: square !important;
}
.single-post-page .article-content li {
  display: list-item;
  margin-bottom: 8px;
  line-height: 1.85;
}
.single-post-page .article-content li > ul,
.single-post-page .article-content li > ol {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}
.single-post-page .container-blog.blog-detail .article-content img {
  max-width: 100%;
  height: auto !important;
  object-fit: contain !important;
}
.single-post-page .article-content figure {
  max-width: 100%;
  margin: 24px 0;
}
.single-post-page .article-content figcaption {
  margin-top: 8px;
  color: #626262;
  font-size: 13px;
}
.single-post-page .article-content a {
  color: #0076d4;
  text-decoration: underline !important;
}

/* Match the utility width without legacy container constraints. */
.single-post-page .insight-section-heading {
  text-align: center;
}
.single-post-page .insight-section-heading h2 {
  justify-content: center;
}
