/* --- Main Header Styles --- */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

main {
    padding-top: 70px; /* Space for the 70px header */
    position: relative; 
    z-index: 1; 
}

body.home main {
    padding-top: 0 !important;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

#branding a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 45px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px; /* Space between nav and icons */
}

/* --- Desktop Navigation --- */
.desktop-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
}

.desktop-nav a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

/* --- Icons --- */
.header-icon-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-icon {
    position: relative;
    color: #333;
}

.notification-icon svg {
    fill: #333333;
    width: 24px;
    height: 24px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* --- Hamburger & Mobile Menu --- */
.hamburger-menu {
    display: none; /* Hidden on desktop by default */
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333333 !important;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav-overlay nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 15px 0;
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.close-menu-li {
    margin-top: 30px;
}

.close-menu-li a {
    font-size: 1rem !important;
    font-weight: 400 !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 25px !important;
    color: rgba(255, 255, 255, 0.8);
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    text-decoration: none;
}


/* --- Responsive Breakpoint --- */
@media (max-width: 992px) {
    .desktop-nav, .header-icon-group {
        display: none;
    }
    .hamburger-menu {
        display: flex; /* Changed from block for better alignment */
    }
}