@charset "utf-8";

/**
 * Sitewide mobile + responsive polish (load after site-responsive.css)
 */

/* --- Emblem = primary home control (desktop + mobile) --- */
.logo-mark {
	float: left;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	border: 1px solid transparent;
	border-radius: 8px;
	-webkit-tap-highlight-color: transparent;
}
.logo-mark:hover,
.logo-mark:focus {
	text-decoration: none !important;
}
.logo-mark .national_emblem {
	float: none;
	display: block;
	width: auto;
	height: auto;
	max-height: 52px;
	object-fit: contain;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	overflow-x: hidden;
	min-width: 0;
}

/* Fluid media (exclude tiles / fixed-aspect frames) */
.banner-wrapper .slides > li > img,
.banner-wrapper .flexslider .slides > li > img {
	max-width: 100%;
	height: auto;
	display: block;
}

.carousel-wrapper .slides img {
	max-width: 100%;
	height: auto;
}

.prose-corporate > img,
.inner-content.prose-corporate > p > img,
.inner-content.prose-corporate img.doc-inline {
	max-width: 100%;
	height: auto;
}

.prose-corporate,
.inner-content.prose-corporate {
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (max-width: 767px) {
	.prose-corporate table {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border-collapse: collapse;
	}
}

@media (max-width: 520px) {
	.media-tiles,
	.media-tiles--dense {
		grid-template-columns: 1fr !important;
		gap: 1rem;
	}
}

@media (max-width: 640px) {
	.inner-page-primary {
		padding: 1.2rem 1rem 1.4rem !important;
		border-radius: 6px;
	}
	.inner-page .inner-page-grid {
		padding-left: 12px !important;
		padding-right: 12px !important;
		gap: 1.25rem;
	}
	.inner-page .inner-page-title {
		font-size: 1.35rem;
	}
	.inner-page .breadcrumb {
		font-size: 0.75rem;
		line-height: 1.45;
	}
}

@media (max-width: 960px) {
	.resp-tabs-container {
		height: auto !important;
		min-height: 0 !important;
	}
	.resp-tab-content {
		min-height: 0 !important;
	}
	.tab-section .resp-tabs-container.hor_1 {
		min-height: 0 !important;
	}
}

@media (max-width: 800px) {
	.side-links {
		min-height: 0 !important;
	}
	.side-links .list-content {
		height: auto !important;
		min-height: 0;
	}
}

@media (max-width: 767px) {
	.ico-site-search .search-drop,
	.search-drop.both-search {
		left: 0 !important;
		right: auto !important;
		width: min(100vw - 24px, 420px) !important;
		max-width: calc(100vw - 24px);
	}
}

/* --- Mobile header: one tight corporate lockup (container = card; nav slim) --- */
@media (max-width: 767px) {
	.header-wrapper {
		border-bottom: 1px solid #dbe4ee;
		background: #f5f7fa;
		box-shadow: none;
		padding: 0.35rem 0 0.45rem;
		box-sizing: border-box;
	}

	/* Single inset card: seal + titles + Swachh — no “floating islands” */
	.header-wrapper .header-container {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		flex-wrap: nowrap !important;
		gap: 0 !important;
		min-height: 0 !important;
		width: calc(100% - 20px) !important;
		max-width: 420px !important;
		margin-left: auto !important;
		margin-right: auto !important;
		padding: 0.5rem 0.75rem 0.55rem !important;
		box-sizing: border-box !important;
		text-align: center;
		background: linear-gradient(165deg, #fbfcfe 0%, #ffffff 50%, #f5f8fb 100%);
		border: 1px solid #cdd9e5;
		border-radius: 11px;
		box-shadow:
			0 1px 2px rgba(15, 23, 42, 0.04),
			0 6px 16px -8px rgba(15, 23, 42, 0.12);
		-webkit-font-smoothing: antialiased;
	}

	/* Stack: seal centered on first row; Hindi + English centered as one block below */
	.header-wrapper h1.logo {
		float: none !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: flex-start !important;
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 auto !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		font-size: 1rem !important;
		line-height: 1.32 !important;
		text-align: center;
		order: 0;
		background: none !important;
		border: none !important;
		box-shadow: none !important;
		border-radius: 0 !important;
	}

	.header-wrapper .logo-mark {
		float: none !important;
		flex-shrink: 0;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 50px;
		height: 50px;
		min-width: 50px;
		min-height: 50px;
		padding: 5px;
		margin: 0 auto 0.45rem !important;
		border-radius: 50%;
		background: radial-gradient(circle at 35% 28%, #ffffff 0%, #eef2f6 100%);
		box-shadow:
			0 1px 4px rgba(15, 23, 42, 0.07),
			inset 0 1px 0 rgba(255, 255, 255, 0.92);
		border: 1px solid rgba(90, 42, 42, 0.16);
	}

	.header-wrapper .logo-mark:focus-visible {
		outline: 2px solid #0262af;
		outline-offset: 2px;
	}

	.header-wrapper .logo-mark .national_emblem {
		width: 40px !important;
		height: 40px !important;
		max-width: 40px !important;
		max-height: 40px !important;
		padding: 0 !important;
		margin: 0 !important;
		object-fit: contain;
		display: block;
	}

	.header-wrapper .logo .department-title {
		position: static !important;
		width: 100% !important;
		max-width: 22rem !important;
		margin: 0 auto !important;
		padding: 0 !important;
		overflow: visible !important;
		clip: auto !important;
		clip-path: none !important;
		white-space: normal !important;
		border-top: none !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		gap: 0.2rem;
		text-align: center;
	}

	.header-wrapper .department-title em {
		display: block;
		margin: 0;
		padding: 0;
		width: 100%;
	}

	.header-wrapper .department-title a.header__logo {
		display: block;
		width: 100%;
		margin: 0;
		padding: 0;
		line-height: 1.38 !important;
		color: inherit;
		font-weight: 600;
		text-decoration: none !important;
		border: none;
		text-align: center !important;
		font-family:
			"Open Sans",
			"Noto Sans Devanagari",
			"Mukta Vaani",
			"Mangal",
			"Nirmala UI",
			system-ui,
			sans-serif;
	}

	.header-wrapper .department-title a.header__logo:hover,
	.header-wrapper .department-title a.header__logo:focus {
		color: #0262af !important;
	}

	.header-wrapper .department-title a.header__logo:not(.header__logo--en) span {
		display: block;
		white-space: normal !important;
		word-break: break-word;
		overflow-wrap: anywhere;
		font-weight: 700;
		font-size: 0.8125rem;
		letter-spacing: 0.015em;
		color: #152a42 !important;
		line-height: 1.36 !important;
	}

	.header-wrapper .department-title a.header__logo--en span {
		font-size: 0.6875rem !important;
		font-weight: 600 !important;
		letter-spacing: 0.035em;
		color: #3d5670 !important;
		line-height: 1.42 !important;
		font-feature-settings: "kern" 1;
	}

	/* Swachh Bharat: hidden on phones — keeps header to seal + names only */
	.header-wrapper .header-right {
		display: none !important;
	}

	.region-header-top .top-header .common-container {
		padding-left: 10px !important;
		padding-right: 10px !important;
		padding-top: 6px !important;
		padding-bottom: 6px !important;
	}
	.top-header .common-left a,
	.top-header .responsive_go_hindi a,
	.top-header .responsive_go_eng a {
		font-size: 0.75rem !important;
		line-height: 1.3;
	}
	.logo {
		min-width: 0 !important;
	}
}

/* Very small phones: tighter lockup */
@media (max-width: 480px) {
	.header-wrapper .header-container {
		width: calc(100% - 16px) !important;
		padding: 0.42rem 0.65rem 0.48rem !important;
	}

	.header-wrapper .department-title a.header__logo:not(.header__logo--en) span {
		font-size: 0.78rem !important;
	}
	.header-wrapper .department-title a.header__logo--en span {
		font-size: 0.66rem !important;
	}

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

/* Megamenu: tap targets + sticky institutional bar + drawer (no overlap into header) */
@media (max-width: 960px) {
	.main-menu .nav-menu > li > a {
		min-height: 44px;
		padding-top: 0.65rem;
		padding-bottom: 0.65rem;
		display: flex;
		align-items: center;
		box-sizing: border-box;
	}
	.main-menu .sub-nav ul li a {
		min-height: 40px;
		display: flex;
		align-items: center;
	}
}

@media (max-width: 940px) {
	button.showhide {
		appearance: none;
		-webkit-appearance: none;
		font: inherit;
		margin: 0;
	}

	.megamenu-wraper {
		position: sticky;
		top: 0;
		z-index: 10050;
		background: linear-gradient(180deg, #0570c4 0%, #0262af 55%, #025a9e 100%);
		box-shadow: 0 4px 18px rgba(10, 37, 64, 0.22);
		border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	}

	.megamenu-wraper .container.common-container.four_content.header-nav {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 0 0.5rem;
		min-height: 52px;
		padding: 0.5rem 12px !important;
		position: relative;
	}

	.megamenu-wraper .header-nav::before {
		content: "Menu";
		order: 0;
		flex: 1 1 auto;
		font-size: 0.6875rem;
		font-weight: 700;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: rgba(255, 255, 255, 0.95);
		padding: 0.25rem 0;
		pointer-events: none;
	}

	.megamenu-wraper .showhide {
		order: 1;
		position: relative !important;
		top: auto !important;
		right: auto !important;
		float: none !important;
		width: 48px;
		height: 48px;
		min-width: 48px;
		min-height: 48px;
		margin: 0 !important;
		padding: 0 !important;
		display: flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		border-radius: 10px;
		border: 1px solid rgba(255, 255, 255, 0.38);
		background: rgba(255, 255, 255, 0.14);
		box-sizing: border-box;
		-webkit-tap-highlight-color: transparent;
		cursor: pointer;
		z-index: 2;
	}

	.megamenu-wraper .showhide:focus-visible {
		outline: 2px solid #fed400;
		outline-offset: 2px;
	}

	.megamenu-wraper .showhide em {
		float: none !important;
		display: block;
		width: 22px !important;
		height: 2px !important;
		margin: 0 !important;
		background: #fff !important;
		border-radius: 1px;
	}

	.megamenu-wraper #main_menu.main-menu.main-menu1 {
		order: 3;
		flex: 1 1 100%;
		width: 100% !important;
		max-width: 100%;
		margin: 0.45rem 0 0 !important;
		clear: both;
		background: #fff;
		border-radius: 10px;
		overflow: hidden;
		box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
		border: 1px solid rgba(255, 255, 255, 0.25);
	}

	.megamenu-wraper #main_menu .nav-menu > li {
		border: none !important;
		border-bottom: 1px solid #e8ecf1 !important;
	}

	.megamenu-wraper #main_menu .nav-menu > li:last-child {
		border-bottom: none !important;
	}

	.megamenu-wraper #main_menu .nav-menu > li > a {
		background: #fff !important;
		color: #0a2540 !important;
		border-bottom: none !important;
		margin: 0 !important;
		font-weight: 600;
		text-transform: none;
		letter-spacing: 0.01em;
	}

	.megamenu-wraper #main_menu .nav-menu > li > a.home {
		background: #f5f8fc !important;
		color: #0262af !important;
	}

	.megamenu-wraper #main_menu .sub-nav {
		position: relative !important;
		top: 0 !important;
		border: none !important;
		border-top: 1px solid #dde5ee !important;
		background: #eef3f8 !important;
		margin: 0 !important;
		padding: 0.25rem 0 !important;
		box-sizing: border-box;
	}

	.megamenu-wraper #main_menu .sub-nav ul li {
		border-bottom: 1px solid rgba(2, 98, 175, 0.09) !important;
	}

	.megamenu-wraper #main_menu .sub-nav ul li:last-child {
		border-bottom: none !important;
	}

	.megamenu-wraper #main_menu .sub-nav ul li a {
		color: #1a3d66 !important;
		padding-left: 1.35rem !important;
		padding-right: 0.75rem !important;
		font-weight: 500 !important;
		background: transparent !important;
	}

	.megamenu-wraper #main_menu .sub-nav ul li a:hover,
	.megamenu-wraper #main_menu .sub-nav ul li a:focus {
		text-decoration: underline;
		color: #0262af !important;
	}
}

