/**
 * Clear Link home blog section.
 *
 * @package ClearLink
 * @since 1.6.7
 */
.cl-home-blog {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(circle at 7% 18%, rgba(151, 224, 255, .32) 0 7%, transparent 7.2%),
		radial-gradient(circle at 94% 78%, rgba(183, 242, 223, .28) 0 8%, transparent 8.2%),
		linear-gradient(180deg, #f8fdff 0%, #eef9ff 100%);
}

.cl-home-blog::before {
	position: absolute;
	top: 34px;
	left: 50%;
	z-index: -1;
	width: min(1080px, 88vw);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(20, 147, 210, .2), transparent);
	content: "";
	transform: translateX(-50%);
}

.cl-home-blog-orb {
	position: absolute;
	z-index: -1;
	border-radius: 999px;
	filter: blur(.2px);
	pointer-events: none;
}

.cl-home-blog-orb--one {
	top: 72px;
	right: -72px;
	width: 190px;
	height: 190px;
	background: rgba(255, 222, 181, .34);
}

.cl-home-blog-orb--two {
	bottom: 28px;
	left: -54px;
	width: 145px;
	height: 145px;
	background: rgba(175, 239, 222, .3);
}

.cl-home-blog-inner {
	position: relative;
}

.cl-home-blog-heading {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(300px, .65fr);
	align-items: end;
	gap: clamp(32px, 7vw, 94px);
	margin-bottom: clamp(34px, 5vw, 58px);
}

.cl-home-blog-heading > div,
.cl-home-blog-heading > p {
	min-width: 0;
}

.cl-home-blog-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 13px;
	color: var(--cl-blue-600);
	font-size: .78rem;
	font-weight: 900;
	letter-spacing: .17em;
}

.cl-home-blog-eyebrow span {
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 7px 18px rgba(9, 72, 112, .1);
	font-size: .9rem;
	letter-spacing: 0;
}

.cl-home-blog-heading h2 {
	max-width: 680px;
	margin: 0;
	color: var(--cl-blue-800);
	font-size: clamp(2rem, 4.1vw, 3.35rem);
	line-height: 1.28;
	letter-spacing: .015em;
}

.cl-home-blog-heading > p {
	max-width: 500px;
	margin: 0 0 4px;
	color: var(--cl-text-sub);
	font-size: 1rem;
	line-height: 1.95;
}

.cl-home-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 28px);
}

.cl-home-blog-card {
	--cl-blog-accent: #75c9ee;
	--cl-blog-soft: #e9f8ff;
	position: relative;
	min-width: 0;
	border: 1px solid rgba(39, 145, 196, .16);
	border-radius: 27px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 14px 38px rgba(10, 83, 121, .09);
	transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.cl-home-blog-card--2 {
	--cl-blog-accent: #58cdb1;
	--cl-blog-soft: #e9fbf5;
}

.cl-home-blog-card--3 {
	--cl-blog-accent: #f0b87e;
	--cl-blog-soft: #fff4e8;
}

.cl-home-blog-card:hover,
.cl-home-blog-card:focus-within {
	border-color: color-mix(in srgb, var(--cl-blog-accent) 48%, white);
	box-shadow: 0 20px 46px rgba(10, 83, 121, .14);
	transform: translateY(-6px);
}

.cl-home-blog-card > a {
	display: flex;
	height: 100%;
	min-width: 0;
	flex-direction: column;
	color: var(--cl-text);
	text-decoration: none;
}

.cl-home-blog-card > a:focus-visible {
	border-radius: 27px;
	outline: 3px solid rgba(20, 147, 210, .42);
	outline-offset: 4px;
}

.cl-home-blog-media {
	position: relative;
	overflow: hidden;
	margin: 0;
	border-radius: 25px 25px 15px 15px;
	background: var(--cl-blog-soft);
}

.cl-home-blog-media::after {
	position: absolute;
	right: 18px;
	bottom: -18px;
	width: 74px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .78);
	box-shadow: -42px 7px 0 rgba(255, 255, 255, .62), 34px 9px 0 rgba(255, 255, 255, .48);
	content: "";
	pointer-events: none;
}

.cl-home-blog-media > img,
.cl-home-blog-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
}

.cl-home-blog-media > img {
	height: auto;
	object-fit: cover;
	transition: transform .45s cubic-bezier(.2, .65, .25, 1);
}

.cl-home-blog-card:hover .cl-home-blog-media > img,
.cl-home-blog-card:focus-within .cl-home-blog-media > img {
	transform: scale(1.045);
}

