/* Contact Skills — palette + components. See output/build/design-brief.md. */

:root {
	--cs-navy: #0B2A4A;
	--cs-teal: #0E7C86;
	--cs-amber: #F5A524;
	--cs-amber-hover: #D68F1C;
	--cs-teal-hover: #0A5F67;
	--cs-mist: #F3F6FA;
	--cs-ink: #1B2430;
	--cs-slate: #5B6B7C;
	--cs-slate-on-navy: #C9D4DE;
	--cs-white: #FFFFFF;
	--cs-icon-light: #E8F4F5;
	--cs-border: #E3E9F0;
	--cs-radius: 8px;
	--cs-btn-radius: 6px;
	--cs-container-max: 1200px;
	--cs-gutter: 24px;
	--cs-section-pad: 80px;
	--cs-section-pad-mobile: 48px;
	--cs-font-heading: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
	--cs-font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

/* ---------- Typography ---------- */

body {
	font-family: var(--cs-font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.6;
	color: var(--cs-ink);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cs-font-heading);
	color: var(--cs-navy);
	line-height: 1.25;
	margin: 0 0 16px;
}

h1 {
	font-size: 40px;
	font-weight: 700;
}
h2 {
	font-size: 30px;
	font-weight: 700;
}
h3 {
	font-size: 22px;
	font-weight: 600;
}

.cs-meta,
small {
	font-size: 14px;
	color: var(--cs-slate);
}

@media (max-width: 782px) {
	h1 { font-size: 30px; }
	h2 { font-size: 24px; }
	h3 { font-size: 20px; }
	body { font-size: 16px; }
}

.cs-container {
	max-width: var(--cs-container-max);
	margin: 0 auto;
	padding: 0 var(--cs-gutter);
}

/* ---------- Section layout patterns ---------- */

.cs-section {
	padding: var(--cs-section-pad) 0;
}
.cs-section--mist {
	background: var(--cs-mist);
}
.cs-section--white {
	background: var(--cs-white);
}
.cs-section--navy {
	background: var(--cs-navy);
	color: var(--cs-white);
}
.cs-section--navy h1,
.cs-section--navy h2,
.cs-section--navy h3 {
	color: var(--cs-white);
}
.cs-section__header {
	max-width: 720px;
	margin: 0 0 32px;
}

@media (max-width: 782px) {
	.cs-section {
		padding: var(--cs-section-pad-mobile) 0;
	}
}

/* ---------- Buttons ---------- */

.cs-btn {
	display: inline-block;
	border-radius: var(--cs-btn-radius);
	padding: 12px 24px;
	font-weight: 600;
	text-decoration: none;
	border: 1.5px solid transparent;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cs-btn--primary {
	background: var(--cs-amber);
	color: var(--cs-navy);
}
.cs-btn--primary:hover,
.cs-btn--primary:focus-visible {
	background: var(--cs-amber-hover);
	color: var(--cs-navy);
}

.cs-btn--secondary {
	background: var(--cs-teal);
	color: var(--cs-white);
}
.cs-btn--secondary:hover,
.cs-btn--secondary:focus-visible {
	background: var(--cs-teal-hover);
	color: var(--cs-white);
}

.cs-btn--outline {
	background: transparent;
	color: var(--cs-teal);
	border-color: var(--cs-teal);
	padding: 10px 22px;
}
.cs-btn--outline:hover,
.cs-btn--outline:focus-visible {
	background: var(--cs-mist);
}

/* Visible focus state for keyboard users — never remove. */
.cs-btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--cs-teal);
	outline-offset: 2px;
}

/* ---------- Cards ---------- */

.cs-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--cs-gutter);
	margin: 24px 0;
}

.cs-card {
	display: flex;
	flex-direction: column;
	background: var(--cs-white);
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius);
	box-shadow: 0 2px 8px rgba(11, 42, 74, 0.08);
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.cs-card:hover,
.cs-card:focus-visible {
	box-shadow: 0 6px 16px rgba(11, 42, 74, 0.12);
	transform: translateY(-2px);
}

.cs-card__image {
	aspect-ratio: 16 / 9;
	background: var(--cs-mist);
	color: var(--cs-teal);
	display: flex;
	align-items: center;
	justify-content: center;
}
.cs-card__image svg {
	width: 48px;
	height: 48px;
}

.cs-card__body {
	padding: 20px;
}

.cs-card__title {
	font-size: 18px;
	font-weight: 600;
	color: var(--cs-navy);
	margin: 0 0 6px;
}

.cs-card__meta,
.cs-card__excerpt {
	font-size: 13px;
	color: var(--cs-slate);
	margin: 0 0 6px;
}

/* ---------- Category grid ---------- */

.cs-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--cs-gutter);
	margin: 24px 0;
}

/* Every text/icon element below declares its own explicit color instead of
   relying on inheriting .cs-category-card's color — the same fragility that
   caused the tag-pill contrast bug: an inherited value is silently beaten by
   any future rule that matches the child more specifically (e.g. a global
   h1-h6 or element-type selector), even at low specificity, while an
   explicit declaration on the element itself cannot be. */
