/* ============================================
   NAVIGATION BAR - COMPLETE
   ============================================ */

/* ============================================
   FIXED NAVIGATION - APPLIES TO ALL PAGES
   ============================================ */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
    border-bottom: 2px solid #c9a84c !important;
    padding: 0 30px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Push content down to account for fixed nav on all pages */
body {
    padding-top: 80px !important;
    margin: 0 !important;
}

/* ============================================
   LOGO
   ============================================ */
.logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.logo a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.logo img {
    height: 45px !important;
    width: auto !important;
    display: block !important;
    transition: transform 0.5s ease !important;
}

.logo img:hover {
    transform: scale(1.05) !important;
}

/* Hide the text logo when image is used */
.logo a span {
    display: none !important;
}

/* ============================================
   MENU TOGGLE (Mobile)
   ============================================ */
.menu-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    padding: 5px 10px !important;
}

.menu-toggle:hover {
    color: #c9a84c !important;
}

/* ============================================
   NAV LINKS
   ============================================ */
.nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: 100% !important;
}

.nav-links > a {
    color: #333333 !important;
    text-decoration: none !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
    white-space: nowrap !important;
}

.nav-links > a i {
    font-size: 15px !important;
    color: #666 !important;
    transition: color 0.3s ease !important;
}

.nav-links > a:hover {
    color: #c9a84c !important;
    background: rgba(201, 168, 76, 0.08) !important;
}

.nav-links > a:hover i {
    color: #c9a84c !important;
}

.nav-links > a.active {
    color: #c9a84c !important;
    background: rgba(201, 168, 76, 0.12) !important;
}

.nav-links > a.active i {
    color: #c9a84c !important;
}

/* ============================================
   LOGOUT BUTTON - RED (For Admin Pages)
   ============================================ */
.logout-btn {
    color: #dc3545 !important;
    background: transparent !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
    border: 1px solid transparent !important;
}

.logout-btn i {
    color: #dc3545 !important;
    transition: color 0.3s ease !important;
    font-size: 15px !important;
}

.logout-btn:hover {
    color: #ffffff !important;
    background: #dc3545 !important;
    border-radius: 6px !important;
    border-color: #dc3545 !important;
    transform: scale(1.02) !important;
}

.logout-btn:hover i {
    color: #ffffff !important;
}

/* ============================================
   DROPDOWN - MAIN
   ============================================ */
.dropdown {
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    z-index: 9999 !important;
}

.dropdown > a {
    color: #333333 !important;
    text-decoration: none !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.dropdown > a i {
    font-size: 15px !important;
    color: #666 !important;
    transition: color 0.3s ease !important;
}

.dropdown > a:hover {
    color: #c9a84c !important;
    background: rgba(201, 168, 76, 0.08) !important;
}

.dropdown > a:hover i {
    color: #c9a84c !important;
}

.dropdown > a .arrow-down {
    font-size: 12px !important;
    margin-left: 4px !important;
    transition: transform 0.3s ease !important;
}

/* Arrow rotation when open */
.dropdown.open > a .arrow-down {
    transform: rotate(180deg) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 5px) !important;
    left: 0 !important;
    background: #ffffff !important;
    min-width: 220px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15) !important;
    border-radius: 10px !important;
    border: 1px solid #e8e8e8 !important;
    padding: 8px 0 !important;
    z-index: 10000 !important;
}

/* Show on click */
.dropdown.open .dropdown-menu {
    display: block !important;
}

/* Dropdown Menu Items */
.dropdown-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 20px !important;
    color: #333333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    background: #ffffff !important;
    white-space: nowrap !important;
}

.dropdown-menu a:hover {
    background: rgba(201, 168, 76, 0.06) !important;
    color: #c9a84c !important;
    border-left-color: #c9a84c !important;
}

.dropdown-menu a i {
    font-size: 14px !important;
    color: #c9a84c !important;
    width: 18px !important;
    text-align: center !important;
}

