.custom-single-wrapper {
  width: 100%;
  padding: 6px;
  box-sizing: border-box;
}
.custom-single-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0px;
  box-sizing: border-box;
}
.single-row {
  width: 100%;
}
.single-header-row .single-header-inner {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  justify-content: space-between;
}
.single-header-left {
  flex: 1 1 700px;
  min-width: 320px;
  max-width: 900px;
}
.post-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #263a4f;
  color: #ffffff;
  font-family: "DM Sans", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  margin-bottom: 18px;
}
.post-category .cat-icon {
  display: inline-flex;
  color: #ffffff;
}
.single-post-title {
  margin: 0 0 18px 0;
  font-family: "Albert Sans", Sans-serif;
  font-size: 45px;
  font-weight: 600;
  line-height: 50px;
  color: #263a4f;
}
.single-post-excerpt {
  color: #263a4f;
  font-family: "DM Sans", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}
.single-header-right {
  width: 260px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.author-block {
  display: flex;
  gap: 12px;
  align-items: center;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.author-meta .author-name,
.author-meta .post-date {
  color: #263a4f;
  font-family: "DM Sans", Sans-serif;
  font-size: 16px;
  font-weight: 400;
}
.post-share {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-share .share-label {
  color: #263a4f;
  font-family: "DM Sans", Sans-serif;
  font-size: 16px;
  font-weight: 400;
}
.share-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.share-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #263a4f;
  background: rgba(38, 58, 79, 0.06);
}
.share-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.single-feature-row .single-featured-image img,
.single-feature-row .single-featured-video iframe,
.single-feature-row .single-featured-video video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}
.single-main-row .single-main-inner {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: nowrap;
}
.toc-col {
  flex: 0 0 260px;
  max-width: 260px;
  min-width: 200px;
}
.content-col {
  flex: 1 1 720px;
  min-width: 300px;
  max-width: calc(100% - 520px);
  box-sizing: border-box;
}
.related-col {
  flex: 0 0 260px;
  max-width: 260px;
  min-width: 200px;
}
.toc-inner {
  position: sticky;
  top: 120px;
  align-self: flex-start;
}
.toc-heading {
  font-family: "Albert Sans", Sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #263a4f;
  margin-bottom: 12px;
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-item {
  margin-bottom: 10px;
}
.toc-item a {
  text-decoration: none;
  color: #263a4f;
  font-family: "DM Sans", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.18s ease;
  display: inline-block;
}
.toc-item a:hover {
  color: #009f8a;
}
.toc-item a.active {
  color: #00bfa7 !important;
  font-weight: 600;
}
.content-inner {
  max-height: calc(100vh - 240px);
  overflow: auto;
  padding-right: 6px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.content-inner p {
  margin-bottom: 20px;
  color: #263a4f;
  font-family: "DM Sans", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}
.content-inner::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}
.content-inner::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0);
  border-radius: 8px;
  transition: background 220ms ease, opacity 220ms ease;
  min-height: 24px;
}
.content-inner:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
}
.content-inner {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}
.post-tags {
  margin-top: 24px;
  font-family: "DM Sans", Sans-serif;
  font-size: 16px;
  color: #263a4f;
}
.post-tags .tag-item {
  display: inline-block;
  margin-right: 8px;
  text-decoration: none;
  color: #263a4f;
}
.related-heading {
  font-family: "Albert Sans", Sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #263a4f;
  margin-bottom: 12px;
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.related-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 17px;
  border-radius: 8px;
  color: inherit;
  background: rgba(38, 58, 79, 0.03);
  justify-content: space-between;
}
.related-left {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.related-title {
  color: #263a4f;
  font-family: "DM Sans", Sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.related-date {
  color: #263a4f;
  font-family: "DM Sans", Sans-serif;
  font-size: 14px;
  font-weight: 400;
}
.related-right {
  flex: 0 0 70px;
}
.related-thumb {
  width: 100px;
  height: 100px;
  border-radius: 10%;
  object-fit: cover;
}
.related-thumb.placeholder {
  width: 100px;
  height: 100px;
  border-radius: 10%;
  background: #e9ecef;
}
.single-latest-news .latest-news-title {
  font-family: "Albert Sans", Sans-serif;
  font-size: 35px;
  font-weight: 600;
  line-height: 40px;
  color: #263a4f;
  margin-bottom: 20px;
  text-align: center;
}
.single-client-testimonials {
  margin: 60px 0;
}
.single-main-inner {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}
.toc-col {
  flex: 0 0 260px;
  max-width: 260px;
  min-width: 200px;
}
.content-col {
  flex: 1 1 720px;
  min-width: 300px;
  transition: all 0.3s ease;
}
.single-main-inner:not(:has(.toc-col)) .content-col {
  max-width: calc(100% - 80px);
}
.single-main-inner:not(:has(.toc-col)) .related-col {
  flex: 0 0 260px;
}
.single-main-inner:not(:has(.related-col)) .content-col {
  max-width: calc(100% - 260px);
}
.single-main-inner:not(:has(.related-col)) .toc-col {
  flex: 0 0 260px;
}
.single-main-inner:not(:has(.toc-col)):not(:has(.related-col)) .content-col {
  flex: 1 1 100%;
  max-width: 100%;
}
.toc-col,
.related-col {
  position: sticky;
  top: 120px;
  align-self: flex-start;
}
.content-col .content-inner {
  overflow: visible !important;
  max-height: none !important;
}
.toc-item a.active {
  color: #00bfa7 !important;
  font-weight: 600;
  border-left: 3px solid #00bfa7;
  padding-left: 8px;
}
.content-inner h1.active-heading,
.content-inner h2.active-heading,
.content-inner h3.active-heading,
.content-inner h4.active-heading {
  color: #00bfa7 !important;
}
.related-ebook-side {
  background-color: #fafafa;
  border-style: solid;
  border-width: 0px 0px 5px 0px;
  border-color: #00bfa7;
  box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.06);
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
  margin-top: 0px;
  margin-bottom: 50px;
  padding: 5px 15px 15px 15px;
  z-index: 2;
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
}
.new-label {
  background-color: #00bfa62e;
  color: #1ac0a8;
  font-family: "DM Sans", Sans-serif;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
}
html {
  scroll-behavior: smooth;
}

@media (max-width: 1024px) {
  .single-header-row .single-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  .single-header-left {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .single-header-right {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .author-block {
    flex: 1;
  }
  .post-share {
    flex: 1;
    align-items: flex-start;
  }
  .single-main-row .single-main-inner {
    flex-wrap: wrap;
    gap: 25px;
  }
  .toc-col {
    order: 1;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .content-col {
    order: 2;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .related-col {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .toc-inner {
    position: relative;
    top: 0;
  }
  .content-inner {
    max-height: none;
    overflow: visible;
  }
  .single-post-title {
    font-size: 38px;
    line-height: 44px;
  }
}
@media (max-width: 991px) {
  .single-main-inner {
    flex-direction: column;
  }
  .toc-col,
  .related-col {
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
    order: 1;
  }
  .content-col {
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
    order: 0;
  }
  .toc-inner {
    position: static !important;
    top: auto !important;
  }
  .related-col {
    position: static !important;
  }
  .related-inner-side-post {
    display: none !important;
  }
  .single-main-row .single-main-inner {
    flex-direction: column;
  }
  .toc-col,
  .content-col,
  .related-col {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .content-inner {
    max-height: none;
    overflow: visible;
  }
  .toc-col {
    position: static;
    order: 0;
  }
}
@media (max-width: 768px) {
  .custom-single-container {
    padding: 8px;
    gap: 20px;
  }
  .single-header-left {
    flex: 1 1 100%;
  }
  .single-header-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .author-block {
    gap: 10px;
  }
  .author-avatar {
    width: 60px;
    height: 60px;
  }
  .single-post-title {
    font-size: 30px;
    line-height: 36px;
  }
  .post-category {
    font-size: 14px;
    padding: 6px 10px;
  }
  .single-post-excerpt {
    font-size: 15px;
    line-height: 1.6;
  }
  .single-main-row .single-main-inner {
    flex-direction: column;
  }
  .toc-col,
  .content-col,
  .related-col {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .toc-heading {
    font-size: 18px;
  }
  .toc-item a {
    font-size: 15px;
  }
  .related-item {
    flex-direction: row;
    gap: 10px;
    padding: 12px;
  }
  .related-title {
    font-size: 14px;
  }
  .related-date {
    font-size: 13px;
  }
  .related-right {
    flex: 0 0 60px;
  }
  .related-thumb {
    width: 100%;
    border-radius: 6px;
  }

  
}
@media (max-width: 480px) {
  .single-post-title {
    font-size: 26px;
    line-height: 32px;
  }
  .post-category {
    font-size: 13px;
  }
  .share-icons {
    flex-wrap: wrap;
    gap: 6px;
  }
  .share-icon {
    width: 36px;
    height: 36px;
  }
  .toc-heading {
    font-size: 17px;
  }
  .toc-item a {
    font-size: 14px;
  }
  .related-heading {
    font-size: 18px;
  }
  .related-title {
    font-size: 13px;
  }
}



