/* css/navbar.css */

.navbar {
  position: relative; /* Ensures it stays in the document flow */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
  border-bottom: 1px solid #ddd;
}

/* Left Section (Logo + Brand Info) */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 1rem; /* Spacing between logo and brand info */
}

.navbar-logo img {
  height: 40px; /* Adjust as needed */
}

.brand-info h1 {
  margin: 0;
  font-size: 1.25rem;
  color: #000;
}

.brand-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
}

/* Center Navigation */
.navbar-center {
  list-style: none;
  display: flex;
  gap: 2rem; /* Spacing between nav links */
  margin: 0;
  padding: 0;
}

.navbar-center li a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-center li a:hover {
  color: #0d47a1; /* Hover color */
}

/* Right Section (Buttons) */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Unified Button Styles for both links and buttons */
.navbar-right a.button,
.navbar-right button.button {
  display: inline-block;
  padding: 0.5rem 1rem; /* Same padding for both */
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
  border: 2px solid #000; /* Outline style */
  color: #000;
  background-color: #fff;
  cursor: pointer;
}

/* Hover effect for both buttons */
.navbar-right a.button:hover,
.navbar-right button.button:hover {
  background-color: #000;
  color: #fff;
}

/* ===============================
   Mobile Styles with Hamburger Menu
   =============================== */

/* Hamburger icon: hidden by default on desktop */
.navbar-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* Mobile media query */
@media (max-width: 768px) {
  /* Show the hamburger icon */
  .navbar-toggle {
    display: block;
  }
  
  /* Hide the center nav links by default on mobile */
  .navbar-center {
    display: none;
    position: absolute;
    top: 60px; /* Adjust based on navbar height */
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
    z-index: 1000;
  }
  
  /* When active, show the nav links */
  .navbar-center.active {
    display: flex;
  }
  
  /* Optionally, adjust font sizes for mobile */
  .brand-info h1 {
    font-size: 1rem;
  }
  .brand-info p {
    font-size: 0.75rem;
  }
  
  /* Optionally, you can move or hide navbar-right items on mobile */
  .navbar-right {
    display: none;
  }
}
