/* [cd_article_showcase] shortcode styles */

.cd-fs-wrap {
	width: 100%;
}

/* ===== Top: featured + 2 regular cards ===== */

.cd-fs-featured-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.cd-fs-card {
	box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.1);
	background: #fff;
	display: flex;
	flex-direction: column;
	border-radius: 8px !important;
	overflow: hidden;
}

.cd-fs-card-featured {
	grid-column: span 2;
}

.cd-fs-card-regular {
	grid-column: span 1;
}

.cd-fs-image-wrap {
	position: relative;
}

.cd-fs-card-featured .cd-fs-image-wrap,
.cd-fs-card-featured .cd-fs-image {
	height: 253px !important;
}

.cd-fs-card-regular .cd-fs-image-wrap,
.cd-fs-card-regular .cd-fs-image {
	height: 215px !important;
}

.cd-fs-image {
	display: block;
	width: 100%;
	object-fit: cover;
	border-radius: 8px 8px 0 0 !important;
}

.cd-fs-image-placeholder {
	background-color: #eee;
}

.cd-fs-flag {
	position: absolute;
	top: 26px;
	left: 0;
	width: 99px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #4B2FC5;
	border-radius: 0 5px 5px 0;
	color: #fff;
	font-family: 'Outfit', sans-serif;
	font-weight: 400;
	font-size: 14px;
}

.cd-fs-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding-left: 36px;
	padding-right: 20px;
	border-radius: 0 0 8px 8px !important;
	box-sizing: border-box;
}

.cd-fs-card-featured .cd-fs-body {
	height: 139px;
	padding-top: 13px;
	padding-bottom: 17px;
}

.cd-fs-card-regular .cd-fs-body {
	height: 177px;
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 11px;
	padding-bottom: 18px;
}

.cd-fs-card-featured .cd-fs-excerpt {
	margin-top: 3px;
}

.cd-fs-card-featured .cd-fs-readmore {
	margin-top: 9px;
}

.cd-fs-card-regular .cd-fs-excerpt {
	margin-top: 0;
	padding-top: 3px;
}

.cd-fs-card-regular .cd-fs-readmore {
	margin-top: 11px;
}

.cd-fs-title {
	margin: 0;
}

.cd-fs-title a {
	font-family: 'Playfair Display', serif !important;
	font-weight: 400 !important;
	font-size: 30px !important;
	line-height: 130% !important;
	color: #0B0B0B;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cd-fs-card-featured .cd-fs-title a {
	display: -webkit-box !important;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.cd-fs-card-regular .cd-fs-title a {
	font-size: 22px !important;
	font-weight: 400 !important;
	line-height: 130% !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	height: auto !important;
	padding-bottom: 3px !important;
}

.cd-fs-excerpt {
	margin: 3px 0 0;
	margin-bottom: 0 !important;
	width: 100%;
	max-width: 438px;
	color: #1E1E1EB2;
	font-family: 'Outfit', sans-serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 31px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cd-fs-card-featured .cd-fs-excerpt {
	-webkit-line-clamp: 1;
}

.cd-fs-card-regular .cd-fs-excerpt {
	-webkit-line-clamp: 2;
	line-height: 25px !important;
}

.cd-fs-readmore,
.cd-fs-view-all {
	margin-top: 9px;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	width: fit-content;
	color: #4B2FC5;
	font-family: 'Outfit', sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 28px;
	letter-spacing: 0px;
	text-decoration: none;
	text-transform: uppercase;
}

/* ===== Category blocks ===== */

.cd-fs-categories {
	margin-top: 29px;
	display: grid;
	grid-template-columns: 1fr 1px 1fr;
	column-gap: 21px;
	align-items: stretch;
}

.cd-fs-separator {
	width: 1px;
	background-color: #E2E2E2;
}

.cd-fs-category-block {
	min-width: 0;
}

.cd-fs-category-header {
	display: flex;
	align-items: center;
	gap: 18px;
}

.cd-fs-category-name {
	flex-shrink: 0;
	color: #4B2FC5;
	font-family: 'Outfit', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 120%;
}

.cd-fs-category-line {
	flex: 1;
	height: 1px;
	background-color: #E2E2E2;
}

.cd-fs-view-all {
	margin-top: 0;
	flex-shrink: 0;
}

/* ===== Mini post grid (4 columns) ===== */

.cd-fs-mini-grid {
	margin-top: 20px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.cd-fs-mini-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
}

.cd-fs-mini-image-link {
	display: block;
	width: 100%;
}

.cd-fs-mini-image {
	display: block;
	width: 100% !important;
	height: 104px !important;
	border-radius: 5px;
	object-fit: cover;
}

.cd-fs-mini-image-placeholder {
	background-color: #eee;
}

.cd-fs-mini-title {
	margin: 11px 0 0;
	width: 100%;
}

.cd-fs-mini-title a {
	color: #1E1E1EB2;
	font-family: 'Outfit', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cd-fs-mini-readmore {
	margin-top: 8px;
	display: inline-flex;
	align-items: center;
}

.cd-fs-empty {
	font-family: 'Outfit', sans-serif;
	font-size: 15px;
	color: #666;
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
	.cd-fs-featured-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cd-fs-card-featured {
		grid-column: span 2;
	}

	.cd-fs-card-regular {
		grid-column: span 1;
	}

	.cd-fs-mini-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 700px) {
	.cd-fs-featured-grid {
		grid-template-columns: 1fr;
	}

	.cd-fs-card-featured,
	.cd-fs-card-regular {
		grid-column: span 1;
	}

	.cd-fs-card-featured .cd-fs-image-wrap,
	.cd-fs-card-featured .cd-fs-image,
	.cd-fs-card-regular .cd-fs-image-wrap,
	.cd-fs-card-regular .cd-fs-image {
		height: 220px !important;
	}

	.cd-fs-card-featured .cd-fs-body,
	.cd-fs-card-regular .cd-fs-body {
		height: auto;
		padding: 20px 20px 20px 24px;
	}

	.cd-fs-categories {
		grid-template-columns: 1fr;
		row-gap: 29px;
	}

	.cd-fs-separator {
		display: none;
	}

	.cd-fs-mini-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
