/* ── MiRAjO Site Nav — shared across all public pages ── */

/* Reset any old site-nav styles that may linger in page <style> blocks */
.site-nav { display: none !important; }

/* ── HEADER BAR ── */
.mj-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid rgba(30,42,58,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}
.mj-header-logo img { height: 30px; display: block; }
.mj-header-login {
  font-size: 13px;
  font-weight: 600;
  color: #256B42;
  background: #fff;
  border: 1.5px solid #256B42;
  border-radius: 6px;
  padding: 7px 18px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.mj-header-login:hover { background: #256B42; color: #fff; }

/* ── HAMBURGER BUTTON ── */
.mj-nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 6px;
  transition: background 0.15s;
}
.mj-nav-toggle:hover { background: rgba(30,42,58,0.06); }
.mj-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1E2A3A;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.mj-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mj-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mj-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── OVERLAY ── */
.mj-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1001;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s;
}
.mj-nav-overlay.show {
  display: block;
  opacity: 1;
}

/* ── SIDE PANEL ── */
.mj-nav-panel {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  height: 100dvh;
  background: #1E2A3A;
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mj-nav-panel.open { transform: translateX(0); }

.mj-nav-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 0 32px;
}

/* Panel top: logo + close */
.mj-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.mj-panel-logo img { height: 28px; display: block; filter: brightness(0) invert(1); }
.mj-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.mj-nav-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Nav content */
.mj-nav-content {
  flex: 1;
  padding: 24px 0 0;
  overflow-y: auto;
}

/* Section block */
.mj-nav-section { padding: 0 24px 20px; }
.mj-nav-section + .mj-nav-section {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

/* Section label (THE HUB, ABOUT) */
.mj-nav-section-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C4A245;
  margin-bottom: 12px;
}

/* Sub-label (Assessments) */
.mj-nav-sub-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 14px 0 8px 0;
}

/* Nav links */
.mj-nav-link {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  padding: 8px 0;
  border-radius: 6px;
  transition: color 0.15s;
  line-height: 1.3;
}
.mj-nav-link:hover { color: #fff; }
.mj-nav-link.active { color: #fff; font-weight: 600; }
.mj-nav-link.active::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: #256B42;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Indented assessment links */
.mj-nav-link.indent {
  padding-left: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  border-left: 1px solid rgba(255,255,255,0.12);
  margin-left: 4px;
}
.mj-nav-link.indent:hover { color: rgba(255,255,255,0.9); }

/* Standalone section (no label) */
.mj-nav-standalone {
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Footer */
.mj-nav-footer {
  padding: 24px 24px 0;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.mj-nav-login-cta {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: #256B42;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.mj-nav-login-cta:hover { background: #1d5435; }

/* ── BODY OFFSET ── */
body { padding-top: 64px !important; }

/* Override for pages that set their own body padding */
.hero, section:first-of-type { }

@media (max-width: 480px) {
  .mj-nav-panel { width: 280px; }
  .mj-header { padding: 0 16px; }
}
