/* Theme-template pages: About, Contact, Become a Trainer, blog listing + post (templates/*.php).
   Colours from site.css (--csx-*). Everything is scoped to .csp so Elementor pages are unaffected. */

/* Astra wraps templates in .ast-container (boxed, flex): let our sections run full width. */
.csp-on #content > .ast-container {
	display: block;
	max-width: none;
	width: 100%;
	padding: 0;
}

.csp {
	color: var(--csx-text);
	font-family: 'Nunito Sans', sans-serif;
	font-size: 16.5px;
	line-height: 1.65;
}

.csp *,
.csp *::before,
.csp *::after {
	box-sizing: border-box;
}

.csp-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.csp h1,
.csp h2,
.csp h3 {
	color: var(--csx-navy);
	font-family: 'Nunito Sans', sans-serif;
	text-align: left;
}

.csp p {
	margin: 0 0 14px;
}

.csp a {
	color: var(--csx-link);
}

/* ============ Banner ============ */

.csp-banner {
	position: relative;
	overflow: hidden;
	padding: 56px 0 60px;
	background:
		url("img/cloudsewa-mark-white-faint.png") no-repeat right 4% bottom -64px / 340px auto,
		radial-gradient(circle at 88% 0%, rgba(0, 200, 255, .22) 0, rgba(0, 200, 255, 0) 38%),
		radial-gradient(circle at 70% 120%, rgba(0, 113, 229, .30) 0, rgba(0, 113, 229, 0) 45%),
		var(--csx-navy);
	color: #cbd5e1;
	border-bottom: 4px solid transparent;
	border-image: var(--csx-brand-line) 1;
}

.csp-banner::after {
	content: "";
	position: absolute;
	top: 26px;
	right: 4%;
	width: 220px;
	height: 150px;
	background-image: radial-gradient(rgba(255, 255, 255, .22) 1.4px, transparent 1.6px);
	background-size: 16px 16px;
	pointer-events: none;
}

.csp-banner .csp-wrap {
	position: relative;
	z-index: 1;
}

.csp .csp-banner__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	color: var(--csx-cyan);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.csp .csp-banner__kicker a {
	color: var(--csx-cyan);
	text-decoration: none;
}

.csp .csp-banner__kicker a:hover {
	color: #fff;
	text-decoration: underline;
}

.csp .csp-banner__title {
	max-width: 860px;
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(30px, 3.8vw, 48px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.015em;
}

.csp .csp-banner__lead {
	max-width: 720px;
	margin: 0;
	color: #cbd5e1;
	font-size: 17.5px;
}

/* ============ Sections + headings ============ */

.csp-section {
	padding: 72px 0;
}

.csp-section--tight {
	padding: 44px 0;
}

.csp-section--tint {
	background: linear-gradient(180deg, #f5fbfe 0%, #eef7fc 100%);
}

.csp-head {
	max-width: 720px;
	margin-bottom: 32px;
}

.csp .csp-kicker {
	margin: 0 0 8px;
	color: var(--csx-blue);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.csp .csp-h2 {
	margin: 0 0 14px;
	font-size: clamp(26px, 2.8vw, 36px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.csp .csp-h3 {
	margin: 30px 0 12px;
	font-size: 19px;
	font-weight: 800;
}

/* ============ Buttons ============ */

.csp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 11px 22px;
	border: 2px solid transparent;
	border-radius: 999px;
	font: 700 15.5px/1.2 'Nunito Sans', sans-serif;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s, border-color .18s, color .18s;
}

.csp-btn--primary {
	background: var(--csx-cyan);
	border-color: var(--csx-cyan);
	color: var(--csx-navy) !important;
}

.csp-btn--primary:hover,
.csp-btn--primary:focus-visible {
	background: var(--csx-blue);
	border-color: var(--csx-blue);
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -12px rgba(0, 113, 229, .75);
}

.csp-btn--line {
	background: #fff;
	border-color: var(--csx-border);
	color: var(--csx-navy) !important;
}

.csp-btn--line:hover,
.csp-btn--line:focus-visible {
	border-color: var(--csx-navy);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -14px rgba(15, 23, 42, .5);
}

.csp-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .45);
	color: #fff !important;
}

.csp-btn--ghost:hover,
.csp-btn--ghost:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, .08);
	transform: translateY(-2px);
}

.csp-btn:active {
	transform: translateY(0) scale(.97);
	box-shadow: none;
}

.csp-btn--block {
	width: 100%;
}

/* ============ About: split, stats ============ */

.csp-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 64px;
	align-items: center;
}

.csp-split__media {
	position: relative;
	padding: 0 18px 24px 0;
}

.csp-photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 22px 22px 90px 22px !important;
	box-shadow: 16px 16px 0 -2px #e8f5fb, 16px 16px 0 0 var(--csx-blue);
}

.csp .csp-floatcard {
	position: absolute;
	left: -18px;
	bottom: 0;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 12px 18px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
	color: var(--csx-navy);
	font-weight: 800;
	font-size: 15px;
}

