/* Navigation */
nav {
    text-align: start;
}

.nav a {
    margin: 0 1rem;
    padding: 10px 10px 10px 0;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: rgb(255, 0, 0);
    text-decoration: none;
}

/* Active navigation state */
.nav-active {
    margin: 0 1rem;
    padding: 10px 10px 10px 0;
    color: rgb(255, 0, 0);
    cursor: default;
    pointer-events: none;
}

/* Header top section for mobile */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-title-section {
    flex: 1;
}

/* Hamburger menu button - hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background-color: rgb(255, 0, 0);
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: rgb(255, 0, 0);
}

/* Mobile responsive navigation - expandable menu */
@media (max-width: 600px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 2px solid #eee;
        border-radius: 8px;
        padding: 1rem;
        margin: 0.5rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav.mobile-nav-open {
        display: flex !important;
    }
    
    .nav a,
    .nav-active {
        margin: 0 !important;
        padding: 12px 16px !important;
        font-size: 1rem !important;
        display: block !important;
        border-radius: 6px;
        background: transparent;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav a:last-child,
    .nav-active:last-child {
        border-bottom: none;
    }
    
    .nav-active {
        background: rgba(255, 0, 0, 0.08) !important;
        font-weight: bold;
        color: rgb(255, 0, 0) !important;
    }
    
    .nav a:hover {
        background: rgba(255, 0, 0, 0.05);
    }
    
    .page-header {
        position: relative;
    }
}