/* =====================================================
   BIGBOSS CUSTOM CSS - CLEAN VERSION
   Dùng cho: header menu + category page + article list
   Footer đang dùng CSS inline trong footer.html thì không cần để ở đây
===================================================== */

/* ===== GLOBAL FIX ===== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* ===== HEADER MENU ===== */

mip-fixed[type="top"] {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  background: #302a2e !important;
  overflow: visible !important;
  z-index: 99999 !important;
}

.bb-topbar {
  width: 100% !important;
  height: auto !important;
  min-height: 50px !important;
  background: #302a2e !important;
  color: #ffffff !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 99999 !important;
}

.bb-menu-wrap {
  width: 100% !important;
  max-width: 1180px !important;
  min-height: 50px !important;
  margin: 0 auto !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  background: #302a2e !important;
}

.bb-main-menu {
  width: 100% !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #302a2e !important;
}

.bb-main-menu .bb-menu-item,
.bb-menu-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 50px !important;
  line-height: 50px !important;
  padding: 0 24px !important;
  margin: 0 !important;
  color: #ffffff !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.bb-main-menu .bb-menu-item:hover,
.bb-menu-item:hover,
.bb-main-menu .bb-menu-item.active,
.bb-main-menu .bb-menu-item.current {
  background: #252126 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ===== CATEGORY PAGE ===== */

.bb-category-page {
  width: 100%;
  min-height: 100vh;
  background: #302b2f;
  color: #ffffff;
  padding: 24px 0 50px;
  font-family: Arial, Helvetica, sans-serif;
}

.bb-category-container {
  width: 1180px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.bb-breadcrumb,
.bb-category-page .bb-breadcrumb {
  margin: 0 0 22px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
}

.bb-breadcrumb a,
.bb-breadcrumb a:link,
.bb-breadcrumb a:visited,
.bb-breadcrumb a:hover,
.bb-breadcrumb a:active,
.bb-breadcrumb span,
.bb-crumb-home,
.bb-category-page .bb-breadcrumb a,
.bb-category-page .bb-breadcrumb a:link,
.bb-category-page .bb-breadcrumb a:visited,
.bb-category-page .bb-breadcrumb a:hover,
.bb-category-page .bb-breadcrumb a:active,
.bb-category-page .bb-breadcrumb span {
  color: #ffffff !important;
  text-decoration: none !important;
}

.bb-breadcrumb a:hover,
.bb-category-page .bb-breadcrumb a:hover {
  color: #ffff00 !important;
}

.bb-breadcrumb span,
.bb-category-page .bb-breadcrumb span {
  display: inline-block;
  margin: 0 5px;
}

.bb-category-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.bb-category-main {
  min-width: 0;
}

.bb-category-title {
  margin: 0 0 22px;
  color: #ffff00;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.bb-list-wrap,
.bb-article-list {
  width: 100%;
}

/* ===== CATEGORY ARTICLE ITEM ===== */

.bb-article-item {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  padding: 0 0 20px;
  margin: 0 0 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.55);
}

.bb-article-thumb {
  width: 250px;
  height: 145px;
  overflow: hidden;
  background: #211d21;
}

.bb-article-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.bb-article-thumb mip-img,
.bb-article-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.bb-article-thumb mip-img {
  overflow: hidden;
}

.bb-article-thumb mip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-article-info h2 {
  margin: 2px 0 10px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
}

.bb-article-info h2 a {
  color: #ffffff;
  text-decoration: none;
}

.bb-article-info h2 a:hover {
  color: #ffff00;
}

.bb-article-desc {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.7;
}

.bb-read-more {
  display: inline-block;
  color: #ffff00;
  font-size: 15px;
  text-decoration: none;
}

.bb-read-more:hover {
  text-decoration: underline;
}

/* ===== SIDEBAR ===== */

.bb-category-sidebar {
  width: 300px;
}

.bb-side-box {
  margin: 0 0 20px;
  background: transparent;
}

.bb-side-box h3 {
  position: relative;
  margin: 0;
  height: 40px;
  line-height: 40px;
  padding: 0 20px;
  background: #626262;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  overflow: hidden;
}

.bb-side-box h3:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 40px solid #777777;
  border-left: 22px solid transparent;
  width: 80px;
  height: 0;
}

.bb-side-category,
.bb-side-posts {
  list-style: none;
  margin: 0;
  padding: 10px 20px 12px;
  background: #2b262a;
}

.bb-side-category li,
.bb-side-posts li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
}

.bb-side-category li:last-child,
.bb-side-posts li:last-child {
  border-bottom: 0;
}

.bb-side-category a,
.bb-side-posts a {
  display: block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.55;
  text-decoration: none;
}

.bb-side-category a:hover,
.bb-side-posts a:hover {
  color: #ffff00;
}

/* ===== SINGLE PAGE IN CATEGORY ===== */

.bb-single-page {
  background: transparent;
  color: #ffffff;
}

.bb-single-content {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.8;
}

.bb-single-content p {
  color: #ffffff;
}

/* ===== PAGINATION ===== */

.bb-pagination {
  margin: 25px 0;
  text-align: center;
}

.bb-pagination a,
.bb-pagination span {
  display: inline-block;
  margin: 0 3px;
  padding: 6px 10px;
  background: #4b454a;
  color: #ffffff;
  border-radius: 2px;
  text-decoration: none;
}

.bb-pagination .current,
.bb-pagination span.current {
  background: #ffff00;
  color: #111111;
}

/* ===== ARTICLE DETAIL SMALL FIX ===== */

.bb-detail-breadcrumb {
  margin: 0 0 20px;
  color: #222;
  font-size: 15px;
}

.bb-detail-breadcrumb a,
.bb-detail-breadcrumb a:link,
.bb-detail-breadcrumb a:visited,
.bb-detail-breadcrumb span {
  color: #222 !important;
  text-decoration: none !important;
}

.bb-detail-breadcrumb a:hover {
  color: #1769c2 !important;
}

/* ===== TABLET ===== */

@media (max-width: 900px) {
  .bb-category-container {
    width: auto;
    padding: 0 15px;
  }

  .bb-category-layout {
    display: block;
  }

  .bb-category-sidebar {
    width: auto;
    margin-top: 25px;
  }

  .bb-article-item {
    grid-template-columns: 120px 1fr;
    gap: 12px;
  }

  .bb-article-thumb {
    width: 120px;
    height: 85px;
  }

  .bb-article-info h2 {
    font-size: 16px;
  }

  .bb-article-desc {
    font-size: 13px;
  }
}

/* ===== MOBILE MENU ===== */

@media (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  mip-fixed[type="top"] {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #302a2e !important;
  }

  .mipcms-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .bb-topbar,
  .bb-menu-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #302a2e !important;
  }

  .bb-menu-wrap {
    margin: 0 !important;
    padding: 0 4px !important;
  }

  .bb-main-menu {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 0 !important;
    padding: 6px 4px !important;
    margin: 0 !important;
    background: #302a2e !important;
    overflow: visible !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  .bb-main-menu .bb-menu-item,
  .bb-menu-item {
    width: 100% !important;
    height: auto !important;
    min-height: 34px !important;
    line-height: 1.25 !important;
    padding: 7px 4px !important;
    margin: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    word-break: normal !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .bb-main-menu .bb-menu-item:hover,
  .bb-menu-item:hover {
    background: #252126 !important;
    color: #ffffff !important;
  }
}

@media (max-width: 380px) {
  .bb-main-menu {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .bb-main-menu .bb-menu-item,
  .bb-menu-item {
    font-size: 11px !important;
  }
}
