/* My toc custom  */
.my-toc-widget-container {
  border: 1px solid #e3e3e3;
  border-radius: 9px;
 background: linear-gradient(145deg, #f7fbff, #edf7ff);
    border: 1px solid #cfe6f8;
    color: #2589e6;
}

.my-toc-body {
  max-height: 300px;
  overflow: hidden;
  overflow-y: scroll;
}

.my-toc-body::-webkit-scrollbar-thumb {
  background-color: #babfc5;
  border-radius: 10px;
}

.my-toc-body::-webkit-scrollbar {
  width: 7px;
}

.my-toc-toggle-expand {
  display: none;
}

.my-toc-widget-container.my-toc-collapsed .my-toc-body {
  display: none;
}

.my-toc-widget-container:not(.my-toc-collapsed) .my-toc-body {
  max-height: calc(100vh - 410px) !important;
  min-height: fit-content !important;
}

.button-sticky-open-toc {
  display: none;
}

@media only screen and (min-width: 1024px) and (max-width: 1199px) {
  #my-toc-body {
    display: block !important;
  }

  .my-toc-toggle-button {
    opacity: 0;
  }

  .toc-element {
    position: fixed !important;
    left: -300px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    z-index: 999;
  }

  .toc-element.show {
    left: 0;
  }

  .my-toc-widget-container {
    width: 300px;
  }

  .button-sticky-open-toc {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    padding: 6px;
    border-radius: 4px;
    background-color: rgba(5, 3, 141, 0.8);
    line-height: 0;
  }

  .button-sticky-open-toc .uk-icon {
    width: 26px;
    color: #fff;
  }
}

@media only screen and (max-width: 767px) {
  .my-toc-widget-container {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  #Avada-CtaBox__Container {
    display: none;
  }

  .my-toc-widget-container .my-toc-body {
    display: none;
  }

  .my-toc-widget-container .my-toc-toggle-expand {
    display: block;
  }

  .my-toc-widget-container .my-toc-toggle-collapse {
    display: none;
  }
}

.my-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e3e3e3;
}

.my-toc-body,
.my-toc-header {
  padding: 4px 10px;
}

.my-toc-body {
  margin-bottom: 10px;
}

.my-toc-header-title {
  font-weight: 700;
  font-size: 16px;
}

.my-toc-toggle-button {
  cursor: pointer;
}

.my-toc-list-wrapper {
  list-style: none;
  list-style-type: none !important;
  margin: 0;
  padding: 0 !important;
}

.my-toc-list-item {
  margin: 0;
  padding: 5px 0;
}

.my-toc-list-item-text-wrapper {
  margin-left: 10px;
}

.my-toc-list-item-text {
  text-decoration: none;
  color: #2589e6;
  transition: all 0.3s ease;
}
.my-toc-top-level {
  font-weight: 500;
}

a.my-toc-list-item-text:hover {
  text-decoration: underline;
  color: #1e87f0;
}

.my-toc-toggle-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease;
}

.my-toc-toggle-expand svg,
.my-toc-toggle-collapse svg {
  width: 20px;
  height: 20px;
  fill: #333;
  transition: fill 0.3s ease, transform 0.3s ease;
}

.my-toc-toggle-button:hover svg {
  fill: #555;
}

.my-toc-active {
  color: #1e87f0;
  font-weight: 500;
}

.my-toc-list-item-text {
  font-size: 14px;
}

.my-toc-header:hover {
  cursor: pointer;
}

