/* ================================================
   Legacy Mode Styles (Original)
   ================================================ */
.panel-faqs { background-color:#fff; position: relative; }
.panel-faqs .container > .row { margin:0 -32px; }
.panel-faqs .container > .row > div { padding:0 32px; }
.faqs-heading { color: #181d27; margin:0; }
.faqs-description { color: #63666F; margin-top:16px; }
.faqs-description p { margin-bottom: 1em; }
.faqs-description p:last-child { margin-bottom: 0; }
.faqs-left-content a { margin-top:32px; }

/* FAQ Accordion (Shared between both modes) */
.faqs-accordion { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background-color: transparent; border-radius: 16px; padding: 24px; transition: background-color 0.2s; }
.faq-item.is-open { background-color: rgba(171, 202, 246, 0.2); }
.faq-toggle { width: 100%; display: flex; align-items: flex-start; gap: 16px; background: none; border: none; padding: 0; cursor: pointer; text-align: left; }
.faq-icon { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
.faq-icon svg { position: absolute; top: 0; left: 0; transition: opacity 0.2s; }
.faq-item .icon-minus { opacity: 0; }
.faq-item .icon-plus  { opacity: 1; }
.faq-item.is-open .icon-minus { opacity: 1; }
.faq-item.is-open .icon-plus  { opacity: 0; }
.faq-question-wrapper { flex: 1; min-width: 0; }
.faq-question { font-size: 21px; font-weight: 600; line-height: 1.2; color: #051d2e; margin: 0; }
.faq-answer { padding-left: 40px; margin-top: 10px; }
.faq-answer-content p { font-size: 16px; font-weight: 400; line-height: 1.4; color: #63666F; margin-bottom: 1em; }
.faq-answer-content p:last-child { margin-bottom: 0; }
.faq-answer-content li { font-size: 16px; font-weight: 400; line-height: 1.4; color: #63666F; margin-bottom: 0.5em; margin-left: 20px; }

/* ================================================
   Categories Mode Styles
   ================================================ */
.panel-faqs-categories {
	background-color: #fff;
	position: relative;
}

/* Sidebar (Left Column) */
.faqs-sidebar {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Category Tabs */
.faqs-categories {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.faq-category-tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 70px;
	padding: 0 26px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #DFDFE0;
	font-family: 'Figtree', sans-serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.2;
	color: #051D2E;
	cursor: pointer;
	transition: all 0.3s;
	text-align: left;
}

.faq-category-tab:hover {
	border-color: #003EAB;
}

.faq-category-tab.is-active {
	background: #003EAB;
	border-color: #003EAB;
	color: #fff;
}

.faq-category-tab .category-arrow {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	color: #051D2E;
	transition: color 0.3s;
}

.faq-category-tab.is-active .category-arrow {
	color: #fff;
}

.faqs-categories-horiz-tabs { background: rgba(171, 202, 246, 0.20); border-radius:12px; display:flex; width:336px; padding:6px; margin-bottom:44px; }
.faq-category-horiz-tab { border:none; margin:0 !important; font-size: 19px; font-weight: 600; flex:0 0 50%; min-width:50%; }
.faq-category-horiz-tab.is-active { color:#003EAB; }
.faq-category-horiz-tab:hover { background:#fff; }
.faq-category-horiz-tab:not(.is-active) { background:none; }

@media (max-width:767px) {
	.faqs-categories-horiz-tabs { width:100%; margin-bottom:34px; }
	.faq-category-horiz-tab { font-size:16px; }
	.faqs-left-content a { margin-top:20px; }
}


/* Search Box */
.faqs-search-box {
	background: #fff;
	border: 1px solid #DFDFE0;
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.search-title {
	font-family: 'Figtree', sans-serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.2;
	color: #051D2E;
	margin: 0;
}

.search-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.search-icon {
	position: absolute;
	left: 12px;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	pointer-events: none;
}

input.search-input {
	width: 100%;
	height: 44px;
	padding: 12px 12px 12px 44px;
	background: #fff;
	border: 1px solid #DFDFE0;
	border-radius: 8px;
	font-family: 'Figtree', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	color: #051D2E;
	transition: all 0.2s;
}

input.search-input::placeholder {
	color: rgba(99, 102, 111, 0.8);
}

input.search-input:focus {
	outline: none;
	border-color: #003EAB;
	box-shadow: 0 0 0 3px rgba(0, 62, 171, 0.1);
}

button.search-button {
	height: 44px;
	padding: 8px 0;
	background: transparent;
	border: none;
	border-radius: 8px;
	font-family: 'Figtree', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #003EAB;
	text-decoration: underline;
	cursor: pointer;
	transition: all 0.2s;
	text-align:left;
	display:none;
}

button.search-button:hover {
	background: rgba(0, 62, 171, 0.05);
}

button.search-button:focus {
	outline: 2px solid #003EAB;
	outline-offset: 2px;
}

/* Category Groups */
.faq-category-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.faq-category-group.is-hidden {
	display: none;
}

.faq-category-group.is-visible {
	display: flex;
}

/* No Results Message */
.faq-no-results {
	background: rgba(171, 202, 246, 0.1);
	border-radius: 16px;
	padding: 40px 24px;
	text-align: center;
}

.faq-no-results p {
	font-family: 'Figtree', sans-serif;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.4;
	color: #63666F;
	margin: 0;
}

/* Responsive adjustments for legacy mode */
@media (max-width: 991px) {
	.faqs-left-content { margin-bottom: 40px; }
	.faqs-heading { font-size: 38px; }
}

@media (max-width: 767px) {
	.faqs-heading { font-size: 32px; }
	.faq-question { font-size: 18px; }
}

/* Responsive adjustments for categories mode */
@media (max-width: 991px) {
	.panel-faqs-categories .col-lg-3,
	.panel-faqs-categories .col-lg-9 {
		padding-left: 32px;
		padding-right: 32px;
	}
	
	.faqs-sidebar {
		margin-bottom: 40px;
	}
	
	.faq-category-tab {
		height: 60px;
		font-size: 19px;
	}
	
	.faqs-search-box {
		padding: 20px;
	}
	
	.search-title {
		font-size: 19px;
	}
}

@media (max-width: 767px) {
	.faq-category-tab {
		height: 56px;
		font-size: 18px;
		padding: 0 20px;
	}
	
	.faq-category-tab .category-arrow {
		width: 28px;
		height: 28px;
	}
	
	.faqs-search-box {
		padding: 16px;
		gap: 20px;
	}
	
	.search-title {
		font-size: 18px;
	}
	
	.search-input {
		font-size: 15px;
	}
	
	.faq-question {
		font-size: 18px;
	}
	
	.faq-item {
		padding: 20px;
	}
}
