
/* ==========================================
   HELPING HAND - COMMON NAVBAR
   Forest Green + White + Gold
========================================== */

:root {
    --nav-green: #173B2D;
    --nav-green-light: #24543D;
    --nav-gold: #E5B84B;
    --nav-white: #FFFFFF;
}

/* Main Navbar */
.main-header {
    position: relative;
    z-index: 10000;
    width: 100%;
    padding: 14px 0;
    background: #F8FAF6;
    font-family: Arial, sans-serif;
    box-shadow: 0 5px 20px rgba(23, 59, 45, 0.08);
}

/* Navbar Container */
.hh-nav-container {
    width: calc(100% - 40px);
    max-width: 1440px;
    min-height: 78px;
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #173B2D, #24543D);
    border: 1px solid rgba(229, 184, 75, 0.35);
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(23, 59, 45, 0.16);
    box-sizing: border-box;
}

/* Logo and Brand */
.hh-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.hh-brand img {
    display: block;
    width: 54px;
    height: 54px;
    padding: 3px;
    object-fit: contain;
    background: #FFFFFF;
    border: 2px solid var(--nav-gold);
    border-radius: 13px;
    transition: transform 0.3s ease;
}

.hh-brand:hover img {
    transform: scale(1.04);
}

.hh-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hh-brand-text strong {
    color: #FFFFFF;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
}

.hh-brand-text small {
    color: var(--nav-gold);
    font-size: 12px;
    font-weight: 600;
}

/* Right Side */
.hh-nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
}

/* Language Selector */
.hh-language-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(229, 184, 75, 0.45);
    border-radius: 10px;
    cursor: pointer;
}

.hh-language-control i {
    color: var(--nav-gold);
}

.hh-language-control select,
.hh-nav-right select {
    min-height: 28px;
    padding: 4px 5px;
    color: #FFFFFF;
    background-color: var(--nav-green);
    border: 0;
    outline: none;
    font-size: 13px;
    cursor: pointer;
}

.hh-language-control select option,
.hh-nav-right select option {
    color: var(--nav-green);
    background: #FFFFFF;
}

/* Navigation Links */
.hh-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.hh-navigation a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none !important;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease;
}

.hh-navigation a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 2px;
    background: var(--nav-gold);
    border-radius: 5px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.hh-navigation a:hover,
.hh-navigation a:focus-visible,
.hh-navigation a.hh-active,
.hh-navigation a.active {
    color: var(--nav-gold);
    background: rgba(255, 255, 255, 0.06);
}

.hh-navigation a:hover::after,
.hh-navigation a:focus-visible::after,
.hh-navigation a.hh-active::after,
.hh-navigation a.active::after {
    transform: scaleX(1);
}

/* Donate Button */
.hh-navigation a.hh-donate-link {
    margin-left: 5px;
    padding: 11px 19px;
    color: #173B2D;
    background: linear-gradient(135deg, #F3D477, #E5B84B);
    border: 1px solid #F3D477;
    border-radius: 9px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(229, 184, 75, 0.15);
}

.hh-navigation a.hh-donate-link::after {
    display: none;
}

.hh-navigation a.hh-donate-link:hover {
    color: #173B2D;
    background: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.hh-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 43px;
    height: 42px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(229, 184, 75, 0.55);
    border-radius: 9px;
    cursor: pointer;
}

.hh-menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 3px 0;
    background: #FFFFFF;
    border-radius: 5px;
}

