/* template-parts/section/how_adh_works.php */
/* ----------------------------------------------------------
   HOW ADH WORKS SECTION
---------------------------------------------------------- */
.how-adh-section {
	padding: var(--section-py) var(--section-px);
	display: flex;
	justify-content: center;
	align-items: center;
	background: linear-gradient(180deg, var(--color-white) -22.29%, #d8d8d8 146.76%);
}

.how-adh-container {
	width: 100%;
	max-width: var(--container-max);
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.how-adh-header {
	width: 100%;
	max-width: 1140px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.how-adh-title {
	font-size: var(--fs-3xl);
	font-weight: 700;
	line-height: var(--lh-2xl);
	letter-spacing: -0.2px;
	text-align: center;
}

.how-adh-title span {
	color: var(--color-primary);
}

.how-adh-subtitle {
	font-size: var(--fs-md);
	font-weight: 400;
	line-height: var(--lh-md);
	text-align: center;
}

.how-adh-subtitle p {
	margin-bottom: 16px;
}

.how-adh-subtitle p:last-child {
	margin-bottom: 0;
}

.how-adh-banner {
	position: relative;
	width: 100%;
	max-width: var(--container-max);
	aspect-ratio: 1140 / 642;
	overflow: hidden;
	margin: 0 auto;
}

.how-adh-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	position: absolute;
	inset: 0;
	z-index: var(--z-base);
}

.how-adh-overlay {
	position: absolute;
	inset: 0;
	background: var(--gradient-overlay-bottom);
	z-index: var(--z-content);
}

.how-adh-content {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	z-index: 2;
}

.how-adh-column {
	width: 100%;
	height: 100%;
	padding: 48px 24px;
	box-sizing: border-box;
	display: flex;
	align-items: flex-end;
	border-right: 1px solid var(--color-text-muted);
}

.how-adh-column:last-child {
	border-right: none;
}

.how-adh-card {
	width: 100%;
	max-width: 469px;
	padding: 40px 30px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Lớp nền đen mờ */
.how-adh-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Hover hiện nền đen */
.how-adh-card:hover::before {
    opacity: 1;
}

/* Nội dung nổi lên trên lớp nền */
.how-adh-card > * {
    position: relative;
    z-index: 1;
}

.how-adh-card-header {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.how-adh-icon {
	display: flex;
	justify-content: flex-start;
}

.how-adh-card-title {
	font-size: var(--fs-xl);
	font-weight: 700;
	line-height: var(--lh-xl);
	color: var(--color-text-light);
}

.how-adh-card-description {
	font-size: var(--fs-md);
	font-weight: 400;
	line-height: var(--lh-sm);
	color: var(--color-text-muted);
}

.how-adh-card-description p {
	margin-bottom: 16px;
}

.how-adh-card-description p:last-child {
	margin-bottom: 0;
}

.how-adh-button {
	width: 143px;
	height: 40px;
	padding: 8px 28px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--color-primary);
	border: none;
	border-radius: var(--radius-md);
	font-weight: 400;
	font-size: var(--fs-sm);
	line-height: var(--lh-sm);
	color: var(--color-white);
	cursor: pointer;
}

.how-adh-button:hover {
	background: #3399ff;
}

.how-adh-card-video {
	display: none;
}

/* TABLET */
@media (max-width: 1024px) {
	.how-adh-section {
		padding: var(--section-py) var(--section-px);
	}
	.how-adh-header {
		height: auto;
	}
	.how-adh-title {
		width: 514px;
	}
	.how-adh-banner {
		max-width: 784px;
		aspect-ratio: 784 / 540;
	}
	.how-adh-content {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
	.how-adh-column {
		padding: 32px 16px;
	}
	.how-adh-card {
		padding: 24px 16px;
		gap: 16px;
	}
}

/* MOBILE */
@media (max-width: 767.9px) {
	.how-adh-section {
		height: auto;
		padding: var(--section-py) var(--section-px);
	}
	.how-adh-container {
		width: 100%;
		gap: 48px;
	}
	.how-adh-header {
		width: 100%;
		height: auto;
		gap: 16px;
	}
	.how-adh-title {
		font-size: var(--fs-xl);
		line-height: var(--lh-xl);
		width: 100%;
		max-width: 342px;
	}
	.how-adh-subtitle {
		font-size: var(--fs-sm);
		line-height: var(--lh-sm);
		width: 100%;
		max-width: 342px;
	}
	.how-adh-banner {
		position: static;
		width: 100%;
		height: auto;
		aspect-ratio: unset;
		overflow: visible;
	}
	.how-adh-overlay,
	.how-adh-video {
		display: none;
	}
	.how-adh-content {
		position: static;
		inset: unset;
		display: flex;
		flex-direction: column;
		gap: 24px;
	}
	.how-adh-column {
		width: 100%;
		height: auto;
		padding: 0;
		display: block;
	}
	.how-adh-card {
		position: relative;
		width: 100%;
		min-height: 380px;
		padding: 24px 20px;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		overflow: hidden;
	}
	.how-adh-card-video {
		display: block;
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		z-index: var(--z-base);
	}
	.how-adh-card::before {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.85) 100%);
		z-index: var(--z-content);
	}
	.how-adh-card-header,
	.how-adh-card-description,
	.how-adh-button {
		position: relative;
		z-index: 2;
	}
	.how-adh-card-header {
		gap: 8px;
	}
	.how-adh-card-title {
		font-size: var(--fs-md);
		line-height: var(--lh-md);
		color: var(--color-white);
	}
	.how-adh-card-description {
		font-size: var(--fs-xs);
		line-height: var(--lh-xs);
		color: rgba(255, 255, 255, 0.85);
	}
	.how-adh-button {
		width: 100%;
		margin-top: 8px;
	}
}
