/* navbar.mobile.css */

/* show hamburger and hide desktop nav on small screens */
@media (max-width: 768px) {
  .nav .nav-links { display: none; }
 /* hamburger button container */
.hamburger {
  display: flex;
  flex-direction: column; /* stack vertical */
  justify-content: center;
  align-items: center;
  gap: 5px; /* space between bars */
  width: 35px;
  height: 30px;
  cursor: pointer;
  border: none;
  background: none;
}

/* bars (the 3 lines) */
.hamburger .bar {
  display: block;
  width: 100%;
  height: 4px;
  background-color: #333; /* apni theme ke hisab se */
  border-radius: 2px;
}

  /* sidebar (off-canvas left) */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 86vw);
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 20px rgba(7,50,75,0.12);
    transform: translateX(-115%);
    transition: transform 260ms ease;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
  }
  /* when .sidebar-open on body, slide in */
  body.sidebar-open .sidebar { transform: translateX(0); }

  .sidebar-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-bottom:8px;
    border-bottom: 1px solid rgba(7,50,75,0.06);
  }

  .sidebar-nav ul { margin:12px 0; padding:0; list-style:none; }
  .sidebar-nav a { display:block; padding:10px 6px; text-decoration:none; color:#07324a; font-weight:600; border-radius:6px; }
  .sidebar-nav a:hover { background: rgba(11,61,102,0.06); }

  /* overlay */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7,50,75,0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 1390;
  }
  body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }

  /* sidebar dropdown */
  .sidebar-dropdown-toggle {
    background: transparent;
    border: 0;
    padding: 8px 6px;
    width: 100%;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
  }
  .sidebar-dropdown-menu {
    padding-left: 12px;
    margin: 6px 0 12px 0;
  }

  /* ensure header height is a bit smaller on mobile */
  :root { --header-h: 58px; }
  .site-header { height: var(--header-h); }
  .main-content { padding-top: calc(var(--header-h) + 18px); }
}