.csp-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.csp-stats li {
	flex: 1 1 120px;
	padding: 14px 16px;
	border: 1px solid var(--csx-line);
	border-radius: 14px;
	background: var(--csx-tint-2);
}

.csp-stats strong {
	display: block;
	color: var(--csx-navy);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.csp-stats span {
	color: var(--csx-muted);
	font-size: 14px;
	font-weight: 600;
}

/* ============ Cards ============ */

.csp-cards {
	display: grid;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.csp-cards--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.csp-cards--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.csp-card {
	display: flex;
	flex-direction: column;
	padding: 26px 24px;
	border: 1px solid var(--csx-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, border-color .22s;
}

.csp-card:hover {
	transform: translateY(-4px);
	border-color: #b9d7ea;
	box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .3);
}

.csp-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: var(--csx-tint);
	color: var(--csx-blue);
	font-size: 22px;
	transition: transform .25s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s;
}

.csp-card:hover .csp-card__icon {
	transform: rotate(-6deg) scale(1.06);
	background: var(--csx-blue);
	color: #fff;
}

.csp .csp-card h2,
.csp .csp-card h3 {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
}

.csp .csp-card p {
	margin: 0;
	color: var(--csx-text);
	font-size: 15.5px;
}

.csp-card--value {
	position: relative;
	overflow: hidden;
}

.csp-card--value::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--csx-brand-line);
}

/* ============ Tracks (About) ============ */

.csp-tracks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.csp .csp-track {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 22px 20px 44px;
	border: 1px solid var(--csx-line);
	border-radius: 18px;
	background: #fff;
	color: var(--csx-text);
	text-decoration: none;
	transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, border-color .22s;
}

.csp .csp-track:hover,
.csp .csp-track:focus-visible {
	transform: translateY(-4px);
	border-color: var(--csx-cyan-dark);
	box-shadow: 0 20px 40px -20px rgba(0, 113, 229, .45);
}

.csp-track__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 6px;
	border-radius: 13px;
	background: var(--csx-brand-line);
	color: #fff;
	font-size: 19px;
}

.csp-track__name {
	color: var(--csx-navy);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}

.csp-track__count {
	color: var(--csx-blue);
	font-size: 13.5px;
	font-weight: 800;
}

.csp-track__list {
	color: var(--csx-muted);
	font-size: 14px;
	line-height: 1.5;
}

.csp-track__go {
	position: absolute;
	left: 20px;
	bottom: 18px;
	color: var(--csx-blue);
	transition: transform .2s;
}

.csp-track:hover .csp-track__go {
	transform: translateX(5px);
}

/* ============ CTA band ============ */

.csp-cta {
	padding: 56px 0;
	background:
		url("img/cloudsewa-mark-white-faint.png") no-repeat right 6% center / 260px auto,
		radial-gradient(circle at 10% 0%, rgba(0, 200, 255, .18) 0, rgba(0, 200, 255, 0) 40%),
		var(--csx-navy);
	color: #cbd5e1;
}

.csp-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 22px 40px;
}

.csp .csp-cta__title {
	margin: 0 0 6px;
	color: #fff;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 800;
	line-height: 1.2;
}

.csp-cta p {
	max-width: 620px;
	margin: 0;
	color: #cbd5e1;
}

.csp-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ============ Contact ============ */

/* .csp-card: the page's <body> is .csp-contact too, so a bare .csp-contact also styled the footer's paragraphs */
.csp-card.csp-contact {
	align-items: flex-start;
}

.csp-card.csp-contact p {
	flex: 1 1 auto;
	margin-bottom: 18px !important;
}

.csp .csp-contact__value {
	color: var(--csx-navy);
	font-size: 17px;
	font-weight: 800;
	text-decoration: none;
	word-break: break-word;
}

.csp .csp-contact__value:hover {
	color: var(--csx-link);
	text-decoration: underline;
}

.csp-contact--wa {
	border-color: rgba(37, 211, 102, .45);
	background: linear-gradient(180deg, #f2fdf6 0%, #fff 60%);
}

.csp-contact--wa .csp-card__icon {
	background: #25d366;
	color: #fff;
	font-size: 26px;
}

/* Change list #5: WhatsApp card with a call link; office cards with a flag, email and address */
.csp-contact__num {
	display: block;
	margin-top: 8px;
	color: var(--csx-navy);
	font-size: 17px;
	font-weight: 800;
	white-space: nowrap;
}

.csp-contact__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
}

.csp .csp-contact__call {
	color: var(--csx-navy);
	font-weight: 700;
	text-decoration: none;
}

.csp .csp-contact__call i {
	margin-right: 4px;
	color: #128c4b;
}

.csp .csp-contact__call:hover,
.csp .csp-contact__call:focus-visible {
	color: var(--csx-link);
	text-decoration: underline;
}

.csp-contact--office .csp-card__icon {
	background: #fff;
	border: 1px solid var(--csx-line);
}

.csp-contact--office .csp-card__icon .cs-flag {
	height: 24px !important; /* base .cs-flag is 15px !important */
}

.csp .csp-contact--office p {
	flex: 0 0 auto;
	margin-bottom: 10px !important;
}

