/*
 * YekVest FAQ V2
 * Dedicated public FAQ experience for /faq/.
 */

body.yv-faq-v2-page {
	--yvfaq-bg: #F1F3F7;
	--yvfaq-surface: #ffffff;
	--yvfaq-surface-soft: #F1F3F7;
	--yvfaq-text: #0B0F1A;
	--yvfaq-muted: #6B7280;
	--yvfaq-subtle: #6B7280;
	--yvfaq-line: #DCE0E8;
	--yvfaq-line-strong: #DCE0E8;
	--yvfaq-accent: #2554E8;
	--yvfaq-blue: #2554E8;
	--yvfaq-accent-soft: rgba(94, 99, 242, .10);
	--yvfaq-shadow: 0 24px 72px rgba(15, 33, 53, .08);
	background: var(--yvfaq-bg);
}

html[data-theme="dark"] body.yv-faq-v2-page {
	--yvfaq-bg: #0B0F1A;
	--yvfaq-surface: #0B0F1A;
	--yvfaq-surface-soft: #141A28;
	--yvfaq-text: #F1F3F7;
	--yvfaq-muted: #8890A0;
	--yvfaq-subtle: #6B7280;
	--yvfaq-line: #141A28;
	--yvfaq-line-strong: #141A28;
	--yvfaq-accent: #2554E8;
	--yvfaq-blue: #2554E8;
	--yvfaq-accent-soft: rgba(130, 121, 255, .13);
	--yvfaq-shadow: 0 28px 78px rgba(0, 0, 0, .24);
}

.yv-faq-v2,
.yv-faq-v2 *,
.yv-faq-v2 *::before,
.yv-faq-v2 *::after {
	box-sizing: border-box;
}

.yv-faq-v2 {
	position: relative;
	overflow: clip;
	min-height: 70vh;
	background:
		radial-gradient(circle at 8% 4%, var(--yvfaq-accent-soft), transparent 28rem),
		var(--yvfaq-bg);
	color: var(--yvfaq-text);
}

.yv-faq-v2__ambient {
	position: absolute;
	inset: 0 0 auto;
	height: 560px;
	pointer-events: none;
	background:
		linear-gradient(145deg, transparent 12%, rgba(52, 126, 216, .035) 45%, transparent 72%);
	mask-image: linear-gradient(to bottom, #000, transparent);
}

.yv-faq-v2__shell {
	position: relative;
	width: min(calc(100% - 40px), 1180px);
	margin-inline: auto;
}

.yv-faq-v2__breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 22px;
	color: var(--yvfaq-subtle);
	font-size: 12px;
	font-weight: 650;
}

.yv-faq-v2__breadcrumb a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.yv-faq-v2__breadcrumb a:hover,
.yv-faq-v2__breadcrumb a:focus-visible {
	color: var(--yvfaq-accent);
}

.yv-faq-v2__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
	gap: clamp(36px, 6vw, 82px);
	align-items: center;
	min-height: 500px;
	margin-top: 24px;
	padding: clamp(42px, 5.5vw, 70px);
	border: 1px solid var(--yvfaq-line);
	border-radius: 32px;
	background:
		radial-gradient(circle at 88% 12%, var(--yvfaq-accent-soft), transparent 23rem),
		var(--yvfaq-surface);
	box-shadow: var(--yvfaq-shadow);
}

.yv-faq-v2__kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 13px;
	color: var(--yvfaq-accent);
	font-size: 12px;
	font-weight: 850;
	letter-spacing: .01em;
}

.yv-faq-v2__kicker::before {
	content: "";
	width: 24px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.yv-faq-v2__hero h1 {
	max-width: 12ch;
	margin: 0 0 22px;
	color: var(--yvfaq-text);
	font-size: clamp(2.65rem, 5vw, 5.25rem);
	font-weight: 950;
	line-height: 1.08;
	letter-spacing: -.052em;
	text-wrap: balance;
}

.yv-faq-v2__hero-copy > p {
	max-width: 660px;
	margin: 0;
	color: var(--yvfaq-muted);
	font-size: clamp(.98rem, 1.2vw, 1.1rem);
	line-height: 2.05;
}

.yv-faq-v2__hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 28px;
}

