/* ─────────────────────────────────────────────────────────────────────────
   Backflow — Course Overview Page
   frontend-course-overview.css
   BEM prefixes: backflow-course-overview / backflow-course-jump-links
   ───────────────────────────────────────────────────────────────────────── */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
	--wits-navy:         #1A3E6F;
	--wits-orange:       #E8601A;
	--wits-orange-dk:    #BF4A10;
	--wits-orange-lt:    #FEF0E8;
	--wits-blue-tint:    #EEF3FB;
	--wits-border:       #DDE3EE;
	--wits-body:         #1F2937;
	--wits-muted:        #5A6478;
	--wits-lighter:      #9AA3B2;
	--wits-r-card:       8px;
	--wits-r-btn:        999px;
	--wits-shadow:       0 2px 12px rgba(26, 62, 111, 0.08);
	--wits-shadow-hover: 0 6px 28px rgba(26, 62, 111, 0.14);
}

/* ── Jump Nav ────────────────────────────────────────────────────────────── */
.backflow-course-jump-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 20px 0;
	border-bottom: 1px solid var(--wits-border);
	margin-bottom: 36px;
}

.backflow-course-jump-links__label {
	font-family: "Manrope", sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: var(--wits-lighter);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-right: 4px;
	white-space: nowrap;
}

.backflow-course-jump-links__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px 8px 12px;
	border-radius: 6px;
	border: 1.5px solid var(--wits-border);
	background: #ffffff;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--wits-navy);
	text-decoration: none;
	transition: all 0.18s ease;
	white-space: nowrap;
}

.backflow-course-jump-links__link:hover {
	border-color: var(--wits-navy);
	background: var(--wits-blue-tint);
	color: var(--wits-navy);
}

.backflow-course-jump-links__link:visited,
.backflow-course-jump-links__link:active {
	color: var(--wits-navy);
}

.backflow-course-jump-links__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wits-orange);
	flex-shrink: 0;
}

/* ── Card shell ──────────────────────────────────────────────────────────── */
.backflow-course-overview {
	display: grid;
	grid-template-columns: 1fr 300px;
	background: #ffffff;
	border: 1.5px solid var(--wits-border);
	border-radius: var(--wits-r-card);
	overflow: hidden;
	box-shadow: var(--wits-shadow);
	transition: box-shadow 0.2s ease;
}

.backflow-course-overview:hover {
	box-shadow: var(--wits-shadow-hover);
}

/* ── Main panel ──────────────────────────────────────────────────────────── */
.backflow-course-overview__main {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 28px 28px 24px;
	border-right: 1.5px solid var(--wits-border);
}

