/* ==========================================================
   FAQ Page  (template/faq.php)
   ========================================================== */
.faq-page {
	--faq-primary: #EC8430;
	--faq-primary-dark: #E37F2E;
	--faq-black: #000;
	--faq-dark: #111;
	--faq-text: #1a1a1a;
	--faq-muted: #656565;
	--faq-border: #e8e8e8;
	--faq-soft: #f6f6f6;
	--faq-heading: inherit;
}

/* Use the theme font everywhere (buttons/inputs don't inherit by default) */
.faq-page,
.faq-page button,
.faq-page input,
.faq-page h1,
.faq-page h2,
.faq-page h3,
.faq-page h4 {
	font-family: inherit;
}

/* ---------- Hero ---------- */
.faq-hero {
	position: relative;
	overflow: hidden;
	background: var(--faq-black);
	padding: 60px 0;
	text-align: center;
	color: #fff;
}
.faq-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(600px 300px at 50% 110%, rgba(236, 132, 48, .28), transparent 70%),
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 48px 48px;
	z-index: 1;
}
.faq-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .35;
}
.faq-hero .container {
	position: relative;
	z-index: 2;
}
.faq-hero-inner {
	max-width: 760px;
	margin: 0 auto;
}
.faq-eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 16px;
	border: 1px solid rgba(236, 132, 48, .5);
	border-radius: 50px;
	color: var(--faq-primary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.faq-hero h1 {
	font-family: var(--faq-heading);
	font-size: 56px;
	line-height: 1.15;
	color: #fff;
	margin-bottom: 12px;
}
.faq-hero p {
	font-size: 19px;
	color: rgba(255, 255, 255, .8);
	margin-bottom: 0;
}

/* ---------- Layout ---------- */
.faq-section {
	padding: 20px 0 90px;
}
.faq-sidebar {
	position: sticky;
	top: 30px;
}

/* ---------- Sidebar: topics ---------- */
.faq-cat-nav {
	margin-bottom: 24px;
	padding: 24px;
	border: 1px solid var(--faq-border);
	border-radius: 16px;
	background: #fff;
}
.faq-cat-nav h4 {
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--faq-muted);
}
.faq-cat-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.faq-cat-nav li + li {
	margin-top: 6px;
}
.faq-tab {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--faq-text);
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.faq-tab em {
	min-width: 30px;
	padding: 2px 8px;
	border-radius: 50px;
	background: var(--faq-soft);
	color: var(--faq-muted);
	font-size: 13px;
	font-style: normal;
	text-align: center;
	transition: inherit;
}
.faq-tab:hover {
	background: var(--faq-soft);
}
.faq-tab.active {
	background: var(--faq-black);
	color: #fff;
}
.faq-tab.active em {
	background: var(--faq-primary);
	color: #fff;
}

/* ---------- Sidebar: contact card ---------- */
.faq-contact-card {
	position: relative;
	overflow: hidden;
	padding: 32px 28px;
	border-radius: 16px;
	background: var(--faq-black);
	color: #fff;
}
.faq-contact-card::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -60px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(236, 132, 48, .35), transparent 70%);
}
.faq-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: 12px;
	background: var(--faq-primary);
	font-size: 22px;
}
.faq-contact-card h3 {
	font-family: var(--faq-heading);
	font-size: 26px;
	color: #fff;
	margin-bottom: 8px;
}
.faq-contact-card p {
	color: rgba(255, 255, 255, .7);
	font-size: 15px;
	margin-bottom: 20px;
}
.faq-contact-list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}
.faq-contact-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 15px;
}
.faq-contact-list i {
	width: 18px;
	color: var(--faq-primary);
}
.faq-contact-list a {
	color: #fff;
	text-decoration: none;
	word-break: break-all;
}
.faq-contact-list a:hover {
	color: var(--faq-primary);
}
.faq-btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 28px;
	border-radius: 50px;
	background: var(--faq-primary);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s, gap .2s;
}
.faq-btn:hover {
	background: var(--faq-primary-dark);
	color: #fff;
	gap: 14px;
}

