/**
 * SSDC Frequently Asked Questions (FAQ) Page Styles
 * Aligned with SSDC Design System & Theme Foundations
 *
 * @package SSDC
 */

/* ==========================================================================
   1. Page Container & Reset
   ========================================================================== */
.ssdc-faq-page {
	position: relative;
	background-color: #ffffff;
	background-image: url('../img/page-bg.webp');
	background-repeat: no-repeat;
	background-position: right top;
	background-size: 50% auto;
	color: #0F172A;
	font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
}

@media (max-width: 1024px) {
	.ssdc-faq-page {
		background-size: 60% auto;
	}
}

@media (max-width: 768px) {
	.ssdc-faq-page {
		background-size: 80% auto;
	}
}

.ssdc-faq-container {
	max-width: var(--ssdc-page-max, 1440px);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--ssdc-gutter, 32px);
	box-sizing: border-box;
}

/* ==========================================================================
   2. Hero Header
   ========================================================================== */
.ssdc-faq-hero {
	position: relative;
	background-color: transparent;
	padding: 48px 0 36px;
	overflow: hidden;
}

.ssdc-faq-hero__pattern {
	display: none;
}

.ssdc-faq-hero .ssdc-faq-container {
	position: relative;
	z-index: 2;
}

.ssdc-faq-hero__content {
	max-width: 860px;
}

.ssdc-faq-hero__title {
	margin: 0 0 16px;
	font-family: var(--font-heading, 'Hanken Grotesk', 'Inter', sans-serif);
	font-size: clamp(30px, 3.6vw, 44px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #020617;
}

.ssdc-faq-hero__desc {
	margin: 0 0 28px;
	font-family: 'Inter', sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 28px;
	color: #475569;
	max-width: 720px;
}

/* Search Input Box */
.ssdc-faq-search {
	position: relative;
	max-width: 640px;
	width: 100%;
}

.ssdc-faq-search__icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: #64748B;
	pointer-events: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.ssdc-faq-search__input {
	width: 100%;
	height: 54px;
	padding: 0 48px 0 52px;
	border: 1.5px solid #CBD5E1;
	border-radius: 12px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	background: #FFFFFF;
	color: #0F172A;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ssdc-faq-search__input::placeholder {
	color: #94A3B8;
	font-weight: 400;
}

.ssdc-faq-search__input:focus {
	outline: none;
	border-color: #94A3B8;
	box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25), 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ssdc-faq-search__input:focus + .ssdc-faq-search__icon {
	color: #334155;
}

.ssdc-faq-search__clear {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background: #F1F5F9;
	color: #64748B;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease, color 0.15s ease;
}

.ssdc-faq-search__clear:hover {
	background: #E2E8F0;
	color: #0F172A;
}

.ssdc-faq-search__clear svg {
	width: 14px;
	height: 14px;
}

/* ==========================================================================
   3. Main Content Card & Grid Shell
   ========================================================================== */
.ssdc-faq-shell {
	padding-bottom: 64px;
}

.ssdc-faq-card {
	background: #FFFFFF;
	border-radius: 16px;
	padding: 36px 40px;
	box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.04);
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	box-sizing: border-box;
}

/* ==========================================================================
   4. Sidebar Categories
   ========================================================================== */
.ssdc-faq-sidebar {
	position: -webkit-sticky;
	position: sticky;
	top: 100px;
	z-index: 5;
}

body.admin-bar .ssdc-faq-sidebar {
	top: 132px;
}

.ssdc-faq-sidebar__title {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
	color: #020617;
	margin: 0 0 16px;
}

.ssdc-faq-nav {
	display: flex;
	flex-direction: column;
	border-left: 1px solid #F1F5F9;
	padding: 0;
	margin: 0;
	gap: 4px;
	list-style: none;
}

.ssdc-faq-nav__link {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 22px;
	color: #475569;
	padding: 10px 14px;
	margin-left: -1px;
	border-left: 3px solid transparent;
	text-decoration: none !important;
	border-radius: 0 8px 8px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	transition: all 0.15s ease;
	cursor: pointer;
	background: transparent;
	width: 100%;
	text-align: left;
	border-top: none;
	border-right: none;
	border-bottom: none;
}

