/* Small Top Bar */
.top-bar {
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar-left img {
    height: 30px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right a {
    font-size: 14px;
    font-weight: 600;
}

/* Top Dropdown for Language */
.top-dropdown {
    position: relative;
}

.top-dropdown-menu {
    display: none;
    position: absolute;
    top: 15px;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    min-width: 120px;
}

.top-dropdown:hover .top-dropdown-menu {
    display: block;
}

.top-dropdown-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
}

/* Main Navbar */
.main-navbar {
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 50px;
}

.ngo-nav-logo {
    height: 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links .dropdown {
    position: relative;
}

.dropdown>a::after {
    content: " ▼";
    font-size: 12px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 20px;
    left: 0;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    min-width: 120px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
}

.search-box input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Custom Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text);
    transition: 0.4s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 991px) {
    .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        display: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-container.show {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-links .dropdown-menu {
        position: static;
        display: none;
        background: var(--background);
        box-shadow: none;
    }

    .nav-links .dropdown.open .dropdown-menu {
        display: block;
    }

    .search-box {
        width: 100%;
        margin-top: 15px;
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .dropdown>a::after {
        content: " ▼";
    }
}