/* Comprehensive Navigation Fix - Stone Blue Background with White Text */

/* Force stone blue background on navigation */
.navbar,
.navbar-dark,
nav.navbar,
nav.navbar-dark {
    background-color: #1B4B5A !important;
    background: #1B4B5A !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Ensure container has stone blue background too */
.navbar .container,
.navbar .container-fluid,
.navbar-dark .container,
.navbar-dark .container-fluid {
    background-color: #1B4B5A !important;
    background: #1B4B5A !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Navigation collapse area */
.navbar-collapse,
.navbar-collapse.collapse,
.navbar-collapse.show {
    background-color: #1B4B5A !important;
    background: #1B4B5A !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Ensure the justify-content-center class works properly */
.navbar-collapse.justify-content-center {
    justify-content: center !important;
}

/* Navigation list */
.navbar-nav {
    background-color: #1B4B5A !important;
    background: #1B4B5A !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
}

/* Navigation items */
.navbar-nav .nav-item {
    background-color: #1B4B5A !important;
    background: #1B4B5A !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

/* Navigation links - white text on stone blue background */
.navbar-nav .nav-link,
.nav-link,
.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
    background-color: #1B4B5A !important;
    background: #1B4B5A !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    
    /* Consistent positioning */
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    vertical-align: baseline !important;
    
    /* Consistent spacing and alignment */
    padding: 8px 12px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    font-weight: normal !important;
    font-size: 1rem !important;
    
    /* Ensure no inherited decorations */
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Hover state - maintain stone blue background with lighter shade */
.navbar-nav .nav-link:hover,
.nav-link:hover,
.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.2) !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
}

/* Active state - maintain stone blue background with lighter shade */
.navbar-nav .nav-link.active,
.nav-link.active,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: bold !important;
    background-color: rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.2) !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
}

/* Focus state */
.navbar-nav .nav-link:focus,
.nav-link:focus,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff !important;
    background-color: #1B4B5A !important;
    background: #1B4B5A !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: 2px solid #ffffff !important;
    outline-offset: 2px !important;
}

/* Remove any pseudo-elements that might add decorations */
.navbar-nav .nav-link::before,
.navbar-nav .nav-link::after,
.nav-link::before,
.nav-link::after {
    content: none !important;
    display: none !important;
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    background: none !important;
}

/* Mobile menu styling - ensure stone blue background */
@media (max-width: 991.98px) {
    .navbar-nav,
    .navbar-collapse {
        background-color: #1B4B5A !important;
        background: #1B4B5A !important;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        background-color: #1B4B5A !important;
        background: #1B4B5A !important;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none !important;
    }
}

/* Override any Bootstrap or theme conflicts */
.nav-link,
.nav-link:hover,
.nav-link:focus,
.nav-link:active,
.nav-link.active,
.navbar-nav .nav-link,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:active,
.navbar-dark .navbar-nav .nav-link.active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Ensure consistent height and alignment */
.navbar-nav .nav-item,
.navbar-nav .nav-link {
    height: auto !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #1B4B5A !important;
    background: #1B4B5A !important;
}

/* Remove any inherited underlines from parent elements */
.navbar,
.navbar-nav,
.nav-item,
.nav-link {
    text-decoration: none !important;
    text-decoration-line: none !important;
    background-color: #1B4B5A !important;
    background: #1B4B5A !important;
}

/* Navbar toggler for mobile */
.navbar-toggler {
    background-color: #1B4B5A !important;
    border-color: #ffffff !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}


/* Aptia Footer - Fixed Layout with Bold White Title and Equal Spacing */
.aptia-footer-fixed {
    background: white !important;
    border-top: 3px solid var(--aptia-green) !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.footer-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    min-height: 50px !important;
}

.quick-links-title {
    color: white !important;
    background: var(--aptia-green) !important;
    font-weight: bold !important;
    font-size: 16px !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.quick-links-nav {
    display: flex !important;
    justify-content: space-evenly !important;
    align-items: center !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 20px !important;
}

.quick-links-nav a {
    color: var(--aptia-green) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.quick-links-nav a:hover {
    color: white !important;
    background: var(--aptia-green) !important;
    border-color: var(--aptia-green) !important;
    transform: translateY(-2px) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column !important;
        padding: 10px !important;
    }
    
    .quick-links-title {
        margin-bottom: 10px !important;
    }
    
    .quick-links-nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 0 !important;
    }
    
    .quick-links-nav a {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
}
