/* ---------------- Navbar Wrapper ---------------- */
nav {
  width: 100%;
}

/* Fixed navbar container */
#navbar {
  position: fixed;
  top: 0;
  left: 50%;                      /* center the navbar */
  transform: translateX(-50%);    /* fix horizontal shift */
  width: calc(100% - 20px);       /* small margin for shadow/rounding */
  z-index: 1020;
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  box-shadow: 2px 2px 6px rgb(0, 0, 0);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-sizing: border-box;          /* include padding in width */
}

/* Brand / logo */
.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: #000;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  margin-right: 8px;
}

/* Default nav images */
.nav-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
   border-radius: 6px; /* optional, softens corners */
}

/* Hover effects */
.nav-img:hover {
  transform: scale(1.1);   /* subtle zoom */
  opacity: 0.8;            /* slight fade */
  box-shadow: 2px 2px 4px rgb(0, 0, 0);
  cursor: pointer;
}


.navbar-nav .nav-link {
  padding: 0 10px;    /* spacing between nav items */
}


/* Links container */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(0, 0, 0);
  border-radius: 10px;
}

/* Links */
/* .navbar-nav .nav-link {
  font-size: 16px;
  color: rgb(57, 64, 132) !important;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease, text-decoration 0.2s ease;
} */

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: rgb(165, 170, 181) !important;
  text-decoration: underline;
}

/* Hamburger button (hidden desktop) */
.navbar-toggler {
  display: none;
  font-size: 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgb(0, 0, 0);
}

/* Padding for body so navbar doesn’t overlap */
body.page-layout {
  padding-top: 60px; /* matches navbar height */
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgb(255, 255, 255);
    position: absolute;
    top: 60px;
    left: 0;
    padding: 1rem 0;
    box-shadow: 0 2px 6px rgb(0, 0, 0);
  }

  .navbar-nav.show {
    display: flex;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 32px;
  }

  .navbar-brand {
    font-size: 1rem;
  }
}
