/* Styling for collapsible sections */
.item-category {
    position: relative; /* Needed for absolute positioning of toggle icon */
}

/* Header style for clickable area */
.item-category > .h3 {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.item-category > .h3::after {
    content: '-'; /* Down arrow when expanded (default) */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.2s ease-in-out;
}

.item-category.collapsed > .h3::after {
    content: '+'; /* Right arrow when collapsed */
    transform: translateY(-50%) rotate(-180deg);
}

.item-category.collapsed > .h3::before {
    position: absolute;
    bottom: 0;
    width: calc(100% - 30px);
    content: '';
    border-bottom: 1px solid #ddd;
}

/* Content wrapper that will be collapsed */
.item-category-content-wrapper {
    max-height: 1000px; /* Arbitrary large number for expanded state */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.item-category.collapsed .item-category-content-wrapper {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}
