div.courses-list {
	text-align: center;
}

div.course-tile {
	display: grid;
	grid-template-areas: "image info";
	grid-template-columns: max-content auto;
	height: max-content;
	width: 80%;
	padding: 0.75rem;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	margin: auto;
	margin-bottom: 1.5rem;

	gap: 1rem;
}

div.course-tile:hover {
	background-color: #EEEEEE;
	transition: 300ms background-color;
}

div.course-tile:not(:hover) {
	background-color: none;
	transition: 600ms background-color;
}

div.course-tile div.image {
	grid-area: image;
	display: flex;
	flex-flow: column nowrap;
	gap: 0.5rem;
	width: 12rem;
	height: max-content;
}

div.course-tile div.image img {
	width: 100%;
	aspect-ratio: 1 / 1;
}

div.course-tile div.image div.buttons {
	display: flex;
	flex-flow: column nowrap;
	gap: 0.5rem;
	text-align: center;
}

div.course-tile div.course-info {
	grid-area: info;
}

@media screen and (width < 700px) {
	div.course-tile {
		display: flex;
		flex-flow: column nowrap;

		width: 100%;
		gap: 0.5rem;
	}

	div.course-tile div.image {
		flex-flow: row nowrap;
		width: 100%;
		height: 9rem;
	}

	div.course-tile div.image img {
		height: 100%;
		width: auto;
		aspect-ratio: 1 / 1;
	}

	div.course-tile div.image div.buttons {
		align-items: center;
		width: 100%;
	}

	div.course-tile div.image div.buttons a.button {
		width: 100%;
	}
}
