:root {
  --navbar-height: 56px; /* Default Bootstrap navbar height */
  --sidebar-width: 250px; /* Define default sidebar width */
}

/* Custom styles for sidebar */
.sidebar {
  position: fixed;
  top: var(--navbar-height); /* Align sidebar below fixed navbar */
  bottom: 0;
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 0; /* Remove padding here as Offcanvas has its own padding */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
  overflow-y: auto; /* Enable scrolling for long content */
}

/* Sidebar separator line */
.sidebar-separator-line {
  padding: 0;
  margin: 0.5rem 0;
}

.sidebar-separator-content {
  height: 1px;
  background-color: #ccc;
  margin: 0 1rem;
}

img[alt="small-1-2"] {
  width: 50%;
}
img[alt="small-1-3"] {
  width: 33%;
}

img[alt="fix-100"] {
  width: 100px;
}

img[alt="fix-200"] {
  width: 200px;
}

img[alt="fix-300"] {
  width: 300px;
}

img[alt="fix-400"] {
  width: 400px;
}

img[alt="fix-500"] {
  width: 500px;
}

@media (max-width: 767.98px) {
  .sidebar-offcanvas.offcanvas {
    width: 250px; /* Adjust Offcanvas width on mobile */
  }
  /* Push main content to the right when offcanvas is open */
  body.offcanvas-active main {
    margin-left: 250px; /* Use margin-left to push content */
    transition: none !important; /* No transition for margin-left */
  }

  #offcanvasSidebar {
    width: 90%;
  }

  .sidebar {
    width: 90%;
  }
}

.navbar-brand img {
  margin: 0px;
  border-radius: 0px;
  border: 0px;
  max-height: 38px; /* Set max-height for the logo */
  width: auto; /* Ensure width adjusts proportionally */
}

/* Navbar active menu item */
.navbar .nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-weight: 500;
}

.navbar .nav-link.active:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Navbar CTA button spacing */
@media (min-width: 992px) {
  /* Desktop: Add spacing to the left */
  .navbar-collapse > .btn {
    margin-left: 24px;
  }
}

@media (max-width: 991.98px) {
  /* Mobile: Full width button, no padding */
  .navbar-collapse > .btn {
    width: 100%;
    margin-top: 1rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 24px;
  }
  
  .navbar-collapse {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .navbar-toggler {
    border: 0px !important;
  }
}

.sidebar .nav-link {
  font-weight: 400;
  color: #586069; /* GitBook like link color */
  padding: .3rem 1rem;
  font-size: 14px;
}

.sidebar .nav-link:hover {
  color: #0366d6; /* GitBook like active/hover color */
  background-color: #f6f8fa;
}

.sidebar .nav-item .nav-link {
  font-size: 0.9em; /* Slightly smaller font for nested items */
  padding-right: 0.5rem; /* Space for the icon */
}

/* Styling for the collapse icons */
.sidebar-folder-icon {
  font-size: 1.1em; /* Adjust icon size */
  margin-right: 0.5rem; /* Space between icon and text */
  vertical-align: middle; /* Align icon vertically with text */
}

.sidebar-folder-icon.folder-open::before {
  content: "\ea65"; /* ri-folder-open-line unicode */
}

.sidebar-folder-icon.folder-closed::before {
  content: "\ea62"; /* ri-folder-line unicode */
}

body {
  background-color: #fff; /* Revert to light background */
  color: #24292e; /* Revert to dark text */
  padding-top: var(--navbar-height); /* Add padding to body to prevent content from going under fixed navbar */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
}

/* Main Content adjustment */
main {
  padding-top: 1rem; /* Keep existing padding-top for main */
  font-size: 15px;
}

main hr {
  color: #777;
  border-top: var(--bs-border-width) dashed;
}

@media (min-width: 768px) {
  main {
    margin-left: calc(var(--sidebar-width)); /* Adjust for desktop sidebar width */
  }
}

header {
  text-align: left; /* GitBook header is usually left-aligned */
  margin-bottom: 1rem;
  padding-left: 0;
}

/* Footer styles */
footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8em;
  color: #6a737d;
  margin-top: auto; /* Push footer to the bottom */
  border-top: 1px solid #eaecef;
}

/* Fixed footer for sidebar */
.sidebar-footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: var(--sidebar-width, 250px); /* Default to 250px if --sidebar-width not defined */
  z-index: 101; /* Ensure it's above other elements */
  background-color: #f8f9fa; /* Background color matching sidebar or light theme */
  border-top: 1px solid #e9ecef;
  padding: 0.4rem 0.5rem 0.0rem;
}

