/**
 * Learning Platforms – extras on top of knowledgecheck/kc.css
 */
.lp-platform-blocks {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 8px;
}
.lp-platform-block {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--kc-border);
	border-radius: var(--kc-radius);
	cursor: pointer;
	transition: background var(--kc-transition), border-color var(--kc-transition), box-shadow var(--kc-transition);
	font-family: 'Inter', sans-serif;
	box-shadow: var(--kc-shadow);
	text-align: left;
}
.lp-platform-block:hover {
	background: #f4f5f7;
	border-color: #c1c7d0;
	box-shadow: var(--kc-shadow-hover);
}
.lp-platform-block.active {
	background: var(--kc-primary-light);
	border-color: var(--kc-primary);
	box-shadow: 0 0 0 2px rgba(182, 15, 15, 0.2);
}
.lp-platform-block-icon {
	width: 28px;
	height: 28px;
	object-fit: contain;
}
.lp-platform-block-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--kc-text);
}
.lp-platform-block.active .lp-platform-block-name {
	color: var(--kc-primary);
}
.lp-platform-block-count {
	font-size: 12px;
	font-weight: 600;
	color: var(--kc-text-muted);
	background: #ebecf0;
	padding: 2px 8px;
	border-radius: 10px;
}
.lp-platform-block.active .lp-platform-block-count {
	background: rgba(182, 15, 15, 0.12);
	color: var(--kc-primary);
}

