/* ==========================================================================
   Course Page Redesign — shared design system
   Used by: school-of-film-and-television/6-month-video-editing-and-sound-recording.html
            school-of-film-and-television/diploma-in-acting-for-film-television.html
   Scope: all rules are namespaced under .cp-page to avoid leaking into
   the rest of the site.
   ========================================================================== */

.cp-page {
	--cp-navy: #111d5e;
	--cp-blue: #2c4eab;
	--cp-blue-light: #eef1fb;
	--cp-accent: #82b440;
	--cp-text: #5a5f7a;
	--cp-white: #ffffff;
	--cp-radius: 18px;
	--cp-shadow: 0 15px 40px rgba(17, 29, 94, 0.08);
	--cp-shadow-hover: 0 20px 45px rgba(17, 29, 94, 0.16);
	overflow-x: hidden;
}

.cp-page * {
	box-sizing: border-box;
}

.cp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
}

/* ---------- Section shell ---------- */
.cp-section {
	padding: 55px 0;
	position: relative;
}

.cp-section-alt {
	background: linear-gradient(180deg, #f6f7fc 0%, #ffffff 100%);
}

.cp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--cp-blue);
	margin-bottom: 10px;
}

.cp-eyebrow::before,
.cp-eyebrow::after {
	content: "";
	width: 24px;
	height: 2px;
	background: var(--cp-accent);
	display: inline-block;
}

.cp-title-wrap {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 40px;
}

.cp-title-wrap.cp-left {
	text-align: left;
	margin: 0 0 25px;
}

.cp-section-title {
	font-size: 32px;
	font-weight: 800;
	color: var(--cp-navy);
	margin: 0 0 12px;
	line-height: 1.25;
}

.cp-divider {
	width: 60px;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--cp-blue), var(--cp-accent));
	margin: 0 auto;
}

.cp-title-wrap.cp-left .cp-divider {
	margin: 0;
}

.cp-lead {
	color: var(--cp-text);
	font-size: 16px;
	line-height: 1.8;
	margin-top: 14px;
}

/* ---------- Hero ---------- */
.cp-hero {
	padding: 50px 0 20px;
}

.cp-hero-card {
	background: var(--cp-white);
	border-radius: 24px;
	box-shadow: var(--cp-shadow);
	padding: 45px;
	display: flex;
	align-items: center;
	gap: 45px;
	position: relative;
	overflow: hidden;
}

.cp-hero-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(44, 78, 171, 0.14) 1.6px, transparent 1.6px);
	background-size: 16px 16px;
	-webkit-mask-image: linear-gradient(to left, #000 0%, transparent 35%);
	mask-image: linear-gradient(to left, #000 0%, transparent 35%);
	pointer-events: none;
}

.cp-hero-text {
	flex: 1 1 55%;
	position: relative;
	z-index: 1;
}

.cp-hero-title {
	font-size: 34px;
	font-weight: 800;
	color: var(--cp-navy);
	line-height: 1.3;
	margin-bottom: 16px;
}

.cp-hero-sub {
	color: var(--cp-blue);
	font-weight: 700;
	font-size: 17px;
	margin: 0 0 10px;
}

.cp-hero-text p {
	color: var(--cp-text);
	font-size: 15.5px;
	line-height: 1.85;
}

.cp-hero-media {
	flex: 1 1 45%;
	position: relative;
	z-index: 1;
}

.cp-hero-media img {
	width: 100%;
	border-radius: 18px;
	display: block;
	box-shadow: 0 20px 40px rgba(17, 29, 94, 0.22);
	transition: transform 0.5s ease;
}

.cp-hero-card:hover .cp-hero-media img {
	transform: scale(1.02);
}

/* stat mini cards */
.cp-stats {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 0 0 250px;
	width: 250px;
	position: relative;
	z-index: 2;
}

.cp-stats.cp-stats-row {
	flex-direction: row;
	flex-wrap: wrap;
	width: auto;
	flex: 1 1 100%;
	margin-top: 30px;
}

.cp-stat-card {
	background: var(--cp-white);
	border-radius: 14px;
	box-shadow: 0 10px 25px rgba(17, 29, 94, 0.12);
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #eef0f8;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	flex: 1 1 auto;
}

.cp-stat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--cp-shadow-hover);
}

