/*
 * bissafety.ca single course page. Loaded only by single-courses.php.
 * Source: wordpress/ca-course-template/css/course-single.css (BIS Marketing repo).
 * Colours and fonts match the bis-landing-pages tokens (assets/lp.css); the content width matches the site header
 * and the site-template pages (1,240 px including 20 px gutters).
 */

.bis-cp {
	--cp-primary: #009acb;
	--cp-primary-dark: #0078b3;
	--cp-primary-darker: #006397;
	--cp-blue-50: #e6f5fb;
	--cp-buy: #8dc33f;
	--cp-buy-dark: #6f9e2c;
	--cp-ink: #191919;
	--cp-text: #333333;
	--cp-muted: #5c5c5c;
	--cp-line: #e2e2e2;
	--cp-soft: #f7f8f9;
	--cp-white: #ffffff;
	--cp-hero: #071827;
	--cp-hero-accent: #8dc33f; /* brand green (Max, 18 Nov); about 9:1 on the navy hero */
	--cp-radius: 10px;
	--cp-max: 1200px;
	--cp-gutter: 20px;
	--cp-card: 380px;
	--cp-brand: 'Montserrat', 'Montserrat Fallback', Arial, Helvetica, sans-serif;
	/* Same as the TRMS / site-template pages: Montserrat for text as well as headings (Max, 19 Nov). */
	--cp-body: 'Montserrat', 'Montserrat Fallback', Arial, Helvetica, sans-serif;

	display: block;
	color: var(--cp-text);
	font-family: var(--cp-body);
	font-size: 17px;
	line-height: 1.6;
	background: var(--cp-white);
	overflow-x: clip;
}

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

.bis-cp-wrap {
	width: 100%;
	max-width: calc(var(--cp-max) + 2 * var(--cp-gutter));
	margin: 0 auto;
	padding: 0 var(--cp-gutter);
}

.bis-cp-icon { flex: 0 0 auto; width: 20px; height: 20px; color: var(--cp-primary-dark); }

/* Top grid: hero, buy card, content. Phones: stacked. Desktop: the card sits in its own column, overlapping the
   hero, and stays in view while the content scrolls (see the 960px block). */
.bis-cp-top { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "card" "content"; }

/* Hero (design pass, 18 Nov): deep navy band; the course photo fades in from the right; a soft brand-blue glow and a
   faint dot grid; a label pill, a large tight title, a softer summary and frosted fact chips. */
.bis-cp-hero { grid-area: hero; position: relative; z-index: 0; padding: 28px 0 56px; color: var(--cp-white); }
.bis-cp-hero__bg {
	position: absolute;
	top: 0;
	bottom: 0;
	/* From the wrap's content edge out to the viewport edge. */
	left: calc((min(100vw, var(--cp-max) + 2 * var(--cp-gutter)) - 100vw) / 2 - var(--cp-gutter));
	width: 100vw;
	z-index: -1;
	overflow: hidden;
	background: var(--cp-hero);
}
/* Photo: faded into the navy so the text side stays calm (phones: from the bottom; desktop: from the left). */
.bis-cp .bis-cp-hero__bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	opacity: .5;
	filter: saturate(.85);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .25) 100%);
	mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .25) 100%);
}
/* Readability gradient + brand glows. */
.bis-cp-hero__bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(55% 90% at 8% 0%, rgba(0, 154, 203, .34) 0%, rgba(0, 154, 203, 0) 70%),
		radial-gradient(40% 70% at 100% 100%, rgba(141, 195, 63, .14) 0%, rgba(141, 195, 63, 0) 70%),
		linear-gradient(180deg, rgba(7, 24, 39, .55) 0%, rgba(7, 24, 39, .85) 100%);
}
/* Faint dot grid, fading out towards the bottom right. */
.bis-cp-hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(70% 90% at 0% 0%, #000 0%, transparent 75%);
	mask-image: radial-gradient(70% 90% at 0% 0%, #000 0%, transparent 75%);
}

/* Breadcrumbs (in the hero) */
.bis-cp-crumbs { margin: 0 0 28px; font-size: 13px; letter-spacing: .01em; }
.bis-cp-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .6); }
.bis-cp-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.bis-cp-crumbs li + li::before { content: ''; width: 5px; height: 5px; margin: 0 10px 0 8px; border-top: 1.5px solid rgba(255, 255, 255, .45); border-right: 1.5px solid rgba(255, 255, 255, .45); transform: rotate(45deg); }
.bis-cp .bis-cp-crumbs a { color: rgba(255, 255, 255, .72); font-weight: 500; text-decoration: none; transition: color .15s ease; }
.bis-cp .bis-cp-crumbs a:hover { color: var(--cp-white); }

