/*
 * UTS Sri Lanka theme – global overrides (loaded only on Sri Lanka child theme).
 * Scoped via html[data-theme="sri-lanka"] in templates/layouts/base.hubl.html
 */

/*
 * BannerImage – standard overlay only (not theme / “ThemeBanner” squares).
 * `.textBox` is omitted when showThemeBackground is true; `[class*='_textBox_']`
 * matches CSS-module hashes for `textBox` but not `themeTextBox`.
 */
html[data-theme='sri-lanka'] [class*='_textBox_'] {
	display: inline-block;
	position: relative;
	left: calc(-90px + 20px);
	padding: 45px 30px 45px 60px;
	color: var(--color-white);
}

/* Beat late-loaded module CSS for wide viewports only (BannerImage .textBox uses ~33% above 1400px). */
@media (min-width: 992px) {
	html[data-theme='sri-lanka'] [class*='_textBox_'] {
		width: auto !important;
		max-width: none;
	}
}

/*
 * SidenavContentHero – above 1400px the base layout uses repeat(3, 1fr), which
 * limits the title block to ~33%. Collapse to a single column so the heading
 * can use full container width (same as default theme’s ≤1400px behaviour).
 */
@media (min-width: 1401px) {
	html[data-theme='sri-lanka'] .SidenavContentHero__container {
		grid-template-columns: 1fr;
		gap: 0;
	}

	html[data-theme='sri-lanka'] .SidenavContentHero__sidebar {
		margin-right: 0;
		width: auto;
		max-width: 100%;
		display: inline-flex;
	}

	html[data-theme='sri-lanka'] .SidenavContentHero__back-only-container {
		grid-template-columns: 1fr;
		gap: 0;
		padding-left: 0 !important;
	}

	html[data-theme='sri-lanka'] .SidenavContentHero__back-only-sidebar {
		left: 0;
		display: inline-flex;
	}
}

@media (max-width: 991px) {
	html[data-theme='sri-lanka'] [class*='_textBox_'] {
		width: 100%;
		left: 0;
		padding: 45px 30px 25px;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	html[data-theme='sri-lanka'] [class*='_textBox_'] {
		padding: 45px;
	}
}
