/* Navigation, search bar, mobile menu, and language dropdown */

html {
    scroll-behavior: smooth;
    line-height: 1.5;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

.nav-link.active {
    color: #1b55d5;
    font-weight: 600;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 100%;
    background: #2563eb;
}

#mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    padding: 1.5rem;
}

#mobile-overlay.open {
    transform: translateX(0);
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.mobile-section {
    margin-bottom: 2rem;
}

.mobile-section-title {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.mobile-link {
    display: block;
    padding: 0.75rem 0;
    color: #000000;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.mobile-link:hover {
    color: #1b55d5;
}

.mobile-link.active {
    color: #1b55d5;
    font-weight: 600;
}

.mobile-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0;
    font-size: 1rem;
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
}

.mobile-search-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
}

#full-search-bar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease-in-out, padding 0.6s ease-in-out, opacity 0.6s ease;
}

#full-search-bar.open {
    max-height: 200px;
    padding: 1.5rem 0;
    opacity: 1;
}

.goog-te-banner-frame,
.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.lang-dropdown-wrapper {
    position: relative;
    overflow: visible;
}

#navbar .lang-dropdown-wrapper {
    overflow: visible;
}

.lang-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid transparent;
    border-image: linear-gradient(90deg, #E11F28 0%, #EF9B23 50%, #107FBD 100%) 1;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    color: #000000;
    min-width: 120px;
    justify-content: space-between;
}

.lang-dropdown-trigger:hover {
    border-image: linear-gradient(90deg, #E11F28 0%, #EF9B23 50%, #107FBD 100%) 1;
    filter: brightness(1.1);
}

.lang-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border-radius: 0;
    z-index: 1000;
    min-width: 160px;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

.lang-dropdown-panel::-webkit-scrollbar {
    width: 6px;
}

.lang-dropdown-panel::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.lang-dropdown-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.lang-dropdown-panel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.lang-dropdown-option {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
    color: #000000;
    transition: background 0.15s;
}

.lang-dropdown-option:hover {
    background: #f1f5f9;
}

.lang-dropdown-option.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
}

.lang-dropdown-panel-mobile {
    left: 0;
    right: 0;
    min-width: 100%;
}