/* Category above the H1: plain text, the TRMS eyebrow style (.bis-pp-eyebrow: 13px, 700, uppercase, .06em), in the
   hero's light accent because the hero is dark. */
.bis-cp .bis-cp-kicker {
	margin: 0 0 12px;
	font-family: var(--cp-brand);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--cp-hero-accent);
}

/* H1 and lead: the TRMS hero scale (body .bis-pp-hero h1 / .bis-pp-lead), white on the dark hero. */
.bis-cp .bis-cp-title {
	margin: 0 0 16px;
	font-family: var(--cp-brand);
	font-size: clamp(34px, 3vw + 17px, 56px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.015em;
	color: var(--cp-white);
	text-wrap: balance;
}
.bis-cp .bis-cp-lead { margin: 0 0 26px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .8); max-width: 58ch; text-wrap: pretty; }

.bis-cp-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.bis-cp-facts li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; }
/* Hero facts as frosted chips. */
.bis-cp-hero .bis-cp-facts { gap: 8px; margin-top: 18px; /* 44px below the summary */ }
.bis-cp-hero .bis-cp-facts li {
	gap: 7px;
	padding: 7px 13px 7px 10px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	background: rgba(255, 255, 255, .07);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font-size: 14px;
	line-height: 1.2;
	color: var(--cp-white);
}
.bis-cp-hero .bis-cp-facts .bis-cp-icon { width: 17px; height: 17px; color: var(--cp-hero-accent); }

/* Buy card: video (or image), price, button, what's included, team note. */
.bis-cp-card {
	grid-area: card;
	position: relative;
	z-index: 2;
	margin: -24px 0 0; /* phones: tucks into the hero's bottom edge */
	overflow: hidden;
	border: 1px solid rgba(11, 29, 44, .08);
	border-radius: 16px;
	background: var(--cp-white);
	box-shadow: 0 1px 2px rgba(7, 24, 39, .06), 0 12px 24px -8px rgba(7, 24, 39, .12), 0 32px 64px -24px rgba(7, 24, 39, .32);
}
.bis-cp-card__body { padding: 22px 24px 24px; }
/* Course title in the card (19 Nov): body text while the hero is in view; once the hero is scrolled past
   (desktop, .is-past from js/course-single.js) it grows slightly and turns semibold. */