.ssdc-faq-nav__link:hover {
	color: #03287C;
	border-left-color: #CBD5E1;
	background: #F8FAFC;
}

.ssdc-faq-nav__link.is-active {
	color: #03287C;
	font-weight: 600;
	border-left-color: #0646DB;
	background: transparent;
}

.ssdc-faq-nav__link.is-active:hover {
	border-left-color: #0646DB;
	background: #F8FAFC;
}

.ssdc-faq-nav__name {
	flex: 1;
	word-break: break-word;
}

.ssdc-faq-nav__badge {
	font-size: 12px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	background: #F1F5F9;
	color: #64748B;
	flex-shrink: 0;
	transition: all 0.15s ease;
}

.ssdc-faq-nav__link.is-active .ssdc-faq-nav__badge {
	background: #DBEAFE;
	color: #1D4ED8;
}

/* Mobile Category Selector */
.ssdc-faq-mobile-nav {
	display: none;
	margin-bottom: 24px;
}

.ssdc-faq-mobile-nav__label {
	display: block;
	margin: 0 0 8px;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #0F172A;
}

.ssdc-faq-mobile-nav__control {
	position: relative;
}

.ssdc-faq-mobile-select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	margin: 0;
	padding: 12px 40px 12px 14px;
	border: 1px solid #CBD5E1;
	border-radius: 10px;
	background: #FFFFFF;
	color: #0F172A;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	cursor: pointer;
}

.ssdc-faq-mobile-select:focus {
	outline: none;
	border-color: #94A3B8;
	box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.ssdc-faq-mobile-nav__caret {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #64748B;
	border-bottom: 2px solid #64748B;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

/* ==========================================================================
   5. Main FAQ Area
   ========================================================================== */
.ssdc-faq-main {
	min-width: 0;
}

/* Top bar: Section title + Expand All */
.ssdc-faq-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #F1F5F9;
	flex-wrap: wrap;
}

.ssdc-faq-header__left {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.ssdc-faq-header__title {
	font-family: 'Inter', sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
	color: #0F172A;
	margin: 0;
}

.ssdc-faq-header__count {
	font-size: 14px;
	font-weight: 500;
	color: #64748B;
}

.ssdc-faq-toggle-all {
	border: none;
	background: transparent;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #0646DB;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: background 0.15s ease, color 0.15s ease;
}

.ssdc-faq-toggle-all:hover {
	background: #EFF6FF;
	color: #03287C;
}

/* Search Status Bar */
.ssdc-faq-search-status {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #EFF6FF;
	border: 1px solid #BFDBFE;
	border-radius: 10px;
	margin-bottom: 24px;
	font-size: 14px;
	color: #1E40AF;
}

.ssdc-faq-search-status.is-visible {
	display: flex;
}

.ssdc-faq-search-status__reset {
	background: none;
	border: none;
	color: #0646DB;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	font-size: 13px;
	padding: 0;
}

/* Panels */
.ssdc-faq-panel {
	display: none;
}

.ssdc-faq-panel.is-active {
	display: block;
}

/* Accordion Item */
.ssdc-faq-item {
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	margin-bottom: 12px;
	background: #FFFFFF;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
}

.ssdc-faq-item:hover {
	border-color: #CBD5E1;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.ssdc-faq-item.is-open {
	border-color: #E2E8F0;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Trigger Button */
.ssdc-faq-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	background: none;
	border: none;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease;
	outline: none !important;
	-webkit-tap-highlight-color: transparent !important;
}

.ssdc-faq-trigger:focus,
.ssdc-faq-trigger:focus-visible,
.ssdc-faq-trigger:active {
	outline: none !important;
	box-shadow: none !important;
}

.ssdc-faq-item.is-open .ssdc-faq-trigger {
	background: transparent;
}

.ssdc-faq-q-text {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #0F172A;
	line-height: 1.45;
	margin: 0;
	flex: 1;
	transition: color 0.15s ease;
}

.ssdc-faq-item.is-open .ssdc-faq-q-text {
	color: #0F172A;
}

.ssdc-faq-q-text mark {
	background: #FEF08A;
	color: #854D0E;
	padding: 0 2px;
	border-radius: 2px;
}

/* Icon */
.ssdc-faq-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #F1F5F9;
	color: #64748B;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.ssdc-faq-icon svg {
	width: 16px;
	height: 16px;
	stroke-width: 2.2;
}

.ssdc-faq-item:hover .ssdc-faq-icon {
	background: #E2E8F0;
	color: #0F172A;
}

.ssdc-faq-item.is-open .ssdc-faq-icon {
	transform: rotate(180deg);
	background: #F1F5F9;
	color: #0F172A;
}

/* Answer Body */
.ssdc-faq-body {
	display: none;
	padding: 0 20px 20px;
	color: #334155;
	font-size: 15px;
	line-height: 1.65;
	border-top: 1px solid #F1F5F9;
	margin-top: 2px;
	padding-top: 16px;
}

.ssdc-faq-body p {
	margin: 0 0 12px;
}

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

.ssdc-faq-body ul,
.ssdc-faq-body ol {
	padding-left: 20px;
	margin: 0 0 12px;
}

.ssdc-faq-body li {
	margin-bottom: 6px;
}

.ssdc-faq-body a {
	color: #0646DB;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 500;
	transition: color 0.15s ease;
}

.ssdc-faq-body a:hover {
	color: #03287C;
}

.ssdc-faq-body iframe {
	max-width: 100%;
	border-radius: 10px;
	margin: 12px 0;
}

.ssdc-faq-body mark {
	background: #FEF08A;
	color: #854D0E;
	padding: 0 2px;
	border-radius: 2px;
}

/* Empty state */
.ssdc-faq-empty {
	display: none;
	text-align: center;
	padding: 48px 24px;
	background: #F8FAFC;
	border-radius: 12px;
	border: 1px dashed #CBD5E1;
	margin: 16px 0;
}

.ssdc-faq-empty.is-visible {
	display: block;
}

.ssdc-faq-empty__icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #E2E8F0;
	color: #64748B;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.ssdc-faq-empty__title {
	font-size: 18px;
	font-weight: 600;
	color: #0F172A;
	margin: 0 0 8px;
}

