/* ==========================================================================
   Trigenics — Course Registration list view (date-ordered, grouped by month)
   ========================================================================== */

.tg-course-list {
	max-width: 900px;
	margin: 0 auto;
}

.tg-course-month-heading {
	margin: 40px 0 16px;
	padding-bottom: 8px;
	font-size: 20px;
	font-weight: 700;
	color: #1e73be;
	border-bottom: 2px solid #e2f7ff;
}
.tg-course-month-heading:first-child {
	margin-top: 4px;
}

.tg-course-past-heading {
	color: #8a97a6;
	border-bottom-color: #eef1f4;
}
.tg-course-past-note {
	margin: -8px 0 16px;
	font-size: 13px;
	color: #8a97a6;
}
.tg-course-none-upcoming {
	padding: 24px;
	background: #f7fafc;
	border-radius: 10px;
	color: #5c6b7a;
}

.tg-course-row {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px;
	margin-bottom: 14px;
	background: #fff;
	border: 1px solid #eef1f4;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(20, 40, 70, .05);
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.tg-course-row:hover {
	box-shadow: 0 10px 24px rgba(20, 40, 70, .12);
	border-color: #d6ecf5;
	transform: translateY(-1px);
}

/* Past courses read as visually de-emphasized */
.tg-course-past-heading ~ .tg-course-row {
	opacity: .72;
}

.tg-course-row-thumb {
	flex: 0 0 auto;
	display: block;
	width: 76px;
	height: 76px;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(135deg, #1e73be 0%, #00c1cf 100%);
}
.tg-course-row-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tg-course-row-thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: rgba(255, 255, 255, .9);
	font-size: 26px;
}

.tg-course-row-body {
	flex: 1 1 auto;
	min-width: 0;
}
.tg-course-row-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: #00a4b0;
}
.tg-course-row-title {
	margin: 4px 0 0;
	font-size: 17px;
	line-height: 1.35;
}
.tg-course-row-title a {
	color: #2b3a4a;
	text-decoration: none;
}
.tg-course-row-title a:hover {
	color: #1e73be;
	text-decoration: underline;
}

.tg-course-row-side {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	text-align: right;
}
.tg-course-row-price {
	font-size: 14px;
	font-weight: 700;
	color: #33475b;
	white-space: nowrap;
}
.tg-course-row-price del {
	margin-right: 4px;
	font-weight: 400;
	color: #b0b9c3;
}
.tg-course-row-price ins {
	text-decoration: none;
}
.tg-course-row-cta {
	display: inline-block;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: #00c1cf;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .18s ease;
}
.tg-course-row-cta:hover {
	background: #00a4b0;
	color: #fff;
}

@media (max-width: 600px) {
	.tg-course-row {
		flex-wrap: wrap;
	}
	.tg-course-row-side {
		flex: 1 1 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		margin-top: 8px;
		padding-top: 12px;
		border-top: 1px solid #eef1f4;
	}
}
