/* Inner Container for Header Content at 90% */
.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    padding-top: 20px;
    padding-bottom: 20px;
    z-index: 1001;
}

.header-container .nav-links,
.header-container .nav-links li,
.mobile-menu-overlay .mobile-nav-links,
.mobile-menu-overlay .mobile-nav-links li,
.mobile-menu-overlay .submenu,
.mobile-menu-overlay .submenu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

/* Override any theme padding/margin that might be affecting alignment */
.header-container .nav-links li {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Make sure there are no bullets */
.header-container .nav-links li::before,
.mobile-menu-overlay .mobile-nav-links li::before,
.mobile-menu-overlay .submenu li::before {
  content: none !important;
  display: none !important;
}

/* Logo Styling */
.logo {
    flex: 0 0 auto;
    width: 184.61px;
    height: 40px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Navigation */
#site-header .main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #1d354d !important;
    padding: 10px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #208066 !important;
}

.nav-links a,
.get-started a {
    font-family: "TTCommonsDemiBold", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}
.dropdown-item p {
	font-family: TTCommonsDemiBold !important;
    font-size: 16px !important;
}

.mobile-nav-links > li > a,
.mobile-nav-links > li > .menu-item > a {
    font-family: TTCommonsDemiBold !important;
    font-size: 24px !important;
    line-height: 1.6em !important;
}
.mobile-nav-links .submenu li {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Mobile menu dropdown items */
.mobile-nav-links .submenu li a {
    font-family: "TTCommonsRegular", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.8em !important;
}
/* Get Started Button */
.get-started a {
    display: inline-block;
    width: 134.48px;
    height: 39.2px;
    line-height: 35px;
    background-color: #208066;
    color: #ffffff;
    border-radius: 50px;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    border: 2px solid #208066;
    font-family: "TTCommonsDemiBold", sans-serif !important;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.get-started a:hover {
    background-color: #ffffff;
    color: #208066;
    border-color: #208066;
}

.dropdown > a::after {
    content: "^";
    display: inline-block;
    margin-left: 7px;
    position: relative;
    top: -3px;
    vertical-align: middle;
    transform: rotate(180deg) scaleX(1.7);
}

#site-header {
    width: 100%;
    background-color: #fff;
    position: relative;
    z-index: 1000; /* Ensure header is above other content but below the dropdown */
}

/* Override any potential Divi styles that could interfere */
#custom-header-container #site-header {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.dropdown-content {
    background-color: #edf6f8;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    padding: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.dropdown-content:before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Inner container for 90% width of dropdown */
.dropdown-content .dropdown-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0px;
    margin-top: 0;
}

/* Dropdown Grid Layout */
.dropdown-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
    width: 100%;
    padding-top: 20px;
}

/* Uniform Container Height Based on Products, with Varying Widths */
.dropdown-item {
    text-align: left;
    overflow: hidden;
    display: block;
    transition: transform 0.3s ease, color 0.3s ease;
    padding-bottom: 5px;
}

.dropdown-item:hover {
    transform: translateY(-15px);
    color: #208066;
}

.dropdown-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 5px !important;
}

/* Widths for Each Dropdown Section */

/* Products: 4 items per row */
.products-dropdown .dropdown-item {
    flex: 1 1 calc(25% - 10px); /* 25% width for 4 items per row */
}

/* Industries: 6 items per row with same height as Products */
.industries-dropdown .dropdown-item {
    flex: 1 1 calc(16.66% - 10px); /* 16.66% width for 6 items per row */
}

/* Capabilities: 5 items per row with same height as Products */
.capabilities-dropdown .dropdown-item {
    flex: 1 1 calc(20% - 10px); /* 20% width for 5 items per row */
}

/* Images within Containers: Zoom and Crop to Fit */
.dropdown-item-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills container while cropping as needed */
    display: block;
}

/* Image Container Styling for Uniformity */
.dropdown-item-container {
    overflow: hidden;
}

.dropdown-item p {
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
}

.products-dropdown .dropdown-item-container {
  width: 100%;
  max-width: 351px;             /* Maximum width */
  aspect-ratio: 331 / 220;      /* This ensures the height stays proportional (≈1.503:1) */
  overflow: hidden;
}

.industries-dropdown .dropdown-item-container {
  width: 100%;
  max-width: 233px;             /* Maximum width */
  aspect-ratio: 1 / 1;          /* Perfect square ratio (1:1) */
  overflow: hidden;
}

.capabilities-dropdown .dropdown-item-container {
  width: 100%;
  max-width: 278px;             /* Maximum width */
  aspect-ratio: 258 / 214;      /* Proportional ratio (≈1.206:1) */
  overflow: hidden;
}

.dropdown-item-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dropdown-item-container {
  overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 1100px) {
    .nav-links {
        gap: 0px;
    }
    .dropdown-item p {
    	font-size: 15px !important;
    }
}

/* ===== Mobile Navigation Overlay Content ===== */
.mobile-menu-container {
    width: 100%;
    padding-left: 15%;
    padding-right: 15%;
    text-align: left;
}
.mobile-nav {
    padding-top: 175px; 
    justify-content: flex-start !important;
}
.mobile-nav,
.mobile-nav a {
    color: #fff !important;
    text-decoration: none !important;
}
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
  
.mobile-nav-links > li {
    margin-bottom: 10px;
}

