/* Alignment fixes for TRAS website */

/* Hide any duplicate navigation bars */
body > nav:first-of-type,
.site-wrapper > nav:not(header nav),
nav:not(header nav) {
    display: none !important;
}

/* Ensure only header navigation is visible */
header {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(0, 20, 40, 0.9) !important;
}

/* Layout fix for header container - COMPACT VERSION */
header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 3px 20px !important;
    min-height: auto !important;
}

/* Space for the fixed header - REDUCED */
body {
    padding-top: 60px !important;
}

/* Fix for home section */
section#home {
    margin-top: 0 !important;
}

/* Add space between logo and navigation - REDUCED */
.logo {
    margin-right: 20px !important;
}

/* Navigation alignment */
nav {
    flex: 1 !important;
}

nav ul {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

nav ul li {
    list-style: none !important;
    margin: 0 8px !important;
}

nav ul li a {
    color: #fff !important;
    text-decoration: none !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
}

/* Active and hover states for navigation links */
nav ul li a:hover, 
nav ul li a.active {
    background: rgba(0, 170, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9) !important;
}

/* Mobile menu adjustments */
.mobile-menu-btn {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block !important;
    }
    
    nav ul {
        display: none !important;
    }
    
    nav.active ul {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(0, 20, 40, 0.95) !important;
        padding: 15px 0 !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
    }
    
    nav.active ul li {
        margin: 8px 0 !important;
    }
}