/* Shared device compatibility fixes for the public website. */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	overflow-x: hidden;
}

.page-wraper,
.page-content,
.container,
.container-fluid,
.row,
section {
	max-width: 100%;
}

img,
iframe,
video,
embed,
object {
	max-width: 100%;
	height: auto;
}

input,
select,
textarea,
button {
	max-width: 100%;
}

.table-responsive {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

table {
	max-width: 100%;
}

td,
th {
	word-break: normal;
	overflow-wrap: normal;
}

.sx-bnr-inr {
	min-height: 180px;
}

.sx-bnr-inr-entry,
.banner-title-name {
	max-width: 100%;
}

.title-heading,
.banner-title-name h1,
.banner-title-name h2,
.section-title h1,
.section-title h2,
.section-title h3 {
	overflow-wrap: anywhere;
}

@media only screen and (max-width: 991px) {
	.marquee-section {
		display: block !important;
		padding: 6px 10px !important;
	}

	.marquee-section > div {
		width: 100% !important;
		margin-right: 0 !important;
	}

	.toolbar-right {
		justify-content: center !important;
		flex-wrap: wrap !important;
		gap: 8px !important;
		padding: 8px 0 !important;
	}

	.toolbar-right .d-flex {
		flex-wrap: wrap !important;
		justify-content: center !important;
	}

	.toolbar-right .social-bx {
		justify-content: center !important;
	}

	.top-section-header-inner-main,
	.logo-aiims-top-header {
		max-width: 100% !important;
	}

	.logo-aiims-top-header img {
		max-width: min(100%, 520px) !important;
		height: auto !important;
	}

	.main-bar .container {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		flex-wrap: wrap !important;
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	.navbar-toggler {
		order: 1 !important;
		margin: 8px 0 !important;
	}

	.extra-nav {
		order: 2 !important;
		margin-left: auto !important;
	}

	.header-nav {
		order: 3 !important;
		flex: 0 0 100% !important;
		width: 100% !important;
		max-height: calc(100vh - 120px) !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		-webkit-overflow-scrolling: touch !important;
	}

	.header-nav .nav {
		max-height: calc(100vh - 150px) !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
	}

	.header-nav .nav > li > a {
		color: #ffffff !important;
		white-space: normal !important;
		line-height: 1.35 !important;
	}

	.header-nav .submenu-toogle {
		appearance: none !important;
		-webkit-appearance: none !important;
		border: 0 !important;
		background: transparent !important;
		color: inherit !important;
		cursor: pointer !important;
		display: block !important;
		text-align: center !important;
	}

	.header-nav .has-child.nav-active > .submenu-toogle {
		transform: rotate(90deg);
	}

	.header-nav .nav > li ul,
	.header-nav .nav > li .sub-menu,
	.header-nav .nav > li .mega-menu {
		width: 100% !important;
		min-width: 0 !important;
	}

	.header-nav .nav > li .sub-menu,
	.header-nav .nav > li .mega-menu {
		position: static !important;
		max-height: none !important;
		overflow: visible !important;
		box-shadow: none !important;
		background: #0b4f63 !important;
	}

	.header-nav .nav > li .sub-menu li,
	.header-nav .nav > li .mega-menu li {
		background: #0b4f63 !important;
		border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
	}

	.header-nav .nav > li .sub-menu li a,
	.header-nav .nav > li .mega-menu li a,
	.header-nav .dept-centres > li > a,
	.header-nav .dept-centres > li > .sub-menu > li > a {
		color: #ffffff !important;
		background: transparent !important;
		white-space: normal !important;
		line-height: 1.35 !important;
	}

	.header-nav .nav > li .sub-menu li a:hover,
	.header-nav .nav > li .mega-menu li a:hover,
	.header-nav .nav > li .sub-menu li a:focus,
	.header-nav .nav > li .mega-menu li a:focus {
		background: rgba(255, 255, 255, 0.12) !important;
		color: #ffffff !important;
	}

	.side-bar {
		width: 100% !important;
		margin-bottom: 24px !important;
		padding: 16px !important;
	}

	.side-bar .widget {
		margin-bottom: 0 !important;
	}

	.side-bar ul {
		margin-bottom: 0 !important;
	}

	.side-bar .widget_services ul li a {
		display: block !important;
		padding: 10px 12px !important;
		line-height: 1.35 !important;
	}

	.sticky_column,
	.sticky_column .theiaStickySidebar {
		position: static !important;
		transform: none !important;
	}

	.ptb-60,
	.ptb-50 {
		padding: 32px 0 !important;
	}

	.section-title {
		margin-bottom: 18px !important;
	}

	.abt-section-r-clmn,
	.dashboard_content,
	.pages-table-format,
	.content {
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
	}

	.abt-section-r-clmn table,
	.dashboard_content table,
	.pages-table-format table,
	.content table,
	table.table,
	table.table-responsive {
		width: max-content !important;
		min-width: 720px !important;
		max-width: none !important;
		table-layout: auto !important;
	}

	.abt-section-r-clmn table th,
	.abt-section-r-clmn table td,
	.dashboard_content table th,
	.dashboard_content table td,
	.pages-table-format table th,
	.pages-table-format table td,
	.content table th,
	.content table td {
		word-break: normal !important;
		overflow-wrap: normal !important;
		white-space: normal !important;
		min-width: 90px;
	}

	.abt-section-r-clmn table th:first-child,
	.abt-section-r-clmn table td:first-child,
	.dashboard_content table th:first-child,
	.dashboard_content table td:first-child,
	.pages-table-format table th:first-child,
	.pages-table-format table td:first-child,
	.content table th:first-child,
	.content table td:first-child {
		min-width: 52px;
	}

	.q-links-fixed {
		top: auto !important;
		right: 8px !important;
		bottom: 18px !important;
		z-index: 999 !important;
	}
}

@media only screen and (max-width: 767px) {
	body {
		font-size: 13px;
	}

	.container {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	.row {
		margin-left: -12px !important;
		margin-right: -12px !important;
	}

	[class*="col-"] {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	.sx-bnr-inr {
		min-height: 140px !important;
		background-position: center center !important;
	}

	.sx-bnr-inr-entry {
		padding: 28px 0 !important;
	}

	.banner-title-name h1,
	.banner-title-name h2,
	.title-heading {
		font-size: 24px !important;
		line-height: 1.25 !important;
	}

	.sub-title {
		font-size: 13px !important;
	}

	table thead th,
	table td {
		padding: 8px 10px !important;
		font-size: 13px !important;
	}

	.abt-section-r-clmn table,
	.dashboard_content table,
	.pages-table-format table,
	.content table,
	table.table,
	table.table-responsive {
		min-width: 680px !important;
	}

	.footer-top,
	.footer-bottom {
		text-align: center !important;
	}

	.sx-footer-bot-center {
		float: none !important;
		text-align: center !important;
	}
}

@media only screen and (max-width: 480px) {
	.logo-aiims-top-header img {
		max-width: 100% !important;
	}

	.extra-nav .extra-cell {
		margin-left: 8px !important;
	}

	.get-in-touch-btn {
		padding-left: 10px !important;
		padding-right: 10px !important;
		font-size: 12px !important;
	}

	.banner-title-name h1,
	.banner-title-name h2,
	.title-heading {
		font-size: 21px !important;
	}

	.sx-breadcrumb {
		font-size: 12px !important;
	}

	.btn,
	button {
		white-space: normal !important;
	}
}