/* ---------- Category ---------- */
.faq-category + .faq-category {
	margin-top: 50px;
}
.faq-category-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--faq-text);
}
.faq-category-head h2 {
	font-family: var(--faq-heading);
	font-size: 34px;
	line-height: 1.1;
	margin: 0;
}
.faq-category-head span {
	color: var(--faq-primary);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---------- Accordion ---------- */
.faq-item {
	margin-bottom: 14px;
	border: 1px solid var(--faq-border);
	border-radius: 14px;
	background: #fff;
	transition: border-color .25s, box-shadow .25s, transform .25s;
}
.faq-item:hover {
	border-color: #cfcfcf;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.faq-item.open {
	border-color: var(--faq-primary);
	box-shadow: 0 14px 34px rgba(236, 132, 48, .14);
}

.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	border: 0;
	background: none;
	color: var(--faq-text);
	text-align: left;
	cursor: pointer;
}
.faq-question:focus-visible {
	outline: 2px solid var(--faq-primary);
	outline-offset: -2px;
	border-radius: 14px;
}
.faq-num {
	flex: 0 0 auto;
	font-family: var(--faq-heading);
	font-size: 22px;
	line-height: 1;
	color: #c4c4c4;
	transition: color .25s;
}
.faq-q-text {
	flex: 1;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}
.faq-item.open .faq-num {
	color: var(--faq-primary);
}

/* plus / minus icon */
.faq-icon {
	position: relative;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--faq-soft);
	transition: background .25s, transform .3s;
}
.faq-icon::before,
.faq-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: var(--faq-text);
	transform: translate(-50%, -50%);
	transition: transform .3s, background .25s;
}
.faq-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}
.faq-question:hover .faq-icon {
	background: #ececec;
}
.faq-item.open .faq-icon {
	background: var(--faq-primary);
	transform: rotate(180deg);
}
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after {
	background: #fff;
}
.faq-item.open .faq-icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

/* smooth open/close (grid 0fr -> 1fr) */
.faq-answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .35s ease;
}
.faq-item.open .faq-answer {
	grid-template-rows: 1fr;
}
.faq-answer-wrap {
	overflow: hidden;
}
.faq-answer-inner {
	margin: 0 24px 24px 64px;
	padding-top: 18px;
	border-top: 1px dashed var(--faq-border);
	color: var(--faq-muted);
	font-size: 16px;
	line-height: 1.75;
}
.faq-answer-inner p {
	margin-bottom: 12px;
}
.faq-answer-inner > :last-child {
	margin-bottom: 0;
}
.faq-answer-inner ul {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}
.faq-answer-inner ul li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 8px;
}
.faq-answer-inner ul li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--faq-primary);
}
.faq-answer-inner a {
	color: var(--faq-primary);
}
.faq-answer-inner strong {
	color: var(--faq-text);
}

/* search highlight */
.faq-q-text mark {
	padding: 0 2px;
	border-radius: 3px;
	background: rgba(236, 132, 48, .25);
	color: inherit;
}

.faq-no-results {
	padding: 50px 20px;
	border: 1px dashed var(--faq-border);
	border-radius: 14px;
	text-align: center;
	color: var(--faq-muted);
}
.faq-no-results i {
	margin-bottom: 10px;
	font-size: 34px;
	color: var(--faq-primary);
}
.faq-no-results p {
	margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.faq-sidebar {
		position: static;
	}
	/* FAQs first, contact card after on tablet/mobile */
	.faq-sidebar-col {
		order: 2;
	}
	.faq-cat-nav {
		display: none;
	}
}

@media (max-width: 767px) {
	.faq-hero {
		padding: 40px 0;
	}
	.faq-hero h1 {
		font-size: 38px;
	}
	.faq-hero p {
		font-size: 16px;
	}
	.faq-section {
		padding-bottom: 60px;
	}
	.faq-category-head h2 {
		font-size: 26px;
	}
	.faq-question {
		gap: 12px;
		padding: 18px 16px;
	}
	.faq-num {
		font-size: 18px;
	}
	.faq-q-text {
		font-size: 16px;
	}
	.faq-icon {
		flex-basis: 32px;
		width: 32px;
		height: 32px;
	}
	.faq-answer-inner {
		margin: 0 16px 18px;
		font-size: 15px;
	}
	.faq-contact-card {
		padding: 28px 22px;
	}
}
