/**
 * AVM premium course catalog.
 *
 * The catalog follows the visual language of the public landing page while
 * keeping all selectors scoped under `.lms-app--catalog`.
 */

.lms-app--catalog {
	--la-font-head: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--la-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--cat-container: 1200px;
	--cat-gutter: 24px;
	--cat-red: #e30613;
	--cat-red-dark: #c8050f;
	--cat-ink: #14161c;
	--cat-text: #4a5059;
	--cat-muted: #767c87;
	--cat-soft: #f4f5f7;
	--cat-soft-2: #f8f9fb;
	--cat-line: #e7e9ee;
	--cat-radius: 28px;
	--cat-shadow: 0 28px 80px -42px rgba(20, 22, 28, 0.38);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 2rem 0 clamp(4.5rem, 7vw, 7rem);
	background:
		radial-gradient(circle at 5% 22%, rgba(227, 6, 19, 0.055), transparent 24rem),
		linear-gradient(180deg, #fff 0, #fff 31rem, #f7f8fa 31rem, #fff 100%);
	color: var(--cat-text);
}

.lms-app--catalog::before {
	content: '';
	position: absolute;
	top: 34rem;
	right: -13rem;
	z-index: -1;
	width: 30rem;
	height: 30rem;
	border-radius: 50%;
	background: rgba(227, 6, 19, 0.045);
	filter: blur(1px);
}

.lms-app--catalog .lms-app__container {
	position: relative;
	z-index: 1;
	width: min(calc(100% - (var(--cat-gutter) * 2)), var(--cat-container));
	margin-inline: auto;
	display: flex;
	flex-direction: column;
}

/* Hero ------------------------------------------------------------------- */

.lms-app__cat-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem);
	align-items: end;
	gap: clamp(2rem, 5vw, 5rem);
	min-height: 28rem;
	padding: clamp(2.5rem, 5vw, 4.75rem);
	overflow: hidden;
	border: 1px solid rgba(20, 22, 28, 0.06);
	border-radius: clamp(1.5rem, 3vw, 2.25rem);
	background: #eef0f3;
	box-shadow: var(--cat-shadow);
}

.lms-app__cat-hero::before {
	content: '';
	position: absolute;
	inset: 0 0 0 42%;
	z-index: -3;
	background: var(--catalog-hero-image, url('../images/online_courses.webp')) 58% center / cover no-repeat;
	transform: scale(1.02);
}

.lms-app__cat-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(90deg, rgba(248, 249, 251, 1) 0%, rgba(248, 249, 251, 0.98) 39%, rgba(248, 249, 251, 0.72) 57%, rgba(20, 22, 28, 0.12) 100%),
		linear-gradient(0deg, rgba(20, 22, 28, 0.16), transparent 42%);
}

.lms-app__cat-hero-content {
	position: relative;
	z-index: 2;
	max-width: 43rem;
}

.lms-app__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0;
	background: none;
	color: var(--cat-red);
	font-family: var(--la-font-head);
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lms-app__eyebrow-line {
	display: inline-block;
	width: 2.125rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.lms-app__cat-title {
	max-width: 42rem;
	margin: 1.4rem 0 0;
	font-family: var(--la-font-head);
	font-size: clamp(2.7rem, 5vw, 4.8rem);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.045em;
	color: var(--cat-ink);
	text-wrap: balance;
}

.lms-app__cat-lead {
	max-width: 38rem;
	margin: 1.5rem 0 0;
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	line-height: 1.65;
	color: #555c66;
}

.lms-app__cat-hero-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.lms-app__cat-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	min-height: 3.25rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 0.875rem;
	font-family: var(--la-font-head);
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1;
	transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.lms-app__cat-hero-btn svg {
	width: 1.125rem;
	height: 1.125rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 220ms ease;
}

.lms-app__cat-hero-btn:hover { transform: translateY(-2px); }
.lms-app__cat-hero-btn:hover svg { transform: translateX(3px); }

.lms-app__cat-hero-btn--primary {
	background: var(--cat-red);
	color: #fff;
	box-shadow: 0 18px 34px -15px rgba(227, 6, 19, 0.72);
}

.lms-app__cat-hero-btn--primary:hover { background: var(--cat-red-dark); }

.lms-app__cat-hero-btn--secondary {
	border-color: rgba(20, 22, 28, 0.12);
	background: rgba(255, 255, 255, 0.78);
	color: var(--cat-ink);
	backdrop-filter: blur(12px);
}

.lms-app__cat-hero-btn--secondary:hover {
	border-color: rgba(20, 22, 28, 0.2);
	background: #fff;
}

.lms-app__cat-proof {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 0.625rem;
}

.lms-app__cat-proof-item {
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	align-items: center;
	gap: 0.875rem;
	min-height: 4.6rem;
	padding: 0.75rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.58);
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 16px 44px -28px rgba(20, 22, 28, 0.72);
	backdrop-filter: blur(16px);
}

