/* =========================================================
   HEADER / NAVIGATION
   Nav bar, logo, dropdown menu, hamburger, mobile nav.
   Shared across every page.
========================================================= */

header {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
      width: 100%;
      margin: 0 auto;
      padding: 15px 40px;
      position: sticky;
      top: 0;
      z-index: 1000;
      background: transparent;
    }

.nav-box {
      background: #fff1d8cc;
      border: 1px solid rgba(52, 73, 94, 0.3);
      backdrop-filter: blur(10px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
      border-radius: 12px;
      padding: 10px 25px;
      display: flex;
      align-items: center;
      gap: 20px;
      width: fit-content;
    }

.logo {
      font-size: 26px;
      font-weight: bold;
      color: #34495e;
      display: flex;
      align-items: center;
    }

.logo img {
      height: 30px;
      width: auto;
    }

nav {
      display: flex;
      gap: 20px;
      align-items: center;
    }

nav a {
      text-decoration: none;
      color: #34495e;
      font-size: 14px;
      padding: 5px 12px;
      border-radius: 8px;
      transition: 0.3s;
      font-weight: 600;
      position: relative;
    }

nav a::after {
      content: "";
      position: absolute;
      bottom: -3px;
      left: 0;
      width: 0%;
      height: 1px;
      background: #34495e;
      transition: 0.3s;
    }

nav a:hover::after {
      width: 100%;
    }

nav a.active {
      border: 1px solid #34495e;
      background: rgba(255, 165, 0, 0.1);
    }

.dropdown-wrapper {
      position: relative;
    }

.dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: #fff1d8cc;
      border: 1px solid #34495e;
      border-radius: 8px;
      min-width: 200px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      z-index: 10;
      backdrop-filter: blur(10px);
      margin-top: 5px;
    }

.dropdown-wrapper:hover .dropdown-menu {
      display: block;
    }

.dropdown-menu a {
      display: block;
      padding: 10px 15px;
      color: #34495e;
      text-decoration: none;
      font-size: 14px;
    }

.dropdown-menu a:hover {
      background: rgba(255, 165, 0, 0.2);
    }

.hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
      gap: 6px;
    }

.hamburger span {
      width: 25px;
      height: 3px;
      background-color: #34495e;
      border-radius: 2px;
      transition: all 0.3s ease;
    }

.hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(10px, 10px);
    }

.hamburger.active span:nth-child(2) {
      opacity: 0;
    }

.hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -7px);
    }

.mobile-nav {
      display: none;
      position: absolute;
      top: 90px;
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
      max-width: 400px;
      backdrop-filter: blur(10px);
      border: 1px solid #34495e;
      flex-direction: column;
      gap: 15px;
      padding: 20px;
      border-radius: 12px;
      z-index: 999;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
      transition: opacity 0.3s ease, transform 0.3s ease;
      opacity: 0;
      pointer-events: none;
    }

.mobile-nav.active {
      display: flex;
      opacity: 1;
      pointer-events: auto;
    }

.mobile-nav a {
      text-decoration: none;
      color: #34495e;
      font-size: 15px;
      font-weight: 500;
      padding: 15px 20px;
      border-bottom: 1px solid rgba(52, 73, 94, 0.15);
      transition: color 0.3s, background 0.3s;
      display: block;
    }

.mobile-nav>a:last-of-type {
      border-bottom: none;
    }

.mobile-nav a:hover {
      color: #ffa600;
    }

.mobile-nav a.active {
      color: #ffa600;
      background: rgba(255, 165, 0, 0.08);
      border-left: 3px solid #ffa600;
      padding-left: 17px;
    }

.mobile-dropdown {
      display: flex;
      flex-direction: column;
    }

.mobile-dropdown .submenu {
      display: none;
      flex-direction: column;
      padding-left: 15px;
      margin-top: 10px;
      background: transparent;
    }

.mobile-dropdown.active .submenu {
      display: flex;
    }

.mobile-dropdown .submenu a {
      font-size: 14px;
      border-bottom: none;
      padding: 8px 0 8px 10px;
      color: #34495e;
    }

.mobile-nav .profile-mobile-btn {
      background: transparent;
      color: #34495e;
      border: 2px solid #d4a574;
      padding: 12px 20px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      margin: 12px 15px 15px 15px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 14px;
      box-shadow: none;
      width: calc(100% - 30px);
      font-family: "Poppins", Tahoma, Geneva, Verdana, sans-serif;
    }

.mobile-nav .profile-mobile-btn:hover {
      background: rgba(212, 165, 116, 0.1);
      border-color: #c9985f;
    }