/**
 * Banner đầu trang nội bộ — ACC FUTEK.
 *
 * Dùng cho các trang Dự toán, Hệ thống phân phối...
 */

.acc-page-banner {
	--acc-banner-primary: var(--fs-color-primary, var(--primary-color, #446084));
	--acc-banner-text: #fff;
	--acc-banner-overlay: rgba(0, 0, 0, 0.55);
	position: relative;
	min-height: 260px;
	margin: 0 0 24px;
	padding: 56px 16px;
	overflow: hidden;
	color: var(--acc-banner-text);
	text-align: center;
	background-color: var(--acc-banner-primary);
}

.acc-page-banner.no-image {
	background: linear-gradient(
		135deg,
		var(--acc-banner-primary) 0%,
		color-mix(in srgb, var(--acc-banner-primary) 70%, #000 30%) 100%
	);
}

/* Fallback nếu trình duyệt không hỗ trợ color-mix(). */
@supports not (background: color-mix(in srgb, red, blue)) {
	.acc-page-banner.no-image {
		background: linear-gradient(135deg, var(--acc-banner-primary) 0%, #2c4660 100%);
	}
}

.acc-page-banner__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
}

.acc-page-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.35) 0%,
		var(--acc-banner-overlay) 100%
	);
	z-index: 1;
}

.acc-page-banner__inner {
	position: relative;
	z-index: 2;
	max-width: 960px;
	margin: 0 auto;
}

.acc-page-banner__crumbs {
	margin-bottom: 14px;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.85);
}

.acc-page-banner__crumbs a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.acc-page-banner__crumbs a:hover,
.acc-page-banner__crumbs a:focus {
	opacity: 0.8;
	text-decoration: underline;
}

.acc-page-banner__crumb-sep {
	display: inline-block;
	margin: 0 8px;
	opacity: 0.6;
}

.acc-page-banner__crumb-current {
	font-weight: 600;
	color: #fff;
}

.acc-page-banner__title {
	margin: 0;
	font-size: clamp(1.5rem, 3.4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.acc-page-banner__subtitle {
	max-width: 720px;
	margin: 14px auto 0;
	font-size: clamp(0.95rem, 1.4vw, 1.05rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}

/* Tablet. */
@media (max-width: 991px) {
	.acc-page-banner {
		min-height: 220px;
		padding: 44px 16px;
	}
}

/* Mobile. */
@media (max-width: 600px) {
	.acc-page-banner {
		min-height: 180px;
		padding: 36px 14px;
		margin-bottom: 16px;
	}

	.acc-page-banner__crumbs {
		font-size: 0.8rem;
		margin-bottom: 10px;
	}

	.acc-page-banner__subtitle {
		margin-top: 10px;
	}
}
