/* Slim modern scrollbars for TOC + sidebar */
.toc-column[data-simplebar],
.sidebar-column[data-simplebar] {
  max-height: calc(100vh - var(--toc-top, 120px) - 20px);
}

/* Style the SimpleBar track and thumb */
.simplebar-track.simplebar-vertical {
  width: 6px; /* scrollbar width */
  background: #f1f1f1; /* track color */
  border-radius: 6px;
}

.simplebar-scrollbar::before {
  background-color: #999; /* thumb color */
  border-radius: 6px;
  opacity: 1; /* always visible */
}

/* SINGLE POST: TOC left, content center; no right sidebar */
body.single-post .single-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px;
}
body.single-post .single-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* TOC column */
body.single-post .toc-column {
  position: relative;
}
body.single-post .toc-inner {
  position: sticky;
  top: 120px;
} /* sticks while scrolling; adjust offset for your header */
body.single-post .toc-title {
  margin: 0 0 12px 0;
  font-weight: 700;
  font-size: 1rem;
  color: #222;
}
body.single-post #post-toc {
  font-size: 0.95rem;
}
body.single-post #post-toc .toc-empty {
  color: #666;
  margin: 0;
}
body.single-post #post-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
body.single-post #post-toc li {
  margin: 8px 0;
}
body.single-post #post-toc a {
  color: #222;
  text-decoration: none;
}
body.single-post #post-toc a:hover {
  color: #0073aa;
  text-decoration: underline;
}
body.single-post #post-toc .toc-sub {
  margin-left: 10px;
  font-size: 0.95rem;
  color: #444;
}

/* main content column */
body.single-post .single-column {
  min-width: 0;
}
body.single-post .single-content {
  line-height: 1.7;
  color: #222;
}
body.single-post .single-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* small screens: hide TOC (or move it above content) */
@media (max-width: 900px) {
  body.single-post .single-layout {
    grid-template-columns: 1fr;
  }
  body.single-post .toc-inner {
    position: relative;
    top: auto;
    margin-bottom: 16px;
  }
}

/* active TOC link */
body.single-post #post-toc a.toc-active {
  font-weight: 700;
  color: #0073aa;
}

body.single-post .toc-column {
  position: relative;
  background: white;
  padding-left: 30px;
  padding-right: 30px;
  padding: 30px;
}
body.single-post .single-layout {
  display: grid;
  grid-template-columns: 0.4fr 1fr 0.4fr;
  gap: 15px;
  align-items: start;
}
body.single-post .single-container {
  max-width: 85%;
  margin: 0 auto;
  padding: 20px;
}

body.single-post #post-toc a {
  color: #00628d;
  text-decoration: none;
  color: #1187bc;
}
body.single-post #post-toc li {
  margin: 8px 0;
  box-shadow: 1px 1px 0px 0px #f5faff;
  /* margin-bottom: 11px; */
  padding-bottom: 5px;
}
@media (min-width: 600px) {
  body.single-post .single-container {
    max-width: 91% !important;
    margin: 0 auto;
    padding: 20px;
  }
}
/* TOC list */
body.single-post #post-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
body.single-post #post-toc li {
  margin: 6px 0;
}

/* make link fill the li */
body.single-post #post-toc li a {
  display: block; /* makes full li clickable */
  padding: 4px 6px; /* optional clickable padding */
  color: #00628d; /* base text color */
  text-decoration: none; /* no underline */
  border-radius: 4px; /* subtle rounding for hover bg if you want */
  transition: color 0.2s ease;
}

/* hover state: darker text, no underline */
body.single-post #post-toc li a:hover {
  color: #0a3c52;
  text-decoration: none;
  background: #edf9ff40; /* optional: light bg highlight */
}

/* active/current heading */
body.single-post #post-toc a.toc-active {
  font-weight: 600;
  color: #0073aa;
  background: #eaf6fc; /* optional subtle bg highlight */
}

/*sticky sidebar TOC*/
/* Make the column itself the sticky element */

