/* ================================================
   NAVBAR STYLES — UDHM PHARMACY COLLEGE (V3.2 Mobile Drawer Fix)
================================================ */

/* ─── TOP BAR ─── */
.top-bar {
  background: linear-gradient(90deg, #031510 0%, #059669 45%, #0891b2 100%);
  padding: 8px 0;
  font-size: 12px;
  color: rgba(255,255,255,.9);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.1);
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.top-bar-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top-bar-right { display: flex; align-items: center; gap: 14px; }
.top-bar a { color: rgba(255,255,255,.9); transition: all .2s; font-weight: 600; text-decoration: none; }
.top-bar a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.5); }
.top-bar i { margin-right: 6px; color: var(--amber); font-size: 13px; }
.top-bar .socials { display: flex; gap: 8px; }
.top-bar .socials a {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 12.5px;
  transition: all .2s ease; color: rgba(255,255,255,.9);
}
.top-bar .socials a:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
  color: #fff;
}

/* ─── MAIN NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 8px 30px rgba(6, 14, 23, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

/* Brand Logo & Name */
.brand {
  display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 1;
  text-decoration: none;
}
.brand-logo-wrap {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px; overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.2);
  background: var(--light-bg);
}
.brand-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.brand-fallback {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  flex-shrink: 0; box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}
.brand-text { line-height: 1.2; min-width: 0; }
.brand-text strong {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--heading); font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text span {
  display: block; color: var(--muted); font-size: 10px;
  font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─── DESKTOP NAV MENU ─── */
.nav-menu {
  display: flex; align-items: center; gap: 2px; flex-wrap: nowrap;
}
.nav-menu > li { position: relative; list-style: none; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 11px; border-radius: 10px;
  font-size: 13px; font-weight: 700; color: #334155;
  transition: all .2s; white-space: nowrap; position: relative;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary); background: var(--light-bg);
}
.nav-link.active::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}
.nav-link i { font-size: 11.5px; opacity: .8; color: var(--primary); }

/* Close Button — Hidden on Desktop by Default */
.nav-close { display: none !important; }

/* Apply Now CTA Button */
.nav-cta {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--primary); white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18); transition: var(--transition);
  text-decoration: none;
}
.nav-phone:hover { background: rgba(16, 185, 129, 0.16); color: var(--primary-dark); }
.nav-phone i { font-size: 12.5px; }

/* Hamburger Button */
.menu-toggle {
  display: none; background: var(--light-bg); border: 1px solid var(--border);
  cursor: pointer; padding: 9px 12px; border-radius: 10px;
  color: var(--heading); font-size: 18px; transition: all .2s;
  align-items: center; justify-content: center; gap: 6px;
}
.menu-toggle:hover { background: var(--grad-primary); color: #fff; border-color: transparent; }

/* ─── RESPONSIVE BREAKPOINTS ─── */

/* Large Desktop Adjustments (1181px to 1340px) */
@media (min-width: 1181px) and (max-width: 1340px) {
  .brand-text strong { font-size: 13px; }
  .nav-link { padding: 7px 9px; font-size: 12.5px; }
  .nav-phone { display: none; }
}

/* Mobile & Tablet Drawer (<= 1180px) */
@media (max-width: 1180px) {
  .menu-toggle { display: flex; }
  .nav-phone   { display: none; }
  
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 86vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff !important;
    padding: 76px 20px 32px;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
    transition: right .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 99999 !important; overflow-y: auto; gap: 8px;
  }
  .nav-menu.open { right: 0; }
  
  .nav-link {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .nav-link:hover, .nav-link.active {
    background: var(--light-bg);
    border-color: var(--border);
    color: var(--primary);
  }
  .nav-link.active::after { display: none; }
  
  /* Mobile Drawer Close Button */
  .nav-close {
    display: flex !important;
    position: absolute; top: 18px; right: 18px;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--light-bg); border: 1px solid var(--border); cursor: pointer;
    align-items: center; justify-content: center;
    color: var(--heading); font-size: 18px; transition: var(--transition);
    z-index: 100000 !important;
  }
  .nav-close:hover { background: #ef4444; color: #fff; border-color: transparent; }

  /* Drawer Overlay */
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(6, 14, 23, 0.65);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 9998 !important; opacity: 0; visibility: hidden; transition: all .3s ease;
    pointer-events: none;
  }
  .nav-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
}

@media (max-width: 768px) {
  .top-bar-left { gap: 12px; }
  .top-bar-left span { display: none; }
  .brand-text strong { font-size: 12.5px; }
  .brand-text span   { font-size: 9.5px; }
  .brand-logo-wrap   { width: 42px; height: 42px; border-radius: 10px; }
  .nav-inner         { min-height: 66px; }
}

@media (max-width: 480px) {
  .top-bar-left a:nth-child(2) { display: none; } /* Hide email on ultra small mobile */
  .brand-text strong { font-size: 11.5px; white-space: normal; line-height: 1.25; }
  .brand-text span   { display: none; }
}



