.relative {
  position: relative;
  z-index: 2;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1.12rem;
}

.title-main h1,
.title-main h2 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 2.25rem;
  color: var(--theme-color);
}

@media (max-width: 767.98px) {

  .title-main h1,
  .title-main h2 {
    font-size: 1.5rem;
  }

  body .container {
    max-width: 100%;
  }
}

/* Banner */
.banner-page {
  height: 30.625rem;
}

.banner-page .fill {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
}

.banner-page .container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.banner-page .container .title-header h1 {
  =: #fff;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgb(25 35 36) 0%, rgb(25 35 36) 80.94%);
  mix-blend-mode: soft-light;
}

.banner-page ul {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.banner-page ul li {
  color: #fff;
  list-style: none;
  font-size: 1.25rem;
  position: relative;
}

.banner-page ul li:nth-child(n + 2)::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -1rem;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
}

@media (max-width: 767.98px) {
  .banner-page {
    height: 25.625rem;
  }

  .banner-page .container .title-header h1 {
    font-size: var(--24);
  }

  .single-post .banner-page .container .title-header h1 {
    font-size: 1.5rem;
  }

  .banner-page ul li {
    font-size: 1rem;
  }
}

/* Archive Post */
.page-archive {
  background: #f7f7f7;
  padding-top: 0;
}

.archive-post .archive-content {
  padding: 3rem 2.63rem;
  background: #fff;
  border-radius: 0.635rem;
  margin-top: -5rem;
}

.archive-post {
  padding-bottom: 60px
}

.archive-post h2 {
  color: var(--theme-color);
  font-size: 2rem;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.archive-post .grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 23.4375rem;
  column-gap: 3rem;
}

.archive-post .post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.87rem;
  row-gap: 2rem;
}

.archive-post .category-post .list-cat ul {
  display: flex;
  gap: 1.19rem;
  margin-bottom: 1.56rem;
}

.archive-post .category-post .list-cat ul li {
  list-style: none;
  flex-shrink: 0;
}

.archive-post .category-post .list-cat ul li a {
  color: #2e2e2e;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 6.25rem;
  border: 1px solid #d9d9d9;
}

.archive-post .category-post .list-cat ul li.active a,
.archive-post .category-post .list-cat ul li:hover a {
  border-radius: 6.25rem;
  background: var(--theme-color);
  box-shadow: 0px 0px 6px 0px rgba(255, 255, 255, 0.6) inset;
  border: 0;
  color: #fff;
  padding: 0.75rem 1.55rem;
}

.box-blog-post .box-image a {
  display: block;
}

.box-blog-post .box-image .image-cover {
  border-radius: 0.625rem;
  background: #d9d9d9;
  aspect-ratio: 16/9;
  padding-top: 0;
}

.box-blog-post .box-text {
  padding: 1.25rem 0 0;
}

.box-blog-post .box-text .post-cat {
  color: #4a4a4a;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.box-blog-post .box-text .title a {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #2e2e2e;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375rem;
}

.box-blog-post .box-text .title a:hover {
  color: var(--theme-color);
}

.box-blog-post .btn-primary {
  color: var(--theme-color);
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.68rem;
  padding: 0;
  margin-top: 0.25rem;
  position: relative;
}

.box-blog-post .btn-primary:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--theme-color);
  transition: all 0.3s ease-in-out;
}

.box-blog-post .btn-primary:hover:before {
  width: 100%;
}

.blog-sidebar {
  border-radius: 0.5rem;
  border: 1px solid #d6f6cc;
  background: var(--theme-color);
  padding: 2.19rem 2.25rem;
}

.blog-sidebar .title-sidebar {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  padding-bottom: 1.75rem;
  margin-bottom: 1.44rem;
  border-bottom: 1px solid rgba(214, 246, 204, 0.5);
}

.featured-news ul li {
  list-style: none;
}

.featured-news ul li:nth-child(n + 2) {
  margin-top: 1.5rem;
  padding-top: 1.38rem;
  border-top: 1px solid rgba(214, 246, 204, 0.5);
}

.featured-news ul li .post-cat {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.375rem;
  text-transform: uppercase;
  margin-bottom: 0.31rem;
}

.featured-news .post-title a {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375rem;
}

.col-sticky {
  position: sticky;
  top: 10rem;
}

.pagination-ajax {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.88rem;
  column-gap: 1rem;
}

.pagination-ajax .page-numbers {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.3125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: normal;
  color: #a5a5a5;
}

.pagination-ajax .page-numbers.current {
  background: var(--theme-color);
  color: #fff;
}

/* ==============================
   Single Post
   ============================== */