.bis-cp .bis-cp-card__title {
	margin: 0 0 10px;
	font-family: var(--cp-body);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--cp-text);
	transition: font-size .35s ease, font-weight .35s ease, color .35s ease, margin .35s ease;
}
.bis-cp .bis-cp-card.is-past .bis-cp-card__title { margin-bottom: 12px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--cp-ink); }
@media (prefers-reduced-motion: reduce) { .bis-cp .bis-cp-card__title { transition: none; } }
/* Store rating above the price (Max, 19 Nov): number, five stars filled to the rating, count. */
/* Kept small so it doesn't compete with the price (Max, 19 Nov). */
.bis-cp .bis-cp-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0 0 8px; font-family: var(--cp-brand); font-size: 12px; line-height: 1.2; color: var(--cp-muted); }
.bis-cp-rating__value { font-size: 12px; font-weight: 700; color: #9a5a0b; } /* dark amber, 5.4:1 on white */
.bis-cp-rating__stars {
	width: 64px; height: 12px; flex: none;
	background: linear-gradient(90deg, #f0a01c calc(var(--cp-rating, 0) * 20%), #d6d6d6 0);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 16'%3E%3Cpath d='M8 1.2l2 4.3 4.6.5-3.4 3.2.9 4.6L8 11.5l-4.1 2.3.9-4.6L1.4 6l4.6-.5z'/%3E%3C/svg%3E") 0 0 / 12.75px 12px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 16'%3E%3Cpath d='M8 1.2l2 4.3 4.6.5-3.4 3.2.9 4.6L8 11.5l-4.1 2.3.9-4.6L1.4 6l4.6-.5z'/%3E%3C/svg%3E") 0 0 / 12.75px 12px repeat-x;
}
.bis-cp .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.bis-cp .bis-cp-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 16px; font-family: var(--cp-brand); color: var(--cp-ink); line-height: 1; }
.bis-cp-price__amount { font-size: 36px; font-weight: 700; letter-spacing: -.02em; }
.bis-cp-price__cur { padding: 3px 7px; border-radius: 5px; background: var(--cp-soft); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--cp-muted); }
.bis-cp .bis-cp-unavailable { margin: 0; font-size: 16px; }
.bis-cp-card__foot { display: flex; gap: 10px; align-items: flex-start; padding: 14px 24px 16px; border-top: 1px solid var(--cp-line); background: var(--cp-soft); }
.bis-cp-card__foot .bis-cp-icon { margin-top: 2px; }
.bis-cp .bis-cp-card__foot p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cp-muted); }
.bis-cp .bis-cp-card__foot strong { color: var(--cp-ink); }
.bis-cp .bis-cp-card__foot a { color: var(--cp-primary-dark); font-weight: 700; }
.bis-cp .bis-cp-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* Buy button: arrow nudges on hover. */
.bis-cp .bis-cp-btn { gap: 8px; }
.bis-cp-btn__arrow { flex: 0 0 auto; transition: transform .18s ease; }
.bis-cp .bis-cp-card .bis-cp-btn--buy { min-height: 52px; border-radius: 8px; }
.bis-cp .bis-cp-btn:hover .bis-cp-btn__arrow { transform: translateX(3px); }

/* Buttons */
.bis-cp .bis-cp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 26px;
	border: 2px solid transparent;
	border-radius: 6px;
	font-family: var(--cp-brand);
	font-size: 16px; /* TRMS .bis-pp-btn: 16px / 600 */
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.bis-cp .bis-cp-btn--buy { background: var(--cp-buy); color: var(--cp-white); /* white text, as the header's Book a demo (Max, 18 Nov) */ }
.bis-cp .bis-cp-btn--buy:hover,
.bis-cp .bis-cp-btn--buy:focus-visible { background: var(--cp-buy-dark); color: var(--cp-white); }
.bis-cp .bis-cp-btn--primary { background: var(--cp-primary-dark); color: var(--cp-white); }
.bis-cp .bis-cp-btn--primary:hover,
.bis-cp .bis-cp-btn--primary:focus-visible { background: var(--cp-primary-darker); color: var(--cp-white); }
.bis-cp .bis-cp-btn--ghost { background: transparent; color: var(--cp-white); border-color: rgba(255, 255, 255, .7); }
.bis-cp .bis-cp-btn--ghost:hover,
.bis-cp .bis-cp-btn--ghost:focus-visible { background: rgba(255, 255, 255, .12); color: var(--cp-white); border-color: var(--cp-white); }
.bis-cp .bis-cp-btn--block { display: flex; width: 100%; }
.bis-cp .bis-cp-btn:focus-visible { outline: 3px solid var(--cp-primary); outline-offset: 2px; }