.lms-app__cat-proof-icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.8rem;
	background: rgba(227, 6, 19, 0.1);
	color: var(--cat-red);
}

.lms-app__cat-proof-icon svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lms-app__cat-proof-item > span:last-child {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--cat-muted);
}

.lms-app__cat-proof-item strong {
	font-family: var(--la-font-head);
	font-size: 0.9375rem;
	font-weight: 800;
	color: var(--cat-ink);
}

/* Defensive driving description ---------------------------------------- */

.lms-app__cat-defensive {
	position: relative;
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
	padding: clamp(2rem, 5vw, 4.25rem);
	overflow: hidden;
	border: 1px solid rgba(20, 22, 28, 0.07);
	border-radius: var(--cat-radius);
	background-color: #fff;
	background-image:
		linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 55%, rgba(255, 255, 255, 0.74) 79%, rgba(255, 255, 255, 0.4) 100%),
		url('../images/defensive-driving-catalog-bg-v2.webp');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: 0 30px 80px -55px rgba(20, 22, 28, 0.48);
}

.lms-app__cat-defensive::before {
	content: '';
	position: absolute;
	top: 0;
	left: clamp(2rem, 5vw, 4.25rem);
	width: 4rem;
	height: 4px;
	border-radius: 0 0 4px 4px;
	background: var(--cat-red);
}

.lms-app__cat-defensive-content {
	position: relative;
	z-index: 1;
	max-width: 52rem;
}

.lms-app__cat-defensive h2 {
	max-width: 58rem;
	margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
	font-family: var(--la-font-head);
	font-size: clamp(2rem, 4vw, 3.35rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.04em;
	color: var(--cat-ink);
	text-wrap: balance;
}

.lms-app__cat-defensive ul {
	display: grid;
	gap: 1.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lms-app__cat-defensive li {
	position: relative;
	margin: 0;
	padding-left: 1.75rem;
	font-size: clamp(1rem, 1.35vw, 1.125rem);
	line-height: 1.65;
	color: #343941;
}

.lms-app__cat-defensive li::before {
	content: '';
	position: absolute;
	top: 0.72em;
	left: 0;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--cat-red);
	box-shadow: 0 0 0 5px rgba(227, 6, 19, 0.09);
}

.lms-app__cat-defensive strong {
	font-weight: 800;
	color: var(--cat-ink);
}

.lms-app__cat-defensive p {
	max-width: 64rem;
	margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
	padding-top: clamp(1.5rem, 2.5vw, 2rem);
	border-top: 1px solid var(--cat-line);
	font-size: clamp(1rem, 1.35vw, 1.125rem);
	line-height: 1.65;
	color: var(--cat-text);
}

.lms-app__cat-notice {
	margin-top: 2rem;
	padding: 1rem 1.25rem;
	border: 1px solid #f3d7a8;
	border-radius: 1rem;
	background: #fff8e8;
	color: #8a4b08;
}

.lms-app__cat-notice p { margin: 0; }

/* Course catalog -------------------------------------------------------- */

.lms-app__cat-discovery {
	position: relative;
	z-index: 3;
	scroll-margin-top: 6.5rem;
}

/* Section heading and grid ---------------------------------------------- */

.lms-app__cat-bar {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	margin-top: clamp(3.5rem, 6vw, 5.5rem);
}

.lms-app__cat-section-kicker {
	display: block;
	margin-bottom: 0.65rem;
	font-family: var(--la-font-head);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cat-red);
}

