/*
 * BSG Theme — site styles that theme.json can't express.
 * Colours come from the theme.json palette (Concept B "Energetic"): use the
 * --wp--preset--color--* variables, never raw hex, so the palette stays in one place.
 */

:root {
	--bsg-primary: var(--wp--preset--color--primary);
	--bsg-primary-deep: var(--wp--preset--color--primary-deep);
	--bsg-ink: var(--wp--preset--color--ink);
	--bsg-ink-soft: var(--wp--preset--color--ink-soft);
	--bsg-ice: var(--wp--preset--color--ice);
	--bsg-cta: var(--wp--preset--color--cta);
	--bsg-sun: var(--wp--preset--color--sun);
	--bsg-muted: var(--wp--preset--color--muted);
	--bsg-line: var(--wp--preset--color--line);
	--bsg-header-h: 74px;
	--bsg-mnav-h: 0px;
}

html {
	scroll-padding-top: calc(var(--bsg-header-h) + 12px);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--bsg-sun);
	outline-offset: 2px;
}

.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Header ---------- */

.bsg-site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--wp--preset--color--white);
	border-bottom: 1px solid var(--bsg-line);
}

.admin-bar .bsg-site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .bsg-site-header {
		top: 0;
	}
}

.bsg-header__bar {
	min-height: var(--bsg-header-h);
	gap: 20px;
}

.bsg-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--bsg-ink);
	text-decoration: none;
	flex: none;
}

.bsg-brand:hover {
	color: var(--bsg-ink);
}

.bsg-brand__mark {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: block;
}

.bsg-brand__name {
	font-weight: 900;
	font-size: 20px;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.bsg-brand__name span {
	color: var(--bsg-primary);
}

.bsg-header__nav .wp-block-navigation__container {
	gap: 4px;
}

.bsg-header__nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 10px;
	color: var(--bsg-ink);
	text-decoration: none;
}

.bsg-header__nav .wp-block-navigation-item__content:hover {
	color: var(--bsg-primary);
}

.bsg-header__nav .current-menu-item > .wp-block-navigation-item__content,
.bsg-header__nav [aria-current="page"] {
	color: var(--bsg-primary);
	background: var(--bsg-ice);
}

.bsg-header__actions {
	gap: 10px;
}

.bsg-phones {
	display: flex;
	gap: 8px;
}

.bsg-phone {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--bsg-line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: var(--bsg-ink);
	text-decoration: none;
	white-space: nowrap;
}

.bsg-phone:hover {
	border-color: var(--bsg-primary);
	color: var(--bsg-primary);
}

