/* ═══════════════════════════════════════════════════════════════════════════
   CORNERSTONES CURRICULUM PAGE — REASSURANCE CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.ce-cc-reassurance {
	background: #fff;
	padding: 5rem 0;
	position: relative;
	overflow: clip;
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	backdrop-filter: blur(0px);
	-webkit-backdrop-filter: blur(0px);
}

.ce-cc-reassurance::before {
	content: '';
	position: absolute;
	width: 450px;
	height: 450px;
	background: #f9f9f9;
	border-radius: 2.75rem;
	transform: rotate(45deg);
	top: -80px;
	left: -90px;
	pointer-events: none;
	z-index: 0;
}

.ce-cc-reassurance::after {
	content: '';
	position: absolute;
	width: 260px;
	height: 260px;
	background: #f9f9f9;
	border-radius: 2rem;
	transform: rotate(45deg);
	top: 420px;
	left: 178px;
	pointer-events: none;
	z-index: 0;
}

.ce-cc-reassurance .site-container {
	position: relative;
	z-index: 1;
}

.ce-cc-reassurance__title-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	margin-bottom: 0.75rem;
}

.ce-cc-reassurance__heading {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-h2);
	font-weight: 700;
	color: #646464;
	margin: 0;
	line-height: 1.25;
}

.ce-cc-reassurance__sub {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-body);
	color: #7a8a9a;
	text-align: center;
	margin: 0 auto 3rem;
	line-height: 1.7;
}

/* 2-col grid — feature-list defaults to 3-col */
.ce-cc-reassurance__grid {
	grid-template-columns: repeat(2, 1fr);
}

/* Push button to bottom of cards */
.ce-cc-reassurance__grid .ce-feature-list__content {
	flex: 1;
}

/* Video cards still use ce-feature-list__content — keep flex push for action row */
.ce-cc-explore__grid .ce-feature-list__content {
	flex: 1;
}

.ce-cc-explore__grid .ce-feature-list__item {
	gap: 0.5rem;
	padding: 1.25rem 1.5rem;
	min-height: auto !important;
}

.ce-cc-explore__card-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.ce-cc-explore__card-header .ce-feature-list__title {
	margin: 0;
}

.ce-cc-explore__grid .ce-feature-list__desc {
	flex: 1;
}

.ce-cc-explore__grid .ce-cc-card-link-wrap {
	margin-top: 0;
}

