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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  padding-top: 70px; /* Added to account for the fixed header height */
}

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

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

ul {
  list-style: none;
}

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

.site-header .container {
  display: flex;
  /* Removed justify-content: space-between; to allow logo and nav to group */
  align-items: center;
  flex-wrap: wrap; /* Allows elements to wrap on smaller screens */
}

.site-header .header-top-row { /* New container for logo and hamburger */
  display: flex;
  align-items: center;
}

.site-header .logo {
  font-size: 2em;
  font-weight: bold;
  color: #FFD700; /* Accent color */
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0;
}

.site-header .main-nav {
  /* Removed flex-grow: 1; so nav only takes space for its content */
  text-align: center; /* Centers nav links on desktop */
  margin: 0 20px; /* Space between logo/buttons and nav on desktop */
}

.site-header .main-nav .nav-list {
  display: flex;
  justify-content: center; /* Centers nav items within main-nav */
}

.site-header .main-nav .nav-list li {
  margin-left: 25px;
}

.site-header .main-nav .nav-list a {
  color: #fff;
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.site-header .main-nav .nav-list a:hover,
.site-header .main-nav .nav-list a.active {
  color: #FFD700; /* Accent color */
}

/* Auth Buttons Styles */
.site-header .auth-buttons {
  margin-left: auto; /* Pushes buttons to the far right on desktop */
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.site-header .auth-buttons .btn-register {
  background-color: #FFD700;
  color: #0A2342;
}

.site-header .auth-buttons .btn-login {
  background-color: #0A2342;
  color: #FFD700;
  border: 1px solid #FFD700;
}

.site-header .auth-buttons .btn:hover {
  opacity: 0.8;
}

.site-header .hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  padding: 0;
}

.site-header .hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Footer Styles */
.site-footer {
  background-color: #0A2342; /* Primary color */
  color: #fff;
  padding: 40px 0;
  margin-top: 50px;
}

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

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

.site-footer p,
.site-footer a {
  color: #ccc;
  font-size: 0.9em;
}

.site-footer a:hover {
  color: #FFD700; /* Accent color */
}

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

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

.site-footer .copyright p {
  font-size: 0.8em;
  color: #aaa;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column; /* Stack header elements vertically */
    align-items: center; /* Center items in the column */
    padding: 10px 15px; /* Adjust padding for mobile header */
  }

  .site-header .header-top-row {
    width: 100%; /* Take full width */
    display: flex;
    justify-content: space-between; /* Logo centered, hamburger to the right */
    align-items: center;
    order: 1; /* Ensure it's the first row */
  }

  .site-header .logo {
    margin: 0 auto; /* Center the logo within its flex container (header-top-row) */
  }

  .site-header .hamburger-menu {
    display: flex; /* Show hamburger menu on mobile */
  }

  .site-header .main-nav {
    flex-grow: 0; /* Reset flex-grow from desktop */
    margin: 0; /* Reset desktop margin */
    text-align: left; /* Reset desktop text-align */
    width: 100%; /* Ensure nav takes full width */
    order: 3; /* Position main-nav after auth-buttons in the column layout */
  }

  .site-header .main-nav .nav-list {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: absolute; /* Make the menu overlay */
    top: 70px; /* Adjust based on header height */
    left: 0;
    width: 100%;
    background-color: #0A2342; /* Primary color */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 15px 0;
  }

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

  .site-header .main-nav .nav-list li {
    margin: 0;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header .main-nav .nav-list li:last-child {
    border-bottom: none;
  }

  .site-header .main-nav .nav-list a {
    display: block;
    padding: 10px 0;
  }

  .site-header .auth-buttons {
    width: 100%; /* Take full width */
    display: flex;
    justify-content: center; /* Center buttons */
    margin-top: 15px; /* Space below header-top-row */
    order: 2; /* Position buttons below header-top-row */
    margin-left: 0; /* Reset margin-left: auto for mobile */
  }

  .site-header .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .site-header .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .site-header .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

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

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

  .site-footer .footer-col:last-child {
    margin-bottom: 0;
  }

  .site-footer .footer-nav {
    padding: 0;
  }
}