/* ── Icon ────────────────────────────────────────────────────────────────── */
.backflow-course-overview__icon-wrap {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	border-radius: 10px;
	background: var(--wits-blue-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.backflow-course-overview__icon {
	width: 96px;
	height: 96px;
	object-fit: contain;
	display: block;
}

/* ── Content ─────────────────────────────────────────────────────────────── */
.backflow-course-overview__content {
	flex: 1;
	min-width: 0;
}

.backflow-course-overview__badge {
	display: inline-block;
	font-family: "Manrope", sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: var(--wits-orange-dk);
	background: var(--wits-orange-lt);
	border-radius: 4px;
	padding: 3px 10px;
	margin-bottom: 8px;
	letter-spacing: 0.02em;
}

.backflow-course-overview__title {
	font-family: "Outfit", sans-serif;
	font-size: 24px;
	font-weight: 600;
	color: var(--wits-navy);
	line-height: 1.25;
	margin-top: 0.5em;
	margin-bottom: 10px;
}

.backflow-course-overview__summary {
	font-size: 15px;
	color: var(--wits-muted);
	line-height: 1.6;
	margin-bottom: 18px;
}

/* ── Meta grid ───────────────────────────────────────────────────────────── */
.backflow-course-overview__meta {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 20px;
}

.backflow-course-overview__meta-item {
	display: flex;
	align-items: flex-start;
	gap: 9px;
}

/* Icon box — font-size:0 hides the unicode char; ::after renders the SVG */
.backflow-course-overview__meta-icon {
	font-size: 0;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	background: var(--wits-blue-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

.backflow-course-overview__meta-item--hours .backflow-course-overview__meta-icon::after {
	content: "";
	width: 14px;
	height: 14px;
	background: var(--wits-navy);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center/contain no-repeat;
}

.backflow-course-overview__meta-item--schedule .backflow-course-overview__meta-icon::after {
	content: "";
	width: 14px;
	height: 14px;
	background: var(--wits-navy);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
}

.backflow-course-overview__meta-item--price .backflow-course-overview__meta-icon::after {
	content: "";
	width: 14px;
	height: 14px;
	background: var(--wits-navy);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v12M9 9h4.5a1.5 1.5 0 0 1 0 3h-3a1.5 1.5 0 0 0 0 3H15'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v12M9 9h4.5a1.5 1.5 0 0 1 0 3h-3a1.5 1.5 0 0 0 0 3H15'/%3E%3C/svg%3E") center/contain no-repeat;
}

.backflow-course-overview__meta-item--materials .backflow-course-overview__meta-icon::after {
	content: "";
	width: 14px;
	height: 14px;
	background: var(--wits-navy);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.backflow-course-overview__meta-item--instructor .backflow-course-overview__meta-icon::after {
	content: "";
	width: 14px;
	height: 14px;
	background: var(--wits-navy);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.backflow-course-overview__meta-text {
	flex: 1;
}

.backflow-course-overview__meta-label {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wits-lighter);
	line-height: 1.2;
	margin-bottom: 2px;
}

.backflow-course-overview__meta-text strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--wits-body);
	line-height: 1.35;
}

/* ── View Details button ─────────────────────────────────────────────────── */
.backflow-course-overview__details-button {
	display: inline-flex;
	align-items: center;
	font-family: "Manrope", sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--wits-navy);
	border: 1.5px solid var(--wits-navy);
	background: transparent;
	border-radius: 6px;
	padding: 8px 20px;
	text-decoration: none;
	transition: all 0.18s ease;
	letter-spacing: 0.01em;
}

.backflow-course-overview__details-button:hover,
.backflow-course-overview__details-button:visited:hover {
	background: var(--wits-navy);
	color: #ffffff;
}

.backflow-course-overview__details-button:visited,
.backflow-course-overview__details-button:active {
	color: var(--wits-navy);
}

/* ── Sessions panel ──────────────────────────────────────────────────────── */
.backflow-course-overview__sessions {
	display: flex;
	flex-direction: column;
	background: #F8FAFD;
}

.backflow-course-overview__sessions-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: var(--wits-navy);
}

.backflow-course-overview__sessions-title {
	font-family: "Outfit", sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	gap: 7px;
}

/* PHP outputs <span aria-hidden="true">▭</span> — hide it; ::before provides the SVG */
.backflow-course-overview__sessions-title span[aria-hidden="true"] {
	display: none;
}

.backflow-course-overview__sessions-title::before {
	content: "";
	width: 13px;
	height: 13px;
	background: rgba(255, 255, 255, 0.5);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
	flex-shrink: 0;
}

.backflow-course-overview__sessions-view-all {
	font-family: "Manrope", sans-serif;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color 0.15s;
	white-space: nowrap;
}

.backflow-course-overview__sessions-view-all:hover {
	color: var(--wits-orange);
}

.backflow-course-overview__sessions-view-all:visited,
.backflow-course-overview__sessions-view-all:active {
	color: rgba(255, 255, 255, 0.55);
}

/* ── Session rows ────────────────────────────────────────────────────────── */
.backflow-course-overview__session {
	display: grid;
	grid-template-columns: 54px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-bottom: 1px solid var(--wits-border);
}

.backflow-course-overview__session:last-child {
	border-bottom: none;
}

/* ── Date badge ──────────────────────────────────────────────────────────── */
.backflow-course-overview__session-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.backflow-course-overview__session-month {
	font-family: "Manrope", sans-serif;
	font-size: 9.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--wits-lighter);
	display: block;
	line-height: 1;
	margin-bottom: 2px;
}

.backflow-course-overview__session-day {
	font-family: "Outfit", sans-serif;
	font-size: 19px;
	font-weight: 600;
	color: var(--wits-orange);
	display: block;
	line-height: 1.05;
}

.backflow-course-overview__session-year {
	font-family: "Manrope", sans-serif;
	font-size: 9px;
	color: var(--wits-lighter);
	display: block;
	line-height: 1.3;
	margin-top: 1px;
}

/* ── Session info ────────────────────────────────────────────────────────── */
.backflow-course-overview__session-info {
	min-width: 0;
}

