/* FAQ Accordion Widget — default blue & yellow theme
   All colors below are DEFAULTS ONLY. Every color, spacing and
   typography value is overridable per-widget from the Elementor
   Style tab (that's why most selectors here are unprefixed/minimal —
   Elementor injects its own higher-specificity rules for whatever
   the user changes in the panel). */

.faqacc-wrapper {
	--faqacc-blue: #1E5FFF;
	--faqacc-blue-dark: #0B2447;
	--faqacc-yellow: #FFC93C;
	box-sizing: border-box;
}
.faqacc-wrapper * {
	box-sizing: border-box;
}

.faqacc-columns {
	display: flex;
	align-items: stretch;
	gap: 30px;
	width: 100%;
}

.faqacc-accordion-col {
	flex: 0 0 55%;
	max-width: 55%;
	min-width: 0;
}

.faqacc-panel-col {
	flex: 1 1 auto;
	min-width: 0;
	background: var(--faqacc-blue-dark);
	color: #E7ECFA;
	padding: 48px;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.faqacc-panel-heading {
	font-size: 26px;
	font-weight: 700;
	color: var(--faqacc-yellow);
	margin: 0 0 18px;
	line-height: 1.3;
}

.faqacc-panel-text {
	font-size: 15px;
	line-height: 1.7;
	color: #E7ECFA;
}

.faqacc-panel-text p {
	margin: 0 0 16px;
}
.faqacc-panel-text p:last-child {
	margin-bottom: 0;
}

/* ---- 2-column mode: answer opens in the side panel instead of inline ---- */

.faqacc-wrapper.faqacc-mode-panel .faqacc-answer-wrap {
	display: none;
}

.faqacc-panel-default,
.faqacc-panel-answer {
	animation: faqacc-fade-in 0.3s ease;
}

@keyframes faqacc-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---- Accordion ---- */

.faqacc-accordion {
	display: flex;
	flex-direction: column;
}

.faqacc-item {
	background: #F4F6FA;
	border-radius: 14px;
	overflow: hidden;
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

.faqacc-item + .faqacc-item {
	margin-top: 14px;
}

.faqacc-wrapper.faqacc-hover-lift .faqacc-item:not(.is-active):hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(11, 36, 71, 0.12);
}

.faqacc-item.is-active {
	background: linear-gradient(100deg, var(--faqacc-blue), var(--faqacc-yellow));
}

.faqacc-item-header {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
}

.faqacc-question {
	font-size: 16px;
	font-weight: 600;
	color: var(--faqacc-blue-dark);
	line-height: 1.4;
}

.faqacc-icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border: 2px solid var(--faqacc-blue);
	border-radius: 50%;
	position: relative;
	color: var(--faqacc-blue);
	transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.faqacc-item.is-active .faqacc-icon {
	border-color: var(--faqacc-blue-dark);
	color: var(--faqacc-blue-dark);
}

/* plus / minus icon */
.faqacc-icon-plus::before,
.faqacc-icon-plus::after {
	content: '';
	position: absolute;
	background: currentColor;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.faqacc-icon-plus::before { width: 12px; height: 2px; }
.faqacc-icon-plus::after { width: 2px; height: 12px; transition: opacity 0.25s ease; }
.faqacc-item.is-active .faqacc-icon-plus::after { opacity: 0; }

/* arrow icon */
.faqacc-icon-arrow::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translate(-50%, -65%) rotate(45deg);
}

/* chevron icon */
.faqacc-icon-chevron::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-top: 2px solid currentColor;
	transform: translate(-50%, -60%) rotate(135deg);
}

.faqacc-wrapper.faqacc-icon-rotate .faqacc-icon-arrow,
.faqacc-wrapper.faqacc-icon-rotate .faqacc-icon-chevron {
	transform: rotate(0deg);
}
.faqacc-wrapper.faqacc-icon-rotate .faqacc-item.is-active .faqacc-icon-arrow,
.faqacc-wrapper.faqacc-icon-rotate .faqacc-item.is-active .faqacc-icon-chevron {
	transform: rotate(180deg);
}

.faqacc-answer-wrap {
	max-height: 500px;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.faqacc-wrapper.faqacc-anim-none .faqacc-answer-wrap {
	transition: none;
}

.faqacc-wrapper.faqacc-anim-fade .faqacc-answer-wrap {
	transition: max-height 0.35s ease, opacity 0.35s ease;
	opacity: 1;
}
.faqacc-wrapper.faqacc-anim-fade .faqacc-item:not(.is-active) .faqacc-answer-wrap {
	opacity: 0;
}

.faqacc-answer {
	padding: 0 24px 22px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--faqacc-blue-dark);
}

.faqacc-answer p {
	margin: 0 0 10px;
}
.faqacc-answer p:last-child {
	margin-bottom: 0;
}

/* ---- Responsive stacking ---- */

.faqacc-wrapper.faqacc-stack-tablet .faqacc-columns {
	flex-wrap: wrap;
}
.faqacc-wrapper.faqacc-stack-tablet .faqacc-accordion-col,
.faqacc-wrapper.faqacc-stack-tablet .faqacc-panel-col {
	flex: 1 1 100% !important;
	max-width: 100% !important;
}

@media (max-width: 1024px) {
	.faqacc-wrapper.faqacc-stack-tablet .faqacc-columns {
		flex-direction: column;
	}
}

@media (max-width: 767px) {
	.faqacc-wrapper.faqacc-stack-mobile .faqacc-columns {
		flex-direction: column;
	}
	.faqacc-wrapper.faqacc-stack-mobile .faqacc-accordion-col,
	.faqacc-wrapper.faqacc-stack-mobile .faqacc-panel-col {
		flex: 1 1 100% !important;
		max-width: 100% !important;
	}
	.faqacc-item-header {
		padding: 16px 18px;
	}
	.faqacc-question {
		font-size: 15px;
	}
	.faqacc-panel-col {
		padding: 32px 24px;
	}
	.faqacc-panel-heading {
		font-size: 21px;
	}
}