/*new scrol at end edge*/
/* Make the TOC NAV itself a sticky scroll container (scrollbar at nav edge) */
body.single-post .toc-column {
  position: sticky; /* column sticks under header */
  top: var(--toc-top, 120px); /* set by existing JS or fallback */
  max-height: calc(100vh - var(--toc-top, 120px) - 20px); /* fit viewport */
  /*overflow: auto;* remove scroll/  /* nav becomes the scroll container */
  -webkit-overflow-scrolling: touch;
  z-index: 6;

  /* visual card styles (Option B single outer card) */
  background: #fff;
  border: 1px solid #eceff1;
  border-radius: 0px;
  padding: 8px; /* small padding around title + list */
  box-shadow: 0 6px 18px rgba(12, 20, 30, 0.04);
  box-sizing: border-box;
}

/* Keep title visible: sticky relative to the nav (so it stays at nav top while list scrolls) */
body.single-post .toc-column .toc-title {
  position: sticky;
  top: 8px; /* keep a small gap from the top of the nav */
  margin: 0 0 8px 0;
  z-index: 4;
  background: #fff; /* match nav background so it looks flush */
  padding: 6px 4px; /* optional clickable padding */
  border-radius: 4px;
}

/* The list is now simple — no separate overflow necessary */
body.single-post .toc-list {
  /* no overflow here; the parent nav handles scrolling */
  max-height: none;
  overflow: visible;
  padding: 0;
  margin: 0;
}

/* styling list items/links */
body.single-post #post-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
body.single-post #post-toc li {
  margin: 0px 0;
}
body.single-post #post-toc li a {
  display: block;
  padding: 8px 6px;
  color: #1a6f8e;
  text-decoration: none;
  border-bottom: 0px solid #f0f3f5;
  border-radius: 4px;
}
body.single-post #post-toc li a:hover {
  color: #063e52;
  background: #f7fbfc;
  text-decoration: none;
}

/* Active link */
body.single-post #post-toc a.toc-active {
  color: #0073aa;
  font-weight: 600;
  background: #eaf6fc;
}

/* small-screen: disable sticky & use normal flow */
@media (max-width: 900px) {
  /* body.single-post .toc-column {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    box-shadow: none;
    border: none;
    background: transparent;
  } */
  body.single-post .toc-column .toc-title {
    position: static;
    top: auto;
    background: transparent;
    padding: 0;
  }
}
body.single-post .toc-column .toc-title {
  top: 8px;
  background: #ddf5ff;

  border-radius: 0px !important;
}

body.single-post #post-toc li {
  box-shadow: 0px 0px 0px 0px #f5faff;
  /* margin-bottom: 11px; */
  padding-bottom: 0px;
}
body.single-post #post-toc li a {
  padding: 8px 6px 6px;

  border-bottom: 0px solid #f0f3f5;
  border-radius: 0px;
}

.single-post table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: #333;
  margin-bottom: 30px;
}

.single-post table th,
.single-post table td {
  border: 1px solid #ddd; /* light border */
  padding: 10px 12px;
  text-align: left;
}

.single-post table th {
  background-color: #f0f8ff; /* AliceBlue */
  font-weight: 600;
}

.single-post table tr:nth-child(even) {
  background-color: #fafafa; /* very light alternate row */
}

.single-post table tr:hover {
  background-color: #f5f5f5; /* subtle hover effect */
}
body.single-post .toc-column .toc-title {
  top: 8px;

  margin-left: -10px;
  padding-left: 15px;
  margin-right: -2%;
  position: relative;
}
body.single-post #post-toc li a {
  font-size: 14px;
}

.entry-content p {
  margin-bottom: 15px;
  font-size: 14px;
}
/* 
@media (min-width: 992px) {
  .site-banner__content .site-banner__title {
    width: 75%;
  }
  .nw-breadcrumb-strip .nw-breadcrumb-inner {
    max-width: 91%;
  }
} */
@media (min-width: 600px) {
  .site-banner__content .site-banner__title {
    width: 75%;
  }
  .nw-breadcrumb-strip .nw-breadcrumb-inner {
    max-width: 91% !important;
  }
}