.blog-single {
  background: #f7f7f7;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Breadcrumb */
.entry-breadcrumb {
  padding-bottom: 1rem;
}

.entry-breadcrumb p {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.entry-breadcrumb a {
  color: #6E6F72;
  font-size: 0.9375rem;
}

.entry-breadcrumb .separator {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  display: inline-block;
  margin: 0 1.12rem;
  background-color: var(--theme-color);
}

.entry-breadcrumb .last {
  color: #0A0F29;
  font-size: 0.9375rem;
}

/* Entry Header - 2 column layout */
.entry-header {
  margin-bottom: 2rem;
}

.entry-header-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.entry-header-image {
  width: 100%;
  flex-shrink: 0;
}

.entry-thumbnail {
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #e5e7eb;
}

.entry-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-header-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.entry-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #0A0F29;
}

.entry-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #4B5563;
  margin-bottom: 1.5rem;
}

.entry-meta-share {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E5E7EB;
}

.entry-meta-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6E6F72;
}

.entry-meta {
  display: flex;
  align-items: center;
}

.meta-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Share buttons */
.entry-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.share-label {
  font-size: 0.875rem;
  color: #6E6F72;
  font-weight: 500;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-share .share-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.entry-share .share-btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.entry-share .share-btn svg {
  width: 1rem;
  height: 1rem;
}

.share-facebook {
  background-color: #1877F2;
}

.share-facebook:hover {
  background-color: #166FE5;
}

.share-twitter {
  background-color: #000;
}

.share-twitter:hover {
  background-color: #333;
}

.share-linkedin {
  background-color: #0A66C2;
}

.share-linkedin:hover {
  background-color: #095195;
}

.share-zalo {
  background-color: #0068FF;
}

.share-zalo:hover {
  background-color: #0050c2;
}

.zalo-text {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

/* Blog Content Grid - TOC + Content */
.blog-single .blog-single_content .grid-cols-2 {
  display: grid;
  grid-template-columns: 18rem 1fr;
  column-gap: 2rem;
}

.blog-single .blog-content {
  background: #fff;
  padding: 2rem 2.63rem;
  border-radius: 0.625rem;
}

.blog-single .blog-content img {
  width: 100%;
  height: auto;
}

/* Entry Content */
.entry-content {
  line-height: 1.8;
}

.entry-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0A0F29;
  scroll-margin-top: 8.5rem;
}

.entry-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #0A0F29;
  scroll-margin-top: 8.5rem;
}

.entry-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0A0F29;
  scroll-margin-top: 8.5rem;
}

.entry-content p {
  margin-bottom: 1.25rem;
  color: #4B5563;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.entry-content a {
  color: var(--theme-color);
  transition: color 0.2s ease;
}

.entry-content a:hover {
  color: var(--theme-color2);
  text-decoration: underline;
}

/* Post Navigation */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation a {
  display: block;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.post-navigation a:hover {
  background: #f3f4f6;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.875rem;
  color: #6E6F72;
  margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #0A0F29;
}

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.single-post .comment-respond {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  box-shadow: 0 0.625rem 1.875rem rgba(15, 23, 42, 0.06);
}

.single-post .comment-respond .comment-reply-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a0f29;
  margin-bottom: 0.75rem;
}

.single-post .comment-respond .comment-notes {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.single-post .comment-respond label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 0.35rem;
}

.single-post .comment-respond input[type='text'],
.single-post .comment-respond input[type='email'],
.single-post .comment-respond input[type='url'],
.single-post .comment-respond textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  color: #111827;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.single-post .comment-respond textarea {
  min-height: 8.125rem;
  resize: vertical;
}

.single-post .comment-respond input[type='text']:focus,
.single-post .comment-respond input[type='email']:focus,
.single-post .comment-respond input[type='url']:focus,
.single-post .comment-respond textarea:focus {
  outline: none;
  border-color: var(--theme-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(118, 49, 10, 0.1);
}

.single-post .comment-respond .form-submit {
  margin-top: 1.25rem;
}

.single-post .comment-respond .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.6rem;
  border-radius: 62.5rem;
  border: 1px solid var(--theme-color);
  background-color: var(--theme-color);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.single-post .comment-respond .submit:hover {
  background-color: #ffffff;
  color: var(--theme-color);
}

/* ==============================
   TOC Sidebar
   ============================== */
.toc-sidebar {
  max-height: calc(100vh - 12rem);
  overflow-y: auto;
  overflow-x: hidden;
}

.toc-container {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fefaf8 100%);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
}

.toc-title {
  color: #0A0F29;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #cfcfcf;
  letter-spacing: -0.01em;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin: 0 0 0.25rem;
  position: relative;
}

.toc-item:last-child {
  margin-bottom: 0;
}

.toc-link {
  display: block;
  padding: 0.5rem 0.625rem;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  line-height: 1.5;
  position: relative;
  border-left: 3px solid transparent;
  color: #4B5563;
}

.toc-link:hover {
  color: var(--theme-color);
  background: rgba(118, 49, 10, 0.04);
}

.toc-link.active {
  color: var(--theme-color);
  background-color: rgba(118, 49, 10, 0.08);
  border-left-color: var(--theme-color);
}

/* H2 - Primary level: bold, dark, prominent */
.toc-link-h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a2e;
  padding: 0.625rem 0.625rem;
  margin-bottom: 0.125rem;
  letter-spacing: -0.01em;
}

