/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.logo-img {
  width: 10rem;
  height: 3rem;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  cursor: pointer;
  position: relative;
  font-weight: 500;
  color: #000;
  text-decoration: none;
}

.nav-link.active {
  color: #dc2626;
}

.nav-link:hover {
  color: #dc2626;
}

.nav-underline {
  position: absolute;
  left: 0;
  bottom: -0.125rem;
  height: 0.125rem;
  background-color: #dc2626;
  transition: all 0.3s;
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
}

.nav-link:hover .nav-underline,
.nav-link.active .nav-underline {
  transform: scaleX(1);
}

/* More Dropdown */
.more-container {
  position: relative;
}

.more-trigger {
  cursor: pointer;
  position: relative;
  font-weight: 500;
  color: #000;
}

.more-trigger:hover {
  color: #dc2626;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0.375rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  width: 13rem;
  z-index: 10;
  display: none;
}

.dropdown-link {
  display: block;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  color: #000;
  text-decoration: none;
}

.dropdown-link:hover {
  color: #dc2626;
}

.dropdown-link.active {
  color: #dc2626;
}

.dropdown-underline {
  position: absolute;
  left: 1rem;
  bottom: 0.25rem;
  height: 0.125rem;
  background-color: #dc2626;
  transition: all 0.3s;
  transform-origin: left;
  transform: scaleX(0);
  width: calc(100% - 2rem);
}

.dropdown-link:hover .dropdown-underline,
.dropdown-link.active .dropdown-underline {
  transform: scaleX(1);
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: block;
  color: #000;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

.mobile-menu-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background-color: white;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  gap: 0.5rem;
  flex-direction: column;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-link {
  display: block;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  color: #000;
  text-decoration: none;
}

.mobile-link:hover {
  color: #dc2626;
}

.mobile-link.active {
  color: #dc2626;
}

.mobile-underline {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0.125rem;
  background-color: #dc2626;
  transition: all 0.3s;
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
}

.mobile-link:hover .mobile-underline,
.mobile-link.active .mobile-underline {
  transform: scaleX(1);
}