.cp-stat-icon {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: 50%;
	background: var(--cp-blue-light);
	color: var(--cp-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.cp-stat-label {
	font-size: 12px;
	color: #8a8fa3;
	margin: 0 0 2px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cp-stat-value {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--cp-navy);
	margin: 0;
	line-height: 1.3;
}

/* ---------- Highlight / feature grid ---------- */
.cp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.cp-grid.cp-grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.cp-card {
	background: var(--cp-white);
	border: 1px solid #eef0f8;
	border-radius: var(--cp-radius);
	box-shadow: var(--cp-shadow);
	padding: 30px 22px;
	text-align: center;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.cp-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--cp-shadow-hover);
	border-color: rgba(44, 78, 171, 0.25);
}

.cp-card-icon {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--cp-blue-light);
	color: var(--cp-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	margin: 0 auto 16px;
	transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.cp-card:hover .cp-card-icon {
	background: var(--cp-blue);
	color: #fff;
	transform: rotate(-8deg) scale(1.08);
}

.cp-card h4 {
	font-size: 16.5px;
	font-weight: 700;
	color: var(--cp-navy);
	margin: 0 0 8px;
}

.cp-card p {
	font-size: 13.5px;
	color: var(--cp-text);
	margin: 0;
	line-height: 1.6;
}

/* ---------- Overview (image + text) ---------- */
.cp-overview {
	display: flex;
	align-items: center;
	gap: 50px;
}

.cp-overview.cp-reverse {
	flex-direction: row-reverse;
}

.cp-overview-media {
	flex: 1 1 42%;
	position: relative;
}

.cp-overview-media img {
	width: 100%;
	border-radius: var(--cp-radius);
	box-shadow: var(--cp-shadow);
	display: block;
}

.cp-overview-text {
	flex: 1 1 58%;
}

.cp-overview-text h3 {
	font-size: 22px;
	font-weight: 700;
	color: var(--cp-navy);
	margin: 18px 0 10px;
}

.cp-overview-text h3:first-child {
	margin-top: 0;
}

.cp-overview-text p {
	color: var(--cp-text);
	font-size: 15.5px;
	line-height: 1.85;
	margin-bottom: 12px;
}

/* ---------- Checklist styled list ---------- */
.cp-list-card {
	background: var(--cp-white);
	border-radius: var(--cp-radius);
	box-shadow: var(--cp-shadow);
	padding: 30px 32px;
	height: 100%;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cp-list-card:hover {
	box-shadow: var(--cp-shadow-hover);
	transform: translateY(-4px);
}

.cp-list-card h4 {
	color: var(--cp-navy);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--cp-blue-light);
	display: flex;
	align-items: center;
	gap: 10px;
}

.cp-mini-icon {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 50%;
	background: var(--cp-blue-light);
	color: var(--cp-blue);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
}

/* phase / group tag above a set of module cards */
.cp-phase-tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--cp-blue-light);
	color: var(--cp-blue);
	font-weight: 700;
	font-size: 14px;
	padding: 8px 18px;
	border-radius: 50px;
	margin-bottom: 22px;
}

.cp-phase-tag i {
	font-size: 17px;
}

.cp-check-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cp-check-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	color: var(--cp-text);
	font-size: 14.5px;
	line-height: 1.6;
	border-bottom: 1px dashed #eceffa;
}

.cp-check-list li:last-child {
	border-bottom: none;
}

.cp-check-list li i {
	color: var(--cp-accent);
	font-size: 17px;
	margin-top: 2px;
	flex: none;
}

.cp-check-list.cp-nested {
	margin: 4px 0 10px 27px;
}

.cp-check-list.cp-nested li {
	border-bottom: none;
	padding: 4px 0;
	font-size: 13.5px;
}

.cp-check-list strong {
	color: var(--cp-navy);
}

.cp-list-card > p {
	color: var(--cp-text);
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 8px;
}

.cp-list-card > p:last-of-type {
	margin-bottom: 12px;
}

/* ---------- Text block with side accent ---------- */
.cp-text-card {
	background: var(--cp-white);
	border-radius: var(--cp-radius);
	box-shadow: var(--cp-shadow);
	padding: 28px 32px;
	border-left: 4px solid var(--cp-accent);
	height: 100%;
}

.cp-text-card h3 {
	color: var(--cp-navy);
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.cp-text-card h3 i {
	color: var(--cp-blue);
	font-size: 22px;
}

.cp-text-card p {
	color: var(--cp-text);
	font-size: 14.5px;
	line-height: 1.8;
	margin: 0;
}

/* ---------- CTA banner ---------- */
.cp-cta {
	background: linear-gradient(120deg, var(--cp-navy) 0%, var(--cp-blue) 100%);
	border-radius: 24px;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	min-height: 230px;
}

.cp-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.6px, transparent 1.6px);
	background-size: 18px 18px;
	-webkit-mask-image: linear-gradient(to left, #000 0%, transparent 45%);
	mask-image: linear-gradient(to left, #000 0%, transparent 45%);
}

.cp-cta-media {
	flex: 0 0 34%;
	align-self: stretch;
}

.cp-cta-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cp-cta-body {
	flex: 1 1 auto;
	text-align: center;
	padding: 50px 30px;
	position: relative;
	z-index: 1;
	max-width: 640px;
	margin: 0 auto;
}

.cp-cta-icon {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin: 0 auto 16px;
}

.cp-cta-body h2 {
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 10px;
}

.cp-cta-body p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14.5px;
	margin: 0 0 22px;
}

