/* FAQ page template: templates/faq.php. Visual style mirrors the About Us "workflow" accordion. */

.faq-intro {
	max-width: 800px;
	margin-bottom: 34px;
	font-size: 14px;
}

.faq-intro > :last-child {
	margin-bottom: 0;
}

.faq {
	border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

/* ".faq" prefix keeps this above the theme's ".inner_about h2" rule */
.faq .faq__heading {
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
}

.faq__trigger {
	position: relative;
	display: flex;
	align-items: flex-start;
	width: 100%;
	margin: 0;
	padding: 15px 0;
	padding-inline-end: 40px;
	border: 0;
	border-top: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 0;
	background: none;
	color: #fff;
	font: inherit;
	font-size: 20px;
	font-weight: 500;
	line-height: 32px;
	text-align: start;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.faq__trigger::after {
	content: '';
	position: absolute;
	inset-inline-end: 0;
	top: 20px;
	width: 20px;
	height: 20px;
	background: url('../img/arrow-bottom.png') no-repeat center / contain;
	transition: transform 0.4s ease-in-out;
}

.faq__trigger[aria-expanded="true"]::after {
	background-image: url('../img/arrow-top.png');
}

.faq__trigger:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.faq__number {
	flex: 0 0 auto;
	margin-inline-end: 40px;
	font-size: 40px;
}

.faq__question {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Panels are collapsed by default; a <noscript> rule in the template opens them when JS is off. */
.faq__panel {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 0.4s ease, visibility 0s linear 0.4s;
}

.faq__panel.is-open {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows 0.4s ease, visibility 0s;
}

.faq__panel-inner {
	min-height: 0;
	overflow: hidden;
	padding-inline-end: 30px;
}

.faq__panel-inner > :last-child {
	margin-bottom: 0;
	padding-bottom: 25px;
}

html[dir="rtl"] .faq__trigger {
	font-size: 22px;
}

/* Mobile/tablet: same treatment as the About Us accordion (compact rows, no arrow, large numbers) */
@media (max-width: 992px) {
	.faq__trigger {
		padding: 8px 0;
	}

	.faq__trigger::after {
		display: none;
	}

	.faq__number {
		margin-inline-end: 26px;
		font-size: 32px;
	}

	.faq__panel-inner {
		padding-inline-end: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.faq__panel,
	.faq__panel.is-open,
	.faq__trigger::after {
		transition: none;
	}
}
