/* Blog article styles are intentionally scoped to the blog detail page. */
.blog-detail-page-title {
  max-width: 920px;
  margin-inline: auto;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.blog-detail-page .blog-detail-article {
  overflow: hidden;
  margin-top: 48px;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(22, 52, 109, 0.07);
}

.blog-detail-page .blog-details-img {
  overflow: hidden;
  background: #eef2f4;
}

.blog-detail-page .blog-details-img img {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 460px);
  border-radius: 0;
  object-fit: cover;
}

.blog-detail-page .blog-entry-content {
  padding: clamp(28px, 4vw, 52px);
  color: #384152;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/*
 * Rich-text editors often save inline font sizes and line heights. These
 * article-only rules normalize that markup while keeping headings distinct.
 */
.blog-detail-page .blog-entry-content :where(p, li),
.blog-detail-page .blog-entry-content :where(p, li) * {
  font-family: inherit !important;
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

.blog-detail-page .blog-entry-content > div {
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

.blog-detail-page .blog-entry-content > div :where(span, a, strong, b, em, i) {
  font-size: inherit !important;
  line-height: inherit !important;
}

.blog-detail-page .blog-entry-content :where(p, ul, ol, blockquote, pre, table, figure) {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

.blog-detail-page .blog-entry-content p {
  margin-bottom: 1.35rem;
  color: inherit;
  font-weight: 400;
}

.blog-detail-page .blog-entry-content :where(h2, h3, h4, h5, h6) {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  color: #18243a;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
  line-height: 1.3 !important;
  scroll-margin-top: 120px;
}

.blog-detail-page .blog-entry-content :where(h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}

.blog-detail-page .blog-entry-content h2,
.blog-detail-page .blog-entry-content h2 * {
  font-size: clamp(1.5rem, 2vw, 1.75rem) !important;
  line-height: 1.3 !important;
}

.blog-detail-page .blog-entry-content h3,
.blog-detail-page .blog-entry-content h3 * {
  font-size: clamp(1.3rem, 1.7vw, 1.5rem) !important;
  line-height: 1.35 !important;
}

.blog-detail-page .blog-entry-content h4,
.blog-detail-page .blog-entry-content h4 * {
  font-size: clamp(1.15rem, 1.4vw, 1.3rem) !important;
  line-height: 1.4 !important;
}

.blog-detail-page .blog-entry-content h5,
.blog-detail-page .blog-entry-content h5 *,
.blog-detail-page .blog-entry-content h6,
.blog-detail-page .blog-entry-content h6 * {
  font-size: 1.125rem !important;
  line-height: 1.45 !important;
}

.blog-detail-page .blog-entry-content :where(ul, ol) {
  display: block;
  padding-left: 1.5rem;
}

.blog-detail-page .blog-entry-content ul,
.blog-detail-page .blog-entry-content ul > li {
  list-style: disc outside !important;
}

.blog-detail-page .blog-entry-content ol,
.blog-detail-page .blog-entry-content ol > li {
  list-style: decimal outside !important;
}

.blog-detail-page .blog-entry-content ul ul,
.blog-detail-page .blog-entry-content ul ul > li {
  list-style-type: circle !important;
}

.blog-detail-page .blog-entry-content ul ul ul,
.blog-detail-page .blog-entry-content ul ul ul > li {
  list-style-type: square !important;
}

.blog-detail-page .blog-entry-content ol ol,
.blog-detail-page .blog-entry-content ol ol > li {
  list-style-type: lower-alpha !important;
}

.blog-detail-page .blog-entry-content li {
  display: list-item !important;
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}

.blog-detail-page .blog-entry-content li::marker {
  color: var(--primary-color);
  font-weight: 700;
}

.blog-detail-page .blog-entry-content a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.blog-detail-page .blog-entry-content a:hover {
  color: var(--secondary-color);
}

.blog-detail-page .blog-entry-content :where(img, video) {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 1.75rem auto;
  border-radius: 8px;
}

.blog-detail-page .blog-entry-content iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  margin: 1.75rem 0;
  border: 0;
  border-radius: 8px;
}

.blog-detail-page .blog-entry-content figure {
  max-width: 100%;
}

.blog-detail-page .blog-entry-content figcaption {
  margin-top: -1rem;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.blog-detail-page .blog-entry-content blockquote {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  background: rgba(12, 111, 60, 0.06);
  color: #24334a;
}

.blog-detail-page .blog-entry-content blockquote > :last-child {
  margin-bottom: 0;
}

.blog-detail-page .blog-entry-content table {
  display: block;
  width: 100% !important;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

.blog-detail-page .blog-entry-content :where(th, td) {
  min-width: 120px;
  padding: 0.75rem;
  border: 1px solid #dfe5eb;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  text-align: left;
  vertical-align: top;
}

.blog-detail-page .blog-entry-content th {
  background: #f4f7f9;
  color: #18243a;
  font-weight: 700;
}

.blog-detail-page .blog-entry-content :where(pre, code) {
  font-family: Consolas, Monaco, "Courier New", monospace !important;
}

.blog-detail-page .blog-entry-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: #162033;
  color: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-detail-page .blog-entry-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #dfe5eb;
  opacity: 1;
}

.blog-detail-page .blog-details-right {
  top: 96px;
}

.blog-detail-page .blog-sidebar-widget {
  padding: 20px;
  border: 1px solid #e6ebf0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 52, 109, 0.05);
}

.blog-detail-page .blog-sidebar-widget-title {
  border-radius: 7px;
}

.blog-detail-page .single-suggest-blog-img {
  flex: 0 0 80px;
}

.blog-detail-page .single-suggest-blog-img img {
  width: 80px;
}

.blog-detail-page .single-suggest-blog-content {
  min-width: 0;
}

.blog-detail-page .blog-categories-single {
  border: 1px solid #edf0f3;
}

@media only screen and (max-width: 991px) {
  .blog-detail-page .blog-details-right {
    position: static;
  }

  .blog-detail-page .blog-sidebar-widget {
    margin-top: 28px;
  }
}

@media only screen and (max-width: 767px) {
  .blog-detail-page-title {
    font-size: clamp(1.6rem, 7vw, 2rem) !important;
  }

  .blog-detail-page .blog-detail-article {
    margin-top: 28px;
    border-radius: 9px;
  }

  .blog-detail-page .blog-details-img img {
    height: auto;
    min-height: 180px;
    max-height: 300px;
  }

  .blog-detail-page .blog-entry-content {
    padding: 24px 18px;
    font-size: 1rem;
    line-height: 1.7;
  }

  .blog-detail-page .blog-entry-content :where(p, li),
  .blog-detail-page .blog-entry-content :where(p, li) *,
  .blog-detail-page .blog-entry-content > div {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  .blog-detail-page .blog-entry-content :where(h2, h3, h4, h5, h6) {
    margin-top: 1.65rem;
  }

  .blog-detail-page .blog-entry-content h2,
  .blog-detail-page .blog-entry-content h2 * {
    font-size: 1.5rem !important;
  }

  .blog-detail-page .blog-entry-content h3,
  .blog-detail-page .blog-entry-content h3 * {
    font-size: 1.3rem !important;
  }

  .blog-detail-page .blog-entry-content h4,
  .blog-detail-page .blog-entry-content h4 * {
    font-size: 1.15rem !important;
  }

  .blog-detail-page .blog-entry-content blockquote {
    padding: 1rem;
  }

  .blog-detail-page .blog-sidebar-widget {
    padding: 16px;
  }
}
