
/* header.css */
header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 64px;
    background-color: var(--main-bg-color);
    font-family: Arial, sans-serif;
    position: fixed;
    z-index: 5;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    right: 0;
}

.header-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 64px;
    padding: 7px 15px;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
    max-width: 1200px;
}

.header-left, 
.header-center, 
.header-right {
    display: flex;
    flex: 1;
    min-width: 150px;
    height: 49px;
    align-items: center;
    justify-content: center;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

.logo-img {
    height: 49px;
    width: auto;
}

.logo-name {
    font-size: 1.8935rem;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.logo-name:hover {
    color: #0292c7;
}

.logo-link {
    height: 49px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.menu-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
    cursor: pointer;
    color: #555;
    position: relative;
    z-index: 2;
    width: 60px;
}

.hamburger {
    display: inline-block;
    width: 30px;
    height: 3px;
    background-color: #555;
    position: relative;
    transition: transform 0.3s ease;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #555;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -6px;
    left: 0;
}

.hamburger::after {
    top: 6px;
    left: 0;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: transparent;
    position: relative;
    width: auto;
}

.nav-item {
    font-size: 1rem;
    text-decoration: none;
    color: #555;
    padding: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
    color: #0292c7;
}

.language-selector {
    display: flex;
    gap: 10px;
}

.language-selector button {
    border: none;
    background: none;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    padding: 5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.language-selector .active {
    color: #0292c7;
    font-weight: bold;
}

.language-selector button:hover {
    color: #0292c7;
}

.separator {
    width: 1px;
    height: 70%;
    background-color: #555;
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-row {
        flex-wrap: nowrap;
        padding: 7px 10px;
    }
    
    .menu-toggle-label {
        display: inline-block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        padding: 20px 0;
        gap: 15px;
        background-color: #f8f8f8;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }
    
    .menu-checkbox:checked ~ .nav-menu {
        display: flex;
    }
    
    .header-left, 
    .header-right {
        flex: 0 1 auto;
        min-width: auto;
    }
    
    .header-center {
        flex: 1;
        justify-content: center;
    }
    
    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-name {
        font-size: 1.5rem;
    }
    
    .header-left, 
    .header-right {
        width: auto;
    }
    
    .language-selector {
        gap: 5px;
    }
}
