/* migfaq — FAQ Accordion Block styles
   Classes are namespaced (migfaq-*) so nothing collides with theme-wide
   utility classes like a generic .container. */

.migfaq-section {
	background: #000;
	box-sizing: border-box;
}

/* Editor-only: make sure the block's own wrapper never shows the white
   admin canvas behind it, so admin preview = frontend exactly. */
.migfaq-editor-wrap {
	background: #000;
}
.migfaq-editor-wrap .components-placeholder,
.migfaq-editor-wrap .block-editor-server-side-render {
	background: #000;
}

.migfaq-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0px 0px 60px;
}

.migfaq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.migfaq-item {
	border: 1px solid #1a1a1a;
	overflow: hidden;
	background: #090a0a;
	border-radius: 15px;
}

.migfaq-question {
	all: unset;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 20px 30px;
	cursor: pointer;
	gap: 16px;
	user-select: none;
	transition: opacity 0.2s ease;
}

.migfaq-question:hover {
	opacity: 0.85;
}

.migfaq-question:focus-visible {
	outline: 2px solid #2ec4b6;
	outline-offset: -2px;
}

.migfaq-q-text {
	font-size: 22px;
	color: #fff;
	line-height: 1.4;
	flex: 1;
	text-align: left;
}

.migfaq-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
	background: #111;
	transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.migfaq-chevron {
	transition: transform 0.25s ease;
}

.migfaq-item--open .migfaq-icon {
	color: #fff;
	background: #1a1a1a;
}

.migfaq-item--open .migfaq-chevron {
	transform: rotate(180deg);
}

.migfaq-answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.migfaq-item--open .migfaq-answer {
	grid-template-rows: 1fr;
}

.migfaq-answer-inner {
	overflow: hidden;
	min-height: 0;
	padding: 0 30px 0px;
}

.migfaq-answer p {
	font-size: 16px;
	color: #e4e4e4;
	line-height: 1.5;
	margin: 0 0 10px 0;
        padding-bottom: 15px;
}

.migfaq-answer p:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.migfaq-container {
		padding: 0px 16px;
	}
	.migfaq-q-text {
		font-size: 16px;
	}
	.migfaq-question {
		padding: 16px 20px;
	}
	.migfaq-answer-inner {
		padding: 0 20px 0px;
	}
}