/* ============================================================
   Discover Programs Widget
   bh-dp
   ============================================================ */

.bh-dp {
	box-sizing: border-box;
	margin-left: calc(50% - 50vw);
	width: 100vw;
}

/* === Header === */

.bh-dp__header {
	background-color: #1d2229;
	box-sizing: border-box;
	padding: 64px 120px;
}

.bh-dp__title {
	color: #ffffff;
	font-family: 'Ubuntu', sans-serif;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.36px;
	line-height: 1.3;
	margin: 0 0 12px;
}

.bh-dp__subtitle {
	color: #ffffff;
	font-family: 'Ubuntu', sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	margin: 0 0 32px;
}

/* === Controls === */

.bh-dp__controls {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.bh-dp__search-wrap {
	align-items: center;
	background-color: transparent;
	border: 1px solid #ffffff;
	border-radius: 4px;
	box-sizing: border-box;
	display: flex;
	flex: 0 1 520px;
	gap: 10px;
	min-width: 0;
	padding: 10px 16px;
}

.bh-dp__search-icon {
	color: #ffffff;
	flex-shrink: 0;
}

.bh-dp__search {
	-webkit-appearance: none;
	appearance: none;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #ffffff;
	display: block;
	flex: 1 0 0;
	font-family: 'Ubuntu', sans-serif;
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 0;
	min-width: 0;
	outline: none;
	padding: 0;
}

.bh-dp__search::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.bh-dp__search:-webkit-autofill,
.bh-dp__search:-webkit-autofill:hover,
.bh-dp__search:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px transparent inset !important;
	-webkit-text-fill-color: #ffffff !important;
	transition: background-color 5000s ease-in-out 0s;
}

.bh-dp__dropdowns {
	display: flex;
	flex-shrink: 0;
	gap: 12px;
}

.bh-dp__dropdown {
	appearance: none;
	-webkit-appearance: none;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-position: right 12px center;
	background-repeat: no-repeat;
	border: 1px solid #ffffff;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	font-family: 'Ubuntu', sans-serif;
	font-size: 0.875rem;
	line-height: 1.5;
	min-width: 160px;
	padding: 10px 36px 10px 16px;
}

.bh-dp__dropdown option {
	background-color: #1d2229;
	color: #ffffff;
}

/* === Body === */

.bh-dp__body {
	background-color: #ffffff;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding: 64px 120px;
}

/* === Grid === */

.bh-dp__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* === Card === */

.bh-dp__card {
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.bh-dp__card[hidden] {
	display: none;
}

.bh-dp__card-media {
	height: 200px;
	overflow: hidden;
	position: relative;
}

.bh-dp__card-image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.bh-dp__card-image-placeholder {
	background-color: #f3f4f6;
	height: 100%;
	width: 100%;
}

/* === Badge === */

.bh-dp__badge {
	border-radius: 100px;
	font-family: 'Ubuntu', sans-serif;
	font-size: 12px;
	font-weight: 700;
	left: 12px;
	line-height: 1;
	padding: 5px 10px;
	position: absolute;
	top: 12px;
}

.bh-dp__badge--new {
	background-color: #f0af24;
	color: #1d2229;
}

.bh-dp__badge--open {
	background-color: #22c55e;
	color: #ffffff;
}

.bh-dp__badge--closed {
	background-color: #6b7280;
	color: #ffffff;
}

.bh-dp__badge--coming-soon {
	background-color: #3b82f6;
	color: #ffffff;
}

/* === Card body === */

.bh-dp__card-body {
	display: flex;
	flex: 1 0 0;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
}

.bh-dp__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bh-dp__tag {
	border: 1px solid #d1d5db;
	border-radius: 4px;
	color: #1d2229;
	font-family: 'Ubuntu', sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	padding: 2px 10px;
}

.bh-dp__card-title {
	color: #000000;
	font-family: 'Ubuntu', sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.18px;
	line-height: 1.4;
	margin: 0;
}

.bh-dp__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bh-dp__meta-item {
	align-items: center;
	color: #606469;
	display: flex;
	font-family: 'Ubuntu', sans-serif;
	font-size: 0.8125rem;
	font-weight: 400;
	gap: 8px;
	line-height: 1.5;
}

.bh-dp__meta-icon {
	color: #606469;
	flex-shrink: 0;
}

.bh-dp__card-desc {
	color: #606469;
	font-family: 'Ubuntu', sans-serif;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

.bh-dp__card-link {
	align-items: center;
	color: #f0af24;
	display: inline-flex;
	font-family: 'Ubuntu', sans-serif;
	font-size: 0.875rem;
	font-weight: 400;
	gap: 6px;
	line-height: 1.5;
	margin-top: auto;
	text-decoration: none;
	transition: color 0.15s ease, gap 0.15s ease;
}

.bh-dp__card-link:hover {
	color: #c08c1c;
	gap: 10px;
	text-decoration: none;
}

.bh-dp__link-arrow {
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.bh-dp__empty {
	color: #606469;
	font-family: 'Ubuntu', sans-serif;
	font-size: 1rem;
	grid-column: 1 / -1;
	padding: 40px 0;
	text-align: center;
}

/* === Pagination === */

.bh-dp__pagination {
	align-items: center;
	display: flex;
	gap: 6px;
	justify-content: center;
}

.bh-dp__page-btn {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	color: #1d2229;
	cursor: pointer;
	display: inline-flex;
	font-family: 'Ubuntu', sans-serif;
	font-size: 0.875rem;
	font-weight: 400;
	height: 36px;
	justify-content: center;
	line-height: 1;
	min-width: 36px;
	padding: 0 8px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bh-dp__page-btn:hover:not([disabled]):not(.is-active) {
	background-color: #f3f4f6;
}

.bh-dp__page-btn.is-active {
	background-color: #1d2229;
	border-color: #1d2229;
	color: #ffffff;
}

.bh-dp__page-btn[disabled] {
	cursor: not-allowed;
	opacity: 0.4;
}

.bh-dp__page-btn--prev,
.bh-dp__page-btn--next {
	font-size: 1.125rem;
}

.bh-dp__page-ellipsis {
	align-items: center;
	color: #606469;
	display: inline-flex;
	font-family: 'Ubuntu', sans-serif;
	font-size: 0.875rem;
	height: 36px;
	justify-content: center;
	min-width: 36px;
}

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

@media (max-width: 1024px) {
	.bh-dp__header {
		padding: 48px 48px;
	}

	.bh-dp__body {
		padding: 48px 48px;
	}

	.bh-dp__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bh-dp__controls {
		flex-wrap: wrap;
	}

	.bh-dp__search-wrap {
		flex: 1 0 280px;
	}

	.bh-dp__dropdowns {
		flex-shrink: 0;
	}

	.bh-dp__dropdown {
		min-width: 140px;
	}
}

@media (max-width: 640px) {
	.bh-dp__header {
		padding: 40px 24px;
	}

	.bh-dp__body {
		padding: 40px 24px;
	}

	.bh-dp__grid {
		grid-template-columns: 1fr;
	}

	.bh-dp__dropdowns {
		flex-direction: column;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bh-dp__card-link,
	.bh-dp__link-arrow,
	.bh-dp__page-btn {
		transition: none;
	}
}
