/*
 * FAQ accordion styles.
 *
 * Uses Astra global CSS variables for colors and typography.
 */

.klyna-faq-accordion {
	max-width: var(--ast-normal-container-width, 1288px);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.klyna-faq-item {
	position: relative;
	margin: 0;
	padding: 20px 0;
	border: none;
}

.klyna-faq-item::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background-color: var(--ast-global-color-2, #1a2b4c);
	opacity: 0.15;
}

.klyna-faq-question {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 0;
	font-family: var(--ast-heading-font-family, inherit);
	font-size: 1.1em;
	font-weight: var(--ast-heading-font-weight, 600);
	color: var(--ast-global-color-2, #1a2b4c);
	cursor: pointer;
	list-style: none;
}

.klyna-faq-question::-webkit-details-marker {
	display: none;
}

.klyna-faq-question::after {
	content: '+';
	margin-left: auto;
	font-size: 1.4em;
	line-height: 1;
	color: var(--ast-global-color-1, #e02b2b);
	transition: transform 0.3s ease;
}

.klyna-faq-item[open] > .klyna-faq-question::after {
	content: '-';
}

.klyna-faq-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 0.9em;
	font-weight: 700;
	line-height: 1;
	background-color: var(--ast-global-color-1, #e02b2b);
	color: var(--ast-global-color-5, #ffffff);
}

.klyna-faq-answer {
	padding: 14px 0 0 44px;
	font-family: var(--ast-body-font-family, inherit);
	font-size: 1em;
	line-height: 1.65;
	color: var(--ast-global-color-2, #1a2b4c);
	opacity: 0.9;
}

.klyna-faq-answer > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.klyna-faq-question {
		font-size: 1em;
	}

	.klyna-faq-answer {
		padding-left: 0;
	}
}
