/*
 * 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 45px 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;
	}
}

/* bannerslider with swiper */
/* @import url('http://example.com/example_style.css'); */

/***********************************************/
/* CSS @imports must be at the top of the file */
/* Add them above this section                 */
/***********************************************/

/*****************************************/
/* Start your style declarations here    */
/*****************************************/

html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper [class*='_textBox_'] {
    left: 50%;
    max-width: 1440px;
    width: 100% !important;
    transform: translateX(-50%);
    position: absolute;
    top: auto;
    bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
}

html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper [class^='_textBoxInner_'] {
	background-color: #000;
	padding: 30px;
	max-width: 515px;
}

html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper [class^='_heading_'] {
	font-size: 28px;
	font-weight: 500;
	line-height: 1.33;
	margin-bottom: 15px;
	}

html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper [class^='_description_'] {
	font-size: 18px;
	line-height: 1.5;
	margin-bottom: 15px;
}

html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper [class^='_ctaButton_'] {
	border-radius: 0; 
	border: 0;
	background-color: #eb1c00;
	padding: 12px 24px;
	font-size: 18px;
	line-height: 1.5rem;
}

html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper [class^='_ctaButton_'] .g-icon {
	color: #eb1c00;
}

html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper [class^='_ctaButton_']:hover {
	background-color: #dc1a00;
}

html[data-theme='sri-lanka'] [class^="_bannerSlider"] [class^='_pagination_'] {
	background: transparent !important;
	padding: 0;
}

html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper-pagination-bullet {
	width: 15px;
	height: 15px;
	background-color: #0622c7;
	opacity: 0.65;
}

html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper-pagination-bullet.swiper-pagination-bullet-active {
	opacity: 1;
}

html[data-theme='sri-lanka'] [class^="_bannerSlider"] [class^='_paginationWrapper_'] {
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    text-align: right;
    padding: 0px 60px;
    display: flex;
    justify-content: flex-end;
    right: auto;
	align-items: flex-end;
}


html[data-theme='sri-lanka'] .c-stickyCta__blue {
	background-color: #000;
	border-left: 4px solid #0622c7;
}

html[data-theme='sri-lanka'] .c-stickyCta__blue:hover {
	background-color: #0622c7;
}

@media all and (min-width: 768px) {

	html[data-theme='sri-lanka'] .c-stickyCta {
		gap: 0;
		left: calc(100% - 100px);
	}

	html[data-theme='sri-lanka'] .c-stickyCta:hover {
		left: calc(100% - 250px);
	}

	html[data-theme='sri-lanka'] .c-stickyCta a {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		max-width: 100px;
		max-height: 100px;
		padding-left: 6px;
		padding-right: 6px;
		transition: max-width .3s cubic-bezier(.4, 0, .2, 1);
		flex: 1 0 100px;
	}

	html[data-theme='sri-lanka'] .c-stickyCta a span {
		text-align: center;
		white-space: nowrap;
	}

	html[data-theme='sri-lanka'] .c-stickyCta:hover a {
		left: calc(100% - 250px);
		max-width: 250px;
		flex-direction: row;
		justify-content: flex-start;
		padding-left: 32px;
		padding-right: 32px;
	}

	html[data-theme='sri-lanka'] .c-stickyCta:hover a span {
		text-align: left;
	}
}

@media all and (max-width: 991px) {
	html[data-theme='sri-lanka'] .c-stickyCta a {
		gap: 4px;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	html[data-theme='sri-lanka'] .c-stickyCta .c-stickyCta__label {
		display: block;
	}
	html[data-theme='sri-lanka'] .c-stickyCta .c-stickyCta__hover-label {
		display: none;
	}
	html[data-theme='sri-lanka'] .c-stickyCta:hover .c-stickyCta__label {
		display: none;
	}
	html[data-theme='sri-lanka'] .c-stickyCta:hover .c-stickyCta__hover-label {
		display: block;
	}
}

@media all and (max-width: 767px) {
	html[data-theme='sri-lanka'] .c-stickyCta a {
		height: 76px;
		display: flex;
    	flex-direction: column;
	}
	html[data-theme='sri-lanka'] .c-stickyCta .c-stickyCta__label {
		display: block;
	}
	html[data-theme='sri-lanka'] .c-stickyCta .c-stickyCta__hover-label {
		display: none;
	}
}


@media all and (max-width: 991px) {
	html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper [class*='_textBox_'] {
		padding: 0;
	}
}

@media all and (max-width: 767px) {
	html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper {
		background-color: #000;
	}
	html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper [class^='_slideInner_'] {
		height: auto;
	}
	html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper [class^='_bgImage_'] {
		position: relative;
		width: 100%;
		height: 225px;
	}
	html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper [class*='_textBox_'] {
		position: relative;
		bottom: auto;
		padding: 0;
		transform: none; 
		left: 0;
	}
	html[data-theme='sri-lanka'] [class^="_bannerSlider"] .swiper [class^='_textBoxInner_'] {
		max-width: 100%;
	}
	html[data-theme='sri-lanka'] [class^="_bannerSlider"] [class^='_paginationWrapper_'] {
		bottom: auto;
		left: 16px;
		position: absolute;
		transform: none;
		z-index: 10;
		top: 185px;
		padding: 0;
		justify-content: flex-start;
		align-items: center;
	}
	html[data-theme='sri-lanka'] [class^="_bannerSlider"] [class^='_paginationWrapper_']:has([class*='_navControls_']) {
		flex-direction: row-reverse;
		justify-content: space-between;
		left: 0;
		top: 190px;
	}
	html[data-theme='sri-lanka'] [class^="_bannerSlider"] [class*='_navControls_'] {
		transform: translate(-8px, -8px);
	}
	html[data-theme='sri-lanka'] .c-stickyCta__blue {
		border-left: 0;
	}
	html[data-theme='sri-lanka'] .c-stickyCta a:not(:first-of-type) {
		border-right: 1px solid #fff;
	}

	html[data-theme='sri-lanka'] .row-depth-1.row-number-2 [class^="_bannerSliderWrapper_"] {
		padding-top: 64px;
	}
}

/*
 * 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;
	}
}
