﻿    /* ========== NAVBAR STYLING ========== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: top 0.4s ease;
}

.navbar.hidden {
  top: -100px;
}

.navbar-logo img {
  height: 56px;
  margin-left: 2em;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0 2em 0 0;
  padding: 0;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu a {
  position: relative;
  text-decoration: none;
  color: #004d40;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem;
  transition: color 0.3s ease;
}
.navbar-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #00796b;
  transition: width 0.4s ease;
}

.navbar-menu a:hover {
  color: #00796b;
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-menu .active > a {
  color: #00796b;
}

.navbar-menu .active > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #00796b;
  transition: width 0.4s ease;
}


.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 1rem;
  margin-right:2rem;
}

.navbar-toggle span {
  height: 3px;
  width: 28px;
  background: #004d40;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========== RESPONSIVE NAVBAR ========== */
@media (max-width: 768px) {
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .navbar-menu.open {
    max-height: 500px;
    padding: 0.5rem 0;
  }

  .navbar-menu li {
    width: 100%;
  }

  .navbar-menu a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f3f3;
  }

  .navbar-toggle {
    display: flex;
  }
}