/* ===================== Accordion Wrap ===================== */
.ca-accordion-wrap {
	width: 100%;
}

.ca-accordion-wrap *,
.ca-accordion-wrap *::before,
.ca-accordion-wrap *::after {
	box-sizing: border-box;
}

/* ===================== Parent Item ===================== */
.ca-parent-item {
	border-bottom: 1px solid #eee;
}

.ca-parent-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #f7f7f7;
	transition: background-color 0.2s ease;
}

.ca-parent-item.is-open .ca-parent-header {
	background-color: #f0f0f0;
}

a.ca-parent-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
	text-decoration: none;
	flex: 1;
}

a.ca-parent-title:hover {
	color: inherit;
}

/* ===================== Toggle Icon ===================== */
.ca-toggle-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 12px;
	color: #333;
	cursor: pointer;
	user-select: none;
}

.ca-toggle-icon svg {
	width: 20px;
	height: 20px;
}

.ca-icon-close {
	display: none;
}

.ca-parent-item.is-open .ca-icon-plus {
	display: none;
}

.ca-parent-item.is-open .ca-icon-close {
	display: block;
}

/* ===================== Children List ===================== */
.ca-children-list {
	list-style: none;
	margin: 8px 12px;
	padding: 0;
	overflow: hidden;
	transition: max-height 0.5s ease, opacity 0.5s ease;
}

.ca-child-item {
	border-left: 3px solid transparent;
	border-radius: 6px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ca-child-item:hover {
	background-color: #f5f9fc;
	border-left-color: #3db8e8;
}

.ca-child-item.is-active {
	border-left-color: #0073aa;
	background-color: rgba(0, 115, 170, 0.04);
}

.ca-child-link {
	display: block;
	padding: 10px 20px 10px 24px;
	text-decoration: none;
	font-size: 14px;
	color: #555;
	transition: color 0.2s ease;
	line-height: 1.5;
}

.ca-child-item:hover .ca-child-link {
	color: #0073aa;
}

/* No children — parent is just a link-like label */
.ca-parent-item:not(.is-open) .ca-parent-header:hover {
	background-color: #f0f0f0;
}
