/* ═══════════════════════════════════════════════════════════
   FAQ PAGE — /rankings/faq
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Page section ─────────────────────────────────────── */
.faq-page-section {
	padding: 4rem 0 5rem;
	background: #fff;
}

/* Two-column layout: sidebar + content */
.faq-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 3rem;
	align-items: start;
}

/* ── 2. Sidebar ──────────────────────────────────────────── */
.faq-sidebar {
	position: sticky;
	top: 120px;
}

.faq-sidebar-title {
	font-family: 'Montserrat', sans-serif;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .15em;
	color: var(--green-900);
	margin-bottom: 1rem;
}

.faq-sidebar-nav {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

.faq-sidebar-link {
	display: block;
	padding: .55rem .9rem;
	border-radius: 8px;
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: .88rem;
	color: var(--gray-700, #4b5563);
	transition: background .2s, color .2s;
	border-left: 3px solid transparent;
}

.faq-sidebar-link:hover {
	background: var(--green-100, #eef1ee);
	color: var(--green-900);
}

.faq-sidebar-link.is-active {
	background: var(--green-100, #eef1ee);
	color: var(--green-900);
	border-left-color: var(--green-600);
	font-weight: 600;
}

/* ── 3. FAQ Content Area ─────────────────────────────────── */
.faq-content {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

/* ── 4. FAQ Group ────────────────────────────────────────── */
.faq-group-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--green-900);
	margin-bottom: 1.25rem;
	padding-bottom: .75rem;
	border-bottom: 2px solid var(--green-100, #eef1ee);
}

/* ── 5. Individual FAQ Item (accordion) ──────────────────── */
.faq-item {
	border: 1px solid rgba(23, 68, 41, .1);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .25s ease;
	margin-bottom: .75rem;
}

.faq-item:last-child {
	margin-bottom: 0;
}

.faq-item.is-open {
	box-shadow: 0 8px 28px rgba(23, 68, 41, .1);
}

/* Question button */
.faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	text-align: left;
	padding: 1.2rem 1.5rem;
	background: none;
	border: none;
	cursor: pointer;
	font-family: 'Montserrat', sans-serif;
	font-size: .95rem;
	font-weight: 600;
	color: var(--green-900);
	transition: background .2s;
}

.faq-q:hover {
	background: var(--green-100, #eef1ee);
}

/* +/− icon */
.faq-icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--green-100, #eef1ee);
	display: grid;
	place-items: center;
	transition: background .2s, transform .3s ease;
}

.faq-icon::before {
	content: '+';
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--green-600);
	line-height: 1;
	transition: transform .3s ease;
}

.faq-item.is-open .faq-icon {
	background: var(--green-600);
	transform: rotate(45deg);
}

.faq-item.is-open .faq-icon::before {
	color: #fff;
}

/* Answer panel (height-transition via grid) */
.faq-a {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .35s ease;
}

.faq-a > div {
	overflow: hidden;
}

.faq-item.is-open .faq-a {
	grid-template-rows: 1fr;
}

.faq-a > div > * {
	padding: .5rem 1.5rem 1.5rem;
}

.faq-a p,
.faq-a ul,
.faq-a li {
	font-size: .93rem;
	line-height: 1.8;
	color: #3d5445;
}

.faq-a ul {
	padding-left: 1.25rem;
	margin-top: .5rem;
}

.faq-a li {
	margin-bottom: .35rem;
}

.faq-a a {
	color: var(--green-600);
	text-decoration: underline;
}

.faq-a a:hover {
	color: var(--green-900);
}

/* ── 6. Contact CTA ──────────────────────────────────────── */
.faq-cta-section {
	background: var(--green-100, #eef1ee);
	padding: 4rem 0;
}

.faq-cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	background: #fff;
	border: 1px solid rgba(23, 68, 41, .12);
	border-radius: 18px;
	padding: 2.25rem 2.75rem;
	box-shadow: 0 8px 32px rgba(23, 68, 41, .07);
}

.faq-cta-text h3 {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--green-900);
	margin-bottom: .5rem;
}

.faq-cta-text p {
	font-size: .95rem;
	color: #4a6655;
	line-height: 1.65;
	max-width: 460px;
	margin: 0;
}

.faq-cta-actions {
	display: flex;
	gap: 1rem;
	flex-shrink: 0;
}

/* Override: secondary CTA button gets outline style */
.faq-cta-actions .btn:last-child {
	background: transparent;
	color: var(--green-700);
	box-shadow: none;
	border: 1.5px solid var(--green-700);
}

.faq-cta-actions .btn:last-child:hover {
	background: var(--green-100);
	transform: translateY(-2px);
}

/* ── 7. Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
	.faq-layout {
		grid-template-columns: 1fr;
	}

	.faq-sidebar {
		position: static;
	}

	.faq-sidebar-nav {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

@media (max-width: 640px) {
	.faq-cta-inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 1.75rem;
	}

	.faq-cta-actions {
		flex-wrap: wrap;
	}
}
