/* Main Container Styles */
body.post-type-archive-van_ban {
  background-color: #edeff4;
}

.main-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1200px;
  padding: 16px;
}

.breadcrumb {
  padding: 16px !important;
  background-color: #fff !important;
  border-radius: 4px !important;
}

/* Breadcrumb Styles */
.breadcrumb {
  width: 100%;
  padding: 10px 0;
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Left Side Styles */
.dside_left {
  flex: 0 0 calc(75% - 16px);
  padding: 16px;
  background-color: #fff;
  border-radius: 4px;
  margin-right: 16px;
}

.docBlock__title {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 700;
}

/* Search Box Styles */
.docSearch_box {
  margin-bottom: 0px;
}

.docSearch_box--shadow {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 16px;
  background: #fff;
  box-shadow: 0 1px 8px 0 rgb(0 0 0 / 16%);
  -webkit-box-shadow: 0 1px 8px 0 rgb(0 0 0 / 16%);
  -moz-box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.16);
}

.dt-search-box__control {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.dt-search-box__inputwrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.dt-search-box__input {
  flex: 1;
  padding: 10px;
  border: none;
  font-size: 16px;
  outline: none;
}

.docSearch .dt-search-box__button {
  background: #d72027;
  color: #fff;
  text-align: center;
  border: 0 !important;
  border-radius: 0;
  right: 0;
  padding: 0 12px;
  min-width: 95px;
}

.dt-search-box__text {
  margin-left: 5px;
}

.docSearch_box__text {
  color: #666;
  font-style: italic;
  padding: 8px 0 0;
  font-size: 12px;
}

.docSearch_box__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  padding: 10px 0;
}

.docSearch_box__filter label {
  display: flex;
  align-items: center;
  margin-right: 15px;
  font-size: 12px;
}

.docSearch_box__filter input {
  margin-right: 5px;
}

/* Document List Styles */
.docBlock_List {
  background-color: #fff;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 0;
  box-shadow: 0 1px 8px 0 rgb(0 0 0 / 16%);
  -webkit-box-shadow: 0 1px 8px 0 rgb(0 0 0 / 16%);
  -moz-box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.16);
}

.docBlock_item {
  display: flex;
  border-bottom: solid 1px #e0e0e0;
  padding: 16px 0;
  position: relative;
}

.docBlock_item.is-featured {
  padding-top: 36px;
}

.docBlock_featured_badge {
  position: absolute;
  top: 7px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 4px;
  background: #d0021b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.docBlock_item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.docBlock_number {
  flex: 0 0 30px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.docBlock_doc {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
}

.docBlock_body {
  flex: 0 0 70%;
  padding-right: 20px;
}

.docBlock_title {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.docBlock_title a {
  color: #000;
  font-weight: normal;
  text-decoration: none;
}

.docBlock_title a:hover {
  text-decoration: underline;
}

.docBlock_bodymeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.docBlock_bodymeta a {
  color: #666;
  text-decoration: none;
}

.docBlock_bodymeta a:hover {
  text-decoration: underline;
}

.docBlock_meta {
  flex: 0 0 30%;
}

.docBlock_meta_item {
  display: flex;
  margin-bottom: 8px;
  font-size: 13px;
}

.docBlock_meta_item_l {
  font-weight: bold;
  float: left;
  color: #666;
  width: 45%;
}

.docBlock_meta_item_r {
  color: #90622a;
}

/* Pagination Styles */
.paging {
  margin-top: 20px;
}

.pagination ul {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li {
  margin: 0 2px;
  flex: 0 0 auto;
}

.pagination li a,
.pagination li span,
.pagination li input {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid #ddd;
  color: #333;
  border-radius: 3px;
  background: #fff;
  min-width: 40px;
  text-align: center;
}

.pagination li input {
  width: 68px;
  max-width: 68px;
  outline: none;
}

.pagination li input:focus {
  border-color: var(--brand-color);
}

.pagination-jump {
  display: flex;
  align-items: center;
}

.pagination-jump-input::-webkit-outer-spin-button,
.pagination-jump-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pagination-jump-input[type="number"] {
  -moz-appearance: textfield;
}

.pagination li.active span {
  background-color: var(--brand-color);
  color: white;
  border-color: var(--brand-color);
}
.pagination li.previous.active span {
  background-color: #fff;
  color: #333;
  border-color: #ddd;
}
.pagination li:hover a {
  background-color: #fff;
  border-color: var(--brand-color);
  color: var(--brand-color);
}

/* Right Side Styles */
.dside_right {
  flex: 0 0 25%;
}

.vanban-result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vanban-sidebar-toggle,
.vanban-sidebar-close {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid #d7dce5;
  background: #f7f9fc;
  color: #22304a;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vanban-sidebar-toggle:hover,
.vanban-sidebar-close:hover {
  background: #eef3fb;
  border-color: #b9c9e3;
  color: #0f4fa8;
}

.vanban-sidebar-backdrop {
  display: none;
}

.dside_right .sidebar {
  background-color: #fff;
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding-right: 0;
}

.dside_right .sidebar h3 {
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0px solid #eee;
}

.sidebar--border {
  border: 1px solid #eee;
}

.sidebar__header {
  padding: 10px 16px;
  border-bottom: 1px solid #ddd;
}

.heading-sb {
  margin: 0;
  font-size: 16px;
}

.text-uppercase {
  text-transform: uppercase;
}

.sidebar__content {
  padding: 15px;
}

.sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar__list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.sidebar__list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar__list a {
  color: #333;
  text-decoration: none;
  display: block;
}

.sidebar__list a:hover {
  color: #0066cc;
}

.sidebar__list a.active {
  color: #0066cc;
  font-weight: bold;
}

.sidebar__list.bold a {
  font-weight: 500;
}

/* Helper Classes */
.h-mb:not(:last-child) {
  margin-bottom: 10px;
}

.text-right {
  text-align: right;
}

/* Search Loading Styles */
.search-loading {
  text-align: center;
  padding: 30px;
  font-size: 16px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-loading .fa-spinner {
  margin-right: 10px;
  font-size: 24px;
  color: #0066cc;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* Form focus styles */
.dt-search-box__input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(231, 28, 36, 0.3);
}

.dt-search-box__button {
  background-color: #e71c24;
  transition: background-color 0.2s ease;
}

.dt-search-box__button:hover {
  background-color: #c61017;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .dside_left,
  .dside_right {
    flex: 0 0 100%;
  }

  .dside_right {
    margin-top: 30px;
  }

  .vanban-sidebar-toggle,
  .vanban-sidebar-close {
    display: inline-flex;
  }

  .vanban-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 35, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9998;
  }

  #vanban-archive-sidebar.dside_right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 86vw);
    max-width: 100%;
    margin-top: 0;
    padding: 18px 16px 24px;
    overflow-y: auto;
    background: #eef2f8;
    box-shadow: -12px 0 30px rgba(11, 21, 36, 0.18);
    transform: translateX(108%);
    transition: transform 0.28s ease;
    z-index: 9999;
  }

  #vanban-archive-sidebar .sidebar {
    box-shadow: 0 10px 30px rgba(12, 21, 38, 0.08);
  }

  .vanban-sidebar-close {
    margin: 0 0 12px auto;
  }

  body.vanban-sidebar-open {
    overflow: hidden;
  }

  body.vanban-sidebar-open .vanban-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.vanban-sidebar-open #vanban-archive-sidebar.dside_right {
    transform: translateX(0);
  }

  .docBlock_body,
  .docBlock_meta {
    flex: 0 0 100%;
    padding-right: 0;
  }
  .pagination ul {
    justify-content: center;
    row-gap: 8px;
  }
  .docBlock_meta {
    margin-top: 15px;
  }
}

@media (max-width: 576px) {
  #vanban-result-block {
    align-items: flex-start !important;
  }

  .vanban-result-actions {
    width: 100%;
    justify-content: space-between;
  }

  .vanban-sidebar-toggle {
    width: 100%;
    justify-content: center;
  }

  .docSearch_box__filter {
    /*flex-direction: column;*/
    align-items: flex-start;
  }

  .dt-search-box__control {
    flex-direction: column;
  }

  .dt-search-box__button {
    width: 100%;
    justify-content: center;
  }

  .docBlock_number {
    display: none;
  }

  .pagination li a,
  .pagination li span,
  .pagination li input {
    min-width: 38px;
    padding: 8px 10px;
  }

  .pagination li input {
    width: 60px;
    max-width: 60px;
  }
}

