/* ============================================
   GARNER STATIONERY - HEADER NAV + MEGA MENU
   মার্কআপ আসে inc/garner-nav.php এর walker থেকে
============================================ */

.gnav-wrap, .gnav-wrap * { box-sizing: border-box; }
.gnav-wrap { font-family: 'Inter', sans-serif; }

/* Hello Elementor এর ডিফল্ট button hover/focus (গোলাপি ব্যাকগ্রাউন্ড) বন্ধ */
.gnav-wrap button:hover,
.gnav-wrap button:focus { background: none; }

/* ---------- Desktop Nav Bar (Primary Blue) ---------- */
.gnav-bar { background: #0B5DA4; position: relative; }
.gnav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; flex-wrap: nowrap;
  max-width: 1300px; margin: 0 auto; padding: 0 20px;
}
.gnav-item { position: relative; }
.gnav-item > a {
  display: block; padding: 14px 16px; color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
/* Hover Accent Red */
.gnav-item > a:hover { color: #C81824; }

/* ---------- Mega Dropdown ---------- */
.gnav-mega {
  display: none;
  position: fixed;
  background: #fff;
  box-shadow: 0 16px 40px rgba(11, 93, 164, 0.15);
  z-index: 99000;
  max-height: 80vh;
  overflow-y: auto;
  width: max-content;
  max-width: calc(100vw - 20px);
  border-top: 3px solid #C81824; /* Accent Red Line */
}

.gnav-item.has-mega:hover .gnav-mega { display: block; }
.gnav-mega-inner {
  max-width: 1300px; margin: 0 auto; padding: 28px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 26px 50px;
}
.gnav-col { flex: 0 1 200px; min-width: 0; }
.gnav-col-title {
  display: block; font-weight: 700; font-size: 13px; text-transform: uppercase;
  color: #0B5DA4 !important; text-decoration: none; margin-bottom: 10px; letter-spacing: 0.3px;
}
.gnav-col-title-sm { margin-top: 14px; margin-bottom: 0; }
.gnav-col > .gnav-col-title-sm:first-child { margin-top: 0; }
.gnav-static { cursor: default; }
.gnav-col ul { list-style: none; margin: 0 0 4px; padding: 0; }
.gnav-col ul li { margin-bottom: 8px; }
.gnav-col ul li a { font-size: 13px; color: #5A5270 !important; text-decoration: none; transition: color 0.2s ease; }
/* Hover Accent Red */
.gnav-col ul li a:hover { color: #C81824 !important; }

/* ---------- Mobile Toggle Button ---------- */
.gnav-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: none; color: #fff; padding: 14px 16px; cursor: pointer;
}
.gnav-wrap .gnav-toggle:hover,
.gnav-wrap .gnav-toggle:focus { color: #fff; }
.gnav-toggle-icon {
  display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 20px;
}
.gnav-toggle-icon span {
  display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px;
}
.gnav-toggle-text { font-size: 13px; font-weight: 600; }

/* ---------- Mobile Overlay + Slide-in Panel ---------- */
.gnav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 99998; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.gnav-overlay.active { opacity: 1; visibility: visible; }

.gnav-mobile {
  position: fixed; top: 0; left: -300px; width: 280px; max-width: 82%; height: 100%;
  background: #fff; z-index: 99999; box-shadow: 5px 0 25px rgba(0,0,0,0.15);
  transition: left 0.35s cubic-bezier(0.77,0,0.175,1);
  display: flex; flex-direction: column;
}
.gnav-mobile.active { left: 0; }
.gnav-mobile-head {
  padding: 18px 20px; background: #0B5DA4; color: #fff; font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.gnav-mobile-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; padding: 0; }
.gnav-wrap .gnav-mobile-close:hover,
.gnav-wrap .gnav-mobile-close:focus { color: #fff; }
.gnav-mobile-body { flex: 1; overflow-y: auto; padding: 10px 0; }
.gnav-mobile-body > a {
  display: block; padding: 13px 20px; color: #0B5DA4; text-decoration: none;
  font-size: 14px; font-weight: 600; border-bottom: 1px solid #E8EEF5;
}

.gnav-acc { border-bottom: 1px solid #E8EEF5; }
.gnav-acc-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; border-radius: 0; text-align: left; padding: 13px 20px;
  font-size: 14px; font-weight: 600; color: #0B5DA4; font-family: inherit; cursor: pointer;
}
.gnav-wrap .gnav-acc-toggle:hover,
.gnav-wrap .gnav-acc-toggle:focus { color: #0B5DA4; }
.gnav-arrow { transition: transform 0.25s ease; font-size: 12px; color: #0B5DA4; }
.gnav-acc.open .gnav-arrow { transform: rotate(180deg); color: #C81824; }
.gnav-acc-panel { display: none; padding: 8px 20px 14px 24px; background: #F4F8FB; }
.gnav-acc.open .gnav-acc-panel { display: block; }

.gnav-mgroup { margin-bottom: 14px; }
.gnav-mgroup-title {
  display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  color: #0B5DA4; text-decoration: none; margin-bottom: 6px;
}
.gnav-mgroup-links { display: flex; flex-direction: column; gap: 6px; padding-left: 4px; }
.gnav-mgroup-links a { font-size: 13px; color: #5A5270; text-decoration: none; }
.gnav-mgroup-links a:hover { color: #C81824; }

/* ---------- Mobile Breakpoint ---------- */
@media (max-width: 900px) {
  .gnav-toggle { display: flex; }
  .gnav-list { display: none; }
}
