.post-content {
  padding-top: 40px;

  display: flex;
  gap: 30px;
  margin-bottom: 90px;
}

.post-details h1:empty,
.post-details h2:empty,
.post-details h3:empty,
.post-details h4:empty,
.post-details h5:empty,
.popular__container-item--content .post-details p:empty,
.popular__container-item--title:has(h3:empty) {
  display: none;
}

.page-breadcrumb {
  margin: 0;
}

.post-details h1:first-child,
.post-details h2:first-child,
.post-details h3:first-child,
.post-details h4:first-child,
.post-details h5:first-child .post-details h6:first-child,
.post-details p:first-child,
.post-details ul:first-child,
.post-details li:first-child {
  margin-top: 0px;
}

/* Subtitle */

.post-details h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--color-primary);
  margin-top: 43.2px;
  font-weight: 700;
  text-wrap: wrap;
  margin-bottom: 30px;
}

.post-details h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 36.4px;
  text-wrap: wrap;
}

.post-details h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 31.2px;
  text-wrap: wrap;
}

.post-details h4 {
  font-size: 1.25rem;
  line-height: 1.4;
  color: #000;
  font-weight: 600;
  text-wrap: wrap;
  /* padding-top: 40px; */
  margin-top: 28px;
}

.post-details h5 {
  font-size: 1.125rem;
  line-height: 1.4;
  color: #000;
  font-weight: 500;
  text-wrap: wrap;
  /* padding-top: 40px; */
  margin-top: 25.2px;
}

.post-details h6 {
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
  font-weight: 500;
  text-wrap: wrap;
  /* padding-top: 40px; */
  margin-top: 24px;
}

.post-details p {
  color: #000;
  font-size: 1rem;
  line-height: 24px;
  margin-top: 8px;
  text-align: justify;
}

.post-details a {
  color: var(--color-primary);
  /*color: #000;*/
  font-size: 1rem;
  line-height: 24px;
  margin-top: 8px;
  text-align: justify;
}

.post-details ul:not(.toc__main) {
  /* list-style: none !important; */
  padding-left: 15px;
  margin-top: 24px;
  list-style: disc inside;
  /* padding-top: 36px; */
}

.post-details .toc__main .toc__sub {
  margin-top: 0px;
  list-style-type: none;
}

.post-details ul:not(.toc__main) li ul {
  margin-top: 0px;
}

.post-details ol:not(.toc__main) {
  padding-left: 15px;
  margin-top: 24px;
  list-style-type: decimal;
}

.post-details > :not(.post__details-toc) li {
  position: relative;
  padding-left: 10px;
  margin-top: 12px;
  color: #000;
  font-size: 16px;
  line-height: 1.5;
}

.post-details > :not(.post__details-toc) li::before {
  display: none;
}

.post-details > :not(.post__details-toc) li::marker {
  color: var(--color-primary);
  font-size: 16px;
}

.post-content .post-main {
  flex-basis: 68%;
}

.post-content .post-details {
  color: #1e1e1e;
  width: 100%;
}

.post-content .post-sider {
  flex-basis: 32%;
}

/* #region Post Details Style */
.post-details {
  --post-element-spacing: 30px;
}

/* .post-details h2 {
  color: var(--color-primary);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: normal;
  margin-bottom: var(--post-element-spacing);
} */

.post-details img {
  margin-bottom: var(--post-element-spacing);
}

.post-details time {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 12px;
  display: block;
}

/* .post-details h3:not(.toc__title) {
  font-size: 2.375rem;
  font-weight: 700;
  line-height: 2.813rem;
  margin-bottom: var(--post-element-spacing);
  text-wrap: wrap;
} */

.post-details .post__details-toc {
  margin-top: var(--post-element-spacing);
  margin-bottom: var(--post-element-spacing);
  display: flex;
  padding: 20px 0px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  background-color: var(--color-grey);
  width: fit-content;
  min-width: 480px;
  position: relative;
  transition: all 0.3s linear;
}

.post__details-toc .toc__title {
  padding: 2.5px 24px;
  width: 100%;
  color: var(--color-primary);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 0px;
  position: relative;
}

.post__details-toc .toc__expand {
  position: absolute;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(10%) sepia(91%) saturate(3809%)
    hue-rotate(341deg) brightness(107%) contrast(97%);
  top: 50%;
  transform: translateY(-50%);
  right: 24px;
  cursor: pointer;
  margin: 0px;
}