.csp .csp-contact__address {
	flex: 1 1 auto;
	margin: 0 0 18px;
	color: var(--csx-text);
	font-style: normal;
	line-height: 1.55;
}

.csp-contact__address i {
	margin-right: 6px;
	color: var(--csx-link);
}

.csp-contactgrid,
.csp-applygrid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 56px;
	align-items: start;
}

.csp-checklist {
	margin: 18px 0 22px;
	padding: 0;
	list-style: none;
}

.csp-checklist li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 32px;
	color: var(--csx-text);
}

.csp-checklist li::before {
	content: "\f00c";
	position: absolute;
	left: 0;
	top: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--csx-tint);
	color: var(--csx-blue);
	font: 900 11px/1 'Font Awesome 6 Free', 'Font Awesome 5 Free';
}

.csp-clock {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px 18px;
	border: 1px solid var(--csx-line);
	border-radius: 14px;
	background: #fff;
	font-size: 15px;
}

.csp-clock > i {
	margin-top: 4px;
	color: var(--csx-blue);
	font-size: 18px;
}

.csp-clock strong {
	color: var(--csx-navy);
}

.csp-clock strong[hidden] {
	display: none;
}

/* "Learn from anywhere" globe (replaces the map) */
.csp-globe {
	position: relative;
	width: 150px;
	height: 150px;
	margin: 0 0 22px;
}

.csp-globe__ring {
	position: absolute;
	inset: 0;
	border: 2px dashed rgba(0, 113, 229, .35);
	border-radius: 50%;
	animation: csp-spin 28s linear infinite;
}

.csp-globe__ring--2 {
	inset: 18px;
	border-style: solid;
	border-color: rgba(0, 200, 255, .35);
	animation-duration: 18s;
	animation-direction: reverse;
}

.csp-globe__core {
	position: absolute;
	inset: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--csx-brand-line);
	box-shadow: 0 16px 30px -12px rgba(0, 113, 229, .6);
	color: #fff;
	font-size: 40px;
}

.csp-globe__dot {
	position: absolute;
	width: 12px;
	height: 12px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--csx-cyan);
	box-shadow: 0 0 0 0 rgba(0, 200, 255, .6);
	animation: csp-ping 2.4s ease-out infinite;
}

.csp-globe__dot--1 {
	top: 6px;
	left: 50%;
}

.csp-globe__dot--2 {
	right: 2px;
	top: 62%;
	animation-delay: .8s;
}

.csp-globe__dot--3 {
	left: 8px;
	bottom: 22%;
	animation-delay: 1.6s;
}

@keyframes csp-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes csp-ping {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 200, 255, .6);
	}
	80%,
	100% {
		box-shadow: 0 0 0 14px rgba(0, 200, 255, 0);
	}
}

/* ============ Form card (Contact Form 7 inside) ============ */

.csp-formcard {
	padding: 30px 30px 26px;
	border: 1px solid var(--csx-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 50px -28px rgba(15, 23, 42, .35);
}

.csp .csp-formcard__title {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 800;
}

.csp .csp-formcard__lead {
	color: var(--csx-muted);
	font-size: 15px;
}

.csp-formcard .wpcf7 form .in-grid {
	display: block;
}

.csp-formcard .wpcf7 input[type="file"] {
	width: 100%;
	padding: 12px;
	border: 1.5px dashed var(--csx-border);
	border-radius: 12px;
	background: var(--csx-tint-2);
	font-size: 14px;
}

/* The career form asks for gender; not needed to assess a trainer application. */
.csp-trainer .csp-formcard .in-grid:has(input[name="gender"]) {
	display: none !important;
}

.csp-formcard .wpcf7-list-item {
	margin: 0 16px 0 0;
}

/* ============ Trainer: tags, steps ============ */

.csp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.csp-tags li {
	padding: 7px 14px;
	border: 1px solid #c7dbe8;
	border-radius: 999px;
	background: #fff;
	color: var(--csx-navy);
	font-size: 14px;
	font-weight: 700;
	transition: transform .18s, border-color .18s;
}

.csp-tags li:hover {
	transform: translateY(-2px);
	border-color: var(--csx-cyan-dark);
}

.csp-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.csp-steps li {
	position: relative;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding-bottom: 18px;
}

.csp-steps li:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 17px;
	top: 38px;
	bottom: 4px;
	border-left: 2px dashed #b9d7ea;
}

.csp-steps__num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--csx-navy);
	color: var(--csx-cyan);
	font-weight: 800;
}

.csp-steps strong {
	display: block;
	color: var(--csx-navy);
}

/* ============ Blog: filter, cards, pagination ============ */

.csp-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
}

.csp .csp-filter__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--csx-border);
	border-radius: 999px;
	background: #fff;
	color: var(--csx-navy);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform .18s, border-color .18s, box-shadow .18s;
}

.csp-filter__item span {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--csx-tint);
	color: var(--csx-blue);
	font-size: 12.5px;
	font-weight: 800;
}

.csp .csp-filter__item:hover,
.csp .csp-filter__item:focus-visible {
	transform: translateY(-2px);
	border-color: var(--csx-cyan-dark);
	box-shadow: 0 10px 22px -14px rgba(0, 113, 229, .5);
}

