/* ============================================
   MOBILE TOPBAR - OPEN
============================================ */
#mobile-topbar {
    background: #173f5f;
    border-top: 3px solid #ed553b;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 9998;
}

#mobile-topbar.mob-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.28);
    z-index: 99998;
}

#mob-topbar-spacer { height: 0; transition: height 0s; }
#mob-topbar-spacer.active { height: 54px; }

/* Left - hamburger */
.mob-left { width: 44px; display: flex; align-items: center; }

#mob-hamburger {
    background: none;
    border: none;
    padding: 6px 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 32px;
}
#mob-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 2px;
}

/* Center - logo */
.mob-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.mob-logo { height: 36px; width: auto; max-width: 130px; object-fit: contain; }

/* Right - search */
.mob-right { width: 44px; display: flex; justify-content: flex-end; }
#mob-search-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 17px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ============================================
   MOBILE TOPBAR - CLOSE
============================================ */


/* ============================================
   SEARCH BAR - OPEN
============================================ */
#mob-search-bar {
    background: #0f2d45;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease;
}
#mob-search-bar.open { max-height: 60px; }
#mob-search-bar form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}
#mob-search-bar input[type="text"] {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #fff;
    font: 400 15px 'Mukta', sans-serif;
    outline: none;
}
#mob-search-bar input::placeholder { color: rgba(255,255,255,0.45); }
#mob-search-bar input:focus { border-color: #eb8d02; }
#mob-search-bar button[type="submit"] {
    background: #ed553b;
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
}
#mob-search-close {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
}
/* ============================================
   SEARCH BAR - CLOSE
============================================ */


/* ============================================
   DRAWER OVERLAY - OPEN
============================================ */
#mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#mob-overlay.open {
    display: block;
    opacity: 1;
}
/* ============================================
   DRAWER OVERLAY - CLOSE
============================================ */


/* ============================================
   DRAWER PANEL - OPEN
============================================ */
#mob-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 78%;
    max-width: 300px;
    height: 100%;
    background: #173f5f;
    z-index: 100000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex !important;
    flex-direction: column;
}
#mob-drawer.open { transform: translateX(0); }

/* Drawer Header */
.mob-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #0f2d45;
    border-bottom: 2px solid #ed553b;
    flex-shrink: 0;
}
.mob-drawer-logo { height: 34px; width: auto; filter: brightness(0) invert(1); }
#mob-drawer-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
}
#mob-drawer-close:hover { color: #ed553b; }

/* Drawer Nav */
.mob-drawer-nav { flex: 1; padding: 8px 0; }

/* Nav list items from Yii Nav widget */
.mob-nav-list,
.mob-drawer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mob-nav-list > li,
.mob-drawer-nav > ul > li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* First item - orange */
.mob-nav-list > li:first-child > a,
.mob-drawer-nav > ul > li:first-child > a {
    color: #fff !important;
    background: #ed553b;
    font-weight: 700 !important;
}
.mob-nav-list > li:first-child > a:hover,
.mob-drawer-nav > ul > li:first-child > a:hover {
    background: #d4452b !important;
}

/* All top-level links */
.mob-nav-list > li > a,
.mob-drawer-nav > ul > li > a {
    display: block;
    color: #cce0ee;
    font: 500 17px 'Mukta', sans-serif;
    padding: 13px 20px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.mob-nav-list > li > a:hover,
.mob-drawer-nav > ul > li > a:hover,
.mob-nav-list > li.active > a,
.mob-drawer-nav > ul > li.active > a {
    background: rgba(237,85,59,0.18);
    color: #ffffff;
    text-decoration: none;
}

/* Sub-menu (dropdown) */
.mob-nav-list ul,
.mob-drawer-nav ul ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,0.15);
    display: none;
}
.mob-nav-list li.open > ul,
.mob-drawer-nav li.open > ul { display: block; }

.mob-nav-list ul li a,
.mob-drawer-nav ul ul li a {
    display: block;
    color: rgba(204,224,238,0.8);
    font: 400 15px 'Mukta', sans-serif;
    padding: 10px 20px 10px 32px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mob-nav-list ul li a:hover,
.mob-drawer-nav ul ul li a:hover {
    color: #ffffff;
    background: rgba(237,85,59,0.15);
    text-decoration: none;
}

/* has-sub toggle arrow */
.mob-nav-list li.has-sub > a::after,
.mob-drawer-nav ul li.has-sub > a::after {
    content: '\f107';
    font-family: FontAwesome;
    float: right;
    font-size: 14px;
    color: rgba(204,224,238,0.5);
    transition: transform 0.2s;
}
.mob-nav-list li.has-sub.open > a::after,
.mob-drawer-nav ul li.has-sub.open > a::after {
    transform: rotate(180deg);
    color: #eb8d02;
}
/* ============================================
   DRAWER PANEL - CLOSE
============================================ */


/* ============================================
   HIDE DESKTOP ELEMENTS ON MOBILE - OPEN
============================================ */
@media screen and (max-width: 991px) {
    .headerSection { display: none !important; }
    .mainNav       { display: none !important; }
    #page          { display: none !important; }
    .tickerBar     { display: none !important; }
}

/* ============================================
   MOBILE LOGO WHITE FILTER - OPEN
============================================ */
.mob-logo {
    filter: brightness(0) invert(1);
}
/* ============================================
   MOBILE LOGO WHITE FILTER - CLOSE
============================================ */
/* ============================================
   HIDE DESKTOP ELEMENTS ON MOBILE - CLOSE
============================================ */
