﻿/* FAQ Style */
.faq-layout {
	display: flex;
	gap: 24px;
}

.faq-sidebar {
	flex: 0 0 270px;
	background: #1f1f1f;
	padding: 20px;
	border-radius: 8px;
	position: sticky;
	top: 110px;
	height: fit-content;
}

.faq-sidebar-title {
	color: #fff;
	font-size: 18px;
	margin-bottom: 16px;
}

.faq-nav {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.faq-nav-link {
	display: block;
	padding: 12px 14px;
	border-radius: 6px;
	color: #f5f5f5;
	background: #2b2b2b;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-nav-link:hover,
.faq-nav-link.active {
	background: #f1c40f;
	color: #1b1b1b;
}

.faq-content {
	flex: 1;
}

.faq-item {
	margin-bottom: 10px;
}

.faq-item.hidden {
	display: none;
}

.faq-question {
	width: 100%;
	padding: 15px;
	text-align: left;
	background-color: #333;
	color: white;
	border: none;
	font-size: 16px;
	cursor: pointer;
	border-radius: 5px;
	transition: background-color 0.3s ease;
	position: relative;
}

.faq-question::after {
	font-family: "Font Awesome 7 Free";
	font-weight: 900;
	content: "\2b";
	position: absolute;
	right: 15px;
	font-size: 20px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.faq-question.is-open::after {
	/* content: '×'; */
	font-family: "Font Awesome 7 Free";
	content: "\f00d";
	font-weight: 900;
}

.faq-question:hover {
	background-color: #444;
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	padding: 0 10px;
	background-color: #f4f4f4;
	border: 1px solid #ddd;
	margin-top: 5px;
	border-radius: 5px;
	/* transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease; */
}

.faq-answer.show {
	max-height: 500px;
	opacity: 1;
	padding: 10px;
}

@media (max-width: 900px) {
	.faq-layout {
		flex-direction: column;
	}

	.faq-sidebar {
		position: static;
		width: 100%;
	}
}