.mobile-nav-links > li > a,
.mobile-nav-links > li > .menu-item {
    line-height: 1.6em;
    color: #fff;
    text-decoration: none;
}

.mobile-nav-links > li > a:hover,
.mobile-nav-links > li > .menu-item:hover {
    color: #fff;
    text-decoration: none;
}

.mobile-menu-container .submenu {
    margin-left: 30px !important;
    list-style: none !important;
    padding: 0 !important;
}

.menu-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px; /* space between the text and the caret */
}

.submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submenu-toggle .caret {
    display: none;
}
  
/* Container for the arrow spans */
.arrow-container {
    width: 14px;
    height: 14px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
    transform: rotate(180deg);
}
  
/* Common styling for both lines */
.arrow-line {
    position: absolute;
    width: 8px;
    height: 1px;
    background-color: #fff;
    top: 50%;
}
  
/* Position the top line to form left side of caret */
.arrow-top {
    transform-origin: center right;
    transform: translateY(-2px) rotate(-45deg);
    right: 50%;
}
  
/* Position the bottom line to form right side of caret */
.arrow-bottom {
    transform-origin: center left;
    transform: translateY(-2px) rotate(45deg);
    left: 50%;
}
  
/* Rotation when submenu is open */
.has-submenu.open > .menu-item .arrow-container {
    transform: rotate(0deg);
}

/* Updated submenu styles to prevent overlap */
.submenu {
    list-style: none;
    padding-top: 0px;
    display: none; /* Use display: none instead of max-height */
    opacity: 0;
}
  
.has-submenu.open > .submenu {
    display: block; /* Show when open */
    opacity: 1;
}
  
.submenu li {
    margin-bottom: 5px;
    margin-right: 30px;
}
  
.submenu li a {
    font-size: 16px;
    line-height: 2.2em;
    color: #fff;
    text-decoration: none;
}

.header_toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    width: 38px;
    height: 22px;
    padding: 0;
    position: relative;
    z-index: 1002; /* Ensure it sits on top */
}
  
.header_toggle span {
    display: block;
    width: 38px;
    height: 2px;
    background-color: #1D354D;
    margin-bottom: 8px; /* 8px gap between bars */
    transition: transform 0.3s ease, opacity 0.3s ease;
}
  
/* Remove margin on the last span */
.header_toggle span:last-child {
    margin-bottom: 0;
}
  
/* When collapsing (on click) */
.header_toggle.collapse span {
    opacity: 0;
    transform: scaleX(0.5);
}
  
/* ----- Mobile Menu Overlay ----- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* The overlay covers the full viewport plus an extra 50px scrollable space */
    height: 100vh;
    background-color: #1d354d;
    z-index: 1003;
    overflow-y: auto;
    /* Start hidden off the top */
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch; 
    overscroll-behavior: contain;
}
  
/* When open, slide into view */
.mobile-menu-overlay.open {
    transform: translateY(0);
}

.mobile-menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1003; /* Make sure it's above the overlay content */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-close span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 38px;
    height: 2px;
    background-color: #fff; /* White color for contrast on the dark overlay */
    transform-origin: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.mobile-menu-close span:first-child {
    transform: translateY(-50%) rotate(45deg) scale(1.05);
}
  
.mobile-menu-close span:last-child {
    transform: translateY(-50%) rotate(-45deg) scale(1.05);
}
  
/* Collapse effect when clicked */
.mobile-menu-close.collapse {
    transform: scale(0.5);
    opacity: 0;
}

.mobile-menu-info {
    margin-top: 40px;
    text-align: left;
    padding-bottom: 50px;
}
  
.mobile-menu-info img {
    width: 40px;
    height: 46.18px;
    display: block;
}
  
.mobile-menu-info p {
    font-size: 16px; /* Adjust if needed */
    line-height: 1.5;
    color: #fff;
    margin-top: 10px;
    font-family: "TTCommonsRegular", sans-serif;
}
  
.mobile-menu-info .highlight {
    color: #A7FFE8;
    font-family: "TTCommonsDemiBold", sans-serif !important;
}

.body--noScroll {
    overflow: hidden;
    /* Optionally fix the body's position to avoid page shifting: */
    position: fixed;
    top: 0;
    width: 100%;
}

@media (max-width: 981px) {
    .header-container {
        padding-top: 27px;
        padding-bottom: 27px;
    }
    .nav-links {
        display: none;
    }
    .get-started{
        display: none;
    }
    .header_toggle {
        display: block;
    }
    .nav-links li a {
        padding: 15px;
    }
    nav.active .nav-links {
        display: block;
    }
    /* Adjust height on smaller screens for consistency */
    .dropdown-item {
        height: 120px; /* Adjusted height for mobile screens */
    }
    .mobile-nav {
        justify-content: flex-start !important;
    }
}

@media (max-width: 691px) {
    .header-container {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .mobile-nav {
        padding-top: 80px;
    }
    .mobile-menu-info p {
        font-size: 16px;
    }
}

@media (max-width: 478px) {
	br.hide-on-mobile {
    	display: none;
    }
}

.nav-links a,
.dropdown-item a,
.mobile-nav-links a,
.submenu a,
.get-started a,
.submenu-toggle,
.header_toggle,
.mobile-menu-close,
.contact-btn {
  cursor: pointer !important;
}

/* Make sure menu items also show the pointer */
.menu-item a {
  cursor: pointer !important;
}