/**
 * PKLegal.net homepage resource-type section.
 */

.pk-home-resources,
.pk-home-resources * {
	box-sizing: border-box;
}

.pk-home-resources {
	position: relative;
	width: 100vw;
	margin: 0 0 0 calc(50% - 50vw) !important;
	overflow: hidden;
	padding: clamp(74px, 7vw, 108px) 0;
	background: #fff;
	color: #172033;
}

.pk-home-resources::before {
	position: absolute;
	top: 0;
	left: 50%;
	width: min(calc(100% - 40px), 1240px);
	height: 1px;
	background: linear-gradient(90deg, transparent, #dfe4e9 14%, #dfe4e9 86%, transparent);
	content: "";
	transform: translateX(-50%);
}

.pk-home-resources-container {
	position: relative;
	z-index: 1;
	width: min(calc(100% - 40px), 1240px);
	margin-inline: auto;
}

.pk-home-resources-heading {
	max-width: 760px;
	margin: 0 auto 46px;
	text-align: center;
}

.pk-home-resources-heading p,
.pk-home-resource-card p {
	margin: 0 !important;
}

.pk-home-resources-eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #8a0104;
	font-size: 11px !important;
	font-weight: 800;
	line-height: 1.4 !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.pk-home-resources-eyebrow span {
	display: block;
	width: 28px;
	height: 2px;
	background: #8a0104;
}

.pk-home-resources-heading h2 {
	margin: 14px 0 16px !important;
	color: #102a43 !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: clamp(36px, 4vw, 52px) !important;
	font-weight: 700 !important;
	line-height: 1.12 !important;
	letter-spacing: -0.025em !important;
	text-transform: none !important;
}

.pk-home-resources-heading > p:last-child {
	color: #5b6674;
	font-size: 16px !important;
	font-weight: 400;
	line-height: 1.7 !important;
}

.pk-home-resource-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.pk-home-resource-card {
	--pk-resource-accent: #8a0104;
	--pk-resource-soft: #f8ecec;
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 390px;
	padding: 28px 24px 25px;
	border: 1px solid #dfe4e9;
	border-top: 4px solid var(--pk-resource-accent);
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(16, 42, 67, 0.07);
	flex-direction: column;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pk-home-resource-card:hover,
.pk-home-resource-card:focus-within {
	border-color: color-mix(in srgb, var(--pk-resource-accent) 38%, #dfe4e9);
	box-shadow: 0 20px 42px rgba(16, 42, 67, 0.12);
	transform: translateY(-4px);
}

.pk-home-resource-card-templates {
	--pk-resource-accent: #102a43;
	--pk-resource-soft: #eaf0f5;
}

.pk-home-resource-card-articles {
	--pk-resource-accent: #8a5b16;
	--pk-resource-soft: #f8f0e2;
}

.pk-home-resource-card-laws {
	--pk-resource-accent: #315f45;
	--pk-resource-soft: #eaf3ed;
}

.pk-home-resource-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 27px;
}

.pk-home-resource-number {
	color: #abb3bc;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.pk-home-resource-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 7px;
	background: var(--pk-resource-soft);
	color: var(--pk-resource-accent);
}

.pk-home-resource-icon svg {
	width: 27px;
	height: 27px;
	fill: currentColor;
}

.pk-home-resource-kicker {
	margin-bottom: 8px !important;
	color: var(--pk-resource-accent);
	font-size: 10px !important;
	font-weight: 800;
	line-height: 1.4 !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pk-home-resource-card h3 {
	margin: 0 0 15px !important;
	color: #102a43 !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: 27px !important;
	font-weight: 700 !important;
	line-height: 1.18 !important;
	letter-spacing: -0.018em !important;
	text-transform: none !important;
}

.pk-home-resource-description {
	margin-bottom: 28px !important;
	color: #606b78;
	font-size: 14px !important;
	font-weight: 400;
	line-height: 1.7 !important;
}

.pk-home-resource-card > a {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 17px;
	border-top: 1px solid #e6e9ed;
	color: var(--pk-resource-accent) !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none !important;
}

.pk-home-resource-card > a span {
	font-size: 19px;
	line-height: 1;
	transition: transform 160ms ease;
}

.pk-home-resource-card > a:hover span,
.pk-home-resource-card > a:focus span {
	transform: translateX(3px);
}

.pk-home-resource-card > a:focus-visible {
	outline: 3px solid #c7a45a;
	outline-offset: 4px;
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
	.pk-home-resource-card:hover,
	.pk-home-resource-card:focus-within {
		border-color: #b9c0c8;
	}
}

@media (max-width: 1040px) {
	.pk-home-resource-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pk-home-resource-card {
		min-height: 340px;
	}
}

@media (max-width: 600px) {
	.pk-home-resources {
		padding-block: 62px;
	}

	.pk-home-resources-container {
		width: calc(100% - 28px);
	}

	.pk-home-resources-heading {
		margin-bottom: 34px;
		text-align: left;
	}

	.pk-home-resources-eyebrow {
		justify-content: flex-start;
		font-size: 10px !important;
	}

	.pk-home-resources-eyebrow span:last-child {
		display: none;
	}

	.pk-home-resources-heading h2 {
		margin-block: 12px 14px !important;
		font-size: 36px !important;
	}

	.pk-home-resources-heading > p:last-child {
		font-size: 15px !important;
		line-height: 1.65 !important;
	}

	.pk-home-resource-cards {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.pk-home-resource-card {
		min-height: 0;
		padding: 23px 20px 21px;
	}

	.pk-home-resource-card-top {
		margin-bottom: 20px;
	}

	.pk-home-resource-description {
		margin-bottom: 24px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pk-home-resources * {
		transition-duration: 0.01ms !important;
	}
}
