/* === PP Course Preview Styles === */

.pp-course-preview-section {
	border-top: 2px solid #e8e8e8;
	padding-top: 2rem;
}

/* ========== SYLLABUS SECTION (Linear-style hierarchy) ========== */
.pp-syllabus-heading {
	font-size: 1.5rem;
	font-weight: 700;
	color: #171717;
}
.pp-syllabus-desc {
	font-size: 0.9rem;
	color: #a1a1a1;
}

.pp-topic-list {
	border: 1px solid #ebebeb;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.pp-topic-item {
	border-bottom: 1px solid #f0f0f0;
}
.pp-topic-item:last-child {
	border-bottom: none;
}

.pp-topic-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	cursor: pointer;
	user-select: none;
	transition: background 0.15s;
}
.pp-topic-header:hover {
	background: #fafafa;
}

.pp-topic-arrow {
	font-size: 9px;
	color: #d4d4d4;
	transition: transform 0.15s;
	display: inline-block;
	flex-shrink: 0;
}
.pp-topic-item.open > .pp-topic-header .pp-topic-arrow {
	transform: rotate(90deg);
}

.pp-topic-label {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	color: #171717;
	min-width: 0;
}

.pp-topic-pct {
	font-size: 13px;
	font-weight: 600;
	color: #525252;
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
	width: 40px;
	text-align: right;
}

.pp-topic-bar {
	width: 80px;
	height: 4px;
	background: #f0f0f0;
	border-radius: 2px;
	overflow: hidden;
	flex-shrink: 0;
}
.pp-topic-bar-fill {
	height: 100%;
	border-radius: 2px;
	background: #4f6ef7;
	transition: width 0.3s;
}

/* Subtopics (collapsed by default) */
.pp-subtopic-list {
	display: none;
	padding: 0 20px 12px 44px;
}
.pp-topic-item.open > .pp-subtopic-list {
	display: block;
}

.pp-subtopic-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	border-bottom: 1px solid #fafafa;
}
.pp-subtopic-row:last-child {
	border-bottom: none;
}

.pp-subtopic-dot {
	width: 6px;
	height: 6px;
	border-radius: 2px;
	background: #4f6ef7;
	flex-shrink: 0;
}

.pp-subtopic-label {
	flex: 1;
	font-size: 13px;
	color: #525252;
	min-width: 0;
}

.pp-subtopic-pct {
	font-size: 12px;
	color: #a1a1a1;
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}

/* Hint (above question, toggle button) */
.pp-question-hint .pp-hint-content {
	background: #fffbeb;
	border-left: 3px solid #f59e0b;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 0.875rem;
	color: #92400e;
	line-height: 1.5;
	margin-top: 8px;
}

/* ========== ANSWER REVEAL ========== */
.pp-option-correct {
	background: #f0fdf4 !important;
	border-color: #22c55e !important;
}
.pp-option-correct label {
	color: #16a34a;
	font-weight: 600;
}
.pp-option-wrong {
	background: #fef2f2 !important;
	border-color: #ef4444 !important;
}
.pp-option-wrong label {
	color: #dc2626;
}
.pp-answered .pp-option:not(.pp-option-correct):not(.pp-option-wrong) {
	opacity: 0.5;
}
.pp-answered input[type="radio"] {
	pointer-events: none;
}

/* ========== SAMPLE QUESTIONS SECTION ========== */
.pp-free-sample-questions h3,
.pp-internal-links h3 {
	font-size: 1.25rem;
	font-weight: 600;
	color: #333;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.pp-sample-intro {
	font-size: 0.95rem;
	color: #666;
	line-height: 1.6;
}

.pp-sample-question {
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 1.5rem;
	background: #fff;
	transition: all 0.3s ease;
}

.pp-sample-question:hover {
	border-color: #ddd;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pp-question-header {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1rem;
}

.pp-question-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #4CAF50;
	color: white;
	border-radius: 50%;
	font-weight: 600;
	font-size: 0.9rem;
	flex-shrink: 0;
}

