.single-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ------------------------------------- */
.breadcrumb-navigation {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-home {
  width: 18px;
  height: 18px;
  color: var(--category-item);
}

.breadcrumb-home:hover {
  color: #613CC3;
}

.breadcrumb-navigator {
  width: 16px;
  height: 16px;
  color: var(--single-navigator-icon);
  transform: rotate(90deg);
}

.breadcrumb-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--breadcrumb-link);
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: #613CC3;
}

.breadcrumb-current-post {
  font-size: 14px;
  font-weight: 600;
  color: var(--breadcrumb-current-post);
  padding: 4px 8px;
  border-radius: 6px;
  background-color: var(--pagination-active-bg);
}

/* ------------------------------------- */
.main-banner {
  width: 100%;
  height: 554px;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.main-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  z-index: 1;
  pointer-events: none;
}

.main-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-banner-info-and-tags {
  z-index: 2;
  position: absolute;
  right: 48px;
  left: 32px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

.main-banner-info-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-banner-header {
  width: max-content;
  background-color: #F9F5FF;
  border-radius: 9999px;
  padding: 4px;
  border: 1px solid #E9D7FE;
}

.main-banner-read-time {
  color: #6941C6;
  margin: 0 8px;
  font-size: 12px;
  font-weight: 400;
}

.main-banner-category {
  border-radius: 9999px;
  padding: 2px 8px;
  background-color: #ffffff;
  border: 1px solid #E9D7FE;
  color: #6941C6;
  font-size: 12px;
  font-weight: 400;
}

.main-banner-title {
  font-size: 36px;
  font-weight: 600;
  color: #ffffff;
}

.main-banner-details {
  display: flex;
  align-items: center;
}

.main-banner-date {
  padding-left: 16px;
  border-left: 1px solid #ffffff;
}

.main-banner-comments {
  padding: 0 16px;
}

.main-banner-views {
  padding-right: 16px;
  border-right: 1px solid #ffffff;
}

.main-banner-comments,
.main-banner-date,
.main-banner-views {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  line-height: 1;
  font-size: 12px;
  font-weight: 400;
}

.main-banner-date svg,
.main-banner-comments svg,
.main-banner-views svg {
  width: 18px;
  height: 18px;
  margin-top: -4px;
}

.main-banner-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-banner-tag {
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  padding: 5px 16px 3px;
  border-radius: 9999px;
  border: 1px solid #E9D7FE4D;
  background-color: #F9F5FF1A;
}

/* ------------------------------------- */
.post-and-sidebar-container {
  margin-top: 24px;
  margin-bottom: 80px;
  display: flex;
  gap: 80px;
  position: relative;
}

.main-post {
  width: 70%;
}

.main-post-content {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--main-post-content-border);
  display: flex;
  flex-direction: column;
  /*align-items: center;*/
  text-align: justify;
  gap: 20px;
}

/* ------------------------------------- */
.main-post-content ul {
  padding-right: 16px;
  width: 100%;
  text-align: right;
}

.main-post-content strong,
.main-post-content h2 {
  text-align: start !important;
}

.main-post-content p {
  width: 100%;
}

.main-post-content h2,
.main-post-content h3,
.main-post-content h4 {
  margin-bottom: -20px !important;
  width: 100%;
}

.main-post-content img {
  min-width: 0;
  flex-shrink: 1;
  margin-top: 20px;
  margin-bottom: 20px;
}

.main-post-content .wp-caption,
.main-post-content .wp-caption img {
  max-width: 100% !important;
  width: auto !important;
  height: auto;
}

.main-post-content .wp-caption.aligncenter {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: fit-content !important;
  text-align: center;
}

