/* Dedicated dropdown overrides: loaded AFTER nav.css */

/* Base dropdown container */
body #mainNav .dropdown-menu {
	background: linear-gradient(135deg, rgba(11,18,32,0.96) 0%, rgba(15,23,42,0.96) 100%) !important;
	border: 1px solid rgba(255,255,255,0.08) !important;
	border-radius: 18px !important;
	box-shadow: 0 20px 40px rgba(2,6,23,0.45) !important;
	padding: 18px 18px 20px !important;
	color: #ffffff !important;
	z-index: 5000 !important;
	height: auto !important; min-height: 0 !important; max-height: none !important;
}

/* Mega menu sizing and alignment */
body #mainNav .dropdown-mega { 
	width: calc(100% - 24px) !important; max-width: 1280px !important; left: 50% !important; transform: translateX(-50%) !important;
}

/* Two-column layout */
body #mainNav .dropdown-mega .row > [class^="col-"] { position: relative; }
body #mainNav .dropdown-mega .row > [class^="col-"]::after { content: ''; position: absolute; top: 8px; bottom: 8px; right: -10px; width: 1px; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08), transparent); }
body #mainNav .dropdown-mega .row > [class^="col-"]:last-child::after { display: none; }

/* Titles and links */
body #mainNav .dropdown-mega .mega-title,
body #mainNav .dropdown-mega .mega-title a { color: #ffffff !important; font-weight: 700; font-size: .95rem; margin-bottom: .6rem; opacity: .95; text-decoration: none; }

body #mainNav .dropdown-mega .mega-list { list-style: none; padding: 0; margin: 0; }
body #mainNav .dropdown-mega .mega-list li { margin-bottom: .5rem; }
body #mainNav .dropdown-mega .mega-list a { display: block; padding: .75rem .9rem; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.95) !important; text-decoration: none; position: relative; transition: transform .15s ease, background .15s ease, box-shadow .2s ease; }
body #mainNav .dropdown-mega .mega-list a:hover { background: rgba(255,255,255,0.12); color: #ffffff !important; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.28); }
body #mainNav .dropdown-mega .mega-list a .icon-left { margin-right: .55rem; width: 1rem; text-align: center; }

/* HARD OVERRIDES: ensure text is visible if any global CSS hides it */
body #mainNav .dropdown-menu *,
body #mainNav .dropdown-mega *,
body #mainNav .dropdown-item {
	color: #ffffff !important;
	fill: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	opacity: 1 !important;
	visibility: visible !important;
	filter: none !important;
}
body #mainNav .dropdown-item { font-size: 0.95rem !important; line-height: 1.25rem !important; }

/* Prevent empty/blank panels from showing */
body #mainNav .dropdown-menu:empty { display: none !important; }
/* If content exists but no anchor links (older browsers), keep panel hidden */
body #mainNav .dropdown-mega .container:only-child { display: block; }

/* Desktop hover open */
@media (min-width: 992px) {
	body #mainNav .dropdown.position-static:hover > .dropdown-menu { display: block !important; }
	body #mainNav .dropdown .dropdown-menu:hover { display: block !important; }
}


