/* Shared Education layout. Colors follow each client palette. */

/* The legacy linter predates aspect-ratio. */
.konstruct-education {
	--konstruct-education-header-fallback: 102px;
	--konstruct-education-gap: 60px;
	padding-top: calc(var(--konstruct-education-header-height, var(--konstruct-education-header-fallback)) + var(--konstruct-education-gap));
	padding-bottom: 6rem;
	font-size: 1.6rem;
}

.konstruct-education > h1:not(.screen-reader-text) {
	font-size: 3.6rem;
	line-height: 1.25;
	margin-bottom: 3rem;
}

.konstruct-education a:focus-visible,
.konstruct-education-social a:focus-visible {
	outline: 2px solid var(--konstruct-color-focus);
	outline-offset: 4px;
}

.konstruct-education-hero {
	float: none;
	display: grid;
	margin-bottom: 4.8rem;
	border-radius: 0.5rem;
	overflow: hidden;
}

.konstruct-education-hero .blog_inner_pic,
.konstruct-education-hero .konstruct-hero-copy {
	grid-area: 1 / 1;
}

.konstruct-education-hero .blog_inner_pic img {
	width: 100%;
	height: 100%;
	min-height: 48rem;
	aspect-ratio: 16 / 9; /* stylelint-disable-line property-no-unknown */
	object-fit: cover;
}

.konstruct-education-hero .konstruct-hero-copy {
	position: relative;
	align-self: end;
	text-align: left;
	left: auto;
	top: auto;
	transform: none;
	width: 48%;
	margin: 4rem;
	padding: 3rem;
	background: var(--konstruct-color-surface);
	background: color-mix(in sRGB, var(--konstruct-color-surface) 88%, transparent);
	backdrop-filter: blur(8px);
	border-radius: 0;
}

.konstruct-hero-copy h2 {
	font-size: 3rem;
	line-height: 1.25;
	margin: 1.6rem 0;
}

.konstruct-hero-copy h2 a {
	color: var(--konstruct-color-text-body);
}

.konstruct-education-hero .konstruct-hero-copy p {
	font-size: 1.5rem;
	line-height: 1.6;
	padding: 0;
	margin: 0 0 2rem;
}

.konstruct-education-hero-text .konstruct-hero-copy {
	width: 100%;
	margin: 0;
	background: var(--konstruct-color-surface-cool);
}

.konstruct-article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4.8rem 3rem;
}

.konstruct-article-card {
	min-width: 0;
	text-align: left;
	display: flex;
	flex-direction: column;
}

.konstruct-card-image {
	position: relative;
	display: block;
	flex-shrink: 0;
	aspect-ratio: 3 / 2; /* stylelint-disable-line property-no-unknown */
	overflow: hidden;
	background: var(--konstruct-color-surface-cool);
	margin-bottom: 1.4rem;
}

.konstruct-article-card .konstruct-card-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	border-radius: 0;
}

.konstruct-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
}

.konstruct-article-topic {
	display: inline-block;
	max-width: 100%;
	padding: 0.4rem 1rem;
	border: 1px solid var(--konstruct-color-control-muted);
	border-radius: 2rem;
	font-size: 1.2rem;
	line-height: 1.4;
	color: var(--konstruct-color-text-body);
}

.konstruct-card-body h2 {
	font-size: 1.8rem;
	line-height: 1.4;
	letter-spacing: 0.03em;
	margin: 1.6rem 0 1.2rem;
	-webkit-line-clamp: 3;
}

.konstruct-card-body h2,
.konstruct-card-body > p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


.konstruct-article-card .konstruct-card-body > p {
	-webkit-line-clamp: 2;
	font-size: 1.4rem;
	line-height: 1.6;
	padding: 0;
	margin: 0 0 1.8rem;
}

.konstruct-article-link {
	display: inline-flex;
	align-items: center;
	gap: 1.2rem;
	font-size: 1.4rem;
	line-height: 1.6;
	color: var(--konstruct-color-secondary);
}

.konstruct-card-body .konstruct-article-link {
	margin-top: auto;
}

.konstruct-article-link > svg {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
}

.konstruct-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.8rem;
	list-style: none;
	margin: 6rem 0 0;
	padding: 0;
}

.konstruct-pagination li {
	margin: 0;
}

.konstruct-pagination .page-numbers:not(ul) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4rem;
	height: 4rem;
	padding: 0.4rem;
	font-size: 1.4rem;
	border: 1px solid var(--konstruct-color-control-muted);
	border-radius: 50%;
}

.konstruct-pagination .current,
.konstruct-pagination a:hover,
.konstruct-pagination a:focus {
	color: var(--konstruct-color-surface);
	background: var(--konstruct-color-primary);
	border-color: var(--konstruct-color-primary);
}

.konstruct-pagination .page-numbers.prev,
.konstruct-pagination .page-numbers.next,
.konstruct-pagination .page-numbers.dots {
	border: 0;
}

.konstruct-pagination .page-numbers.prev,
.konstruct-pagination .page-numbers.next {
	font-size: 2.4rem;
}

.konstruct-education-social {
	background: var(--konstruct-color-surface-cool);
}

.konstruct-education-social h2 {
	position: relative;
	font-size: 4rem;
	line-height: 1.3;
	padding-bottom: 2rem;
	margin-bottom: 4rem;
}

.konstruct-education-social h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 11.5rem;
	height: 3px;
	background: var(--konstruct-color-primary);
}

.konstruct-education-social .share_icon {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 3rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.konstruct-education-social .share_icon li {
	padding: 0;
	margin: 0;
}

.konstruct-education-social .share_icon a {
	display: block;
	border-radius: 50%;
}

@media (min-width: 768px) and (max-width: 991px) {

	.konstruct-education {
		--konstruct-education-header-fallback: 77px;
		--konstruct-education-gap: 40px;
	}

	.konstruct-education-hero .konstruct-hero-copy {
		width: 58%;
		margin: 2.4rem;
		padding: 2.4rem;
	}

	.konstruct-hero-copy h2 {
		font-size: 2.6rem;
	}

	.konstruct-article-grid {
		column-gap: 1.6rem;
	}
}

@media (max-width: 767px) {

	.konstruct-education {
		--konstruct-education-header-fallback: 77px;
		--konstruct-education-gap: 20px;
		padding-bottom: 4rem;
	}

	.konstruct-education-hero {
		width: calc(100% + 30px);
		margin-right: -15px;
		margin-left: -15px;
		margin-bottom: 3rem;
		border-radius: 0;
	}

	.konstruct-education-hero .blog_inner_pic,
	.konstruct-education-hero .konstruct-hero-copy {
		grid-area: auto;
	}

	.konstruct-education-hero .blog_inner_pic img {
		min-height: 0;
		height: auto;
		aspect-ratio: 16 / 9; /* stylelint-disable-line property-no-unknown */
	}

	.konstruct-education-hero .konstruct-hero-copy {
		width: 100%;
		margin: 0;
		padding: 2.4rem 1.5rem;
		background: var(--konstruct-color-surface-cool);
	}

	.konstruct-hero-copy h2 {
		font-size: 2.8rem;
	}

	.konstruct-article-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 3rem;
	}

	.konstruct-pagination ul {
		gap: 0.4rem;
		margin-top: 4rem;
	}

	.konstruct-pagination .page-numbers:not(ul) {
		min-width: 3.4rem;
		height: 3.4rem;
	}

	.konstruct-education-social {
		padding: 5rem 0;
	}

	.konstruct-education-social h2 {
		font-size: 3rem;
	}
}
