/* ============================================================
   FAQ Widget
   bh-faq
   ============================================================ */

.bh-faq {
	background-color: #ffffff;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* ==========================================================================
   Filter tabs
   ========================================================================== */

.bh-faq__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bh-faq__filter {
	background: transparent;
	border: 1px solid #b2b2b2;
	border-radius: 2px;
	color: #4c4c4c;
	cursor: pointer;
	font-family: 'Ubuntu', sans-serif;
	font-size: 12px;
	font-weight: 700;
	height: 36px;
	line-height: 1.5;
	padding: 6px 16px;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.bh-faq__filter:hover,
.bh-faq__filter.is-active {
	background-color: #f0af24;
	border-color: #f0af24;
	color: #1d2229;
}

.bh-faq__filter:focus-visible {
	outline: 2px solid #f0af24;
	outline-offset: 2px;
}

/* ==========================================================================
   Groups container
   ========================================================================== */

.bh-faq__groups {
	display: flex;
	flex-direction: column;
	gap: 60px;
}

/* ==========================================================================
   Single category group (left: meta, right: items)
   ========================================================================== */

.bh-faq__group {
	align-items: flex-start;
	display: flex;
	gap: 80px;
}

.bh-faq__group[hidden] {
	display: none;
}

.bh-faq__group-meta {
	display: flex;
	flex: 0 0 280px;
	flex-direction: column;
	gap: 8px;
	width: 280px;
}

.bh-faq__cat-heading {
	color: #000000;
	font-family: 'Ubuntu', sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.22px;
	line-height: 1.4;
	margin: 0;
}

.bh-faq__cat-desc {
	color: #606469;
	font-family: 'Ubuntu', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

.bh-faq__group-items {
	flex: 1 0 0;
	min-width: 0;
}

/* ==========================================================================
   Sub-group headers (optional title + description within a category)
   ========================================================================== */

.bh-faq__subgroup-header {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-bottom: 4px;
}

.bh-faq__subgroup-header:not(:first-child) {
	margin-top: 32px;
}

.bh-faq__subgroup-heading {
	color: #000000;
	font-family: 'Ubuntu', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
}

.bh-faq__subgroup-desc {
	color: #606469;
	font-family: 'Ubuntu', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

/* ==========================================================================
   FAQ item
   ========================================================================== */

.bh-faq__item {
	background-color: transparent;
	border-bottom: 1px solid #e0e0e0;
}

/* ==========================================================================
   Toggle button
   ========================================================================== */

.bh-faq__toggle {
	align-items: center;
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 20px 0;
	text-align: left;
	width: 100%;
}

.bh-faq__toggle:focus-visible {
	outline: 2px solid #f0af24;
	outline-offset: -2px;
}

.bh-faq__question {
	color: #000000;
	flex: 1 0 0;
	font-family: 'Ubuntu', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	min-width: 0;
}

.bh-faq__chevron {
	color: #1d2229;
	flex-shrink: 0;
	transition: transform 200ms ease;
}

.bh-faq__toggle[aria-expanded="true"] .bh-faq__chevron {
	transform: rotate(180deg);
}

/* ==========================================================================
   Answer panel
   ========================================================================== */

.bh-faq__panel {
	padding: 0 0 20px;
}

.bh-faq__panel[hidden] {
	display: none;
}

.bh-faq__answer-text {
	color: #606469;
	font-family: 'Ubuntu', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.bh-faq__answer-text > *:first-child { margin-top: 0; }
.bh-faq__answer-text > *:last-child  { margin-bottom: 0; }

.bh-faq__answer-text p {
	margin: 0 0 0.75em;
}

.bh-faq__answer-text ul,
.bh-faq__answer-text ol {
	margin: 0 0 0.75em;
	padding-left: 1.5em;
}

.bh-faq__answer-text li {
	margin-bottom: 0.25em;
}

.bh-faq__answer-text a {
	color: inherit;
	text-decoration: underline;
}

.bh-faq__answer-text a:hover {
	opacity: 0.75;
}

.bh-faq__answer-text strong { font-weight: 700; }
.bh-faq__answer-text em     { font-style: italic; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.bh-faq__group {
		gap: 48px;
	}

	.bh-faq__group-meta {
		flex: 0 0 220px;
		width: 220px;
	}
}

@media (max-width: 768px) {
	.bh-faq__groups {
		gap: 40px;
	}

	.bh-faq__group {
		flex-direction: column;
		gap: 24px;
	}

	.bh-faq__group-meta {
		flex: none;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bh-faq__chevron,
	.bh-faq__filter {
		transition: none;
	}
}