/* Course video at the top of the card: the still fills a 16:9 box, a round white play button sits in the middle and
   "Preview this course" along the bottom, over a soft dark gradient (Max, 18 Nov). The whole box is clickable and
   opens the homepage-style full-screen player below (js/course-single.js). */
.bis-cp .bis-cp-video {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	cursor: pointer;
	background: #000;
	color: var(--cp-white);
}
.bis-cp .bis-cp-video__still { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .3s ease, opacity .2s ease; }
.bis-cp .bis-cp-video:hover .bis-cp-video__still { transform: scale(1.03); opacity: .9; }
.bis-cp .bis-cp-video::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .65) 100%); }
.bis-cp .bis-cp-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: -40px 0 0 -32px;
	border-radius: 999px;
	background: var(--cp-white);
	color: var(--cp-ink);
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
	transition: transform .16s ease, box-shadow .16s ease;
}
.bis-cp .bis-cp-video__play svg { margin-left: 4px; }
.bis-cp .bis-cp-video:hover .bis-cp-video__play { transform: scale(1.06); box-shadow: 0 8px 26px rgba(0, 0, 0, .38); color: var(--cp-ink); }
.bis-cp .bis-cp-video__play:active { transform: scale(.97); }
.bis-cp .bis-cp-video__play:focus-visible { outline: 3px solid var(--cp-white); outline-offset: 3px; }
.bis-cp-video__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 2;
	font-family: var(--cp-brand);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	pointer-events: none;
}

/* Full-screen player (js/course-single.js), same as the homepage's (home-ca.css .bis-hp): dark overlay, the stage grows
   from the card's video box to the biggest centred 16:9 area; the still shows until the YouTube player has loaded. */
/* Scroll lock while the video is open. The theme sets overflow-x: hidden on both <html> and <body>; once <html> is
   overflow: hidden, <body> becomes its own scroll container and the sticky buy card un-sticks (it dropped to its normal
   place, off screen, then jumped back on close; Max, 19 Nov). Keeping <body> visible keeps the window as the scroller. */
html.bis-cp-hp-open { overflow: hidden !important; }
html.bis-cp-hp-open body { overflow: visible !important; }
/* Keep the scrollbar's space while scrolling is locked, so the centred layout (and the sticky buy card) doesn't move
   sideways when the video opens and jump back when it closes (Max, 19 Nov). Added by the script only when the page
   has a scrollbar; browsers without scrollbar-gutter get the same width as padding instead. */
html.bis-cp-hp-gutter { scrollbar-gutter: stable; }
/* Above the Complianz banner (100000) and the Ask AMY widget, so nothing covers the video while it plays. */
.bis-cp-hp { position: fixed; inset: 0; z-index: 2147483600; }
.bis-cp-hp__backdrop { position: absolute; inset: 0; background: rgba(6, 18, 30, .9); }
.bis-cp-hp__stage {
	position: fixed;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
	transform-origin: 0 0;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}
.bis-cp-hp__cover { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: opacity .45s ease; }
.bis-cp-hp.is-playing .bis-cp-hp__cover { opacity: 0; }
.bis-cp-hp__frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
/* The on-demand demo's Video.js 10 player fills the stage (gated-video.css .bis-vg__frame rules, 12px corners). */
.bis-cp-hp__player,
.bis-cp-hp__player video-player,
.bis-cp-hp__player video-skin,
.bis-cp-hp__player youtube-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.bis-cp-hp__player video-player { --media-border-radius: 12px; }
.bis-cp-hp__spinner {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border: 3px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 999px;
	animation: bis-cp-hp-spin .8s linear infinite;
}
.bis-cp-hp.is-playing .bis-cp-hp__spinner { display: none; }
@keyframes bis-cp-hp-spin { to { transform: rotate(360deg); } }
/* Just above the stage's top-right corner (placed by the script), clear of YouTube's own icons. The overlay sits
   outside .bis-cp, so the theme's button styles reach it: hence the doubled class and explicit box model. */