.main-post-content img.aligncenter {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.main-post-content img,
.main-post-content video {
  border-radius: 12px;
}

.main-post-content a {
  color: #5B3AB4;
  text-decoration: none;
}

.main-post-content ol {
  padding-right: 16px;
  width: 100%;
}

.main-post-content table {
  border-collapse: collapse;
  /* allow border-radius */
  border-spacing: 0;
  /* no gaps between cells */
  border: 1px solid var(--related-post-category-border);
  border-radius: 12px;
  /* round corners on table */
  overflow: hidden;
  /* clip inner borders to corners */
  font-size: 14px;
  width: 100%;
}

.main-post-content table tr:first-child td {
  font-size: 16px;
  font-weight: 600;
  background-color: #8051FF33;
}

.main-post-content table {
  text-align: right;
}

.main-post-content table th:first-child {
  border-top-left-radius: 12px;
}

.main-post-content table th:last-child {
  border-top-right-radius: 12px;
}

.main-post-content table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.main-post-content table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.main-post-content table th,
.main-post-content table td {
  border: 1px solid var(--related-post-category-border);
  padding: 8px 12px;
}

.main-post-content table tr:nth-child(odd) {
  background-color: var(--table-row);
}

.main-post-content a {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: inline;
  color: var(--related-post-category);
}

@media screen and (max-width: 1023px) {
  .main-post-content table {
    font-size: 12px;
  }

  .main-post-content table tr:first-child td {
    font-size: 14px;
  }

}

/* ------------------------------------- */
.yasr-visitor-votes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ------------------------------------- */
.single-sidebar {
  width: 30%;
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  z-index: 10;
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 120px;
  padding-left: 16px;
}

.table-of-contents {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.toc-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-footer);
}

.toc-list {
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toc-li {}

.toc-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--main-top-icon);
  text-decoration: none;
  display: block;
  /* Make sure the <a> spans the available width */
  max-width: 100%;
  /* Ensure it doesn't exceed the container's width */
  white-space: nowrap;
  /* Prevent wrapping */
  overflow: hidden;
  /* Hide overflowed text */
  text-overflow: ellipsis;
  /* Add "..." when the text overflows */
}

.toc-link:hover {
  /* font-weight: 800; */
  color: #5B3AB4;
}

.toc-link.active {
  color: #5B3AB4;
  font-weight: 700;
}

/* ------------------------------------- */
.related-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-related-posts {
  display: none;
}

.related-posts-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-footer);
}

.related-posts-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.related-post {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.related-post-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-post-img img {
  min-width: 0;
  min-height: 0;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
}

.related-post-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.related-post-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.related-post-category {
  font-size: 11px;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 9999px;
  color: var(--related-post-category);
  background-color: var(--related-post-category-bg);
  border: 1px solid var(--related-post-category-border);
}

.related-post-arrow {
  width: 10px;
  height: 10px;
  color: var(--post-card-author);
  vertical-align: middle;
  line-height: 1;
}

.related-post:hover .related-post-arrow {
  color: #9767E1 !important;
}

.related-post-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--post-card-author);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.related-post-read-time {
  font-size: 11px;
  font-weight: 300;
  color: var(--related-post-read-time);
}

/* ------------------------------------- */
.post-share {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.post-share-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-share-avatar {
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background-color: #8051FF33;
  border: 1px solid #0000000F;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-share-avatar svg {
  width: 24px;
  height: 24px;
  color: #9767E1;
}

.post-share-author-and-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-share-author {
  color: var(--post-card-author);
  font-size: 14px;
  font-weight: 400;
}

.post-share-date {
  color: var(--post-card-date);
  font-size: 14px;
  font-weight: 400;
}

.post-share-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-share-copy,
.post-share-share {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #8051FF80;
  color: #6941C6;
  background-color: transparent;
  cursor: pointer;
}

.post-share-copy svg,
.post-share-share svg {
  width: 20px;
  height: 20px;
}

.post-share-copy:hover,
.post-share-share:hover {
  background-color: #8051FF33;
}

.post-share-copy:disabled {
  cursor: default;
  background-color: transparent;
}

/* ------------------------------------- */
.post-comments {
  margin-top: 60px;
  border: 1px solid var(--main-post-content-border);
  border-radius: 16px;
}

.comment-wrapper {
  transition: max-height 0.4s ease;
  overflow: hidden;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--main-post-content-border);
}

.comments-header-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comments-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-footer);
}

.comments-header-description {
  font-size: 14px;
  font-weight: 400;
  color: var(--comments-description);
}

.send-comment-btn {
  padding: 8px 20px;
  border-radius: 8px;
  background-color: #613CC3;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 200ms;
}

.send-comment-btn:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.comments-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  padding-bottom: 12px;
  display: flex;
  gap: 12px;
  width: 100%;
}

