/* Custom Navbar Toggler Styles */
.custom-navbar-toggler {
    display: none !important;
    background: none !important;
    border: none !important;
    padding: 0.25rem !important;
    cursor: pointer !important;
    width: 30px !important;
    height: 30px !important;
    position: relative !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    z-index: 1001 !important;
}

.custom-navbar-toggler .bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #007bff;
    margin: 4px auto;
    transition: all 0.3s ease-in-out;
    border-radius: 1px;
}

.custom-navbar-toggler:hover .bar {
    background-color: #0056b3;
}

/* Mobile responsive navbar */
@media (max-width: 991.98px) {
    .custom-navbar {
        margin: 0px !important;
        padding: 0px !important;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .custom-navbar-toggler {
        display: block !important;
        order: 2;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .custom-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-radius: 0 0 8px 8px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .custom-navbar .navbar-nav {
        padding: 1rem;
        margin: 0;
    }
    
    .custom-navbar .nav-item {
        margin-bottom: 0.5rem;
        list-style: none;
    }
    
    .custom-navbar .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 4px;
        transition: background-color 0.3s ease;
        color: #333 !important;
        display: block;
        text-decoration: none;
    }
    
    .custom-navbar .nav-link:hover {
        background-color: #f8f9fa;
        color: #007bff !important;
    }
    
    .custom-navbar .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border: 1px solid #dee2e6;
        background: white;
        padding: 0.5rem 0;
        border-radius: 4px;
    }
    
    .custom-navbar .dropdown-item {
        padding: 0.75rem 1.5rem;
        color: #333;
        text-decoration: none;
        display: block;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.2s ease;
    }
    
    .custom-navbar .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .custom-navbar .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #007bff;
        padding-left: 2rem;
    }
}

/* Ensure navbar height is consistent */
.custom-navbar {
    min-height: 60px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Fix navbar container layout */
.custom-navbar > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

/* Ensure navbar brand doesn't interfere */
.custom-navbar .navbar-brand {
    margin-right: auto;
}

/* Simple logo centering - let font manager handle fonts */
header[data-header-type="center_logo"] .container {
    justify-content: center;
    text-align: center;
}

header[data-header-type="center_logo"] .navbar-brand img {
    display: block;
    margin: 0 auto;
    width: auto;
}

/* Force hamburger menu to show on mobile */
@media (max-width: 991.98px) {
    .custom-navbar .navbar-collapse {
        display: none !important;
    }
    
    .custom-navbar .navbar-collapse.show {
        display: block !important;
    }
}

/* Ensure hamburger menu is properly positioned */
.custom-navbar .custom-navbar-toggler {
    margin-left: auto;
    margin-right: 0;
}

/* Desktop navbar styles */
@media (min-width: 992px) {
    .custom-navbar .custom-navbar-toggler {
        display: none !important;
    }
    
    .custom-navbar .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
}