/* UPDATE TO STRUCTURE BY RMEOVING META INFO FROM BANNER, AND ADDING AT END THE AUTHOT NAME ETC*/

/* hide banner meta if any other theme prints it */
.site-banner .site-banner__subtitle,
.site-banner .post-meta,
.site-banner .meta {
  display: none !important;
}

/* Author block styles */
.custom-author-wrapper {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e7eef6;
}

.custom-author-box {
  display: flex;
  gap: 14px;
  align-items: center;
}

.custom-author-avatar img {
  border-radius: 50%;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid #eee;
}

.custom-author-meta .custom-author-name {
  display: block;
  font-weight: 600;
  color: #163a59;
  text-decoration: none;
  margin-bottom: 4px;
}

.custom-author-meta .custom-author-date {
  color: #6b7a86;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.custom-author-bio {
  color: #576471;
  font-size: 0.95rem;
  margin-top: 6px;
  line-height: 1.4;
}

/* responsive: stack avatar on small screens */
@media (max-width: 700px) {
  .custom-author-box {
    flex-direction: row;
    gap: 12px;
  }
  .nw-breadcrumb-strip {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 6px 16px;
    box-sizing: border-box;
    font-size: 10px;
    z-index: 20;
    color: #33475b;
    line-height: 15px;
  }
}

/* Hide scrollbar arrows (up/down buttons) */
.toc-column::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/*test*/
/* --------- UNIVERSAL: hide scrollbar arrow buttons (Chrome / Edge / Safari) --------- */

/* Target common scroller containers used on your page.
   Add/remove selectors to match the real scroller if needed. */
/* .toc-column,
.toc-inner,
.post-toc,
.sidebar-column,
.sidebar-column * {
 
  scrollbar-width: thin !important;
} */
/* --- SimpleBar scrollbars --- */

/* TOC scrollbar */
.toc-column .simplebar-track.simplebar-vertical {
  width: 6px;
  background: #f1f1f1;
  border-radius: 6px;
}
.toc-column .simplebar-scrollbar::before {
  background-color: #548fca; /* blue thumb */
  border-radius: 6px;
  opacity: 1;
}

/* Right sidebar (form) scrollbar */
.sidebar-column .simplebar-track.simplebar-vertical {
  width: 6px;
  background: #315981; /* track */
  border-radius: 6px;
}
.sidebar-column .simplebar-scrollbar::before {
  background-color: #ff6600; /* orange thumb */
  border-radius: 6px;
  opacity: 1;
}

body.single-post #post-toc li a {
  font-size: 13px;
}
body.single-post #post-toc li a:hover {
  color: #1a6f8e;
  text-decoration: underline;
  text-underline-offset: 5px;
}

body.single-post #post-toc a.toc-active {
  color: #1a6f8e;
  font-weight: 500;
  background: #eaf6fc;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.single-post #post-toc ul li:first-child {
  margin-top: 10px;
}
/* responsive: stack avatar on small screens */
@media (max-width: 767px) {
  .nw-breadcrumb-strip {
    padding: 6px 16px;
    box-sizing: border-box;
    font-size: 11px !important;
    color: #33475b;
    line-height: 15px;
  }
  .nw-breadcrumb-strip .nw-breadcrumb-inner {
    gap: 5px;
  }
  .nw-breadcrumb-strip .nw-breadcrumb-inner {
    gap: 5px;
  }
  body.single-post #post-toc li a {
    padding: 6px 6px 6px;
  }
}
body.single-post #post-toc li a {
  padding: 6px 6px 6px;
}

