.navbar {
  width: 100%;
  background-color: #ff2b5c;
  color: white;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden; /* prevents absolute logo overflow */
}

/* Top section: logo + title + toggle */
.navbar-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 90px; /* ensures navbar has height to fit logo */
}

/* Logo */
.navbar-logo {
  position: absolute;
  left: 1rem;
  height: clamp(70px, 9vw, 100px); /* scales smoothly between mobile & desktop */
  width: auto;
  object-fit: contain;
}

/* Title */
.navbar-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  line-height: 1.2;
}

/* Hamburger toggle */
.navbar-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  display: none;
}

/* Links */
.navbar-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.7rem 0;
  margin: 0;
}

.navbar-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.navbar-links li a:hover {
  color: #ffcc00;
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
  .navbar-top {
    flex-direction: column;
    align-items: center;
    min-height: auto;
  }

  .navbar-logo {
    position: static;
    height: 80px;
    margin-bottom: 0.5rem;
  }

  .navbar-title {
    font-size: 1.6rem;
  }

  .navbar-toggle {
    display: block;
    margin-top: 0.4rem;
  }

  .navbar-links {
    flex-direction: column;
    gap: 1rem;
    display: none;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    background-color: #ff2b5c;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .navbar-links.show {
    display: flex;
  }

  .navbar-links li a {
    font-size: 1.2rem;
  }
}