.bsg-header__cta .wp-block-button__link {
	white-space: nowrap;
	font-size: 14px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

@media (max-width: 1180px) {
	.bsg-phones {
		display: none;
	}
}

@media (max-width: 1000px) {
	.bsg-header__nav {
		display: none !important;
	}
}

@media (max-width: 480px) {
	.bsg-header__bar {
		gap: 10px;
	}

	.bsg-brand {
		gap: 8px;
	}

	.bsg-brand__mark {
		width: 36px;
		height: 36px;
	}

	.bsg-brand__name {
		font-size: 15px;
	}

	.bsg-header__cta .wp-block-button__link {
		padding: 9px 12px;
		font-size: 12.5px;
	}
}

/* ---------- Buttons (block styles registered in functions.php) ---------- */

.wp-block-button__link {
	min-height: 44px;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wp-block-button.is-style-cta .wp-block-button__link {
	background: var(--bsg-cta);
	color: var(--bsg-ink);
	font-size: 16px;
	padding: 16px 28px;
}

.wp-block-button.is-style-cta .wp-block-button__link:hover {
	background: #F26A06; /* tangerine, one step darker; ink text still AA */
	color: var(--bsg-ink);
}

.wp-block-button.is-style-sun .wp-block-button__link {
	background: var(--bsg-sun);
	color: var(--bsg-ink);
}

.wp-block-button.is-style-sun .wp-block-button__link:hover {
	background: #F5B814;
	color: var(--bsg-ink);
}

.wp-block-button.is-style-outline-primary .wp-block-button__link {
	background: transparent;
	color: var(--bsg-primary);
	box-shadow: inset 0 0 0 1.5px var(--bsg-primary);
}

.wp-block-button.is-style-outline-primary .wp-block-button__link:hover {
	background: var(--bsg-primary);
	color: #fff;
}

.wp-block-button.is-style-light .wp-block-button__link {
	background: #fff;
	color: var(--bsg-primary);
}

.wp-block-button.is-style-light .wp-block-button__link:hover {
	background: var(--bsg-ice);
	color: var(--bsg-primary-deep);
}

/* ---------- Surfaces ---------- */

.is-style-card {
	background: var(--bsg-ice);
	border-radius: var(--wp--custom--radius--card);
	padding: 28px;
}

.is-style-card-outline {
	background: #fff;
	border: 2px solid var(--bsg-line);
	border-radius: var(--wp--custom--radius--card);
	padding: 24px;
}

.is-style-panel {
	border-radius: var(--wp--custom--radius--panel);
	overflow: hidden;
}

/* Small uppercase label above headings ("WHAT WE STAND FOR"). */
.bsg-eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0;
}

/* Concept B highlight device: sun tag behind the key phrase. */
.bsg-highlight {
	background: var(--bsg-sun);
	color: var(--bsg-ink);
	padding: 0 0.3em;
	border-radius: 10px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Visible placeholders for content the client still owes (never invent figures). */
.bsg-placeholder {
	background: repeating-linear-gradient(135deg, #DEE6FB 0 10px, #EAF0FD 10px 20px);
	color: var(--bsg-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
}

.bsg-placeholder--on-primary {
	background: repeating-linear-gradient(135deg, #2253DA 0 10px, #2A5BE0 10px 20px);
	color: var(--wp--preset--color--on-primary);
}

/* ---------- Footer ---------- */

.bsg-site-footer {
	margin-block-start: 0;
}

.bsg-footer {
	font-size: 15px;
}

.bsg-footer p {
	margin: 0;
}

.bsg-footer a {
	text-decoration: none;
}

.bsg-footer a:hover {
	text-decoration: underline;
}

.bsg-footer__about {
	max-width: 340px;
}

.bsg-footer__name {
	font-size: 22px;
	font-weight: 900;
}

.bsg-footer__head {
	font-weight: 800;
}

.bsg-footer__legal {
	margin-top: 48px !important;
	padding-top: 24px;
	border-top: 1px solid var(--bsg-ink-soft);
	font-size: 13px;
}

/* ---------- Floating WhatsApp + phone bottom bar ---------- */

.bsg-wa-float {
	position: fixed;
	right: 20px;
	bottom: calc(24px + var(--bsg-mnav-h));
	z-index: 35;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--bsg-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 24px rgba(21, 70, 209, 0.4);
}

.bsg-wa-float:hover {
	background: var(--bsg-primary-deep);
	color: #fff;
}

.bsg-mnav {
	display: none;
}

@media (max-width: 640px) {
	:root {
		--bsg-header-h: 64px;
		--bsg-mnav-h: 64px;
	}

	body {
		padding-bottom: var(--bsg-mnav-h);
	}

	.bsg-mnav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 45;
		display: flex;
		justify-content: space-around;
		height: var(--bsg-mnav-h);
		padding-bottom: env(safe-area-inset-bottom);
		background: #fff;
		border-top: 1px solid var(--bsg-line);
		font-size: 11px;
		font-weight: 700;
	}

	.bsg-mnav a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		min-width: 56px;
		color: var(--bsg-muted);
		text-decoration: none;
	}

	.bsg-mnav a[aria-current="page"] {
		color: var(--bsg-primary);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* =========================================================
 * Sections (homepage patterns, reused on inner pages)
 * ======================================================= */

.bsg-main {
	margin-block-start: 0;
}

.bsg-home > * {
	margin-block-start: 0;
}

.bsg-section > * {
	margin-block-start: 0;
}

.bsg-section > * + * {
	margin-block-start: var(--wp--style--block-gap, 24px);
}

.bsg-sechead {
	gap: 16px;
}

.bsg-sechead p,
.bsg-section h2 {
	margin: 0;
}

/* ---------- Hero ---------- */

.bsg-hero {
	padding: 56px 56px 0;
}

.bsg-hero__cols {
	padding-bottom: 48px;
	margin-bottom: 0;
}

.bsg-hero__title {
	line-height: 1.2;
}

.bsg-hero__title .bsg-highlight {
	padding: 0 0.15em;
	border-radius: 8px;
}

.bsg-hero__media {
	aspect-ratio: 16 / 10;
	border-radius: 20px;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	box-shadow: var(--wp--preset--shadow--lift);
}

.bsg-btn-ghost-light .wp-block-button__link {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}

.bsg-btn-ghost-light .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.bsg-outcomes {
	margin: 0 -56px;
	padding: 26px 56px;
	gap: 20px 56px;
	color: #fff;
}

.bsg-outcomes p {
	margin: 0;
}

.bsg-outcomes__label {
	font-size: 20px;
	font-weight: 900;
	line-height: 1.2;
}

.bsg-stat__value {
	font-size: var(--wp--preset--font-size--stat);
	font-weight: 900;
	line-height: 1.1;
}

.bsg-stat__label {
	font-size: 14px;
	color: var(--wp--preset--color--on-primary);
}

.bsg-auth .is-style-card h3 {
	font-size: 24px;
	font-weight: 900;
	margin: 0;
}

.bsg-auth .is-style-card p {
	margin: 0;
	font-size: 15px;
}

@media (max-width: 781px) {
	.bsg-hero {
		padding: 28px 20px 0;
	}

	.bsg-hero__cols {
		padding-bottom: 28px;
	}

	.bsg-outcomes {
		margin: 0 -20px;
		padding: 20px;
		gap: 16px 32px;
	}

	.bsg-outcomes__label {
		width: 100%;
	}
}

/* ---------- Play icon, tags, badges ---------- */

.bsg-play {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--bsg-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.bsg-play--light {
	width: 74px;
	height: 74px;
	background: #fff;
	color: var(--bsg-primary);
}

.bsg-tag {
	position: absolute;
	left: 10px;
	top: 10px;
	background: var(--bsg-sun);
	color: var(--bsg-ink);
	font-size: 11px;
	font-weight: 800;
	padding: 4px 8px;
	border-radius: 6px;
}

.bsg-badge {
	position: absolute;
	right: 12px;
	top: 12px;
	background: var(--bsg-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 999px;
}

/* ---------- Chips, arrows, rails ---------- */

.bsg-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.bsg-chip {
	border: 0;
	border-radius: 999px;
	min-height: 44px;
	padding: 0 18px;
	font: 700 14px/1 var(--wp--preset--font-family--mulish);
	background: var(--bsg-ice);
	color: var(--bsg-ink);
	cursor: pointer;
}

.bsg-chip:hover {
	background: #DDE6FF;
}

.bsg-chip[aria-pressed="true"] {
	background: var(--bsg-primary);
	color: #fff;
}

.bsg-arrows {
	display: flex;
	gap: 8px;
}

.bsg-arrow {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1.5px solid var(--bsg-line);
	background: #fff;
	color: var(--bsg-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.bsg-arrow:hover {
	border-color: var(--bsg-primary);
	color: var(--bsg-primary);
}

.bsg-arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.bsg-rail {
	position: relative; /* keeps absolutely positioned children (screen-reader text) inside the scroll box */
	list-style: none;
	margin-inline: 0;
	margin-bottom: 0;
	padding: 0 0 8px;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 20px) / 4);
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: thin;
}

.bsg-rail > li {
	scroll-snap-align: start;
	min-width: 0;
}

.bsg-rail > li[hidden] {
	display: none;
}

@media (max-width: 1000px) {
	.bsg-rail {
		grid-auto-columns: calc((100% - 20px) / 2);
	}
}

@media (max-width: 560px) {
	.bsg-rail {
		grid-auto-columns: 82%;
	}
}

/* ---------- Video stories ---------- */

.bsg-story {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bsg-story p {
	margin: 0;
}

.bsg-story__thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: 16px;
	flex-direction: column;
	gap: 8px;
}

.bsg-story__quote {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
}

.bsg-story__who {
	font-size: 14px;
	color: var(--bsg-muted);
}

.bsg-stories__empty {
	color: var(--bsg-muted);
}

/* ---------- Counselling panel + forms ---------- */

.bsg-counsel {
	padding: 40px;
	gap: 32px;
}

.bsg-counsel__side {
	flex: 1 1 320px;
}

.bsg-counsel__main {
	flex: 999 1 520px;
	min-width: 0;
}

.bsg-counsel__title {
	font-size: var(--wp--preset--font-size--x-large);
	margin: 0;
}

.bsg-counsel__card {
	background: var(--bsg-ink-soft);
	border-radius: 20px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
}

.bsg-counsel__card + .bsg-counsel__card {
	margin-top: 16px;
}

.bsg-counsel__card p {
	margin: 0;
	font-size: 15px;
	color: var(--wp--preset--color--on-ink);
}

.bsg-counsel__cardtitle {
	font-size: 22px;
	font-weight: 900;
	line-height: 1.25;
}

.bsg-counsel__link,
.bsg-li a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	align-self: flex-start;
}

.bsg-counsel__link {
	color: #fff;
	font-weight: 700;
	font-size: 14px;
}

.bsg-counsel__link:hover {
	color: var(--bsg-sun);
}

.bsg-rating {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.bsg-rating__score {
	font-size: 60px;
	font-weight: 900;
	line-height: 1;
}

.bsg-rating__meta {
	font-size: 15px;
	font-weight: 800;
	text-align: right;
}

.bsg-rating__meta span {
	color: #A9B7DA;
	font-weight: 600;
}

.bsg-stars {
	color: var(--bsg-sun);
	font-size: 26px;
	letter-spacing: 4px;
	line-height: 1;
}

.bsg-stars--sm {
	font-size: 15px;
	letter-spacing: 1px;
	color: #E09B00; /* darker sun so the stars read on white */
}

.bsg-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

.bsg-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.bsg-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
}

.bsg-field input,
.bsg-field select,
.bsg-field textarea {
	font: 15px/1.4 var(--wp--preset--font-family--mulish);
	padding: 12px 14px;
	min-height: 48px;
	border: 1px solid var(--bsg-line);
	border-radius: 10px;
	background: #fff;
	color: var(--bsg-ink);
	width: 100%;
	box-sizing: border-box;
}

.bsg-field textarea {
	min-height: 0;
	resize: vertical;
}

.bsg-field [aria-invalid="true"] {
	border-color: #E5484D;
	box-shadow: 0 0 0 1px #E5484D;
}

.bsg-form--dark .bsg-field {
	color: var(--wp--preset--color--on-ink);
}

.bsg-form--dark .bsg-field input,
.bsg-form--dark .bsg-field select,
.bsg-form--dark .bsg-field textarea {
	background: var(--bsg-ink-soft);
	border-color: #2C3C66;
	color: #fff;
	color-scheme: dark;
}

.bsg-form--dark .bsg-field ::placeholder {
	color: #8D9BC0;
}

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

.bsg-form__consent {
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	color: #A9B7DA;
}

.bsg-form__consent a {
	color: #fff;
}

.bsg-form__status {
	margin: 0;
	font-weight: 700;
	min-height: 1.6em;
}

.bsg-form__status.is-error {
	color: #FF9C9C;
}

.bsg-form__status.is-ok {
	color: #8BE3B0;
}

.bsg-form:not(.bsg-form--dark) .bsg-form__status.is-error {
	color: #C62828;
}

.bsg-form:not(.bsg-form--dark) .bsg-form__status.is-ok {
	color: #1B7F4B;
}

/* Plain buttons for HTML parts (forms, pop-up) that are not core/button blocks. */
.bsg-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 14px 26px;
	border: 0;
	border-radius: 999px;
	font: 800 16px/1.2 var(--wp--preset--font-family--mulish);
	text-decoration: none;
	cursor: pointer;
	background: var(--bsg-primary);
	color: #fff;
}

.bsg-btn:hover {
	background: var(--bsg-primary-deep);
	color: #fff;
}

.bsg-btn--cta {
	background: var(--bsg-cta);
	color: var(--bsg-ink);
}

.bsg-btn--cta:hover {
	background: #F26A06;
	color: var(--bsg-ink);
}

.bsg-btn--light {
	background: #fff;
	color: var(--bsg-primary);
}

.bsg-btn--light:hover {
	background: var(--bsg-ice);
	color: var(--bsg-primary-deep);
}

.bsg-btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.bsg-form__actions {
	display: flex;
}

@media (max-width: 640px) {
	.bsg-counsel {
		padding: 24px 18px;
	}

	.bsg-form__actions .bsg-btn {
		width: 100%;
	}
}

/* ---------- Manifesto ---------- */

.bsg-manifesto > .is-style-card {
	min-height: 220px;
	padding: 32px;
	box-sizing: border-box;
}

.bsg-manifesto p {
	margin: 0;
}

.bsg-manifesto__title {
	font-size: 34px;
	line-height: 1.1;
}

.bsg-manifesto__num {
	font-size: 30px;
	font-weight: 900;
}

/* ---------- Certification ---------- */

.bsg-cert {
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
}

.bsg-cert p {
	margin: 0;
}

.bsg-icon-tile {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: #fff;
	color: var(--bsg-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Courses ---------- */

.bsg-course {
	border: 1px solid var(--bsg-line);
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--wp--preset--shadow--card);
	align-items: stretch !important;
}

.bsg-course__media {
	position: relative;
	aspect-ratio: 16 / 9;
}

.bsg-course__body {
	padding: 22px;
	flex: 1;
	align-items: stretch !important;
}

.bsg-course__body h3 {
	margin: 0;
}

.bsg-meta {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
	font-size: 14px;
	color: var(--bsg-muted);
}

.bsg-course__actions {
	margin-top: auto !important;
	padding-top: 8px;
	flex-wrap: nowrap;
	gap: 10px;
}

.bsg-course__actions .wp-block-button {
	flex: 1;
}

.bsg-course__actions .wp-block-button__link {
	width: 100%;
	font-size: 14px;
	padding: 12px;
	justify-content: center;
}

/* ---------- YouTube grid ---------- */

.bsg-ytgrid {
	list-style: none;
	margin-inline: 0;
	margin-bottom: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.bsg-yt p {
	margin: 8px 0 0;
	text-align: center;
	font-size: 14px;
	font-weight: 800;
}

.bsg-yt__thumb {
	aspect-ratio: 9 / 12;
	border-radius: 14px;
	color: var(--bsg-primary);
}

@media (max-width: 1000px) {
	.bsg-ytgrid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.bsg-ytgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- LinkedIn ---------- */

.bsg-li {
	background: #fff;
	border-radius: 18px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bsg-li p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #2A3756;
}

.bsg-li a {
	font-weight: 800;
	font-size: 14px;
	margin-top: auto;
}

.bsg-li__head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bsg-li__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex: none;
}

.bsg-li__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bsg-li__who strong {
	font-size: 15px;
}

.bsg-li__who span {
	font-size: 12px;
	color: var(--bsg-muted);
}

.bsg-li__in {
	margin-left: auto;
	background: #0A66C2;
	color: #fff;
	border-radius: 4px;
	padding: 1px 5px;
	font-weight: 900;
	font-size: 12px;
}

/* ---------- Reviews ---------- */

.bsg-reviews {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: stretch;
}

.bsg-reviews__score {
	flex: 1 1 260px;
	max-width: 320px;
	background: var(--bsg-primary);
	color: #fff;
	border-radius: var(--wp--custom--radius--card);
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
}

.bsg-reviews__score .bsg-rating__score {
	font-size: 64px;
}

.bsg-section .bsg-reviews__title {
	font-size: 18px;
	font-weight: 800;
	margin: 0;
	letter-spacing: 0;
}

.bsg-reviews__count {
	color: var(--wp--preset--color--on-primary);
}

.bsg-reviews__score .bsg-btn {
	margin-top: auto;
	flex: none;
	min-height: 44px;
	padding: 12px 20px;
	font-size: 14px;
}

.bsg-reviews__list {
	flex: 999 1 560px;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.bsg-review {
	margin: 0;
	border: 1px solid var(--bsg-line);
	border-radius: var(--wp--custom--radius--card);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bsg-review blockquote {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
}

.bsg-review figcaption {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	letter-spacing: 0.04em;
}

@media (max-width: 640px) {
	.bsg-reviews__score {
		max-width: none;
	}

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

/* ---------- Team ---------- */

.bsg-member {
	background: #fff;
	border-radius: var(--wp--custom--radius--card);
	padding: 24px;
	align-items: stretch !important;
}

.bsg-member p,
.bsg-member h3 {
	margin: 0;
}

.bsg-member__photo {
	aspect-ratio: 1 / 1;
	border-radius: 16px;
}

.bsg-member__name {
	font-size: 20px;
	font-weight: 900;
}

.bsg-member__role {
	font-size: 14px;
	font-weight: 800;
	margin-top: -6px !important;
}

.bsg-member__more summary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 800;
	color: var(--bsg-primary);
	cursor: pointer;
}

/* Stars filled to the exact rating (width set inline as --bsg-fill). */
.bsg-stars--fill {
	background: linear-gradient(90deg, var(--bsg-sun) var(--bsg-fill, 100%), rgba(255, 255, 255, 0.28) var(--bsg-fill, 100%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	align-self: flex-start;
}

.bsg-review__src {
	font-size: 12px;
	font-weight: 700;
	color: var(--bsg-muted);
	letter-spacing: 0;
	white-space: nowrap;
}

/* ---------- Thank-you page (landing style, content from bsg-core [bsg_thank_you]) ---------- */

.bsg-ty-page {
	min-height: 100vh;
	background: var(--bsg-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 16px !important;
	box-sizing: border-box;
}

.bsg-ty {
	max-width: 620px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 18px;
}

.bsg-ty p {
	margin: 0;
}

.bsg-ty__icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--bsg-sun);
	color: var(--bsg-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	font-weight: 900;
}

.bsg-ty__title {
	margin: 0;
	color: #fff;
	font-size: clamp(32px, 5vw, 48px);
}

.bsg-ty__when {
	background: rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	padding: 8px 16px;
	font-weight: 800;
}

.bsg-ty__lead {
	font-size: 17px;
	line-height: 1.6;
	color: var(--wp--preset--color--on-primary);
}

.bsg-ty__cal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.bsg-ty__next {
	margin-top: 12px;
	background: #fff;
	color: var(--bsg-ink);
	border-radius: var(--wp--custom--radius--card);
	padding: 24px 28px;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
}

.bsg-ty__next h2 {
	margin: 0 0 8px;
	font-size: 18px;
	letter-spacing: 0;
}

.bsg-ty__next ul {
	margin: 0 0 12px;
	padding-left: 20px;
	line-height: 1.7;
	color: var(--bsg-muted);
}

.bsg-ty__ref {
	font-size: 12px;
	color: var(--bsg-muted);
}

/* ---------- Homepage masterclass pop-up + corner chip ---------- */

.bsg-pop {
	margin: auto; /* keep the native centring (block-gap rules reset dialog margins) */
	border: 0;
	padding: 0;
	border-radius: 24px;
	width: min(760px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	color: var(--bsg-ink);
}

.bsg-pop[open] {
	display: flex;
	flex-wrap: wrap;
}

.bsg-pop::backdrop {
	background: rgba(11, 21, 51, 0.55);
}

.bsg-pop__media {
	flex: 1 1 240px;
	min-height: 220px;
	background: var(--bsg-primary) url("../img/bsg-emblem-192.webp") center / 120px no-repeat;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 8px;
	padding: 20px;
	color: #fff;
	box-sizing: border-box;
}

.bsg-pop__live {
	background: var(--bsg-sun);
	color: var(--bsg-ink);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 800;
}

.bsg-pop__host {
	font-weight: 800;
}

.bsg-pop__body {
	flex: 1 1 340px;
	position: relative;
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-sizing: border-box;
}

.bsg-pop__body p {
	margin: 0;
}

.bsg-pop__close {
	position: absolute;
	right: 14px;
	top: 14px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--bsg-ice);
	color: var(--bsg-ink);
	font-size: 22px;
	cursor: pointer;
}

.bsg-pop__eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #B4500B;
}

.bsg-pop__title {
	margin: 0;
	padding-right: 40px;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.bsg-pop__text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--bsg-muted);
}

.bsg-pop__meta {
	font-size: 14px;
}

.bsg-pop__cta {
	width: 100%;
}

.bsg-pop__more {
	align-self: center;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
	font-size: 14px;
}

.bsg-pop__later {
	align-self: center;
	min-height: 44px;
	border: 0;
	background: transparent;
	font: 700 14px var(--wp--preset--font-family--mulish);
	color: var(--bsg-muted);
	cursor: pointer;
}

.bsg-chip-mc {
	position: fixed;
	left: 20px;
	bottom: calc(24px + var(--bsg-mnav-h));
	z-index: 35;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 8px 16px 8px 8px;
	border: 1px solid var(--bsg-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(11, 21, 51, 0.15);
	font: 700 14px var(--wp--preset--font-family--mulish);
	color: var(--bsg-ink);
	cursor: pointer;
}

.bsg-chip-mc[hidden] {
	display: none;
}

.bsg-chip-mc__icon {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bsg-sun);
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 640px) {
	.bsg-pop__media {
		min-height: 120px;
		background-size: 72px;
	}

	.bsg-pop__body {
		padding: 22px 18px;
	}

	.bsg-pop__title {
		font-size: 20px;
	}

	.bsg-chip-mc {
		left: 12px;
		max-width: calc(100vw - 100px);
	}
}

/* =========================================================
 * Inner pages (Courses, Success Stories, About, Contact)
 * ======================================================= */

.bsg-pagehero {
	padding: 28px clamp(16px, 3vw, 32px) 0;
}

.bsg-pagehero__inner {
	max-width: 1240px;
	margin: 0 auto;
	background: var(--bsg-primary);
	color: #fff;
	border-radius: var(--wp--custom--radius--panel);
	padding: clamp(32px, 5vw, 56px);
	display: flex;
	flex-direction: column;
	gap: 14px;
	box-sizing: border-box;
}

.bsg-pagehero p {
	margin: 0;
}

.bsg-pagehero__crumb {
	font-size: 13px;
	font-weight: 700;
	color: var(--wp--preset--color--on-primary);
}

.bsg-pagehero__crumb a {
	color: #fff;
}

.bsg-pagehero__title {
	margin: 0;
	max-width: 900px;
	color: #fff;
	font-size: var(--wp--preset--font-size--display);
}

.bsg-pagehero__lead {
	max-width: 720px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--wp--preset--color--on-primary);
}

.bsg-pagehero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin-top: 8px !important;
}

.bsg-pagehero__stats span {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	color: var(--wp--preset--color--on-primary);
}

.bsg-pagehero__stats strong {
	font-size: 28px;
	font-weight: 900;
	color: #fff;
}

.bsg-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: var(--wp--preset--spacing--60) clamp(16px, 3vw, 32px);
	box-sizing: border-box;
}

.bsg-inner + .bsg-inner {
	padding-top: 0;
}

.bsg-h2 {
	margin: 0 0 24px;
	font-size: var(--wp--preset--font-size--title);
}

.bsg-lead {
	font-size: 17px;
	line-height: 1.65;
	color: var(--bsg-muted);
}

.bsg-muted {
	color: var(--bsg-muted);
	font-size: 14px;
}

.bsg-num {
	font-size: 26px;
	font-weight: 900;
	color: var(--bsg-primary);
}

.bsg-eyebrow--cta {
	color: #B4500B;
}

.bsg-grid3,
.bsg-grid4 {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 24px;
}

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

.bsg-grid4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 20px;
}

.bsg-grid3 > li[hidden],
.bsg-grid4 > li[hidden] {
	display: none;
}

@media (max-width: 1000px) {
	.bsg-grid3,
	.bsg-grid4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.bsg-grid3,
	.bsg-grid4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Course cards */

.bsg-coursecard {
	border: 1px solid var(--bsg-line);
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--wp--preset--shadow--card);
	display: flex;
	flex-direction: column;
}

.bsg-coursecard__media {
	position: relative;
	aspect-ratio: 16 / 9;
}

.bsg-coursecard__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
}

.bsg-coursecard__body h2 {
	margin: 0;
	font-size: 21px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.bsg-coursecard__body p {
	margin: 0;
	color: var(--bsg-muted);
	font-size: 15px;
}

.bsg-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bsg-pills span {
	background: var(--bsg-ice);
	color: var(--bsg-primary);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 700;
}

.bsg-facts {
	margin: 0;
	display: grid;
	gap: 6px;
	font-size: 14px;
}

.bsg-facts div {
	display: flex;
	gap: 8px;
}

.bsg-facts dt {
	font-weight: 800;
	min-width: 86px;
}

.bsg-facts dd {
	margin: 0;
	color: var(--bsg-muted);
}

.bsg-coursecard__actions {
	margin-top: auto !important;
	display: flex;
	gap: 10px;
}

.bsg-coursecard__actions .bsg-btn {
	flex: 1;
	font-size: 14px;
	padding: 12px;
}

.bsg-btn--outline {
	background: transparent;
	color: var(--bsg-primary);
	box-shadow: inset 0 0 0 1.5px var(--bsg-primary);
}

.bsg-btn--outline:hover {
	background: var(--bsg-primary);
	color: #fff;
}

.bsg-mods li {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bsg-mods li span {
	color: var(--bsg-muted);
	font-size: 15px;
}

/* Success stories page */

.bsg-search {
	max-width: 480px;
	margin-bottom: 16px;
}

.bsg-search input {
	min-height: 52px;
	border-radius: 999px;
	padding-left: 20px;
}

/* CTA band */

.bsg-ctaband-wrap {
	padding: 0 clamp(16px, 3vw, 32px) var(--wp--preset--spacing--70);
}

.bsg-ctaband {
	max-width: 1240px;
	margin: 0 auto;
	background: var(--bsg-ink);
	color: #fff;
	border-radius: var(--wp--custom--radius--panel);
	padding: 32px 40px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	box-sizing: border-box;
}

.bsg-ctaband div {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 640px;
}

.bsg-ctaband strong {
	font-size: 24px;
	font-weight: 900;
	line-height: 1.25;
}

.bsg-ctaband span {
	color: var(--wp--preset--color--on-ink);
}

/* About */

.bsg-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	align-items: start;
}

.bsg-split p {
	margin: 0 0 12px;
}

.bsg-split h3 {
	margin: 0 0 12px;
	font-size: 20px;
}

.bsg-problems {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bsg-problems li {
	display: flex;
	gap: 14px;
	align-items: baseline;
}

.bsg-problems .bsg-num {
	font-size: 18px;
	flex: none;
}

.bsg-parent {
	background: var(--bsg-ink);
	color: #fff;
	border-radius: var(--wp--custom--radius--panel);
	padding: clamp(28px, 4vw, 48px);
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
}

.bsg-parent p {
	margin: 0 0 10px;
	color: var(--wp--preset--color--on-ink);
}

.bsg-parent .bsg-h2 {
	color: #fff;
	margin-bottom: 12px;
}

.bsg-parent__stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.bsg-parent__stats li {
	background: var(--bsg-ink-soft);
	border-radius: 18px;
	padding: 18px;
	display: flex;
	flex-direction: column;
}

.bsg-parent__stats strong {
	font-size: 24px;
	font-weight: 900;
}

.bsg-parent__stats span {
	font-size: 13px;
	color: var(--wp--preset--color--on-ink);
}

@media (max-width: 860px) {
	.bsg-split,
	.bsg-parent {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Contact */

.bsg-contact h2 {
	margin: 0 0 8px;
	font-size: 19px;
	letter-spacing: 0;
}

.bsg-contact p {
	margin: 0 0 8px;
}

.bsg-contact a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	font-weight: 700;
}

/* ---------- Plain content pages (policies, blog posts) ---------- */

.bsg-legal-note {
	background: var(--bsg-ice);
	border-radius: 14px;
	padding: 14px 18px;
	font-size: 14px;
	color: var(--bsg-muted);
}

.bsg-main .wp-block-post-content h2 {
	margin-top: 36px;
	font-size: clamp(20px, 2.2vw, 24px);
	letter-spacing: -0.01em;
}

.bsg-main .wp-block-post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	font-size: 15px;
}

.bsg-main .wp-block-post-content th,
.bsg-main .wp-block-post-content td {
	text-align: left;
	vertical-align: top;
	padding: 10px 12px;
	border-bottom: 1px solid var(--bsg-line);
}

.bsg-main .wp-block-post-content th {
	background: var(--bsg-ice);
	font-weight: 800;
}

.bsg-main .wp-block-post-content li p {
	margin: 0 0 6px;
}

/* ---------- Course detail page ---------- */

.bsg-coursehero__badge {
	display: inline-block;
	background: var(--bsg-sun);
	color: var(--bsg-ink);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bsg-pills--light span {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.bsg-coursehero__facts {
	margin: 8px 0 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	max-width: 900px;
}

.bsg-coursehero__facts div {
	background: var(--bsg-primary-deep);
	border-radius: 16px;
	padding: 14px 16px;
}

.bsg-coursehero__facts dt {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--on-primary);
}

.bsg-coursehero__facts dd {
	margin: 4px 0 0;
	font-size: 17px;
	font-weight: 800;
	color: #fff;
}

.bsg-coursehero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px !important;
}

.bsg-btn--ghost-light {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}

.bsg-btn--ghost-light:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.bsg-course-body .wp-block-post-content > * + * {
	margin-block-start: 1em;
}

.bsg-course-body h2 {
	margin-top: 40px;
	font-size: clamp(22px, 2.6vw, 30px);
}

.bsg-course-body details {
	background: var(--bsg-ice);
	border-radius: 14px;
	padding: 0 18px;
	margin-top: 10px;
}

.bsg-course-body summary {
	min-height: 52px;
	display: flex;
	align-items: center;
	font-weight: 800;
	cursor: pointer;
}

.bsg-course-body details > :not(summary) {
	padding-bottom: 14px;
}

@media (max-width: 860px) {
	.bsg-coursehero__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