.csp .csp-filter__item.is-active {
	border-color: var(--csx-navy);
	background: var(--csx-navy);
	color: #fff;
}

.csp-filter__item.is-active span {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

.csp-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.csp-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--csx-border);
	border-radius: 18px;
	background: #fff;
	transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, border-color .22s;
}

.csp-post:hover {
	transform: translateY(-4px);
	border-color: #b9d7ea;
	box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .3);
}

.csp-post__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--csx-tint);
}

.csp-post__media img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.csp-post:hover .csp-post__media img {
	transform: scale(1.05);
}

.csp-post__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 20px 22px 22px;
}

.csp .csp-chip {
	display: inline-flex;
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--csx-tint);
	color: var(--csx-blue);
	font-size: 12.5px;
	font-weight: 800;
	text-decoration: none;
}

.csp .csp-post__title {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.35;
}

.csp .csp-post__title a {
	color: var(--csx-navy);
	text-decoration: none;
}

.csp .csp-post__title a:hover {
	color: var(--csx-link);
}

.csp .csp-post__excerpt {
	margin: 0;
	color: var(--csx-text);
	font-size: 15px;
}

.csp-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 !important;
	color: var(--csx-muted);
	font-size: 13.5px;
	font-weight: 600;
}

.csp-post__meta i {
	color: var(--csx-blue);
	margin-right: 3px;
}

.csp-post__more {
	margin-top: auto;
	min-height: 42px;
	padding: 9px 20px;
	font-size: 14.5px;
}

.csp-post__more i {
	transition: transform .2s;
}

.csp-post__more:hover i {
	transform: translateX(4px);
}

.csp-pages {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 36px;
}

.csp-pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--csx-border);
	border-radius: 999px;
	background: #fff;
	color: var(--csx-navy);
	font-weight: 700;
	text-decoration: none;
}

.csp-pages .page-numbers.current {
	border-color: var(--csx-navy);
	background: var(--csx-navy);
	color: #fff;
}

.csp-empty {
	padding: 50px 20px;
	border: 1px dashed var(--csx-border);
	border-radius: 18px;
	text-align: center;
}

.csp .csp-empty h2 {
	text-align: center;
	font-size: 22px;
}

/* ============ Blog post ============ */

.csp-banner--post .csp-banner__title {
	max-width: 960px;
}

.csp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	color: #cbd5e1;
	font-size: 14.5px;
}

.csp-meta li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.csp-meta i {
	color: var(--csx-cyan);
}

.csp-meta strong {
	color: #fff;
}

/* Author → home page (all posts are by "CloudSewa Academy") */
.csp-meta__authorlink {
	text-decoration: underline;
	text-decoration-color: rgba(0, 200, 255, .5);
	text-underline-offset: 3px;
}

.csp-meta__authorlink:hover strong,
.csp-meta__authorlink:focus-visible strong {
	color: var(--csx-cyan);
}

.csp .csp-authorbox__name a {
	color: inherit;
	text-decoration: none;
}

.csp .csp-authorbox__name a:hover,
.csp .csp-authorbox__name a:focus-visible {
	color: var(--csx-link);
	text-decoration: underline;
}

.csp-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--csx-brand-line);
	color: #fff;
	font-weight: 800;
	font-size: 15px;
}

.csp-avatar--lg {
	width: 52px;
	height: 52px;
	font-size: 21px;
}

.csp-article {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
	align-items: start;
	padding-top: 44px;
	padding-bottom: 64px;
}

.csp-article__image {
	margin: 0 0 30px;
}

.csp-article__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px !important;
}

.csp-article__side {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

body.admin-bar .csp-article__side {
	top: 122px;
}

.csp-toc {
	padding: 20px 20px 16px;
	border: 1px solid var(--csx-line);
	border-radius: 16px;
	background: #fff;
}

.csp .csp-toc__title,
.csp-toc summary {
	margin: 0 0 10px;
	color: var(--csx-navy);
	font-size: 15px;
	font-weight: 800;
}

.csp-toc__title i,
.csp-toc summary i {
	color: var(--csx-blue);
	margin-right: 6px;
}

.csp-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--csx-line);
}

.csp-toc__item a {
	display: block;
	margin-left: -2px;
	padding: 6px 0 6px 14px;
	border-left: 2px solid transparent;
	color: var(--csx-muted) !important;
	font-size: 14.5px;
	line-height: 1.4;
	text-decoration: none !important;
	transition: color .15s, border-color .15s, background-color .15s;
}

.csp-toc__item a:hover,
.csp-toc__item a.is-active {
	border-left-color: var(--csx-blue);
	color: var(--csx-navy) !important;
	background: var(--csx-tint-2);
}

.csp-toc__item a.is-active {
	font-weight: 700;
}

.csp-toc--inline {
	display: none;
	margin-bottom: 26px;
}

.csp-toc--inline summary {
	margin: 0;
	cursor: pointer;
	list-style: none;
}

.csp-toc--inline summary::-webkit-details-marker {
	display: none;
}

