/* ══════════════════════════════════════════════════════════
   CSS RESET
══════════════════════════════════════════════════════════ */
.aafe-afs-wrapper,
.aafe-afs-wrapper *,
.aafe-afs-wrapper *::before,
.aafe-afs-wrapper *::after {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.aafe-afs-wrapper a,
.aafe-afs-wrapper a:hover,
.aafe-afs-wrapper a:focus {
	text-decoration: none !important;
}

/* Button reset — keep color inherit so Elementor controls work */
.aafe-afs-wrapper button,
.aafe-afs-wrapper button:focus,
.aafe-afs-wrapper button:active {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	margin: 0 !important;
	padding: 0;
	font-size: inherit !important;
	line-height: inherit !important;
	cursor: pointer !important;
	text-align: left !important;
}
.aafe-afs-wrapper img {
	max-width: 100%;
	vertical-align: top;
}

/* ══════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════ */
.aafe-afs-wrapper {
	display: block;
	width: 100%;
}
.aafe-afs__inner {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	width: 100%;
}
.aafe-afs__accordion-col {
	flex: 0 0 50%;
	max-width: 50%;
	min-width: 0;
}
.aafe-afs__accordion {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* ══════════════════════════════════════════════════════════
   ACCORDION ITEM
══════════════════════════════════════════════════════════ */
.aafe-afs__item {
	position: relative;
	transition: border-color 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
}
.aafe-afs__item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 3px;
	height: 100%;
	background: #6366f1;
	border-radius: 0 2px 2px 0;
	transform: scaleY(0);
	transform-origin: top center;
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 1;
}
.aafe-afs__item.is-active::before {
	transform: scaleY(1);
}

/* ══════════════════════════════════════════════════════════
   TRIGGER BUTTON
══════════════════════════════════════════════════════════ */
.aafe-afs__trigger {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	padding: 20px 20px 20px 14px !important;
	gap: 12px !important;
	transition: padding-left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease !important;
}
.aafe-afs__trigger:focus-visible {
	outline: 2px solid #6366f1 !important;
	outline-offset: 2px;
	border-radius: 4px;
}
.aafe-afs__item.is-active .aafe-afs__trigger {
	padding-left: 24px !important;
}

/* ══════════════════════════════════════════════════════════
   TRIGGER LEFT GROUP (icon + title)
══════════════════════════════════════════════════════════ */
.aafe-afs__trigger-left {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	flex: 1 !important;
	min-width: 0 !important;
}

/* ══════════════════════════════════════════════════════════
   ITEM ICON
══════════════════════════════════════════════════════════ */
.aafe-afs__item-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	border-radius: 10px !important;
	background-color: #ede9fe !important;
	color: #6366f1 !important;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease !important;
}
.aafe-afs__item-icon svg,
.aafe-afs__item-icon i {
	width: 20px !important;
	height: 20px !important;
	font-size: 20px !important;
	line-height: 1 !important;
	display: block !important;
	flex-shrink: 0;
	stroke: currentColor;
	margin: 0 !important;
}
.aafe-afs__item.is-active .aafe-afs__item-icon {
	background-color: #6366f1 !important;
	color: #ffffff !important;
	transform: scale(1.05) !important;
}
.aafe-afs__item:not(.is-active):hover .aafe-afs__item-icon {
	background-color: #ddd6fe !important;
	color: #4f46e5 !important;
}

/* ══════════════════════════════════════════════════════════
   TITLE
══════════════════════════════════════════════════════════ */
.aafe-afs__title {
	flex: 1;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	color: #1e293b;
	font-size: inherit;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	background: none !important;
	-webkit-background-clip: unset !important;
	background-clip: unset !important;
	-webkit-text-fill-color: unset !important;
	display: block;
	transition: color 0.3s ease !important;
}
.aafe-afs__item.is-active .aafe-afs__title {
	color: #0f172a;
}
.aafe-afs__item:not(.is-active):hover .aafe-afs__title {
	color: #475569;
}

/* ══════════════════════════════════════════════════════════
   CHEVRON ICON
══════════════════════════════════════════════════════════ */
.aafe-afs__chevron {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	border-radius: 50% !important;
	background-color: #e2e8f0 !important;
	color: #64748b !important;
	line-height: 1 !important;
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease !important;
}
.aafe-afs__chevron svg,
.aafe-afs__chevron i {
	width: 16px !important;
	height: 16px !important;
	display: block !important;
	font-size: 16px !important;
	line-height: 1 !important;
	flex-shrink: 0;
	stroke: currentColor;
	transition: none;
	margin: 0 !important;
}
.aafe-afs__item.is-active .aafe-afs__chevron {
	transform: rotate(180deg);
	background-color: #6366f1 !important;
	color: #ffffff !important;
}
.aafe-afs__item:not(.is-active):hover .aafe-afs__chevron {
	background-color: #cbd5e1 !important;
	color: #475569 !important;
}

/* ══════════════════════════════════════════════════════════
   COLLAPSIBLE CONTENT
══════════════════════════════════════════════════════════ */
.aafe-afs__content {
	overflow: hidden;
	height: 0;
	transition-property: height;
	transition-duration: 420ms;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	will-change: height;
}
.aafe-afs__content-inner {
	padding: 4px 14px 24px 14px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.35s ease 0.08s, transform 0.35s ease 0.08s;
}
.aafe-afs__item.is-active .aafe-afs__content-inner {
	opacity: 1;
	transform: translateY(0);
}

/* When item icon is present, indent content to align with title */
.aafe-afs__item.has-icon .aafe-afs__content-inner {
	padding-left: 72px; /* 44px icon + 14px gap + 14px base */
}

