/* ============================================================
   Immigence — FAQ Widget  (faq-widget.css)
   Paste into assets/css/widgets-style.css
   ============================================================ */

.faq-section {
	padding: 5rem 2rem;
	background: var(--cream, #FAFAF5);
}

.faq-inner {
	max-width: 860px;
	margin: 0 auto;
}

/* Two-column layout uses full width */
.faq-layout-two-col ~ * ,
.faq-section:has(.faq-layout-two-col) .faq-inner {
	max-width: 1100px;
}

/* ── HEADER ──────────────────────────────────────────────── */

.faq-header {
	text-align: center;
	margin-bottom: 3rem;
}

.faq-tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--gold, #C8983C);
	border-bottom: 2px solid var(--gold, #C8983C);
	padding-bottom: 0.25rem;
	margin-bottom: 0.85rem;
}

.faq-heading {
	font-family: var(--font-display, 'Libre Baskerville', Georgia, serif);
	font-size: 2.2rem;
	line-height: 1.3;
	color: var(--navy, #0B1D3A);
	margin-bottom: 1rem;
}

.faq-subtext {
	font-size: 1rem;
	color: var(--slate, #4A5568);
	line-height: 1.7;
	max-width: 600px;
	margin: 0 auto;
}

/* ── ACCORDION ───────────────────────────────────────────── */

.faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 3rem;
}

/* Two-column layout */
.faq-layout-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	align-items: start;
}

/* ── ITEM ────────────────────────────────────────────────── */

.faq-item {
	background: #ffffff;
	border: 1px solid var(--border, #E2E8F0);
	border-left-width: 1px;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-left-color 0.25s ease, border-left-width 0.25s ease;
}

.faq-item:hover {
	box-shadow: 0 6px 20px rgba(11, 29, 58, 0.07);
	background-color: var(--faq-item-hover-bg, #ffffff);
}

/* Active item — gold left border */
.faq-item.is-open {
	border-left: 4px solid var(--gold, #C8983C);
	box-shadow: 0 8px 24px rgba(11, 29, 58, 0.09);
}

/* ── TRIGGER ─────────────────────────────────────────────── */

/* Override theme's global button:hover/focus styles */
.faq-trigger:hover,
.faq-trigger:focus,
.faq-item .faq-trigger:hover,
.faq-item .faq-trigger:focus {
	background-color: transparent !important;
	color: inherit !important;
	text-decoration: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.faq-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
}

.faq-question {
	font-family: var(--font-display, 'Libre Baskerville', Georgia, serif);
	font-size: 1rem;
	font-weight: 700;
	color: var(--navy, #0B1D3A);
	line-height: 1.4;
	transition: color 0.25s ease;
	flex: 1;
}

.faq-item.is-open .faq-question {
	color: var(--gold, #C8983C);
}

/* ── ICON ────────────────────────────────────────────────── */

.faq-icon {
	width: 32px;
	height: 32px;
	min-width: 32px;
	background: var(--gold-pale, #F5ECD7);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.25s ease;
}

.faq-item.is-open .faq-icon {
	background: var(--navy, #0B1D3A);
}

.faq-icon svg {
	width: 18px;
	height: 18px;
	fill: var(--navy, #0B1D3A);
	transition: fill 0.25s ease;
	flex-shrink: 0;
}

.faq-item.is-open .faq-icon svg {
	fill: var(--gold, #C8983C);
}

/* Show/hide plus vs minus */
.faq-icon-minus { display: none; }
.faq-icon-plus  { display: block; }

.faq-item.is-open .faq-icon-minus { display: block; }
.faq-item.is-open .faq-icon-plus  { display: none; }

/* ── BODY / ANSWER ───────────────────────────────────────── */

.faq-body {
	padding: 0 1.5rem 1.4rem 1.5rem;
}

.faq-body[hidden] {
	display: none;
}

.faq-answer {
	font-size: 0.95rem;
	color: var(--slate, #4A5568);
	line-height: 1.75;
	border-top: 1px solid var(--border, #E2E8F0);
	padding-top: 1rem;
}

.faq-answer p { margin: 0 0 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer a {
	color: var(--gold, #C8983C);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}

.faq-answer a:hover {
	border-bottom-color: var(--gold, #C8983C);
}

/* ── BOTTOM CTA ──────────────────────────────────────────── */

.faq-cta-wrap {
	text-align: center;
}

.faq-cta-label {
	font-size: 1rem;
	color: var(--slate, #4A5568);
	margin-bottom: 1rem;
}

.faq-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--gold, #C8983C);
	color: var(--navy, #0B1D3A);
	border: 2px solid var(--gold, #C8983C);
	padding: 0.85rem 2.25rem;
	border-radius: 4px;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	transition: all 0.3s ease;
}

.faq-cta-btn svg {
	width: 17px;
	height: 17px;
	fill: var(--navy, #0B1D3A);
	transition: fill 0.3s ease;
}

.faq-cta-btn:hover {
	background: transparent;
	color: var(--gold, #C8983C);
}

.faq-cta-btn:hover svg {
	fill: var(--gold, #C8983C);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 768px) {
	.faq-layout-two-col {
		grid-template-columns: 1fr;
	}

	.faq-heading {
		font-size: 1.7rem;
	}
}