.bis-cp-hp .bis-cp-hp__close {
	box-sizing: border-box;
	min-width: 0;
	min-height: 0;
	margin: 0;
	line-height: 1;
	box-shadow: none;
	position: fixed;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	transition: background-color .15s ease;
}
/* Hello Elementor's reset.css paints every button:focus / :hover / [type=button]:focus #c36 (red), with the same
   specificity as the rules above; the button has focus as soon as the player opens. These win in every state. */
html .bis-cp-hp .bis-cp-hp__close,
html .bis-cp-hp .bis-cp-hp__close:focus,
html .bis-cp-hp .bis-cp-hp__close:active { background: rgba(255, 255, 255, .14); color: #fff; border: 0; text-decoration: none; }
html .bis-cp-hp .bis-cp-hp__close:hover,
html .bis-cp-hp .bis-cp-hp__close:focus-visible { background: rgba(255, 255, 255, .26); color: #fff; }
html .bis-cp-hp .bis-cp-hp__close:focus:not(:focus-visible) { outline: none; }
html .bis-cp-hp .bis-cp-hp__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bis-cp-hp__spinner { animation-duration: 2s; } }

/* Content (left column on desktop) */
.bis-cp-content { grid-area: content; min-width: 0; max-width: 72ch; padding: 36px 0 48px; }
.bis-cp-content > :first-child { margin-top: 0; }
/* Body headings: the TRMS weights (600) and letter spacing; a step smaller than its section H2s, as this is
   long-form text. H3 = TRMS h3 (18px / 600). */
.bis-cp .bis-cp-content h2 {
	margin: 1.8em 0 .6em;
	font-family: var(--cp-brand);
	font-size: clamp(24px, 1.2vw + 18px, 32px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--cp-ink);
}
.bis-cp .bis-cp-content h3 {
	margin: 1.4em 0 .4em;
	font-family: var(--cp-brand);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--cp-ink);
}
.bis-cp .bis-cp-content h4 { margin: 1.2em 0 .4em; font-family: var(--cp-brand); font-size: 17px; font-weight: 600; color: var(--cp-ink); }
.bis-cp .bis-cp-content p { margin: 0 0 1em; }
.bis-cp .bis-cp-content ul,
.bis-cp .bis-cp-content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.bis-cp .bis-cp-content li { margin: 0 0 .45em; }
.bis-cp .bis-cp-content li::marker { color: var(--cp-primary-dark); }
.bis-cp .bis-cp-content a { color: var(--cp-primary-dark); }
.bis-cp .bis-cp-content img { max-width: 100%; height: auto; border-radius: 6px; }
.bis-cp .bis-cp-content strong { font-weight: 700; color: var(--cp-ink); }
.bis-cp .bis-cp-content p:empty { display: none; }
/* Older LMS bodies carry inline font sizes (14px text, 18px headings); keep one type scale. */
.bis-cp .bis-cp-content [style*="font-size"] { font-size: inherit !important; }

/* Compact team CTA inside the body, before the 2nd H2 (Max, 20 Nov): the team panel's light tint, one line of copy
   and "Book a demo" as a text link underneath (Max changed it from a button, 20 Nov). */
