header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #1a1f36;
  color: #f0f0f0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 35px;
  width: auto;
}

.navbar ul li {
  margin: 0 10px;
}

.navbar>.menu {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.menu>li>a {
  color: #fff;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 5px;
}

.menu>li>a:hover {
  background-color: #555;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  min-width: 180px;
  list-style: none;
  z-index: 1000;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu li a {
  color: #333;
  padding: 8px 12px;
  display: block;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-menu li a:hover {
  background-color: #f5f7fa;
}

@media (hover: hover) and (pointer: fine) {

  .dropdown:hover>.dropdown-menu,
  .dropdown-menu:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  text-align: center;
  padding: 10px;
  background-color: #1a1f36;
  color: #f0f0f0;
  width: 100%;
}

footer a {
  color: #f0f0f0;
  text-decoration: underline;
}

footer a:hover {
  color: #ccc;
}

footer p {
  font-size: 0.75em;
  margin: 4px 0;
  line-height: 1.4;
  color: #ddd;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin-bottom: 10px;
}

footer ul li {
  margin: 0;
}

footer ul li a {
  color: #fff;
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  color: #fff;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #333;
  color: #fff;
  padding-top: 60px;
  transition: left 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
}

.sidebar ul {
  list-style: none;
}

.sidebar li a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
}

.sidebar li a:hover {
  background-color: #555;
}

.sidebar.show {
  left: 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1500;
}

.overlay.show {
  display: block;
}

.submenu {
  display: none;
  padding-left: 10px;
}

.has-submenu>a::after {
  content: "▼";
  float: right;
}

.has-submenu.active>.submenu {
  display: block;
}
header,
footer {
  width: 100%;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  footer ul {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 10px 20px;
  }
}

@media (max-width: 480px) {
  footer ul {
    display: block;
    text-align: center;
  }

  footer ul li {
    margin: 5px 0;
  }
}