/* Navbar styles */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  max-height: 70.58px;
  max-width: 70px;
}

/* Desktop menu styles */
.navbar-menu {
  display: flex;
  align-items: center;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.menu-link {
  color: #1e1e1e; 
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-link:hover {
  color: #007bff;
}

/* Submenu styles */
.submenu {
  padding: 1rem 2rem;
  padding-bottom: 3rem;
  position: absolute;
  top: 5.9rem;
  left: 50%;
  transform: translateX(-50%); 
  background-color: #363636;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 900px;
  display: none;
  z-index: 1000;
}

@media (max-width: 1024px) {
  .submenu {
    padding: 0.5rem 1rem;
    padding-bottom: 2rem;
    width: 700px;
  }

  .submenu img {
    width: 300px;
  }
}

.active {
  display: block;
}

.arrow {
  transform: rotate(0deg);
  fill: #1e1e1e;
  transition: transform 0.3s ease;
}

.menu-item:hover .arrow {
  fill: #007bff;
}

.blue {
  color: #007bff;
}

.arrow.rotate {
  transform: rotate(-180deg);
  fill: #007bff;
}

.submenu li {
  list-style: none;
}

.submenu li:first-child {
  color: #FFFFFFB5;
  opacity: 77%;
  padding: 10px;
  display: block;
  font-size: 0.9rem;
}

.submenu a {
  color: whitesmoke;
  text-decoration: none;
  padding: 0.75rem;
  width: 390px;
  display: block;
  font-size: 0.9rem;
}

.submenu a:hover {
  background-color: #f8f9fa;
  color: #007bff;
}

/* Contact button styles */
.contact-btn {
  border: 1.5px solid #1D4ED8;
  color: #1D4ED8;
  padding: 0.55rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.contact-btn:hover {
  background-color: #1D4ED8;
  color: white;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #000;
  transition: all 0.3s;
}

/* Sidebar styles */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: white;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1001;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  text-align: right;
}

.close-sidebar {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.sidebar-menu {
  list-style: none;
  padding: 1rem;
}

.sidebar-menu li {
  margin-bottom: 1rem;
}

.sidebar-link {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 0.5rem 0;
}

.sidebar-submenu {
  display: none;
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.sidebar-submenu.active {
  display: block;
}

.sidebar-submenu a {
  color: #000;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .navbar-menu,
  .contact-btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}