.bc-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 130px;
  margin-bottom: 50px;
  padding: 20px 15px;
}
.bc-container img {
  border-radius: 0 !important;
}
.bc-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.bc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 19px;
  margin-bottom: 68px;
}
.bc-heading {
  color: var(--secondary-color) !important;
  font-family: var(--primary-font-family) !important;
  font-weight: 700;
  font-size: 35px;
  margin: 0;
}
.bc-searchbar {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.bc-sidebar-heading {
  color: var(--secondary-color) !important;
  font-family: var(--primary-font-family) !important;
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 17px;
}
.bc-sidebar-heading span {
  display: flex;
  align-items: center;
  gap: 17px;
}
.bc-sidebar-heading img {
  border-radius: 0;
  margin: 0;
  width: 20px;
}
.bc-sidebar-heading button {
  background-color: var(--gray-background-color) !important;
  padding: 5px 20px !important;
  border: var(--border) !important;
  border-radius: 10px !important;
  color: var(--dark-text-color) !important;
  font-family: var(--text-font-family) !important;
  font-weight: 400;
  font-size: 14px !important;
  cursor: pointer;
  transition: ease 0.3s;
}
.bc-sidebar-heading button:hover {
  border-color: var(--accent-color) !important;
}
.bc-fhead ion-icon {
  transition: transform 0.3s ease;
}
.bc-fhead ion-icon.open {
  transform: rotate(180deg);
}
.bc-filter-container {
  background: var(--white-background-color);
  border: var(--border);
  border-radius: 16px;
  padding: 33px 32px;
  position: sticky;
  top: 20px;
  align-self: start;
}
.bc-fhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--secondary-color);
  font-family: var(--primary-font-family);
  font-weight: 600;
  font-size: 14px;
  border-bottom: var(--border);
  padding-bottom: 12px;
  margin-bottom: 15px;
}
.bc-fbody {
  margin-bottom: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.bc-fbody.open {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.bc-fbody.open::-webkit-scrollbar {
  width: 6px;
}
.bc-fbody.open::-webkit-scrollbar-track {
  background: transparent;
}
.bc-fbody.open::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.bc-fbody.open::-webkit-scrollbar-thumb:hover {
  background-color: var(--border-color);
}
/* ===== Custom checkboxes (scoped to the archive) ===== */
.bc-wrap .bc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  margin: 6px 0;
  padding: 3px 0;
}

.bc-wrap .cb-input {
  /* Visually hidden but still accessible */
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}

.bc-wrap .cb-box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background-color: var(--white-background-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
  color: var(--button-text-color); /* used by SVG (currentColor) */
}

.bc-wrap .cb-icon {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .bc-wrap .bc-check:hover .cb-box {
    border-color: var(--primary-color);
  }
}

/* Focus ring */
.bc-wrap .cb-input:focus-visible + .cb-box {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Checked */
.bc-wrap .cb-input:checked + .cb-box {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}
.bc-wrap .cb-input:checked + .cb-box .cb-icon {
  opacity: 1;
  transform: scale(1);
}

/* Indeterminate (if you set via JS: input.indeterminate = true) */
.bc-wrap .cb-input:indeterminate + .cb-box {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}
.bc-wrap .cb-input:indeterminate + .cb-box .cb-icon {
  opacity: 1;
  transform: scale(1);
}

/* Disabled */
.bc-wrap .cb-input:disabled + .cb-box,
.bc-wrap .bc-check[aria-disabled="true"] .cb-box {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Label text next to box */
.bc-wrap .cb-label {
  font-family: var(--text-font-family);
  font-size: var(--text-font-size);
  color: var(--dark-text-color);
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bc-muted {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color) !important;
  font-family: var(--text-font-family) !important;
  font-weight: 400;
  font-size: 16px;
}
.bc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.bc-count-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}
.bc-filter-toggle {
  display: none;
  background-color: var(--gray-background-color) !important;
  color: var(--secondary-color) !important;
  border: var(--border);
  border-radius: 5px !important;
  font-size: 24px !important;
  cursor: pointer;
  padding: 5px 10px !important;
  margin: 0 !important;
}
.bc-filter-toggle img {
  width: 20px;
}
.bc-count {
  color: var(--text-color);
  font-family: var(--text-font-family);
  font-weight: 400;
  font-size: 14px;
  padding-left: 5px;
}
.bc-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bc-select {
  position: relative;
  display: inline-block;
}
.bc-sort {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: var(--dark-text-color);
  font-family: var(--primary-font-family);
  font-weight: 600;
  font-size: 16px;
  text-transform: capitalize;
  outline: none;
  border: var(--border);
  border-color: var(--text-color);
  background-color: transparent;
  border-radius: 6px;
  padding: 5px 10px 5px 10px;
  cursor: pointer;
}
.bc-select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 18px;
  color: var(--text-color);
}
.bc-btn {
  color: var(--dark-text-color);
  border: var(--border) !important;
  background: #fff !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  cursor: pointer;
}
.bc-btn:hover {
  color: var(--dark-text-color) !important;
}
.bc-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.bc-card {
  background: var(--white-background-color);
  border: var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.bc-rating-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bc-rating-container .col {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bc-rating {
  color: var(--secondary-color);
  font-family: var(--text-font-family);
  font-weight: 700;
  font-size: 16px;
}
.bc-stars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.bc-stars .r-star {
  font-size: 14px;
  padding: 5px;
}
.bc-starsbox {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bc-chip {
  display: inline-block;
  color: var(--text-color);
  font-family: var(--text-font-family);
  font-weight: 400;
  font-size: 14px;
}
.bc-provider {
  color: var(--text-color);
  font-family: var(--text-font-family);
  font-weight: 400;
  font-size: 14px;
  border: var(--border);
  border-radius: 8px;
  padding: 6px 14px;
}
.bc-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bc-title {
  text-decoration: none;
  color: var(--secondary-color) !important;
  font-family: var(--text-font-family) !important;
  font-weight: 600;
  font-size: 16px;
}
.bc-title:hover {
  color: var(--accent-color) !important;
}
.bc-author {
  color: var(--text-color);
  font-family: var(--text-font-family);
  font-weight: 400;
  font-size: 14px !important;
}
.bc-author span {
  font-weight: 600;
}
.bc-description {
  color: var(--secondary-color);
  font-family: var(--text-font-family);
  font-weight: 400;
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}
.bc-metas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 19px;
}
.bc-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--secondary-color);
  font-family: var(--primary-font-family);
  font-weight: 400;
  font-size: 14px;
}
.bc-kpis {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.bc-kpi-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 14px;
  color: var(--secondary-color);
  font-family: var(--text-font-family);
  font-weight: 700;
  font-size: 14px;
}
.bc-kpi {
  background: var(--white-background-color);
  color: var(--text-color);
  font-family: var(--text-font-family);
  font-weight: 400;
  font-size: 14px;
  padding: 6px 10px;
  border: var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bc-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bc-worth {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--secondary-color);
  font-family: var(--text-font-family);
  font-weight: 700;
  font-size: 14px;
}
.bc-worth strong {
  font-weight: 700;
  color: #11b981;
}
.bc-ribbon {
  font-family: var(--text-font-family);
  font-weight: 700;
  font-size: 14px;
  color: #065f46;
  background: #d1fae5;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
}
.bc-ribbon.red {
  background: #ffe4e6;
  color: #b91c1c;
}
.bc-ribbon.amber {
  background: #fef3c7;
  color: #92400e;
}
.bc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bc-pagebtn {
  background: transparent !important;
  color: var(--secondary-color) !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-family: var(--primary-font-family) !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bc-pagebtn.active {
  background: var(--accent-color) !important;
  color: var(--button-text-color) !important;
}
.bc-ellipsis {
  padding: 0 6px;
}

@media (max-width: 1024px) {
  .bc-head {
    margin-bottom: 30px;
  }
  .bc-heading {
    font-size: 28px;
  }
  .bc-grid {
    gap: 20px;
  }
  .bc-filter-container {
    padding: 20px;
  }
  .bc-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 940px) {
  .bc-grid {
    grid-template-columns: 1fr;
  }
  .bc-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .bc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: var(--white-background-color);
    border-right: var(--border);
    border-radius: 0;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  .bc-sidebar.open {
    transform: translateX(0);
  }
  .bc-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }
  .bc-backdrop.active {
    display: block;
  }
}

@media (max-width: 767px) {
  .bc-head {
    flex-direction: column;
  }
  .bc-heading {
    font-size: 24px;
  }
  .bc-searchbar {
    max-width: none;
  }
  .bc-bottom-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
}

@media (max-width: 424px) {
  .bc-rating-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}
