/*
 * Shivganga shared header
 * A copy of the header on shivgangajhabua.org (assets/css/style-new.css, sections
 * 02 Header and 03 Mobile Menu), so donors see one site as they move between
 * shivgangajhabua.org and donate.shivgangajhabua.com.
 * Everything is scoped to .sgmh: the rest of the donation pages keep their own styling.
 */

.sgmh {
	position: relative;
	z-index: 999;
	min-height: 74px; /* holds the space while the bar is fixed, so the page does not jump */
	background: #fff;
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 28px;
	color: #68666C;
	-webkit-font-smoothing: antialiased;
}
.sgmh *, .sgmh *::before, .sgmh *::after { box-sizing: border-box; }
.sgmh ul, .sgmh li { list-style: none; margin: 0; padding: 0; }
.sgmh a { text-decoration: none; box-shadow: none; }
.sgmh img { display: inline-block; height: auto; border: 0; }
.sgmh button {
	margin: 0;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.sgmh a:focus-visible, .sgmh button:focus-visible { outline: 2px solid #57bd4d; outline-offset: 2px; }

/* ---------- Bar ---------- */
.sgmh-bar { width: 100%; background: #fff; }
.sgmh.is-sticky .sgmh-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	box-shadow: 0 10px 15px rgba(25, 25, 25, 0.1);
	animation: sgmhFadeInDown 1000ms ease-in-out both;
}
@keyframes sgmhFadeInDown {
	from { opacity: 0; transform: translate3d(0, -100%, 0); }
	to { opacity: 1; transform: none; }
}
.admin-bar .sgmh.is-sticky .sgmh-bar, .admin-bar .sgmh-drawer { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .sgmh.is-sticky .sgmh-bar, .admin-bar .sgmh-drawer { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .sgmh.is-sticky .sgmh-bar { top: 0; }
}

.sgmh-container {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	width: 100%;
	max-width: 1590px;
	margin: 0 auto;
	padding: 0 15px;
}
@media (max-width: 1800px) { .sgmh-container { max-width: 1530px; } }
@media (max-width: 1500px) { .sgmh-container { max-width: 1320px; } }
@media (max-width: 1199.98px) { .sgmh-container { max-width: 960px; flex-wrap: nowrap; justify-content: space-between; } }
@media (max-width: 991.98px) { .sgmh-container { max-width: 720px; } }
@media (max-width: 767.98px) { .sgmh-container { max-width: 100%; } }
@media (min-width: 576px) and (max-width: 767px) { .sgmh-container { max-width: 540px; } }

/* ---------- Logo ---------- */
.sgmh .sgmh-logo { display: block; flex: 0 0 auto; line-height: 0; }
.sgmh .sgmh-logo img { width: 70px; height: 70px; max-width: 197px; }

/* ---------- Desktop menu ---------- */
.sgmh-nav { display: flex; flex-grow: 1; }
.sgmh .sgmh-menu { display: flex; flex-direction: row; flex-wrap: wrap; margin: 0 auto 0 160px; }
@media (max-width: 1500px) { .sgmh .sgmh-menu { margin: 0 auto; } }
@media (max-width: 1199.98px) { .sgmh-nav { display: none; } }

.sgmh .sgmh-menu li { display: block; position: relative; }
.sgmh .sgmh-menu > li > a {
	position: relative;
	z-index: 1;
	display: inline-flex;
	padding: 30px 18px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	color: #191B1E;
	transition: all 0.3s ease-out 0s;
}
.sgmh .sgmh-menu > li > a:hover,
.sgmh .sgmh-menu > li > a:focus,
.sgmh .sgmh-menu > li:hover > a { color: #191B1E; }
.sgmh .sgmh-menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	width: 0;
	height: 0;
	margin: 0 auto;
	border-style: solid;
	border-width: 0 31px 4px 10px;
	border-color: #57bd4d;
	opacity: 0;
	transition: all 0.3s ease-out 0s;
}
.sgmh .sgmh-menu > li:hover > a::after,
.sgmh .sgmh-menu > li:focus-within > a::after,
.sgmh .sgmh-menu > li.active > a::after { opacity: 1; }

.sgmh .sgmh-menu .sub-menu {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 9;
	display: block;
	min-width: 255px;
	margin: 0;
	padding: 18px 0;
	border: 1px solid #f5f5f5;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 30px 70px 0 rgba(137, 139, 142, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: scale(1, 0);
	transform-origin: 0 0;
	transition: all 0.3s ease-out 0s;
}
.sgmh .sgmh-menu li:hover > .sub-menu,
.sgmh .sgmh-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: scale(1, 1); }
.sgmh .sgmh-menu .sub-menu li { display: block; margin-left: 0; text-align: left; }
.sgmh .sgmh-menu .sub-menu li a {
	display: block;
	padding: 8px 10px 8px 25px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.75;
	text-transform: uppercase;
	color: #191B1E;
	transition: all 0.3s ease-out 0s;
}
.sgmh .sgmh-menu .sub-menu li:hover > a,
.sgmh .sgmh-menu .sub-menu li > a:focus,
.sgmh .sgmh-menu .sub-menu li.active > a { padding-left: 35px; color: #FCAF17; }

/* ---------- Menu button (below 1200px) ---------- */
.sgmh .sgmh-toggler {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 45px;
	padding: 6px 10px;
	border: 1px solid #191B1E;
	background: transparent;
	color: #191B1E;
}
.sgmh .sgmh-toggler:hover, .sgmh .sgmh-toggler:focus { border-color: #191B1E; background: transparent; color: #191B1E; }
.sgmh .sgmh-toggler svg { display: block; width: 27px; height: 30px; fill: currentColor; }
@media (max-width: 1199.98px) {
	.sgmh { min-height: 70px; }
	.sgmh .sgmh-toggler { display: flex; }
}

/* ---------- Mobile drawer ---------- */
.sgmh-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 1000;
	width: 100%;
	height: 100%;
	background: #fff;
	opacity: 0;
	visibility: hidden;
	transition: all 700ms ease-out 0s;
}
.sgmh-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 1001;
	width: 300px;
	max-width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateX(101%);
	transition: all 700ms ease-out 0s;
}
.sgmh.sgmh-open .sgmh-drawer { opacity: 1; visibility: visible; transform: translateX(0); }
.sgmh.sgmh-open .sgmh-backdrop { opacity: 0.8; visibility: visible; }
.sgmh-drawer__box {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	background: #fff;
	box-shadow: -9px 0 14px 0 rgba(0, 0, 0, 0.06);
}
.sgmh .sgmh-close {
	position: absolute;
	right: 25px;
	top: 28px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #312620;
	transition: all 0.9s ease-out 0s;
}
.sgmh .sgmh-close:hover, .sgmh .sgmh-close:focus { background: transparent; color: #312620; }
.sgmh.sgmh-open .sgmh-close { transform: rotate(360deg); }
.sgmh .sgmh-close svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; fill: none; }
.sgmh .sgmh-drawer__logo { position: relative; padding: 30px 25px; text-align: left; line-height: 0; }
.sgmh .sgmh-drawer__logo img { width: 70px; height: 70px; max-width: 197px; }

.sgmh .sgmh-mmenu { display: block; width: 100%; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.sgmh .sgmh-mmenu li { position: relative; display: block; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.sgmh .sgmh-mmenu li > a {
	position: relative;
	display: block;
	padding: 10px 25px;
	font-size: 14px;
	font-weight: 500;
	line-height: 24px;
	text-transform: uppercase;
	color: #191B1E;
	transition: all 500ms ease-out 0s;
}
.sgmh .sgmh-mmenu li.menu-item-has-children > a { padding-right: 50px; }
.sgmh .sgmh-mmenu li > a:hover, .sgmh .sgmh-mmenu li > a:focus { color: #191B1E; }
.sgmh .sgmh-mmenu li.active > a { color: #0054FF; }
.sgmh .sgmh-mmenu .sub-menu { display: none; }
.sgmh .sgmh-mmenu .sub-menu li a { margin-left: 20px; }
.sgmh .sgmh-dd {
	position: absolute;
	right: 6px;
	top: 6px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: #efefef;
	color: #312620;
	transition: all 500ms ease-out 0s;
}
.sgmh .sgmh-dd:hover, .sgmh .sgmh-dd:focus { background: #efefef; color: #312620; }
.sgmh .sgmh-dd.open, .sgmh .sgmh-dd.open:hover, .sgmh .sgmh-dd.open:focus { background: #0054FF; color: #fff; transform: rotate(90deg); }
.sgmh .sgmh-dd svg { display: block; width: 10px; height: 16px; fill: currentColor; }

.sgmh .sgmh-social { position: relative; padding: 30px 25px; text-align: center; }
.sgmh .sgmh-social li { position: relative; display: inline-block; margin: 0 10px 10px; }
.sgmh .sgmh-social a { display: inline-flex; align-items: center; height: 32px; color: #312620; transition: all 0.3s ease-out 0s; }
.sgmh .sgmh-social a:hover, .sgmh .sgmh-social a:focus { color: #312620; }
.sgmh .sgmh-social svg { display: block; height: 16px; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
	.sgmh *, .sgmh.is-sticky .sgmh-bar { transition: none !important; animation: none !important; }
}