.sidebar-footer-fixed p {
  margin-bottom: 0px;
}

@media (max-width: 767.98px) {
  .sidebar-footer-fixed {
    width: 100%; /* Full width on mobile when sidebar is hidden */
    left: -100%; /* Hide off-screen by default on mobile */
    transition: left 0.3s ease; /* Smooth transition for mobile */
  }
  body.offcanvas-active .sidebar-footer-fixed {
    left: 0; /* Show when offcanvas is active */
  }
}

@media (min-width: 768px) {
  .sidebar-footer-fixed {
    left: 0; /* Ensure it's visible on desktop */
    width: calc(var(--sidebar-width) - 1px); /* Match sidebar width, minus border */
    /* Adjust based on your sidebar's actual width */
  }
}

.content-wrapper ul.sitemap-list {
  padding-left: 0px;
}

.content-wrapper .sitemap-section-title {
  padding: 0px;
  border: 0px;
  font-size: 18px;
}

.content-wrapper .sitemap-section-title i {
  color: #777;
  font-size: 18px;
}

.content-wrapper .sitemap-list-item {
  margin: 0px;
}

.content-wrapper .sitemap-list-item a {
  padding: 0px;
}

.bg-dark {
  padding-top: 0px;
  padding-bottom: 0px;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-left: 12px;
  padding-right: 12px;
  font-size: 15px;
}

.navbar-expand-lg .navbar-nav .dropdown-menu .nav-link{
  color: #212121;
  font-size: 14px;
}

/* Navbar Logo and Site Title */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  max-height: 38px;
  width: auto;
}

.navbar-divider {
  width: 1px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.3);
  display: inline-block;
}

.navbar-site-title {
  color: #fff;
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Ensure images are responsive */
img {
  max-width: 1100px;
  width: 100%;
  height: auto;
  display: block; /* Remove extra space below images */
  cursor: pointer; /* Add pointer cursor for clickable images */
  margin: 1.5em 0;
  border-radius: 8px;
  border: solid 1px #eee;
}

.naviItem img {
  border: 0px !important;
}

/* Image placeholder only for main content images */
main img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  min-height: 200px; /* Minimum height for placeholder */
}

main img.loaded {
  animation: none;
  background: none;
  min-height: auto;
}

