/* =======================================================
  NAVBAR MODERN (Glass + Unified with Hero)
======================================================= */
:root {
  --bnn-green: #0A2E5C;
  --bnn-green-2: #0B4FA3;
  --bnn-gold: #1E88E5;

  --text: #0f172a;
  --muted: #64748b;

  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --stroke: rgba(15, 23, 42, .10);

  --shadow: 0 18px 50px rgba(10, 46, 92, .18);
  --shadow-soft: 0 10px 25px rgba(10, 46, 92, .14);

  --radius-xl: 20px;
  --radius-lg: 16px;
}

/* Make sure header overlay layers work */

body.landing-bg{
  margin:0;
  background:
    linear-gradient(180deg, #f5f7ff, #e9efff),
    url("../img/bg3.png") repeat;

  background-size:380px;
  overflow-x:hidden;
}
.bnn-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  padding: 10px 14px;
  margin: 0;
  background: transparent;
  overflow: visible;
}

/* background overlay to blend with hero */
.bnn-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(230, 240, 255, .55) 0%,
      rgba(230, 240, 255, .28) 60%,
      rgba(230, 240, 255, .00) 100%);
}

/* scrolled state (added via JS) */
.bnn-header.is-scrolled::before {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* NAVBAR CONTAINER */
.bnn-navbar {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--radius-xl);
  background: var(--glass);
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Slightly elevate when scrolled */
.bnn-header.is-scrolled .bnn-navbar {
  background: var(--glass-strong);
  box-shadow: 0 18px 50px rgba(10, 46, 92, .22);
  border-color: rgba(15, 23, 42, .10);
}

/* BRAND */
.bnn-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 230px;
}

.bnn-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 10px 20px rgba(10, 46, 92, .18);
}

.bnn-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.bnn-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.bnn-brand-small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
  color: rgba(10, 46, 92, .85);
}

.bnn-brand-big {
  font-size: 18px;
  font-weight: 950;
  color: var(--bnn-green);
}

/* DESKTOP LINKS */
.bnn-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;

  flex: 1;
  justify-content: center;
}

.bnn-nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 900;
  color: rgba(10, 46, 92, .92);
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: .18s ease;
  user-select: none;
}

/* subtle pill hover */
.bnn-nav-links a:hover {
  background: rgba(30, 136, 229, .08);
}

/* active style modern */
.bnn-nav-links a.active {
  background: rgba(30, 136, 229, .12);
  box-shadow: inset 0 0 0 1px rgba(30, 136, 229, .30);
}

/* underline accent */
.bnn-nav-links a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(30, 136, 229, .95), rgba(10, 46, 92, .85));
}

/* ACTIONS */
.bnn-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.bnn-btn {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: .18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid transparent;
}

.bnn-btn:focus-visible,
.bnn-nav-toggle:focus-visible {
  outline: 3px solid rgba(30, 136, 229, .25);
  outline-offset: 3px;
}

/* primary CTA */
.bnn-btn-primary {
  background: linear-gradient(135deg, #1E88E5 0%, #0B4FA3 100%);
  color: #ffffff !important;
  border: 1.5px solid rgba(11, 79, 163, .55);
}

.bnn-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(30, 136, 229, .40);
}

/* secondary (optional) */
.bnn-btn-ghost {
  background: rgba(255, 255, 255, .65);
  border-color: rgba(15, 23, 42, .10);
  color: rgba(10, 46, 92, .95);
}

.bnn-btn-ghost:hover {
  background: rgba(255, 255, 255, .82);
}

/* BURGER MENU */
.bnn-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255, 255, 255, .65);
  cursor: pointer;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  transition: .18s ease;
}

.bnn-nav-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .82);
}

.bnn-nav-toggle-line {
  width: 20px;
  height: 2px;
  background: var(--bnn-green);
  border-radius: 999px;
  transition: .20s ease;
}

.bnn-nav-toggle.open {
  background: rgba(30, 136, 229, .20);
}

.bnn-nav-toggle.open .bnn-nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.bnn-nav-toggle.open .bnn-nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.bnn-nav-toggle.open .bnn-nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* MOBILE MENU */
.bnn-nav-mobile {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 0 2px;
}

/* overlay */
.bnn-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 46, 92, .32);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1050;
}

/* mobile panel (dropdown) */
.bnn-nav-mobile-panel {
  display: none;
  flex-direction: column;
  gap: 6px;

  padding: 14px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);

  transform-origin: top;
  animation: navDrop .18s ease;
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bnn-nav-mobile-panel a {
  font-size: 15px;
  font-weight: 950;
  color: rgba(10, 46, 92, .95);
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  transition: .18s ease;
}

.bnn-nav-mobile-panel a:hover {
  background: rgba(30, 136, 229, .08);
}

/* mobile CTA */
.bnn-nav-mobile-cta {
  background: linear-gradient(135deg, var(--bnn-gold) 0%, #64B5F6 100%);
  color: #ffffff !important;
  text-align: center;
  margin-top: 4px;
  border-radius: 14px;
  padding: 12px 12px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(30, 136, 229, .30);
}

/* OPEN states */
.bnn-nav-overlay.open {
  display: block;
}

.bnn-nav-mobile-panel.open {
  display: flex;
}

/* Responsive */
@media (max-width: 992px) {
  .bnn-navbar {
    padding: 12px 12px;
  }

  .bnn-nav-links {
    display: none;
  }

  .bnn-nav-toggle {
    display: inline-flex;
  }

  .bnn-brand {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .bnn-brand-big {
    font-size: 16px;
  }

  .bnn-brand-small {
    font-size: 9px;
  }

  .bnn-btn-primary span {
    display: none;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .bnn-nav-mobile-panel {
    animation: none !important;
  }
}