.single-post-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0px;
  figure {
    max-width: 100%;
  }
}
.single-post-container .post-content-column {
  flex: 1;
  min-width: 0; /* Quan trọng: cho phép flex item co lại */
  width: 70%;
}
.single-post-container .sidebar-column {
  flex: 0 0 320px; /* Fixed width thay vì percentage */
  min-width: 280px;
  max-width: 350px;
}
.single-post-container .wci-single-post .wci-breadscrumb a {
  font-weight: 500;
  transition: all 0.3s ease;
}
.single-post-container .wci-single-post .wci-breadscrumb a:not(.last) {
  background: #f5f5f5;
  color: #676767;
  padding: 6px 12px;
  border-radius: 15px;
  border: 1px solid #e7e7e7;
}
.single-post-container .wci-single-post .wci-breadscrumb a:not(.last):hover {
  background: rgba(12, 49, 51, 0.1);
  color: #0c3133;
}
.single-post-container .wci-single-post .wci-post-trend {
  margin-bottom: 30px;
}
.single-post-container .wci-single-post .wci-post-trend .p-trend {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 10px;
}
.single-post-container .wci-single-post .wci-post-trend .p-trend .p-trend-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: red;
  flex-shrink: 0; /* Ngăn không cho phần text bị co lại */
}
.single-post-container .wci-single-post .wci-post-trend .p-trend .p-trend-text svg {
  fill: red;
}
.single-post-container .wci-single-post .wci-post-trend .p-trend .p-trend-content {
  flex: 1; /* Cho phép phần content chiếm hết không gian còn lại */
  overflow-x: auto; /* Tạo scroll ngang khi cần */
}
.single-post-container .wci-single-post .wci-post-trend .p-trend .p-trend-content ul {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  white-space: nowrap; /* Ngăn không cho các item xuống dòng */
  padding: 0; /* Loại bỏ padding mặc định của ul */
  margin: 0; /* Loại bỏ margin mặc định của ul */
  list-style: none;;
}
.single-post-container .wci-single-post .wci-post-trend .p-trend .p-trend-content ul li {
  flex-shrink: 0; /* Ngăn không cho các li bị co lại */
}
.single-post-container .wci-single-post .wci-post-trend .p-trend .p-trend-content ul a {
  color: #676767;
  padding: 10px 14px;
  border-radius: 15px;
  border: 2px solid #e7e7e7;
  display: inline-flex;
  white-space: nowrap; /* Ngăn text trong link bị xuống dòng */
}
.single-post-container .wci-single-post .wci-post-trend .p-trend .p-trend-content ul a:hover {
  background: rgba(12, 49, 51, 0.1);
  color: #0c3133;
}
.single-post-container .post-title {
  font-size: clamp(30px, 3.2vw, 37px);
  color: var(--wci-color);
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 700;
}
.single-post-container .post-meta {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}
.single-post-container .meta-separator {
  margin: 0 8px;
}
.single-post-container .post-rating, .single-post-container .post-toc {
  margin-bottom: 25px;
}
.single-post-container .post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}
.single-post-container .related-posts-sidebar {
  /* background: #f8f9fa; */
  padding: 25px 0px;
  border-radius: 8px;
  position: sticky;
  top: 80px;
}
.single-post-container .sidebar-title {
  font-size: 1.4em;
  color: var(--wci-color);
  margin-bottom: 20px;
  /* border-bottom: 2px solid #007cba; */
  padding-bottom: 10px;
  font-weight: 700;
}
.single-post-container .related-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #eee;
}
.single-post-container .related-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.single-post-container .related-post-thumbnail {
  flex: 0 0 80px;
}
.single-post-container .related-post-thumbnail img {
  width: 80px;
  height: 60px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 4px;
}
.single-post-container .related-post-title {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}
.single-post-container .related-post-title a {
  color: var(--wci-color);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 15px;
  /* font-weight: 700; */
}
.single-post-container .related-post-title a:hover {
  /* color: #007cba; */
  opacity: 0.9;
}
.single-post-container .latest-posts-section {
  margin-top: 50px;
}
.single-post-container .section-title {
  font-size: 2em;
  color: var(--wci-color);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  /* border-bottom: 3px solid #007cba; */
  padding-bottom: 15px;
}
.single-post-container .latest-posts-grid {
  display: grid;
  /* grid-template-columns: repeat(4, 1fr); */
  gap: 25px;
}
.single-post-container .latest-post-item {
  overflow: hidden;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: #f9f9f9;
  border-radius: 15px 15px;
  border: 1px solid #efefef;
}
.single-post-container .latest-post-item:hover {
  /* transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15); */
}
.single-post-container .latest-post-thumbnail img {
  width: 100%;
  height: 180px;
  -o-object-fit: cover;
     object-fit: cover;
}
.single-post-container .latest-post-content {
  padding: 20px;
}
.single-post-container .latest-post-title {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--wci-color);
  font-weight: 700;
}
.single-post-container .latest-post-title a {
  color: var(--wci-color);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}
.single-post-container .latest-post-title a:hover {
  /* color: #007cba; */
  opacity: 0.9;
}
.single-post-container .latest-post-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Layout 1: Main Content */
.main-content-wrapper {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
}