.csp-toc--inline summary::after {
	content: "\f078";
	float: right;
	color: var(--csx-muted);
	font: 900 13px/1.6 'Font Awesome 6 Free', 'Font Awesome 5 Free';
	transition: transform .2s;
}

.csp-toc--inline[open] summary::after {
	transform: rotate(180deg);
}

.csp-toc--inline[open] summary {
	margin-bottom: 10px;
}

.csp-sidecta {
	padding: 22px 20px;
	border-radius: 16px;
	background:
		radial-gradient(circle at 100% 0%, rgba(0, 200, 255, .25) 0, rgba(0, 200, 255, 0) 50%),
		var(--csx-navy);
	color: #cbd5e1;
	font-size: 15px;
}

.csp .csp-sidecta__title {
	margin: 0 0 6px;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
}

.csp-prose {
	color: var(--csx-text);
	font-size: 17.5px;
	line-height: 1.75;
}

.csp .csp-prose h2 {
	margin: 40px 0 14px;
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 800;
	line-height: 1.25;
	scroll-margin-top: 100px;
}

.csp .csp-prose h3,
.csp .csp-prose h4,
.csp .csp-prose h5,
.csp .csp-prose h6 {
	margin: 30px 0 10px;
	color: var(--csx-navy);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.3;
	scroll-margin-top: 100px;
}

.csp .csp-prose p {
	margin: 0 0 18px;
}

.csp-prose ul,
.csp-prose ol {
	margin: 0 0 20px;
	padding-left: 24px;
}

.csp-prose li {
	margin-bottom: 8px;
}

.csp-prose li::marker {
	color: var(--csx-blue);
}

.csp-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.csp-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.csp-prose blockquote {
	margin: 24px 0;
	padding: 16px 22px;
	border-left: 4px solid var(--csx-cyan);
	background: var(--csx-tint-2);
	border-radius: 0 12px 12px 0;
}

.csp-article__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--csx-line);
}

.csp-authorbox {
	display: flex;
	align-items: center;
	gap: 14px;
}

.csp .csp-authorbox__name {
	margin: 0;
	color: var(--csx-navy);
	font-weight: 800;
}

.csp .csp-authorbox__role {
	margin: 0;
	color: var(--csx-muted);
	font-size: 14px;
}

.csp .csp-related__title {
	margin-bottom: 24px;
}

/* ============ Responsive ============ */

@media (max-width: 1100px) {
	.csp-cards--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.csp-article {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.csp-article__side {
		position: static;
		margin-top: 30px;
	}

	.csp-toc--side {
		display: none;
	}

	.csp-toc--inline {
		display: block;
	}
}

@media (max-width: 1024px) {
	.csp-split,
	.csp-contactgrid,
	.csp-applygrid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.csp-split__media {
		max-width: 620px;
	}

	.csp-posts,
	.csp-cards--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.csp-wrap {
		padding: 0 16px;
	}

	.csp-banner {
		padding: 38px 0 42px;
	}

	.csp-banner::after {
		display: none;
	}

	.csp .csp-banner__lead {
		font-size: 16px;
	}

	.csp-section {
		padding: 52px 0;
	}

	.csp-section--tight {
		padding: 32px 0;
	}

	.csp-posts,
	.csp-cards--3,
	.csp-cards--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.csp-formcard {
		padding: 22px 18px;
	}

	.csp .csp-floatcard {
		left: 8px;
		right: 8px;
		bottom: -6px;
		font-size: 14px;
	}

	.csp-photo {
		border-radius: 18px 18px 60px 18px !important;
		box-shadow: 10px 10px 0 -2px #e8f5fb, 10px 10px 0 0 var(--csx-blue);
	}

	.csp-split__media {
		padding: 0 10px 18px 0;
	}

	.csp-cta__actions,
	.csp-cta__actions .csp-btn {
		width: 100%;
	}

	.csp-filter {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-right: -16px;
		padding-right: 16px;
		padding-bottom: 6px;
		scrollbar-width: none;
	}

	.csp .csp-filter__item {
		flex: 0 0 auto;
	}

	.csp-meta {
		gap: 8px 16px;
		font-size: 13.5px;
	}

	.csp-prose {
		font-size: 16.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.csp-globe__ring,
	.csp-globe__dot {
		animation: none;
	}
}

/* ============ "Training for" pages (templates/offering.php, change list #3) ============ */

.csp .csp-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.csp-btn--onnavy {
	background: transparent;
	border-color: rgba(255, 255, 255, .45);
	color: #fff !important;
}

.csp-btn--onnavy:hover,
.csp-btn--onnavy:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, .08);
	transform: translateY(-2px);
}

.csp .csp-offer-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	color: #cbd5e1;
	font-size: 15px;
}

.csp-offer-stats strong {
	margin-right: 4px;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
}

.csp-offer-contact {
	margin-top: 30px;
	padding: 20px 22px;
	border: 1px solid var(--csx-line);
	border-radius: 16px;
	background: var(--csx-tint-2);
}

.csp .csp-offer-contact__title {
	margin: 0 0 10px;
	color: var(--csx-navy);
	font-weight: 800;
}