/* Single Van Ban Styles */
.van-ban-single {
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.entry-title {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
}

.van-ban-so-hieu {
  margin-bottom: 15px;
  font-size: 16px;
}

.van-ban-meta {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.van-ban-meta-item {
  display: flex;
  margin-bottom: 10px;
}

.van-ban-meta-item:last-child {
  margin-bottom: 0;
}

.van-ban-meta-label {
  font-weight: bold;
  width: 100px;
  flex: 0 0 100px;
}

.van-ban-meta-value {
  flex: 1;
}

/* Tabs Styles */
.van-ban-tabs {
  margin-top: 20px;
}

.van-ban-tabs-nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
}

.van-ban-tabs-nav li {
  margin-right: 5px;
}

.van-ban-tabs-nav li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #666;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  font-size: 14px;
}

.van-ban-tabs-nav li.active a {
  background-color: #fff;
  border-color: #ddd;
  color: #0066cc;
  position: relative;
}

.van-ban-tabs-nav li.active a:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #fff;
}

.van-ban-tabs-content {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.van-ban-tab-panel {
  display: none;
}

.van-ban-tab-panel.active {
  display: block;
}

/* Content Styles */
.entry-content {
  line-height: 1.6;
}

.entry-content h2 {
  font-size: 20px;
  margin: 20px 0 15px;
}

.entry-content h3 {
  font-size: 18px;
  margin: 18px 0 12px;
}

.entry-content p {
  margin-bottom: 15px;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 15px;
  padding-left: 20px;
}

.entry-content li {
  margin-bottom: 5px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.entry-content table th,
.entry-content table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.entry-content table th {
  background-color: #f2f2f2;
  font-weight: bold;
  text-align: left;
}

/* Related Documents List */
.van-ban-lienquan-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.van-ban-lienquan-list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.van-ban-lienquan-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.van-ban-lienquan-list a {
  color: #0066cc;
  text-decoration: none;
}

.van-ban-lienquan-list a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
  h1.docBlock__title {
    font-size: 20px;
  }
  .docBlock_title {
    font-size: 14px;
  }
  .van-ban-tabs-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .van-ban-tabs-nav li a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .van-ban-meta-item {
    flex-direction: column;
  }
  .docBlock_bodymeta a {
    font-size: 11px;
  }

  .van-ban-meta-label {
    width: 100%;
    flex: 0 0 100%;
    margin-bottom: 5px;
  }
  .breadcrumb {
    font-size: 12px !important;
  }
}