.cp-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	color: var(--cp-navy) !important;
	font-weight: 700;
	font-size: 14.5px;
	padding: 13px 26px;
	border-radius: 50px;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cp-cta-btn i {
	background: var(--cp-blue-light);
	color: var(--cp-blue);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	transition: transform 0.3s ease;
}

.cp-cta-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
	color: var(--cp-navy);
}

.cp-cta-btn:hover i {
	transform: translateX(3px);
}

/* ---------- Step timeline ---------- */
.cp-steps {
	display: flex;
	flex-direction: column;
}

.cp-step {
	display: flex;
	gap: 24px;
}

.cp-step-marker {
	flex: 0 0 56px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cp-step-num {
	width: 56px;
	height: 56px;
	min-height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--cp-blue), var(--cp-navy));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 20px;
	box-shadow: 0 8px 20px rgba(44, 78, 171, 0.3);
}

.cp-step-connector {
	flex: 1 1 auto;
	width: 2px;
	min-height: 24px;
	margin: 6px 0;
	background: repeating-linear-gradient(to bottom, var(--cp-blue-light) 0, var(--cp-blue-light) 6px, transparent 6px, transparent 12px);
}

.cp-step:last-child .cp-step-connector {
	display: none;
}

.cp-step-content {
	flex: 1 1 auto;
	background: var(--cp-white);
	border-radius: var(--cp-radius);
	box-shadow: var(--cp-shadow);
	padding: 24px 28px;
	margin-bottom: 30px;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cp-step:hover .cp-step-content {
	box-shadow: var(--cp-shadow-hover);
	transform: translateY(-3px);
}

.cp-step-tag {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--cp-blue);
	margin-bottom: 4px;
}

.cp-step-content h3 {
	font-size: 19px;
	font-weight: 700;
	color: var(--cp-navy);
	margin: 0 0 12px;
}

.cp-step-content .cp-lead {
	margin-top: 0;
	font-size: 15px;
}

.cp-step-content .cp-check-list {
	margin-top: 4px;
}

/* ---------- decorative dots ---------- */
.cp-dots {
	position: absolute;
	width: 90px;
	height: 70px;
	background-image: radial-gradient(circle, rgba(44, 78, 171, 0.25) 1.6px, transparent 1.6px);
	background-size: 12px 12px;
	z-index: 0;
}

.cp-dots-tr {
	top: 10px;
	right: 10px;
}

.cp-dots-bl {
	bottom: 10px;
	left: 10px;
}

/* ---------- simple entrance animation fallback (if AOS not ready) ---------- */
@keyframes cpFadeUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cp-page [data-aos] {
	animation: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
	.cp-hero-card {
		flex-direction: column;
		padding: 32px 24px;
	}

	.cp-stats {
		flex-direction: row;
		flex-wrap: wrap;
		width: 100%;
		margin-top: 26px;
	}

	.cp-overview,
	.cp-overview.cp-reverse {
		flex-direction: column;
	}

	.cp-overview-media,
	.cp-overview-text {
		flex: 1 1 100%;
	}

	.cp-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cp-cta {
		flex-direction: column;
	}

	.cp-cta-media {
		width: 100%;
		height: 180px;
	}

	.cp-section-title {
		font-size: 27px;
	}

	.cp-hero-title {
		font-size: 27px;
	}
}

@media (max-width: 767px) {
	.cp-section {
		padding: 38px 0;
	}

	.cp-grid,
	.cp-grid.cp-grid-2 {
		grid-template-columns: 1fr;
	}

	.cp-stats,
	.cp-stats.cp-stats-row {
		flex-direction: column;
	}

	.cp-list-card,
	.cp-text-card {
		padding: 24px 20px;
	}

	.cp-hero-card {
		padding: 26px 18px;
		border-radius: 18px;
	}

	.cp-cta-body h2 {
		font-size: 21px;
	}

	.cp-step {
		gap: 14px;
	}

	.cp-step-marker {
		flex: 0 0 40px;
	}

	.cp-step-num {
		width: 40px;
		height: 40px;
		min-height: 40px;
		font-size: 15px;
	}

	.cp-step-content {
		padding: 18px 18px;
	}
}

@media (max-width: 480px) {
	.cp-hero-title {
		font-size: 23px;
	}

	.cp-section-title {
		font-size: 22px;
	}
}