.csp-offer-contact .cs-phones {
	display: grid;
	gap: 8px;
	margin-bottom: 10px;
}

.csp-offer-contact a {
	color: var(--csx-navy);
	font-weight: 700;
	text-decoration: none;
}

.csp-offer-contact a:hover,
.csp-offer-contact a:focus-visible {
	color: var(--csx-link);
	text-decoration: underline;
}

.csp-offer-contact .cs-phones__label {
	min-width: 118px;
	color: var(--csx-muted);
	font-weight: 600;
}

.csp-offer-contact p:last-child {
	margin: 0;
}

.csp-offer-contact .fa-envelope,
.csp-offer-contact .fa-whatsapp {
	margin-right: 6px;
	color: var(--csx-link);
}

.csp-offer-contact .fa-whatsapp {
	color: #128c4b;
	font-size: 1.1em;
}

.csp .csp-offer-contact p:not(:last-child) {
	margin: 0 0 8px;
}

/* Enquiry forms: two fields per row on wide cards, checkbox chips */
.csp-formcard .csx-grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.csp-formcard .csx-checks .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.csp-formcard .csx-checks .wpcf7-list-item {
	margin: 0;
}

.csp-formcard .csx-checks .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 38px;
	padding: 6px 13px;
	border: 1px solid var(--csx-border);
	border-radius: 999px;
	background: #fff;
	color: var(--csx-navy);
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
}

.csp-formcard .csx-checks .wpcf7-list-item label:has(input:checked) {
	border-color: var(--csx-blue);
	background: var(--csx-tint);
}

.csp-formcard .csx-checks input[type="checkbox"] {
	accent-color: var(--csx-blue);
}

.csp-formcard .csx-optional {
	color: var(--csx-muted);
	font-weight: 600;
}

/* FAQ */
.csp-faq__list {
	display: grid;
	gap: 12px;
	max-width: 860px;
}

.csp-faq__item {
	border: 1px solid var(--csx-border);
	border-radius: 12px;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}

.csp-faq__item[open],
.csp-faq__item:hover {
	border-color: var(--csx-cyan-dark);
}

.csp-faq__item[open] {
	box-shadow: 0 10px 24px -16px rgba(0, 113, 229, .45);
}

.csp-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
	list-style: none;
}

.csp-faq__item summary::-webkit-details-marker {
	display: none;
}

.csp .csp-faq__item h3 {
	margin: 0;
	color: var(--csx-navy);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}

.csp-faq__item summary i {
	flex: 0 0 auto;
	color: var(--csx-link);
	transition: transform .2s;
}

.csp-faq__item[open] summary i {
	transform: rotate(45deg);
}

.csp .csp-faq__item p {
	margin: 0;
	padding: 0 22px 20px;
	color: var(--csx-text);
	font-size: 16px;
	line-height: 1.65;
}

/* Other audiences */
.csp .csp-others__title {
	margin-bottom: 14px;
}

.csp-others {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.csp .csp-other {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--csx-line);
	border-radius: 16px;
	background: #fff;
	color: var(--csx-text);
	text-decoration: none;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}

.csp .csp-other:hover,
.csp .csp-other:focus-visible {
	transform: translateY(-3px);
	border-color: var(--csx-cyan-dark);
	box-shadow: 0 16px 32px -20px rgba(0, 113, 229, .45);
}

.csp-other strong {
	display: block;
	color: var(--csx-navy);
	font-weight: 800;
}

.csp-other small {
	display: block;
	color: var(--csx-muted);
	font-size: 14px;
}

.csp-other > .fa-arrow-right {
	margin-left: auto;
	color: var(--csx-link);
}

.csp-other .csp-card__icon {
	flex: 0 0 auto;
	margin: 0;
}

@media (max-width: 767px) {
	.csp-formcard .csx-grid2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.csp .csp-banner__actions .csp-btn {
		flex: 1 1 100%;
	}

	.csp-faq__item summary {
		padding: 16px 18px;
	}

	.csp .csp-faq__item p {
		padding: 0 18px 18px;
	}
}

.csp-formcard fieldset.csx-field {
	min-width: 0;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

.csp-formcard fieldset.csx-field legend {
	float: left;
	width: 100%;
	padding: 0;
}

.csp-formcard fieldset.csx-field legend + * {
	clear: both;
}


/* Logo mark before section labels (light backgrounds) and banner labels (navy) */
.csp .csp-kicker::before,
.csp .csp-banner__kicker::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 16px;
	margin-right: 9px;
	background: url("img/cloudsewa-mark-48.png") no-repeat center / contain;
	vertical-align: -3px;
}

.csp .csp-banner__kicker::before {
	margin-right: 1px;
	background-image: url("img/cloudsewa-mark-white-48.png");
}

@media (max-width: 767px) {
	.csp-banner {
		background-size: 220px auto, auto, auto, auto;
		background-position: right -30px bottom -40px, 0 0, 0 0, 0 0;
	}

	.csp-cta {
		background-size: 200px auto, auto, auto;
		background-position: right -40px bottom -30px, 0 0, 0 0;
	}
}