.lp-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 820px;
	width: 100%;
	box-sizing: border-box;
}
.lp-item {
	background: #fff;
	border: 1px solid var(--kc-border);
	border-radius: var(--kc-radius);
	box-shadow: var(--kc-shadow);
	transition: box-shadow var(--kc-transition), border-color var(--kc-transition), transform var(--kc-transition);
	max-width: 820px;
	width: 100%;
	box-sizing: border-box;
}
.lp-item:hover {
	box-shadow: var(--kc-shadow-hover);
	border-color: #c1c7d0;
	transform: translateY(-1px);
}
.lp-item-inner {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 20px;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	width: 100%;
}
.lp-item-icon-wrap {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #f4f5f7;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.lp-item-icon-wrap img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}
.lp-item-body {
	flex: 1 1 auto;
	min-width: 0;
}
.lp-item-title {
	display: block;
	font-size: 17px;
	font-weight: 700;
	color: var(--kc-text);
	margin: 0 0 6px 0;
	letter-spacing: 0.2px;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.lp-item-desc {
	margin: 0 0 10px 0;
	font-size: 13px;
	font-style: italic;
	color: var(--kc-text-muted);
	line-height: 1.45;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.lp-item-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 4px;
}
.lp-tag {
	display: inline-block;
	padding: 3px 10px;
	background: #ebecf0;
	color: var(--kc-text-muted);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}
.lp-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}
.lp-badge-free {
	background: var(--kc-success-bg);
	color: var(--kc-success);
}
.lp-badge-paid {
	background: var(--kc-primary-light);
	color: var(--kc-primary);
}
.lp-item-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}
.lp-item-platform {
	font-size: 12px;
	font-weight: 600;
	color: var(--kc-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.lp-item-cta {
	flex: 0 0 auto;
	align-self: center;
	padding: 10px 18px;
	background: linear-gradient(135deg, #b60f0f, #8c0d0d);
	color: #fff !important;
	border-radius: 23px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 8px 16px rgba(182, 15, 15, 0.22);
	transition: opacity 0.2s, transform 0.2s;
	box-sizing: border-box;
	text-align: center;
}
.lp-item-cta:hover {
	opacity: 0.95;
	transform: translateY(-1px);
	color: #fff !important;
}
.lp-item-qr {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	object-fit: contain;
	border: 1px solid var(--kc-border);
	border-radius: 6px;
	background: #fff;
	align-self: center;
}

/* Paid membership — no join link / QR; PAID tab only */
.lp-item-paid-membership {
	border: none;
	background: transparent;
	box-shadow: none;
	max-width: 820px;
}
.lp-item-paid-membership:hover {
	transform: none;
	box-shadow: none;
	border-color: transparent;
}
.lp-membership-card {
	position: relative;
	overflow: hidden;
	padding: 28px 28px 24px;
	border-radius: 16px;
	background:
		radial-gradient(circle at 100% 0%, rgba(182, 15, 15, 0.18), transparent 42%),
		radial-gradient(circle at 0% 100%, rgba(140, 13, 13, 0.1), transparent 40%),
		linear-gradient(145deg, #1a1a1a 0%, #2c1212 48%, #3d1515 100%);
	color: #fff;
	box-shadow: 0 16px 40px rgba(182, 15, 15, 0.28);
	box-sizing: border-box;
}
.lp-membership-ribbon {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #ffd7d7;
}
.lp-membership-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}
.lp-membership-brand {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}
.lp-membership-brand .lp-item-title {
	color: #fff;
	font-size: 22px;
	margin-bottom: 4px;
}
.lp-membership-tagline {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.78);
}
.lp-item-icon-wrap--paid {
	background: linear-gradient(145deg, #b60f0f, #8c0d0d);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.lp-item-inner--paid {
	align-items: stretch;
}
.lp-paid-price {
	margin: 0 0 10px 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--kc-primary);
	letter-spacing: 0.2px;
}
.lp-paid-benefits {
	list-style: none;
	margin: 0 0 12px 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.lp-paid-benefits--grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
	margin: 0 0 16px 0;
}
.lp-paid-benefits li {
	position: relative;
	padding: 10px 12px 10px 34px;
	font-size: 13px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.95);
	font-weight: 500;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
}
.lp-paid-benefits li::before {
	content: '✓';
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: auto;
	height: auto;
	border-radius: 0;
	background: none;
	color: #ffb4b4;
	font-weight: 700;
	font-size: 13px;
}
.lp-membership-note {
	margin: 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	font-style: italic;
}
.lp-paid-price-box {
	flex: 0 0 120px;
	align-self: center;
	text-align: center;
	padding: 14px 12px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid rgba(182, 15, 15, 0.2);
	box-shadow: var(--kc-shadow);
	box-sizing: border-box;
}
.lp-paid-price-box--hero {
	flex: 0 0 140px;
	padding: 16px 14px;
	border-radius: 14px;
	background: linear-gradient(180deg, #fff 0%, #ffe8e8 100%);
	border: none;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.lp-paid-price-box-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--kc-text-muted);
	margin-bottom: 4px;
}
.lp-paid-price-box-main {
	font-size: 28px;
	font-weight: 800;
	color: var(--kc-primary);
	line-height: 1.1;
}
.lp-paid-price-box-or {
	font-size: 11px;
	font-weight: 600;
	color: var(--kc-text-muted);
	margin: 2px 0;
}
.lp-paid-price-box-usd {
	font-size: 18px;
	font-weight: 800;
	color: #8c0d0d;
}
.lp-paid-price-box-sub {
	font-size: 11px;
	font-weight: 600;
	color: var(--kc-text-muted);
	margin-top: 4px;
}

/* Paid offer modal — must sit outside #main (global overflow:hidden clips fixed children) */
body.lp-modal-open {
	overflow: hidden !important;
}
body.lp-portal-body.lp-modal-open #main {
	overflow: visible !important;
}
.lp-modal[hidden] {
	display: none !important;
}
.lp-modal {
	position: fixed !important;
	inset: 0 !important;
	z-index: 99999 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	pointer-events: auto;
}
.lp-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 28, 0.62);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.22s ease;
}
.lp-modal-card {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
	transform: translateY(18px) scale(0.97);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
	box-sizing: border-box;
	pointer-events: auto;
}
.lp-modal.lp-modal-visible .lp-modal-backdrop {
	opacity: 1;
}
.lp-modal.lp-modal-visible .lp-modal-card {
	transform: translateY(0) scale(1);
	opacity: 1;
}
.lp-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.lp-modal-hero {
	padding: 28px 24px 20px;
	background:
		radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.16), transparent 40%),
		linear-gradient(145deg, #b60f0f 0%, #8c0d0d 55%, #5c0909 100%);
	color: #fff;
	text-align: center;
}
.lp-modal-badge {
	display: inline-block;
	padding: 4px 12px;
	margin-bottom: 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.7px;
	text-transform: uppercase;
}
.lp-modal-title {
	margin: 0 0 8px 0;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0.2px;
}
.lp-modal-sub {
	margin: 0 0 16px 0;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.85);
}
.lp-modal-price-row {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
}
.lp-modal-price-main {
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
}
.lp-modal-price-or {
	font-size: 13px;
	opacity: 0.8;
}
.lp-modal-price-usd {
	font-size: 26px;
	font-weight: 800;
}
.lp-modal-price-note {
	margin: 6px 0 0 0;
	font-size: 12px;
	opacity: 0.8;
	letter-spacing: 0.3px;
}
.lp-modal-benefits {
	list-style: none;
	margin: 0;
	padding: 18px 22px 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.lp-modal-benefits li {
	position: relative;
	padding: 10px 12px 10px 36px;
	border-radius: 10px;
	background: #fde8e8;
	color: #172b4d;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}
.lp-modal-benefits li::before {
	content: '✓';
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #b60f0f;
	font-weight: 800;
}
.lp-modal-footnote {
	margin: 0;
	padding: 0 22px 8px;
	font-size: 12px;
	color: #5e6c84;
	font-style: italic;
}
.lp-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px 22px 22px;
}
.lp-modal-btn {
	width: 100%;
	padding: 12px 16px;
	border-radius: 24px;
	border: none;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-sizing: border-box;
}
.lp-modal-btn-primary {
	background: linear-gradient(135deg, #b60f0f, #8c0d0d);
	color: #fff;
	box-shadow: 0 10px 20px rgba(182, 15, 15, 0.28);
}
.lp-modal-btn-ghost {
	background: transparent;
	color: #5e6c84;
}

/* Filter toggle: desktop keeps sidebar open; toggle UI only on mobile */
.lp-filter-toggle {
	display: none;
}
.lp-filter-body {
	display: block;
}

/* Tablet */
@media (max-width: 1024px) {
	.lp-list,
	.lp-item {
		max-width: 100%;
	}
}

/* Mobile / responsive */
@media (max-width: 767px) {
	body.lp-portal-body {
		overflow-x: hidden;
	}
	body.lp-portal-body #main {
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: hidden !important;
	}
	body.lp-portal-body .kc-app-header {
		padding: 14px 16px;
		gap: 12px;
		flex-wrap: nowrap;
		box-sizing: border-box;
	}
	body.lp-portal-body .kc-app-header-left {
		gap: 10px;
		min-width: 0;
		flex: 1 1 auto;
	}
	body.lp-portal-body .kc-app-header-logo {
		width: 42px;
		height: 42px;
		border-radius: 12px;
		flex-shrink: 0;
	}
	body.lp-portal-body .kc-app-header-logo img {
		width: 30px;
		height: 30px;
	}
	body.lp-portal-body .kc-app-header-title .kc-primary {
		font-size: 15px;
		letter-spacing: 0.4px;
	}
	body.lp-portal-body .kc-app-header-title .kc-secondary {
		font-size: 11px;
	}
	body.lp-portal-body .kc-app-header-right {
		padding-right: 0 !important;
		flex-shrink: 0;
	}
	body.lp-portal-body .kc-header-user-info {
		display: none;
	}
	body.lp-portal-body .kc-header-avatar {
		width: 38px;
		height: 38px;
		font-size: 13px;
	}
	body.lp-portal-body .kc-header-login-btn {
		height: 38px;
		padding: 8px 16px;
		font-size: 13px;
	}

	body.lp-portal-body .kc-content-area,
	body.lp-portal-body .kc-content-area.kc-has-sidebar {
		display: flex !important;
		flex-direction: column !important;
		padding: 16px 12px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		gap: 0 !important;
	}
	body.lp-portal-body .kc-filter-panel,
	body.lp-portal-body .lp-filter-panel {
		width: 100% !important;
		flex: 0 0 auto !important;
		position: static !important;
		max-height: none !important;
		padding: 10px 12px !important;
		margin-bottom: 8px;
		box-sizing: border-box;
	}
	body.lp-portal-body .lp-filter-title-desktop {
		display: none !important;
	}
	body.lp-portal-body .lp-filter-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		width: 100%;
		padding: 10px 4px;
		margin: 0;
		border: none;
		background: transparent;
		cursor: pointer;
		font-family: 'Inter', sans-serif;
		box-sizing: border-box;
	}
	body.lp-portal-body .lp-filter-toggle-label {
		font-size: 12px;
		font-weight: 600;
		color: var(--kc-text-muted);
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}
	body.lp-portal-body .lp-filter-toggle-meta {
		font-size: 12px;
		font-weight: 600;
		color: var(--kc-primary);
		margin-left: auto;
		margin-right: 6px;
	}
	body.lp-portal-body .lp-filter-toggle-chevron {
		width: 8px;
		height: 8px;
		border-right: 2px solid var(--kc-text-muted);
		border-bottom: 2px solid var(--kc-text-muted);
		transform: rotate(45deg);
		transition: transform 0.2s ease;
		flex-shrink: 0;
		margin-top: -4px;
	}
	body.lp-portal-body .lp-filter-panel.lp-filter-open .lp-filter-toggle-chevron {
		transform: rotate(-135deg);
		margin-top: 2px;
	}
	/* Collapsed by default on mobile */
	body.lp-portal-body .lp-filter-body {
		display: none;
	}
	body.lp-portal-body .lp-filter-panel.lp-filter-open .lp-filter-body {
		display: block;
		padding-top: 4px;
	}
	/* Tag chips area: max 100px then scroll */
	body.lp-portal-body .lp-tag-filter-scroll {
		max-height: 100px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		margin-bottom: 12px;
		padding-right: 4px;
	}
	body.lp-portal-body .lp-tag-filter-scroll::-webkit-scrollbar {
		width: 5px;
	}
	body.lp-portal-body .lp-tag-filter-scroll::-webkit-scrollbar-thumb {
		background: #c1c7d0;
		border-radius: 3px;
	}
	body.lp-portal-body .kc-vertical-hr {
		display: none !important;
	}
	body.lp-portal-body .kc-content-area.kc-has-sidebar .kc-page,
	body.lp-portal-body .kc-page {
		width: 100% !important;
		flex: 1 1 auto !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}
	body.lp-portal-body .kc-wrap {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
	body.lp-portal-body .kc-portal-title {
		font-size: 22px !important;
		line-height: 1.3;
		word-wrap: break-word;
	}
	body.lp-portal-body .kc-portal-subtitle {
		font-size: 14px;
		margin-bottom: 18px;
		line-height: 1.45;
	}

	.lp-platform-blocks {
		gap: 8px;
		width: 100%;
	}
	.lp-platform-block {
		padding: 10px 12px;
		gap: 8px;
		flex: 1 1 calc(50% - 8px);
		min-width: 0;
		box-sizing: border-box;
	}
	.lp-platform-block-icon {
		width: 22px;
		height: 22px;
		flex-shrink: 0;
	}
	.lp-platform-block-name {
		font-size: 13px;
	}
	.lp-platform-block-count {
		margin-left: auto;
		font-size: 11px;
	}

	body.lp-portal-body .kc-tabs {
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		flex-wrap: nowrap;
		gap: 0;
		margin-top: 12px;
		margin-bottom: 16px;
	}
	body.lp-portal-body .kc-tab {
		padding: 10px 14px;
		font-size: 12px;
		white-space: nowrap;
		flex: 0 0 auto;
	}

	.lp-list,
	.lp-item {
		max-width: 100%;
		width: 100%;
	}
	.lp-item-inner {
		display: grid;
		grid-template-columns: 40px 1fr;
		grid-template-areas:
			"icon body"
			"cta cta";
		gap: 10px 12px;
		padding: 14px;
		align-items: start;
	}
	.lp-item-icon-wrap {
		grid-area: icon;
		flex: none;
		width: 40px;
		height: 40px;
		border-radius: 10px;
	}
	.lp-item-icon-wrap img {
		width: 24px;
		height: 24px;
	}
	.lp-item-body {
		grid-area: body;
		min-width: 0;
	}
	.lp-item-title {
		font-size: 15px;
		margin-bottom: 4px;
	}
	.lp-item-desc {
		font-size: 12px;
		margin-bottom: 8px;
	}
	.lp-item-tags {
		gap: 5px;
	}
	.lp-tag,
	.lp-badge {
		font-size: 11px;
		padding: 2px 8px;
	}
	.lp-item-qr {
		display: none !important;
	}
	.lp-item-cta {
		grid-area: cta;
		width: 100%;
		align-self: stretch;
		padding: 11px 16px;
		font-size: 13px;
		margin-top: 2px;
	}
	.lp-item-inner--paid {
		grid-template-areas:
			"icon body"
			"price price";
		grid-template-columns: 40px 1fr;
	}
	.lp-paid-price-box {
		grid-area: price;
		flex: none;
		width: 100%;
		align-self: stretch;
	}
	.lp-paid-benefits li {
		font-size: 12px;
	}
	.lp-membership-card {
		padding: 20px 16px 18px;
		border-radius: 14px;
	}
	.lp-membership-top {
		flex-direction: column;
		gap: 14px;
	}
	.lp-paid-price-box--hero {
		width: 100%;
		flex: none;
	}
	.lp-paid-benefits--grid {
		grid-template-columns: 1fr;
	}
	.lp-membership-brand .lp-item-title {
		font-size: 18px;
	}
	.lp-modal-card {
		max-width: 100%;
		border-radius: 16px;
	}
	.lp-modal-title {
		font-size: 20px;
	}
	.lp-modal-price-main {
		font-size: 34px;
	}
}

@media (max-width: 400px) {
	.lp-platform-block {
		flex: 1 1 100%;
	}
	body.lp-portal-body .kc-portal-title {
		font-size: 20px !important;
	}
}
