/*!
 * Guru Blocks: "Ask the Guru" skin for the Rank Math FAQ block.
 * Questions read like your messages, answers like replies from the Guru.
 * Every rule sits under "body #rank-math-faq.rank-math-block" so it beats the old FAQ rules
 * in the Customizer's Additional CSS without touching them. Remove this file to roll back.
 */
body #rank-math-faq.rank-math-block {
	--faq-hot: #f80e5e;
	--faq-hot-d: #c9064a;
	--faq-amber: #fbbf24;
	--faq-ink: #1a202c;
	--faq-muted: #4f4456;
	/* --faq-avatar is set by the plugin with an absolute URL, so cached/combined copies of this file still find the image */
	position: relative;
	margin: 1.6em 0 2.4em !important;
	padding: 56px clamp(14px, 3vw, 26px) 10px !important;
	border-radius: 24px;
	background:
		radial-gradient(90% 70% at 0% 0%, rgba(124, 58, 237, .26) 0%, rgba(124, 58, 237, 0) 60%),
		radial-gradient(90% 80% at 100% 100%, rgba(248, 14, 94, .30) 0%, rgba(248, 14, 94, 0) 60%),
		linear-gradient(150deg, #150b18 0%, #22101f 55%, #2d0f25 100%);
	box-shadow: 0 26px 50px -26px rgba(18, 11, 20, .9);
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	max-width: none;
}
/* Chat header: decorative only, the real section heading sits above the block */
body #rank-math-faq.rank-math-block::before {
	content: 'Ask the Guru · online';
	position: absolute;
	top: 18px;
	left: clamp(14px, 3vw, 26px);
	display: inline-flex;
	align-items: center;
	padding: 5px 12px 5px 32px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08) var(--faq-avatar, none) no-repeat 6px center / 20px auto;
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
body #rank-math-faq.rank-math-block::after {
	content: '';
	position: absolute;
	top: 27px;
	right: clamp(14px, 3vw, 26px);
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #22e39a;
	box-shadow: 0 0 0 4px rgba(34, 227, 154, .18);
}
body #rank-math-faq.rank-math-block .rank-math-list { margin: 0; padding: 0; }

/* One question + answer pair */
body #rank-math-faq.rank-math-block .rank-math-list-item {
	display: flex !important;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 22px !important;
	padding: 0 !important;
	overflow: visible !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}
body #rank-math-faq.rank-math-block .rank-math-list-item:hover { transform: none !important; box-shadow: none !important; }
body #rank-math-faq.rank-math-block .rank-math-list-item input { display: none !important; }

/* Question: your message, right-hand bubble */
body #rank-math-faq.rank-math-block .rank-math-question,
body #rank-math-faq.rank-math-block .rank-math-list-item :is(h2, h3, h4, h5, h6).rank-math-question {
	align-self: flex-end;
	max-width: 88%;
	margin: 0 !important;
	padding: 12px 18px !important;
	border-radius: 20px 20px 4px 20px;
	background: linear-gradient(135deg, #ff4f86 0%, #f80e5e 50%, #d0064c 100%);
	color: #fff !important;
	font-family: 'Exo', 'Poppins', system-ui, sans-serif;
	font-size: 1.02rem !important;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 0 12px 24px -14px rgba(248, 14, 94, .9);
	cursor: default;
}
body #rank-math-faq.rank-math-block .rank-math-question::before { content: none !important; }
body #rank-math-faq.rank-math-block .rank-math-question::after { content: none !important; display: none !important; }

/* Answer: the Guru's reply, left-hand bubble with avatar */
body #rank-math-faq.rank-math-block .rank-math-answer {
	position: relative;
	align-self: flex-start;
	max-width: min(calc(100% - 48px), 780px);
	margin: 0 0 0 48px !important;
	padding: 14px 18px !important;
	border-radius: 4px 20px 20px 20px;
	background: #fff;
	color: var(--faq-muted) !important;
	font-size: .98rem !important;
	line-height: 1.65;
	opacity: 1 !important;
	box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .8);
}
body #rank-math-faq.rank-math-block .rank-math-answer::before {
	content: '';
	position: absolute;
	top: 0;
	left: -46px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff3e8 var(--faq-avatar, none) no-repeat center 3px / 30px auto;
	box-shadow: 0 0 0 2px var(--faq-amber);
}
body #rank-math-faq.rank-math-block .rank-math-answer p { margin: 0 0 .7em; color: inherit; }
body #rank-math-faq.rank-math-block .rank-math-answer > :last-child { margin-bottom: 0; }
body #rank-math-faq.rank-math-block .rank-math-answer strong { color: var(--faq-ink); }
body #rank-math-faq.rank-math-block .rank-math-answer a {
	color: var(--faq-hot) !important;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
body #rank-math-faq.rank-math-block .rank-math-answer a:hover { color: var(--faq-hot-d) !important; }
body #rank-math-faq.rank-math-block .rank-math-answer ul,
body #rank-math-faq.rank-math-block .rank-math-answer ol { margin: .4em 0 .7em 1.2em; padding: 0; }

@media (max-width: 600px) {
	body #rank-math-faq.rank-math-block { padding: 52px 12px 6px !important; border-radius: 20px; }
	body #rank-math-faq.rank-math-block .rank-math-question { max-width: 94%; font-size: .96rem !important; padding: 11px 14px !important; }
	body #rank-math-faq.rank-math-block .rank-math-answer { margin-left: 38px !important; max-width: calc(100% - 38px); padding: 12px 14px !important; font-size: .94rem !important; }
	body #rank-math-faq.rank-math-block .rank-math-answer::before { left: -38px; width: 30px; height: 30px; background-size: 25px auto; }
}
