/* Two-Column FAQ Styles */
:root {
	--faq-primary: #2271b1;
	--faq-primary-hover: #135e96;
	--faq-primary-light: #f0f6fc;
	--faq-border: #e5e7eb;
	--faq-text: #1d2327;
	--faq-text-muted: #646970;
	--faq-bg: #ffffff;
	--faq-surface: #f8f9fa;
	--faq-shadow: 0 1px 3px rgba(0,0,0,0.06);
	--faq-radius: 12px;
}

.adfuz-faq-page,
.adfuz-faq-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--faq-text);
	width: 100%;
	max-width: 100%;
	margin: 15px 0 30px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* ── Unified Modern Hero Card with CTA ── */
.faq-hero-card {
	background: linear-gradient(135deg, #312e81 0%, #3730a3 45%, #2563eb 100%);
	border-radius: 14px;
	padding: 26px 32px;
	margin-bottom: 20px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 10px 25px -5px rgba(49, 46, 129, 0.25);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
	color: #ffffff;
}

.faq-hero-left {
	flex: 1 1 500px;
}

.faq-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 20px;
	padding: 3px 12px;
	font-size: 11px;
	font-weight: 700;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	backdrop-filter: blur(4px);
}

.faq-hero-badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: #38bdf8;
	box-shadow: 0 0 8px #38bdf8;
}

.faq-hero-title {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 6px 0;
	color: #ffffff;
	letter-spacing: -0.4px;
	line-height: 1.25;
}

.faq-hero-desc {
	font-size: 14px;
	color: #e0e7ff;
	margin: 0;
	line-height: 1.55;
	max-width: 720px;
}

.faq-hero-right {
	flex-shrink: 0;
}

.faq-external-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #ffffff;
	color: #3730a3 !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 700;
	padding: 13px 24px;
	border-radius: 9px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	transition: all 0.25s ease;
	cursor: pointer;
	white-space: nowrap;
}

.faq-external-cta-btn:hover {
	background: #f8fafc;
	color: #1e1b4b !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.faq-external-cta-btn:active {
	transform: translateY(0);
}

.faq-cta-icon {
	transition: transform 0.2s ease;
}

.faq-external-cta-btn:hover .faq-cta-icon {
	transform: translate(2px, -2px);
}

/* Search Bar */
.faq-search-wrapper {
	position: relative;
	margin-bottom: 20px;
	width: 100%;
}

.faq-search-wrapper input[type="search"] {
	width: 100%;
	box-sizing: border-box;
	height: 48px;
	padding: 0 48px 0 48px;
	font-size: 15px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	transition: all 0.2s ease;
	outline: none;
	color: #1f2937;
}

.faq-search-wrapper input[type="search"]:focus {
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.faq-search-wrapper .search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
}

.faq-search-wrapper .search-clear {
	position: absolute;
	right: 48px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	display: none;
	padding: 4px;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.faq-search-wrapper .search-clear:hover {
	background: #f3f4f6;
	color: #1f2937;
}

.faq-search-wrapper .search-shortcut {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 11px;
	font-weight: 600;
	color: #6b7280;
	background: #f3f4f6;
	padding: 2px 7px;
	border-radius: 4px;
	border: 1px solid #e5e7eb;
}

/* Two-Column Layout */
.faq-layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	width: 100%;
}

/* Sidebar */
.faq-sidebar {
	flex: 0 0 280px;
	width: 280px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	overflow: hidden;
	position: sticky;
	top: 32px;
}

.faq-sidebar-header {
	padding: 14px 20px;
	border-bottom: 1px solid #f3f4f6;
	font-weight: 700;
	font-size: 12px;
	color: #4b5563;
	background: #f9fafb;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.faq-sidebar-total {
	font-size: 11px;
	font-weight: 600;
	color: #6b7280;
	background: #e5e7eb;
	padding: 2px 7px;
	border-radius: 10px;
}

.faq-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.faq-sidebar-item {
	border-bottom: 1px solid #f3f4f6;
}

.faq-sidebar-item:last-child {
	border-bottom: none;
}

.faq-sidebar-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 20px;
	text-decoration: none;
	color: #4b5563;
	font-size: 14px;
	font-weight: 500;
	border-left: 3px solid transparent;
	transition: all 0.15s ease;
}

.faq-sidebar-item a:hover {
	background: #f8fafc;
	color: #1e1b4b;
}

.faq-sidebar-item a.active {
	background: #eef2ff;
	color: #4338ca;
	font-weight: 600;
	border-left-color: #4f46e5;
}

.faq-sidebar-item .item-count {
	margin-left: auto;
	font-size: 11px;
	font-weight: 600;
	color: #6b7280;
	background: #f3f4f6;
	padding: 2px 8px;
	border-radius: 12px;
}

.faq-sidebar-item a.active .item-count {
	background: #4f46e5;
	color: #ffffff;
}

/* Content Area */
.faq-content {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

.faq-content .faq-category {
	display: none;
}

.faq-content .faq-category.active {
	display: block;
}

.faq-content .faq-category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e7eb;
}

.faq-category-heading-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.faq-category-heading-wrap h2 {
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	margin: 0;
	letter-spacing: -0.2px;
}

.faq-content .faq-category-header .category-count {
	font-size: 13px;
	color: #6b7280;
	font-weight: 500;
}

/* FAQ Items */
.faq-item {
	background: var(--faq-bg);
	border: 1px solid var(--faq-border);
	border-radius: var(--faq-radius);
	margin-bottom: 8px;
	transition: all 0.2s ease;
	box-shadow: var(--faq-shadow);
	overflow: hidden;
}