.latest-posts-grid {
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
}
.single-post-container .post-content ul{
    list-style: disc;
    padding-left: 20px;
}
.single-post-container .post-content ul.key-takeaway-block__list{
    list-style: none;
    padding-left: 0px;
}
.single-post-container .post-content ol{
    list-style: decimal;
    padding-left: 2rem;
}
.single-post h2, .single-post h3, .single-post h4 {
  font-size: 20px;
  font-weight: bold;
}
/* Responsive Design */
@media (max-width: 1024px) {
  /* .latest-posts-grid {
      grid-template-columns: repeat(3, 1fr);
  } */
  .single-post-container {
    padding: 30px 15px 50px;
  }
}
@media (max-width: 768px) {
  .main-content-wrapper {
    flex-direction: column;
  }
  /* .latest-posts-grid {
      grid-template-columns: repeat(2, 1fr);
  }
   */
  .post-title {
    font-size: 2em;
  }
  .single-post-container {
    /* .related-posts-sidebar {
        padding: 15px;
    } */
  }
  .single-post-container .post-content-column,
  .single-post-container .sidebar-column {
    flex: none;
    width: 100%;
    min-width: auto;
    max-width: unset;
  }
}
@media (max-width: 480px) {
  
  .related-posts-sidebar {
    padding: 20px;
  }
}
 .d-flex-center{
  justify-content: center;
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.flex {
  display: flex;
}
.gap-4{
  gap: 10px;
}
.items-center{
  align-items: center;
}
.s-social-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
}
.s-social-item:hover {
  transform: scale(1.05);
}

/* Author post */
.c-author-post__avatar{
  img{
    width:96px;
    height:96px;
    border-radius:50%;
    object-fit:contain;    
  }
}
.c-author-post__label,.c-author-post__job-title{
  font-size: 14px;
  color: #515260;
}
.c-author-post__name{
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wci-color);
  margin: 0px;
  padding: 0px;
}
.single-post-container .post-content a.c-author-post__read-more {
    color: #288ad6;
    border: 2px solid #288ad6;
    padding: 10px;
    border-radius: 5px;
}
.c-author-post__desc {
    border-top: 1px solid #e2e5ed;
    padding: 15px;
    margin-top: 1rem;
    color:#515260;
}
@media (max-width: 768px) {
  .c-author-post__read-more{
    display: none;
  }
  .single-post-container .post-meta{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* --- Rank Math FAQ -> Accordion --- */
#rank-math-faq .rank-math-list { margin: 0; padding: 0; }
#rank-math-faq .rank-math-list-item { border-bottom: 1px solid rgba(0,0,0,0.06);padding: 12px 0px; }

/* Question */
#rank-math-faq .rank-math-question {
  margin: 0;
  padding: 14px 16px;
  font-size: 1.05rem;
  line-height: 1.25;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  background: transparent;
  transition: background .16s ease;
}
#rank-math-faq .rank-math-question:focus {
  /* outline: 3px solid rgba(59,130,246,0.12); */
  outline-offset: 2px;
}
#rank-math-faq .rank-math-question.open { font-weight: 600; }

/* Chevron */
#rank-math-faq .rmf-chevron {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  flex-shrink: 0;
}
#rank-math-faq .rmf-chevron svg {
  width: 1rem;
  height: 1rem;
  transition: transform .25s ease;
  display: block;
}
#rank-math-faq .rank-math-question.open .rmf-chevron svg {
  transform: rotate(180deg);
}

/* Answer (collapsed by default) */
#rank-math-faq .rank-math-answer {
  padding: 0 16px; /* padding-top/bottom toggled by JS via class */
  overflow: hidden;
  max-height: 0;
  transition: max-height .34s ease, padding .28s ease;
  font-size: 0.98rem;
  line-height: 1.6;
  color: inherit;
  background: transparent;
}
#rank-math-faq .rank-math-answer.open {
  padding: 12px 16px;
}

/* paragraph spacing inside answer */
#rank-math-faq .rank-math-answer p { margin: 0 0 12px 0; }

/* small screens */
@media (max-width: 600px) {
  #rank-math-faq .rank-math-question { padding: 12px 14px; font-size: 1rem; }
  #rank-math-faq .rank-math-answer { padding: 0 14px; }
  #rank-math-faq .rank-math-answer.open { padding: 10px 14px; }
}
.single-post-container .post-content .wp-block-image{
  margin-bottom:1rem;
}
.single-post-container .post-content .wp-block-image figcaption {
  color: #666;
  font-size: 14px;
  text-align: center;
}