/* ==========================================================
   PARDAFAS ONLINE — nav-new.css
   Complete navigation styles — desktop + mobile
   ========================================================== */


/* ----------------------------------------------------------
   1. PRE-HEADER (topbar strip)
      Overrides style.css .preHeader
   ---------------------------------------------------------- */
.preHeader {
    background: #1a1a1a !important;
    padding: 0;
    border-bottom: 1px solid #2a2a2a;
}

.preHeader .container {
    padding-top: 0;
    padding-bottom: 0;
}

.preHeader .row {
    display: flex;
    align-items: center;
    min-height: 34px;
}

.enDateTime {
    display: flex;
    align-items: center;
    height: 34px;
}

.enDateTime iframe {
    display: block;
}

.preHeadNav ul {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0;
    height: 34px;
}

.preHeadNav li {
    display: inline-flex;
    align-items: center;
    margin-right: 0;
    border-right: 1px solid #333;
}

.preHeadNav li:last-child {
    border-right: none;
    margin-right: 0;
}

.preHeadNav li a {
    color: rgba(255,255,255,0.7) !important;
    font: 400 12px 'Mukta', sans-serif !important;
    padding: 0 14px;
    line-height: 34px;
    display: block;
    transition: color 0.15s;
    white-space: nowrap;
}

.preHeadNav li a:hover {
    color: #fff !important;
    text-decoration: none !important;
}

.fb-like {
    padding: 0 10px;
    line-height: 34px;
}


/* ----------------------------------------------------------
   2. HEADER SECTION — Logo left, Ad right
   ---------------------------------------------------------- */
.headerSection {
    padding: 16px 0 !important;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.headerSection .logo img {
    /* max-height: 65px; */
    width: auto;
}

.headerSection .nepali-datetime {
    margin-top: 5px;
}

.headerSection .headerAd {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-top: 4px;
}


/* ----------------------------------------------------------
   3. MAIN NAV — Red background
      !important overrides style.css .mainNav { background:#029bde }
   ---------------------------------------------------------- */
.mainNav {
    background: #cd1e03 !important;
    border-bottom: none !important;
    position: relative;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.mainNavInner {
    display: flex;
    align-items: center;
    position: relative;
}

/* Mini logo — hidden by default, shown when sticky */
.stickyLogo {
    display: none;
    align-items: center;
    flex-shrink: 0;
    padding: 6px 14px 6px 0;
    border-right: 1px solid rgba(255,255,255,0.2);
    margin-right: 8px;
}

.stickyLogo img {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
}

.mainMenu {
    flex: 1;
}

/* Sticky search hidden — no search in desktop nav */
.stickySearch {
    display: none !important;
}


/* ----------------------------------------------------------
   4. DESKTOP STICKY STATE
   ---------------------------------------------------------- */
.mainNav.is-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    animation: navSlideDown 0.3s ease forwards;
}

@keyframes navSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.mainNav.is-sticky .stickyLogo {
    display: flex;
}

body.nav-is-sticky {
    padding-top: 50px;
}


/* ----------------------------------------------------------
   5. CSSMENU OVERRIDES — red nav background
      Overrides styles-menubtn.css defaults
   ---------------------------------------------------------- */

/* Top-level links */
#cssmenu > ul > li > a {
    color: #fff !important;
    font: 500 16px 'Mukta', sans-serif !important;
    padding: 14px 16px !important;
    border-right: 1px solid rgba(255,255,255,0.15) !important;
    border-left: none !important;
    text-decoration: none;
    transition: background 0.15s ease;
}

#cssmenu > ul > li:first-child > a {
    border-left: 1px solid rgba(255,255,255,0.15) !important;
}

/* Hover + active states */
#cssmenu > ul > li:hover > a,
#cssmenu > ul > li > a:hover {
    background: rgba(0,0,0,0.20) !important;
    color: #fff !important;
}

#cssmenu > ul > li.active > a {
    background: rgba(0,0,0,0.28) !important;
    color: #fff !important;
    border-bottom: 3px solid #fff !important;
    padding-bottom: 11px !important;
}

/* Dropdown arrow color */
#cssmenu > ul > li.has-sub > a::after {
    border-top-color: rgba(255,255,255,0.7) !important;
    top: 21px !important;
}

#cssmenu > ul > li.has-sub:hover > a::after,
#cssmenu > ul > li.has-sub.active > a::after {
    border-top-color: #fff !important;
}

/* Dropdown panel */
#cssmenu ul ul {
    top: 100% !important;
    padding-top: 0 !important;
    border-top: 3px solid #cd1e03 !important;
    border-radius: 0 0 6px 6px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

#cssmenu > ul > li:hover > ul {
    top: 100% !important;
    opacity: 1 !important;
}

/* Dropdown arrow (the triangle pointer above dropdown) */
#cssmenu > ul > li > ul::after {
    border-bottom-color: #cd1e03 !important;
}

/* Dropdown item links */
#cssmenu ul ul li a {
    font: 400 15px 'Mukta', sans-serif !important;
    color: #222 !important;
    background: #fff !important;
    padding: 11px 20px !important;
    border-bottom: 1px solid #f3f3f3 !important;
    width: 200px !important;
    transition: background 0.15s, color 0.15s, padding-left 0.15s !important;
}

#cssmenu ul ul li a:hover,
#cssmenu ul ul li.active > a {
    background: #fff5f5 !important;
    color: #cd1e03 !important;
    padding-left: 26px !important;
}

#cssmenu ul ul li:first-child > a {
    border-radius: 0 !important;
}

