/* ============================================================
   MOBILE DRAWER NAV — DreamAbroadJobs
   Sirf mobile pe apply hoga (max-width: 991px)
   ============================================================ */

/* Desktop layout bilkul same rehta hai */
@media (max-width: 991px) {

  /* 1. Bootstrap collapse completely hide — hum drawer use karenge */
  #navbarNav {
    display: none !important;
  }

  /* 2. Hamburger button — already styled, sirf order fix */
  .custom-navbar-toggler {
    order: 2;
    display: flex !important;
  }

  /* ── MENU BUTTON COLOR (naya add kiya) ── */
  .mob-menu-pill {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #0056b3 0%, #2563eb 100%);
    border: none; padding: 8px 16px; border-radius: 50px;
    box-shadow: 0 4px 12px rgba(37,99,235,.25);
    transition: all .3s ease; cursor: pointer;
  }
  .mob-menu-pill:hover  { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,99,235,.35); }
  .mob-menu-bars { display: flex; flex-direction: column; gap: 4px; width: 18px; }
  .mob-menu-bars span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; }
  .mob-menu-label { color: #fff; font-size: 13px; font-weight: 700; }

  /* 3. Navbar inner layout */
  .navbar > .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* ── OVERLAY ── */
  .mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1300;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .mob-overlay.show { display: block; }

  /* ── DRAWER ── */
  .mob-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: #fff;
    z-index: 1400;
    transform: translateX(110%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mob-drawer.open { transform: translateX(0); }

  /* Dark mode drawer */
  body.dark-mode .mob-drawer {
    background: #1e293b;
    border-left: 1px solid #334155;
  }
  body.dark-mode .mob-overlay {
    background: rgba(0,0,0,.65);
  }

  /* ── DRAWER HEADER ── */
  .mob-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
  }
  body.dark-mode .mob-drawer-head { border-bottom-color: #334155; }

  .mob-close-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
  }
  .mob-close-btn:hover { background: #e2e8f0; }
  body.dark-mode .mob-close-btn {
    background: #334155; border-color: #475569; color: #94a3b8;
  }

  /* ── USER STRIP ── */
  .mob-user-strip {
    margin: 14px 14px 4px;
    background: linear-gradient(135deg, #0056b3, #2563eb);
    border-radius: 12px;
    padding: 13px 16px;
    display: flex; align-items: center; gap: 12px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
  }
  .mob-user-strip:hover { opacity: .9; color: #fff; }
  .mob-user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
  }
  .mob-user-strip .mob-u-name { font-size: 13px; font-weight: 700; }
  .mob-user-strip .mob-u-sub  { font-size: 11px; opacity: .8; }

  /* ── COUNTRY BADGE ROW ── */
  .mob-country-row {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    flex-shrink: 0;
  }
  .mob-country-badge {
    flex: 1;
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg,#0056b3,#2563eb);
    color: #fff; border-radius: 50px;
    padding: 7px 14px;
    font-size: 13px; font-weight: 600;
  }
  .mob-refresh-link {
    color: rgba(255,255,255,.85);
    font-size: 13px;
    text-decoration: none;
    background: rgba(255,255,255,.18);
    padding: 2px 8px; border-radius: 50px;
    transition: background .15s;
  }
  .mob-refresh-link:hover { background: rgba(255,255,255,.3); color: #fff; }

  /* ── NAV ITEMS ── */
  .mob-nav-section-label {
    font-size: 10px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: #94a3b8;
    padding: 12px 18px 4px;
  }

  .mob-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 18px;
    color: #334155 !important;
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    transition: background .15s;
    border: none; background: none;
    width: 100%; cursor: pointer; text-align: left;
  }
  .mob-nav-link:hover  { background: #f0f7ff; color: #0056b3 !important; }
  .mob-nav-link.active { background: #eff6ff; color: #0056b3 !important; }
  body.dark-mode .mob-nav-link { color: #cbd5e1 !important; }
  body.dark-mode .mob-nav-link:hover  { background: #273549; color: #60a5fa !important; }
  body.dark-mode .mob-nav-link.active { background: #1e3a5f; color: #60a5fa !important; }

  .mob-nav-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
    background: #f1f5f9;
  }
  body.dark-mode .mob-nav-icon { background: #334155; }

  .mob-chevron { margin-left: auto; color: #94a3b8; font-size: 13px; transition: transform .2s; }
  .mob-chevron.rotated { transform: rotate(90deg); }

  /* ── SUB MENU ── */
  .mob-sub {
    display: none;
    background: #f8fafc;
    border-left: 3px solid #0056b3;
    margin: 0 0 2px 14px;
  }
  body.dark-mode .mob-sub { background: #162032; border-left-color: #2563eb; }
  .mob-sub.open { display: block; }
  .mob-sub .mob-nav-link { padding-left: 28px; font-size: 13px; font-weight: 500; }

  /* ── DIVIDER ── */
  .mob-divider {
    height: 1px; background: #e2e8f0;
    margin: 6px 14px;
  }
  body.dark-mode .mob-divider { background: #334155; }

  /* ── SETTINGS ROW ── */
  .mob-settings-row {
    display: flex; gap: 8px;
    padding: 10px 14px;
    flex-shrink: 0;
  }
  .mob-pill-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 8px;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    background: none; cursor: pointer;
    font-size: 12px; font-weight: 600; color: #334155;
    transition: border-color .15s, background .15s;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }
  .mob-pill-btn:hover { border-color: #0056b3; background: #eff6ff; color: #0056b3; }
  body.dark-mode .mob-pill-btn { border-color: #334155; color: #cbd5e1; }
  body.dark-mode .mob-pill-btn:hover { border-color: #60a5fa; background: #1e3a5f; color: #60a5fa; }

  /* ── FOOTER SEARCH ── */
  .mob-footer {
    padding: 12px 14px 28px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
    flex-shrink: 0;
  }
  body.dark-mode .mob-footer { border-top-color: #334155; }

  .mob-search-wrap {
    display: flex; align-items: center; gap: 8px;
    background: #f8fafc; border: 1.5px solid #e2e8f0;
    border-radius: 10px; padding: 0 12px; margin-bottom: 10px;
  }
  body.dark-mode .mob-search-wrap { background: #0f172a; border-color: #475569; }
  .mob-search-wrap input {
    flex: 1; border: none; background: none; outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; padding: 11px 0; color: #0f172a;
  }
  body.dark-mode .mob-search-wrap input { color: #e2e8f0; }
  .mob-search-wrap i { color: #94a3b8; }

  .mob-search-btn {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, #0056b3, #2563eb);
    color: #fff; border: none; border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: opacity .2s;
  }
  .mob-search-btn:hover { opacity: .9; }

  /* ── HAMBURGER → X animation ── */
  .custom-navbar-toggler .bar1,
  .custom-navbar-toggler .bar2,
  .custom-navbar-toggler .bar3 {
    display: block; width: 16px; height: 2px;
    background: #0056b3; border-radius: 2px; margin: 3px auto;
    transition: transform .3s, opacity .3s;
  }
  .custom-navbar-toggler.open .bar1 { transform: translateY(5px) rotate(45deg); }
  .custom-navbar-toggler.open .bar2 { opacity: 0; }
  .custom-navbar-toggler.open .bar3 { transform: translateY(-5px) rotate(-45deg); }
  body.dark-mode .custom-navbar-toggler .bar1,
  body.dark-mode .custom-navbar-toggler .bar2,
  body.dark-mode .custom-navbar-toggler .bar3 { background: #60a5fa; }

}
/* End @media max-width:991px */