@media (max-width: 767px) {
	.megamenu-wraper .main-menu1 > .nav-menu {
		max-height: min(72vh, 560px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Slimmer nav strip on phones (overrides max-940 block; keeps 44×44 tap target) */
	.megamenu-wraper {
		box-shadow: 0 2px 10px rgba(10, 37, 64, 0.14) !important;
	}

	.megamenu-wraper .container.common-container.four_content.header-nav {
		min-height: 0 !important;
		padding: 0.28rem 10px !important;
	}

	.megamenu-wraper .header-nav::before {
		font-size: 0.625rem !important;
		letter-spacing: 0.1em !important;
		padding: 0.08rem 0 !important;
	}

	.megamenu-wraper .showhide {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		min-height: 44px !important;
		border-radius: 8px !important;
	}

	.megamenu-wraper .showhide em {
		width: 20px !important;
	}

	.megamenu-wraper #main_menu.main-menu.main-menu1 {
		margin-top: 0.32rem !important;
	}
}

/* Desktop header: undo global mobile-first logo-mark rules (this sheet loads last) */
@media (min-width: 768px) {
	.header-wrapper .logo-mark {
		float: none;
	}
	.header-wrapper .logo-mark .national_emblem {
		width: 64px;
		height: 64px;
		max-width: 64px;
		max-height: 64px;
	}
}

.video-corporate,
video.video-corporate {
	max-width: 100%;
}

@supports (padding: env(safe-area-inset-left)) {
	body {
		padding-left: env(safe-area-inset-left);
		padding-right: env(safe-area-inset-right);
	}
}
