/* =========================================================
   DIRECT LOCAL - CASE STUDIES
   ========================================================= */

.dl-case-studies {
	width: 100%;
	margin: 0 auto;
}

.dl-case-studies-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}


/* =========================================================
   CARD
   ========================================================= */

.dl-case-card {
	background: #ffffff;
	border: 1px solid #dfe4e8;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}


/* =========================================================
   IMAGE
   ========================================================= */

.dl-case-image {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1.62 / 1;
	overflow: hidden;
	background: #e9eef1;
}

.dl-case-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
	margin: 0 !important;
	transition: transform 0.4s ease;
}

.dl-case-card:hover .dl-case-image img {
	transform: scale(1.035);
}

.dl-case-image-placeholder {
	width: 100%;
	height: 100%;
	background:
		linear-gradient(
			135deg,
			#dce4e8,
			#f4f6f7
		);
}


/* =========================================================
   CONTENT
   ========================================================= */

.dl-case-content {
	padding: 25px 25px 27px;
	display: flex;
	flex-direction: column;
	flex: 1;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.dl-case-eyebrow {
	font-size: 10px;
	line-height: 1.7;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #858f96;
	margin-bottom: 13px;
}


/* =========================================================
   TITLE
   ========================================================= */

.dl-case-title {
	margin: 0 0 12px !important;
	padding: 0 !important;
	font-size: 27px !important;
	line-height: 1.04 !important;
	letter-spacing: -0.035em !important;
	font-weight: 800 !important;
}

.dl-case-title a {
	color: #061625 !important;
	text-decoration: none !important;
}


/* =========================================================
   EXCERPT
   ========================================================= */

.dl-case-excerpt {
	color: #59636b;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 18px;
}

.dl-case-excerpt p {
	margin: 0 !important;
}


/* =========================================================
   METRICS
   ========================================================= */

.dl-case-metrics {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: auto;
	padding-top: 4px;
	margin-bottom: 19px;
}

.dl-case-metric {
	display: inline-flex;
	align-items: center;
	padding: 7px 11px;
	border-radius: 8px;
	background: #eaf9f3;
	color: #087d51;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 750;
}


/* =========================================================
   LINK
   ========================================================= */

.dl-case-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #087d51 !important;
	font-size: 13px;
	line-height: 1.3;
	font-weight: 750;
	text-decoration: none !important;
	margin-top: 1px;
}

.dl-case-link span {
	transition: transform 0.2s ease;
}

.dl-case-card:hover .dl-case-link span {
	transform: translateX(4px);
}


/* =========================================================
   DARK CARDS
   2nd, 4th, 6th, 8th...
   ========================================================= */

.dl-case-card:nth-child(even) {
	background: #061625;
	border-color: #061625;
}

.dl-case-card:nth-child(even) .dl-case-eyebrow {
	color: #18c380;
}

.dl-case-card:nth-child(even) .dl-case-title a {
	color: #ffffff !important;
}

.dl-case-card:nth-child(even) .dl-case-excerpt {
	color: #c5d0d7;
}

.dl-case-card:nth-child(even) .dl-case-metric {
	background: #162b3a;
	color: #18c380;
}

.dl-case-card:nth-child(even) .dl-case-link {
	color: #18c380 !important;
}


/* =========================================================
   LOAD MORE
   ========================================================= */

.dl-case-studies-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 45px;
}

.dl-case-studies-load-more {
	position: relative;
	min-width: 210px;
	min-height: 48px;
	padding: 0 25px;
	border: 0;
	border-radius: 999px;
	background: #061625;
	color: #ffffff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 750;
	cursor: pointer;
	transition:
		background 0.2s ease,
		transform 0.2s ease;
}

.dl-case-studies-load-more:hover {
	background: #18c380;
	color: #061625;
	transform: translateY(-1px);
}

.dl-case-studies-load-more:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

.dl-load-more-loading {
	display: none;
}

.dl-case-studies-load-more.is-loading .dl-load-more-text {
	display: none;
}

.dl-case-studies-load-more.is-loading .dl-load-more-loading {
	display: inline;
}


/* =========================================================
   EMPTY
   ========================================================= */

.dl-case-studies-empty {
	grid-column: 1 / -1;
	padding: 60px 20px;
	text-align: center;
	color: #68747d;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

	.dl-case-studies-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

	.dl-case-studies-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.dl-case-content {
		padding: 22px 21px 24px;
	}

	.dl-case-title {
		font-size: 25px !important;
	}

	.dl-case-excerpt {
		font-size: 14px;
	}

	.dl-case-studies-load-more-wrap {
		margin-top: 30px;
	}

}