/*
 * BDA Website Components – Featured content module.
 * Scoped to the homepage section class bda-home-featured-section and
 * shortcode output from [bda_home_featured].
 */

.fw-main-row-custom.bda-home-featured-section {
	background: #f6f7f8 !important;
	background-image: none !important;
	padding: 0 !important;
}

.fw-main-row-custom.bda-home-featured-section .fw-container,
.fw-main-row-custom.bda-home-featured-section .fw-container-fluid {
	width: min(calc(100vw - 128px), 1400px) !important;
	max-width: 1400px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

.fw-main-row-custom.bda-home-featured-section .fw-row {
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.fw-main-row-custom.bda-home-featured-section [class*="fw-col-"] {
	padding-right: 0 !important;
	padding-left: 0 !important;
}

.bda-featured-component,
.bda-featured-component *,
.bda-featured-component *::before,
.bda-featured-component *::after {
	box-sizing: border-box;
}

.bda-featured-component {
	padding: clamp(62px, 5vw, 90px) 0 clamp(70px, 5vw, 94px);
}

.bda-featured-component__heading {
	margin: 0;
}

.bda-featured-component__eyebrow {
	display: block;
	margin: 0 0 14px;
	color: #993333;
	font-family: "Montserrat", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.bda-featured-component__heading h2 {
	margin: 0;
	color: #252525;
	font-family: "Poppins", sans-serif;
	font-size: clamp(34px, 2.25vw, 44px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.1;
}

.bda-featured-component__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: clamp(34px, 2.5vw, 46px);
}

.bda-featured-component__grid--count-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.bda-featured-component__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #ece7e7;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 10px 28px rgba(23, 23, 23, 0.07);
	color: #252525 !important;
	text-decoration: none !important;
	transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

a.bda-featured-component__card:hover,
a.bda-featured-component__card:focus {
	border-color: #dfc3c3;
	box-shadow: 0 16px 34px rgba(23, 23, 23, 0.12);
	color: #252525 !important;
	text-decoration: none !important;
	transform: translateY(-4px);
}

a.bda-featured-component__card:focus {
	outline: 3px solid rgba(153, 51, 51, 0.23);
	outline-offset: 4px;
}

.bda-featured-component__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #e9e9e9;
}

.bda-featured-component__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.bda-featured-component__card:hover .bda-featured-component__media img,
.bda-featured-component__card:focus .bda-featured-component__media img {
	transform: scale(1.045);
}

.bda-featured-component__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #993333, #2a2a2a);
	color: #ffffff;
	font-family: "Poppins", sans-serif;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.bda-featured-component__tag {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 7px 12px;
	border-radius: 999px;
	color: #ffffff;
	font-family: "Montserrat", sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.055em;
	line-height: 1;
	text-transform: uppercase;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bda-featured-component__tag--red {
	background: #a83b3b;
}

.bda-featured-component__tag--berry {
	background: #7b3a60;
}

.bda-featured-component__tag--plum {
	background: #74355d;
}

.bda-featured-component__tag--green {
	background: #08775e;
}

.bda-featured-component__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 25px 26px 27px;
}

.bda-featured-component__title {
	display: block;
	margin: 0 0 12px;
	color: #252525;
	font-family: "Poppins", sans-serif;
	font-size: clamp(19px, 1.32vw, 23px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.23;
}

.bda-featured-component__summary {
	display: block;
	margin: 0;
	color: #535353;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.62;
}

.bda-featured-component__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 26px;
	color: #a93434;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

.bda-featured-component__cta span {
	font-family: Arial, sans-serif;
	font-size: 19px;
	font-weight: 400;
	line-height: 0;
	transition: transform 0.2s ease;
}

.bda-featured-component__card:hover .bda-featured-component__cta span,
.bda-featured-component__card:focus .bda-featured-component__cta span {
	transform: translateX(4px);
}

/* Four cards retain a neat 4-across layout on large desktop screens,
   then move to two columns before they become cramped. */
.bda-featured-component__grid--count-4 .bda-featured-component__content {
	padding: 22px 21px 24px;
}

.bda-featured-component__grid--count-4 .bda-featured-component__title {
	font-size: clamp(18px, 1.08vw, 21px);
}

.bda-featured-component__grid--count-4 .bda-featured-component__summary {
	font-size: 13px;
}

.bda-featured-component__grid--count-4 .bda-featured-component__tag {
	top: 15px;
	left: 15px;
}

@media screen and (max-width: 1200px) {
	.fw-main-row-custom.bda-home-featured-section .fw-container,
	.fw-main-row-custom.bda-home-featured-section .fw-container-fluid {
		width: calc(100vw - 64px) !important;
		max-width: none !important;
	}

	.bda-featured-component__grid {
		gap: 18px;
	}

	.bda-featured-component__content {
		padding: 22px 21px 24px;
	}

	.bda-featured-component__tag {
		top: 15px;
		left: 15px;
	}

	.bda-featured-component__summary {
		font-size: 13px;
	}

	.bda-featured-component__grid--count-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.bda-featured-component__grid--count-4 .bda-featured-component__content {
		padding: 24px;
	}

	.bda-featured-component__grid--count-4 .bda-featured-component__title {
		font-size: 22px;
	}

	.bda-featured-component__grid--count-4 .bda-featured-component__summary {
		font-size: 14px;
	}
}

@media screen and (max-width: 850px) {
	.bda-featured-component__grid,
	.bda-featured-component__grid--count-4 {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.bda-featured-component__media {
		aspect-ratio: 16 / 8;
	}

	.bda-featured-component__content,
	.bda-featured-component__grid--count-4 .bda-featured-component__content {
		padding: 24px;
	}

	.bda-featured-component__title,
	.bda-featured-component__grid--count-4 .bda-featured-component__title {
		font-size: 22px;
	}

	.bda-featured-component__summary,
	.bda-featured-component__grid--count-4 .bda-featured-component__summary {
		font-size: 14px;
	}
}

@media screen and (max-width: 767px) {
	.fw-main-row-custom.bda-home-featured-section .fw-container,
	.fw-main-row-custom.bda-home-featured-section .fw-container-fluid {
		width: calc(100vw - 32px) !important;
	}

	.bda-featured-component {
		padding: 58px 0 66px;
	}

	.bda-featured-component__heading h2 {
		font-size: clamp(32px, 9vw, 40px);
		line-height: 1.1;
	}

	.bda-featured-component__grid {
		margin-top: 34px;
	}

	.bda-featured-component__media {
		aspect-ratio: 16 / 10;
	}

	.bda-featured-component__tag,
	.bda-featured-component__grid--count-4 .bda-featured-component__tag {
		top: 14px;
		left: 14px;
		min-height: 26px;
		padding: 6px 11px;
		font-size: 9px;
	}

	.bda-featured-component__content,
	.bda-featured-component__grid--count-4 .bda-featured-component__content {
		padding: 21px 20px 23px;
	}

	.bda-featured-component__title,
	.bda-featured-component__grid--count-4 .bda-featured-component__title {
		margin-bottom: 10px;
		font-size: 20px;
	}

	.bda-featured-component__summary,
	.bda-featured-component__grid--count-4 .bda-featured-component__summary {
		font-size: 13px;
		line-height: 1.58;
	}

	.bda-featured-component__cta {
		padding-top: 22px;
	}
}
