/**
Styles for the companies term card component
This file is being loaded *only* from its respective component template part - section-companies-term-card.php
 */

.term-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 30px;
	width: 100%;
	background-color: var(--color-background-grey);
	border-radius: 5px;
	transition: all 0.3s ease-in-out;
}

.term-card:hover {
	background-color: #fff;
	box-shadow: 0 0 50px #00000029;
}

.term-card.left-aligned {
	align-items: flex-start;
}

.term-card.large {
	height: 301px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.term-card.medium {
	height: 135px;
}

.term-card.small {
	min-height: 112px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: right top;
}

.term-card .term-name {
	line-height: 1;
}

.term-card .term-name .short-company-count {
	display: none;
}

.term-card .company-count .count {
	font-weight: 500;
}

.term-card .term-permalink {
	color: var(--color-primary);
	text-decoration: underline;
	margin-top: 10px;
}

.term-card.large .term-name {
	font-size: 46px;
	margin: 10px 0;
}

.term-card.large .company-count {
	font-size: 17px;
	margin-bottom: 10px;
}

.term-card.medium .term-name {
	font-size: 42px;
	margin: 5px 0;
}

.term-card.medium .company-count {
	font-size: 15px;
	margin-bottom: 5px;
}

.term-card.small .term-name {
	font-size: 26px;
}

.term-card .description {
	font-size: 10px;
	margin-top: -10px;
	margin-bottom: 5px;
	color: #999;
}

.term-card .term-arrow-icon {
	display: none;
}

/* Small */
@media screen and (max-width: 950px) {
	.term-card {
		padding: 20px 15px;
	}

	.term-card.large {
		height: 143px;
		background-size: contain;
	}

	.term-card.medium {
		height: 99px;
	}

	.term-card.small {
		text-align: center;
	}

	.term-card.large .term-name,
	.term-card.medium .term-name,
	.term-card.small .term-name {
		font-size: 20px;
		margin-bottom: 3px;
	}

	.term-card.left-aligned .term-name {
		text-align: left;
	}

	.term-card.large .company-count,
	.term-card.medium .company-count,
	.term-card.small .company-count {
		font-size: 11px;
	}

	.term-card .term-permalink {
		font-size: 10px;
		margin-top: 0;
	}

	.term-card.tiny-on-mobile {
		height: auto;
		min-height: unset;
		padding: 13px 20px;
		flex-direction: row;
		justify-content: space-between;
	}

	.term-card.tiny-on-mobile .term-name .short-company-count {
		display: inline-block;
		color: var(--color-primary);
	}

	.term-card.tiny-on-mobile .company-count,
	.term-card.tiny-on-mobile .term-permalink {
		display: none;
	}

	.term-card .term-arrow-icon {
		display: inline-block;
		height: 20px;
	}
}