.lms-app__cat-section-title {
	max-width: 43rem;
	margin: 0;
	font-size: clamp(1.9rem, 3.4vw, 3rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.035em;
	color: var(--cat-ink);
}

.lms-app__cat-bar-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.75rem 1rem;
}

.lms-app__cat-count {
	margin: 0;
	font-size: 0.875rem;
	color: var(--cat-muted);
}

.lms-app__cat-count strong { color: var(--cat-ink); font-weight: 800; }

.lms-app__cat-reset {
	font-size: 0.8125rem;
	font-weight: 800;
	color: var(--cat-red);
}

.lms-app__cat-reset:hover { color: var(--cat-red-dark); }

.lms-app__courses-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2vw, 1.75rem);
	margin-top: 2rem;
}

/* Course card ------------------------------------------------------------ */

.lms-app__ccard {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(20, 22, 28, 0.085);
	border-radius: 1.5rem;
	background: #fff;
	box-shadow: 0 16px 42px -35px rgba(20, 22, 28, 0.58);
	transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.lms-app__ccard:hover {
	border-color: rgba(227, 6, 19, 0.18);
	box-shadow: 0 30px 64px -38px rgba(20, 22, 28, 0.58);
	transform: translateY(-6px);
}

.lms-app__ccard__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eceef2;
}

.lms-app img.lms-app__ccard__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lms-app__ccard:hover .lms-app__ccard__img:not(.lms-app__ccard__img--placeholder) { transform: scale(1.055); }

.lms-app__ccard__img--placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	background:
		radial-gradient(circle at 20% 20%, rgba(227, 6, 19, 0.14), transparent 35%),
		linear-gradient(135deg, #f7f8fa, #e8eaee);
	color: #757b86;
	font-family: var(--la-font-head);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lms-app__ccard__placeholder-mark {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	border: 1px solid rgba(227, 6, 19, 0.14);
	border-radius: 1.25rem;
	background: rgba(255, 255, 255, 0.75);
	color: var(--cat-red);
	box-shadow: 0 16px 30px -24px rgba(20, 22, 28, 0.7);
}

.lms-app__ccard__placeholder-mark svg {
	width: 2rem;
	height: 2rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lms-app__ccard__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 22, 28, 0.12), transparent 34%, rgba(20, 22, 28, 0.3) 100%);
	pointer-events: none;
}

.lms-app__ccard__brand {
	position: absolute;
	right: 1rem;
	bottom: 0.9rem;
	z-index: 2;
	display: flex;
	width: 24%;
	max-width: 10.5rem;
	max-height: 18%;
	align-items: flex-end;
	justify-content: flex-end;
	color: #fff;
	pointer-events: none;
}

.lms-app__ccard__brand-logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 3.1rem;
	filter: grayscale(1) brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.44));
	opacity: 0.94;
}

.lms-app__ccard__brand-name {
	display: block;
	color: #fff;
	font-family: var(--la-font-head);
	font-size: clamp(0.625rem, 1.35vw, 0.8125rem);
	font-weight: 800;
	letter-spacing: 0.09em;
	line-height: 1.15;
	text-align: right;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.62);
	text-transform: uppercase;
}

.lms-app__ccard__badges {
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.lms-app__ccard__category,
.lms-app__ccard__level,
.lms-app__ccard__flag {
	display: inline-flex;
	align-items: center;
	min-height: 1.75rem;
	padding: 0.3rem 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--cat-ink);
	font-size: 0.6875rem;
	font-weight: 800;
	line-height: 1;
	backdrop-filter: blur(12px);
}

.lms-app__ccard__level { color: var(--cat-muted); }

.lms-app__ccard__flag {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	gap: 0.3rem;
	border-color: rgba(255, 255, 255, 0.72);
	background: rgba(18, 153, 73, 0.92);
	color: #fff;
}

