:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-light: #f0f0f0;
  --text-dark: #333;
  --bg-light: #ffffff;
  --bg-dark: #1a1a1a;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 70px 0 0; /* Adjusted padding-top for fixed header */
  box-sizing: border-box;
  color: var(--text-dark);
}

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

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

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

.site-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: fixed; /* Make header sticky */
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #fff;
}

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

.main-nav a {
  color: var(--text-light);
  font-size: 1.05em;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

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

.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary-color);
}

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

.auth-buttons {
  display: flex;
  gap: 10px;
  margin-left: 20px; /* Add some space from navigation */
}

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

.auth-buttons .btn-register {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 1px solid var(--secondary-color);
}

.auth-buttons .btn-register:hover {
  background-color: #fff;
  color: var(--primary-color);
  border-color: #fff;
}

.auth-buttons .btn-login {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

.auth-buttons .btn-login:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  border-color: var(--text-light);
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.hamburger-menu .bar:last-child {
  margin-bottom: 0;
}

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

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

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

.site-footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 40px 0 20px;
  font-size: 0.95em;
  line-height: 1.6;
}

.site-footer a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--secondary-color);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3 {
  color: var(--secondary-color);
  font-size: 1.3em;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
}

#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
  font-size: 24px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.3s;
  line-height: 50px;
  text-align: center;
}

#backToTopBtn:hover {
  background-color: #ffd200;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
    justify-content: space-between; /* Keeps hamburger left, logo centers in remaining space */
    padding-top: 10px; /* Adjust padding for mobile header */
    padding-bottom: 10px; /* Adjust padding for mobile header */
  }

  .logo {
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center; /* Center the logo text within its flex space */
    order: 0; /* Ensure it's after hamburger */
    margin-left: 0; /* Reset any desktop specific margins */
    margin-right: 0; /* Reset any desktop specific margins */
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary-color);
    position: absolute;
    top: 130px; /* Adjusted top position to account for logo + buttons */
    left: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding-bottom: 10px;
    order: 2; /* Place after logo and buttons */
  }

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

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .main-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .main-nav a {
    display: block;
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .main-nav a::after {
    display: none;
  }

  .auth-buttons {
    flex-basis: 100%; /* Force buttons to a new line */
    order: 1; /* Place after logo */
    justify-content: center; /* Center the buttons within their div */
    margin-top: 15px; /* Space from logo */
    margin-left: 0; /* Reset margin for mobile */
  }

  .hamburger-menu {
    display: block;
    order: -1; /* Place it first on the line */
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .footer-col h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
  }
  .footer-col ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }
  .footer-col ul li {
    margin-bottom: 0;
  }
}