.rhsa-faq-page {
	--rhsa-faq-primary: var(--bs-primary, #fc0012);
	--rhsa-faq-heading: var(--bs-gray-900, #010e2b);
	--rhsa-faq-text: var(--bs-body-color, #575757);
	--rhsa-faq-border: #e8eaf0;
	--rhsa-faq-surface: #ffffff;
	--rhsa-faq-soft: #f8fafc;
	background: var(--rhsa-faq-soft);
	color: var(--rhsa-faq-text);
}

.rhsa-faq-section {
	padding: clamp(55px, 8vw, 100px) 0 clamp(80px, 10vw, 130px);
}

.rhsa-faq-intro {
	max-width: 900px;
	margin: 0 auto 32px;
	padding: 24px 28px;
	border-inline-start: 4px solid var(--rhsa-faq-primary);
	border-radius: 14px;
	background: var(--rhsa-faq-surface);
	box-shadow: 0 12px 36px rgba(11, 22, 63, 0.06);
}

.rhsa-faq-intro > :last-child,
.rhsa-faq-answer > :last-child {
	margin-bottom: 0;
}

.rhsa-faq-list {
	max-width: 900px;
	margin: 0 auto;
	display: grid;
	gap: 16px;
}

.rhsa-faq-item {
	border: 1px solid var(--rhsa-faq-border);
	border-radius: 16px;
	background: var(--rhsa-faq-surface);
	box-shadow: 0 8px 28px rgba(11, 22, 63, 0.045);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.rhsa-faq-item:hover,
.rhsa-faq-item[open] {
	border-color: rgba(252, 0, 18, 0.28);
	box-shadow: 0 16px 42px rgba(11, 22, 63, 0.085);
}

.rhsa-faq-item[open] {
	transform: translateY(-2px);
}

.rhsa-faq-item summary {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 26px;
	cursor: pointer;
	list-style: none;
	font-size: clamp(17px, 2vw, 20px);
	font-weight: 700;
	line-height: 1.55;
	color: var(--rhsa-faq-heading);
}

.rhsa-faq-item summary::-webkit-details-marker {
	display: none;
}

.rhsa-faq-item summary:focus-visible {
	outline: 3px solid rgba(252, 0, 18, 0.25);
	outline-offset: 4px;
	border-radius: 12px;
}

.rhsa-faq-toggle {
	position: relative;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(252, 0, 18, 0.08);
}

.rhsa-faq-toggle::before,
.rhsa-faq-toggle::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: var(--rhsa-faq-primary);
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease;
}

.rhsa-faq-page[dir="rtl"] .rhsa-faq-toggle::before,
.rhsa-faq-page[dir="rtl"] .rhsa-faq-toggle::after {
	transform: translate(50%, -50%);
}

.rhsa-faq-toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.rhsa-faq-page[dir="rtl"] .rhsa-faq-toggle::after {
	transform: translate(50%, -50%) rotate(90deg);
}

.rhsa-faq-item[open] .rhsa-faq-toggle::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.rhsa-faq-page[dir="rtl"] .rhsa-faq-item[open] .rhsa-faq-toggle::after {
	transform: translate(50%, -50%) rotate(0deg);
}

.rhsa-faq-answer {
	padding: 0 26px 26px;
	font-size: 16px;
	line-height: 1.9;
	color: var(--rhsa-faq-text);
}

.rhsa-faq-answer::before {
	content: "";
	display: block;
	margin-bottom: 20px;
	border-top: 1px solid var(--rhsa-faq-border);
}

.rhsa-faq-answer a {
	color: var(--rhsa-faq-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rhsa-faq-empty {
	max-width: 760px;
	margin: 0 auto;
	padding: 55px 28px;
	border: 1px dashed #d7dbe5;
	border-radius: 18px;
	background: var(--rhsa-faq-surface);
	text-align: center;
}

.rhsa-faq-empty__icon {
	display: inline-grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: rgba(252, 0, 18, 0.08);
	font-size: 34px;
	font-weight: 800;
	color: var(--rhsa-faq-primary);
}

.rhsa-faq-empty h2 {
	margin: 0 0 12px;
	font-size: 26px;
	color: var(--rhsa-faq-heading);
}

.rhsa-faq-empty p {
	margin: 0;
	line-height: 1.8;
}

@media (max-width: 767px) {
	.rhsa-faq-item summary {
		gap: 16px;
		padding: 20px;
	}

	.rhsa-faq-answer {
		padding: 0 20px 22px;
	}

	.rhsa-faq-toggle {
		flex-basis: 32px;
		width: 32px;
		height: 32px;
	}
}