/* ============================================
   NESTED DROPDOWN FOR SERVICES - CLICK ONLY
   ============================================ */
.dropdown-sub {
    position: relative !important;
}

.dropdown-sub > a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 20px !important;
    color: #333333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
    cursor: pointer !important;
    background: #ffffff !important;
    white-space: nowrap !important;
    justify-content: space-between !important;
}

.dropdown-sub > a:hover {
    background: rgba(201, 168, 76, 0.06) !important;
    color: #c9a84c !important;
    border-left-color: #c9a84c !important;
}

.dropdown-sub > a i {
    font-size: 14px !important;
    color: #c9a84c !important;
    width: 18px !important;
    text-align: center !important;
}

.dropdown-sub > a .sub-arrow {
    font-size: 12px !important;
    color: #999 !important;
    width: auto !important;
    margin-left: 10px !important;
    transition: transform 0.3s ease !important;
}

/* Show sub-dropdown on click */
.dropdown-sub.open .dropdown-sub-menu {
    display: block !important;
}

/* Arrow rotation when open */
.dropdown-sub.open > a .sub-arrow {
    transform: rotate(90deg) !important;
}

/* Sub-dropdown menu - appears on click */
.dropdown-sub-menu {
    display: none !important;
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    background: #ffffff !important;
    min-width: 220px !important;
    max-height: 500px !important;
    overflow-y: auto !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15) !important;
    border-radius: 10px !important;
    border: 1px solid #e8e8e8 !important;
    padding: 8px 0 !important;
    z-index: 10001 !important;
}

/* For right-aligned dropdowns (fix for items near right edge) */
.dropdown-sub-menu.dropdown-sub-right {
    left: auto !important;
    right: 100% !important;
}

/* Sub-dropdown items */
.dropdown-sub-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 20px !important;
    color: #333333 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
    cursor: pointer !important;
    background: #ffffff !important;
    white-space: nowrap !important;
}

.dropdown-sub-menu a:hover {
    background: rgba(201, 168, 76, 0.06) !important;
    color: #c9a84c !important;
    border-left-color: #c9a84c !important;
}

.dropdown-sub-menu a i {
    font-size: 13px !important;
    color: #c9a84c !important;
    width: 18px !important;
    text-align: center !important;
}

/* Horizontal Scroll Dropdown */
.dropdown-sub-menu.dropdown-scroll {
    max-height: 400px !important;
    overflow-y: auto !important;
    min-width: 250px !important;
}

.dropdown-sub-menu.dropdown-scroll::-webkit-scrollbar {
    width: 5px;
}

.dropdown-sub-menu.dropdown-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.dropdown-sub-menu.dropdown-scroll::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 10px;
}

.dropdown-sub-menu.dropdown-scroll::-webkit-scrollbar-thumb:hover {
    background: #b8963e;
}

/* ============================================
   LANGUAGE SWITCHER - NAVIGATION BAR
   ============================================ */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 10px;
    flex-shrink: 0;
}

.language-switcher .lang-select {
    padding: 6px 30px 6px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #333;
    min-width: 110px;
    height: 38px;
}

.language-switcher .lang-select:hover {
    border-color: #c9a84c;
    background-color: #fafafa;
}

