/**
 * FAQ Accordion block styles.
 *
 * @package NexioEducation
 */

.faq-section {
	display: flex;
	flex-wrap: wrap;
	gap: 4rem;
	padding: 6rem 142px 7rem 142px;
	max-width: 1200px;
	margin: 0 auto;
}

.faq-header {
	width: 100%;
}

.faq-list {
	margin-left: auto;
	width: 59%;
}

.faq-title {
	font-family: var(--wp--preset--font-family--body, 'Manrope', sans-serif);
	font-size: 48px;
	font-weight: 800;
	color: #064D8E;
	line-height: 1.2;
	margin: 0;
}

.faq-item {
	border-bottom: 1px solid #e2e8f0;
}

.faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem 0;
	font-family: var(--wp--preset--font-family--heading, 'Apris Trial', serif);
	font-size: 24px;
	font-weight: 300;
	line-height: 28px;
	color: #064D8E;
	cursor: pointer;
	list-style: none;
}

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

.faq-icon {
	width: 24px;
	height: 24px;
	position: relative;
	flex-shrink: 0;
	margin-left: 1rem;
}

.faq-icon::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid #064D8E;
	border-bottom: 2px solid #064D8E;
	transform: translate(-50%, -70%) rotate(45deg);
	transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon::before {
	transform: translate(-50%, -30%) rotate(-135deg);
}

.faq-answer {
	padding: 0 4rem 1rem 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	color: #064D8E;
}

.faq-answer p:last-child {
	margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
	.faq-section {
		flex-direction: column;
		padding: 4rem 40px;
	}

	.faq-list {
		width: 100%;
		margin-left: 0;
	}

	.faq-title {
		font-size: 40px;
		line-height: 48px;
	}
}

@media (max-width: 768px) {
	.faq-section {
		padding: 2rem 24px;
	}

	.faq-title {
		font-size: 32px;
		line-height: 40px;
	}
}
