.olp-wrap {
	--olp-dark: #041e42;
	--olp-light: #418fde;
	--olp-pale: #edf5fc;
	--olp-border: #d8e1ea;
	--olp-text: #243447;
	box-sizing: border-box;
	color: var( --olp-text );
	font-family: inherit;
	margin: 24px auto;
	max-width: 1120px;
}

.olp-wrap *,
.olp-wrap *::before,
.olp-wrap *::after {
	box-sizing: border-box;
}

.olp-wrap h1,
.olp-wrap h2,
.olp-wrap h3,
.olp-wrap p {
	font-family: inherit;
}

.olp-wrap h1,
.olp-wrap h2,
.olp-wrap h3 {
	color: var( --olp-dark );
}

.olp-hero {
	align-items: center;
	background: linear-gradient( 135deg, var( --olp-dark ) 0%, #0b376d 100% );
	border-radius: 14px;
	color: #fff;
	display: flex;
	gap: 22px;
	margin-bottom: 30px;
	padding: 30px 34px;
}

.olp-hero h1 {
	color: #fff;
	font-size: clamp( 28px, 4vw, 42px );
	line-height: 1.1;
	margin: 3px 0 8px;
}

.olp-hero p {
	color: #fff;
	font-size: 16px;
	margin: 0;
	max-width: 760px;
}

.olp-learner-hero {
	background: linear-gradient( 135deg, var( --olp-dark ) 0%, #0b376d 100% );
	border-radius: 14px;
	color: #fff;
	margin-bottom: 20px;
	padding: 30px 34px;
}

.olp-learner-hero h1 {
	color: #fff;
	font-size: clamp( 28px, 4vw, 42px );
	line-height: 1.1;
	margin: 3px 0 8px;
}

.olp-learner-hero p {
	color: #fff;
	font-size: 16px;
	margin: 0;
}

.olp-eyebrow {
	font-size: 12px !important;
	font-weight: 800;
	letter-spacing: 0.12em;
	opacity: 0.78;
	text-transform: uppercase;
}

.olp-success-icon {
	align-items: center;
	background: #fff;
	border-radius: 50%;
	color: var( --olp-dark );
	display: inline-flex;
	flex: 0 0 64px;
	font-size: 36px;
	font-weight: 800;
	height: 64px;
	justify-content: center;
}

.olp-next-section,
.olp-pathways {
	margin: 28px 0;
}

.olp-dashboard-next {
	background: var( --olp-pale );
	border-radius: 12px;
	padding: 24px;
}

.olp-next-section > h2,
.olp-pathways > h2 {
	font-size: 26px;
	line-height: 1.25;
	margin: 0 0 10px;
}

.olp-section-intro {
	margin: 0 0 18px;
}

.olp-course-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat( auto-fit, minmax( 270px, 1fr ) );
}

.olp-course-grid-count-1 {
	grid-template-columns: minmax( 0, 440px );
}

.olp-course-card {
	background: #fff;
	border: 1px solid var( --olp-border );
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba( 4, 30, 66, 0.08 );
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.olp-course-image {
	aspect-ratio: 16 / 7;
	background: var( --olp-pale );
	overflow: hidden;
}

.olp-course-image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.olp-course-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.olp-path-label {
	color: var( --olp-light );
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.07em;
	line-height: 1.4;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.olp-course-card h3 {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 20px;
}

.olp-button {
	align-items: center;
	align-self: flex-start;
	background: var( --olp-light );
	border: 2px solid var( --olp-light );
	border-radius: 6px;
	color: #fff;
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	justify-content: center;
	margin-top: auto;
	min-height: 44px;
	padding: 10px 18px;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.olp-button:hover,
.olp-button:focus {
	background: var( --olp-dark );
	border-color: var( --olp-dark );
	color: #fff;
	text-decoration: none;
}

.olp-button-disabled {
	background: #8b98a8;
	border-color: #8b98a8;
	cursor: not-allowed;
}

.olp-access-warning {
	color: #8a3b12;
	font-size: 13px;
	line-height: 1.45;
	margin: 12px 0 0;
}

.olp-mini-progress {
	margin: -4px 0 18px;
}

.olp-mini-progress > span {
	color: #536273;
	display: inline-block;
	font-size: 12px;
	margin-top: 6px;
}

.olp-progress-track {
	background: #dfe7ef;
	border-radius: 999px;
	height: 9px;
	overflow: hidden;
	width: 100%;
}

.olp-progress-track > span {
	background: linear-gradient( 90deg, var( --olp-light ), var( --olp-dark ) );
	border-radius: inherit;
	display: block;
	height: 100%;
}

.olp-pathway-list {
	background: #fff;
	border: 1px solid var( --olp-border );
	border-radius: 12px;
	padding: 4px 22px;
}

.olp-pathway-row {
	border-bottom: 1px solid #e7edf3;
	padding: 18px 0;
}

.olp-pathway-row:last-child {
	border-bottom: 0;
}

.olp-pathway-meta {
	align-items: baseline;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 9px;
}

.olp-pathway-meta strong {
	color: var( --olp-dark );
}

.olp-pathway-meta span {
	color: #617184;
	font-size: 13px;
}

.olp-complete-state,
.olp-message {
	background: var( --olp-pale );
	border-left: 5px solid var( --olp-light );
	border-radius: 8px;
	margin: 26px 0;
	padding: 22px 24px;
}

.olp-complete-state h2,
.olp-message p {
	margin-bottom: 5px;
	margin-top: 0;
}

.olp-message-error {
	background: #fff1f0;
	border-left-color: #b32d2e;
}

.olp-footer-actions {
	border-top: 1px solid var( --olp-border );
	margin-top: 28px;
	padding-top: 18px;
	text-align: center;
}

.olp-text-link {
	color: var( --olp-dark );
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.olp-text-link:hover,
.olp-text-link:focus {
	color: var( --olp-light );
}

.olp-stats-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	margin: 0 0 30px;
}

.olp-stat-card {
	background: #fff;
	border: 1px solid var( --olp-border );
	border-radius: 10px;
	box-shadow: 0 5px 16px rgba( 4, 30, 66, 0.05 );
	padding: 20px;
	text-align: center;
}

.olp-stat-card strong,
.olp-stat-card span {
	display: block;
}

.olp-stat-card strong {
	color: var( --olp-dark );
	font-size: clamp( 24px, 3vw, 34px );
	line-height: 1;
	margin-bottom: 7px;
}

.olp-stat-card span {
	color: #617184;
	font-size: 13px;
	font-weight: 700;
}

.olp-course-library {
	margin: 36px 0 0;
}

.olp-course-library > h2 {
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 22px;
}

.olp-library-section {
	margin: 0 0 34px;
}

.olp-library-heading {
	align-items: center;
	border-bottom: 2px solid var( --olp-border );
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 10px;
}

.olp-library-heading h3 {
	font-size: 21px;
	line-height: 1.3;
	margin: 0;
}

.olp-library-heading > span {
	align-items: center;
	background: var( --olp-pale );
	border-radius: 999px;
	color: var( --olp-dark );
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	height: 28px;
	justify-content: center;
	min-width: 28px;
	padding: 0 9px;
}

.olp-library-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}

.olp-library-card {
	background: #fff;
	border: 1px solid var( --olp-border );
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	min-height: 168px;
	overflow: hidden;
}

.olp-library-card-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 18px;
}

.olp-library-card h4 {
	color: var( --olp-dark );
	font-family: inherit;
	font-size: 17px;
	line-height: 1.3;
	margin: 8px 0 14px;
}

.olp-course-status {
	align-self: flex-start;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1;
	padding: 6px 9px;
	text-transform: uppercase;
}

.olp-course-status-completed {
	background: #e7f6ed;
	color: #176638;
}

.olp-course-status-in_progress {
	background: #e7f1fb;
	color: #155a96;
}

.olp-course-status-not_started {
	background: #eef0f3;
	color: #536273;
}

.olp-library-progress {
	margin: -2px 0 14px;
}

.olp-library-progress > span {
	color: #617184;
	display: block;
	font-size: 11px;
	margin-top: 5px;
}

.olp-library-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin-top: auto;
}

.olp-small-button {
	background: var( --olp-light );
	border-radius: 5px;
	color: #fff;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
	padding: 8px 12px;
	text-decoration: none;
}

.olp-small-button:hover,
.olp-small-button:focus {
	background: var( --olp-dark );
	color: #fff;
	text-decoration: none;
}

.olp-small-button-disabled {
	background: #8b98a8;
	cursor: not-allowed;
}

.olp-certificate-link {
	color: var( --olp-dark );
	font-size: 12px;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.olp-certificate-link:hover,
.olp-certificate-link:focus {
	color: var( --olp-light );
}

.olp-library-empty {
	background: #f7f9fb;
	border-radius: 8px;
	color: #617184;
	font-size: 14px;
	margin: 0;
	padding: 16px 18px;
}

@media ( max-width: 860px ) {
	.olp-stats-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.olp-library-grid {
		grid-template-columns: 1fr;
	}
}

@media ( max-width: 640px ) {
	.olp-wrap {
		margin: 16px auto;
	}

	.olp-hero {
		align-items: flex-start;
		border-radius: 10px;
		flex-direction: column;
		padding: 24px 22px;
	}

	.olp-learner-hero {
		border-radius: 10px;
		padding: 24px 22px;
	}

	.olp-dashboard-next {
		padding: 20px;
	}

	.olp-success-icon {
		flex-basis: 52px;
		font-size: 28px;
		height: 52px;
	}

	.olp-course-grid {
		grid-template-columns: 1fr;
	}

	.olp-pathway-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}

}

@media ( max-width: 420px ) {
	.olp-stat-card {
		padding: 16px 10px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.olp-button {
		transition: none;
	}
}
