/* General Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 60px; /* Added padding to body to account for fixed header */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header Styles */
.site-header {
  background-color: #003366; /* Primary color */
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: fixed; /* Make header sticky */
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000; /* Ensure header stays on top */
}

.site-header .container {
  display: flex;
  justify-content: space-between; /* Distribute items */
  align-items: center;
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: #FFD700; /* Secondary color */
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo:hover {
  color: #fff;
}

.main-nav {
  flex-grow: 1; /* Allow nav to take available space */
  display: flex; /* Make main-nav a flex container for its children */
  justify-content: center; /* Center nav-list within main-nav's space */
  align-items: center;
}

.main-nav .nav-list {
  display: flex;
  gap: 25px;
}

.main-nav .nav-list a {
  color: #fff;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav .nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #FFD700; /* Secondary color */
  transition: width 0.3s ease;
}

.main-nav .nav-list a:hover {
  color: #FFD700; /* Secondary color */
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after {
  width: 100%;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #fff;
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Auth Buttons Styles */
.auth-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0; /* Prevent buttons from shrinking */
}

.auth-buttons .btn {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9em;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent buttons from wrapping */
}

.btn-register {
  background-color: #FFD700; /* Secondary color */
  color: #003366; /* Primary color */
  border: 1px solid #FFD700;
}

.btn-register:hover {
  background-color: #e6c200; /* Slightly darker yellow */
  color: #003366;
}

.btn-login {
  background-color: transparent;
  color: #FFD700; /* Secondary color */
  border: 1px solid #FFD700;
}

.btn-login:hover {
  background-color: #FFD700;
  color: #003366;
}

/* Footer Styles */
.site-footer {
  background-color: #003366; /* Primary color */
  color: #fff;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.site-footer .footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.site-footer .footer-col h3 {
  color: #FFD700; /* Secondary color */
  margin-bottom: 15px;
  font-size: 1.2em;
}

.site-footer .footer-nav li {
  margin-bottom: 8px;
}

.site-footer .footer-nav a,
.site-footer p a {
  color: #ccc;
  transition: color 0.3s ease;
}

.site-footer .footer-nav a:hover,
.site-footer p a:hover {
  color: #FFD700; /* Secondary color */
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.site-footer .copyright {
  color: #aaa;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: row; /* Keep items in a row initially */
    flex-wrap: wrap; /* Allow items to wrap to next line */
    justify-content: space-between; /* Space out hamburger and logo */
    align-items: center;
    padding: 10px 20px; /* Adjust padding for mobile */
  }

  .logo {
    order: 2; /* Logo is the second item in the flex order */
    flex-grow: 1; /* Allow logo to take available space to center itself */
    text-align: center; /* Center the logo text within its flex item */
    margin-bottom: 0; /* Override previous mobile rule */
  }

  .main-nav {
    order: 1; /* Main nav (containing hamburger) comes first */
    width: auto; /* Don't take full width */
    flex-grow: 0;
    display: flex; /* Ensure main-nav is a flex container to align hamburger */
    justify-content: flex-start; /* Hamburger to the left */
    align-items: center;
  }

  .hamburger-menu {
    display: block; /* Show hamburger */
    margin-right: 0; /* Remove any default margin that might push it */
    position: relative;
    z-index: 1001;
  }

  .main-nav .nav-list {
    display: none; /* Hidden by default for mobile */
    flex-direction: column;
    position: absolute;
    top: calc(100% + 15px); /* Position below header */
    left: 0;
    background-color: #003366;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    z-index: 999; /* Below hamburger, above content */
    padding: 20px;
    border-radius: 0 0 5px 5px;
    text-align: center;
  }

  .main-nav .nav-list.active {
    display: flex;
  }

  .main-nav .nav-list li {
    margin: 10px 0;
  }

  .main-nav .nav-list a {
    font-size: 1.1em;
    padding: 10px 0;
    display: block;
  }

  .auth-buttons {
    order: 3; /* Buttons below logo/hamburger row */
    width: 100%; /* Take full width */
    justify-content: center; /* Center buttons horizontally */
    margin-top: 15px; /* Space from the row above */
    padding-top: 15px; /* Add some padding for visual separation */
    border-top: 1px solid rgba(255,255,255,0.2); /* Visual separator */
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

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

  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .site-footer .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer .footer-col {
    margin-bottom: 20px;
  }
}