@charset "utf-8";

/* Reset & Common */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; color: #333; -webkit-font-smoothing: antialiased; }
ul, li { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { border: 0; vertical-align: middle; max-width: 100%; height: auto; }
.fl { float: left; }
.fr { float: right; }
.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.clearfix { zoom: 1; }

/* Layout Containers */
.wrap { width: 100%; min-width: 320px; padding-bottom: 30px;
   /* overflow-x: hidden; */
}
.content { width: 100%; max-width: 1200px; margin: 0 auto; position: relative; }

/* Header */
.top { height: 100px; background: #fff; }
.top .content { height: 100%; display: flex; align-items: center; justify-content: flex-start; }
.top img { display: block; }
.top h2 { font-size: 24px; color: #104492; font-style: italic; font-weight: bold; margin-left: 20px; }
.top .fl:nth-child(2) { width: 1px; height: 40px; background: #104492; margin: 0 20px; }

/* Navigation */
.nav { background-color: #eeeeee; height: 60px; line-height: 60px; position: relative; z-index: 999; overflow: visible !important; box-shadow: 0px 0px 10px #bbbbbb; display: block; }
.nav .content { position: static; height: 60px; } /* Allow submenu to span full width relative to .nav */
.nav .nav-brand { display: none; }
.nav .nav-brand img { display: block; height: 30px; width: auto; }
.nav ul { display: block; }
.nav ul li { float: left; } /* Removed position: relative to prevent trapping submenu */
/* Explicitly set color to override any inherit issues */
.nav ul li a { display: block; padding: 0 26px; font-size: 16px; font-weight: bold; color: #104492; transition: .2s linear; }
/* Hover state - ensure specificity */
.nav ul li:hover > a, .nav ul li.active > a { background-color: rgba(16, 68, 146, 0.9); color: #eeeeee; }

/* Sticky Navigation Class (referenced in JS) */
.nav.i-nav { position: fixed; top: 0; left: 0; width: 100%; box-shadow: 0 2px 5px rgba(0,0,0,0.1); animation: slideDown 0.3s ease; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Submenu */
.nav-menu-sub { display: none; position: absolute; top: 60px; left: 0; width: 100%; background: rgba(16, 68, 146, 0.95); padding: 28px 0; z-index: 999999; }
/* .nav li:hover .nav-menu-sub { display: block; } REMOVED for CSS Transition */
.nav-menu-sub .cw { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; }
.nav-menu-sub .item { width: 240px; height: 160px; padding: 0 0 0 15px; box-sizing: border-box; }
.nav-menu-sub .vertical { width: 1px; height: 135px; background-color: rgba(33, 99, 152, 0.95); margin: 10px 5px 0 0; float: left; }
.nav-menu-sub .title { display: block; font-size: 14px; font-weight: bold; color: #eee; line-height: 32px; margin-bottom: 0; padding-bottom: 0; border: none; }
.nav-menu-sub .rows a { display: block; line-height: 24px; font-size: 12px; color: #8db1f3; padding: 2px 0; transition: .3s linear; }
.nav-menu-sub .rows a:hover { color: #eeeeee; text-decoration: underline; }

/* Industries Specific Styles */
.nav-menu-sub .item.item-Industries { height: auto; min-height: 60px; padding-bottom: 20px; }
.nav-menu-sub .vertical-Industries { width: 1px; height: 24px; background-color: rgba(33, 99, 152, 0.95); margin: 8px 10px 0 0; float: left; }
.nav-menu-sub .title-2 { display: block; line-height: 24px; font-size: 14px; color: #8db1f3; font-weight: bold; padding: 8px 12px; transition: color 0.3s ease; }
.nav-menu-sub .title-2:hover { color: #eeeeee; text-decoration: underline; }

@media screen and (min-width: 961px) {
    .nav-menu-sub {
        display: block;
        visibility: visible;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        transition-property: max-height, padding, transform;
        transition-duration: 0.65s, 0.65s, 0.65s;
        transition-timing-function: cubic-bezier(0.3, 0, 0.2, 1), cubic-bezier(0.3, 0, 0.2, 1), cubic-bezier(0.3, 0, 0.2, 1);
    }
    .nav li:hover .nav-menu-sub {
        max-height: 260px;
        padding: 28px 0;
        transform: translateY(0);
        transition-duration: 0.65s, 0.65s, 0.65s;
    }
    .nav.nav-sub-collapsed .nav-menu-sub {
        max-height: 0;
        padding: 0;
        transform: translateY(-12px);
    }
}

/* Footer */
.footer {
    width: 100%;
    background-color: #016cb4;
    color: #eeeeee;
    padding: 24px 0;
    margin-top: 30px;
}
.footer .index-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer .index-footer span {
    margin-left: 20px;
    color: #eeeeee;
}
.footer .index-footer img {
    width: 100px;
}

.footer .index-footer .fl-l{
    margin-left: 200px;
}

.footer .index-footer .fl-r{
    margin-left: 50px;
}

@media screen and (max-width:768px) {
    .footer .index-footer .fl-l{
    margin-left: 0px;
}
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    z-index: 12002;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #104492;
    position: absolute;
    left: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.menu-toggle span:nth-child(1) { top: 5px; }
.menu-toggle span:nth-child(2) { top: 13px; }
.menu-toggle span:nth-child(3) { top: 21px; }

.menu-toggle.active span:nth-child(1) {
	top: 13px;
	transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
	top: 13px;
	transform: rotate(-45deg);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 960px) {
    /* Header Adjustments */
    body {
		/* background-color: #f5f7fb; */
		 padding-top: calc(50px + env(safe-area-inset-top)); 
		}
    .top { display: none; }
    
	/* Mobile Navigation */
	.nav { height: calc(50px + env(safe-area-inset-top)); line-height: 50px; background-color: #f5f7fb; box-shadow: 0 2px 6px rgba(0,0,0,0.05); position: fixed; top: 0; left: 0; right: 0; z-index: 12000; padding-top: env(safe-area-inset-top); }
	.nav .content { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; }
	.nav .nav-brand { display: flex; align-items: center; height: 50px; }
	.menu-toggle { display: block;  top: auto; }
	.nav ul {
		position: fixed;
		top: calc(50px + env(safe-area-inset-top));
		left: 0;
		right: 0;
		bottom: 0;
		background-color: #ffffff;
		box-shadow: 0 5px 10px rgba(0,0,0,0.2);
		z-index: 12001;
		overflow-y: auto;
		transform: translateY(-8px);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.2s ease-out, opacity 0.2s ease-out;
		display: block;
	}
	body.nav-open .nav ul {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}
	.nav ul li { float: none; width: 100%; border-bottom: 1px solid #eee; }
	.nav ul li a { padding: 15px 20px; color: #333; background-color: #f8f9fc; }
	.nav ul li:hover > a { background-color: transparent; color: #333; } /* Remove hover effect on mobile */

	.nav ul li.has-dropdown > a {
		position: relative;
		padding-right: 44px;
	}

	.nav ul li.has-dropdown > a::after {
		content: "";
		width: 10px;
		height: 10px;
		position: absolute;
		right: 18px;
		top: 50%;
		transform: translateY(-50%) rotate(45deg);
		transform-origin: center;
		border-right: 2px solid #9aa4b8;
		border-bottom: 2px solid #9aa4b8;
		transition: transform 0.2s ease, border-color 0.2s ease;
	}

	.nav ul li.has-dropdown.sub-open > a::after {
		transform: translateY(-50%) rotate(-135deg);
		border-right-color: #104492;
		border-bottom-color: #104492;
	}
    
    /* Mobile Submenu */
    .nav li:hover .nav-menu-sub { display: none; } /* Disable hover */
    .nav-menu-sub { position: relative; top: 0; box-shadow: none; padding: 0; background: #f9f9f9; }
    .nav-menu-sub .cw { flex-direction: column; }
    .nav-menu-sub .item { width: 100%; height: auto; padding: 10px 30px; } /* Override fixed size */
    .nav-menu-sub .vertical { display: none; } /* Hide vertical lines on mobile */
    /* Mobile Submenu Text Colors Overrides */
    .nav-menu-sub .title { color: #666; border-bottom: 1px solid #ddd; line-height: 32px; }
	.nav-menu-sub .rows a { color: #104492; font-size: 13px; }
	.nav-menu-sub .rows a:hover { color: #104492; }

	.nav-menu-sub .item.item-Industries { padding: 0; min-height: 0; height: auto; }
	.nav-menu-sub .item.item-Industries .vertical-Industries { display: none; }
	.nav-menu-sub .item.item-Industries > a.title-2 {
		display: block;
		padding: 10px 30px;
		line-height: 24px;
		font-size: 13px;
		color: #104492;
		font-weight: 600;
	}
	.nav-menu-sub .item.item-Industries > a.title-2:hover { color: #104492; text-decoration: none; }

	body.nav-open {
		overflow: hidden;
	}

	.nav-overlay {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.25);
		z-index: 10000;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease-out;
	}

	body.nav-open .nav-overlay {
		opacity: 1;
		pointer-events: auto;
	}

	/* Fix Sticky Nav on Mobile */
	.nav.i-nav {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 12000;
		animation: none !important;
		transform: none !important;
	}
    
    /* Force fixed header when menu is open */
    body.nav-open .nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 12000 !important;
    }
}

@media screen and (max-width: 768px) {
    /* Global Resets for Mobile */
    .content { padding: 0 15px; }
    .fl, .fr { float: none; width: 100%; }
    
    /* Footer Stack */
    .footer .index-footer { flex-direction: column; text-align: center; }
    .footer .index-footer span { margin: 10px 0 0 0; }
    .footer .index-footer img { width: 60px; }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .content {
        max-width: 960px;
        padding: 0 20px;
    }

    .top h2 {
        font-size: 18px;
    }

    .nav ul li a {
        padding: 0 18px;
        font-size: 15px;
    }
}