#cssmenu ul ul li:last-child > a {
    border-radius: 0 0 6px 6px !important;
    border-bottom: none !important;
}


/* ----------------------------------------------------------
   6. NAV TICKER — right side of desktop nav
   ---------------------------------------------------------- */
.navTicker {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 320px;
    min-width: 200px;
    overflow: hidden;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.2);
    margin-left: 4px;
    height: 100%;
}

.navTickerLabel {
    background: #fff;
    color: #cd1e03;
    font: 700 11px 'Mukta', sans-serif;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
    margin-right: 10px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navTickerTrack {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.navTickerInner {
    display: flex;
    gap: 40px;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.navTickerInner:hover {
    animation-play-state: paused;
}

.navTickerItem {
    color: rgba(255,255,255,0.88);
    font: 400 13px 'Mukta', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}

.navTickerItem:hover {
    color: #fff;
    text-decoration: underline;
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ----------------------------------------------------------
   7. MOBILE NAV BAR
   ---------------------------------------------------------- */
.mobileNav {
    background: #029bde;
    position: relative;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.mobileNavInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 14px;
    position: relative;
}

/* Hamburger — left */
.mobileHamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    z-index: 2;
}

.mobileHamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobileHamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobileHamburger.is-open span:nth-child(2) { opacity: 0; }
.mobileHamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo — absolute center */
.mobileLogo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.mobileLogo img {
    height: 34px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

/* Search toggle — right */
.mobileSearchToggle {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 2;
    transition: background 0.2s ease;
}

.mobileSearchToggle:hover {
    background: rgba(255,255,255,0.28);
}


/* ----------------------------------------------------------
   8. MOBILE — Expandable Search Bar
   ---------------------------------------------------------- */
.mobileSearchBar {
    display: none;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 8px 14px;
}

.mobileSearchBar.is-open {
    display: block;
    animation: searchSlideDown 0.2s ease forwards;
}

@keyframes searchSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobileSearchForm {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobileSearchInput {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 14px;
    font-family: 'Mukta', sans-serif;
    outline: none;
    color: #333;
}

.mobileSearchInput:focus { border-color: #029bde; }

.mobileSearchSubmit {
    background: #029bde;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.mobileSearchSubmit:hover { background: #0183be; }

.mobileSearchClose {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    flex-shrink: 0;
}


/* ----------------------------------------------------------
   9. MOBILE — Sticky state
   ---------------------------------------------------------- */
.mobileNav.is-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background: #cd1e03 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    z-index: 99999;
    animation: navSlideDown 0.3s ease forwards;
}

.mobileNav.is-sticky .mobileLogo {
    opacity: 1;
    pointer-events: auto;
}

.mobileNav.is-sticky .mobileSearchToggle {
    background: rgba(0,0,0,0.15);
    border-color: rgba(255,255,255,0.2);
}

body.mobile-nav-sticky { padding-top: 52px; }


/* ----------------------------------------------------------
   10. MOBILE — Drawer Overlay
   ---------------------------------------------------------- */
.mobileDrawerOverlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobileDrawerOverlay.is-open {
    display: block;
    opacity: 1;
}


/* ----------------------------------------------------------
   11. MOBILE — Slide-in Drawer
   ---------------------------------------------------------- */
.mobileDrawer {
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobileDrawer.is-open { transform: translateX(0); }

.mobileDrawerHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 3px solid #cd1e03;
}

.mobileDrawerLogo {
    height: 32px;
    width: auto;
}

.mobileDrawerClose {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mobileDrawerClose:hover { background: #e0e0e0; color: #cd1e03; }

.mobileDrawerMenu,
.mobileDrawerMenu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* White background — override cssmenu mobile #333 */
.mobileDrawer,
.mobileDrawer nav,
.mobileDrawerMenu,
.mobileDrawerMenu li {
    background: #fff !important;
}

.mobileDrawerMenu > li > a {
    display: block !important;
    color: #222 !important;
    font: 500 15px 'Mukta', sans-serif !important;
    padding: 13px 20px !important;
    text-decoration: none !important;
    background: #fff !important;
    border: none !important;
    border-bottom: 2px solid #f0f0f0 !important;
    border-left: 4px solid transparent !important;
    width: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: background 0.15s, border-left-color 0.15s !important;
}

.mobileDrawerMenu > li > a:hover {
    background: #f8f8f8 !important;
    color: #cd1e03 !important;
    border-left-color: #cd1e03 !important;
}

.mobileDrawerMenu > li.active > a {
    color: #cd1e03 !important;
    background: #fff5f5 !important;
    border-left-color: #cd1e03 !important;
}

/* Sub-menu items */
.mobileDrawerMenu ul {
    background: #fafafa !important;
}

.mobileDrawerMenu ul li {
    background: #fafafa !important;
}

.mobileDrawerMenu ul li a {
    display: block !important;
    color: #555 !important;
    font: 400 14px 'Mukta', sans-serif !important;
    padding: 11px 20px 11px 36px !important;
    text-decoration: none !important;
    background: #fafafa !important;
    border: none !important;
    border-bottom: 1px solid #ebebeb !important;
    border-left: 4px solid #e0e0e0 !important;
    width: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: background 0.15s, color 0.15s !important;
}

.mobileDrawerMenu ul li a:hover {
    background: #f0f0f0 !important;
    color: #cd1e03 !important;
    border-left-color: #cd1e03 !important;
}


/* ----------------------------------------------------------
   12. Hide old mobilenav.php
   ---------------------------------------------------------- */
#modle-menu-container { display: none !important; }