.post__details-toc.expanded .toc__expand {
  display: none;
}

.post__details-toc:not(.expanded) .toc__collapse {
  display: none;
}

.post__details-toc .toc__collapse {
  position: absolute;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(10%) sepia(91%) saturate(3809%)
    hue-rotate(341deg) brightness(107%) contrast(97%);
  top: 50%;
  transform: translateY(-50%);
  right: 24px;
  cursor: pointer;
  margin: 0px;
}

.post__details-toc .toc__main {
  max-height: 0px;
  transform-origin: top;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.post__details-toc.expanded {
  gap: 12px;
}

.post__details-toc.expanded .toc__main {
  max-height: 10000px;
  transition: max-height 1s linear;
}

.post__details-toc .toc__main .toc__heading {
  width: 100%;
  /* padding: 12px 24px; */
  padding: 6px 24px;
  color: var(--color-body);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.813rem;
  transition: all 0.2s ease-in-out;
}

.post__details-toc .toc__main .toc__heading .h3 {
  margin-left: 16px;
}

.post__details-toc .toc__main .toc__heading:hover {
  box-shadow: inset 6px 0 0 var(--color-primary);
  -webkit-box-shadow: inset 6px 0 0 var(--color-primary);
  -moz-box-shadow: inset 6px 0 0 var(--color-primary);
  color: #1e1e1e;
}


.post-main .related-posts {
  padding: 12px;
  background-color: var(--color-white);
}

.post-details table tbody tr td {
  padding: 10px 20px;
}

.post__item--row {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--color-highlight);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.post__item--row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.post__item--row .post__item-thumbnail {
  max-width: 153px;
  flex-shrink: 0;
}

.post__item--row .post__item-thumbnail img {
  height: 100%;
  object-fit: cover;
}

.post__item--row .post__item-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post__item--row .post__item-description {
  color: var(--color-article-body);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.125rem;
}

/* #endregion Post Details Style */

/* sider */
.wpb_column .wpb_wrapper:has(aside) {
  position: sticky;
  /*position: static;*/
  top: 72px;
}

.sider__view-all {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background-color: var(--color-highlight);
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 44px;
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
}

.sider__view-all:hover {
  background-color: var(--color-primary);
}

.sider__view-all img {
  width: auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(99%) sepia(4%) saturate(340%)
    hue-rotate(327deg) brightness(114%) contrast(100%);
}

.post-sider .sider__form-register {
  border-radius: 12px;
  background: #fff;
  box-shadow: 8px 8px 22px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 8px 8px 22px 0px rgba(0, 0, 0, 0.25);
  display: flex;
  width: 100%;
  padding: 24px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 44px;
  position: sticky;
  top: 110px;
  bottom: 0;
}

.post-sider > *:last-child {
  margin-bottom: 0;
}

.post-sider .sider__form-register .form-register__title {
  color: var(--color-primary);
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.375rem;
  /* 100% */
}

.sider__form-register .btn-action--submit {
  display: flex;
  height: 40px;
  padding: 12px 24px;
  justify-content: center;
  border-radius: 3px;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  font-size: 0.938rem;
  line-height: 0.938rem;
  font-weight: 400;
  width: fit-content;
  margin: 0 auto;
}

.sider__form-register .btn-action--submit:hover {
  transform: scaleY(1);
  background-color: var(--color-highlight);
}

.sider__form-register .form-register__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.sider__form-register .form-register__main input,
.sider__form-register .form-register__main select,
.sider__form-register .form-register__main textarea {
  color: #1f2124;
  font-size: 0.938rem;
  line-height: 1.313rem;
  resize: none;
  box-shadow: inset 0px 0px 0px 1px #69727d;
  border-radius: 3px;
}

.form-register__main .register-form__calendar {
  position: relative;
}

.calendar-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url("../img/icons/bx_calendar.svg") no-repeat center;
  background-size: contain;
  pointer-events: none;
}

