.cpaa-section,
.cpaa-section * {
	box-sizing: border-box;
}

.cpaa-section {
	--cpaa-navy: #00264b;
	--cpaa-blue: #075fbd;
	--cpaa-gold: #d9a63e;
	--cpaa-text: #647184;
	--cpaa-columns: 5;
	--cpaa-duration: 650ms;
	--cpaa-stagger: 90ms;
	position: relative;
	width: 100%;
	padding: 54px 28px 70px;
	background: #fff;
	color: var(--cpaa-navy);
	overflow: hidden;
	isolation: isolate;
}

.cpaa-section--full {
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
}

/* Elementor's iframe stays constrained so the editor can initialize safely. */
.elementor-editor-active .cpaa-section--full {
	left: auto;
	width: 100%;
	max-width: 100%;
	margin-left: 0;
}

.cpaa-container {
	width: 100%;
	max-width: 1740px;
	margin: 0 auto;
}

.cpaa-header {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 86px;
	margin: 0 0 28px;
}

.cpaa-heading-copy {
	width: min(760px, 72%);
	text-align: center;
}

.cpaa-kicker {
	margin: 0 0 7px;
	color: #c99438;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.cpaa-title {
	margin: 0;
	color: var(--cpaa-navy);
	font-family: inherit;
	font-size: clamp(28px, 2.15vw, 42px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.cpaa-description {
	margin: 9px 0 0;
	color: var(--cpaa-text);
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
}

.cpaa-archive-link {
	position: absolute;
	right: 0;
	bottom: 1px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 0;
	color: #00366d;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: color 220ms ease, gap 220ms ease;
}

.cpaa-archive-link svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
}

.cpaa-archive-link:hover,
.cpaa-archive-link:focus-visible {
	gap: 11px;
	color: var(--cpaa-gold);
}

.cpaa-archive-link:focus-visible,
.cpaa-course-title a:focus-visible,
.cpaa-image-wrap:focus-visible,
.cpaa-arrow:focus-visible {
	outline: 3px solid rgba(7, 95, 189, 0.35);
	outline-offset: 3px;
}

.cpaa-slider-shell {
	position: relative;
	min-width: 0;
}

.cpaa-grid {
	display: grid;
	grid-template-columns: repeat(var(--cpaa-columns), minmax(0, 1fr));
	gap: 22px;
	width: 100%;
	padding: 0;
	outline: none;
}

.cpaa-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	background: #fff;
	border: 1px solid #e4e9ef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 7px 24px rgba(0, 38, 75, 0.075);
	transform-origin: center bottom;
	transition: transform 320ms cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 320ms ease, border-color 320ms ease;
}

.cpaa-hover-lift .cpaa-card:hover {
	transform: translateY(-8px);
	border-color: rgba(7, 95, 189, 0.24);
	box-shadow: 0 18px 38px rgba(0, 38, 75, 0.15);
}

.cpaa-hover-scale .cpaa-card:hover {
	transform: scale(1.025);
	border-color: rgba(7, 95, 189, 0.24);
	box-shadow: 0 18px 38px rgba(0, 38, 75, 0.15);
}

.cpaa-image-wrap {
	position: relative;
	display: block;
	width: 100%;
	height: 210px;
	flex: 0 0 auto;
	background: linear-gradient(135deg, #e8eef4, #d7e2ec);
	overflow: hidden;
	text-decoration: none;
}

.cpaa-image-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: rgba(0, 38, 75, 0.04);
	transition: opacity 320ms ease;
}

.cpaa-section .cpaa-course-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	min-width: 100%;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	transition: transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 320ms ease;
}

.cpaa-image-zoom .cpaa-card:hover .cpaa-course-image {
	transform: scale(1.075);
}

.cpaa-card:hover .cpaa-image-wrap::after {
	opacity: 0;
}

.cpaa-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	max-width: calc(100% - 28px);
	min-height: 28px;
	padding: 6px 12px;
	border-radius: 8px;
	background: #075fbd;
	color: #fff;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 5px 15px rgba(0, 38, 75, 0.18);
}

.cpaa-badge-row {
	position: relative;
	display: flex;
	padding: 16px 18px 0;
}

.cpaa-badge-row .cpaa-badge {
	position: static;
	max-width: 100%;
}

.cpaa-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: stretch;
	padding: 18px;
}

