/* Basic styles */
.expandable-pages {
    list-style: none;
    margin: 0;
    padding: 0;
}

.expandable-pages li {
    margin: 5px 0;
}

.expandable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border-bottom: 1px solid #ddd; /* Optional: For separating items */
}

.page-title {
    flex-grow: 1; /* Ensures the title takes available space */
    cursor: pointer;
}

.expandable-toggle {
    margin-left: 10px; /* Space between the title and the toggle */
    cursor: pointer;
    font-weight: bold;
}

/* Hide nested <ul> by default */
.expandable-pages ul {
    display: none;
    margin-left: 20px; /* Indentation for child pages */
}

/* Show the nested <ul> when expanded */
.expandable-pages ul.expanded {
    display: block;
}

/* Ensure the expandable-toggle appears on the right side */
.expandable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
