/**
 * BK Dự Án Content 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 & BODY CONTENT
   ========================================================================== */
.bdh-bk-du-an-content {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

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

.bdh-bk-du-an-content__body {
	position: relative;
	width: 100%;
	word-break: break-word;
	overflow-wrap: break-word;
}

/* ==========================================================================
   2. COLLAPSIBLE ACCORDION & FADE OVERLAY
   ========================================================================== */
.bdh-bk-du-an-content--collapsible .bdh-bk-du-an-content__body.is-collapsed {
	overflow: hidden;
	position: relative;
	transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bdh-bk-du-an-content--collapsible .bdh-bk-du-an-content__body.is-expanded {
	transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gradient Fade Mask at Bottom */
.bdh-bk-du-an-content__fade {
	position: absolute;
	bottom: 50px;
	left: 0;
	width: 100%;
	height: 120px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 80%, rgba(255, 255, 255, 1) 100%);
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.3s ease;
	z-index: 5;
}

.bdh-bk-du-an-content.is-expanded .bdh-bk-du-an-content__fade {
	opacity: 0;
	visibility: hidden;
}

/* Action Button Wrapper */
.bdh-bk-du-an-content__btn-wrap {
	position: relative;
	z-index: 10;
	text-align: center;
	margin-top: 10px;
}

.bdh-bk-du-an-content__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 24px;
	background-color: var(--e-global-color-d9c2012, rgba(44, 172, 85, 0.08));
	color: var(--e-global-color-97923db, #1e6b3a);
	border: 1px solid var(--e-global-color-5c987e6, #7fcb98);
	border-radius: 30px;
	font-size: var(--e-global-typography-fc3ef67-font-size, 16px);
	font-weight: 600;
	cursor: pointer;
	outline: none;
	box-shadow: 0 4px 12px rgba(30, 107, 58, 0.08);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bdh-bk-du-an-content__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);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(42, 145, 80, 0.25);
}

.bdh-bk-du-an-content__btn-icon {
	width: 16px;
	height: 16px;
	fill: currentColor;
	transition: transform 0.3s ease;
}

.bdh-bk-du-an-content.is-expanded .bdh-bk-du-an-content__btn-icon {
	transform: rotate(180deg);
}

/* ==========================================================================
   3. TYPOGRAPHY HEADINGS & PARAGRAPHS
   ========================================================================== */
.bdh-bk-du-an-content__body h2,
.bdh-bk-du-an-content__body h3,
.bdh-bk-du-an-content__body h4,
.bdh-bk-du-an-content__body h5,
.bdh-bk-du-an-content__body h6 {
	color: var(--e-global-color-d27c3cc, #1f2328);
	font-weight: 700;
	line-height: 1.35;
	clear: both;
}

.bdh-bk-du-an-content__body h2 {
	font-size: var(--e-global-typography-e47b9d8-font-size, 34px);
	margin-top: 1.2em;
	margin-bottom: 16px;
}

.bdh-bk-du-an-content__body h3 {
	font-size: var(--e-global-typography-67f7cb1-font-size, 26px);
	margin-top: 1.1em;
	margin-bottom: 14px;
}

.bdh-bk-du-an-content__body h4 {
	font-size: var(--e-global-typography-8dc9564-font-size, 22px);
	margin-top: 1em;
	margin-bottom: 12px;
}

.bdh-bk-du-an-content__body h5 {
	font-size: var(--e-global-typography-30bf004-font-size, 19px);
	margin-top: 0.9em;
	margin-bottom: 10px;
}

.bdh-bk-du-an-content__body h6 {
	font-size: var(--e-global-typography-fc3ef67-font-size, 17px);
	margin-top: 0.8em;
	margin-bottom: 8px;
}

.bdh-bk-du-an-content__body p {
	color: var(--e-global-color-76ff1c6, #4b5563);
	font-size: var(--e-global-typography-afd6f4d-font-size, 16px);
	font-weight: 400;
	line-height: var(--e-global-typography-afd6f4d-line-height, 1.65em);
	margin-top: 0;
	margin-bottom: 16px;
}

/* ==========================================================================
   4. LINKS (A TAG)
   ========================================================================== */
.bdh-bk-du-an-content__body a {
	color: var(--e-global-color-97923db, #1e6b3a);
	text-decoration: none;
	transition: color 0.2s ease, text-decoration 0.2s ease;
}

.bdh-bk-du-an-content__body a:hover {
	color: var(--e-global-color-938e6c1, #1C7D38);
	text-decoration: underline;
}

/* ==========================================================================
   5. LISTS, IMAGES & TABLES
   ========================================================================== */
.bdh-bk-du-an-content__body ul,
.bdh-bk-du-an-content__body ol {
	padding-left: 24px;
	margin-bottom: 16px;
	color: var(--e-global-color-76ff1c6, #4b5563);
	line-height: 1.65em;
}

.bdh-bk-du-an-content__body li {
	margin-bottom: 6px;
}

.bdh-bk-du-an-content__body img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 20px auto;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bdh-bk-du-an-content__body table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	border: 1px solid var(--e-global-color-fcc82ce, #e5e7eb);
	border-radius: 6px;
	overflow: hidden;
}

.bdh-bk-du-an-content__body th,
.bdh-bk-du-an-content__body td {
	padding: 12px 16px;
	border: 1px solid var(--e-global-color-fcc82ce, #e5e7eb);
	font-size: var(--e-global-typography-afd6f4d-font-size, 15px);
	text-align: left;
}

.bdh-bk-du-an-content__body th {
	background-color: var(--e-global-color-14ec4f2, #f8f9fa);
	color: var(--e-global-color-d27c3cc, #1f2328);
	font-weight: 600;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (Tablet <= 1024px, Mobile <= 767px)
   ========================================================================== */
@media (max-width: 767px) {
	.bdh-bk-du-an-content__body h2 {
		font-size: 26px;
	}
	.bdh-bk-du-an-content__body h3 {
		font-size: 22px;
	}
	.bdh-bk-du-an-content__body h4 {
		font-size: 19px;
	}
	.bdh-bk-du-an-content__btn {
		width: 100%;
		padding: 12px 20px;
	}
}