/* Accent colour text links — colour at rest, darkened on hover */
.ce-cc-explore__grid .ce-feature-list__item:nth-child(4n+1) .ce-cc-card-link { color: var(--ci-color-engage); }
.ce-cc-explore__grid .ce-feature-list__item:nth-child(4n+1) .ce-cc-card-link:hover { color: #d97e10; }
.ce-cc-explore__grid .ce-feature-list__item:nth-child(4n+2) .ce-cc-card-link { color: var(--ci-color-develop); }
.ce-cc-explore__grid .ce-feature-list__item:nth-child(4n+2) .ce-cc-card-link:hover { color: #8a3a5c; }

/* Reassurance cards: 0.5rem above and below button for 3-line cards.
   Shared min-height keeps all 4 cards the same height regardless of
   copy length, so the "Find out more" links line up across both rows. */
.ce-cc-reassurance__grid .ce-feature-list__item {
	gap: 0.5rem;
	padding: 1.25rem 1.5rem;
	min-height: 15rem !important;
}

.ce-cc-reassurance__grid .ci-btn {
	margin-top: 0;
}

.ce-cc-reassurance__card-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.ce-cc-reassurance__card-header .ce-feature-list__title {
	margin: 0;
}

/* Desc grows to fill card height — link always aligns to bottom */
.ce-cc-reassurance__grid .ce-feature-list__desc {
	flex: 1;
}

.ce-cc-reassurance__grid .ce-cc-card-link-wrap {
	margin-top: 0;
}

/* Understated text-link treatment for in-card navigation */
/* Accent colour at rest, darkened shade on hover */
.ce-cc-reassurance__grid .ce-feature-list__item:nth-child(4n+1) .ce-cc-card-link { color: var(--ci-color-engage); }
.ce-cc-reassurance__grid .ce-feature-list__item:nth-child(4n+1) .ce-cc-card-link:hover { color: #d97e10; }

.ce-cc-reassurance__grid .ce-feature-list__item:nth-child(4n+2) .ce-cc-card-link { color: var(--ci-color-develop); }
.ce-cc-reassurance__grid .ce-feature-list__item:nth-child(4n+2) .ce-cc-card-link:hover { color: #8a3a5c; }

.ce-cc-reassurance__grid .ce-feature-list__item:nth-child(4n+3) .ce-cc-card-link { color: var(--ci-color-innovate); }
.ce-cc-reassurance__grid .ce-feature-list__item:nth-child(4n+3) .ce-cc-card-link:hover { color: #3a6e87; }

.ce-cc-reassurance__grid .ce-feature-list__item:nth-child(4n+4) .ce-cc-card-link { color: #71947e; }
.ce-cc-reassurance__grid .ce-feature-list__item:nth-child(4n+4) .ce-cc-card-link:hover { color: #557060; }

/* Whole-card clickable via stretched link */
.ce-feature-list__item--linked {
	position: relative;
}

.ce-stretched-link::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 1.5rem;
	z-index: 1;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CORNERSTONES CURRICULUM PAGE — EXPLORE SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.ce-cc-explore {
	background: #fff;
	padding: 5rem 0;
	position: relative;
	overflow: clip;
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	backdrop-filter: blur(0px);
	-webkit-backdrop-filter: blur(0px);
}

.ce-cc-explore::before {
	content: '';
	position: absolute;
	width: 450px;
	height: 450px;
	background: #f9f9f9;
	border-radius: 2.75rem;
	transform: rotate(45deg);
	top: -80px;
	left: -90px;
	pointer-events: none;
	z-index: 0;
}

.ce-cc-explore::after {
	content: '';
	position: absolute;
	width: 260px;
	height: 260px;
	background: #f9f9f9;
	border-radius: 2rem;
	transform: rotate(45deg);
	top: 420px;
	left: 178px;
	pointer-events: none;
	z-index: 0;
}

.ce-cc-explore .site-container {
	position: relative;
	z-index: 1;
}

.ce-cc-explore__title-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	margin-bottom: 2.5rem;
}

.ce-cc-explore__heading {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-h2);
	font-weight: 700;
	color: #646464;
	margin: 0;
	line-height: 1.25;
}

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

/* Whole card is the click target */
.ce-feature-list__item.ce-video-trigger {
	cursor: pointer;
}

/* Action row — consistent height across link and video card types */
.ce-cc-explore__action {
	display: flex;
	align-items: center;
	min-height: 2.8rem;
}

/* Watch video label (visual only, click handled by the card) */
.ce-cc-explore__video-btn {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-utility);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.ce-cc-explore__video-btn i {
	font-size: 1.1rem;
}

/* Colour-match to card accent */
.ce-cc-explore__grid .ce-feature-list__item:nth-child(3) .ce-cc-explore__video-btn {
	color: var(--ci-color-innovate);
	--fa-primary-color: var(--ci-color-innovate);
	--fa-secondary-color: rgba(83, 141, 169, 0.4);
}

.ce-cc-explore__grid .ce-feature-list__item:nth-child(4) .ce-cc-explore__video-btn {
	color: #71947e;
	--fa-primary-color: #71947e;
	--fa-secondary-color: rgba(113, 148, 126, 0.4);
}

@media (max-width: 680px) {
	.ce-cc-reassurance,
	.ce-cc-explore {
		padding: 3rem 0;
	}

	.ce-cc-reassurance__grid,
	.ce-cc-explore__grid {
		grid-template-columns: 1fr;
	}
}
