﻿/* Navbar container */
.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center the entire navbar content */
  justify-content: center;
  /* Align both menus vertically */
  padding: 1rem 2rem;
  width: 100%;
  /* Full width for the navbar */
  background-color: #f8f9fa;
  /* Light background */
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for depth */
  z-index: 10;
  /* Ensure it stays above other elements */
  position: relative;
}

/* Top and bottom menu rows (display together in the middle) */
.navbar-row-top,
.navbar-row-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  /* Allow wrapping if necessary */
  width: 100%;
  margin: 0;
  /* Remove margins between rows */
}

/* Add spacing between the two rows */
.navbar-row-top {
  margin-bottom: 10px;
  /* Space between the top and bottom rows */
}

/* Links */
.navbar-nav .nav-item .nav-link {
  margin-right: 15px;
  font-size: 16px;
  /* Consistent font size for readability */
  color: #333;
  /* Default link color */
  text-decoration: none;
  /* Remove underline */
  transition: color 0.3s ease, font-weight 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover {
  color: #000000;
  /* Highlighted black color on hover */
  font-weight: bold;
  transform: scale(1.1);
  /* Slight zoom effect */
}

.navbar-nav .nav-item .nav-link.active {
  color: #000000;
  /* Active state color */
  font-weight: bold;
  border-bottom: 2px solid #000000;
  /* Indicator for active link */
}

/* Ensure buttons in the navbar are styled consistently */
.navbar .btn {
  font-size: 14px;
  padding: 0.5rem 1rem;
  border-radius: 0.3rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .btn:hover {
  background-color: #000000;
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .navbar-row-top,
  .navbar-row-bottom {
    flex-direction: column;
    /* Stack menus vertically */
    align-items: center;
    /* Center items in each row */
  }

  .navbar-nav .nav-item .nav-link {
    margin-right: 10px;
    font-size: 14px;
    /* Adjust font size for smaller screens */
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0.5rem 1rem;
    /* Reduce padding on very small screens */
  }

  .navbar-nav .nav-item .nav-link {
    font-size: 12px;
    /* Smaller font for better fitting */
    margin-right: 5px;
  }

  .navbar-row-top,
  .navbar-row-bottom {
    margin-bottom: 5px;
    /* Reduce spacing between rows */
  }
}