.cs-category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	padding: 24px;
	border-radius: var(--cs-radius);
	background: var(--cs-mist);
	border: 1px solid var(--cs-border);
	color: var(--cs-teal);
	text-decoration: none;
	min-height: 140px;
	justify-content: flex-start;
	transition: transform 0.15s ease, border-color 0.15s ease;
}
.cs-category-card:hover,
.cs-category-card:focus-visible {
	transform: translateY(-2px);
	border-color: var(--cs-teal);
}
.cs-category-card__icon {
	color: var(--cs-teal);
}
.cs-category-card__icon svg {
	width: 40px;
	height: 40px;
}
.cs-category-card__name {
	font-family: inherit;
	font-weight: 700;
	font-size: 18px;
	color: var(--cs-teal);
}
.cs-category-card__count {
	font-size: 13px;
	color: var(--cs-teal);
	margin-top: auto;
}

/* Astra underlines content links; cards are whole-block links, so the
   underline is dropped here and the hover lift/border does the job. */
a.cs-category-card,
a.cs-category-card *,
a.cs-card,
a.cs-card * {
	text-decoration: none !important;
}

/* Two-tone icons: the main shape follows currentColor (teal on mist cards,
   light on gradient heroes); elements marked .cs-accent in the SVG files
   take amber everywhere. Filled vs stroked accents are targeted separately
   so a fill="none" outline never gets flooded with colour. */
svg .cs-accent:not([fill="none"]) {
	fill: var(--cs-amber);
}
svg .cs-accent[stroke] {
	stroke: var(--cs-amber);
}

/* ---------- Image hero (category archive, program single, trainer page —
   photographic background with a navy/teal gradient scrim so light-coloured
   heading/tag text stays legible over any part of the photo) ---------- */

.cs-image-hero {
	position: relative;
	color: var(--cs-white);
	padding: 64px 0;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
/* Weighted left-to-right (text side to open side), not a uniform wash —
   a flat ~0.9 opacity scrim across the whole photo reads as a plain
   gradient banner at a glance, defeating the point of sourcing a real
   photo for this slot. This keeps the text zone (left, where the pills/
   heading sit) dark enough for AA contrast while letting the photo read
   clearly further right. */
.cs-image-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(11, 42, 74, 0.88) 0%,
		rgba(11, 42, 74, 0.82) 30%,
		rgba(14, 124, 134, 0.45) 65%,
		rgba(14, 124, 134, 0.25) 100%
	);
}
.cs-image-hero .cs-container {
	position: relative;
	z-index: 1;
}
.cs-image-hero h1,
.cs-image-hero h2 {
	color: var(--cs-white);
}

/* Trainer portrait: the [IMAGE: trainer-photo] token on the trainer page
   renders as a .cs-image-slot img with data-slot="trainer-photo" — sized
   and framed like a portrait instead of a full-width banner. */
.cs-image-slot[data-slot="trainer-photo"] {
	max-width: 320px;
	box-shadow: 0 6px 16px rgba(11, 42, 74, 0.2);
}

@media (max-width: 782px) {
	.cs-image-hero {
		padding: 40px 0;
	}
}

/* ---------- Gradient headers (category headers, default program card,
   trainer hero — no image files, palette gradients + SVG icons only) ---------- */

.cs-gradient-header {
	background: linear-gradient(135deg, var(--cs-navy) 0%, var(--cs-teal) 100%);
	color: var(--cs-white);
	padding: 48px 0;
}
/* The category/program icons (assets/icons/*.svg, echoed inline by
   cs_core_icon_svg()) use fill/stroke="currentColor" so a single explicit
   declaration here controls every icon everywhere it renders — always on
   this dark gradient background — instead of leaving icon color to whatever
   hex values happen to be hardcoded in each SVG file. */
.cs-gradient-header svg {
	color: var(--cs-icon-light);
}

/* An [IMAGE: slot] token that resolved to a real upload (see images-new/)
   renders as this; one that didn't renders as .cs-gradient-header instead
   (import.py picks whichever markup applies — see _find_new_image()). */
.cs-image-slot {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--cs-radius);
	margin: 24px 0;
}
/* Ten category variants: same two-colour system, varied angle/stops/accent
   so each category reads as distinct while staying inside the palette. */
.cs-gradient-header--leadership-management { background: linear-gradient(135deg, var(--cs-navy) 0%, var(--cs-teal) 100%); }
.cs-gradient-header--manufacturing-quality-safety { background: linear-gradient(120deg, var(--cs-navy) 0%, var(--cs-teal) 85%, var(--cs-amber) 100%); }
.cs-gradient-header--sales-marketing { background: linear-gradient(135deg, var(--cs-teal) 0%, var(--cs-navy) 100%); }
.cs-gradient-header--finance-business-skills { background: linear-gradient(150deg, var(--cs-navy) 0%, var(--cs-teal) 100%); }
.cs-gradient-header--hr-people-management { background: linear-gradient(105deg, var(--cs-navy) 0%, var(--cs-teal) 90%, var(--cs-amber) 100%); }
.cs-gradient-header--communication-presentation-skills { background: linear-gradient(160deg, var(--cs-teal) 0%, var(--cs-navy) 100%); }
.cs-gradient-header--customer-service-contact-centre { background: linear-gradient(140deg, var(--cs-navy) 0%, var(--cs-teal) 100%); }
.cs-gradient-header--personal-effectiveness-thinking-skills { background: linear-gradient(110deg, var(--cs-teal) 0%, var(--cs-navy) 90%, var(--cs-amber) 100%); }
.cs-gradient-header--risk-compliance-governance { background: linear-gradient(170deg, var(--cs-navy) 0%, var(--cs-teal) 100%); }
.cs-gradient-header--it-digital-tools { background: linear-gradient(125deg, var(--cs-teal) 0%, var(--cs-navy) 100%); }

