/* ═══════════════════════════════════════════════════════════════════════════
   CURRICULUM FOR WALES PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Built for Welsh schools — feature cards ── */

.ce-wales-features {
	background: #fff;
	padding: 5rem 0;
	position: relative;
	overflow: clip;
}

.ce-wales-features::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-wales-features::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-wales-features .site-container {
	position: relative;
	z-index: 1;
}

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

.ce-wales-features__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-wales-features__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;
}

.ce-wales-features .ce-wales-features__grid {
	grid-template-columns: repeat(2, 1fr);
}

.ce-wales-features .ce-feature-list__header {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.ce-wales-features .ce-feature-list__badge {
	font-size: 1.75rem;
	flex-shrink: 0;
}

@media (max-width: 680px) {
	.ce-wales-features {
		padding: 3rem 0;
	}

	.ce-wales-features .ce-wales-features__grid {
		grid-template-columns: 1fr;
	}
}


/* ── Wales requirements table ── */
.ce-wales-table {
	background-color: #253d47;
	padding: 5rem 0;
}

.ce-wales-table__title-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.ce-wales-table__heading {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-h2);
	font-weight: 700;
	color: var(--ci-color-white);
	margin: 0;
	line-height: 1.2;
}

.ce-wales-table__sub {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-body);
	color: rgba(255, 255, 255, 0.75);
	text-align: center;
	margin: 0 auto 2.5rem;
	line-height: 1.7;
}

.wales-table__wrap {
	max-width: 700px;
	margin: 0 auto;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(48px) saturate(1.6) brightness(1.12);
	-webkit-backdrop-filter: blur(48px) saturate(1.6) brightness(1.12);
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		0 12px 40px rgba(37, 61, 71, 0.3);
}

.wales-table__table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--ci-font-primary);
	background-color: transparent;
	min-width: 360px;
}

.wales-table__table thead th {
	padding: 1rem 1.25rem;
	font-size: 1rem;
	font-weight: 700;
	text-align: left;
}

.wales-table__col-req {
	width: 75%;
	background-color: rgba(255, 255, 255, 0.35);
	color: var(--ci-color-navy);
}

.wales-table__col-ci {
	width: 25%;
	background-color: #253d47;
	color: #ffffff;
	text-align: center !important;
}

.wales-table__brand {
	display: inline-block;
}

.wales-table__table tbody tr {
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	transition: background-color 0.15s ease;
}

.wales-table__table tbody tr:last-child {
	border-bottom: none;
}

@media (hover: hover) and (pointer: fine) {
	.wales-table__table tbody tr:hover {
		background-color: rgba(37, 61, 71, 0.05);
	}
}

.wales-table__table tbody td {
	padding: 0.85rem 1.25rem;
	font-size: 0.92rem;
	color: #3a4a5a;
	line-height: 1.5;
}

.wales-table__table tbody td:first-child {
	color: var(--ci-color-navy);
	font-weight: 500;
}

.wales-table__table tbody td:last-child {
	text-align: center;
	background-color: rgba(37, 61, 71, 0.08);
}

.wales-table__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	color: var(--ci-color-navy);
}

/* ── Testimonials ── */
.ce-wales-testimonials {
	background-color: #253d47;
	padding: 5rem 0;
}

.wales-testimonials__heading {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-h2);
	font-weight: 700;
	color: var(--ci-color-white);
	text-align: center;
	margin: 0 0 3rem;
}

.wales-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 900px) {
	.ce-wales-testimonials {
		padding: 3rem 0;
	}

	.wales-testimonials__grid {
		grid-template-columns: 1fr;
		max-width: 520px;
		margin: 0 auto;
	}
}

/* ── Mobile table ── */
@media (max-width: 640px) {
	.ce-wales-table {
		padding: 3rem 0;
	}

	.wales-table__wrap {
		border-radius: 12px;
		margin: 0 1rem;
	}

	.wales-table__table {
		min-width: 0;
	}

	.wales-table__table thead th,
	.wales-table__table tbody td {
		padding: 0.75rem 0.9rem;
		font-size: 0.85rem;
	}
}


/* ── Wales mid CTA ──────────────────────────────────────────────────────────
   Nothing left to style. This section is now the shared .home-cta banner (see
   ce_wales_cta_mid in inc/acf-wales.php), and every value the bespoke version
   set here — the #f9f9f9 ground, the #646464 heading and body, the orange
   button — is already what .home-cta does by default. The rules that used to
   live here were a re-statement of home-cta.css that had drifted into a
   narrower layout: a .site-container plus a padded card left the quote 263px
   wide where SEND's is 375.

   The .ce-wales-cta-mid class stays on the section only as a hook for anything
   this page needs later. */
