/* Unified blog pattern inspired by fleet-management-system.html */
:root {
  --blog-bg: #f5f8fb;
  --blog-surface: #ffffff;
  --blog-border: #e2e8f0;
  --blog-text: #1e293b;
  --blog-muted: #64748b;
  --blog-accent: #0f766e;
  --blog-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

#readingProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  z-index: 9999;
  background: linear-gradient(90deg, #0f766e 0%, #0284c7 100%);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
  transition: width 0.08s linear;
}

#page-title .pagetitle__heading {
  font-size: clamp(32px, 4.8vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

#page-title .breadcrumb {
  justify-content: center;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  padding: 10px 18px;
  display: inline-flex;
  width: auto;
  margin: 0 auto;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

#page-title .breadcrumb .breadcrumb-item,
#page-title .breadcrumb .breadcrumb-item a {
  color: #0f172a !important;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

#page-title .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #475569 !important;
}

#page-title .breadcrumb .breadcrumb-item.active {
  color: #1e3a8a !important;
}

#page-title .container .row .col-lg-12 {
  text-align: center;
}

#blogSingle {
  background:
    radial-gradient(circle at 5% 0%, rgba(15, 118, 110, 0.08), transparent 30%),
    radial-gradient(circle at 95% 20%, rgba(37, 99, 235, 0.08), transparent 28%),
    var(--blog-bg);
}

#blogSingle .sidebar {
  position: sticky;
  top: 105px;
}

#blogSingle .sidebar .widget {
  border: 1px solid var(--blog-border);
  border-radius: 16px;
  background: var(--blog-surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-bottom: 20px;
}

#blogSingle .widget__title {
  margin: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--blog-border);
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

#blogSingle .widget__content {
  padding: 14px 16px;
}

#blogSingle .widget.widget-toc .widget__content {
  padding: 12px;
}

#blogSingle .toc-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#blogSingle .toc-link {
  display: block;
  padding: 11px 12px;
  border: 1px solid #d5dee8;
  border-radius: 11px;
  background: #f7fafc;
  color: #1e3a5f;
  font-size: 16px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

#blogSingle .toc-link:hover,
#blogSingle .toc-link:focus {
  border-color: #a8b8cc;
  background: #eef4fb;
  color: #123454;
  text-decoration: none;
}

#blogSingle .toc-link--sub {
  margin: -2px 0 8px 16px;
  padding: 7px 12px;
  font-size: 14px;
  line-height: 1.35;
  border: 0;
  border-left: 2px solid #c8d6e8;
  border-radius: 0;
  background: transparent;
  color: #35567a;
}

#blogSingle .toc-link--sub.is-active,
#blogSingle .toc-link.is-active {
  border-color: #0f766e;
  background: #eef8f7;
  color: #0f4e4a;
  font-weight: 600;
}

#blogSingle .widget-post-item {
  border-radius: 12px;
  padding: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-bottom: 8px;
}

#blogSingle .widget-post-item:hover {
  background-color: #f8fafc;
  transform: translateY(-1px);
}

#blogSingle .widget__post-img img {
  border-radius: 10px;
}

#blogSingle .blog-item {
  border: 1px solid var(--blog-border);
  border-radius: 20px;
  background: var(--blog-surface);
  box-shadow: var(--blog-shadow);
  overflow: hidden;
}

#blogSingle .blog__img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

#blogSingle .blog__content {
  padding: clamp(20px, 2.2vw, 34px);
}

#blogSingle .blog__content > .blog__title {
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

#blogSingle .blog__desc p,
#blogSingle .blog__desc li {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.82;
  color: var(--blog-text);
}

#blogSingle .blog__desc h2.blog__title {
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.28;
  margin-top: 38px;
  margin-bottom: 16px;
  color: #0f172a;
  position: relative;
  padding-bottom: 10px;
  scroll-margin-top: 120px;
}

#blogSingle .blog__desc h2.blog__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 68px;
  height: 3px;
  background: linear-gradient(90deg, #0f766e 0%, #38bdf8 100%);
  border-radius: 999px;
}

#blogSingle .blog__desc h3 {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.38;
}

#blogSingle .blog__desc .mid-cta {
  background: linear-gradient(145deg, #eef8ff 0%, #e7f3ff 100%) !important;
  border-color: #b9d8f7 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

#blogSingle .blog__desc .mid-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#blogSingle .blog__desc .mid-cta-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 9px;
  background: #dc2626;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.2;
}

#blogSingle .blog__desc .mid-cta-demo:hover {
  background: #b91c1c;
  color: #ffffff;
  text-decoration: none;
}

#blogSingle .blog__desc .mid-cta-link {
  color: #0f4e7a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 1199px) {
  #blogSingle .sidebar {
    top: 92px;
  }
}

@media (max-width: 991px) {
  #blogSingle .sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  #page-title .breadcrumb {
    border-radius: 12px;
    padding: 8px 12px;
  }

  #blogSingle .blog-item {
    border-radius: 16px;
  }

  #blogSingle .blog__content {
    padding: 18px;
  }
}