.post-sider .sider__related-posts {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.posts-latest .section-title {
  color: #1e1e1e;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 2.813rem;
  margin-bottom: 40px;
}

.posts-latest .posts__slider-outer {
  position: relative;
  padding-bottom: 61px;
  --swiper-pagination-bottom: 0px;
}

.posts-latest .sider__view-all {
  display: none;
}

.single.single-post .vc_section > .vc_container > .vc_row:has(.post-content) {
  margin: 0px;
  padding-top: 40px;
}

/* .shortform_detail_scroll {
  max-height: 550px;
  overflow-y: auto;
} */

.shortform_detail_scroll .g-recaptcha {
  transform: scale(0.85);
  transform-origin: 0 0;
}
.stm_select .stm-select__val {
  padding: 6px 12px;
  font-size: 15px;
  height: 36px;
}

@media only screen and (max-width: 36em) {
  /* .container:not(:has([class*="header__"])) {
    margin: 0 20px;
  } */

  .shortform {
    margin: 0px 0px 90px;
  }

  .shortform_detail_scroll {
    max-height: 100%;
    overflow: unset;
  }

  .post-content {
    flex-direction: column;
    margin-bottom: 30px;
  }

  .post-content .post-sider {
    display: flex;
    flex-direction: column-reverse;
  }

  .post-sider .sider__form-register {
    margin-bottom: 0;
  }

  .post-content .post-sider .sider__related-posts,
  .post-content .post-sider .sider__view-all {
    display: none;
  }

  .posts-latest .posts__slider-outer {
    padding-bottom: 51px;
    margin-bottom: 30px;
  }

  .posts-latest .sider__view-all {
    display: flex;
    margin-bottom: 0;
  }

  .posts-latest .section-title {
    color: #1e1e1e;
    font-size: 1.5rem;
    line-height: 2.813rem;
  }

  /* #region Post Details Style */
  .post-details {
    --post-element-spacing: 24px;
  }

  .post-details .post__details-toc {
    width: 100%;
    min-width: auto;
    font-size: 1rem;
    padding: 12px 0px;
  }

  .post__details-toc .toc__main .toc__heading {
    font-size: inherit;
    padding: 8px 14px;
  }

  .post__details-toc .toc__main .toc__heading:hover {
    box-shadow: inset 4px 0 0 var(--color-primary);
    -webkit-box-shadow: inset 4px 0 0 var(--color-primary);
    -moz-box-shadow: inset 4px 0 0 var(--color-primary);
  }

  /* Page Content  */

  .post-details h1 {
    font-size: 26px !important;
    margin-top: 31.2px;
  }

  .post-details h2 {
    font-size: 22px !important;
    line-height: 1.3;
    margin-top: 28.6px;
  }

  .post-details h3 {
    font-size: 20px !important;
    line-height: 1.3;
    margin-top: 26px;
  }

  .post-details h4 {
    margin-top: 0px;
    font-size: 18px !important;
    line-height: 1.4;
    color: #000;
    font-weight: 600;
    text-wrap: wrap;
    /* padding-top: 40px; */
    margin-top: 25.2px;
  }

  .post-details h5 {
    margin-bottom: 0px;
    font-size: 16px !important;
    line-height: 1.4;
    color: #000;
    font-weight: 500;
    text-wrap: wrap;
    /* padding-top: 40px; */
    margin-top: 22.4px;
  }

  .post-details h6 {
    margin-bottom: 0px;
    font-size: 14px !important;
    line-height: 1.5;
    color: #000;
    font-weight: 500;
    text-wrap: wrap;
    /* padding-top: 40px; */
    margin-top: 20px;
  }

  .post-details > :not(.post__details-toc) li {
    padding-left: 5px;
  }

  .post-details p {
    font-size: 14px;
    line-height: 1.5 !important;
  }

  .post-details a {
    font-size: 14px;
    line-height: 1.5 !important;
  }

  .post-details li {
    position: relative;
    padding-left: 30px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5 !important;
  }

  .post-details .toc__main .toc__sub .toc__sub-heading {
    padding-left: 0;
    margin-top: 4px;
  }

  .post-details img {
    margin-bottom: var(--post-element-spacing);
  }

  .post-details time {
    font-size: 0.75rem;
    margin-bottom: var(--post-element-spacing);
  }

  .post-details h3:not(.toc__title) {
    font-size: 1.375rem;
    line-height: 1.75rem;
    margin-bottom: var(--post-element-spacing);
  }

  .post-details .post__details-toc {
    margin-bottom: var(--post-element-spacing);
  }

  .post__details-toc .toc__title {
    font-size: 1rem;
  }

  /* #endregion Post Details Style */

  .post__item--row {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .post__item--row .post__item-thumbnail {
    max-width: 102px;
    height: auto;
  }

  .post__item--row .post__item-thumbnail img {
    height: auto;
  }

  .post__item--row .post__item-title {
    white-space: initial;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.875rem;
  }

  .post__item--row .post__item-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 0.75rem;
    margin-bottom: 0;
  }
}
