.rp-qb-quiz-widget {
	max-width: 700px;
	margin: 20px auto;
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	font-size: 16px;
	line-height: 1.6;
}

.rp-qb-progress {
	font-weight: 600;
	margin-bottom: 12px;
	color: #555;
}

.rp-qb-question {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 16px;
}

.rp-qb-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.rp-qb-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	cursor: pointer;
	min-height: 44px; /* touch target */
}

.rp-qb-option:hover {
	border-color: #999;
}

.rp-qb-option.rp-qb-correct {
	background: #e6f7ec;
	border-color: #34a853;
}

.rp-qb-option.rp-qb-incorrect {
	background: #fdecea;
	border-color: #ea4335;
}

.rp-qb-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	background: #1a73e8;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
}

.rp-qb-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.rp-qb-feedback {
	margin-top: 16px;
	padding: 14px;
	background: #f7f7f7;
	border-radius: 8px;
}

.rp-qb-results {
	text-align: center;
}

.rp-qb-palette {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.rp-qb-palette-item {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 13px;
}

.rp-qb-palette-item.answered {
	background: #34a853;
	color: #fff;
	border-color: #34a853;
}

.rp-qb-palette-item.current {
	border-color: #1a73e8;
	border-width: 2px;
}

.rp-qb-nav {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.rp-qb-review-item {
	padding: 10px;
	margin-bottom: 8px;
	border-radius: 6px;
}

.rp-qb-review-item.rp-qb-correct { background: #e6f7ec; }
.rp-qb-review-item.rp-qb-incorrect { background: #fdecea; }

.rp-qb-review-question {
	font-weight: 600;
	margin-bottom: 4px;
}

.rp-qb-quiz-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.rp-qb-timer {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 15px;
	padding: 4px 10px;
	background: #f0f0f0;
	border-radius: 6px;
	color: #333;
}

.rp-qb-search-widget .rp-qb-search-bar {
	margin-bottom: 10px;
}

.rp-qb-search-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.rp-qb-search-filters select {
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
}

.rp-qb-search-result {
	padding: 12px 10px;
	border-bottom: 1px solid #eee;
}

.rp-qb-search-result-tag {
	font-size: 12px;
	color: #888;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.rp-qb-search-result-text {
	font-weight: 500;
	margin-bottom: 8px;
}

.rp-qb-inline-practice {
	margin-top: 10px;
	padding: 12px;
	background: #fafafa;
	border-radius: 8px;
}

.rp-qb-search-loading {
	color: #888;
	font-style: italic;
}

/* ---- Related Exam Info: links on the exam page ---- */

.rp-qb-related-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rp-qb-related-links li a {
	display: inline-block;
	padding: 8px 14px;
	background: #f0f4ff;
	border: 1px solid #d0dcff;
	border-radius: 6px;
	color: #1a4fd6;
	text-decoration: none;
	font-size: 14px;
}

.rp-qb-related-links li a:hover {
	background: #e0e9ff;
}

/* ---- Exam practice CTA: for embedding in recruitment articles ---- */

.rp-qb-exam-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 20px 0;
	padding: 18px 20px;
	background: #fff8e6;
	border: 1px solid #ffe4a3;
	border-radius: 10px;
}

.rp-qb-exam-cta-text strong {
	display: block;
	font-size: 16px;
	margin-bottom: 4px;
}

.rp-qb-exam-cta-text p {
	margin: 0;
	color: #666;
	font-size: 14px;
}

.rp-qb-exam-cta-btn {
	flex-shrink: 0;
	white-space: nowrap;
}

.rp-qb-search-widget .rp-qb-search-input {
	width: 100%;
	padding: 12px;
	font-size: 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.rp-qb-search-result {
	padding: 10px;
	border-bottom: 1px solid #eee;
}

@media (max-width: 480px) {
	.rp-qb-quiz-widget { padding: 14px; font-size: 15px; }
	.rp-qb-question { font-size: 16px; }
}

/* ---- SEO landing pages: home / subject / topic / exam ---- */

.rp-qb-home, .rp-qb-taxonomy-page, .rp-qb-exam-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
}

.rp-qb-breadcrumbs {
	font-size: 14px;
	color: #666;
	margin-bottom: 16px;
}

.rp-qb-breadcrumbs a {
	color: #1a73e8;
	text-decoration: none;
}

.rp-qb-count-line {
	color: #555;
	font-size: 15px;
	margin-bottom: 16px;
}

.rp-qb-intro {
	margin-bottom: 24px;
	line-height: 1.7;
}

.rp-qb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.rp-qb-grid-card {
	display: block;
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s;
}

.rp-qb-grid-card:hover {
	border-color: #1a73e8;
}

.rp-qb-grid-card h3 {
	margin: 0 0 6px;
	font-size: 16px;
}

.rp-qb-count {
	font-size: 13px;
	color: #888;
}

.rp-qb-set-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rp-qb-set-list li {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.rp-qb-set-list a {
	color: #1a73e8;
	text-decoration: none;
}

.rp-qb-practice-cta, .rp-qb-faq, .rp-qb-related {
	margin-top: 32px;
}

.rp-qb-faq p {
	margin-bottom: 12px;
	line-height: 1.6;
}