.faq-item:hover {
	border-color: #d0d4d9;
}

.faq-item.open {
	border-color: var(--faq-primary);
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.08);
}

.faq-item .faq-question {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 20px;
	cursor: pointer;
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	font: inherit;
	color: inherit;
	transition: background 0.2s ease;
}

.faq-item .faq-question:hover {
	background: var(--faq-surface);
}

.faq-item .faq-question .q-number {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	background: var(--faq-surface);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--faq-text-muted);
	flex-shrink: 0;
}

.faq-item.open .faq-question .q-number {
	background: var(--faq-primary);
	color: #fff;
}

.faq-item .faq-question .q-text {
	flex: 1;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.4;
	padding-top: 2px;
}

.faq-item .faq-question .q-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--faq-text-muted);
	transition: transform 0.3s ease;
}

.faq-item.open .faq-question .q-icon {
	transform: rotate(180deg);
	color: var(--faq-primary);
}

.faq-item .faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
	max-height: 2000px;
}

.faq-item .faq-answer-inner {
	padding: 0 20px 20px 64px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--faq-text-muted);
}

.faq-item .faq-answer-inner p {
	margin: 0 0 12px 0;
}

.faq-item .faq-answer-inner p:last-child {
	margin-bottom: 0;
}

.faq-item .faq-answer-inner .faq-steps {
	margin: 12px 0;
	padding-left: 24px;
	list-style: decimal;
}

.faq-item .faq-answer-inner .faq-steps li {
	margin-bottom: 8px;
}

.faq-item .faq-answer-inner .faq-list {
	margin: 12px 0;
	padding-left: 24px;
	list-style: disc;
}

.faq-item .faq-answer-inner .faq-list li {
	margin-bottom: 6px;
}

.faq-item .faq-answer-inner .faq-code-block {
	background: var(--faq-surface);
	border-radius: 8px;
	padding: 16px;
	margin: 12px 0;
	position: relative;
	border: 1px solid var(--faq-border);
}

.faq-item .faq-answer-inner .faq-code-block pre {
	margin: 0;
	padding: 0;
	background: none;
	font-size: 14px;
	line-height: 1.6;
	overflow-x: auto;
}

.faq-item .faq-answer-inner .faq-code-block code {
	font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
	color: var(--faq-text);
}

.faq-item .faq-answer-inner .faq-code-block .faq-copy-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 4px 12px;
	font-size: 12px;
	background: var(--faq-bg);
	border: 1px solid var(--faq-border);
	border-radius: 4px;
	cursor: pointer;
	color: var(--faq-text-muted);
	transition: all 0.2s ease;
}

.faq-item .faq-answer-inner .faq-code-block .faq-copy-btn:hover {
	background: var(--faq-primary);
	color: #fff;
	border-color: var(--faq-primary);
}

.faq-item .faq-answer-inner .faq-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	background: #fef9e7;
	border: 1px solid #f7e9c3;
	border-radius: 8px;
	margin: 12px 0;
	font-size: 14px;
	color: #8a6d3b;
}

.faq-item .faq-answer-inner .faq-note svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: #f0ad4e;
}

.faq-item .faq-answer-inner .faq-text {
	margin-bottom: 12px;
}

/* Empty State */
.faq-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: var(--faq-bg);
	border-radius: var(--faq-radius);
	border: 1px solid var(--faq-border);
}

.faq-empty-state .empty-icon {
	color: var(--faq-text-muted);
	margin-bottom: 16px;
}

.faq-empty-state h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 8px 0;
	color: var(--faq-text);
}

.faq-empty-state p {
	font-size: 15px;
	color: var(--faq-text-muted);
	margin: 0;
}

.faq-empty-state .clear-search-btn {
	display: inline-block;
	margin-top: 16px;
	padding: 8px 24px;
	background: var(--faq-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.faq-empty-state .clear-search-btn:hover {
	background: var(--faq-primary-hover);
}

/* Responsive */
@media (max-width: 1024px) {
	.faq-layout {
		flex-direction: column;
	}
	.faq-sidebar {
		flex: 1;
		position: static;
		width: 100%;
	}
	.faq-sidebar-list {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
		padding: 8px;
	}
	.faq-sidebar-item {
		border-bottom: none;
	}
	.faq-sidebar-item a {
		padding: 8px 16px;
		border-radius: 6px;
	}
	.faq-sidebar-item a.active {
		border-right: none;
		border-bottom: 3px solid var(--faq-primary);
	}
}

@media (max-width: 768px) {
	.faq-hero-card {
		padding: 20px;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	.faq-hero-right {
		width: 100%;
	}
	.faq-external-cta-btn {
		width: 100%;
		justify-content: center;
		text-align: center;
		white-space: normal;
		box-sizing: border-box;
	}
	.faq-hero-title {
		font-size: 20px;
	}
	.faq-item .faq-question {
		padding: 14px 16px;
	}
	.faq-item .faq-answer-inner {
		padding: 0 16px 16px 56px;
	}
	.faq-search-wrapper input[type="search"] {
		font-size: 14px;
		padding: 12px 16px 12px 40px;
	}
	.faq-search-wrapper .search-shortcut {
		display: none;
	}
}

@media (max-width: 480px) {
	.faq-item .faq-question .q-number {
		min-width: 24px;
		height: 24px;
		font-size: 10px;
	}
	.faq-item .faq-question .q-text {
		font-size: 14px;
	}
	.faq-item .faq-answer-inner {
		padding: 0 12px 12px 48px;
		font-size: 14px;
	}
}
