@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&family=Jura:wght@300..700&family=Shantell+Sans:ital,wght@0,300..800;1,300..800&display=swap');

.courses-hero {
	text-align: center;
	margin-bottom: 1.5rem;
	margin-top: 1rem;
}

.courses-hero-ru h1 {
	font-family: "Shantell Sans", cursive;
	color: #39FF14;
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.courses-hero,
.courses-hero-ru p {
	font-size: 1.5rem;
	color: #aaa;
}

.filters {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 2rem;
}

.filter-btn {
	background-color: #39ff14;
	color: #000;
	padding: 0.7em 1.5em;
	font-size: 1rem;
	border: none;
	font-family: "Jura", sans-serif;
	border-radius: 5px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
}

.filter-btn:hover {
	background-color: #69d454;
}

.course-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	padding: 0 2rem;
	max-width: 1200px;
	margin: 0 auto 3rem;
}

.course-card {
	background-color: #282828;
	color: #ffffff;
	border-radius: 12px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 420px;
	box-shadow: 0 2px 5px rgba(57, 255, 20, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(57, 255, 20, 0.4);
}

.course-meta h2 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	color: #39FF14;
	font-weight: 700;
}

.course-description {
	font-size: 1.2rem;
	color: #ffffff;
	margin-bottom: 1rem;
}

.course-detail {
	font-size: 1rem;
	margin: 0.2rem 0;
	color: #ffffff;
}

.course-extras {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}

.course-extras span {
	background-color: #121212;
	color: #39ff14;
	padding: 0.35em 0.8em;
	border-radius: 5px;
	font-size: 0.95rem;
	font-weight: 600;
}

.course-btn {
	margin-top: auto;
	padding: 0.6em 1em;
	background-color: #121212;
	color: #39ff14;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 5px;
	font-weight: bold;
	text-align: center;
	transition: background-color 0.2s ease-in-out, border 0.2s ease-in-out;
}

.course-btn:hover {
	background-color: #121212;
	border: 2px solid #39FF14;
}

@media (max-width: 600px) {
	.course-card {
		padding: 1.2rem;
		min-height: auto;
	}

	.course-meta h2 {
		font-size: 1.3rem;
	}

	.course-description {
		font-size: 1rem;
	}

	.course-detail {
		font-size: 0.9rem;
	}

	.course-extras span {
		font-size: 0.75rem;
		padding: 0.3em 0.6em;
	}

	.course-btn {
		font-size: 0.95rem;
		padding: 0.5em 1em;
	}
}
