/* ===== Khối danh mục sidebar (block-right.php "Chuyên mục", members.php "Cơ cấu tổ chức Hội") ===== */
.side-nav {
  padding: 24px 20px 20px;
  border: 1px solid rgba(44, 37, 68, 0.07);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(37, 33, 58, 0.06);
}

.side-nav .side-nav__title {
  position: relative;
  margin: 0 0 18px;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(44, 37, 68, 0.08);
  color: #25213a;
  font-size: 20px;
  font-weight: 700;
}

.side-nav .side-nav__title::after {
  position: absolute;
  bottom: -1px;
  left: 4px;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--mainColor);
  content: "";
}

.side-nav .side-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-nav .side-nav__item {
  margin: 0;
}

.side-nav .side-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  color: #3d3a4f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-nav .side-nav__link::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--mainColor);
  content: "";
  transform: translateY(-50%);
  transition: height 0.2s ease;
}

.side-nav .side-nav__label {
  flex: 1;
  min-width: 0;
}

.side-nav .side-nav__count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 32px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(96, 43, 156, 0.08);
  color: var(--mainColor);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-nav .side-nav__count i {
  margin: 0;
  color: inherit;
  font-size: 11px;
  opacity: 0.75;
}

.side-nav .side-nav__link:hover,
.side-nav .side-nav__link:focus-visible {
  background: rgba(96, 43, 156, 0.05);
  color: var(--mainColor);
}

.side-nav .side-nav__link:hover::before,
.side-nav .side-nav__link:focus-visible::before {
  height: 55%;
}

/* Mục đang chọn */
.side-nav .side-nav__item.active .side-nav__link {
  background: rgba(96, 43, 156, 0.08);
  color: var(--mainColor);
  font-weight: 700;
}

.side-nav .side-nav__item.active .side-nav__link::before {
  height: 70%;
}

.side-nav .side-nav__item.active .side-nav__count {
  background: var(--mainColor);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .side-nav .side-nav__link,
  .side-nav .side-nav__link::before,
  .side-nav .side-nav__count {
    transition: none;
  }
}