.pp-question-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	flex: 1;
}

.pp-badge {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
}

.pp-badge-topic {
	background: #E8F5E9;
	color: #2E7D32;
}

.pp-badge-difficulty {
	color: white;
}

.pp-difficulty-easy {
	background: #4CAF50;
}

.pp-difficulty-medium {
	background: #FFC107;
	color: #333;
}

.pp-difficulty-hard {
	background: #F44336;
}

.pp-question-content {
	font-size: 1rem;
	color: #333;
	line-height: 1.6;
	background: #f9f9f9;
	padding: 1rem;
	border-radius: 4px;
	border-left: 3px solid #4CAF50;
}

.pp-question-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.pp-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	border-radius: 4px;
	background: #f5f5f5;
	transition: all 0.2s ease;
	cursor: pointer;
}

.pp-option:hover {
	background: #efefef;
}

.pp-option input[type="radio"] {
	cursor: pointer;
	accent-color: #4CAF50;
}

.pp-option label {
	flex: 1;
	cursor: pointer;
	margin: 0;
	color: #333;
	font-size: 0.95rem;
}

.pp-question-hint-button,
.pp-question-explanation-button {
	margin-bottom: 0.75rem;
}

.pp-btn-hint,
.pp-btn-explanation {
	background: #f0f8f0;
	border: 1px solid #4CAF50;
	color: #4CAF50;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.pp-btn-hint:hover,
.pp-btn-explanation:hover {
	background: #4CAF50;
	color: white;
}

.pp-hint-content,
.pp-explanation-content {
	margin-top: 0.75rem;
	padding: 1rem;
	background: #FFFDE7;
	border-left: 3px solid #FFC107;
	border-radius: 4px;
	font-size: 0.95rem;
	color: #333;
	line-height: 1.6;
}

.pp-explanation-content {
	background: #E3F2FD;
	border-left-color: #2196F3;
}

/* ========== SOFT GATE ========== */
.pp-soft-gate {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 8px;
	color: white;
	text-align: center;
}

.pp-gate-content {
	max-width: 500px;
	margin: 0 auto;
}

.pp-gate-content h3 {
	color: white;
	margin: 0 0 0.5rem 0;
}

.pp-gate-content p {
	color: rgba(255, 255, 255, 0.9);
}

.pp-gate-content a {
	display: inline-block;
	text-decoration: none;
}

.tutor-btn-lg {
	padding: 0.75rem 2rem;
	font-size: 1rem;
}

/* ========== INTERNAL LINKS BLOCK ========== */
.pp-related-papers-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.pp-related-paper-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background: #f5f5f5;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
}

.pp-related-paper-item:hover {
	background: #efefef;
	border-left-color: #4CAF50;
	transform: translateX(4px);
}

.pp-paper-title {
	font-weight: 500;
	flex: 1;
}

.pp-arrow {
	color: #999;
	margin-left: 1rem;
	transition: color 0.2s ease;
}

.pp-related-paper-item:hover .pp-arrow {
	color: #4CAF50;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
	.pp-topic-header {
		padding: 12px 14px;
		gap: 8px;
	}

	.pp-topic-bar {
		width: 50px;
	}

	.pp-subtopic-list {
		padding-left: 32px;
	}

	.pp-sample-question {
		padding: 1rem;
	}

	.pp-question-header {
		gap: 0.75rem;
	}

	.pp-question-number {
		width: 36px;
		height: 36px;
		font-size: 0.8rem;
	}

	.pp-badge {
		padding: 0.25rem 0.5rem;
		font-size: 0.7rem;
	}

	.pp-gate-content {
		padding: 1.5rem !important;
	}
}

@media (max-width: 480px) {
	.pp-course-preview-section {
		margin-left: -1rem;
		margin-right: -1rem;
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.pp-topic-header {
		flex-wrap: wrap;
	}

	.pp-topic-bar {
		display: none;
	}

	.pp-sample-question {
		padding: 0.75rem;
	}
}