main img.error {
  animation: none;
  background: #f5f5f5;
  position: relative;
  min-height: 200px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Typography adjustments for content area */
.content-wrapper {
  h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 0.4em;
    margin-bottom: 1em;
  }

  h1 { font-size: 1.60em; }
  h2 { font-size: 1.45em; }
  h3 { font-size: 1.2em; }
  h4 { font-size: 1.10em; }
  h5 { font-size: 0.9em; }
  h6 { font-size: 0.875em; color: #6a737d; }

  p {
    margin-bottom: 12px;
    margin-top: 12px;  
    font-size: 15px;
    line-height: 1.5;
  }

  a {
    color: #0366d6;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

  ul, ol {
    margin-top: 0;
    margin-bottom: 1em;
    padding-left: 2em;
  }

  

  li {
    margin-bottom: 0.5em;
  }

  blockquote {
    border-left: 0.25em solid #dfe2e5;
    color: #6a737d;
    padding: 0 1em;
    margin: 1em 0;
  }

  code {
    background-color: rgba(27,31,35,.05);
    border-radius: 3px;
    font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;
    padding: 0.2em 0.4em;
  }

  pre > code {
    display: block;
    background-color: #fbfbfb;
    color: #2d2d2d;
    overflow-x: auto;
    border-radius: 8px;
    font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
    font-size: 12px;
    line-height: 1.3;
    white-space: pre;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
  }

  th, td {
    border: 1px solid #dfe2e5;
    padding: 0.6em 1em;
    text-align: left;
  }

  th {
    background-color: #f6f8fa;
    font-weight: 600;
  }
}

/* Fix figure caption styling from GitBook */
figure figcaption {
  text-align: center;
  font-size: 0.85em;
  color: #6a737d;
  margin-top: 0.5em;
}

/* Styles for <details> and <summary> tags */
.content-wrapper details {
  margin: 0.5em 0;
  padding: 1rem;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  background-color: #f6f8fa;
  transition: background-color 0.2s ease;
}

.content-wrapper details[open] {
  background-color: #fff;
  border-color: #d1d5da;
}

.content-wrapper details summary {
  font-weight: 600;
  font-size: 1em;
  color: #24292e;
  cursor: pointer;
  padding: 0.5rem;
  margin: -1rem -1rem 0 -1rem;
  border-radius: 6px 6px 0 0;
  transition: background-color 0.2s ease;
  list-style: none;
  position: relative;
  padding-left: 2rem;
}

.content-wrapper details summary::-webkit-details-marker {
  display: none;
}

.content-wrapper details summary::before {
  content: "\ea6d"; /* Remixicon arrow-right */
  font-family: 'remixicon';
  position: absolute;
  left: 0.75rem;
  transition: transform 0.2s ease;
  font-size: 1.2em;
  color: #0366d6;
}

.content-wrapper details[open] summary::before {
  transform: rotate(90deg);
}

.content-wrapper details summary:hover {
  background-color: #f4f8fc;
}

.content-wrapper details[open] summary {
  background-color: #f4f8fc;
  margin-bottom: 1rem;
}

.content-wrapper details > *:not(summary) {
  margin-left: 0;
  padding: 0.5rem 0;
}

.content-wrapper details p:first-of-type {
  margin-top: 0.5rem;
}

.content-wrapper details p:last-child {
  margin-bottom: 0;
}

details strong {
  font-weight: 600;
}

.sidebar-children-list {
    position: relative;
}

.sidebar-children-list .sidebar-tree-item {
    position: relative;
    list-style: none; /* Loại bỏ dấu chấm mặc định */
}

.sidebar-link-container {
    position: relative;
    z-index: 2; /* Đảm bảo nội dung link nằm trên các đường kẻ */
}

.sidebar-title-text {
    white-space: normal; /* Cho phép văn bản xuống dòng */
}

/* Điều chỉnh padding cho nav-link để tạo không gian cho các đường kẻ và icon */
.sidebar-children-list .sidebar-tree-item > .nav-link {
    position: relative;
    padding-left: 32px !important; 
    display: block; /* Make it a block to properly contain content and padding */
    line-height: 1.3;
    font-size: 14px;
}

/* Styling for the collapse icons */
/* Đảm bảo icon có đủ không gian và được căn chỉnh */
.sidebar-folder-icon-closed, .sidebar-folder-icon-open {
    vertical-align: middle; /* Căn chỉnh icon với text */
    margin-right: 2px; /* Khoảng cách giữa icon và text */
}

/* Vô hiệu hóa transition cho các animation expand/collapse */
.collapse,
.collapsing {
    transition: none !important;
}

/* Đường kẻ dọc cho nhánh cây (áp dụng cho tất cả trừ con cuối cùng) */
.sidebar-children-list .sidebar-tree-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 8px; /* Bắt đầu từ vị trí của đường kẻ ngang */
    top: 14px; /* Căn giữa theo chiều dọc với icon folder (ước tính) */
    height: calc(100% - 20px + 20px); /* Kéo dài xuống để nối với đường kẻ ngang tiếp theo */
    width: 1px;
    background-color: #e0e0e0; /* Màu của đường kẻ */
    z-index: 0; /* Đảm bảo đường kẻ nằm dưới link */
}

/* Đường kẻ ngang cho mỗi mục con, nối từ đường kẻ dọc và kết thúc tại icon */
.sidebar-children-list .sidebar-tree-item::after {
    content: "";
    position: absolute;
    left: 8px; /* Bắt đầu từ đường kẻ dọc */
    top: 14px; /* Căn giữa theo chiều dọc với icon folder (ước tính) */
    width: 20px; /* Chiều rộng đường kẻ ngang */
    height: 1px;
    background-color: #e0e0e0; /* Màu của đường kẻ */
    z-index: 0; /* Đảm bảo đường kẻ nằm dưới link */
}

/* Vô hiệu hóa animation của Bootstrap Offcanvas */
.offcanvas {
    transition: none !important;
}

/* Sửa lại active state để không đè lên dây nối */
.sidebar .nav-link.active {
    color: #0366d6 !important; /* Giữ nguyên màu chữ */
    background-color: #f0f0f0 !important; /* Loại bỏ background mặc định để không che dây nối */
    border-right: solid 4px #0366d6;
}

/* Điều chỉnh màu background hover để không che đường kẻ */
.sidebar .nav-link:hover {
    background-color: rgba(230, 247, 255, 0.3) !important; /* Màu nhạt hơn với độ trong suốt */
}

/* Custom Toggler Icon for Main Navigation (three dots) */
.navbar-toggler.custom-more-toggler .navbar-toggler-icon {
  background-image: none; /* Remove default hamburger icon */
  display: flex; /* Use flex to center custom icon */
  align-items: center;
  justify-content: center;
}

.navbar-toggler.custom-more-toggler .navbar-toggler-icon::after {
  content: "\ed6d"; /* Unicode for ri-more-2-fill icon */
  font-family: "Remixicon"; /* Use Remixicon font */
  color: #fff; /* White color for the icon */
  font-size: 1.5rem; /* Adjust size as needed */
}

.article-actions {
    /* Default for mobile - inline with content, full width */
    position: static;
    margin-top: 30px; /* Increased space above on mobile */
    margin-bottom: 30px; /* Increased space below on mobile */
    padding-left: 15px; /* Add some padding to align with content */
    padding-right:0px;
    width: 100%; /* Take full width on mobile */
}

.article-actions .d-grid.gap-2.d-md-block {
    width: 100%; /* Ensure the button container takes full width on mobile */
    display: flex !important; /* Make it a flex container */
    flex-wrap: nowrap; /* Ensure buttons stay in a single row on mobile */
    justify-content: center; /* Center buttons horizontally on mobile */
    gap: 5px; /* Add gap between buttons on mobile */
}

.article-actions .d-grid.gap-2.d-md-block .btn {
    margin: 0; /* Remove individual button margins on mobile, use gap instead */
}

@media (min-width: 768px) { /* Apply floating and horizontal layout only on larger screens */
    .article-actions {
        position: fixed; /* Make it float */
        top: 50px; /* Adjust as needed to clear the navbar */
        right: 20px; /* Distance from the right edge */
        z-index: 1000; /* Ensure it stays on top */
        margin-bottom: 0; /* Remove bottom margin when fixed */
        flex-direction: row; /* Arrange buttons horizontally */
        width: auto; /* Allow content to dictate width */
        transition: opacity 0.3s ease-in-out; /* Smooth transition for hiding/showing */
        opacity: 1; /* Default to visible */
    }

    .article-actions.hidden {
        opacity: 0; /* Hidden state */
        pointer-events: none; /* Disable clicks when hidden */
    }

    .article-actions .d-grid.gap-2.d-md-block {
        display: flex !important; /* Override d-grid to make it flex */
        flex-direction: row; /* Arrange buttons horizontally */
        width: auto; /* Allow buttons to dictate width */
        justify-content: flex-end; /* Align buttons to the right */
        gap: 3px; /* Smaller gap for desktop buttons */
    }

    .article-actions .btn {
        margin: 0; /* Remove individual button margins on desktop, use gap instead */
    }
}

/* Styling for Code Blocks with Copy Button */
.code-block-container {
    position: relative;
    /* Use the same styling as pre > code but without the dashed border initially */
    background-color: #fbfbfb;
    color: #2d2d2d;
    padding: 8px 16px;
    overflow-x: auto;
    border-radius: 8px;
    font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
    font-size: 12px;
    line-height: 1.3;
    white-space: pre;
    margin: 1em 0; /* Match existing margin for pre > code */
    border: dashed 2px #eee; /* Apply border here */
}

.code-block-container:hover {
    border-color: #aaa; /* Slightly darker border on hover */
}

.code-block-container pre {
    margin: 0; /* Remove default margin from pre inside container */
    padding: 0; /* Remove default padding from pre inside container */
    background: none; /* Remove background from pre */
    border: none; /* Remove border from pre */
    overflow: visible; /* Allow content to overflow if copy button is placed inside */
}

.copy-code-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}