.toc-link-h2:hover {
  color: var(--theme-color);
}

.toc-link-h2.active {
  font-weight: 700;
  color: var(--theme-color);
}

/* H3 - Secondary level: medium weight, indented, lighter */
.toc-link-h3 {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6b7280;
  padding-left: 1rem;
}

.toc-link-h3:hover {
  color: var(--theme-color);
}

.toc-link-h3.active {
  color: var(--theme-color);
  font-weight: 500;
}

/* H4 - Tertiary level: smallest, most indented, lightest */
.toc-link-h4 {
  font-size: 0.75rem;
  font-weight: 400;
  color: #9ca3af;
  padding-left: 2rem;
}

.toc-link-h4:hover {
  color: #6b7280;
}

.toc-link-h4.active {
  color: var(--theme-color);
  font-weight: 500;
}

.toc-sublist {
  list-style: none;
  padding: 0;
  margin: 0.125rem 0 0;
}

.toc-sublist-level-2 {
  margin-left: 0.375rem;
  padding-left: 0.625rem;
  border-left: 2px solid rgba(118, 49, 10, 0.12);
}

.toc-sublist-level-3 {
  margin-left: 0.375rem;
  padding-left: 0.625rem;
  border-left: 2px solid rgba(118, 49, 10, 0.08);
}

/* TOC Toggle Button - Mobile only */
.toc-toggle-btn {
  display: none;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.toc-toggle-btn:hover {
  background: #f9fafb;
}

.toc-toggle-btn:focus {
  outline: 2px solid var(--theme-color);
  outline-offset: 2px;
}

.toc-toggle-text {
  font-weight: 500;
  color: #0A0F29;
}

.toc-toggle-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #6E6F72;
  transition: transform 0.3s ease;
}

.toc-toggle-btn[aria-expanded="true"] .toc-toggle-icon {
  transform: rotate(180deg);
}

/* TOC Scrollbar */
.toc-sidebar::-webkit-scrollbar {
  width: 4px;
}

.toc-sidebar::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 2px;
}

.toc-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.toc-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--theme-color);
}

.toc-sidebar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* Remove double sticky - .col-sticky handles positioning */
.col-sticky .toc-sidebar {
  position: static;
}

/* ==============================
   Related Posts
   ============================== */
.related-post {
  padding: 3rem 2.63rem;
}

.related-post .post-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 1.56rem;
}

.related-post .title-main h2 {
  margin-bottom: 2rem;
}

/* ==============================
   Desktop (>= 1024px)
   ============================== */
@media (min-width: 1024px) {
  .entry-header-grid {
    flex-direction: row;
    gap: 2rem;
  }

  .entry-header-image {
    width: 50%;
  }

  .entry-header-info {
    width: 50%;
  }

  .entry-title {
    font-size: 2.25rem;
  }
}

/* ==============================
   Mobile (<= 1023px)
   ============================== */
@media (max-width: 1023px) {
  .toc-toggle-btn {
    display: flex;
  }

  .toc-sidebar {
    position: relative;
    max-height: none;
  }

  .toc-container {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    overflow: hidden;
  }

  .toc-container.toc-open {
    max-height: 125rem;
    opacity: 1;
    padding: 1.25rem;
    margin: 0;
  }

  .toc-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .toc-link {
    padding: 0.5rem 0.625rem 0.5rem 0.875rem;
    margin-left: -0.875rem;
    padding-left: calc(0.875rem - 3px);
  }

  .toc-link-h3 {
    padding-left: calc(1.25rem - 3px);
    margin-left: -1.25rem;
  }

  .toc-link-h4 {
    padding-left: calc(1.75rem - 3px);
    margin-left: -1.75rem;
  }
}

/* ==============================
   Mobile (<= 767px)
   ============================== */
@media (max-width: 767.98px) {
  .blog-single .blog-single_content .grid-cols-2 {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1rem;
  }

  .blog-single .blog-single_content .grid-cols-2 .col-1 {
    order: -1;
  }

  .blog-single .blog-content,
  .related-post {
    padding: 1.625rem 0.875rem 2.625rem;
  }

  .blog-single .blog-content p {
    font-size: 0.9375rem;
  }

  .entry-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .entry-meta-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .entry-breadcrumb a,
  .entry-breadcrumb .last {
    font-size: 0.875rem;
  }

  .entry-content h2 {
    font-size: 1.25rem;
  }

  .entry-content h3 {
    font-size: 1.125rem;
  }

  .entry-content h4 {
    font-size: 1.0625rem;
  }

  .post-navigation .nav-links {
    gap: 1rem;
  }

  .post-navigation .nav-title {
    font-size: 0.875rem;
  }

  .related-post .post-list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.5rem;
  }

  .related-post .title-main h2 {
    margin-bottom: 1.12rem;
  }

  .archive-post .archive-content {
    padding: 2rem 1rem;
  }

  .archive-post .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}