/* Navigation Styles */
nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav li {
  margin: 0 15px;
}

nav li:last-child {
  margin-right: 0;
}

nav a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: bold;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--color-primary-hover);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s;
}

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

/* CTA Button in navigation */
.cta-button {
  margin-left: 20px;
}

.cta-button .button {
  padding: 8px 12px;
  font-size: 0.85em;
}

/* Override the nav a:hover color for the CTA button */
nav a.button:hover {
  color: white !important;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav ul {
    flex-direction: column;
    width: 100%;
    margin-bottom: 30px;
  }
  
  nav li {
    margin: 10px 0;
  }
  
  .cta-button {
    margin-left: 0;
    width: 90%;
    display: block;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
  }
}
