/* Header Container */
.header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Top Navigation Bar */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Button Styles */
.menu-button,
.login-button {
    background: #006FCF;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.menu-button:hover,
.login-button:hover {
    background: #005aab;
}

.menu-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    height: 2rem;
}

@media (min-width: 1024px) {
    .header-logo img {
        height: 2.25rem;
    }
}

/* Search Button */
.search-button {
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #f3f4f6;
}

.search-button svg {
    color: #006FCF;
}

/* Contact Link */
.contact-link {
    color: #006FCF;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: none;
}

.contact-link:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .contact-link {
        display: block;
    }
}

/* Search Bar */
.search-bar {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.search-bar-content {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: #006FCF;
    box-shadow: 0 0 0 3px rgba(0, 111, 207, 0.1);
}

.search-close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
}

.search-close:hover {
    color: #4b5563;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
}

/* Custom Scrollbar */
.mega-menu::-webkit-scrollbar {
    width: 8px;
}

.mega-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mega-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.mega-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Menu Header */
.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.flag-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.change-country {
    color: #006FCF;
    text-decoration: none;
    margin-left: 0.5rem;
}

.change-country:hover {
    text-decoration: underline;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.active-lang {
    color: #111827;
    font-weight: 500;
}

.separator {
    color: #9ca3af;
}

.lang-link {
    color: #006FCF;
    text-decoration: none;
}

.lang-link:hover {
    text-decoration: underline;
}

/* Navigation */
.mega-nav {
    padding: 0.5rem 0;
}

.nav-item {
    border-bottom: 1px solid #f3f4f6;
}

.nav-item-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-item-button:hover {
    background-color: #f9fafb;
}

.nav-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.nav-title {
    font-weight: 500;
    color: #1f2937;
}

.chevron {
    color: #9ca3af;
    transition: transform 0.2s;
}

.chevron.rotate {
    transform: rotate(180deg);
}

/* Dropdown Content */
.nav-dropdown {
    background-color: #f9fafb;
    padding: 1rem;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dropdown-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dropdown-section {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.section-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-link {
    font-size: 0.875rem;
    color: #006FCF;
    text-decoration: none;
}

.section-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (min-width: 1024px) {
    .header-top {
        padding: 0 1.5rem;
    }

    .menu-header {
        padding: 0.75rem 1.5rem;
    }

    .nav-item-button {
        padding: 1rem 1.5rem;
    }

    .nav-dropdown {
        padding: 1rem 1.5rem;
    }
}