body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

header {
  background: #222;
  color: white;
  padding: 20px;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Logo Styles */
.logo-link {
  display: inline-block;
  margin-bottom: 10px;
}

.logo-container {
  text-align: center;
  margin-top: 10px;
}

img {
  display: block;
  margin: 0 auto 15px auto;
  max-width: 120px;
  height: auto;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

nav {
  width: 100%;
  background: #333;
  color: #fff;
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-y: auto;
  max-height: 200px; /* Limit height on mobile */
}

nav a {
  display: block;
  color: #ccc;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

nav a:hover {
  color: #fff;
}

nav .submenu {
  padding-left: 15px;
  font-size: 0.9em;
  display: none; /* Hide submenus by default on mobile */
}

/* Show submenus when parent is active */
nav .active + .submenu {
  display: block;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: #444;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

main#content {
  flex: 1;
  padding: 20px;
  background: white;
  max-width: 100%;
  margin: 0 auto;
}

footer {
  text-align: center;
  padding: 15px;
  background: #222;
  color: white;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Desktop styles */
@media (min-width: 768px) {
  .wrapper {
    flex-direction: row;
  }
  
  nav {
    width: 220px;
    height: 100vh;
    max-height: none;
    padding: 20px;
  }
  
  nav .submenu {
    display: block; /* Always show submenus on desktop */
  }
  
  .menu-toggle {
    display: none; /* Hide toggle on desktop */
  }
  
  main#content {
    padding: 30px;
    max-width: 800px;
  }
}