.bis-cp .bis-cp-inline-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 2.2em 0 0;
	padding: 20px 22px;
	border: 1px solid rgba(0, 120, 179, .14);
	border-left: 4px solid var(--cp-primary-dark);
	border-radius: 14px;
	background: #eaf5fb; /* plain light blue, no green (Max, 20 Nov) */
}
/* Specific enough to beat `.bis-cp .bis-cp-content p` (1em bottom margin), which left a big gap above the link. */
.bis-cp .bis-cp-content .bis-cp-inline-cta__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--cp-muted); }
.bis-cp .bis-cp-inline-cta__text strong { display: block; margin-bottom: 2px; font-family: var(--cp-brand); font-size: 18px; font-weight: 600; color: var(--cp-ink); }
.bis-cp .bis-cp-content a.bis-cp-inline-cta__link { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; font-family: var(--cp-brand); font-size: 16px; font-weight: 700; color: var(--cp-primary-dark); text-decoration: none; }
.bis-cp .bis-cp-content a.bis-cp-inline-cta__link:hover,
.bis-cp .bis-cp-content a.bis-cp-inline-cta__link:focus-visible { color: var(--cp-primary-darker); text-decoration: underline; text-underline-offset: 3px; }
.bis-cp .bis-cp-inline-cta__link .bis-cp-btn__arrow { transition: transform .2s ease; }
.bis-cp .bis-cp-inline-cta__link:hover .bis-cp-btn__arrow { transform: translateX(3px); }
.bis-cp .bis-cp-inline-cta + h2 { margin-top: 1.4em; }
@media (min-width: 600px) {
	.bis-cp .bis-cp-inline-cta { padding: 20px 24px; }
}



/* Team CTA (redesign, 18 Nov; light version per Max): a rounded light panel inside the page width, a soft brand-blue
   tint with a light glow and faint dot grid, a green label pill, three green-check points and the two buttons. Greens on
   the light panel are the darker #3f6b10 so text and icons stay readable (brand #8dc33f stays on the button). */
