/* HEADER LAYOUT - Flask Style */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 15px;
    min-height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-family: Roboto, sans-serif;
    transition: transform 0.3s ease;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.logo-main {
    font-size: 32px;
    font-weight: 700;
    color: #3b961a;
    letter-spacing: -0.8px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(59, 150, 26, 0.1);
}

.logo-express {
    font-size: 10px;
    font-weight: 500;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: -2px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-express {
    opacity: 1;
    color: #3b961a;
}

.login {
    color: #999;
    text-decoration: none;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    position: absolute;
    left: 15px;
}

.login:hover {
    color: #3b961a;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 16px;
    flex: 0 0 auto;
    margin-left: auto;
    font-weight: 400;
    position: absolute;
    right: 15px;
}

.phone {
    color: #3b961a;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

@media (min-width: 576px) {
    .logo {
        font-size: 38px;
    }
}

@media (max-width: 991px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 15px;
        padding: 15px;
    }
    
    .login {
        position: static !important;
        order: 1;
        flex: 0 0 auto;
        min-width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: none;
        z-index: 10;
    }
    
    .logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        order: 2;
        margin: 0;
        z-index: 5;
    }
    
    .header-contact {
        position: static !important;
        order: 3;
        flex: 0 0 auto;
        margin-left: 0;
        gap: 12px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        min-height: 60px;
        position: relative;
    }

    .login {
        position: static !important;
        order: 1;
        flex: 0 0 auto;
        min-width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: none;
        transform: none !important;
        z-index: 10;
    }

    .logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        order: 2;
        margin: 0;
        font-size: 28px;
        z-index: 5;
    }

    .header-contact {
        position: static !important;
        order: 3;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header-contact .phone {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
    }

    .responsive-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        border: none;
        background: none;
        cursor: pointer;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 10px 12px;
        gap: 8px;
    }

    .logo {
        font-size: 24px;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 5;
    }

    .logo-main {
        font-size: 24px;
    }

    .logo-express {
        font-size: 8px;
    }

    .login {
        min-width: 40px;
        height: 40px;
        font-size: 16px;
        border: none;
        background: none;
    }

    .header-contact .phone {
        min-width: 40px;
        height: 40px;
    }

    .responsive-menu-btn {
        min-width: 40px;
        height: 40px;
        border: none;
        background: none;
    }
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    border-top: 2px solid #3b961a;
    animation: slideDown 0.3s ease-out;
    margin: 0;
    padding: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu-container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
}

.nav-item {
    flex: 1;
    max-width: 200px;
    border-right: 1px solid #f0f0f0;
}

.nav-item:last-child {
    border-right: none;
}

.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    height: 100%;
    justify-content: center;
}

.nav-item a:hover {
    background: #f8f9fa;
    color: #3b961a;
    transform: translateY(-2px);
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-subtitle {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-item a:hover .nav-title {
    color: #3b961a;
}

.nav-item a:hover .nav-subtitle {
    color: #3b961a;
}

@media (max-width: 768px) {
    .nav-menu {
        top: 60px;
    }
    
    .nav-menu-container {
        flex-direction: column;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .nav-item {
        max-width: none;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-item a {
        padding: 18px 20px;
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-title {
        font-size: 15px;
    }
    
    .nav-subtitle {
        font-size: 11px;
    }
}

.responsive-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.responsive-menu-btn:hover {
    background: none;
}

.responsive-menu-btn svg {
    transition: transform 0.3s ease;
}

.responsive-menu-btn:hover svg {
    transform: scale(1.1);
}

/* Force display for any hidden elements */
.d-flex.align-items-center {
    display: flex !important;
    align-items: center !important;
}