.backflow-course-overview__session-location {
	font-size: 13px;
	color: var(--wits-muted);
	line-height: 1.35;
	margin: 0 0 3px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.backflow-course-overview__session-location::before {
	content: "";
	width: 10px;
	height: 10px;
	background: var(--wits-lighter);
	flex-shrink: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.backflow-course-overview__session-seats {
	font-size: 13px;
	font-weight: 600;
	color: var(--wits-orange-dk);
	line-height: 1.2;
	margin: 0;
}

.backflow-course-overview__session--few-seats .backflow-course-overview__session-seats {
	color: #C0392B;
}

.backflow-course-overview__session-status {
	font-size: 11px;
	color: var(--wits-lighter);
	font-style: italic;
	line-height: 1.2;
	margin: 0;
}

/* ── Session action ──────────────────────────────────────────────────────── */
.backflow-course-overview__session-action {
	flex-shrink: 0;
}

.backflow-course-overview__enroll-button {
	display: inline-block;
	font-family: "Manrope", sans-serif;
	font-size: 13px;
	font-weight: 700;
	background: var(--wits-orange);
	color: #ffffff;
	border-radius: 6px;
	padding: 8px 15px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.18s ease;
	letter-spacing: 0.01em;
}

.backflow-course-overview__enroll-button:hover {
	background: var(--wits-orange-dk);
	color: #ffffff;
}

.backflow-course-overview__enroll-button:visited,
.backflow-course-overview__enroll-button:active {
	color: #ffffff;
}

.backflow-course-overview__closed-pill {
	display: inline-block;
	font-family: "Manrope", sans-serif;
	font-size: 11px;
	font-weight: 500;
	color: var(--wits-lighter);
	background: var(--wits-border);
	border-radius: var(--wits-r-btn);
	padding: 5px 12px;
	white-space: nowrap;
}

.backflow-course-overview__inprogress-pill {
	display: inline-block;
	font-family: "Manrope", sans-serif;
	font-size: 11px;
	font-weight: 500;
	color: var(--wits-navy);
	background: var(--wits-blue-tint);
	border-radius: var(--wits-r-btn);
	padding: 5px 12px;
	white-space: nowrap;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.backflow-course-overview__empty {
	padding: 28px 18px;
	font-size: 13px;
	color: var(--wits-muted);
	text-align: center;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Course Detail Page
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Facts bar ───────────────────────────────────────────────────────────── */
.backflow-course-detail__facts {
	display: flex;
	flex-wrap: wrap;
	background: #ffffff;
	border: 1.5px solid var(--wits-border);
	border-radius: var(--wits-r-card);
	overflow: hidden;
	margin-bottom: 32px;
	box-shadow: var(--wits-shadow);
}

.backflow-course-detail__fact {
	flex: 1 1 140px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 16px 20px;
	border-right: 1px solid var(--wits-border);
	position: relative;
}

.backflow-course-detail__fact:last-child {
	border-right: none;
}

.backflow-course-detail__fact-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wits-lighter);
	margin-bottom: 4px;
	line-height: 1;
}

.backflow-course-detail__fact-value {
	display: block;
	font-family: "Outfit", sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--wits-navy);
	line-height: 1.3;
}

/* ── Two-column layout ───────────────────────────────────────────────────── */
.backflow-course-detail__layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 28px;
	align-items: start;
}

/* ── Main content ────────────────────────────────────────────────────────── */
.backflow-course-detail__content {
	background: #ffffff;
	border: 1.5px solid var(--wits-border);
	border-radius: var(--wits-r-card);
	padding: 32px;
	box-shadow: var(--wits-shadow);
}

.backflow-course-detail__content h2,
.backflow-course-detail__content h3 {
	font-family: "Outfit", sans-serif;
	color: var(--wits-navy);
	font-weight: 600;
	margin: 1.4em 0 0.5em;
	line-height: 1.3;
}

.backflow-course-detail__content h2 {
	font-size: 22px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--wits-orange);
	display: inline-block;
}

.backflow-course-detail__content h3 {
	font-size: 18px;
}

.backflow-course-detail__content h2:first-child,
.backflow-course-detail__content h3:first-child {
	margin-top: 0;
}

.backflow-course-detail__content p {
	font-size: 16px;
	color: var(--wits-muted);
	margin-bottom: 1em;
	line-height: 1.75;
}

