/**
 * SSDC Page Builder — frontend styles (Test Dates & inner pages)
 */

.st-desc--tight {
	max-width: 720px;
	margin-bottom: 0;
}

.st-section--tight {
	margin-top: -32px;
	margin-bottom: 40px;
}

.st-section--last {
	margin-bottom: 0;
	padding-bottom: 0;
}

.st-subtitle {
	font-family: var(--st-font-heading);
	font-size: 20px;
	font-weight: 800;
	color: var(--st-navy);
	margin: 0 0 16px;
}

.st-note-wrap {
	margin-top: 20px;
}

.st-note {
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--st-border);
	background: var(--st-bg-light);
	font-size: 14px;
	line-height: 1.6;
	color: var(--st-text-body);
}

.st-note strong {
	color: var(--st-navy);
}

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

.st-info-list__item {
	padding: 16px 18px;
	border: 1px solid var(--st-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(10, 31, 87, 0.04);
}

.st-info-list__title {
	display: block;
	margin-bottom: 4px;
	color: var(--st-navy);
	font-family: var(--st-font-heading);
	font-size: 16px;
}

.st-info-list__text {
	display: block;
	color: var(--st-text-muted);
	font-size: 14px;
	line-height: 1.55;
}

.st-footer-link {
	margin: 0;
	font-size: 14px;
	color: var(--st-text-muted);
}

.st-link {
	color: var(--st-blue);
	font-weight: 600;
	text-decoration: none;
}

.st-link:hover {
	color: var(--st-navy);
	text-decoration: underline;
}

.ssdc-page-builder__content > .acf-block-body,
.ssdc-page-builder__content > [class*="wp-block-acf-ssdc-page"] {
	margin: 0;
}

.st-page .ssdc-cta-banner.ssdc-page-schedule-cta {
	margin-top: 0;
	margin-bottom: 0;
}

.st-page .tablepress-scroll-wrapper {
	margin-top: 8px;
	overflow-x: auto;
}

.st-page .tablepress {
	width: 100%;
	border-collapse: collapse;
}

.st-page .tablepress th,
.st-page .tablepress td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--st-border);
}

.st-page .tablepress thead th {
	font-family: var(--st-font-heading);
	color: var(--st-navy);
	background: var(--st-bg-light);
}

/* Two-column layout + callout (reusable) */
.ssdc-split {
	padding: 48px 0 24px;
}

.ssdc-split__grid {
	width: 100%;
	max-width: var(--ssdc-page-max, none);
	margin: 0 auto;
	padding: 0 var(--ssdc-gutter, 112px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	box-sizing: border-box;
}

.ssdc-split__inner,
.ssdc-split .acf-innerblocks-container {
	display: contents;
}

.ssdc-callout__head {
	padding: 0 0 32px;
	max-width: none;
	margin: 0;
}

.ssdc-callout__box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
}

/* Note Card Block */
.ssdc-note-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
}

.ssdc-note-card__title {
	margin: 0 0 12px;
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
	color: #020617;
}

.ssdc-note-card__text {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: #1e293b;
}

.ssdc-callout__title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
	color: #020617;
}

.ssdc-callout__text {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: #1e293b;
}

.td-booking__inner,
.td-booking .acf-innerblocks-container {
	display: contents;
}

.td-booking--stack .td-booking__grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ssdc-split .td-booking--stack .td-card {
	border-color: #94a3b8;
}

.ssdc-split .td-booking {
	padding: 0;
}

.ssdc-split .td-booking__grid {
	max-width: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 900px) {
	.ssdc-split__grid {
		grid-template-columns: 1fr;
		padding: 0 16px;
	}
}

/* When media column is absent/empty, text uses full width (no reserved blank column) */
.ssdc-split--no-media .ssdc-split__grid,
.ssdc-split__grid:has(> .ssdc-split__col--copy:only-child),
.ssdc-split__grid:has(> .ssdc-split__col--media:empty),
.ssdc-split__grid:not(:has(.ssdc-page-media)):not(:has(.ssdc-page-media--placeholder)):has(> *:only-child) {
	grid-template-columns: 1fr;
}

.ssdc-split__col--media:empty {
	display: none;
}

/* Split image column */
.ssdc-page-media {
	margin: 0;
}

.ssdc-page-media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	border-radius: 16px;
	border: 1.5px dashed #cbd5e1;
	background: #f8fafc;
	color: #94a3b8;
	font-size: 14px;
}

.ssdc-page-media__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	object-fit: cover;
}

.ssdc-split--image-left .ssdc-split__grid > :first-child {
	order: 1;
}

.ssdc-split--image-left .ssdc-split__grid > :last-child {
	order: 2;
}

/* Course section inside split */
.ssdc-split .ssdc-crs-sect {
	margin: 0;
	padding: 0;
	width: 100%;
}

.ssdc-split .ssdc-crs-sect .ssdc-crs-eyebrow {
	display: block;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.ssdc-split .ssdc-crs-sect .ssdc-crs-eyebrow--red {
	color: #e11d48;
}

.ssdc-split .ssdc-crs-sect .ssdc-crs-sect-title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.25;
	color: #0f172a;
	margin: 0 0 24px;
}

.ssdc-split .ssdc-crs-sect .ssdc-crs-rte {
	font-size: 16px;
	line-height: 1.6;
	color: #334155;
}