.bis-cp-team { padding: 24px 0 64px; background: var(--cp-white); }
.bis-cp-team__panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	gap: 28px;
	padding: 36px 24px;
	border: 1px solid rgba(0, 120, 179, .14);
	border-radius: 20px;
	background: #f1f8fc;
	color: var(--cp-ink);
}
.bis-cp-team__panel::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(50% 90% at 0% 0%, rgba(0, 154, 203, .14) 0%, rgba(0, 154, 203, 0) 70%),
		radial-gradient(45% 80% at 100% 100%, rgba(141, 195, 63, .16) 0%, rgba(141, 195, 63, 0) 70%);
}
.bis-cp-team__panel::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(0, 120, 179, .16) 1px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(60% 100% at 100% 0%, #000 0%, transparent 75%);
	mask-image: radial-gradient(60% 100% at 100% 0%, #000 0%, transparent 75%);
}
/* Section headings: the TRMS H2 scale (body .bis-lp-main h2). */
.bis-cp .bis-cp-team h2 {
	margin: 0 0 10px;
	font-family: var(--cp-brand);
	font-size: clamp(30px, 2.4vw + 18px, 48px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--cp-ink);
	text-wrap: balance;
}
.bis-cp .bis-cp-team__lead { margin: 0 0 20px; max-width: 52ch; font-size: 17px; line-height: 1.55; color: var(--cp-muted); }
.bis-cp-team__points { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bis-cp-team__points li { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--cp-muted); /* same as the line above (Max, 18 Nov) */ }
.bis-cp-team__check { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: rgba(141, 195, 63, .22); }
.bis-cp-team__check .bis-cp-icon { width: 16px; height: 16px; color: #3f6b10; stroke-width: 2.4; }
.bis-cp-team__actions { display: flex; flex-direction: column; gap: 12px; }
.bis-cp .bis-cp-team .bis-cp-btn { width: 100%; min-height: 52px; border-radius: 8px; }
.bis-cp .bis-cp-team .bis-cp-btn--ghost { background: var(--cp-white); color: var(--cp-primary-dark); border-color: var(--cp-primary-dark); }
.bis-cp .bis-cp-team .bis-cp-btn--ghost:hover,
.bis-cp .bis-cp-team .bis-cp-btn--ghost:focus-visible { background: var(--cp-blue-50); color: var(--cp-primary-darker); border-color: var(--cp-primary-darker); }

/* Related courses (redesign, 18 Nov): a header row with "Browse all courses →", rounded cards with an image that zooms
   on hover, title, duration and a price tag, and "View course →". The whole card is the link. */
.bis-cp-related { padding: 64px 0 80px; background: var(--cp-soft); }
.bis-cp-related__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.bis-cp .bis-cp-related__eyebrow { margin: 0 0 6px; font-family: var(--cp-brand); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cp-primary-dark); }
.bis-cp .bis-cp-related h2 { margin: 0; font-family: var(--cp-brand); font-size: clamp(30px, 2.4vw + 18px, 48px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--cp-ink); }
.bis-cp .bis-cp-related__all { display: inline-flex; align-items: center; gap: 6px; font-family: var(--cp-brand); font-size: 15px; font-weight: 700; color: var(--cp-primary-dark); text-decoration: none; }
.bis-cp .bis-cp-related__all:hover { color: var(--cp-primary-darker); }
.bis-cp .bis-cp-related__all:hover .bis-cp-btn__arrow { transform: translateX(3px); }

.bis-cp-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.bis-cp-cards__item {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(11, 29, 44, .08);
	border-radius: 14px;
	background: var(--cp-white);
	box-shadow: 0 1px 2px rgba(7, 24, 39, .04);
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.bis-cp-cards__item:hover { transform: translateY(-4px); border-color: rgba(0, 120, 179, .25); box-shadow: 0 2px 4px rgba(7, 24, 39, .04), 0 18px 36px -16px rgba(7, 24, 39, .28); }
.bis-cp-cards__item:focus-within { border-color: var(--cp-primary-dark); }
.bis-cp-cards__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cp-hero); }
.bis-cp .bis-cp-cards__media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .45s ease; }
.bis-cp-cards__item:hover .bis-cp-cards__media img { transform: scale(1.05); }
.bis-cp-cards__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 18px 18px; }
.bis-cp .bis-cp-cards__rating { margin: 0 0 6px; } /* store rating above the title, as in the buy card (20 Nov) */
.bis-cp .bis-cp-cards__item h3 { margin: 0 0 12px; font-family: var(--cp-brand); font-size: 16px; font-weight: 600; line-height: 1.35; }
.bis-cp .bis-cp-cards__item h3 a { color: var(--cp-ink); text-decoration: none; }
.bis-cp .bis-cp-cards__item h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.bis-cp .bis-cp-cards__item h3 a:focus-visible { outline: none; }
.bis-cp-cards__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.bis-cp-cards__time { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--cp-muted); }
.bis-cp-cards__time .bis-cp-icon { width: 16px; height: 16px; color: var(--cp-muted); }
.bis-cp-cards__price { padding: 4px 9px; border-radius: 6px; background: var(--cp-soft); font-family: var(--cp-brand); font-size: 14px; font-weight: 700; color: var(--cp-ink); }
.bis-cp-cards__price.is-free { background: rgba(141, 195, 63, .16); color: #3f6b10; }
.bis-cp-cards__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--cp-line); font-family: var(--cp-brand); font-size: 14px; font-weight: 700; color: var(--cp-primary-dark); }
.bis-cp-cards__item:hover .bis-cp-cards__more .bis-cp-btn__arrow { transform: translateX(3px); }

/* Phone buy bar */
.bis-cp-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px var(--cp-gutter) calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--cp-line);
	background: var(--cp-white);
	box-shadow: 0 -6px 18px rgba(25, 25, 25, .08);
	transform: translateY(110%);
	transition: transform .2s ease;
}
.bis-cp-bar.is-visible { transform: translateY(0); }
.bis-cp-bar__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.bis-cp-bar__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--cp-muted); }
.bis-cp-bar__price { font-family: var(--cp-brand); font-size: 18px; font-weight: 700; color: var(--cp-ink); }
.bis-cp .bis-cp-bar .bis-cp-btn { flex: 0 0 auto; min-height: 46px; padding: 10px 18px; font-size: 16px; }
/* Ask AMY's floating "Chat Now" button sits 16px from the bottom, on top of the bar's Buy button. While the bar shows
   (phones only), lift it above the bar (found on .ca staging, 18 Nov). */