/* ============ Offices on About (Kathmandu 2026-10-15, London 2026-10-25) ============ */

.csp-office {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 26px 28px;
	border: 1px solid var(--csx-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.csp-office__icon {
	display: inline-grid;
	flex: 0 0 56px;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--csx-tint);
	color: var(--csx-icon);
	font-size: 24px;
}

.csp-office__text {
	flex: 1 1 auto;
	min-width: 0;
}

.csp .csp-office .csp-h2 {
	margin-bottom: 6px !important;
	font-size: clamp(20px, 2vw, 24px) !important;
}

.csp-office__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
}

.csp-office address .cs-flag {
	margin-right: 6px;
	vertical-align: -1px;
}

.csp-office address {
	margin: 0;
	color: var(--csx-text);
	font-size: 16.5px;
	font-style: normal;
	font-weight: 700;
}

@media (max-width: 680px) {
	.csp-office {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 22px 20px;
	}
}

/* ============ Certificates: verify page + certificate page (change list #5, 2026-10-25; templates/certificate.php) ============ */

.csc-forms {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 28px;
	align-items: start;
}

.csp .csc-label {
	display: block;
	margin: 14px 0 6px;
	color: var(--csx-navy);
	font-size: 14.5px;
	font-weight: 700;
}

.csp .csc-input {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1.5px solid var(--csx-border);
	border-radius: 12px;
	background: #fff;
	color: var(--csx-navy);
	font: 600 16px/1.2 'Nunito Sans', sans-serif;
	box-shadow: none;
}

.csp .csc-input:focus {
	border-color: var(--csx-blue);
	outline: 3px solid rgba(0, 113, 229, .18);
	outline-offset: 0;
}

.csp .csc-input--id {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.csp .csc-input--id::placeholder {
	text-transform: none;
}

.csc-grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 14px;
}

/* Space above the submit button. `body .csp .csc-form`: the Astra button reset below (margin: 0) must not win. */
body .csp .csc-form .csp-btn {
	margin-top: 20px;
}

.csc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.csp .csc-privacy {
	margin: 14px 0 0;
	color: var(--csx-muted);
	font-size: 13.5px;
	line-height: 1.5;
}

.csc-privacy i {
	margin-right: 4px;
	color: var(--csx-blue);
}

.csp .csc-msg {
	margin: 12px 0 0;
	padding: 12px 14px;
	border: 1px solid #f5c2bd;
	border-radius: 12px;
	background: #fef3f2;
	color: #912018;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.5;
}

.csc-msg i {
	margin-right: 4px;
}

.csc-results {
	margin-top: 36px;
	scroll-margin-top: 120px;
}

.csc-results__list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.csc-result {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	padding: 18px 20px;
	border: 1px solid var(--csx-line);
	border-left: 4px solid var(--csx-cyan);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.csc-result.is-revoked {
	border-left-color: #d92d20;
}

.csc-result__thumb {
	flex: 0 0 132px;
	width: 132px;
	text-decoration: none;
}

/* The real certificate, small: its text scales with its own width (container units). */
.csc-result__thumb .csc-cert__paper {
	box-shadow: 0 0 0 1px var(--csx-line), 0 8px 18px -12px rgba(15, 23, 42, .45);
	border-radius: 4px;
}

.csc-result__thumb:hover .csc-cert__paper,
.csc-result__thumb:focus-visible .csc-cert__paper {
	box-shadow: 0 0 0 2px var(--csx-cyan), 0 8px 18px -12px rgba(15, 23, 42, .45);
}

.csc-result__text {
	flex: 1 1 260px;
	min-width: 0;
}

.csc-result__text strong {
	display: block;
	color: var(--csx-navy);
	font-size: 17px;
}

.csc-result__text span {
	color: var(--csx-muted);
	font-size: 14px;
}

.csc-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px 28px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.csc-points li {
	margin: 0;
	padding-top: 14px;
	border-top: 2px solid var(--csx-line);
	color: var(--csx-text);
	font-size: 14.5px;
	line-height: 1.55;
}

.csc-points li:first-child {
	border-image: var(--csx-brand-line) 1;
}

.csc-points strong {
	display: block;
	margin-bottom: 2px;
	color: var(--csx-navy);
}

.csc-points a {
	color: var(--csx-link);
	font-weight: 700;
	word-break: break-word;
}

/* Verify card: where the ID is, on a sample of the real certificate */
.csc-where {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--csx-line);
}

.csp .csc-where__label {
	margin: 0 0 10px;
	color: var(--csx-muted);
	font-size: 13.5px;
	font-weight: 600;
}

.csc-where .csc-cert__paper {
	box-shadow: 0 0 0 1px var(--csx-line);
}

.csc-where .csc-cert__id {
	position: relative;
	padding: .4cqw 1.2cqw;
	border-radius: 4px;
	background: #fff8d6;
	box-shadow: 0 0 0 .5cqw #ffd84d;
	color: var(--csx-navy);
}

