/* Shared header layout */
body.paper-page {
  background-color: #eee7da;
  background-image: url("./assests/image/paper_texture.jpg");
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  height: 70px;
  padding: 5px 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  box-sizing: border-box;
}

.logo {
  display: flex;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  line-height: 1.5;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ff0000;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .navbar {
    height: auto;
    min-height: 70px;
  }

  .nav-container {
    position: relative;
    min-height: 60px;
    height: auto;
    padding: 5px 12px;
    gap: 4px 8px;
  }

  .logo {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    position: absolute;
    top: 5px;
    left: 12px;
  }

  .nav-menu {
    flex: 1 1 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 4px;
    padding-left: 54px;
  }

  .nav-menu a {
    padding: 6px 8px;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
  }

  .main-content {
    width: 100%;
    margin-top: 112px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

@media (max-width: 420px) {
  .nav-container {
    align-items: flex-start;
  }

  .nav-menu {
    padding-left: 54px;
  }

  .nav-menu a {
    padding: 5px 6px;
    font-size: 0.78rem;
  }
}