.comment-item.is-reply {
  margin-top: 16px;
}

.comment-item-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 20px;
}

.comment-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
}

.comment-avatar-border {
  height: 100%;
  width: 1px;
  background-color: var(--main-post-content-border);
}

.comment-item-left {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--comment-border);
  padding-bottom: 12px;
}

.comment-item:last-child>.comment-item-left {
  border-bottom: none;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-header-separator {
  width: 4px;
  height: 4px;
  background-color: #D9D9D9;
  border-radius: 9999px;
}

.comment-author {
  font-size: 14px;
  font-weight: 500;
  color: var(--main-top-description);
}

.comment-date {
  font-size: 12px;
  font-weight: 400;
  color: var(--post-card-date);
}

.comment-content {
  font-size: 16px;
  font-weight: 400;
  color: var(--main-top-description);
}

.comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comment-children {}

.comment-children:last-child {
  padding-bottom: 0;
}

.all-comments-btn-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.all-comments-btn {
  font-size: 14px;
  font-weight: 500;
  color: #8051FE;
  border: none;
  font-family: inherit;
  background-color: transparent;
  cursor: pointer;
}

.no-comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin: 48px auto;
}

.no-comments-icon {
  width: 48px;
  height: 48px;
  color: var(--post-card-date);
}

.no-comments-text {
  font-size: 24px;
  font-weight: 500;
  color: var(--post-card-date);
}

/* ------------------------------------- */
@media screen and (max-width: 1024px) {
  .breadcrumb-navigation {
    display: none;
  }

  /* ------------------------------------- */
  .main-banner {
    height: 332px;
  }

  .main-banner::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
  }

  .main-banner-info-and-tags {
    flex-direction: column;
    gap: 16px;
    align-items: start;
    right: 12px;
    left: 8px;
    bottom: 12px;
  }

  .main-banner-info-container {
    gap: 8px;
  }

  .main-banner-header {
    padding: 3px 4px 4px;
  }

  .main-banner-read-time {
    font-size: 10px;
  }

  .main-banner-category {
    font-size: 10px;
  }

  .main-banner-title {
    font-size: 16px;
  }

  .main-banner-date {
    padding-left: 12px;
  }

  .main-banner-comments {
    padding: 0 12px;
  }

  .main-banner-views {
    padding-right: 12px;
  }

  .main-banner-comments,
  .main-banner-date,
  .main-banner-views {
    gap: 6px;
  }

  .main-banner-date svg,
  .main-banner-comments svg,
  .main-banner-views svg {
    width: 16px;
    height: 16px;
  }

  .main-banner-tag {
    font-size: 12px;
    padding: 4px 12px 2px;
  }

  /* ------------------------------------- */
  .post-share-date,
  .post-share-author {
    font-size: 12px;
  }

  .post-share-avatar {
    width: 44px;
    height: 44px;
  }

  .post-share-copy,
  .post-share-share {
    width: 34px;
    height: 34px;
  }

  .post-share-copy svg,
  .post-share-share svg {
    width: 18px;
    height: 18px;
  }

  /* ------------------------------------- */
  .post-and-sidebar-container {
    flex-direction: column;
    gap: 40px;
  }

  .single-sidebar {
    width: 100%;
    position: static;
    z-index: 0;
    max-height: auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 0;
    padding-left: 0;
  }

  .main-post {
    width: 100%;
  }

  .related-posts {
    display: none;
  }

  /* ------------------------------------- */
  .mobile-related-posts {
    display: flex;
    flex-direction: column;
  }

  /* ------------------------------------- */
  .comments-header-description {
    display: none;
  }

  .comments-header {
    padding: 20px 20px;
  }

  .send-comment-btn {
    font-size: 12px;
  }

  .comments-title {
    font-size: 16px;
  }

  .comment-author {
    font-size: 12px;
  }

  .comment-date {
    font-size: 10px;
  }

  .comment-content {
    font-size: 14px;
  }

  /* ------------------------------------- */
  .no-comments-icon {
    width: 36px;
    height: 36px;
  }

  .no-comments-text {
    font-size: 16px;
  }

}

@media screen and (max-width: 1280px) {
  .related-post-img img {
    width: 80px;
    height: 80px;
  }
}