.ssdc-faq-empty__text {
	font-size: 15px;
	color: #64748B;
	margin: 0 0 20px;
}

.ssdc-faq-empty__btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	background: #0646DB;
	color: #FFFFFF;
	font-weight: 600;
	font-size: 14px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ssdc-faq-empty__btn:hover {
	background: #03287C;
}

/* ==========================================================================
   6. Bottom CTA Banner
   ========================================================================== */
.ssdc-faq-cta {
	width: 100%;
	max-width: var(--ssdc-page-max, 1440px);
	margin: 0 auto;
	padding: 80px var(--ssdc-gutter, 32px);
	box-sizing: border-box;
}

.ssdc-faq-cta .ssdc-cta-banner-container,
.ssdc-faq-cta .container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* ==========================================================================
   7. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
	.ssdc-faq-card {
		grid-template-columns: 1fr;
		padding: 28px 24px;
		gap: 24px;
	}

	.ssdc-faq-sidebar {
		position: static;
		display: none;
	}

	.ssdc-faq-mobile-nav {
		display: none !important;
	}

	.ssdc-faq-main > .ssdc-crs-toc-select-wrap {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		max-width: 100%;
		margin: 0 0 24px;
	}

	.ssdc-faq-hero {
		padding: 36px 0 28px;
	}

	.ssdc-faq-hero__desc {
		margin-bottom: 20px;
	}
}

@media (max-width: 767px) {
	.ssdc-faq-container {
		padding: 0 var(--ssdc-gutter, 16px);
	}

	.ssdc-faq-hero {
		padding: 28px 0 24px;
	}

	.ssdc-faq-search__input {
		height: 48px;
		font-size: 15px;
	}

	.ssdc-faq-card {
		padding: 20px 16px;
		border-radius: 12px;
	}

	.ssdc-faq-trigger {
		padding: 14px 16px;
	}

	.ssdc-faq-q-text {
		font-size: 15px;
	}

	.ssdc-faq-body {
		padding: 0 16px 16px;
		font-size: 14px;
	}

	.ssdc-faq-header__title {
		font-size: 19px;
	}

	.ssdc-faq-cta {
		padding: 0 var(--ssdc-gutter, 16px) 48px;
	}
}
