/* ---- Top Navigation ---- */
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

.topnav {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ff8c00;
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.topnav-brand:hover {
  color: #ffb347;
}

.topnav-brand-icon {
  font-size: 1.5rem;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav-links > a,
.topnav-dropdown-btn {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topnav-links > a:hover,
.topnav-dropdown-btn:hover {
  background: rgba(255,140,0,0.15);
  color: #ff8c00;
}

/* Dropdown */
.topnav-dropdown {
  position: relative;
}

.topnav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 6px;
  background: #1e2640;
  /*background: transparent; */
  min-width: 200px;
  z-index: 200;
}

.topnav-dropdown-content::before {
  content: '';
  display: block;
  background: #1e2640;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  overflow: hidden;
}

.topnav-dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
  background: #1e2640;
}

.topnav-dropdown-content a:first-child {
  border-radius: 10px 10px 0 0;
}

.topnav-dropdown-content a:last-child {
  border-radius: 0 0 10px 10px;
}

.topnav-dropdown:hover .topnav-dropdown-content {
  display: block;
}

.topnav-dropdown-content a:hover {
  background: rgba(255,140,0,0.12);
  color: #ff8c00;
}

/* Hamburger toggle (mobile) */
.topnav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.topnav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.topnav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.topnav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 700px) {
  .topnav-toggle {
    display: flex;
  }

  .topnav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #1a1a2e;
    flex-direction: column;
    padding: 12px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }

  .topnav-links.open {
    display: flex;
  }

  .topnav-links > a,
  .topnav-dropdown-btn {
    padding: 12px 24px;
    border-radius: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .topnav-dropdown-content {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: #151b30;
  }

  .topnav-dropdown:hover .topnav-dropdown-content,
  .topnav-dropdown-content {
    display: block;
  }
}