.cpaa-course-title {
	display: -webkit-box;
	min-height: 2.5em;
	margin: 0 0 10px;
	color: var(--cpaa-navy);
	font-family: inherit;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.012em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.cpaa-course-title a {
	color: inherit;
	text-decoration: none !important;
	transition: color 220ms ease;
}

.cpaa-card:hover .cpaa-course-title a,
.cpaa-course-title a:focus-visible {
	color: #c58b28;
}

.cpaa-instructor {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	margin: 0 0 10px;
	color: #6d7888;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
}

.cpaa-instructor > span:last-child {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cpaa-section .cpaa-avatar {
	display: block;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px;
	max-width: none !important;
	border-radius: 50%;
	object-fit: cover;
}

.cpaa-person-icon {
	display: inline-flex;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
}

.cpaa-person-icon svg,
.cpaa-students svg {
	display: block;
	width: 100%;
	height: 100%;
}

.cpaa-meta-stack {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 13px;
	margin: 0 0 12px;
}

.cpaa-rating-row {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
	color: #6d7888;
	font-family: inherit;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
}

.cpaa-stars {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	font-family: Arial, sans-serif;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 1px;
	white-space: nowrap;
}

.cpaa-stars-base {
	color: #d9dee5;
}

.cpaa-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	color: #f2a900;
	white-space: nowrap;
	overflow: hidden;
}

.cpaa-rating-number {
	color: #6d7888;
}

.cpaa-review-count {
	margin-left: -2px;
	color: #6d7888;
}

.cpaa-students {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #6d7888;
	font-family: inherit;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
}

.cpaa-students svg {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
}

.cpaa-price {
	margin: auto 0 0;
	padding-top: 2px;
	color: var(--cpaa-navy);
	font-family: inherit;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.15;
}

.cpaa-price del {
	margin-right: 5px;
	color: #8993a0;
	font-size: 0.78em;
	font-weight: 500;
}

.cpaa-price ins {
	color: inherit;
	text-decoration: none;
}

.cpaa-empty {
	width: 100%;
	padding: 34px 24px;
	border: 1px dashed #cdd7e1;
	border-radius: 12px;
	background: #f8fafc;
	color: var(--cpaa-text);
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.cpaa-arrows {
	display: none;
}

/* Items are hidden only after JavaScript has confirmed animation support. */
.cpaa-section.cpaa-ready:not(.is-visible).cpaa-entry-fade-up .cpaa-animate-item {
	opacity: 0;
	transform: translate3d(0, 30px, 0);
}

.cpaa-section.cpaa-ready:not(.is-visible).cpaa-entry-fade-scale .cpaa-animate-item {
	opacity: 0;
	transform: scale(0.95);
}

.cpaa-section.cpaa-ready:not(.is-visible).cpaa-entry-fade-left .cpaa-animate-item {
	opacity: 0;
	transform: translate3d(-34px, 0, 0);
}

.cpaa-section.cpaa-ready .cpaa-animate-item {
	transition-property: opacity, transform, box-shadow, border-color;
	transition-duration: var(--cpaa-duration), var(--cpaa-duration), 320ms, 320ms;
	transition-timing-function: ease, cubic-bezier(0.2, 0.75, 0.25, 1), ease, ease;
	transition-delay: calc(var(--cpaa-item-index, 0) * var(--cpaa-stagger)), calc(var(--cpaa-item-index, 0) * var(--cpaa-stagger)), 0ms, 0ms;
}

.cpaa-section.cpaa-ready.is-visible .cpaa-animate-item {
	opacity: 1;
}

@media (max-width: 1200px) {
	.cpaa-header {
		display: block;
		min-height: 0;
		text-align: center;
	}

	.cpaa-heading-copy {
		width: min(720px, 100%);
		margin: 0 auto;
	}

	.cpaa-archive-link {
		position: static;
		justify-content: center;
		width: max-content;
		max-width: 100%;
		margin: 10px auto 0;
	}
}

@media (max-width: 1024px) {
	.cpaa-section {
		--cpaa-columns: 3;
		padding: 46px 24px 58px;
	}

	.cpaa-heading-copy {
		width: min(680px, 100%);
	}

	.cpaa-image-wrap {
		height: 200px;
	}
}

@media (max-width: 767px) {
	.cpaa-section {
		--cpaa-columns: 1;
		padding: 38px 16px 48px;
	}

	.cpaa-header {
		display: block;
		min-height: 0;
		margin-bottom: 24px;
		text-align: center;
	}

	.cpaa-heading-copy {
		width: 100%;
	}

	.cpaa-kicker {
		font-size: 11px;
	}

	.cpaa-title {
		font-size: clamp(26px, 8vw, 34px);
	}

	.cpaa-description {
		font-size: 14px;
	}

	.cpaa-archive-link {
		position: static;
		justify-content: center;
		width: max-content;
		max-width: 100%;
		margin: 13px auto 0;
	}

	.cpaa-image-wrap {
		height: 210px;
	}

	.cpaa-mobile-carousel .cpaa-grid {
		grid-template-columns: none !important;
		grid-auto-flow: column;
		grid-auto-columns: 100%;
		gap: 16px;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 4px 0 18px;
		overscroll-behavior-inline: contain;
		scroll-padding-inline: 0;
		scroll-behavior: smooth;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.cpaa-mobile-carousel .cpaa-grid::-webkit-scrollbar {
		display: none;
	}

	.cpaa-mobile-carousel .cpaa-card {
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.cpaa-mobile-carousel.cpaa-has-arrows .cpaa-arrows {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		margin-top: 8px;
	}

	.cpaa-arrow {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--cpaa-navy);
		color: #fff;
		cursor: pointer;
		box-shadow: 0 7px 18px rgba(0, 38, 75, 0.2);
		transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease;
	}

	.cpaa-arrow:hover {
		transform: translateY(-2px);
	}

	.cpaa-arrow:disabled {
		opacity: 0.35;
		cursor: default;
		transform: none;
	}

	.cpaa-arrow svg {
		width: 21px;
		height: 21px;
	}

	.cpaa-mobile-grid .cpaa-grid {
		grid-template-columns: repeat(var(--cpaa-columns), minmax(0, 1fr));
	}

	.cpaa-hover-lift .cpaa-card:hover,
	.cpaa-hover-scale .cpaa-card:hover {
		transform: none;
	}
}

@media (max-width: 430px) {
	.cpaa-course-title {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cpaa-section *,
	.cpaa-section *::before,
	.cpaa-section *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.cpaa-section.cpaa-ready:not(.is-visible) .cpaa-animate-item {
		opacity: 1 !important;
		transform: none !important;
	}

	.cpaa-image-zoom .cpaa-card:hover .cpaa-course-image,
	.cpaa-hover-lift .cpaa-card:hover,
	.cpaa-hover-scale .cpaa-card:hover {
		transform: none !important;
	}
}
