/* ============================================================
   Prospen Shared Blocks — Component CSS
   All classes use the psc- prefix so they never collide with
   Courses Manager's own CSS (courses-style-*.css).
   Loaded only on URLs matching the patterns in
   prospen-shared-blocks.php (default: /training-course/).
   ============================================================ */

/* ---------- 1. Card grid (duration / comparison cards) ---------- */

.psc-card-grid-wrap {
	font-family: inherit;
	width: 100%;
	box-sizing: border-box;
}

.psc-card-grid-wrap * {
	box-sizing: border-box;
}

.psc-header-section {
	text-align: center;
	margin-bottom: 35px;
}

.psc-header-section h2 {
	font-size: 2rem;
	color: #000000;
	margin: 0 0 12px 0;
	line-height: 1.2;
}

.psc-header-section p {
	font-size: 1.1rem;
	color: #535153;
	max-width: 100%;
	margin: 0 auto;
	line-height: 1.6;
}

.psc-card-grid {
	display: flex;
	flex-direction: column;
	gap: 25px;
	width: 100%;
}

.psc-card {
	background-color: #ffffff;
	border: 1px solid #e1e2e1;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.psc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.psc-card--standard {
	border-top: 5px solid #535153;
}

.psc-card--featured {
	border-top: 5px solid #d58037;
}

