/* Simple Professional Header with Mega Menu */

#main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.logo h1 span {
    color: #4f46e5;
}

/* Navigation */
.nav-container {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 15px;
}

.nav-link i {
    margin-left: 5px;
    font-size: 12px;
}

.nav-link:hover {
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.05);
}

.nav-link.active {
    color: #4f46e5;
    font-weight: 600;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 10px;
}

.dropdown-menu.wide {
    min-width: 300px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.dropdown-item:hover {
    background-color: rgba(79, 70, 229, 0.05);
    color: #4f46e5;
}

.dropdown-item i {
    margin-right: 10px;
    color: #4f46e5;
    width: 20px;
    text-align: center;
}

.dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

/* Two-column dropdown */
.two-column-dropdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    min-width: 500px;
}

.dropdown-column {
    min-width: 200px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.header-action-btn {
    margin-left: 10px;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.header-action-btn.outline {
    border: 1px solid #4f46e5;
    color: #4f46e5;
    background-color: transparent;
}

.header-action-btn.outline:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

.header-action-btn.primary {
    background-color: #4f46e5;
    color: white;
    border: 1px solid #4f46e5;
}

.header-action-btn.primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 15px;
}

.language-toggle {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background-color: #f9fafb;
}

.language-toggle img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.language-toggle span {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.language-toggle i {
    margin-left: 8px;
    font-size: 12px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-option:hover {
    background-color: #f9fafb;
}

.language-option img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.language-option span {
    font-size: 14px;
    color: #4b5563;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #4b5563;
    font-size: 24px;
    cursor: pointer;
}

/* Body padding for fixed header */
body {
    padding-top: 70px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .two-column-dropdown {
        min-width: 400px;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .header-action-btn {
        padding: 7px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-container {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 99;
    }
    
    .nav-container.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu, 
    .two-column-dropdown {
        position: static;
        width: 100%;
        min-width: auto;
        box-shadow: none;
        padding: 0 0 0 15px;
        margin-top: 5px;
        margin-bottom: 10px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .nav-item.active .dropdown-menu {
        display: block;
    }
    
    .two-column-dropdown {
        display: block;
    }
    
    .dropdown-column {
        margin-bottom: 15px;
    }
    
    .header-actions {
        margin-top: 20px;
        width: 100%;
        flex-direction: column;
        margin-left: 0;
    }
    
    .header-action-btn {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    .language-selector {
        margin: 15px 0 0 0;
        width: 100%;
    }
    
    .language-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .language-dropdown {
        width: 100%;
    }
}
