﻿.navbar-toggler:focus {
    box-shadow: 0 0 0 0 !important;
}

.navbar-nav .nav-link {
    color: #161616 !important;
    display: flex;
    align-items: center;
}

.site-header-button[aria-expanded=true] {
    background-color: #f2f2f2 !important;
}

    .site-header-button[aria-expanded=true] .expanded-indicator rect {
        fill: #f2f2f2 !important;
    }

.navbar-brand span {
    font-family: 'Merriweather', serif !important;
}

.navbar-nav .nav-link span {
    position: relative;
    font-family: 'Merriweather', serif !important;
}

.navbar-nav .nav-link span:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    border-block-end: 2px solid #161616;
    display: none;
    width: 100%;
}

.navbar-nav .nav-link:hover:not([aria-expanded=true]) > span:after {
    display: block;
}

.site-header-button .expanded-indicator {
    width: 2rem;
    height: auto;
}

    .site-header-button .expanded-indicator rect {
        transition: fill 0.3s;
    }


.dropdown-nav {
    border: none;
    border-radius: 0;
    font-size: .875em;
    background-color: #f2f2f2 !important;
    margin-top: 0 !important;
}

    .dropdown-nav .dropdown-item:hover {
        background-color: #f2f2f2 !important;
    }


/* Mobile Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 998; /* Below mobile-nav */
}

/* Mobile Sidebar */
.mobile-nav {
    position: fixed; /* Overlay behavior */
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: white;
    padding: 0;
    z-index: 999; /* Higher than overlay, lower than desktop nav */
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

    .mobile-nav.show {
        transform: translateX(0);
    }

/* Mobile Sidebar Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-nav a {
    font-family: 'Merriweather', serif !important;
}

.mobile-nav a span {
    font-family: 'Merriweather', serif !important;
}

    .mobile-nav-header .home-icon {
        color: #333;
        text-decoration: none;
    }

    .mobile-nav-header .close-btn {
        cursor: pointer;
    }

    /* Mobile Back Button */
.mobile-nav .back-btn {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: #0f6cbd;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    gap: 0.2rem;
}

    .mobile-nav .back-btn:hover {
        background-color: #f3f2f1;
    }

/* Mobile Menu List Items (ul li a) */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .mobile-nav ul li {
        border-bottom: 1px solid #f0f0f0;
    }

        .mobile-nav ul li:last-child {
            border-bottom: none;
        }

        .mobile-nav ul li a {
            padding: 12px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #333;
            font-size: 16px;
            text-decoration: none;
            width: 100%;
            box-sizing: border-box;
        }

            .mobile-nav ul li a:hover {
                background-color: #f2f2f2;
            }

                .mobile-nav ul li a:hover .expanded-indicator rect {
                    fill: #f2f2f2;
                }

        .mobile-nav ul li .expanded-indicator {
            width: 2rem;
            height:auto;
        }

/* Mobile Submenu (initially hidden) */
.submenu-mobile {
    display: none;
}

    .submenu-mobile.active {
        display: block;
    }

/* Mobile Sidebar Bottom Section */
.mobile-nav-bottom {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

    .mobile-nav-bottom p {
        font-size: 0.9em;
        color: #666;
        margin-bottom: 5px;
    }

    .mobile-nav-bottom button {
        background-color: #0078d4;
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 3px;
        cursor: pointer;
        font-size: 1em;
        font-weight: bold;
    }

        .mobile-nav-bottom button:hover {
            background-color: #005a9e;
        }
