/* ============================================================
   mobilemenu.css — Birta Jyoti Unified Navbar
   Desktop: logo.png left | menu center | search right
   Mobile:  hamburger left | logo.png center | search right
   Scroll:  hide on down, show on up, compact on scroll
============================================================ */

:root {
    --bj-blue:     #1A226D;
    --bj-red:      #FD6E70;
    --bj-nav-h:    68px;
    --bj-nav-h-sm: 52px;
}

/* ── Navbar shell ── */
#bj-navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 99990;
    background: var(--bj-blue);
    height: var(--bj-nav-h);
    box-shadow: 0 2px 16px rgba(26,34,109,.20);
    transition: height .3s ease,
                transform .35s cubic-bezier(.4,0,.2,1),
                box-shadow .3s ease;
    will-change: transform;
}
#bj-navbar.bj-scrolled {
    height: var(--bj-nav-h-sm);
    box-shadow: 0 4px 24px rgba(26,34,109,.30);
}
#bj-navbar.bj-hidden  { transform: translateY(-100%); }
#bj-navbar.bj-visible { transform: translateY(0); }

/* ── Inner layout ── */
.bj-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ── Logo image ── */
.bj-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.bj-logo-img {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: height .3s ease;
    /* Make white/dark logo visible on dark bg.
       Remove the filter line below if your logo already has white text */
    /* filter: brightness(0) invert(1); */
    border-radius: 4px;
}
#bj-navbar.bj-scrolled .bj-logo-img {
    height: 34px;
}

/* ── Desktop center menu ── */
.bj-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: visible;
}

ul.bj-menu {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
ul.bj-menu > li { position: relative; }

ul.bj-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 13px;
    border-radius: 7px;
    font-family: 'Khand', 'Mukta', 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: rgba(255,255,255,.88);
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s, color .18s;
}
ul.bj-menu > li > a:hover,
ul.bj-menu > li.active > a {
    background: rgba(255,255,255,.12);
    color: #fff;
}
ul.bj-menu > li.active > a {
    background: rgba(253,110,112,.18);
    color: var(--bj-red);
}

/* Dropdown */
ul.bj-menu > li > ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 10px;
    min-width: 170px;
    padding: 6px 0;
    box-shadow: 0 8px 32px rgba(26,34,109,.18);
    border: 1px solid rgba(26,34,109,.07);
    z-index: 200;
    list-style: none;
    animation: bjDropIn .18s ease;
}
@keyframes bjDropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
ul.bj-menu > li:hover > ul { display: block; }

ul.bj-menu > li > ul > li > a {
    display: block;
    padding: 9px 18px;
    font-size: 15px; font-weight: 500;
    color: var(--bj-blue);
    text-decoration: none;
    transition: background .15s, color .15s, padding-left .15s;
}
ul.bj-menu > li > ul > li > a:hover {
    background: #f0f2ff;
    color: var(--bj-red);
    padding-left: 22px;
}

/* ── Right actions ── */
.bj-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.bj-search-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 7px;
    padding: 7px 14px;
    color: rgba(255,255,255,.92);
    font-size: 14px; font-weight: 500;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    white-space: nowrap;
    font-family: 'Mukta', sans-serif;
}
.bj-search-btn svg {
    width: 15px; height: 15px;
    flex-shrink: 0;
}
.bj-search-btn:hover {
    background: rgba(255,255,255,.20);
    border-color: rgba(255,255,255,.32);
}

/* ── Hamburger (hidden on desktop) ── */
.bj-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none; border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background .2s;
}
.bj-hamburger:hover { background: rgba(255,255,255,.10); }
.bj-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.bj-hamburger.bj-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bj-hamburger.bj-open span:nth-child(2) { opacity: 0; }
.bj-hamburger.bj-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Search Overlay ── */
.bj-search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,34,109,.84);
    z-index: 999999;
    align-items: flex-start;
    justify-content: center;
    padding-top: 110px;
}
.bj-search-overlay.bj-open { display: flex; }

.bj-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    width: 92%; max-width: 600px;
    overflow: hidden;
    box-shadow: 0 20px 56px rgba(26,34,109,.28);
}
.bj-search-box > svg {
    margin-left: 20px;
    width: 18px; height: 18px;
    flex-shrink: 0;
}
.bj-search-box input {
    flex: 1;
    border: none; outline: none;
    font-size: 17px;
    color: var(--bj-blue);
    background: transparent;
    padding: 18px 14px;
    font-family: 'Mukta', sans-serif;
}
.bj-search-box input::placeholder { color: #bbc; }
.bj-search-close {
    background: none; border: none;
    cursor: pointer;
    color: #999; font-size: 20px;
    padding: 0 20px; height: 56px;
    transition: color .2s;
}
.bj-search-close:hover { color: var(--bj-blue); }

/* ── Mobile fullscreen menu ── */
.bj-mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bj-blue);
    z-index: 99980;
    flex-direction: column;
    padding-top: var(--bj-nav-h);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.bj-mobile-menu.bj-open { display: flex; }

.bj-mobile-search-wrap {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.bj-mobile-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.10);
    border-radius: 10px;
    padding: 12px 16px;
}
.bj-mobile-search-form svg { width: 16px; height: 16px; flex-shrink: 0; }
.bj-mobile-search-form input {
    flex: 1;
    background: transparent; border: none; outline: none;
    color: #fff;
    font-size: 15px;
    font-family: 'Mukta', sans-serif;
}
.bj-mobile-search-form input::placeholder { color: rgba(255,255,255,.42); }

/* Mobile nav links */
ul.bj-mobile-nav {
    list-style: none;
    margin: 0; padding: 10px 0;
}
ul.bj-mobile-nav > li > a {
    display: block;
    padding: 16px 24px;
    color: rgba(255,255,255,.90);
    font-size: 18px; font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-family: 'Khand', 'Mukta', sans-serif;
    transition: background .18s, color .18s;
}
ul.bj-mobile-nav > li > a:hover,
ul.bj-mobile-nav > li.active > a {
    background: rgba(255,255,255,.07);
    color: var(--bj-red);
}
/* Mobile sub-menu */
ul.bj-mobile-nav > li > ul {
    list-style: none; margin: 0; padding: 0;
    background: rgba(0,0,0,.18);
}
ul.bj-mobile-nav > li > ul > li > a {
    display: block;
    padding: 12px 36px;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: color .18s;
}
ul.bj-mobile-nav > li > ul > li > a:hover { color: var(--bj-red); }

/* ── Mobile breakpoint ── */
@media (max-width: 900px) {
    /* Hide desktop menu */
    .bj-nav-center  { display: none; }
    /* Hide search text label */
    .bj-search-label { display: none; }
    /* Show hamburger */
    .bj-hamburger { display: flex; }

    /* Centre logo absolutely between hamburger and search */
    .bj-nav-inner { position: relative; }
    .bj-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .bj-logo-img {
        height: 36px;
    }
    #bj-navbar.bj-scrolled .bj-logo-img {
        height: 28px;
    }

    /* Search button: icon only */
    .bj-search-btn {
        padding: 8px 10px;
        border-radius: 8px;
    }
    .bj-search-btn svg { width: 18px; height: 18px; }
}

/* ── Push page content below navbar ── */
body { padding-top: var(--bj-nav-h); }