.lms-app__ccard--in-progress .lms-app__ccard__flag,
.lms-app__ccard--enrolled .lms-app__ccard__flag {
	background: rgba(227, 6, 19, 0.92);
}

.lms-app__ccard__flag svg {
	width: 0.75rem;
	height: 0.75rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lms-app__ccard__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.35rem 1.4rem 1.45rem;
}

.lms-app__ccard__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem 0.9rem;
	min-height: 1.25rem;
	color: var(--cat-muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.lms-app__ccard__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.lms-app__ccard__meta-ic {
	width: 0.9rem;
	height: 0.9rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lms-app__ccard__title {
	margin: 0.7rem 0 0;
	font-family: var(--la-font-head);
	font-size: clamp(1.15rem, 1.7vw, 1.38rem);
	font-weight: 800;
	line-height: 1.24;
	letter-spacing: -0.025em;
}

.lms-app__ccard__title a {
	color: var(--cat-ink);
	transition: color 180ms ease;
}

.lms-app__ccard__title a:hover { color: var(--cat-red); }

.lms-app__ccard__summary {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin: 0.7rem 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #676d77;
}

.lms-app__ccard__instructor {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--cat-muted);
}

.lms-app__ccard__instructor-icon {
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--cat-soft);
	color: #727883;
}

.lms-app__ccard__instructor-icon svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lms-app__ccard__foot {
	margin-top: auto;
	padding-top: 1.25rem;
}

.lms-app__ccard__progress {
	margin-bottom: 0.9rem;
	padding: 0.8rem 0.9rem;
	border-radius: 0.9rem;
	background: var(--cat-soft-2);
}

.lms-app__ccard__progress-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	color: var(--cat-muted);
}

.lms-app__ccard__progress-val { color: var(--cat-red); font-weight: 800; }

.lms-app__ccard__progress-track {
	height: 0.42rem;
	overflow: hidden;
	border-radius: 999px;
	background: #e4e7eb;
}

.lms-app__ccard__progress-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--cat-red), #ff4a54);
}

.lms-app__ccard--completed .lms-app__ccard__progress-fill { background: linear-gradient(90deg, #129949, #31c86d); }

.lms-app__ccard__price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.lms-app__ccard__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.3rem 0.55rem;
	min-width: 0;
}

.lms-app__ccard__price-free,
.lms-app__ccard__price-now {
	font-family: var(--la-font-head);
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--cat-ink);
}

.lms-app__ccard__price-free { color: #138548; }
.lms-app__ccard__price-old { font-size: 0.78rem; color: var(--cat-muted); text-decoration: line-through; }
.lms-app__ccard__price-label { font-size: 0.76rem; font-weight: 700; color: var(--cat-muted); }

.lms-app__ccard__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	flex: 0 0 auto;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	border-radius: 0.85rem;
	background: var(--cat-red);
	color: #fff;
	font-family: var(--la-font-head);
	font-size: 0.8125rem;
	font-weight: 800;
	box-shadow: 0 14px 26px -16px rgba(227, 6, 19, 0.72);
	transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.lms-app__ccard__cta:hover {
	background: var(--cat-red-dark);
	transform: translateY(-1px);
	box-shadow: 0 18px 30px -17px rgba(227, 6, 19, 0.78);
}

.lms-app__ccard__cta svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 180ms ease;
}

.lms-app__ccard__cta:hover svg { transform: translateX(3px); }
.lms-app__ccard__cta--block { display: flex; width: 100%; }

/* Empty state ------------------------------------------------------------ */

.lms-app__cat-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.8rem;
	margin-top: 2rem;
	padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
	border: 1px dashed rgba(20, 22, 28, 0.16);
	border-radius: 1.5rem;
	background: #fff;
	text-align: center;
}

.lms-app__cat-empty-ic {
	display: grid;
	place-items: center;
	width: 3.6rem;
	height: 3.6rem;
	border-radius: 1.1rem;
	background: rgba(227, 6, 19, 0.08);
	color: var(--cat-red);
}

