/* ====================== Mobile and Up ========================== */

/* DEGREE CARDS - CODED BY AL BAKER */
.degree-card {
	background-color: #fff;
	min-height: 200px;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
	box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
	border-radius: 8px;
	overflow: hidden;
}
.degree-card + .degree-card {
	margin-block-start: 30px;
}
.degree-card.short-card {
	height: 100%;
}
p + .degree-card,
a + .degree-card,
ul + .degree-card,
.main-degree {
	margin-block-start: 40px;
}
.degree-card .degree-name {
	margin: 0;
	padding-block-end: 10px;
	border-bottom: 4px solid #eaeaea;
}
.degree-card .degree-name,
.degree-card .degree-name a {
	font-family: 'Rajdhani', Arial, sans-serif;
	font-size: 20px;
	font-weight: bold;
	text-transform: uppercase;
	color: #000;
}
.degree-card .degree-name a:hover {
	text-decoration: underline;
}
.degree-card .degree-credits {
	color: #275d38;
	font-weight: 500;
	font-family: 'Rajdhani', Arial, sans-serif;
	font-size: 18px;
	margin: 20px 0 10px 0;
}
.degree-card img {
	object-fit: cover;
	order: -1;
	max-height: 194px;
	grid-area: img;
	width: 100%;
}
.degree-card div {
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	font-size: 14px;
	grid-area: content;
}

/* ====================== Tablet and Up (Overrides Mobile Styles) ========================== */
@media only screen and (min-width: 768px) {
	.degree-card {
		display: grid;
		grid-template-areas: 'img content';
	}
	.degree-card img {
		object-fit: cover;
		max-height: none;
		height: 100%;
	}
	.short-card {
		grid-template-columns: 200px 1fr;
	}
	.short-card img {
		max-width: 200px;
	}
	.large-card {
		grid-template-columns: 250px 1fr;
	}
	.large-card img {
		max-width: 250px;
	}
}