.code-block-container:hover .copy-code-button {
    opacity: 1; /* Show on hover */
}

.copy-code-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.copy-code-button.copied {
    background-color: #28a745; /* Green when copied */
    color: #fff;
}

/* Styles for Favorites section in Sidebar */
.sidebar-heading {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.75em;
    font-weight: 500;
    color: #6a737d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.favorite-item {
    position: relative;
}

.favorite-item .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: .3rem 1rem .3rem 0.5rem !important;
    color: #212529 !important;
    background-color: transparent !important;
}

.favorite-item .nav-link .sidebar-title-text {
    flex: 1 1 auto;
    min-width: 0; /* Important for text-overflow to work in flex */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px; /* Space before delete icon */
    width: 200px;
}

.delete-favorite-icon {
    flex-shrink: 0; /* Prevent icon from shrinking */
    font-size: 1.1em;
    color: #6a737d;
    cursor: pointer;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease-in-out;
    margin-left: auto; /* Push to the right */
}

.favorite-item:hover .delete-favorite-icon {
    opacity: 1; /* Show on hover */
}

.add-to-favorites-btn.active .ri-flag-line {
    color: #0366d6; /* Highlight active flag */
}

.favorite-item .nav-link:hover {
    background-color: #e9ecef !important;
    color: #0366d6 !important;
}

