
#main-header, .mobile-menu-overlay {
    left: 0;
    position: fixed;
    top: 0;
    transition: .3s;
}

.desktop-nav a, .mobile-menu li a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
}

#main-header {
    background-color: #fff;
    width: 100%;
    height: 90px;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

body.dark-mode #main-header {
    background-color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    border-bottom: 1px solid #333;
}

.container-fluid {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    min-width: 180px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: #222;
    line-height: 1;
    white-space: nowrap; 
    display: block; 
}

.logo-text span {
    color: var(--primary-gold);
}

.logo-divider {
    width: 1px;
    height: 40px;
    background-color: #e0e0e0;
    margin: 0 5px;
}

.parliament-logo {
    height: 50px;
    width: auto;
}

body.dark-mode .logo-text, 
body.dark-mode .mobile-toggle {
    color: #fff;
}

.mobile-toggle, .theme-btn {
    color: #333;
    cursor: pointer;
}

.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    height: 100%;
}

.desktop-nav ul {
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.desktop-nav a {
    color: #555;
    position: relative;
    transition: color .3s;
    height: 100%;
    padding: 0 5px;
    display: flex;
    align-items: center;
}

body.dark-mode .desktop-nav a, 
body.dark-mode .mobile-menu li a {
    color: #ccc;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 4px;
    background-color: var(--primary-gold);
    transition: width .3s cubic-bezier(.25, .8, .25, 1);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.desktop-nav a.active, 
.desktop-nav a:hover {
    color: var(--primary-gold);
}

.desktop-nav a.active::after, 
.desktop-nav a:hover::after {
    width: 100%;
}

.nav-wrapper {
    gap: 15px;
    justify-content: flex-end;
    min-width: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.theme-btn {
    background: 0 0;
    border: 1px solid #ddd;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: rotate(20deg);
}

body.dark-mode .theme-btn {
    border-color: #555;
    color: #fff;
}

.mobile-toggle {
    display: none;
    font-size: 1.6rem;
    padding: 5px;
}

.mobile-menu-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: #fff;
    z-index: 2000;
    box-shadow: -10px 0 40px rgba(0,0,0,.1);
    transition: right .4s cubic-bezier(.77, 0, .175, 1);
    display: flex;
    flex-direction: column;
}

body.dark-mode .mobile-menu {
    background-color: #151515;
}

.mobile-menu.active {
    right: 0;
}

.menu-header {
    padding: 30px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,.03);
}

body.dark-mode .menu-header {
    border-bottom-color: #333;
}

#close-menu {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: .3s;
}

body.dark-mode #close-menu {
    background-color: #333;
    color: #fff;
}

#close-menu:hover {
    background-color: #ff4d4d;
    color: #fff;
    transform: rotate(90deg);
}

.mobile-menu ul {
    list-style: none;
    padding: 20px 15px;
    margin: 0;
    overflow-y: auto;
}

.mobile-menu li {
    margin-bottom: 0; 
    border-bottom: 1px solid rgba(197, 160, 89, 0.3); 
}

body.dark-mode .mobile-menu li {
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu li a {
    display: block;
    padding: 15px 20px; 
    border-radius: 5px;
    color: #444;
    transition: .3s;
    border: none;
}

.mobile-menu li a.active, 
.mobile-menu li a:hover {
    background-color: rgba(212,175,55,.08);
    color: var(--primary-gold);
    padding-right: 30px;
    transform: translateX(-5px);
}

@media (max-width: 1200px) {
    .desktop-nav {
        display: none !important;
    }
    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .logo-text, .theme-btn {
        font-size: 1rem;
    }
    
    #main-header {
        height: 70px;
    }
    
    .container-fluid {
        width: 100%;
        padding: 0 15px;
    }
    
    .logo {
        gap: 8px;
        min-width: auto;
    }
    
    .parliament-logo {
        height: 35px;
    }
    
    .logo-divider {
        height: 25px;
    }
    
    .nav-wrapper {
        gap: 10px;
        min-width: auto;
    }
    
    .theme-btn {
        width: 35px;
        height: 35px;
    }
    
    .mobile-toggle {
        font-size: 1.4rem;
    }
}