/* FAQ — sol accordion, sağ kategoriler */

.faq-page {
	padding: 2rem 0 3rem;
}

.faq-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 2.5rem;
	align-items: start;
}

.faq-layout__main {
	min-width: 0;
}

.faq-page__head {
	margin-bottom: 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-page__title {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 700;
	line-height: 1.25;
	color: #0f172a;
}

.faq-page__desc {
	margin: 0.5rem 0 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #64748b;
}

.faq-page__back {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
}

.faq-page__back a {
	color: #0369a1;
	text-decoration: none;
}

.faq-page__back a:hover {
	text-decoration: underline;
}

.faq-page__intro {
	margin-top: 0.75rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #475569;
}

.faq-page__intro p:first-child {
	margin-top: 0;
}

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

.faq-empty {
	margin: 0;
	padding: 2rem 1.25rem;
	text-align: center;
	font-size: 0.95rem;
	color: #64748b;
	background: #f8fafc;
	border: 1px dashed #e2e8f0;
	border-radius: 12px;
}

/* Accordion */
.faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.faq-accordion__item {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-accordion__item[open] {
	border-color: #bae6fd;
	box-shadow: 0 4px 16px rgba(3, 105, 161, 0.08);
}

.faq-accordion__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: #0f172a;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

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

.faq-accordion__qtext {
	flex: 1;
	min-width: 0;
}

.faq-accordion__icon {
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	background: #f1f5f9;
	position: relative;
	transition: background 0.2s ease, transform 0.2s ease;
}

.faq-accordion__icon::before,
.faq-accordion__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 2px;
	background: #0369a1;
	border-radius: 1px;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}

.faq-accordion__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.faq-accordion__item[open] .faq-accordion__icon {
	background: #e0f2fe;
}

.faq-accordion__item[open] .faq-accordion__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
	opacity: 0;
}

.faq-accordion__question:hover {
	background: #f8fafc;
}

.faq-accordion__answer {
	padding: 0 1.15rem 1.15rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #475569;
	border-top: 1px solid #f1f5f9;
}

.faq-accordion__answer p:first-child {
	margin-top: 1rem;
}

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

.faq-accordion__answer a {
	color: #0369a1;
}

.faq-accordion__answer ul,
.faq-accordion__answer ol {
	padding-left: 1.25rem;
}

/* Sidebar */
.faq-sidebar {
	position: sticky;
	top: 90px;
}

.faq-sidebar__box {
	padding: 1.25rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

.faq-sidebar__title {
	margin: 0 0 0.85rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
}

.faq-sidebar__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.faq-sidebar__item a {
	display: block;
	padding: 0.55rem 0.75rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: #334155;
	text-decoration: none;
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease;
}

.faq-sidebar__item a:hover {
	background: #fff;
	color: #0369a1;
}

.faq-sidebar__item.is-active a {
	background: #fff;
	color: #0369a1;
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

@media (max-width: 992px) {
	.faq-layout {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.faq-sidebar {
		position: static;
		order: -1;
	}

	.faq-sidebar__box {
		padding: 1rem;
	}

	.faq-sidebar__list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.faq-sidebar__item a {
		padding: 0.45rem 0.85rem;
		background: #fff;
		border: 1px solid #e2e8f0;
		border-radius: 999px;
		font-size: 0.8125rem;
	}

	.faq-sidebar__item.is-active a {
		background: #0369a1;
		border-color: #0369a1;
		color: #fff;
		box-shadow: none;
	}
}

@media (max-width: 600px) {
	.faq-page {
		padding: 1.25rem 0 2rem;
	}

	.faq-accordion__question {
		padding: 0.9rem 1rem;
		font-size: 0.9375rem;
	}

	.faq-accordion__answer {
		padding: 0 1rem 1rem;
		font-size: 0.875rem;
	}
}
