/* Mina Blog category sidebar — targeted patch */
.blog-library-layout{display:grid;grid-template-columns:minmax(250px,300px) minmax(0,1fr);gap:24px;align-items:start}
.blog-category-sidebar{position:sticky;top:102px;min-width:0;padding:16px;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:linear-gradient(180deg,rgba(20,15,39,.98),rgba(9,8,23,.98));box-shadow:0 20px 55px rgba(0,0,0,.28)}
.blog-category-sidebar__title{display:flex;align-items:center;gap:9px;margin:0 0 13px;padding:0 4px;color:#fff;font-size:14px;font-weight:900;letter-spacing:.03em}
.blog-category-sidebar__title span{color:#63eaff}
.blog-category-tree{display:grid;gap:7px}
.blog-category-all,.blog-category-row{--cat-accent:#9b5cff}
.blog-category-all{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:11px 12px;border:1px solid color-mix(in srgb,var(--cat-accent) 42%,transparent);border-radius:12px;color:#fff;background:color-mix(in srgb,var(--cat-accent) 16%,#171329);font-weight:850;text-align:left;cursor:pointer;transition:.2s}
.blog-category-all:hover,.blog-category-all.is-active{border-color:var(--cat-accent);background:linear-gradient(100deg,color-mix(in srgb,var(--cat-accent) 82%,#fff 2%),color-mix(in srgb,var(--cat-accent) 45%,#34204f));box-shadow:0 8px 23px color-mix(in srgb,var(--cat-accent) 24%,transparent)}
.blog-category-count{display:inline-grid;min-width:30px;height:22px;padding:0 7px;place-items:center;border-radius:999px;color:#081018;background:#62e8ff;font-size:10px;font-weight:950}
.blog-category-branch{display:grid;gap:6px}
.blog-category-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:7px;padding-left:calc(var(--depth,0) * 13px)}
.blog-category-toggle{display:grid;width:28px;height:28px;padding:0;place-items:center;border:1px solid color-mix(in srgb,var(--cat-accent) 48%,transparent);border-radius:9px;color:#fff;background:color-mix(in srgb,var(--cat-accent) 17%,#171329);font-size:17px;font-weight:900;line-height:1;cursor:pointer}
.blog-category-toggle:hover{background:color-mix(in srgb,var(--cat-accent) 34%,#171329)}
.blog-category-toggle.is-placeholder{visibility:hidden;pointer-events:none}
.blog-category-select{min-width:0;width:100%;padding:10px 11px;border:1px solid color-mix(in srgb,var(--cat-accent) 38%,transparent);border-radius:11px;color:#f8f7ff;background:linear-gradient(100deg,color-mix(in srgb,var(--cat-accent) 20%,#19152c),rgba(20,17,35,.96));font-size:12px;font-weight:800;text-align:left;cursor:pointer;white-space:normal;line-height:1.25;transition:.2s}
.blog-category-select:hover{transform:translateX(2px);border-color:var(--cat-accent)}
.blog-category-select.is-active{color:#fff;border-color:var(--cat-accent);background:linear-gradient(100deg,color-mix(in srgb,var(--cat-accent) 85%,#fff 2%),color-mix(in srgb,var(--cat-accent) 42%,#271a3f));box-shadow:0 7px 20px color-mix(in srgb,var(--cat-accent) 23%,transparent)}
.blog-category-children{display:grid;gap:6px;margin-top:6px;margin-left:15px;padding-left:8px;border-left:1px dashed color-mix(in srgb,var(--cat-accent) 45%,transparent)}
.blog-category-children[hidden]{display:none}
.blog-library-content{min-width:0}
.blog-library-content .library-toolbar{margin-bottom:14px}
.blog-library-content .library-toolbar #cat{display:none!important}
@media(max-width:900px){.blog-library-layout{grid-template-columns:1fr}.blog-category-sidebar{position:relative;top:auto}.blog-category-tree{grid-template-columns:repeat(2,minmax(0,1fr))}.blog-category-all{grid-column:1/-1}.blog-category-children{grid-column:1/-1}}
@media(max-width:620px){.blog-category-tree{grid-template-columns:1fr}.blog-category-sidebar{padding:13px;border-radius:16px}.blog-library-layout{gap:17px}.blog-category-row{padding-left:calc(var(--depth,0) * 8px)}}


/* =========================================================
   MINA BLOG — SIDEBAR COLOR COLUMN V3
   Giao diện cột màu giống ảnh mẫu:
   - Danh mục cấp 1 là thanh màu nổi bật.
   - Danh mục con nền tối, viền trái theo màu nhóm.
   - Nút +/- và badge đồng bộ, gọn và dễ nhìn.
========================================================= */

/* Khung cột trái */
.blog-category-sidebar{
  padding:16px 14px 18px !important;
  border:1px solid rgba(91,196,255,.34) !important;
  background:
    radial-gradient(circle at 18% 0%,rgba(61,199,255,.09),transparent 28%),
    linear-gradient(180deg,#17142a 0%,#0c0b18 100%) !important;
  box-shadow:
    0 18px 55px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.blog-category-tree{
  gap:8px !important;
}

/* Xóa kiểu kế thừa màu phủ kín ở bản trước */
.blog-category-branch,
.blog-category-branch .blog-category-row{
  --cat-accent:#7c5cff;
}

/* Mỗi nhánh cấp 1 một màu */
.blog-category-tree > .blog-category-branch:nth-child(2){
  --cat-accent:#1bd5a3; /* Kinh nghiệm / Mina Blog */
}
.blog-category-tree > .blog-category-branch:nth-child(3){
  --cat-accent:#e35bd9; /* Mix & Match */
}
.blog-category-tree > .blog-category-branch:nth-child(4){
  --cat-accent:#ff7b2f; /* Video */
}
.blog-category-tree > .blog-category-branch:nth-child(5){
  --cat-accent:#ef63c9; /* Tâm sự */
}
.blog-category-tree > .blog-category-branch:nth-child(6){
  --cat-accent:#20c9b2; /* Game Gear */
}
.blog-category-tree > .blog-category-branch:nth-child(7){
  --cat-accent:#8f5cff; /* Wikipedia */
}
.blog-category-tree > .blog-category-branch:nth-child(8){
  --cat-accent:#ffbf3f;
}

/* Tất cả bài viết */
.blog-category-all{
  --cat-accent:#36e6ef !important;
  min-height:38px !important;
  padding:9px 11px !important;
  border-color:rgba(64,231,241,.64) !important;
  background:
    linear-gradient(90deg,#262236 0%,#29283a 72%,#24313c 100%) !important;
  box-shadow:
    inset 4px 0 0 #ff8f20,
    0 0 18px rgba(55,222,239,.14) !important;
}

.blog-category-all.is-active,
.blog-category-all:hover{
  background:
    linear-gradient(90deg,#6e35bd 0%,#9252e9 100%) !important;
  border-color:#b785ff !important;
}

/* Nhánh cấp 1: thanh màu đầy đủ giống ảnh 1 */
.blog-category-branch > .blog-category-row{
  grid-template-columns:28px minmax(0,1fr) auto !important;
  gap:7px !important;
  padding-left:0 !important;
}

.blog-category-branch > .blog-category-row > .blog-category-select{
  min-height:38px !important;
  padding:9px 10px !important;
  border:1px solid color-mix(in srgb,var(--cat-accent) 88%,white 8%) !important;
  border-radius:11px !important;
  color:#fff !important;
  background:
    linear-gradient(
      100deg,
      color-mix(in srgb,var(--cat-accent) 92%,#111 3%) 0%,
      color-mix(in srgb,var(--cat-accent) 72%,#8d36d7 18%) 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.23),
    0 7px 18px color-mix(in srgb,var(--cat-accent) 20%,transparent) !important;
  font-weight:900 !important;
  text-transform:none;
}

/* Nút +/- cấp 1 */
.blog-category-branch > .blog-category-row > .blog-category-toggle{
  width:27px !important;
  height:27px !important;
  border-color:color-mix(in srgb,var(--cat-accent) 75%,#fff 8%) !important;
  color:#fff !important;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb,var(--cat-accent) 78%,#151121),
      color-mix(in srgb,var(--cat-accent) 38%,#151121)
    ) !important;
  box-shadow:
    0 0 12px color-mix(in srgb,var(--cat-accent) 25%,transparent) !important;
}

/* Badge cấp 1 */
.blog-category-branch > .blog-category-row > .blog-category-count{
  color:#0b1620 !important;
  background:#52e8f4 !important;
  border:0 !important;
  box-shadow:0 0 12px rgba(78,229,242,.34) !important;
}

/* Cây danh mục con */
.blog-category-children{
  margin:6px 0 2px 13px !important;
  padding-left:12px !important;
  gap:7px !important;
  border-left:1px dashed color-mix(in srgb,var(--cat-accent) 68%,transparent) !important;
}

/* Dòng con: nền tối, chỉ viền trái màu như ảnh 1 */
.blog-category-children .blog-category-row{
  grid-template-columns:28px minmax(0,1fr) auto !important;
  gap:6px !important;
  padding-left:calc(var(--depth,0) * 8px) !important;
}

.blog-category-children .blog-category-select{
  min-height:36px !important;
  padding:8px 10px !important;
  border:1px solid rgba(255,255,255,.17) !important;
  border-left:4px solid var(--cat-accent) !important;
  border-radius:10px !important;
  color:#f8f7ff !important;
  background:
    linear-gradient(90deg,#29283a 0%,#28273a 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 5px 13px rgba(0,0,0,.18) !important;
  font-weight:800 !important;
}

.blog-category-children .blog-category-select:hover{
  transform:translateX(2px) !important;
  border-color:color-mix(in srgb,var(--cat-accent) 72%,white 10%) !important;
  border-left-color:var(--cat-accent) !important;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb,var(--cat-accent) 16%,#29283a),
      #2c2a40
    ) !important;
}

/* Con đang chọn */
.blog-category-children .blog-category-select.is-active{
  color:#fff !important;
  border-color:color-mix(in srgb,var(--cat-accent) 82%,white 12%) !important;
  border-left-color:#fff !important;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb,var(--cat-accent) 42%,#262438),
      color-mix(in srgb,var(--cat-accent) 18%,#262438)
    ) !important;
  box-shadow:
    inset 4px 0 0 #fff,
    0 7px 18px color-mix(in srgb,var(--cat-accent) 19%,transparent) !important;
}

/* Nút +/- con */
.blog-category-children .blog-category-toggle{
  width:27px !important;
  height:27px !important;
  border-color:color-mix(in srgb,var(--cat-accent) 75%,transparent) !important;
  color:#fff !important;
  background:
    color-mix(in srgb,var(--cat-accent) 34%,#242236) !important;
  box-shadow:none !important;
}

/* Badge con: đồng nhất xanh cyan giống ảnh 1 */
.blog-category-children .blog-category-count{
  min-width:28px !important;
  height:20px !important;
  color:#07141b !important;
  background:#4fe5f3 !important;
  border:0 !important;
  box-shadow:0 0 10px rgba(79,229,243,.25) !important;
}

/* Danh mục cấp 1 đang chọn */
.blog-category-branch > .blog-category-row > .blog-category-select.is-active{
  border-color:#fff !important;
  box-shadow:
    inset 4px 0 0 #fff,
    0 8px 22px color-mix(in srgb,var(--cat-accent) 32%,transparent) !important;
}

/* Mobile vẫn giữ dạng cột, tránh vỡ bố cục màu */
@media(max-width:900px){
  .blog-category-tree{
    grid-template-columns:1fr !important;
  }

  .blog-category-all{
    grid-column:auto !important;
  }
}

/* =========================================================
   MINA BLOG — SIDEBAR SCROLL FIX v1.0
   Desktop cuộn riêng cột danh mục; mobile cuộn theo toàn trang.
========================================================= */
.blog-category-sidebar{
  max-height:calc(100vh - 120px);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:#63eaff rgba(255,255,255,.05);
}
.blog-category-sidebar::-webkit-scrollbar{width:8px}
.blog-category-sidebar::-webkit-scrollbar-track{
  background:rgba(255,255,255,.05);
  border-radius:999px;
}
.blog-category-sidebar::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#63eaff,#ea4dca);
  border-radius:999px;
}
.blog-category-sidebar::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#7ff2ff,#ff73df);
}

/* =========================================================
   MINA BLOG ENTERPRISE v2 — PAGINATION
========================================================= */
.blog-results-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:4px 0 14px;
}
.blog-page-size{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#bbb7cc;
  font-size:12px;
  font-weight:750;
}
.blog-page-size select{
  min-height:36px;
  padding:0 32px 0 12px;
  border:1px solid rgba(99,234,255,.28);
  border-radius:10px;
  color:#fff;
  background:#111023;
  font:inherit;
  cursor:pointer;
  outline:none;
}
.blog-page-size select:focus{
  border-color:#63eaff;
  box-shadow:0 0 0 3px rgba(99,234,255,.10);
}

.blog-pagination{
  display:grid;
  gap:16px;
  margin-top:26px;
  padding:18px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:18px;
  background:
    radial-gradient(circle at 50% 0%,rgba(124,92,255,.10),transparent 45%),
    linear-gradient(180deg,rgba(20,17,38,.96),rgba(11,10,25,.96));
  box-shadow:0 16px 42px rgba(0,0,0,.22);
}
.blog-pagination[hidden]{display:none!important}
.blog-pagination__buttons{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.blog-page-button,
.blog-page-ellipsis{
  display:inline-grid;
  min-width:40px;
  min-height:40px;
  padding:0 12px;
  place-items:center;
  border-radius:11px;
  font-size:13px;
  font-weight:900;
}
.blog-page-button{
  border:1px solid rgba(255,255,255,.14);
  color:#f8f7ff;
  background:#19172c;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.blog-page-button:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:#63eaff;
  background:#24213c;
}
.blog-page-button.is-active{
  border-color:rgba(255,255,255,.55);
  color:#fff;
  background:linear-gradient(135deg,#f13fc5,#8158ff 58%,#42d9ff);
  box-shadow:0 8px 22px rgba(234,77,202,.26);
}
.blog-page-button:disabled{
  opacity:.38;
  cursor:not-allowed;
}
.blog-page-button.is-nav{
  min-width:92px;
}
.blog-page-ellipsis{
  min-width:28px;
  padding:0 4px;
  color:#817d91;
}

.blog-pagination__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  color:#aaa6bc;
  font-size:12px;
  font-weight:750;
}
.blog-jump-form{
  display:flex;
  align-items:center;
  gap:8px;
}
.blog-jump-form label{white-space:nowrap}
.blog-jump-form input{
  width:70px;
  min-height:36px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:10px;
  color:#fff;
  background:#111023;
  text-align:center;
  font-weight:850;
  outline:none;
}
.blog-jump-form input:focus{
  border-color:#ea4dca;
  box-shadow:0 0 0 3px rgba(234,77,202,.10);
}
.blog-jump-form button{
  min-height:36px;
  padding:0 15px;
  border:0;
  border-radius:10px;
  color:#fff;
  background:linear-gradient(135deg,#ea4dca,#7c5cff);
  font-weight:900;
  cursor:pointer;
}

@media(max-width:900px){
  .blog-category-sidebar{
    max-height:none;
    overflow:visible;
    scrollbar-gutter:auto;
  }
}
@media(max-width:620px){
  .blog-results-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .blog-pagination{
    padding:14px 11px;
    border-radius:15px;
  }
  .blog-page-button,
  .blog-page-ellipsis{
    min-width:36px;
    min-height:38px;
    padding:0 9px;
  }
  .blog-page-button.is-nav{
    min-width:74px;
  }
  .blog-pagination__footer{
    align-items:flex-start;
    flex-direction:column;
  }
  .blog-jump-form{
    width:100%;
  }
  .blog-jump-form input{
    flex:1;
    width:auto;
  }
}
