﻿/* Custom CSS for the Mega Menu Widths */

.mega-menu {
    /* Set a wide width for large mega menus (e.g., Industry and Hardware) */
    width: 900px;
    left: 50% !important; /* Center the menu horizontally */
    transform: translateX(-50%); /* Move back by half of its width to truly center */
    padding: 20px 0;
}

.mega-menu-sm {
    /* Set a medium width for smaller mega menus (e.g., Software and Services) */
    width: 600px;
    left: 50% !important;
    transform: translateX(-50%);
    padding: 20px 0;
}

/* Ensure the mega-menu is aligned to the body/container, not just the nav-item */
.dropdown-menu.mega-menu, .dropdown-menu.mega-menu-sm {
    margin-top: 0; /* Align directly to the nav-link */
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Ensure dropdown items fill the width but respect the padding */
.dropdown-item {
    padding: 0.5rem 1rem;
}

/* Remove default list styling for cleaner mega menu links */
.list-unstyled a {
    color: #212529; /* Dark text color */
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
}

    .list-unstyled a:hover {
        color: #0d6efd; /* Primary color on hover */
        background-color: transparent;
    }

.text-right {
    text-align: right !important;
}