/*toc mobile view accordion*/
/* only on mobile: adjust breakpoint to match your site */
@media (max-width: 767px) {
  /* make the title look clickable and reserve space for icon */
  .toc-inner .toc-title {
    position: relative;
    cursor: pointer;
    padding-right: 40px; /* room for icon on right */
    user-select: none;
  }

  /* plus icon when collapsed */
  .toc-inner.collapsed .toc-title::after {
    content: "+";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
  }

  /* minus icon when opened */
  .toc-inner.open .toc-title::after {
    content: "−";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
  }

  /* collapse the post-toc content */
  .toc-inner.collapsed #post-toc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
    padding-top: 0; /* preserve header height only */
  }

  /* show when open — set max-height large enough for your longest TOC */
  .toc-inner.open #post-toc {
    max-height: 1200px; /* large value to allow expansion */
    transition: max-height 300ms ease;
    padding-top: 12px;
  }

  /* a small accessible focus style */
  .toc-inner .toc-title:focus {
    outline: 2px solid rgba(0, 0, 0, 0.12);
    outline-offset: 3px;
    outline: none !important;
  }
}
@media (max-width: 767px) {
  .entry-content p {
    font-size: 14px;
  }
  .entry-content li strong,
  .entry-content p strong {
    font-size: 14px;
  }
  .entry-content ul li,
  .entry-content ol li {
    font-size: 14px;
  }
  .nw-breadcrumb-strip .nw-breadcrumb-inner {
    flex-wrap: wrap;
  }
  .toc-inner.open #post-toc {
    padding-top: 1px;
  }
  .entry-content li strong,
  .entry-content p strong {
    text-wrap-mode: nowrap;
    /* text-wrap: revert; */
  }
  .custom-author-wrapper {
    margin-top: 0px;
  }
  main#main {
    margin-bottom: 0px;
  }
  .sidebar-column {
    margin-bottom: 50px;
  }
  .sidebar-form-wrapper .form-group.filled label,
  .sidebar-form-wrapper .form-group.focused label,
  .sidebar-form-wrapper input:focus + label,
  .sidebar-form-wrapper textarea:focus + label,
  .sidebar-form-wrapper label.floating {
    top: -10px !important;
  }

  .sidebar-form-wrapper h3.side-form-heading {
    margin-bottom: 18px !important;

    margin-top: 10px !important;
  }
  .sidebar-form-wrapper.first-field-floated h3,
  .sidebar-form-wrapper.first-field-floated h3.side-form-heading {
    margin-bottom: 34px !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  body.single-post .single-container {
    max-width: 99% !important;
  }
  .nw-breadcrumb-strip .nw-breadcrumb-inner {
    max-width: 100% !important;
  }
  body.single-post .single-layout {
    display: grid;
    grid-template-columns: 0.4fr 1fr 0.5fr;
    gap: 5px;
    align-items: start;
  }
  body.single-post .toc-column {
    position: sticky;
    overflow: auto;
    max-height: 60vh;
  }
  body.single-post #post-toc li a {
    padding: 5px 6px 5px;
  }
  body.single-post #post-toc li a {
    font-size: 12px;
    line-height: 1.4;
  }
  body.single-post .single-layout {
    padding-bottom: 12% !important;
  }
  .ast-separate-container .ast-article-single {
    padding: 1.5em;
  }
  .entry-content p {
    margin-bottom: 13px;
    font-size: 14px;
    line-height: 1.6;
  }
  .single-content.entry-content li strong {
    font-size: 14px;
  }
  .entry-content :where(h2) {
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
  }
  .entry-content :where(h3) {
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
  }
}

/* Share button container */
.post-share {
  margin: 10px 0 0 0;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.custom-author-wrapper {
  margin-top: 30px;
}

.post-share .share-label {
  font-weight: 600;
  margin-right: 5px;
  color: #444;
}

/* Circle buttons */
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  transition: all 0.3s ease;
}

/* Network colors */
.share-btn.fb {
  background: #3b5998;
}
.share-btn.tw {
  background: #1da1f2;
}
.share-btn.ln {
  background: #0077b5;
}
.share-btn.wa {
  background: #25d366;
}

/* Hover effect */
.share-btn:hover {
  opacity: 0.85;
  color: white;
}
