/**
 * BK Related Dự Án Widget Styles
 * Author: Bùi Đức Hạnh (https://buhaweb.com/)
 * Prefix: bdh-bk-
 * Kit 4 Global Design System Compliant (Tông Xanh Lá Chủ Đạo)
 */

/* ==========================================================================
   1. ROOT & HEADER
   ========================================================================== */
.bdh-bk-related-du-an {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.bdh-bk-related-du-an *,
.bdh-bk-related-du-an *::before,
.bdh-bk-related-du-an *::after {
	box-sizing: border-box;
}

.bdh-bk-related-du-an__header {
	margin-bottom: 24px;
}

.bdh-bk-related-du-an__title {
	margin: 0;
	padding: 0;
	color: var(--e-global-color-d27c3cc, #1f2328);
	font-size: var(--e-global-typography-8dc9564-font-size, 24px);
	font-weight: var(--e-global-typography-8dc9564-font-weight, 700);
	line-height: var(--e-global-typography-8dc9564-line-height, 1.3);
}

.bdh-bk-related-du-an__line {
	width: 40px;
	height: 3px;
	background-color: var(--e-global-color-97923db, #1e6b3a);
	border-radius: 2px;
	margin-top: 8px;
	display: inline-block;
}

/* ==========================================================================
   2. SLIDER WRAPPER & CONTAINER
   ========================================================================== */
.bdh-bk-related-du-an__slider-wrap {
	position: relative;
	width: 100%;
}

.bdh-bk-related-du-an__slider {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.bdh-bk-related-du-an__slider .swiper-wrapper {
	align-items: stretch;
}

.bdh-bk-related-du-an__slider .swiper-slide {
	height: auto;
	display: flex;
}

/* ==========================================================================
   3. PROJECT CARD
   ========================================================================== */
.bdh-bk-related-du-an__card {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	background-color: var(--e-global-color-8d5d81d, #ffffff);
	border: 1px solid var(--e-global-color-fcc82ce, #e5e7eb);
	border-radius: 10px;
	padding: 14px 14px 16px;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.bdh-bk-related-du-an__card:hover {
	border-color: var(--e-global-color-1070229, #2cac55);
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Thumbnail Wrap */
.bdh-bk-related-du-an__thumb-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: #f1f5f9;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bdh-bk-related-du-an__thumb--aspect-1-1 {
	aspect-ratio: 1 / 1;
}

.bdh-bk-related-du-an__thumb--aspect-4-3 {
	aspect-ratio: 4 / 3;
}

.bdh-bk-related-du-an__thumb--aspect-16-9 {
	aspect-ratio: 16 / 9;
}

.bdh-bk-related-du-an__thumb--aspect-natural {
	height: auto;
}

.bdh-bk-related-du-an__thumb-link {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bdh-bk-related-du-an__thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	user-select: none;
	-webkit-user-drag: none;
}

.bdh-bk-related-du-an__card:hover .bdh-bk-related-du-an__thumb-wrap img {
	transform: scale(1.06);
}

/* Content */
.bdh-bk-related-du-an__card-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	margin-top: 12px;
}

.bdh-bk-related-du-an__category {
	font-size: 12px;
	font-weight: 600;
	color: var(--e-global-color-97923db, #1e6b3a);
	background-color: var(--e-global-color-d9c2012, #e8f6ec);
	text-decoration: none;
	padding: 3px 8px;
	border-radius: 4px;
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: all 0.2s ease;
}

.bdh-bk-related-du-an__category:hover {
	background-color: var(--e-global-color-97923db, #1e6b3a);
	color: var(--e-global-color-8d5d81d, #ffffff);
}

.bdh-bk-related-du-an__card-title {
	margin: 0 0 10px 0;
	padding: 0;
	font-size: var(--e-global-typography-fc3ef67-font-size, 16px);
	font-weight: var(--e-global-typography-fc3ef67-font-weight, 600);
	line-height: var(--e-global-typography-fc3ef67-line-height, 1.35);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}

.bdh-bk-related-du-an__card-title a {
	color: var(--e-global-color-d27c3cc, #1f2328);
	text-decoration: none;
	transition: color 0.2s ease;
}

.bdh-bk-related-du-an__card-title a:hover {
	color: var(--e-global-color-97923db, #1e6b3a);
}

/* Meta list: Address & Power */
.bdh-bk-related-du-an__meta-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: auto;
	margin-bottom: 12px;
}

.bdh-bk-related-du-an__card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--e-global-typography-79e5d5b-font-size, 13.5px);
	line-height: 1.4;
	color: var(--e-global-color-76ff1c6, #4b5563);
}

.bdh-bk-related-du-an__card-meta i,
.bdh-bk-related-du-an__card-meta svg,
.bdh-bk-related-du-an__card-meta .elementor-icon {
	width: 14px;
	height: 14px;
	font-size: 13px;
	fill: var(--e-global-color-1070229, #2cac55);
	color: var(--e-global-color-1070229, #2cac55);
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bdh-bk-related-du-an__card-meta svg {
	width: 14px;
	height: 14px;
}

.bdh-bk-related-du-an__card-meta span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Action Button */
.bdh-bk-related-du-an__card-action {
	margin-top: 4px;
}

.bdh-bk-related-du-an__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 8px 14px;
	background-color: var(--e-global-color-d9c2012, #e8f6ec);
	color: var(--e-global-color-97923db, #1e6b3a);
	border: 1px solid var(--e-global-color-5c987e6, #7fcb98);
	border-radius: 6px;
	font-size: var(--e-global-typography-79e5d5b-font-size, 13px);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s ease;
}

.bdh-bk-related-du-an__btn:hover {
	background-color: var(--e-global-color-938e6c1, #1C7D38);
	border-color: var(--e-global-color-938e6c1, #1C7D38);
	color: var(--e-global-color-8d5d81d, #ffffff);
}

/* ==========================================================================
   4. NAVIGATION ARROWS & DOTS
   ========================================================================== */
.bdh-bk-related-du-an__arrow {
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	z-index: 15;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: var(--e-global-color-8d5d81d, #ffffff);
	color: var(--e-global-color-97923db, #1e6b3a);
	border: 1px solid var(--e-global-color-fcc82ce, #e5e7eb);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	outline: none;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bdh-bk-related-du-an__arrow svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.bdh-bk-related-du-an__arrow--prev {
	left: -18px;
}

.bdh-bk-related-du-an__arrow--next {
	right: -18px;
}

.bdh-bk-related-du-an__arrow:hover {
	background-color: var(--e-global-color-938e6c1, #1C7D38);
	color: var(--e-global-color-8d5d81d, #ffffff);
	border-color: var(--e-global-color-938e6c1, #1C7D38);
	box-shadow: 0 6px 16px rgba(42, 145, 80, 0.25);
	transform: translateY(-50%) scale(1.05);
}

.bdh-bk-related-du-an__arrow:active {
	transform: translateY(-50%) scale(0.95);
}

.bdh-bk-related-du-an__arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* Pagination Dots */
.bdh-bk-related-du-an__pagination {
	margin-top: 18px;
	position: relative !important;
	bottom: auto !important;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.bdh-bk-related-du-an__pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 !important;
	background-color: var(--e-global-color-fcc82ce, #e5e7eb);
	opacity: 1;
	border-radius: 4px;
	transition: all 0.25s ease;
}

.bdh-bk-related-du-an__pagination .swiper-pagination-bullet-active {
	width: 24px;
	background-color: var(--e-global-color-97923db, #1e6b3a);
}

/* ==========================================================================
   5. RESPONSIVE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 1024px) {
	.bdh-bk-related-du-an__arrow--prev {
		left: -8px;
	}
	.bdh-bk-related-du-an__arrow--next {
		right: -8px;
	}
}

@media (max-width: 767px) {
	.bdh-bk-related-du-an__card {
		padding: 12px;
	}

	.bdh-bk-related-du-an__arrow {
		width: 34px;
		height: 34px;
	}

	.bdh-bk-related-du-an__arrow svg {
		width: 12px;
		height: 12px;
	}

	.bdh-bk-related-du-an__arrow--prev {
		left: 4px;
	}

	.bdh-bk-related-du-an__arrow--next {
		right: 4px;
	}
}