.yv-faq-v2__hero-meta span {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 13px;
	border: 1px solid var(--yvfaq-line);
	border-radius: 999px;
	background: var(--yvfaq-surface-soft);
	color: var(--yvfaq-muted);
	font-size: 12px;
	font-weight: 750;
}

.yv-faq-v2__search-card {
	padding: clamp(24px, 3vw, 34px);
	border: 1px solid var(--yvfaq-line);
	border-radius: 25px;
	background: var(--yvfaq-surface-soft);
}

.yv-faq-v2__search-card > label {
	display: block;
	margin-bottom: 12px;
	color: var(--yvfaq-text);
	font-size: 15px;
	font-weight: 850;
}

.yv-faq-v2__search-control {
	position: relative;
	display: flex;
	align-items: center;
}

.yv-faq-v2__search-control svg {
	position: absolute;
	right: 16px;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--yvfaq-subtle);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	pointer-events: none;
}

.yv-faq-v2__search-control input {
	width: 100%;
	min-height: 58px;
	padding: 0 50px 0 92px;
	border: 1px solid var(--yvfaq-line-strong);
	border-radius: 16px;
	outline: 0;
	background: var(--yvfaq-surface);
	color: var(--yvfaq-text);
	font: inherit;
	font-size: 14px;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.yv-faq-v2__search-control input::placeholder {
	color: var(--yvfaq-subtle);
	opacity: .9;
}

.yv-faq-v2__search-control input:focus {
	border-color: var(--yvfaq-accent);
	box-shadow: 0 0 0 3px var(--yvfaq-accent-soft);
}

.yv-faq-v2__search-control button {
	position: absolute;
	left: 8px;
	min-height: 40px;
	padding: 0 12px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: var(--yvfaq-accent);
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.yv-faq-v2__search-control button:hover,
.yv-faq-v2__search-control button:focus-visible {
	background: var(--yvfaq-accent-soft);
}

.yv-faq-v2__search-card > p {
	margin: 12px 0 0;
	color: var(--yvfaq-subtle);
	font-size: 12px;
	line-height: 1.8;
}

.yv-faq-v2__topics {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 22px 0 74px;
}

.yv-faq-v2__topics a {
	display: flex;
	align-items: center;
	min-height: 62px;
	padding: 10px 12px;
	border: 1px solid var(--yvfaq-line);
	border-radius: 17px;
	background: var(--yvfaq-surface);
	color: var(--yvfaq-muted);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	transition:
		transform .2s ease,
		border-color .2s ease,
		color .2s ease,
		background .2s ease;
}

.yv-faq-v2__topics a span {
	display: grid;
	flex: 0 0 auto;
	width: 31px;
	height: 31px;
	margin-left: 9px;
	border-radius: 10px;
	background: var(--yvfaq-surface-soft);
	color: var(--yvfaq-accent);
	font-size: 11px;
	place-items: center;
}

.yv-faq-v2__topics a:hover,
.yv-faq-v2__topics a:focus-visible {
	transform: translateY(-2px);
	border-color: var(--yvfaq-accent);
	background: var(--yvfaq-accent-soft);
	color: var(--yvfaq-text);
}

.yv-faq-v2__content-wrap {
	padding-bottom: 78px;
}

.yv-faq-v2__content {
	display: grid;
	gap: 28px;
}

.yv-faq-v2__content > .wp-block-group {
	margin: 0;
}

.yv-faq-v2__category {
	scroll-margin-top: 110px;
	padding: clamp(26px, 4vw, 44px);
	border: 1px solid var(--yvfaq-line);
	border-radius: 28px;
	background: var(--yvfaq-surface);
	box-shadow: 0 12px 40px rgba(19, 38, 62, .035);
}

html[data-theme="dark"] .yv-faq-v2__category {
	box-shadow: none;
}

.yv-faq-v2__category > .yv-faq-v2__eyebrow {
	margin: 0 0 5px !important;
	color: var(--yvfaq-accent) !important;
	font-size: 12px !important;
	font-weight: 850;
}

.yv-faq-v2__category > h2 {
	margin: 0;
	color: var(--yvfaq-text);
	font-size: clamp(1.55rem, 2.7vw, 2.35rem);
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: -.025em;
}

.yv-faq-v2__category > .yv-faq-v2__category-intro {
	max-width: 720px;
	margin: 8px 0 24px !important;
	color: var(--yvfaq-muted) !important;
	font-size: 14px !important;
	line-height: 1.9;
}

.yv-faq-v2__category > .wp-block-details {
	margin: 0;
	border-top: 1px solid var(--yvfaq-line);
	background: transparent;
}

.yv-faq-v2__category > .wp-block-details:last-child {
	border-bottom: 1px solid var(--yvfaq-line);
}

.yv-faq-v2__category > .wp-block-details[hidden] {
	display: none !important;
}

.yv-faq-v2__category > .wp-block-details summary {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 76px;
	padding: 18px 0 18px 48px;
	outline: 0;
	color: var(--yvfaq-text);
	font-size: clamp(.98rem, 1.3vw, 1.08rem);
	font-weight: 850;
	line-height: 1.75;
	cursor: pointer;
	list-style: none;
}

.yv-faq-v2__category > .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.yv-faq-v2__category > .wp-block-details summary::before,
.yv-faq-v2__category > .wp-block-details summary::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 50%;
	width: 14px;
	height: 2px;
	border-radius: 999px;
	background: var(--yvfaq-accent);
	transition: transform .22s ease;
}

.yv-faq-v2__category > .wp-block-details summary::after {
	transform: rotate(90deg);
}

.yv-faq-v2__category > .wp-block-details[open] summary::after {
	transform: rotate(0deg);
}

.yv-faq-v2__category > .wp-block-details summary:focus-visible {
	color: var(--yvfaq-accent);
}

.yv-faq-v2__category > .wp-block-details > :not(summary) {
	max-width: 880px;
	margin: 0 0 22px !important;
	padding-left: 34px;
	color: var(--yvfaq-muted);
	font-size: 14px;
	line-height: 2.05;
}

.yv-faq-v2__category > .wp-block-details a {
	color: var(--yvfaq-blue);
	font-weight: 800;
	text-underline-offset: 4px;
}

.yv-faq-v2__category > .wp-block-details a:hover,
.yv-faq-v2__category > .wp-block-details a:focus-visible {
	color: var(--yvfaq-accent);
}

.yv-faq-v2__empty {
	margin-bottom: 24px;
	padding: 52px 24px;
	border: 1px dashed var(--yvfaq-line-strong);
	border-radius: 26px;
	background: var(--yvfaq-surface);
	text-align: center;
}

.yv-faq-v2__empty > span {
	display: grid;
	width: 54px;
	height: 54px;
	margin: 0 auto 16px;
	border-radius: 18px;
	background: var(--yvfaq-accent-soft);
	color: var(--yvfaq-accent);
	font-size: 25px;
	font-weight: 900;
	place-items: center;
}

.yv-faq-v2__empty h2 {
	margin: 0 0 8px;
	color: var(--yvfaq-text);
	font-size: 1.35rem;
}

.yv-faq-v2__empty p {
	margin: 0 0 18px;
	color: var(--yvfaq-muted);
	line-height: 1.9;
}

.yv-faq-v2__empty a {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	border-radius: 12px;
	background: var(--yvfaq-accent);
	color: #fff;
	font-weight: 850;
	text-decoration: none;
}

.yv-faq-v2__cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 30px;
	align-items: center;
	margin-bottom: 94px;
	padding: clamp(30px, 4.5vw, 50px);
	border: 1px solid var(--yvfaq-line);
	border-radius: 28px;
	background:
		linear-gradient(135deg, var(--yvfaq-surface), var(--yvfaq-surface-soft));
}