/* ══════════════════════════════════════════════════════════
   DESCRIPTION
══════════════════════════════════════════════════════════ */
.aafe-afs__description {
	margin: 0 !important;
	padding: 0 !important;
	color: #64748b;
	font-size: inherit;
	line-height: 1.6;
	background: none !important;
	-webkit-text-fill-color: unset !important;
}

/* ══════════════════════════════════════════════════════════
   CTA BUTTON / LINK
══════════════════════════════════════════════════════════ */
.aafe-afs__cta-wrap {
	margin-top: 16px;
}
.aafe-afs__cta {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 8px 18px !important;
	border-radius: 6px !important;
	font-size: 0.875em !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	background-color: #6366f1 !important;
	color: #ffffff !important;
	text-decoration: none !important;
	transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
	cursor: pointer !important;
	border: none !important;
	outline: none !important;
}
.aafe-afs__cta:hover,
.aafe-afs__cta:focus {
	background-color: #4f46e5 !important;
	color: #ffffff !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 14px rgba(99,102,241,0.35) !important;
	text-decoration: none !important;
}
.aafe-afs__cta svg,
.aafe-afs__cta i {
	width: 14px !important;
	height: 14px !important;
	font-size: 14px !important;
	flex-shrink: 0 !important;
	display: block !important;
	margin: 0 !important;
}

/* ══════════════════════════════════════════════════════════
   MOBILE INLINE IMAGE
══════════════════════════════════════════════════════════ */
.aafe-afs__mobile-image {
	display: none;
	margin-top: 20px;
	overflow: hidden;
	border-radius: 12px;
}
.aafe-afs__mobile-image img {
	width: 100%;
	max-height: 260px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 0.45s ease 0.1s, transform 0.45s ease 0.1s;
}
.aafe-afs__item.is-active .aafe-afs__mobile-image img {
	opacity: 1;
	transform: scale(1);
}

/* ══════════════════════════════════════════════════════════
   DESKTOP IMAGE PANEL
══════════════════════════════════════════════════════════ */
.aafe-afs__image-panel {
	flex: 1;
	min-width: 0;
	border-radius: 16px;
	background-color: #f1f5f9;
	position: relative;
	overflow: hidden;
}
.aafe-afs__image-panel::before {
	content: '';
	display: block;
	padding-top: 75%;
}
.aafe-afs__img-stack {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.aafe-afs__panel-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	border-radius: inherit;
	--aafe-swap: 500ms;
}
.aafe-afs__panel-img.aafe-img-current {
	opacity: 1;
	transform: scale(1) translateY(0);
	z-index: 2;
	transition: opacity var(--aafe-swap) cubic-bezier(0.4, 0, 0.2, 1), transform var(--aafe-swap) cubic-bezier(0.4, 0, 0.2, 1);
}
.aafe-afs__panel-img.aafe-img-out {
	opacity: 0;
	transform: scale(0.95) translateY(-8px);
	z-index: 1;
	transition: opacity calc(var(--aafe-swap) * 0.6) ease, transform calc(var(--aafe-swap) * 0.6) ease;
}
.aafe-afs__panel-img.aafe-img-in {
	opacity: 0;
	transform: scale(1.06) translateY(14px);
	z-index: 3;
	transition: opacity var(--aafe-swap) cubic-bezier(0.4, 0, 0.2, 1), transform var(--aafe-swap) cubic-bezier(0.4, 0, 0.2, 1);
}
.aafe-afs__panel-img.aafe-img-in.aafe-img-in--active {
	opacity: 1;
	transform: scale(1) translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE & STACKING
══════════════════════════════════════════════════════════ */
/* Tablet Stack (<=1024px) */
@media (max-width: 1024px) {
	.aafe-afs-wrapper[data-stack="tablet"] .aafe-afs__inner {
		flex-direction: column !important;
		gap: 24px !important;
	}
	.aafe-afs-wrapper[data-stack="tablet"][data-reverse="yes"] .aafe-afs__inner {
		flex-direction: column-reverse !important;
	}
	.aafe-afs-wrapper[data-stack="tablet"] .aafe-afs__accordion-col,
	.aafe-afs-wrapper[data-stack="tablet"] .aafe-afs__image-panel {
		flex: 0 0 100% !important; 
		max-width: 100% !important;
		width: 100% !important;
	}
	.aafe-afs-wrapper[data-stack="tablet"][data-hide-panel="yes"] .aafe-afs__image-panel {
		display: none !important;
	}
	.aafe-afs-wrapper[data-stack="tablet"][data-show-inline="yes"] .aafe-afs__mobile-image {
		display: block !important;
	}
}

/* Mobile Stack (<=767px) */
@media (max-width: 767px) {
	.aafe-afs-wrapper[data-stack="mobile"] .aafe-afs__inner {
		flex-direction: column !important;
		gap: 24px !important;
	}
	.aafe-afs-wrapper[data-stack="mobile"][data-reverse="yes"] .aafe-afs__inner {
		flex-direction: column-reverse !important;
	}
	.aafe-afs-wrapper[data-stack="mobile"] .aafe-afs__accordion-col,
	.aafe-afs-wrapper[data-stack="mobile"] .aafe-afs__image-panel {
		flex: 0 0 100% !important; 
		max-width: 100% !important;
		width: 100% !important;
	}
	.aafe-afs-wrapper[data-stack="mobile"][data-hide-panel="yes"] .aafe-afs__image-panel {
		display: none !important;
	}
	.aafe-afs-wrapper[data-stack="mobile"][data-show-inline="yes"] .aafe-afs__mobile-image {
		display: block !important;
	}
}

/* Default hiding for inline image if not stacked or not enabled */
.aafe-afs__mobile-image {
	display: none;
}