.favorite-item .nav-link.active {
    color: #0366d6 !important;
    font-weight: 500;
    border-right: solid 4px #0366d6;
    background-color: transparent !important;
}

#favoritesList {
  min-height: 50px; /* Ensure there's always some space for the list */
}

/* Table of Contents (TOC) Styles */
#tableOfContents {
  position: fixed;
  top: 120px;
  right: 20px;
  width: 200px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  opacity: 1;
  transform: translateX(0);
}


.toc-title {
  font-size: 0.85em;
  font-weight: 600;
  color: #6a737d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-nested {
  margin-top: 0.25rem;
}

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-link {
  display: block;
  color: #586069;
  text-decoration: none;
  font-size: 0.85em;
  line-height: 1.4;
  padding: 0.25rem 0;
  transition: color 0.2s ease-in-out;
}

.toc-link:hover {
  color: #0366d6;
}

.toc-link.active {
  color: #0366d6;
  font-weight: 600;
  border-left: 2px solid #0366d6;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
}

.toc-level-2 .toc-link {
  font-weight: 500;
}

.toc-level-3 .toc-link {
  font-size: 0.8em;
}

.toc-level-4 .toc-link {
  font-size: 0.75em;
  color: #6a737d;
}

/* Hide TOC on screens below 1366px */
@media (max-width: 1365.98px) {
  #tableOfContents {
    display: none !important;
  }
}

/* Adjust main content padding and width on large screens */
@media (min-width: 1366px) {
  main {
    padding-right: 280px; /* Make room for TOC */
  }
  
  main .content-wrapper {
    max-width: calc(100% - 220px);
  }
}

/* Sitemap Styles */
.sitemap-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.sitemap-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed #e1e4e8;
}

.sitemap-heading {
  font-size: 2.8em;
  font-weight: 700;
  color: #212121;
  margin: 0px;
}

.sitemap-subtitle {
  font-size: 1.2em;
  color: #6a737d;
  font-weight: 400;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.sitemap-section {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 0.5rem 1.0rem;
  transition: all 0.2s ease;
}

.sitemap-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d1d5da;
}

.sitemap-section-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #24292e;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f6f8fa;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sitemap-section-title i {
  color: #0366d6;
  font-size: 1.2em;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-list-item {
  margin-bottom: 0.5rem;
}

.sitemap-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #24292e;
  font-size: 0.95em;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.sitemap-link:hover {
  background-color: #f6f8fa;
  color: #0366d6;
  padding-left: 0.75rem;
}

.sitemap-link i {
  font-size: 1.1em;
  color: #6a737d;
  flex-shrink: 0;
}

.sitemap-link:hover i {
  color: #0366d6;
}

.sitemap-single-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #0366d6;
  font-size: 0.9em;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: #f6f8fa;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sitemap-single-link:hover {
  background: #e9ecef;
}

.sitemap-sublist {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.sitemap-sublist .sitemap-link {
  font-size: 0.9em;
  color: #586069;
}

.sitemap-sublist .sitemap-link i {
  font-size: 1em;
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
  min-width: 220px;
}

/* Responsive adjustments for sitemap */
@media (max-width: 767.98px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .sitemap-heading {
    font-size: 2em;
  }
  
  .sitemap-subtitle {
    font-size: 1em;
  }
  
  .sitemap-section {
    padding: 1rem;
  }
  
  .sitemap-section-title {
    font-size: 1.1em;
  }
}

ul.nav > li.nav-item:last-child {
  /* CSS cho item cuối cùng */
  padding-bottom: 60px;
}

/* Ghi đè lại cho các item cuối cùng trong submenu */
ul.nav li ul li.nav-item:last-child {
  padding-bottom: initial !important;
}