.psc-card-title {
	font-size: 1.4rem;
	color: #000000;
	margin: 0 0 15px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.psc-card-badge {
	font-size: 0.8rem;
	padding: 4px 12px;
	border-radius: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.psc-card--standard .psc-card-badge {
	background-color: #e1e2e1;
	color: #000000;
}

.psc-card--featured .psc-card-badge {
	background-color: #d58037;
	color: #ffffff;
}

.psc-card-body {
	font-size: 0.98rem;
	color: #535153;
	line-height: 1.6;
	margin-bottom: 20px;
}

.psc-ideal-for {
	background-color: rgba(225, 226, 225, 0.3);
	border-left: 4px solid #d58037;
	padding: 12px 15px;
	border-radius: 0 4px 4px 0;
	font-size: 0.9rem;
	color: #535153;
	line-height: 1.5;
	margin-top: auto;
}

.psc-ideal-for strong {
	color: #000000;
}

.psc-delivery-note {
	text-align: center;
	margin-top: 25px;
	font-size: 0.95rem;
	color: #535153;
	line-height: 1.5;
}

@media (min-width: 768px) {
	.psc-card-grid {
		flex-direction: row;
	}

	.psc-card {
		flex: 1;
	}

	.psc-header-section h2 {
		font-size: 2.25rem;
	}
}

/* ---------- 1b. Card grid modifier: fixed 2-column layout with an
   optional full-width featured row (e.g. two assessment cards side by
   side, plus a FISA/summary card spanning both columns underneath).
   Opt-in via psc-card-grid--2col so it never affects the default
   flex-row .psc-card-grid used elsewhere. ---------- */

.psc-card-grid.psc-card-grid--2col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.psc-card-grid--2col .psc-card {
	width: 100%;
	height: 100%;
	padding: 20px;
	flex: initial;
}

.psc-card-grid--2col .psc-card--featured {
	grid-column: 1 / -1;
}

.psc-card-grid--2col .psc-card-title {
	margin-bottom: 8px;
}

.psc-card-grid--2col .psc-card--standard .psc-card-body {
	margin-top: 20px;
	margin-bottom: 5px;
}

.psc-card-grid--2col .psc-card--featured .psc-card-body {
	margin-top: 0;
	margin-bottom: 0;
}

/* Optional content wrapper for a full-height inner block inside a
   stretched grid card — only needed if the card's content itself
   should fill the card's stretched height (e.g. for future vertical
   centering); plain content without it still lays out correctly. */
.psc-card-content {
	height: 100%;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.psc-card-grid.psc-card-grid--2col {
		grid-template-columns: 1fr;
	}

	.psc-card-grid--2col .psc-card--featured {
		grid-column: 1;
	}
}

/* ---------- 2. Outline / module / tick-bullet list blocks ---------- */

.psc-outline {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	width: 100%;
	margin: 0;
	padding: 0;
}

.psc-outline *,
.psc-outline *::before,
.psc-outline *::after {
	font-family: inherit;
	box-sizing: border-box;
}

.psc-outline-header {
	background-color: #f4f4f4;
	border-left: 5px solid #d58037;
	padding: 6px 14px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
}

.psc-outline-header h1 {
	font-size: 1.4em;
	font-weight: 700;
	margin: 0;
	color: #333333;
	letter-spacing: -0.2px;
	line-height: 1.2;
}

.psc-day-heading {
	font-size: 1.15em;
	font-weight: 700;
	color: #444444;
	margin: 12px 0 16px 0;
	letter-spacing: -0.3px;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 10px;
}

.psc-module-group {
	margin-bottom: 20px;
}

.psc-module-title {
	font-size: 1em;
	font-weight: 700;
	color: #444444;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

/* Tick-icon bullet list — reusable anywhere on a matching page,
   not just inside .psc-outline */
.psc-bullet-list {
	list-style: none;
	padding: 0;
	margin: 0 0 16px 0;
}

.psc-bullet-list li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 8px;
	font-size: 0.95em;
	line-height: 1.45;
	color: inherit;
}

.psc-bullet-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.25em;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D58037'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

.psc-section-divider {
	border: none;
	border-top: 2px solid #eaeaea;
	margin: 24px 0;
}

.psc-section-divider--thick {
	border-top-width: 4px;
}

/* ---------- 3. Button group / quick-links block ---------- */

.psc-button-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

.psc-button-group .psc-btn {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 2px 12px;
	min-height: 36px;
	box-sizing: border-box;
	cursor: pointer;
	font-size: 16px;
	font-family: inherit;
	font-weight: inherit;
	line-height: 1.2;
	text-transform: none !important;
	text-decoration: none;
	background-color: #ffffff;
	border-style: solid !important;
	border-width: 2px !important;
	border-color: #cccccc !important;
	border-radius: 8px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.psc-button-group .psc-btn > span:first-child {
	flex-grow: 1;
	text-align: center;
	color: #535153;
	font-size: 16px;
	font-family: inherit;
	font-weight: inherit;
	text-transform: none !important;
	text-decoration: none;
}

.psc-button-group .psc-btn.psc-btn-cta {
	border: none !important;
	background-color: transparent;
}

.psc-button-group .psc-btn.psc-btn-cta > span:first-child {
	color: #d58037;
}

.psc-button-group .psc-btn:hover {
	background-color: #f5f5f5;
	transform: translateY(-2px);
	border-color: #cccccc !important;
}

.psc-button-group .psc-btn.psc-btn-cta:hover {
	border: none !important;
	background-color: transparent;
}

.psc-button-group .psc-btn-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	box-sizing: border-box;
	background-color: #ffffff;
	border-style: solid;
	border-width: 2px;
	border-color: #cccccc;
	border-radius: 50%;
	color: #535153;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
	flex-shrink: 0;
}

.psc-button-group .psc-btn.psc-btn-cta .psc-btn-arrow {
	border-color: #d58037;
	color: #d58037;
}

.psc-button-group .psc-divider {
	border: none;
	border-top: 1px solid #e0e0e0;
	margin: 8px 0;
	width: 100%;
}

.psc-guide-card {
	background-color: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 16px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}

.psc-guide-card h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #333333;
}

.psc-guide-card p {
	margin: 0;
	font-size: 16px;
	color: #666666;
	line-height: 1.4;
}

.psc-guide-card .psc-guide-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 16px;
	margin-top: 4px;
	background-color: #d58037;
	color: #ffffff !important;
	text-decoration: none;
	font-weight: 400;
	font-size: 16px;
	border-radius: 6px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.psc-guide-card .psc-guide-btn:hover {
	background-color: #b86b2b;
	transform: translateY(-1px);
}
