.landingcards {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.landingcards>div {
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
}

.landingcards>div>a {
	background: white;
	display: block;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease;
	color: #020873;
	flex: 1;
	color: #585961;
}

.landingcards>div>a>div {
	padding: 16px;
	min-height: 30rem;
	display: flex;
	flex-direction: column;
}

.landingcards>div>a>div p:last-child {
	margin: auto 0 0;
}

.landingcards>div>a>div h2,
.landingcards>div>a>div p:last-child span {
	color: #020873;
	margin-bottom: 1em;
}

.landingcards>div>a>div p:last-child 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
}

.landingcards>div>a>div p:last-child span {
	background-image: linear-gradient(currentColor, currentColor), linear-gradient(rgba(9, 88, 167, 0.25), rgba(9, 88, 167, 0.25));
}

.landingcards>div>a:hover>div p:last-child span {
	background-size: 100% 1px, 100% 1px
}

.landingcards>div:nth-child(2) a {
	background: #020873;
	color: white;
}

.landingcards>div:nth-child(2) a h2,
.landingcards>div:nth-child(2) a p:last-child span {
	color: white;
}

.landingcards>div:nth-child(2) a p:last-child span {
	background-image: linear-gradient(currentColor, currentColor), linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
}

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

@media all and (max-width:599px) {
	.landingcards>div>a p.img {
		margin: 0;
		position: relative;
		width: 100%;
		height: 0;
		padding-bottom: 56.25%;
	}
	.landingcards>div:nth-child(4n+1)>a p.img {
		padding-bottom: 82%;
	}
	.landingcards>div>a {
		display: flex;
		flex-direction: column;
	}
	.landingcards>div>a p.img {
		order: -10;
	}
	.landingcards>div:nth-child(4n+1)>a div {
		margin-top: calc(-6rem - 16px);
	}
	.landingcards>div:nth-child(4n+1)>a h2 {
		max-width: 50%;
		min-height: 2.5em;
		display: flex;
		flex-direction: column;
	}
	.landingcards>div:nth-child(4n+1)>a h2::before {
		display: block;
		content: "";
		flex: 1;
	}
}

@media all and (min-width:600px) {
	.landingcards>div>a p.img {
		margin: 0;
		position: relative;
		padding: 0;
		height: auto;
	}
	.landingcards>div>a {
		display: flex;
		justify-content: space-between;
	}
	.landingcards>div {
		width: calc(50% - 10px);
	}
	.landingcards>div:nth-child(4n+1),
	.landingcards>div:nth-child(4n+4) {
		width: 100%;
	}
	.landingcards>div>a>div:not(:only-child) {
		width: calc(50% - 10px);
	}
	.landingcards>div>a>p.img {
		width: calc(50% + 20px);
	}
	.landingcards>div:nth-child(4n+1)>a p.img img {
		object-position: left center;
		left: 0;
		transform: translate(0, -50%);
	}
}

@media all and (min-width:900px) {
	.landingcards>div>a>div {
		min-height: 36rem;
	}
}

@media all and (min-width:1200px) {
	.landingcards>div:nth-child(4n+1)>a>div {
		width: calc((((100% - (7 * 20px)) / 8) * 4) + (3 * 20px));
		/*margin-right:20px; */
	}
	.landingcards>div:nth-child(4n+4)>a>div {
		width: calc((((100% - (7 * 20px)) / 8) * 4) + (3 * 20px));
		margin-right: 20px;
	}
	.landingcards>div:nth-child(4n+1)>a p.img,
	.landingcards>div:nth-child(4n+4)>a p.img {
		flex: 1;
	}
	.landingcards>div:nth-child(4n+1)>a p.img img {
		object-position: left center;
	}
	.landingcards>div>a>div {
		padding: 24px;
		min-height: 36rem;
	}
	.landingcards>div {
		width: calc((((100% - (11 * 20px)) / 12) * 4) + (3 * 20px));
	}
	.landingcards>div:nth-child(4n+1),
	.landingcards>div:nth-child(4n+4) {
		width: calc((((100% - (11 * 20px)) / 12) * 8) + (7 * 20px));
	}
}

@media all and (min-width:1400px) {
	.landingcards>div:nth-child(4n+4)>a>div {
		width: calc((((100% - (7 * 20px)) / 8) * 2) + (1 * 20px));
		margin-right: 20px;
	}
}

@media all and (-ms-high-contrast:none) {
	.landingcards {}
	.landingcards div {}
	.landingcards,
	.landingcards div,
	.landingcards div a,
	.landingcards>div>a>div {
		display: block;
	}
	.landingcards div a {
		overflow: hidden
	}
	.landingcards>div {
		float: left;
		position: relative;
	}
	.landingcards::after {
		content: "";
		display: table;
		clear: both;
	}
	.landingcards>div:nth-child(4n+1),
	.landingcards>div:nth-child(4n+3) {
		margin-right: 20px;
	}
	.landingcards>div:nth-child(4n+1)>a p.img,
	.landingcards>div:nth-child(4n+4)>a p.img {
		overflow: hidden;
		/*width:50%;*/
		position: absolute;
		top: 0;
		right: 0;
		height: 100%;
	}
	.landingcards>div:nth-child(4n+1)>a p.img picture,
	.landingcards>div:nth-child(4n+4)>a p.img picture {
		width: 100%;
		position: absolute;
		top: 0;
		right: 0;
		height: 100%;
		display: block;
	}
	.landingcards>div:nth-child(4n+1)>a p.img img,
	.landingcards>div:nth-child(4n+4)>a p.img img {
		position: absolute;
		height: 100%;
		width: auto;
		display: block;
		width: 100%;
	}
}

@media all and (-ms-high-contrast:none)and (max-width:1199px) {
	.landingcards>div {
		margin-right: 0 !important;
	}
	.landingcards>div:nth-child(4n+2) {
		margin-right: 20px !important;
	}
}

@media all and (-ms-high-contrast:none)and (max-width:599px) {
	.landingcards p.img {
		display: none !important;
	}
	.landingcards>div:nth-child(4n+1)>a div {
		margin: 0 !important;
	}
	.landingcards div,
	.landingcards>div:nth-child(4n+2) {
		margin-right: 0 !important;
	}
}