.cl-home-blog-placeholder {
	position: relative;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 12px;
	padding: 28px;
	background:
		radial-gradient(circle at 22% 24%, rgba(255, 255, 255, .9) 0 8px, transparent 9px),
		radial-gradient(circle at 82% 72%, rgba(255, 255, 255, .74) 0 11px, transparent 12px),
		linear-gradient(145deg, var(--cl-blog-soft), #fff);
	color: var(--cl-blue-700);
	font-size: .82rem;
	font-weight: 800;
	text-align: center;
}

.cl-home-blog-placeholder-mark {
	display: grid;
	width: 66px;
	height: 66px;
	place-items: center;
	border: 1px solid rgba(20, 147, 210, .18);
	border-radius: 23px 23px 23px 8px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(9, 72, 112, .1);
	font-family: Georgia, serif;
	font-size: 1.3rem;
	letter-spacing: .08em;
}

.cl-home-blog-category {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	max-width: calc(100% - 76px);
	overflow: hidden;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 8px 22px rgba(6, 65, 99, .12);
	color: var(--cl-blue-700);
	font-size: .72rem;
	font-weight: 900;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
	backdrop-filter: blur(8px);
}

.cl-home-blog-number {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 2;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: var(--cl-blog-accent);
	box-shadow: 0 8px 20px rgba(10, 83, 121, .16);
	color: #fff;
	font-size: .7rem;
	font-weight: 900;
	letter-spacing: .08em;
}

.cl-home-blog-card-body {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	padding: 24px 24px 25px;
}

.cl-home-blog-date {
	margin: 0 0 9px;
	color: var(--cl-text-sub);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
}

.cl-home-blog-card h3 {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 12px;
	color: var(--cl-blue-800);
	font-size: clamp(1.04rem, 1.55vw, 1.26rem);
	line-height: 1.65;
	letter-spacing: .01em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.cl-home-blog-summary {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 20px;
	color: var(--cl-text-sub);
	font-size: .86rem;
	line-height: 1.82;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.cl-home-blog-read {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	width: fit-content;
	margin-top: auto;
	padding: 8px 13px;
	border-radius: 999px;
	background: var(--cl-blog-soft);
	color: var(--cl-blue-700);
	font-size: .82rem;
	font-weight: 900;
	transition: gap .2s ease, background .2s ease;
}

.cl-home-blog-card:hover .cl-home-blog-read,
.cl-home-blog-card:focus-within .cl-home-blog-read {
	gap: 13px;
	background: color-mix(in srgb, var(--cl-blog-accent) 20%, white);
}

.cl-home-blog-actions {
	display: flex;
	justify-content: center;
	margin-top: clamp(30px, 4vw, 46px);
}

.cl-home-blog-actions .cl-button {
	min-width: 230px;
	border-color: rgba(20, 147, 210, .34);
	background: rgba(255, 255, 255, .8);
	box-shadow: 0 9px 24px rgba(9, 72, 112, .08);
}

.cl-home-blog-actions .cl-icon {
	width: 17px;
	height: 17px;
}

@media (max-width: 899px) {
	.cl-home-blog-heading {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 18px;
	}

	.cl-home-blog-heading > p {
		max-width: 650px;
	}

	.cl-home-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cl-home-blog-card:last-child {
		grid-column: 1 / -1;
		width: min(100%, 520px);
		justify-self: center;
	}
}

@media (max-width: 699px) {
	.cl-home-blog {
		padding-top: 62px;
		padding-bottom: 68px;
	}

	.cl-home-blog::before {
		top: 25px;
	}

	.cl-home-blog-orb--one {
		top: 68px;
		right: -92px;
	}

	.cl-home-blog-heading {
		gap: 15px;
		margin-bottom: 30px;
	}

	.cl-home-blog-heading h2 {
		font-size: clamp(1.8rem, 8.4vw, 2.35rem);
		line-height: 1.38;
	}

	.cl-home-blog-title-break {
		display: none;
	}

	.cl-home-blog-heading > p {
		font-size: .94rem;
		line-height: 1.85;
	}

	.cl-home-blog-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.cl-home-blog-card,
	.cl-home-blog-card:last-child {
		grid-column: auto;
		width: 100%;
		max-width: 520px;
		justify-self: center;
		border-radius: 23px;
	}

	.cl-home-blog-card:hover,
	.cl-home-blog-card:focus-within {
		transform: translateY(-3px);
	}

	.cl-home-blog-media {
		border-radius: 21px 21px 13px 13px;
	}

	.cl-home-blog-card-body {
		padding: 21px 20px 22px;
	}

	.cl-home-blog-card h3 {
		font-size: 1.08rem;
		-webkit-line-clamp: 2;
	}

	.cl-home-blog-summary {
		font-size: .84rem;
		-webkit-line-clamp: 3;
	}

	.cl-home-blog-actions {
		display: grid;
	}

	.cl-home-blog-actions .cl-button {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 360px) {
	.cl-home-blog-card-body {
		padding-inline: 18px;
	}

	.cl-home-blog-category {
		top: 12px;
		left: 12px;
		max-width: calc(100% - 66px);
		padding: 6px 10px;
	}

	.cl-home-blog-number {
		top: 11px;
		right: 11px;
		width: 38px;
		height: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cl-home-blog-card,
	.cl-home-blog-media > img,
	.cl-home-blog-read {
		transition: none;
	}
}
