main {
	padding: 4rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;

	background-image: var(--bg-image);
	background-repeat: no-repeat;
	background-position: center right;
}

.course-header div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.course-header h2 {
	font-size: 2rem;
	color: var(--bg2);
}

.course-list {
	max-width: 1280px;
	margin-inline: auto;
}

.course-list > div {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

.course-item {
	display: flex;
	justify-content: space-between;
	align-items: start;
	gap: 2rem;
}

.course-item > div {
	width: 50%;
}

@media (max-width: 960px) {
	.course-item {
		align-items: center;
	}

	.course-item:nth-child(2n) {
		flex-direction: column;
	}

	.course-item:nth-child(2n-1) {
		flex-direction: column-reverse;
	}

	.course-item > div {
		width: 100%;
	}
}

.course-item > figure {
	border: solid 1px var(--secondary);
	padding: 1.5rem;
	position: relative;
	flex-shrink: 0;
}

figure::after {
	content: '';
	border: solid 1px var(--bg2);
	position: absolute;
	top: 4px;
	left: 4px;
	width: 100%;
	height: 100%;
}

.course-item h2 {
	color: var(--secondary);
	font-size: 2rem;
	text-transform: uppercase;
}

.course-item h2::before {
	content: '';
	display: inline-block;
	background-color: var(--secondary);
	width: 4rem;
	height: 0.25rem;
	margin-bottom: 0.5rem;
	margin-right: 0.5rem;
}

.course-item p {
	padding-block: 1rem;
}

.course-item li {
	margin-left: 2rem;
}
