section.section {
	background: rgba(217, 209, 199, 0.5);
	padding: 32px 0;
}

section.section h2 {
	text-align: center;
	font-weight: 300;
	font-size: 36px;
	line-height: 45px;
	color: #020873;
}

ul.cards {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

ul.cards li {
	width: calc(25% - ((20px * 3) / 4));
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
}

ul.cards li h3 {
	font-weight: 300;
	min-height: 2.5em;
	margin: 0;
	font-size: 20px;
	line-height: 25px;
}

ul.cards li>a {
	background: white;
	padding: 20px;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease;
	color: #020873;
	color: #585961;
	flex: 1;
	display: flex;
	flex-direction: column;
}

ul.cards li>a h3 {
	color: #020873;
}

ul.cards li>a p:last-child {
	margin: auto 0 0;
}

ul.cards li>a:hover h3 {
	color: white;
}

ul.cards li>a:hover {
	box-shadow: 0px 14px 60px rgba(0, 52, 55, 0.45);
	background: #78A6A9;
	color: white;
}

ul.cards li>a:active {
	background: #020873;
}

ul.cards li>a p.img {
	width: 100%;
	height: 0;
	padding-bottom: 75%;
	position: relative;
	transition: all 0.2s ease;
	background-repeat: no-repeat;
	background-size: cover;
}

ul.cards li>a p.img img {
	display: block;
	object-fit: cover;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

ul.cards li>a:hover p.img img {
	opacity: 0;
}

ul.cards li>a p span {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor), linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
	background-position: 0 100%, 0 100%;
	background-repeat: no-repeat, no-repeat;
	background-size: 0 1px, 100% 1px;
	transition: background-size .5s
}

ul.cards li>a p span {
	background-image: linear-gradient(currentColor, currentColor), linear-gradient(rgba(9, 88, 167, 0.25), rgba(9, 88, 167, 0.25));
}

ul.cards li>a:hover p span {
	background-size: 100% 1px, 100% 1px
}

ul.threecards li {
	width: calc(33.33333% - ((20px * 2) / 3));
	margin-bottom: 20px;
}

ul.threecards {
	margin-bottom: 36px;
}

@media all and (max-width: 1199px) {
	ul.cards li {
		width: calc(50% - ((20px * 1) / 2));
	}
}

@media all and (max-width: 599px) {
	ul.threecards li,
	ul.cards li {
		width: 100%;
	}
	ul.cards li>a {
		padding: 16px;
	}
}

/* IE */
@media all and (-ms-high-contrast:none) {
	ul.cards,
	ul.cards li,
	ul.cards li a {
		display: block;
	}
	ul.cards li {
		float: left;
	}
	ul.cards::after {
		content: "";
		display: table;
		clear: both;
	}
}

@media all and (-ms-high-contrast:none) {
	ul.cards:not(.threecards) li:not(:nth-child(4n+4)) {
		margin-right: 20px;
	}
	ul.threecards li:not(:nth-child(3n+3)) {
		margin-right: 20px;
	}
	ul.threecards li a {
		min-height: 40vw;
	}
}

@media all and (-ms-high-contrast:none) and ( max-width: 1199px) {
	ul.cards li:nth-child(2n+2) {
		margin-right: 0 !important;
	}
}