@media (max-width: 959px) {
	.askamy-reopen,
	.askamy-loading { transition: bottom .2s ease; }
	html.bis-cp-bar-on .askamy-reopen,
	html.bis-cp-bar-on .askamy-loading { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}

/* Phones: compact rows (small image beside the text) instead of four tall cards. */
@media (max-width: 599px) {
	.bis-cp-cards { gap: 12px; }
	.bis-cp-cards__item { flex-direction: row; align-items: stretch; padding: 10px; gap: 14px; }
	.bis-cp-cards__item:hover { transform: none; }
	.bis-cp-cards__media { flex: 0 0 112px; aspect-ratio: auto; min-height: 84px; border-radius: 8px; }
	.bis-cp-cards__body { padding: 2px 4px 2px 0; }
	.bis-cp .bis-cp-cards__item h3 { margin: 0 0 8px; font-size: 15px; }
	.bis-cp-cards__more { display: none; }
	.bis-cp-cards__price { padding: 3px 8px; font-size: 13px; }
	.bis-cp-cards__time { font-size: 13px; }
}

@media (min-width: 600px) {
	.bis-cp-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Hero pills: at most three on a row (Max, 18 Nov); each keeps its own width. Three wide pills need ~620px, so the rule
   follows the hero column's own width (a container query), not the screen's: below 640px they wrap naturally, which
   gives two or fewer per row (e.g. 960–1100px screens, where the buy card takes the right column). */
.bis-cp-hero { container-type: inline-size; }
@container (min-width: 640px) {
	/* The course's own facts on one row, then "Take it yourself or assign it" (same on every course) on its own row
	   (Max, 19 Nov). A flex line break: the ::after item sits between them and takes the full width. */
	.bis-cp-hero .bis-cp-facts::after { content: ''; flex-basis: 100%; order: 1; }
	.bis-cp-hero .bis-cp-facts li.is-route { order: 2; }
}

@media (min-width: 960px) {
	.bis-cp-top {
		grid-template-columns: minmax(0, 1fr) var(--cp-card);
		grid-template-areas: "hero card" "content card";
		column-gap: 48px;
	}
	/* Shorter than the card (Max, 19 Nov: the taller card left uneven space), so the card overflows the hero's bottom edge. */
	.bis-cp-hero { padding: 72px 0 40px; min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
	.bis-cp-crumbs { position: absolute; top: 32px; left: 0; margin: 0; }
	/* Desktop: the photo fades in from the left, so the text sits on calm navy and the photo shows around the card. */
	.bis-cp .bis-cp-hero__bg img {
		opacity: .62;
		-webkit-mask-image: linear-gradient(90deg, transparent 22%, rgba(0, 0, 0, .55) 52%, #000 85%);
		mask-image: linear-gradient(90deg, transparent 22%, rgba(0, 0, 0, .55) 52%, #000 85%);
	}
	.bis-cp-hero__bg::before {
		background:
			radial-gradient(45% 80% at 10% 0%, rgba(0, 154, 203, .32) 0%, rgba(0, 154, 203, 0) 70%),
			radial-gradient(35% 60% at 70% 100%, rgba(141, 195, 63, .12) 0%, rgba(141, 195, 63, 0) 70%),
			linear-gradient(90deg, rgba(7, 24, 39, .2) 0%, rgba(7, 24, 39, .1) 55%, rgba(7, 24, 39, .45) 100%),
			linear-gradient(180deg, rgba(7, 24, 39, 0) 60%, rgba(7, 24, 39, .5) 100%);
	}
	.bis-cp-card { align-self: start; position: sticky; top: 96px; margin: 56px 0 48px; }
	.bis-cp-content { padding: 48px 0 64px; }
	.bis-cp-team { padding: 32px 0 80px; }
	.bis-cp-team__panel { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 56px; padding: 56px 64px; }
	.bis-cp-cards { grid-template-columns: repeat(4, 1fr); }
	.bis-cp-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.bis-cp *,
	.bis-cp-bar { transition: none !important; }
}
