/* FAQ page — RS brand (Poppins / Cormorant / slate-blue) */

.page-template-template-faq #main {
	background: #fff;
}

.page-template-template-faq #main .wf-wrap,
.page-template-template-faq #main .wf-container-main {
	max-width: none !important;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

.rs-faq-content {
	padding: 0 !important;
	max-width: none !important;
	width: 100%;
	font-family: var(--rs-font-sans);
	overflow-x: clip;
}

.page-template-template-faq .scroll-top {
	display: none !important;
}

/* Hero */
.rs-faq-hero {
	position: relative;
	overflow: hidden;
	background: var(--rs-ice-blue);
	min-height: 14rem;
	display: flex;
	align-items: flex-end;
	padding: 3rem 0 2.75rem;
	border-bottom: 1px solid var(--rs-ice-blue-border);
}

@media (min-width: 768px) {
	.rs-faq-hero {
		min-height: 18rem;
		padding: 4.5rem 0 3.5rem;
	}
}

.rs-faq-hero--has-image {
	background: var(--rs-slate-blue-dark);
	border-bottom: none;
}

.rs-faq-hero__media {
	position: absolute;
	inset: 0;
	background-image: var(--rs-faq-hero-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.rs-faq-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(17, 37, 51, 0.88) 0%,
		rgba(17, 37, 51, 0.55) 55%,
		rgba(17, 37, 51, 0.35) 100%
	);
}

.rs-faq-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.rs-faq-hero__breadcrumbs {
	margin-bottom: 0.75rem;
}

.rs-faq-hero--has-image .rs-breadcrumbs {
	color: rgba(255, 255, 255, 0.72);
}

.rs-faq-hero--has-image .rs-breadcrumbs a {
	color: #fff;
}

.rs-faq-hero__title {
	margin: 0;
	font-family: var(--rs-font-serif);
	font-size: clamp(2.25rem, 4.5vw, 3.25rem);
	font-weight: 600;
	color: var(--rs-slate-blue);
	line-height: 1.15;
	max-width: 40rem;
}

.rs-faq-hero--has-image .rs-faq-hero__title {
	color: #fff;
}

.rs-faq-hero__subtitle {
	margin: 0.75rem 0 0;
	max-width: 36rem;
	font-size: 1.05rem;
	font-weight: 300;
	color: #475569;
	line-height: 1.65;
}

.rs-faq-hero--has-image .rs-faq-hero__subtitle {
	color: rgba(255, 255, 255, 0.85);
}

/* Accordion */
.rs-faq-list {
	padding: 2.5rem 0 4.5rem;
	background: #fff;
}

@media (min-width: 768px) {
	.rs-faq-list {
		padding: 3.5rem 0 5.5rem;
	}
}

.rs-faq-list__intro {
	margin: 0 0 2rem;
	font-size: 1.05rem;
	font-weight: 300;
	color: #475569;
	line-height: 1.7;
}

.rs-faq-accordion {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--rs-ice-blue-border);
}

.rs-faq-item {
	border-bottom: 1px solid var(--rs-ice-blue-border);
}

.rs-faq-item__question {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1.15rem 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--rs-font-serif);
	font-size: clamp(1.15rem, 2.2vw, 1.4rem);
	font-weight: 600;
	color: var(--rs-slate-blue);
	line-height: 1.35;
	transition: color 0.2s ease;
}

.rs-faq-item__question::-webkit-details-marker {
	display: none;
}

.rs-faq-item__question::marker {
	content: '';
}

.rs-faq-item__question:hover {
	color: var(--rs-slate-blue-light);
}

.rs-faq-item__index {
	flex-shrink: 0;
	min-width: 1.75rem;
	font-family: var(--rs-font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--rs-accent-gold);
	padding-top: 0.35rem;
}

.rs-faq-item__text {
	flex: 1;
	min-width: 0;
}

.rs-faq-item__icon {
	position: relative;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.2rem;
}

.rs-faq-item__icon::before,
.rs-faq-item__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 1.5px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.rs-faq-item[open] .rs-faq-item__icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.rs-faq-item__answer {
	padding: 0 0 1.35rem 2.6rem;
	color: #475569;
	font-size: 0.975rem;
	font-weight: 300;
	line-height: 1.75;
}

@media (max-width: 767px) {
	.rs-faq-item__answer {
		padding-left: 0;
	}
}

.rs-faq-item__answer p {
	margin: 0 0 0.85rem;
}

.rs-faq-item__answer p:last-child {
	margin-bottom: 0;
}
