/* Elementor flex containers size widgets to their content; force the FAQ
   widget wrapper to span the full width of its parent. */
.elementor-element.elementor-widget-atletec-faq {
	--container-widget-width: 100%;
	--container-widget-flex-grow: 1;
	width: 100%;
	max-width: 100%;
	flex-grow: 1;
}

.ate-faq {
	--ate-accent: #abff4f;
	box-sizing: border-box;
	width: 100%;
}

.ate-faq * {
	box-sizing: border-box;
}

/* Header */
.ate-faq__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 56px;
}

.ate-faq__eyebrow,
.ate-faq__title {
	margin: 0;
}

.ate-faq__eyebrow {
	color: #2667ff;
	font-family: "DM Sans", sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.667;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.ate-faq__title {
	margin-top: 12px;
	color: #1a1a1a;
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 56px;
	line-height: 1.018;
	text-transform: uppercase;
}

/* Accordion */
.ate-faq__list {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ate-faq__item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding: 0;
}

.ate-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: left;
	padding: 24px 0;
	font: inherit;
	color: inherit;
}

.ate-faq__question-text {
	color: #1a1a1a;
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.25;
	text-transform: uppercase;
}

.ate-faq__toggle {
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: var(--ate-accent);
	color: #060c1d;
	font-family: "DM Sans", sans-serif;
	font-size: 22px;
	line-height: 1;
}

/* +/- cross-fade: the plus turns a quarter and fades into the minus. */
.ate-faq__toggle-plus,
.ate-faq__toggle-minus {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.ate-faq__toggle-minus {
	opacity: 0;
	transform: rotate(-90deg);
}

.ate-faq__item--open .ate-faq__toggle-plus {
	opacity: 0;
	transform: rotate(90deg);
}

.ate-faq__item--open .ate-faq__toggle-minus {
	opacity: 1;
	transform: rotate(0);
}

/* Answer panel: animates 0fr -> 1fr so it slides to its natural height.
   visibility keeps links in closed answers out of the tab order; it flips
   after the close transition and immediately on open. */
.ate-faq__panel {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 0.35s ease, visibility 0s linear 0.35s;
}

.ate-faq__item--open .ate-faq__panel {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows 0.35s ease, visibility 0s linear 0s;
}

.ate-faq__panel-inner {
	min-height: 0;
	overflow: hidden;
}

.ate-faq__answer {
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.25s ease, transform 0.35s ease;
	max-width: 720px;
	margin: 0;
	padding: 0 0 28px;
	color: #222222;
	font-family: "DM Sans", sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.535;
}

/* Mobile defaults (the Style tab sets the same per device in Elementor). */
@media (max-width: 767px) {
	.ate-faq__question {
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.ate-faq__answer {
		padding: 0;
		font-size: 15px;
		line-height: 22px;
	}
}

.ate-faq__item--open .ate-faq__answer {
	opacity: 1;
	transform: none;
	transition: opacity 0.3s ease 0.05s, transform 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
	.ate-faq__panel,
	.ate-faq__item--open .ate-faq__panel,
	.ate-faq__answer,
	.ate-faq__item--open .ate-faq__answer,
	.ate-faq__toggle-plus,
	.ate-faq__toggle-minus {
		transition: none;
	}
}

.ate-faq__answer > *:first-child {
	margin-top: 0;
}

.ate-faq__answer > *:last-child {
	margin-bottom: 0;
}

/* Paragraphs in the answer: no bottom margin. The .ate-faq prefix outranks
   theme / Elementor Kit paragraph spacing (e.g. ".elementor-kit-5 p"). */
.ate-faq .ate-faq__answer p {
	margin-bottom: 0;
}

/* Editor-only empty state */
.ate-faq__empty {
	border: 1px dashed rgba(0, 0, 0, 0.2);
	padding: 24px;
	text-align: center;
	color: #666666;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
}
