/* ===========================
   NAVBAR BASE STYLING
   =========================== */
nav.navbar {
  background-color: rgb(0, 0, 0);
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Keep brand and toggler on one line */
.navbar .container-fluid {
  display: flex;
  flex-wrap: nowrap; /* prevent brand + toggler from breaking lines */
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

#navbar,
.navbar {
  z-index: 1020;
  position: fixed;
  top: 0;
  width: 100%;
}

/* ===========================
   BRAND
   =========================== */
.navbar-brand {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* prevent text from wrapping under logo */
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: rgb(246, 243, 235);
  max-width: calc(100% - 60px); /* leaves room for toggler */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* keep on one line */
}

/* Logo */
.logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ===========================
   NAV LINKS
   =========================== */
.navbar-nav .nav-link {
  font-size: 16px;
  color: rgb(246, 243, 235) !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: #f6f3eb;
  text-decoration: underline;
}

/* ===========================
   TOGGLER
   =========================== */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
  margin-left: auto;
  flex-shrink: 0;
  z-index: 2;
}

/* ===========================
   RESPONSIVE TWEAKS
   =========================== */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1rem;
    max-width: calc(100% - 55px);
  }
  .logo-img {
    height: 34px;
    margin-right: 6px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 0.95rem;
    max-width: calc(100% - 55px);
  }
  .logo-img {
    height: 30px;
    margin-right: 5px;
  }
}