.backflow-course-detail__content p:last-child {
	margin-bottom: 0;
}

.backflow-course-detail__content ul,
.backflow-course-detail__content ol {
	padding-left: 0;
	margin: 0 0 1em;
	list-style: none;
}

.backflow-course-detail__content li {
	font-size: 16px;
	color: var(--wits-muted);
	padding: 4px 0 4px 18px;
	position: relative;
	line-height: 1.6;
}

.backflow-course-detail__content li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wits-orange);
}

/* ── Back link ───────────────────────────────────────────────────────────── */
.backflow-course-detail__back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Manrope", sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: var(--wits-muted);
	text-decoration: none;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--wits-border);
	transition: color 0.15s;
	width: 100%;
}

.backflow-course-detail__back-link:hover {
	color: var(--wits-navy);
}

.backflow-course-detail__back-link:visited,
.backflow-course-detail__back-link:active {
	color: var(--wits-muted);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.backflow-course-detail__sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 24px;
}

/* ── Sidebar cards ───────────────────────────────────────────────────────── */
.backflow-course-detail__sidebar-card {
	background: #ffffff;
	border: 1.5px solid var(--wits-border);
	border-radius: var(--wits-r-card);
	overflow: hidden;
	box-shadow: var(--wits-shadow);
}

.backflow-course-detail__sidebar-title {
	font-family: "Outfit", sans-serif;
	font-size: 13.5px;
	font-weight: 500;
	color: #ffffff;
	background: var(--wits-navy);
	padding: 12px 18px;
	margin: 0;
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	gap: 7px;
	line-height: 1.4;
}

.backflow-course-detail__sidebar-title::before {
	content: "";
	width: 12px;
	height: 12px;
	background: rgba(255, 255, 255, 0.45);
	flex-shrink: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* View-all link inside sessions sidebar title */
.backflow-course-detail__sidebar-view-all {
	margin-left: auto;
	font-family: "Manrope", sans-serif;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color 0.15s;
	white-space: nowrap;
}

.backflow-course-detail__sidebar-view-all:hover,
.backflow-course-detail__sidebar-view-all:visited:hover {
	color: var(--wits-orange);
}

.backflow-course-detail__sidebar-view-all:visited,
.backflow-course-detail__sidebar-view-all:active {
	color: rgba(255, 255, 255, 0.55);
}

/* Materials card header — book icon */
.backflow-course-detail__sidebar-card:nth-child(2) .backflow-course-detail__sidebar-title::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.backflow-course-detail__sidebar-card-inner {
	padding: 16px 18px;
}

.backflow-course-detail__materials {
	font-size: 14.5px;
	color: var(--wits-body);
	line-height: 1.6;
}

.backflow-course-detail__note-content {
	font-size: 14.5px;
	color: var(--wits-muted);
	line-height: 1.65;
	padding: 16px 18px;
}

.backflow-course-detail__note-content p {
	margin: 0 0 0.75em;
}

.backflow-course-detail__note-content p:last-child {
	margin-bottom: 0;
}

.backflow-course-detail__note-content strong {
	color: var(--wits-body);
	font-weight: 600;
}

/* ── Detail session rows ─────────────────────────────────────────────────── */
.backflow-course-detail__sessions-list {
	padding: 4px 0;
}

.backflow-course-detail__session {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--wits-border);
}

.backflow-course-detail__session:last-child {
	border-bottom: none;
}

.backflow-course-detail__session--in_progress {
	opacity: 0.7;
}

.backflow-course-detail__session-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex-shrink: 0;
	padding-top: 2px;
}

.backflow-course-detail__session-month {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--wits-lighter);
	display: block;
	line-height: 1;
	margin-bottom: 2px;
}

.backflow-course-detail__session-day {
	font-family: "Outfit", sans-serif;
	font-size: 22px;
	font-weight: 600;
	color: var(--wits-orange);
	display: block;
	line-height: 1.05;
}

.backflow-course-detail__session-year {
	font-size: 9px;
	color: var(--wits-lighter);
	display: block;
	line-height: 1.3;
	margin-top: 1px;
}

.backflow-course-detail__session-info {
	min-width: 0;
}