/* ---------- Program template ---------- */

.cs-program__header {
	margin-bottom: 32px;
}
.cs-program__meta {
	margin: 0 0 12px;
}
/* Solid enough navy + white text regardless of what's behind it (a plain
   .cs-gradient-header, or a photo under .cs-image-hero) — was a translucent
   white pill with no explicit text colour, so it inherited the ordinary
   link colour (teal) and became low-contrast teal-on-teal/navy on any
   photo hero. White text on this background is ≈8:1+, passing AA/AAA. */
.cs-tag {
	display: inline-block;
	font-size: 13px;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(11, 42, 74, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--cs-white);
	margin: 0 6px 6px 0;
}
.cs-tag:hover,
.cs-tag:focus-visible {
	background: rgba(11, 42, 74, 0.85);
	color: var(--cs-white);
}
.cs-program__title {
	color: var(--cs-white);
	margin: 0 0 12px;
}
.cs-program__excerpt {
	font-size: 18px;
	max-width: 760px;
	margin: 0;
}
.cs-program__body {
	padding: 40px 0;
}
.cs-program__videos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--cs-gutter);
	margin-bottom: 32px;
}
.cs-video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--cs-radius);
	overflow: hidden;
}
.cs-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.cs-program__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 32px 0;
}
.cs-related-programs {
	margin-top: 48px;
}

/* ---------- Footer ([cs_footer], inside Astra's footer builder) ----------
   Every text element sets its own colour explicitly (see the category-card
   note above) so Astra's footer link/text colours can't leak in. */

.cs-footer {
	background: var(--cs-navy);
	color: var(--cs-slate-on-navy);
	padding: 64px 0 0;
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
	/* Full-bleed: breaks out of Astra's footer row container (max-width +
	   side padding) whatever the Customizer width setting says. */
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
}
/* 100vw includes the vertical scrollbar on Windows browsers; clip the few
   extra pixels so the footer never causes a horizontal scrollbar. */
body:has(.cs-footer) {
	overflow-x: clip;
}
.cs-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1.4fr 0.8fr 1.1fr;
	gap: 40px;
	padding-bottom: 48px;
}
.cs-footer__logo {
	font-family: var(--cs-font-heading);
	font-weight: 700;
	font-size: 24px;
	color: var(--cs-white);
	margin: 0 0 12px;
}
.cs-footer__tagline,
.cs-footer__reg {
	color: var(--cs-slate-on-navy);
	margin: 0 0 16px;
}
.cs-footer__reg {
	font-size: 13px;
}
.cs-footer__heading {
	font-family: var(--cs-font-heading);
	font-weight: 700;
	font-size: 16px;
	color: var(--cs-white);
	margin: 0 0 16px;
}
.cs-footer__list,
.cs-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cs-footer__list li {
	color: var(--cs-slate-on-navy);
	margin: 0 0 10px;
}
.cs-footer a {
	color: var(--cs-slate-on-navy);
	text-decoration: none;
	transition: color 0.15s ease;
}
.cs-footer a:hover,
.cs-footer a:focus-visible {
	color: var(--cs-amber);
}
.cs-footer a:focus-visible {
	outline-color: var(--cs-amber);
}
.cs-footer__contact {
	margin-bottom: 20px;
}
.cs-footer a.cs-btn--primary,
.cs-footer a.cs-btn--primary:hover,
.cs-footer a.cs-btn--primary:focus-visible {
	color: var(--cs-navy);
}
.cs-footer a.cs-btn--primary:hover,
.cs-footer a.cs-btn--primary:focus-visible {
	background: var(--cs-amber-hover);
}
.cs-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	border-top: 1px solid rgba(201, 212, 222, 0.2);
	padding: 20px 0;
	font-size: 13px;
}
.cs-footer__bottom p {
	color: var(--cs-slate-on-navy);
	margin: 0;
}
.cs-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

@media (max-width: 921px) {
	.cs-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 544px) {
	.cs-footer {
		padding-top: 48px;
	}
	.cs-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.cs-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- Layout / spacing ---------- */

body.single-program main,
body.tax-program_category main {
	padding-bottom: 0;
}

@media (max-width: 782px) {
	.cs-gradient-header {
		padding: 32px 0;
	}
	.cs-program__body {
		padding: 24px 0;
	}
}
