/* General Body Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 65px; /* Compensate for fixed header height */
}

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

/* Header Styles */
.site-header {
  background-color: #003366; /* Primary Color */
  color: #fff;
  /* padding: 15px 0; */ /* Padding moved to .container for better control with fixed position */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed; /* Make header sticky */
  top: 0;
  width: 100%;
  z-index: 1000; /* Ensure header stays on top */
}

.site-header .container {
  display: flex;
  /* justify-content: space-between; */ /* Removed to allow custom spacing with margins */
  align-items: center;
  padding: 15px 15px; /* Apply padding here for desktop */
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: #FFCC00; /* Secondary Color */
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #fff;
}

.main-nav {
  margin-left: auto; /* Push navigation to the right, next to logo */
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05em;
  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: #FFCC00; /* Secondary Color */
  transition: width 0.3s ease;
}

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

.main-nav a:hover,
.main-nav a.active {
  color: #FFCC00; /* Secondary Color */
}

.header-actions {
  display: flex;
  gap: 10px; /* Space between buttons */
  margin-left: 25px; /* Space between main-nav and buttons */
}

.btn {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

.btn-register:hover {
  background-color: #e6b800; /* Slightly darker yellow */
  border-color: #e6b800;
  color: #001a33;
}

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

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

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1000;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  margin-bottom: 6px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

.site-footer a {
  color: #FFCC00; /* Secondary Color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
  flex: 1; /* Distribute space equally */
  min-width: 250px; /* Minimum width for columns */
}

.footer-col h3 {
  color: #FFCC00; /* Secondary Color */
  font-size: 1.3em;
  margin-bottom: 15px;
}

.footer-col p {
  margin-bottom: 10px;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.85em;
  color: #ccc;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .main-nav ul {
    gap: 15px;
  }
  .header-actions {
    margin-left: 15px; /* Adjust gap for smaller screens */
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
    justify-content: flex-start; /* Align items to the start for mobile */
    position: relative;
    padding: 15px 15px; /* Keep consistent padding */
  }

  .logo {
    width: calc(100% - 60px); /* Adjust width to make space for hamburger on left */
    text-align: center;
    margin-bottom: 0; /* Remove margin-bottom from logo on mobile */
    order: 2; /* Position logo after hamburger */
  }

  .hamburger-menu {
    display: block;
    position: absolute;
    left: 15px; /* Move to far left */
    right: auto; /* Reset right property */
    top: 25px;
    order: 1; /* Ensure hamburger is the first item in flex order */
  }

  .main-nav {
    flex-basis: 100%; /* Take full width */
    order: 4; /* Push nav below logo and buttons */
    display: none; /* Hidden by default */
    background-color: #003366; /* Match header background */
    padding: 15px 0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 0; /* Reset desktop margin */
  }

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

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }

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

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

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

  .main-nav a::after {
    display: none; /* Hide underline on mobile for cleaner look */
  }

  .header-actions {
    flex-basis: 100%; /* Take full width */
    order: 3; /* Position buttons below logo */
    display: flex; /* Ensure buttons are visible */
    justify-content: center; /* Center the buttons */
    margin-top: 15px; /* Space above buttons from logo */
    margin-left: 0; /* Reset desktop margin */
    gap: 15px; /* Space between buttons */
  }

  /* Hamburger menu animation */
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

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

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

  .footer-columns {
    flex-direction: column;
    text-align: center;
  }

  .footer-col {
    min-width: unset;
    width: 100%;
  }

  .footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-nav li {
    margin-bottom: 0;
  }

  .footer-nav a {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    padding: 10px 15px;
  }
  .logo {
    font-size: 1.8em;
    width: calc(100% - 60px); /* Adjust for smaller screens */
  }
  .hamburger-menu {
    top: 18px;
  }
  .site-footer {
    padding: 30px 0 15px;
  }
  .footer-col h3 {
    font-size: 1.2em;
  }
  .footer-columns {
    gap: 20px;
  }
  .header-actions {
    margin-top: 10px; /* Adjust margin for smaller screens */
  }
}