﻿.class-list {
	width: 100%;
	font-family: 'Jost', sans-serif;
	box-sizing: border-box;
}

	.class-list *,
	.class-list *::before,
	.class-list *::after {
		box-sizing: border-box;
	}

.class-list-message {
	padding: 12px 14px;
	margin: 0 0 14px 0;
	background: #fff3cd;
	border: 1px solid #ffeeba;
	border-radius: 10px;
}

.class-list-items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
	gap: 16px;
	align-items: stretch;
	justify-content: start;
	width: 100%;
}

.class-list-item {
	width: 100%;
	max-width: 260px;
	min-height: 132px;
	display: block;
	padding: 18px 20px;
	border: 1px solid #d8dde2;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
	overflow: hidden;
}

.class-list-main {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}

.class-list-meta {
	font-size: 0.9em;
	line-height: 1.35;
	font-weight: 600;
	color: #1f2933;
	margin: 0 0 10px 0;
}

.class-list-class-name {
	font-size: 0.9em;
	line-height: 1.3;
	color: #4b5563;
	margin: 0 0 14px 0;
}

.class-list-title,
.class-list-date {
	display: none !important;
}

.class-list-status {
	display: inline-block;
	align-self: flex-start;
	border-radius: 999px;
	padding: 6px 12px;
	font-size:0.9em;
	line-height: 1.2;
	font-weight: 400;
	white-space: nowrap;
	background: rgba(0,0,0,0.08);
	margin-top: 0px;
}

	.class-list-status.available {
		background: #e8f5ee;
		color: #24734c;
	}

	.class-list-status.nearly-full {
		background: #fff4d6;
		color: #8a6200;
	}

	.class-list-status.fully-booked {
		background: #f8dddd;
		color: #8a1f1f;
	}

@media (max-width: 640px) {
	.class-list-items {
		grid-template-columns: 1fr;
	}

	.class-list-item {
		max-width: none;
	}
}