/* Google Translate - Keep Hidden */
.hh-google-hidden {
    position: absolute !important;
    left: -99999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

body {
    top: 0 !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* Tablet */
@media (max-width: 1100px) {
    .hh-nav-container {
        width: calc(100% - 28px);
        gap: 12px;
        padding: 12px 15px;
    }

    .hh-nav-right {
        gap: 8px;
    }

    .hh-navigation {
        gap: 2px;
    }

    .hh-navigation a {
        padding: 10px 8px;
        font-size: 12px;
    }

    .hh-brand-text strong {
        font-size: 18px;
    }
}

/* Mobile Navbar */
@media (max-width: 991px) {
    .main-header {
        padding: 10px 0;
    }

    .hh-nav-container {
        position: relative;
        width: calc(100% - 22px);
        min-height: 66px;
        padding: 10px 12px;
        gap: 8px;
        border-radius: 13px;
    }

    .hh-brand {
        gap: 6px;
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .hh-brand img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .hh-brand-text strong {
        font-size: 12px;
        white-space: nowrap;
    }

    .hh-brand-text small {
        font-size: 10px;
    }

    .hh-nav-right {
        position: static;
        margin-left: auto;
        gap: 7px;
    }

    .hh-language-control {
        gap: 5px;
        padding: 5px 7px;
        min-height: 36px !important;
    }

    .hh-language-control select {
        min-width: 0 !important;
        width: 62px;
        max-width: 62px;
        font-size: 11px !important;
    }
    .hh-language-control > i:last-child {
        display: none;
    }

    .hh-menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .hh-navigation {
        display: none;
        position: absolute;
        top: calc(100% + 9px);
        left: 0;
        right: 0;
        z-index: 10001;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        background: #173B2D;
        border: 1px solid rgba(229, 184, 75, 0.4);
        border-radius: 14px;
        box-shadow: 0 15px 32px rgba(0, 0, 0, 0.22);
    }

    /* Supports the existing JS menu toggle */
    .hh-menu-open .hh-navigation,
    .hh-navigation.hh-menu-open,
    .hh-nav-container.hh-menu-open .hh-navigation,
    .main-header.hh-menu-open .hh-navigation {
        display: flex;
    }

    .hh-navigation a {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        min-height: 44px;
        padding: 12px 14px;
        font-size: 14px;
        white-space: normal;
        box-sizing: border-box;
    }

    .hh-navigation a::after {
        left: 14px;
        right: auto;
        width: 32px;
        bottom: 5px;
    }

    .hh-navigation a.hh-donate-link {
        justify-content: center;
        margin: 5px 0 0;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .hh-nav-container {
        padding: 9px;
        gap: 5px;
    }

    .hh-brand {
        gap: 6px;
    }

    .hh-brand img {
        width: 37px;
        height: 37px;
    }

    .hh-brand-text strong {
        font-size: 14px;
    }

    .hh-brand-text small {
        font-size: 9px;
    }

    .hh-language-control {
        padding: 4px !important;
        gap: 4px !important;
    }

    .hh-language-control select {
        min-width: 0 !important;
        width: 54px;
        max-width: 54px;
        font-size: 10px !important;
    }

    .hh-language-control > i:first-child {
        display: none;
    }
}

/* Keyboard Accessibility */
.hh-navigation a:focus-visible,
.hh-brand:focus-visible,
.hh-menu-toggle:focus-visible {
    outline: 3px solid var(--nav-gold);
    outline-offset: 3px;
}

/* Shared rounded navbar: keep navbar styling in this file only. */
#common-navbar .main-header {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 0 !important;
    background: #F8FAF6 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 10000 !important;
}

#common-navbar .hh-nav-container {
    display: flex !important;
    width: calc(100% - 48px) !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    background: linear-gradient(135deg, #173B2D, #24543D) !important;
    border: 1px solid rgba(229, 184, 75, 0.75) !important;
    border-radius: 26px !important;
    box-sizing: border-box !important;
}

@media (max-width: 991px) {
    #common-navbar .main-header {
        padding: 10px 0 !important;
    }

    #common-navbar .hh-nav-container {
        width: calc(100% - 22px) !important;
        border-radius: 19px !important;
    }
}
/* ===== MATCH INDEX LANGUAGE SELECTOR ===== */

.main-header .hh-language-control {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    min-height: 54px !important;
    padding: 10px 22px !important;
    border: 1.5px solid #e5c76b !important;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.main-header .hh-language-control:hover {
    background: rgba(229, 199, 107, 0.12) !important;
    border-color: #ffb52e !important;
}

.main-header .hh-language-control > i:first-child {
    color: #ffb52e !important;
    font-size: 19px !important;
}

.main-header .hh-language-control select {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-width: 85px !important;
    min-height: auto !important;
    padding: 3px 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 14px !important;
    cursor: pointer;
}

.main-header .hh-language-control select option {
    background: #21463f !important;
    color: #ffffff !important;
}

.main-header .hh-language-control > i:last-child {
    color: #ffffff !important;
    font-size: 12px !important;
}

@media (max-width: 991px) {
    .main-header .hh-language-control {
        min-height: 42px !important;
        padding: 7px 15px !important;
        border-radius: 50px !important;
    }
}

/* Google Translate bar lapva */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
body > .skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

/* Bar mule page khali dhakalla jato, to fix kara */
html,
body {
    top: 0 !important;
    margin-top: 0 !important;
    position: static !important;
}

/* Translate tooltip / hover popup lapva */
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
    display: none !important;
    background: none !important;
    box-shadow: none !important;
}

#google_translate_element,
.goog-te-gadget {
    display: none !important;
}

/* Arrow var click kela tari dropdown ughadava */
.hh-language-chevron,
.hh-language-control > i:last-child,
.hh-language-control .bi-chevron-down,
.hh-language-control .fa-angle-down,
.hh-language-control .fa-chevron-down {
    pointer-events: none !important;
}

/* Select purna box bhar pasarava, mhanje kuthe pan click kela tari chalel */
.hh-language-control {
    position: relative;
    cursor: pointer;
}

.hh-language-control select {
    flex: 1 1 auto;
    width: 100%;
    cursor: pointer;
}

/* Arrow chya jagevar select cha clickable area vadhav */
.hh-language-control select {
    padding-right: 28px !important;
}

/* Chevron arrow var click kela tari select ughadava */
.hh-language-control > i {
    pointer-events: none !important;
}

.hh-language-control {
    position: relative;
    cursor: pointer;
}

.hh-language-control select {
    flex: 1 1 auto;
    cursor: pointer;
    padding-right: 24px !important;
}

.hh-language-chevron {
    pointer-events: none !important;
}