/* Enhanced Navigation Styles for Government-Compliant Website */

/* Main Navigation Container */
.main-nav {
    background: linear-gradient(to right, #fff1f7, #ffe6ef);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    padding: 8px 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #667eea;
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 10px 0;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: #f8f9fa;
    border-left-color: #667eea;
    padding-left: 25px;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: white;
    border-radius: 20px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.lang-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 5px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-box input {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 0.9rem;
    width: 150px;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #000;
    margin: 4px 0;
    transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    background: white;
    box-shadow: 3px 0 10px rgba(0,0,0,0.3);
    transition: left 0.4s ease;
    z-index: 1002;
    overflow-y: auto;
    padding-top: 20px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 1001;
}

.mobile-overlay.active {
    display: block;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.mobile-dropdown-menu.active {
    max-height: 500px;
}

.mobile-dropdown-item {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.mobile-dropdown-item:hover {
    background: #e9ecef;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 3px;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .search-box input {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-box {
        display: none;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}