/* ---- Certificate page ---- */
.csp .csc-status {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 1px solid #abefc6;
	border-radius: 14px;
	background: #ecfdf3;
	color: #05603a;
	font-size: 15.5px;
	line-height: 1.5;
}

.csc-status i {
	margin-top: 2px;
	font-size: 20px;
}

.csp .csc-status.is-revoked {
	border-color: #f5c2bd;
	background: #fef3f2;
	color: #912018;
}

.csc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 32px;
	align-items: start;
}

.csc-side {
	display: grid;
	gap: 20px;
}

.csc-facts {
	margin: 0;
	padding: 6px 20px;
	border: 1px solid var(--csx-line);
	border-radius: 16px;
	background: #fff;
}

.csc-facts div {
	display: grid;
	gap: 2px;
	padding: 12px 0;
	border-bottom: 1px solid var(--csx-line);
}

.csc-facts div:last-child {
	border-bottom: 0;
}

.csc-facts dt {
	color: var(--csx-muted);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.csc-facts dd {
	margin: 0;
	color: var(--csx-navy);
	font-size: 16px;
	font-weight: 700;
	word-break: break-word;
}

.csc-facts code {
	padding: 0;
	background: none;
	color: var(--csx-navy);
	font-size: 15px;
}

.csc-share {
	padding: 20px;
	border: 1px solid #cfe9f7;
	border-radius: 16px;
	background: var(--csx-tint-2, #f3fafe);
}

.csp .csc-share__title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 800;
}

.csp .csc-linkedin {
	border-color: #0a66c2;
	background: #0a66c2;
	color: #fff !important;
}

.csp .csc-linkedin:hover,
.csp .csc-linkedin:focus-visible {
	border-color: #004182;
	background: #004182;
}

.csc-share__list {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin: 14px 0;
	padding: 0;
	list-style: none;
}

.csc-share__list li {
	margin: 0;
}

.csc-share__list a {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--csx-border);
	border-radius: 50%;
	background: #fff;
	color: var(--csx-navy);
	font-size: 18px;
	text-decoration: none;
	transition: transform .18s, border-color .18s, color .18s;
}

.csc-share__list a:hover,
.csc-share__list a:focus-visible {
	border-color: var(--csx-blue);
	color: var(--csx-blue);
	transform: translateY(-2px);
}

.csc-share__tools {
	display: grid;
	gap: 10px;
}

.csc-share__tools .csp-btn {
	width: 100%;
	min-height: 44px;
	font-size: 15px;
}

/* Astra styles every <button> (cyan fill, white text, its own padding): keep the outline look. */
body .csp button.csp-btn--line {
	margin: 0;
	padding: 11px 22px;
	border: 2px solid var(--csx-border);
	background: #fff;
	color: var(--csx-navy) !important;
	font: 700 15px/1.2 'Nunito Sans', sans-serif;
	letter-spacing: 0;
	text-transform: none;
}

body .csp button.csp-btn--line:hover,
body .csp button.csp-btn--line:focus-visible {
	border-color: var(--csx-navy);
	background: #fff;
}

body .csp button.csp-btn--primary {
	margin: 0;
	padding: 11px 22px;
	border: 2px solid var(--csx-cyan);
	background: var(--csx-cyan);
	font: 700 15.5px/1.2 'Nunito Sans', sans-serif;
	letter-spacing: 0;
	text-transform: none;
}

body .csp button.csp-btn--primary:hover,
body .csp button.csp-btn--primary:focus-visible {
	border-color: var(--csx-blue);
	background: var(--csx-blue);
}

.csp .csc-again {
	margin: 0;
}

.csc-again a {
	color: var(--csx-link);
	font-weight: 700;
	text-decoration: none;
}

.csc-again a:hover {
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.csc-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.csc-side {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.csc-again {
		grid-column: 1 / -1;
	}
}

@media (max-width: 860px) {
	.csc-forms,
	.csc-points {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 680px) {
	.csc-side {
		grid-template-columns: minmax(0, 1fr);
	}

	.csc-grid2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.csc-result .csp-btn {
		width: 100%;
	}
}

/* Print / Save as PDF: exactly one landscape page with only the certificate.
   #csc-print is a copy of the certificate straight inside <body> (inc/certificates.php → wp_footer); everything else
   leaves the layout (display: none), so no blank pages follow. */
.csc-print {
	display: none;
}

@media print {
	@page {
		size: A4 landscape;
		margin: 0;
	}

	html,
	body.csp-certificate {
		width: auto !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
		background: #fff !important;
	}

	body.csp-certificate > *:not(#csc-print) {
		display: none !important;
	}

	body.csp-certificate > #csc-print {
		display: block !important;
		width: 100%;
		margin: 0;
		overflow: hidden;
		break-inside: avoid;
		page-break-inside: avoid;
	}

	/* 296 mm, not 297: a full A4 width would make the height 210.04 mm and spill a sliver onto page 2. */
	#csc-print .csc-cert {
		width: 100%;
		max-width: 296mm;
		margin: 0 auto;
	}

	#csc-print .csc-cert__paper {
		border-radius: 0;
		box-shadow: none;
	}

	#csc-print,
	#csc-print * {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}
