/* Two column layout */
section.pages > ul.items.accordion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  background: transparent !important;
  border: none !important;
}

/* Remove styling from the outer item */
section.pages > ul.items.accordion > li {
  min-width: 0;
  border: none !important;
  background: transparent !important;
}

/* Normal items and expandable items */
section.pages > ul.items.accordion > li > h3,
section.pages > ul.items.accordion > li > hgroup {
  width: 100% !important;
  min-height: 84px;
  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid #dfe1e6 !important;
  border-radius: 10px !important;

  background: #fff !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Make the clickable area fill the complete box */
section.pages > ul.items.accordion > li > h3 > a,
section.pages > ul.items.accordion > li > hgroup a {
  width: 100% !important;
  min-height: 84px;
  box-sizing: border-box !important;
}

/* Child pages when an accordion is opened */
section.pages > ul.items.accordion > li > ul {
  margin: 8px 0 0 0 !important;
  border: 1px solid #dfe1e6 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
}

/* Remove the original large outer container */
section.pages {
  border: none !important;
  background: transparent !important;
}

/* Mobile */
@media (max-width: 768px) {
  section.pages > ul.items.accordion {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}