.language-switcher .lang-select:focus {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* ============================================
   RESPONSIVE - TABLET & MOBILE
   ============================================ */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 20px !important;
        height: auto !important;
        min-height: 65px !important;
        flex-wrap: wrap !important;
    }

    .logo img {
        height: 40px !important;
    }

    .menu-toggle {
        display: block !important;
    }

    .nav-links {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 15px 0 !important;
        gap: 5px !important;
        height: auto !important;
        background: #ffffff !important;
        border-top: 1px solid #e8e8e8 !important;
        margin-top: 10px !important;
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-links > a,
    .dropdown > a,
    .logout-btn {
        width: 100% !important;
        padding: 10px 15px !important;
        border-radius: 6px !important;
        justify-content: flex-start !important;
        white-space: normal !important;
    }

    .logout-btn {
        border: 1px solid #dc3545 !important;
        justify-content: center !important;
        margin-top: 5px !important;
    }

    .logout-btn:hover {
        background: #dc3545 !important;
        color: #ffffff !important;
    }

    .dropdown {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        z-index: auto !important;
        height: auto !important;
    }

    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin-left: 20px !important;
        background: transparent !important;
        z-index: auto !important;
        display: none !important;
        width: 100% !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    .dropdown.open .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu a {
        padding: 10px 15px !important;
        border-left: none !important;
        border-left: 3px solid transparent !important;
        background: transparent !important;
        white-space: normal !important;
        width: 100% !important;
    }

    .dropdown-menu a:hover {
        border-left-color: #c9a84c !important;
    }

    .dropdown > a .arrow-down {
        margin-left: auto !important;
    }

    /* Mobile nested dropdowns */
    .dropdown-sub {
        width: 100% !important;
    }

    .dropdown-sub > a {
        padding: 10px 15px !important;
        width: 100% !important;
    }

    .dropdown-sub > a .sub-arrow {
        margin-left: auto !important;
    }

    .dropdown-sub-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin-left: 25px !important;
        background: transparent !important;
        z-index: auto !important;
        display: none !important;
        width: 100% !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    .dropdown-sub.open .dropdown-sub-menu {
        display: block !important;
    }

    .dropdown-sub.open > a .sub-arrow {
        transform: rotate(90deg) !important;
    }

    .dropdown-sub-menu a {
        padding: 8px 15px !important;
        border-left: none !important;
        border-left: 3px solid transparent !important;
        background: transparent !important;
        white-space: normal !important;
        width: 100% !important;
    }

    .dropdown-sub-menu.dropdown-two-columns {
        min-width: auto !important;
        flex-direction: column !important;
    }

    body {
        padding-top: 65px !important;
    }

    /* Language Switcher - Mobile */
    .language-switcher {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 8px !important;
        padding: 0 15px !important;
    }
    
    .language-switcher .lang-select {
        width: 100% !important;
        padding: 10px 30px 10px 15px !important;
        font-size: 15px !important;
        height: 44px !important;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    .navbar {
        padding: 8px 15px !important;
        min-height: 55px !important;
    }

    .logo img {
        height: 32px !important;
    }

    .nav-links > a,
    .dropdown > a,
    .logout-btn {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }

    body {
        padding-top: 55px !important;
    }

    .language-switcher .lang-select {
        font-size: 14px !important;
        padding: 8px 28px 8px 12px !important;
        min-width: auto !important;
        height: 38px !important;
    }
}

/* ============================================
   FORCE NESTED DROPDOWN ON CLICK
   ============================================ */
.dropdown-sub-menu {
    display: none !important;
}

.dropdown-sub.open > .dropdown-sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.dropdown-sub.open > a .sub-arrow {
    transform: rotate(90deg) !important;
}

.dropdown-sub-menu.dropdown-sub-right {
    left: auto !important;
    right: 100% !important;
}

/* Force main dropdown */
.dropdown-menu {
    display: none !important;
}

.dropdown.open > .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.dropdown.open > a .arrow-down {
    transform: rotate(180deg) !important;
}

/* Override any other conflicting styles */
.nav-links .dropdown-sub-menu {
    display: none !important;
}

.nav-links .dropdown-sub.open .dropdown-sub-menu,
.nav-links .dropdown-sub.open > .dropdown-sub-menu {
    display: block !important;
}

/* Highlight Gold - For emphasized text in translations */
.highlight-gold {
    color: #c9a84c;
    font-weight: 700;
}

/* Optional: Add a subtle glow effect on hover */
.highlight-gold:hover {
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}