.backflow-course-detail__session-info p {
	font-size: 13.5px;
	color: var(--wits-muted);
	line-height: 1.4;
	margin-bottom: 3px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.backflow-course-detail__session-info p::before {
	content: "";
	width: 10px;
	height: 10px;
	background: var(--wits-lighter);
	flex-shrink: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.backflow-course-detail__session-seats {
	font-weight: 600;
	color: var(--wits-orange-dk) !important;
}

.backflow-course-detail__session-seats::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/contain no-repeat !important;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/contain no-repeat !important;
	background: var(--wits-orange-dk) !important;
}

.backflow-course-detail__session-status {
	font-style: italic;
	color: var(--wits-lighter) !important;
}

.backflow-course-detail__session-action {
	margin-top: 10px;
}

.backflow-course-detail__enroll-button {
	display: inline-block;
	font-family: "Manrope", sans-serif;
	font-size: 13px;
	font-weight: 700;
	background: var(--wits-orange);
	color: #ffffff;
	border-radius: 6px;
	padding: 8px 18px;
	text-decoration: none;
	transition: background 0.18s ease;
	letter-spacing: 0.01em;
	width: 100%;
	text-align: center;
}

.backflow-course-detail__enroll-button:hover {
	background: var(--wits-orange-dk);
	color: #ffffff;
}

.backflow-course-detail__enroll-button:visited,
.backflow-course-detail__enroll-button:active {
	color: #ffffff;
}

.backflow-course-detail__closed-pill {
	display: inline-block;
	font-family: "Manrope", sans-serif;
	font-size: 11px;
	font-weight: 500;
	color: var(--wits-lighter);
	background: var(--wits-border);
	border-radius: 6px;
	padding: 6px 14px;
	width: 100%;
	text-align: center;
}

.backflow-course-detail__empty {
	padding: 24px 18px;
	font-size: 13px;
	color: var(--wits-lighter);
	text-align: center;
}

/* ── Detail responsive ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
	.backflow-course-detail__layout {
		grid-template-columns: 1fr;
	}

	.backflow-course-detail__sidebar {
		position: static;
	}

	.backflow-course-detail__facts {
		flex-direction: column;
	}

	.backflow-course-detail__fact {
		border-right: none;
		border-bottom: 1px solid var(--wits-border);
		flex-direction: row;
		align-items: center;
		gap: 12px;
	}

	.backflow-course-detail__fact:last-child {
		border-bottom: none;
	}

	.backflow-course-detail__fact-label {
		margin-bottom: 0;
		min-width: 120px;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   All Sessions Page
   ═══════════════════════════════════════════════════════════════════════════ */

.backflow-all-sessions {
	max-width: 780px;
}

.backflow-all-sessions .backflow-course-detail__session {
	padding: 8px 0;
	grid-template-columns: 80px 1fr;
}

.backflow-all-sessions .backflow-course-detail__session-info {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.backflow-all-sessions .backflow-course-detail__session-info > p {
	margin: 0;
}

.backflow-all-sessions .backflow-course-detail__session-action {
	margin-top: 0;
	flex-shrink: 0;
}

.backflow-all-sessions .backflow-course-detail__enroll-button {
	width: auto;
	padding: 10px 28px;
	font-size: 14px;
}

.backflow-all-sessions .backflow-course-detail__session-month {
	font-size: 12px;
	white-space: nowrap;
}

.backflow-all-sessions .backflow-course-detail__session-day {
	font-size: 26px;
	white-space: nowrap;
}

.backflow-all-sessions .backflow-course-detail__session-year {
	font-size: 11px;
}

.backflow-all-sessions .backflow-course-detail__session-info p {
	font-size: 15px;
}

.backflow-all-sessions .backflow-course-detail__session-seats {
	font-size: 15px;
}

.backflow-all-sessions .backflow-all-sessions__back-link {
	font-size: 15px;
}

.backflow-all-sessions__back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--wits-muted);
	text-decoration: none;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--wits-border);
	width: 100%;
	transition: color 0.15s;
}

.backflow-all-sessions__back-link:hover {
	color: var(--wits-navy);
}

.backflow-all-sessions__back-link:visited {
	color: var(--wits-muted);
}

/* ── Overview responsive ─────────────────────────────────────────────────── */
@media (max-width: 700px) {
	.backflow-course-overview {
		grid-template-columns: 1fr;
	}

	.backflow-course-overview__main {
		border-right: none;
		border-bottom: 1.5px solid var(--wits-border);
	}

	.backflow-course-overview__meta {
		grid-template-columns: 1fr;
	}
}