.lms-app__cat-empty-ic svg {
	width: 1.6rem;
	height: 1.6rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.lms-app__cat-empty-title { margin: 0.4rem 0 0; font-size: 1.35rem; font-weight: 800; }
.lms-app__cat-empty-text { max-width: 30rem; margin: 0; color: var(--cat-muted); }

.lms-app__cat-empty-btn {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	margin-top: 0.4rem;
	padding: 0.65rem 1.2rem;
	border-radius: 0.85rem;
	background: var(--cat-red);
	color: #fff;
	font-weight: 800;
}

.lms-app__cat-empty-btn:hover { background: var(--cat-red-dark); }

/* Responsive ------------------------------------------------------------- */

@media (min-width: 1440px) {
	.lms-app--catalog { --cat-container: 1320px; --cat-gutter: 32px; }
}

@media (min-width: 1680px) {
	.lms-app--catalog { --cat-container: 1500px; --cat-gutter: 40px; }
	.lms-app__courses-grid { gap: 2rem; }
}

@media (min-width: 2000px) {
	.lms-app--catalog { --cat-container: 1720px; --cat-gutter: 48px; }
}

@media (max-width: 1100px) {
	.lms-app__cat-hero {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		min-height: auto;
	}

	.lms-app__cat-hero-content { max-width: 42rem; }
	.lms-app__cat-proof { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lms-app__cat-proof-item { grid-template-columns: 2.5rem minmax(0, 1fr); padding: 0.7rem; }
	.lms-app__cat-proof-icon { width: 2.5rem; height: 2.5rem; }
	.lms-app__cat-defensive {
		background-image:
			linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 70%, rgba(255, 255, 255, 0.76) 100%),
			url('../images/defensive-driving-catalog-bg-v2.webp');
	}
	.lms-app__courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	.lms-app--catalog { --cat-gutter: 18px; padding-top: 1.25rem; }
	.lms-app__cat-hero { padding: 2.5rem 2rem; }
	.lms-app__cat-hero::before { inset: 0; opacity: 0.34; }
	.lms-app__cat-hero::after { background: linear-gradient(90deg, rgba(248, 249, 251, 0.98), rgba(248, 249, 251, 0.86)); }
	.lms-app__cat-proof { grid-template-columns: minmax(0, 1fr); max-width: 28rem; }
	.lms-app__cat-bar { align-items: flex-start; flex-direction: column; gap: 1rem; }
	.lms-app__cat-bar-meta { justify-content: flex-start; }
}

@media (max-width: 640px) {
	.lms-app--catalog { background: linear-gradient(180deg, #fff 0, #fff 28rem, #f7f8fa 28rem, #fff 100%); }
	.lms-app__cat-hero { padding: 2rem 1.35rem; border-radius: 1.5rem; }
	.lms-app__cat-defensive {
		padding: 2rem 1.35rem;
		border-radius: 1.5rem;
		background-image:
			linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
			url('../images/defensive-driving-catalog-bg-v2.webp');
		background-position: 68% center;
	}
	.lms-app__cat-defensive::before { left: 1.35rem; }
	.lms-app__cat-title { font-size: clamp(2.35rem, 12vw, 3.2rem); }
	.lms-app__cat-lead { font-size: 0.95rem; }
	.lms-app__cat-hero-actions { align-items: stretch; flex-direction: column; }
	.lms-app__cat-hero-btn { width: 100%; }
	.lms-app__cat-section-title { font-size: 1.9rem; }
	.lms-app__courses-grid { grid-template-columns: minmax(0, 1fr); }
	.lms-app__ccard__body { padding: 1.2rem; }
	.lms-app__ccard__summary { -webkit-line-clamp: 4; }
}

@media (max-width: 390px) {
	.lms-app--catalog { --cat-gutter: 12px; }
	.lms-app__cat-hero { padding-inline: 1.1rem; }
	.lms-app__cat-title { font-size: 2.2rem; }
	.lms-app__ccard__price-row { align-items: stretch; flex-direction: column; }
	.lms-app__ccard__cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.lms-app--catalog *,
	.lms-app--catalog *::before,
	.lms-app--catalog *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
