/* ===================================================
   UNIFIED RESPONSIVE NAVBAR SYSTEM
=================================================== */
.navbar, header.navbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.02);
}

/* Nav Menu (Desktop) */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #1a1a2e;
    font-family: var(--ff-body, 'DM Sans', sans-serif);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold, #c9922a);
}

.nav-menu a.active {
    position: relative;
    font-weight: 700;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background: var(--gold, #c9922a);
    border-radius: 10px;
}

.dropdown-caret {
    font-size: 11px;
    transition: transform 0.25s ease;
    display: inline-block;
}

/* Dropdown Menus (Desktop) */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    background: #ffffff;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1010;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-caret {
    transform: rotate(180deg);
}

.dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f4;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 11px 18px;
    color: #333344;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #faf4e8;
    color: var(--gold, #c9922a);
    padding-left: 22px;
}

.dropdown-menu a.active {
    background: rgba(201, 146, 42, 0.08);
    color: var(--gold, #c9922a);
    font-weight: 700;
}

.dropdown-menu a.active::after {
    display: none;
}

/* Nav Right Tools & Search */
.nav-tools {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f4f5f8;
    border: 1px solid #e1e4ea;
    border-radius: 8px;
    padding: 3px 4px 3px 12px;
    transition: border-color 0.25s, box-shadow 0.25s;
    position: relative;
}

.search-box:focus-within {
    border-color: var(--gold, #c9922a);
    box-shadow: 0 0 0 3px rgba(201, 146, 42, 0.15);
    background: #ffffff;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--ff-body, 'DM Sans', sans-serif);
    font-size: 13.5px;
    color: #1a1a2e;
    width: 130px;
    transition: width 0.25s ease;
}

.search-box input:focus {
    width: 170px;
}

.search-box button {
    background: var(--gold, #c9922a);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-family: var(--ff-body, 'DM Sans', sans-serif);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.search-box button:hover {
    background: #b8841c;
}

#searchCount {
    font-size: 12px;
    color: var(--gold, #c9922a);
    font-weight: 600;
    margin-left: 6px;
    white-space: nowrap;
}

/* Search Highlight */
.search-highlight {
    background: #fff59d !important;
    color: #000000 !important;
    padding: 1px 3px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

/* Nav Actions (Language & Toggle) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.language-selector {
    display: flex;
    align-items: center;
}

.goog-te-gadget-simple {
    background-color: #f7f8fa !important;
    border: 1px solid #e1e4ea !important;
    padding: 5px 10px !important;
    border-radius: 7px !important;
    font-size: 12.5px !important;
    font-family: var(--ff-body, 'DM Sans', sans-serif) !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.goog-te-gadget-simple:hover {
    border-color: var(--gold, #c9922a) !important;
    background-color: #faf4e8 !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: #222 !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    font-family: var(--ff-body, 'DM Sans', sans-serif) !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Hamburger Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid rgba(1, 35, 106, 0.18);
    border-radius: 8px;
    padding: 9px 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--navy, #01236a);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(1, 35, 106, 0.05);
    border-color: var(--navy, #01236a);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ===================================================
   RESPONSIVE BREAKPOINTS (Tablets & Mobile)
=================================================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 10px 16px;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "logo actions"
            "search search";
        row-gap: 10px;
        column-gap: 12px;
        align-items: center;
        width: 100%;
    }

    .logo {
        grid-area: logo;
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 38px;
    }

    .nav-actions {
        grid-area: actions;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-tools {
        grid-area: search;
        width: 100%;
        margin: 0;
    }

    .search-box {
        width: 100%;
        display: flex;
        align-items: center;
        background: #f4f5f8;
        border: 1px solid #e1e4ea;
        border-radius: 8px;
        padding: 4px 6px 4px 12px;
        box-sizing: border-box;
    }

    .search-box input {
        width: 100% !important;
        flex: 1;
        min-width: 0;
        font-size: 14px;
    }

    .search-box button {
        flex-shrink: 0;
        padding: 7px 16px;
        font-size: 13.5px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
        border-top: 1px solid #eef0f4;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1005;
    }

    .nav-menu.show {
        max-height: 80vh;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f2f3f7;
    }

    .nav-menu a {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 15px 22px;
        font-size: 15px;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .nav-menu a.active {
        background: rgba(201, 146, 42, 0.06);
        color: var(--gold, #c9922a);
        border-left: 4px solid var(--gold, #c9922a);
        padding-left: 18px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f8f9fc;
        width: 100%;
        padding: 0;
    }

    .dropdown.open > .dropdown-menu {
        display: block;
    }

    .dropdown.open > .dropdown-toggle .dropdown-caret {
        transform: rotate(180deg);
    }

    .dropdown-menu li {
        border-bottom: 1px solid #edf0f5;
    }

    .dropdown-menu a {
        padding: 13px 22px 13px 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 8px 12px;
        row-gap: 8px;
    }

    .logo img {
        height: 34px;
    }

    .goog-te-gadget-simple {
        padding: 4px 6px !important;
        font-size: 11.5px !important;
    }

    .search-box button {
        padding: 6px 12px;
        font-size: 13px;
    }
}