/* ==========================================================================
   Nexus on Joomla 4: fills the gaps left by the removed JUX mega menu and
   disclaimer plugin, and adds a phone layout. Desktop look follows the
   2014 design (template.css), measured from the archived live site.
   ========================================================================== */

.clear { clear: both; }
header, section, footer { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* ---- Top bar ------------------------------------------------------------ */
.header_top p { margin: 0; }
.header_top a { color: #363636; }

/* ---- Main menu (was JUX mega menu) ---------------------------------------- */
.nx-headrow { position: relative; }
.nx-nav { position: relative; z-index: 50; }
.nx-nav ul { margin: 0; padding: 0; list-style: none; }
.nx-nav > ul > li,
.nx-nav .mod-menu > li { float: left; position: relative; list-style: none; margin: 0; padding: 0; }
.nx-nav .mod-menu > li > a,
.nx-nav .mod-menu > li > span {
	display: block;
	padding: 15px;
	background-color: #e2e2e2;
	color: #000;
	font: bold 12px/16px Helvetica, Arial, sans-serif;
	border-left: 1px solid #fff;
	border-right: 1px solid #fff;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .3s ease, color .3s ease;
}
.nx-nav .mod-menu > li.parent > a::after,
.nx-nav .mod-menu > li.parent > span::after { content: " \25BE"; font-weight: normal; }
.nx-nav .mod-menu > li:hover > a,
.nx-nav .mod-menu > li:hover > span,
.nx-nav .mod-menu > li:focus-within > a,
.nx-nav .mod-menu > li:focus-within > span,
.nx-nav .mod-menu > li.active > a,
.nx-nav .mod-menu > li.active > span {
	background-color: #ff0000;
	color: #fff;
	text-decoration: none;
}

/* dropdowns */
.nx-nav .mod-menu ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #ccc;
	text-align: left;
	box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.nx-nav .mod-menu > li:hover > ul,
.nx-nav .mod-menu > li:focus-within > ul { display: block; }
.nx-nav .mod-menu ul li { float: none; margin: 0; padding: 0; list-style: none; }
.nx-nav .mod-menu ul li a {
	display: block;
	padding: 7px 10px;
	background: #e2e2e2;
	color: #000;
	font: 12px/18px Helvetica, Arial, sans-serif;
	border: 0;
	border-top: 1px solid #fff;
	white-space: nowrap;
	text-decoration: none;
}
.nx-nav .mod-menu ul li a:hover,
.nx-nav .mod-menu ul li a:focus,
.nx-nav .mod-menu ul li.current > a { background: #ff0000; color: #fff !important; }
/* last top-level dropdown opens leftwards so it stays on screen */
.nx-nav .mod-menu > li:last-child > ul,
.nx-nav .mod-menu > li:nth-last-child(2) > ul { left: auto; right: 0; }

.nx-menu-toggle { display: none; }

/* ---- Banner -------------------------------------------------------------- */
.img_banner { position: relative; }
.img_banner p { margin: 0; }
.img_banner ul li { list-style: none; }

/* ---- Content ------------------------------------------------------------- */
.main-content .page-header h1,
.main-content .page-header h2 { font-size: 20px; }
.main-content .com-content-article__body img { max-width: 100%; height: auto; }
.contentright ul { padding: 0; }
/* J4 article info bar / icons are not part of the original look */
.com-content-article .article-info, .com-content-article .icons { display: none; }
.breadcrumb { display: none; }

/* ---- Footer -------------------------------------------------------------- */
.nx-bottom { overflow: hidden; padding-top: 10px; }
footer .nx-bottom ul { margin: 0; padding: 0; }
footer .nx-bottom ul li { list-style: none; margin: 0; padding: 0; }
footer .nx-bottom ul li ul { padding-left: 25px; }
footer .nx-bottom ul li ul li { list-style: disc; }
footer .nx-bottom p { margin-bottom: 0; }
footer address { padding: 10px; }

/* ---- Entry disclaimer (Bar Council of India) ------------------------------ */
html.nx-locked, html.nx-locked body { overflow: hidden; }
.nx-disclaimer {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0,0,0,.9);
	box-sizing: border-box;
}
.nx-disclaimer[hidden] { display: none; }
.nx-disclaimer-box {
	width: 720px;
	max-width: 100%;
	max-height: 100%;
	overflow-y: auto;
	background: #fff;
	color: #000;
	border-radius: 7px;
	padding: 12px 12px 22px;
	text-align: center;
	font: 12px/1.45 Arial, Helvetica, sans-serif;
	box-sizing: border-box;
}
.nx-disclaimer-icon { display: block; margin: 8px auto 6px; width: 120px; height: auto; }
.nx-disclaimer h2 {
	background: #626262;
	color: #fff;
	font: 14px/1.2 Arial, Helvetica, sans-serif;
	padding: 9px;
	margin: 0 0 8px;
}
.nx-disclaimer p { margin: 8px 6px; line-height: 1.45; }
.nx-disclaimer ul { margin: 6px 0 6px 18px; padding: 0; text-align: center; }
.nx-disclaimer ul li { list-style: square; margin: 6px 0; padding: 0; }
.nx-disclaimer-buttons { margin-top: 14px; }
.nx-disclaimer-buttons button,
.nx-disclaimer-buttons a {
	display: inline-block;
	margin: 0 10px;
	padding: 4px 6px;
	background: none;
	border: 0;
	color: #000;
	font: bold 12px Arial, Helvetica, sans-serif;
	letter-spacing: 4px;
	cursor: pointer;
	text-decoration: none;
}
.nx-disclaimer-buttons button:hover,
.nx-disclaimer-buttons a:hover,
.nx-disclaimer-buttons button:focus-visible,
.nx-disclaimer-buttons a:focus-visible { text-decoration: underline; outline: none; }

/* ---- Tablets and phones (the 2014 design was fixed at 988px) --------------- */
@media (max-width: 1010px) {
	.pc { width: auto; max-width: 988px; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
	.img_banner { height: auto; padding-bottom: 12px; background-size: 100% auto; }
	.img_banner ul { position: static; width: auto; margin-top: 8px; }
	.contentleft, .contentright { float: none; width: auto; margin-left: 0; }
	.contentright { margin-top: 30px; }
	.call_box { position: static; margin: 16px auto 0; }
	.add_contain .w70, .add_contain .w30 { width: 100%; }
}
@media (max-width: 760px) {
	.header_top { text-align: left; padding-left: 0; padding-right: 0; }
	.nx-headrow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
	.logo { float: none; }
	.nx-menu-toggle {
		display: block;
		background: #e2e2e2;
		border: 0;
		padding: 10px 16px;
		font: bold 13px Helvetica, Arial, sans-serif;
		cursor: pointer;
	}
	.nx-nav { float: none; width: 100%; display: none; margin-top: 8px; text-align: left; }
	.nx-nav.is-open { display: block; }
	.nx-nav .mod-menu > li { float: none; }
	.nx-nav .mod-menu ul { display: block; position: static; min-width: 0; box-shadow: none; }
	.nx-nav .mod-menu ul li a { padding-left: 28px; white-space: normal; }
	.add_contain address.w25 { width: 50%; }
	.nx-bottom .moduletable { width: 50% !important; }
	ul.coreteam li { width: 50%; }
}
@media (max-width: 420px) {
	.add_contain address.w25, .nx-bottom .moduletable { width: 100% !important; }
}

/* Article titles: Joomla 4 prints <h1> where Joomla 3 printed a plain <h2>,
   which wrongly picked up the 2014 ".page-header h1" section-heading style. */
.com-content-article > .page-header h1 {
	font-size: 21px;
	font-weight: normal;
	text-transform: none;
	color: #363636;
	background: none;
	border: 0;
	padding: 0;
	margin: 0 0 4px;
}
