/* Category Accordion */
/*  Parent category block */
.accordion-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #E6E6E6; /* ← updated parent background */
  border-bottom: 1px solid #ddd;
  color: #1F1F1D;
}

.accordion-header a {
  flex-grow: 1;
  text-align: left;
  text-decoration: none;
  color: #1F1F1D;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

/*  Sub-category list container */

.sub-cat-list {
  background: #6EC1E4;
  margin: 0;
  padding: 0;              /*  Removes the unwanted left indent */
  list-style: none;        /*  Ensures no bullet points */
}

.sub-cat-list li {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  background: #6EC1E4;
  display: flex;                   /*  aligns icon and link horizontally */
  align-items: center;            /*  vertical alignment */
  gap: 8px;                       /* spacing between icon and text */
  transition: background-color 0.3s ease;
}

.sub-cat-list li:hover {
  background-color: #3f83cc;
}

.sub-cat-list li:hover a,
.sub-cat-list li:hover i.tickbox-icon {
  color: #FFFFFF !important;
}

.sub-cat-list a {
  color: #1F1F1D;
  text-decoration: none;
  font-weight: 500;
  flex-grow: 1;                  /*  makes the link fill the remaining space */
  display: inline-block;
  line-height: 1.4;
}

/*  FontAwesome tickbox icon */
.tickbox-icon {
  margin-right: 8px;
  color: #1F1F1D;
  font-size: 16px;
  vertical-align: middle;
}

/* ➕ Expand/collapse toggle */
.accordion-toggle {
  cursor: pointer;
  font-weight: bold;
  user-select: none;
  white-space: nowrap;
  color: #1F1F1D;
}
/* Accordion visibility control */

.sub-cat-list {
  display: none; /* default hidden */
}

.category-accordion .sub-cat-list.is-open {
  display: block;
}