.yv-faq-v2__cta h2 {
	max-width: 700px;
	margin: 0 0 10px;
	color: var(--yvfaq-text);
	font-size: clamp(1.65rem, 3vw, 2.7rem);
	font-weight: 920;
	line-height: 1.35;
	letter-spacing: -.03em;
}

.yv-faq-v2__cta p {
	max-width: 780px;
	margin: 0;
	color: var(--yvfaq-muted);
	font-size: 14px;
	line-height: 2;
}

.yv-faq-v2__cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.yv-faq-v2__button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	border: 1px solid var(--yvfaq-line-strong);
	border-radius: 14px;
	background: var(--yvfaq-surface);
	color: var(--yvfaq-text);
	font-size: 13px;
	font-weight: 850;
	text-decoration: none;
	transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.yv-faq-v2__button--primary {
	border-color: var(--yvfaq-accent);
	background: var(--yvfaq-accent);
	color: #fff;
}

.yv-faq-v2__button:hover,
.yv-faq-v2__button:focus-visible {
	transform: translateY(-2px);
	border-color: var(--yvfaq-accent);
}

.yv-faq-v2__button--primary:hover,
.yv-faq-v2__button--primary:focus-visible {
	filter: brightness(1.06);
}

@media (max-width: 980px) {
	.yv-faq-v2__hero {
		grid-template-columns: 1fr;
		min-height: 0;
		padding: 46px;
	}

	.yv-faq-v2__hero h1 {
		max-width: 14ch;
	}

	.yv-faq-v2__topics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yv-faq-v2__cta {
		grid-template-columns: 1fr;
	}

	.yv-faq-v2__cta-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.yv-faq-v2__shell {
		width: min(calc(100% - 24px), 1180px);
	}

	.yv-faq-v2__breadcrumb {
		padding-top: 15px;
	}

	.yv-faq-v2__hero {
		margin-top: 16px;
		padding: 30px 20px;
		border-radius: 23px;
		gap: 28px;
	}

	.yv-faq-v2__hero h1 {
		font-size: clamp(2.2rem, 12vw, 3.6rem);
	}

	.yv-faq-v2__search-card {
		padding: 18px;
		border-radius: 19px;
	}

	.yv-faq-v2__search-control input {
		min-height: 54px;
		padding-left: 80px;
	}

	.yv-faq-v2__topics {
		display: flex;
		margin: 14px -12px 46px;
		padding: 0 12px 6px;
		overflow-x: auto;
		scrollbar-width: none;
		scroll-snap-type: x proximity;
	}

	.yv-faq-v2__topics::-webkit-scrollbar {
		display: none;
	}

	.yv-faq-v2__topics a {
		flex: 0 0 auto;
		min-width: 180px;
		scroll-snap-align: start;
	}

	.yv-faq-v2__content {
		gap: 18px;
	}

	.yv-faq-v2__category {
		padding: 24px 18px;
		border-radius: 22px;
	}

	.yv-faq-v2__category > .wp-block-details summary {
		min-height: 70px;
		padding-left: 38px;
	}

	.yv-faq-v2__category > .wp-block-details summary::before,
	.yv-faq-v2__category > .wp-block-details summary::after {
		left: 5px;
	}

	.yv-faq-v2__category > .wp-block-details > :not(summary) {
		padding-left: 0;
	}

	.yv-faq-v2__cta {
		margin-bottom: 64px;
		padding: 28px 20px;
		border-radius: 22px;
	}

	.yv-faq-v2__cta-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.yv-faq-v2__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yv-faq-v2 *,
	.yv-faq-v2 *::before,
	.yv-faq-v2 *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
