﻿/* =========================================================
   DEVOTIONS - EZ-CMS BLOG CARDS
========================================================= */
.btSection {
	width: 100%;
	padding: 65px 0 35px;
	background: var(--color-background-light);
	margin-top: 60px;
}
.btInner {
	width: 92%;
	max-width: 1650px;
	margin: 0 auto;
	padding: 0;
}
.btInner > h2 {
	margin: 0 0 32px;
}
/* =========================================================
   THREE COLUMN GRID
========================================================= */
.btGrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px;
	align-items: stretch;
}
/* =========================================================
   CARD
========================================================= */
.btCard {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background-color: color-mix(in srgb, var(--color-background-light) 55%, #fff);
	border: 1px solid color-mix(in srgb, var(--color-primary) 16%, transparent);
	border-top: 3px solid var(--color-secondary);
	border-radius: 30px 0 30px 0;
	overflow: hidden;
	box-shadow: 0 8px 22px color-mix(in srgb, var(--color-dark-bg) 7%, transparent);
	transition:
		transform .25s ease, box-shadow .25s ease;
}
.btCard:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px color-mix(in srgb, var(--color-dark-bg) 9%, transparent);
}
/* =========================================================
   IMAGE
========================================================= */
.btCardImage {
	display: block;
	width: 100%;
	height: 300px;
	;
	overflow: hidden;
	background: var(--color-background-light);
}
.btCardImage img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform .5s ease;
}
.btCard:hover .btCardImage img {
	transform: scale(1.035);
}
/* =========================================================
   CONTENT
========================================================= */
.btCardContent {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 23px 27px 27px;
}
.btCardContent:before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url('/tempimg/quilt_2.png');
	background-repeat: repeat;
	opacity: .025;
	pointer-events: none;
}
.btCardContent > * {
	position: relative;
	z-index: 1;
}
/* =========================================================
   CATEGORY AND DATE
========================================================= */
.btCardMeta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px 12px;
	margin-bottom: 12px;
}
.btCategory {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--color-secondary);
}
.btDate {
	font-size: 11px;
	line-height: 1.4;
	color: var(--color-dark-bg);
	opacity: .65;
}
/* =========================================================
   TITLE
   INHERITS WEBSITE HEADING FONT
========================================================= */
.btCardContent h3 {
	margin: 0 0 13px;
	font-size: clamp(23px, 1.65vw, 30px);
	line-height: 1.2;
	text-align: left;
}
.btCardContent h3 a {
	color: inherit;
	text-decoration: none;
}
.btCardContent h3 a:hover {
	color: var(--color-secondary);
}
/* =========================================================
   EXCERPT
========================================================= */
.btCardContent p {
	margin: 0 0 17px;
	font-size: 16px;
	line-height: 1.55;
}
/* =========================================================
   READ MORE
========================================================= */
.btReadMore {
	display: inline-block;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--color-secondary);
}
.btReadMore:hover {
	color: var(--color-dark-bg);
	text-decoration: none;
}
/* =========================================================
   TABLET
========================================================= */
@media (max-width: 991px) {
	.btSection {
		padding: 55px 0 30px;
	}
	.btGrid {
		gap: 16px;
	}
	.btCardImage {
		height: 170px;
	}
	.btCardContent {
		padding: 19px 20px 23px;
	}
	.btCardContent h3 {
		font-size: 23px;
	}
	.btCardContent p {
		font-size: 14px;
	}
}
/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 767px) {
	.btSection {
		padding: 45px 0 25px;
	}
	.btInner {
		width: auto;
		margin-left: 20px;
		margin-right: 20px;
	}
	.btInner > h2 {
		margin-bottom: 25px;
	}
	.btGrid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.btCardImage {
		height: 225px;
	}
	.btCardContent {
		padding: 21px 23px 24px;
	}
	.btCardContent h3 {
		font-size: 27px;
	}
	.btCardContent p {
		font-size: 15px;
	}
	.btCard:first-child {
		border-radius: 35px 0 28px 0;
	}
}