/**
 * TechBBQ FAQ — reusable accordion section (Event Guide, Volunteering, etc.).
 *
 * Figma: Event Guide 5083:37779; Volunteering 5368:30244 (1440 split).
 * FAQ page stacked: 7648:91755 (1024), 7648:92548 (768), 7648:93256 (375).
 * FAQ page split: 7644:89391 (1440).
 *
 * Title ↔ questions gap (--techbbq-faq-layout-gap):
 * - Mobile: 16px (space/2)
 * - Tablet / desktop stacked: 32px (space/4)
 * - Wide screen split (1440+): 8px (space/1)
 *
 * Figma Life Science 7166:88880 (1440): container top 24px; bottom 72 / 80 / 88 / 140px by tier.
 * Section vertical spacing lives on .techbbq-faq-wrap (Elementor container).
 *
 * Breakpoints (mobile-first): 0–767, 768–1023, 1024–1439, 1440+.
 */

.techbbq-faq {
	--techbbq-faq-layout-gap: var(--techbbq-space-2);
	--techbbq-faq-item-padding-block: 20px;
	--techbbq-faq-item-padding-inline: 20px;
	--techbbq-faq-item-radius: 8px;
	--techbbq-faq-list-gap: var(--techbbq-space-1);
	--techbbq-faq-answer-gap: var(--techbbq-space-2);

	padding: 0;
	background-color: var(--techbbq-bg-main);
}

.techbbq-faq__inner {
	display: flex;
	flex-direction: column;
}

.techbbq-faq__layout {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-faq-layout-gap);
	width: 100%;
}

.techbbq-faq__header {
	margin: 0;
}

.techbbq-faq__title {
	margin: 0;
	color: var(--techbbq-content-primary);
	text-align: left;
}

.techbbq-faq__description {
	max-width: 576px;
	margin: 0;
	color: var(--techbbq-content-secondary);
	text-align: left;
}

.techbbq-faq__list {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--techbbq-faq-list-gap);
	min-width: 0;
}

.techbbq-faq__item {
	background-color: var(--techbbq-bg-surface);
	border-radius: var(--techbbq-faq-item-radius);
	padding: var(--techbbq-faq-item-padding-block) var(--techbbq-faq-item-padding-inline);
	transition: background-color 0.2s ease;
}

.techbbq-faq__item:not(.is-open) {
	cursor: pointer;
}

.techbbq-faq__item:hover {
	background-color: var(--techbbq-bg-surface-alt);
}

.techbbq-faq__question-heading {
	margin: 0;
	min-width: 0;
	width: 100%;
}

.techbbq-faq__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--techbbq-space-3);
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	white-space: normal;
	cursor: pointer;
}

/* Beat Hello reset.css [type=button]:hover / button:hover (#c36). */
[type="button"].techbbq-faq__trigger:hover,
[type="button"].techbbq-faq__trigger:focus,
button.techbbq-faq__trigger:hover,
button.techbbq-faq__trigger:focus {
	background-color: transparent;
	border-color: transparent;
	color: inherit;
}

.techbbq-faq__item:hover .techbbq-faq__question {
	color: var(--techbbq-content-primary);
}

.techbbq-faq__trigger:focus-visible {
	outline: 2px solid var(--techbbq-content-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

.techbbq-faq__question {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
	color: var(--techbbq-content-primary);
}

.techbbq-faq__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--techbbq-content-primary);
	transition: transform 0.2s ease;
}

.techbbq-faq__icon svg path {
	stroke-opacity: 0.4;
	transition: stroke-opacity 0.2s ease;
}

.techbbq-faq__item:hover .techbbq-faq__icon svg path {
	stroke-opacity: 1;
}

.techbbq-faq__icon svg {
	display: block;
	width: 32px;
	height: 32px;
}

.techbbq-faq__icon-fallback {
	font-size: 24px;
	line-height: 1;
	opacity: 0.4;
	transition: opacity 0.2s ease;
}

.techbbq-faq__item:hover .techbbq-faq__icon-fallback {
	opacity: 1;
}

.techbbq-faq__item.is-open .techbbq-faq__icon {
	transform: rotate(45deg);
}

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

.techbbq-faq__answer {
	margin: 0;
	padding-top: var(--techbbq-faq-answer-gap);
	color: var(--techbbq-content-secondary);
	cursor: auto;
}

.techbbq-faq__answer p {
	margin: 0;
}

.techbbq-faq__answer p + p {
	margin-top: var(--techbbq-space-2);
}

@media (min-width: 768px) {
	.techbbq-faq {
		--techbbq-faq-layout-gap: var(--techbbq-space-4);
		--techbbq-faq-item-padding-block: 24px;
		--techbbq-faq-item-padding-inline: 24px;
	}
}

@media (min-width: 1440px) {
	.techbbq-faq {
		--techbbq-faq-item-padding-inline: 32px;
		--techbbq-faq-answer-gap: var(--techbbq-space-3);
	}
	.techbbq-faq:not(.techbbq-faq--stacked) .techbbq-faq__layout {
		flex-direction: row;
		gap: var(--techbbq-space-1);
		align-items: flex-start;
	}

	.techbbq-faq:not(.techbbq-faq--stacked) .techbbq-faq__header {
		flex: 0 0 692px;
		max-width: 692px;
	}
}
