/* General Body Styles (for context, though only header/footer specific styles are requested) */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* Add no-scroll for mobile menu */
body.no-scroll {
  overflow: hidden;
}

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

/* Site Header */
.site-header {
  background-color: #007bff; /* Primary color */
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky; /* Make header sticky */
  top: 0;
  z-index: 1000; /* Ensure it stays on top */
}

.site-header .container {
  display: flex;
  justify-content: space-between; /* Space between logo and other elements */
  align-items: center;
}

.site-header .logo {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Desktop: header-nav-wrapper and header-actions will be flex items next to each other */
.site-header .header-nav-wrapper { /* Now only contains main-nav */
  /* No specific flex properties here, main-nav ul handles its own flex */
}

.site-header .main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

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

.site-header .main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active {
  color: #f0f0f0; /* Lighter white on hover */
}

/* Styles for Register/Login buttons (desktop) */
.site-header .header-actions {
  margin-left: 25px; /* Space between nav and buttons */
  display: flex;
  gap: 10px; /* Space between buttons */
}

.site-header .header-actions .btn {
  background-color: #28a745; /* Green for Register */
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: nowrap; /* Prevent buttons from wrapping */
}

.site-header .header-actions .btn-login {
  background-color: #007bff; /* Blue for Login, using primary color */
}

.site-header .header-actions .btn:hover {
  background-color: #218838; /* Darker green */
}

.site-header .header-actions .btn-login:hover {
  background-color: #0056b3; /* Darker blue */
}

/* Hamburger menu for mobile */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001; /* Ensure it's above other content */
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}

/* Site Footer */
.site-footer {
  background-color: #333;
  color: #eee;
  padding: 40px 0 20px;
  font-size: 14px;
}

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

.site-footer .footer-col h3 {
  color: #007bff; /* Primary color */
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

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

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

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

.site-footer .footer-nav a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .footer-nav a:hover {
  color: #007bff; /* Primary color on hover */
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .site-header .main-nav li {
    margin-left: 15px;
  }
  .site-header .main-nav a {
    font-size: 15px;
  }
  .site-header .header-actions {
    margin-left: 15px; /* Adjust spacing for smaller desktops */
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: row; /* Keep logo and hamburger in a row */
    justify-content: space-between; /* Space between logo and hamburger */
    flex-wrap: wrap; /* Allow subsequent items (menu/buttons) to wrap below */
  }

  .site-header .logo {
    margin-bottom: 0; /* Override desktop margin-bottom */
    text-align: left; /* Align left */
  }

  .site-header .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    position: static; /* Remove absolute positioning, let it be part of flex flow */
    right: auto;
    top: auto;
    margin-right: -10px; /* Adjust for padding of hamburger button */
  }

  /* Mobile: Action buttons (register/login) - ALWAYS VISIBLE, below logo, centered */
  .site-header .header-actions {
    display: flex; /* Make buttons side-by-side */
    flex-basis: 100%; /* Take full width */
    justify-content: center; /* Center buttons horizontally */
    gap: 15px; /* Space between buttons */
    margin-top: 15px; /* Space above buttons (below logo/hamburger) */
    margin-bottom: 15px; /* Space below buttons (above nav menu if active) */
    margin-left: 0; /* Reset desktop margin */
    order: 2; /* Place after logo/hamburger, before collapsible nav */
  }
  .site-header .header-actions .btn {
    padding: 10px 20px; /* Larger buttons for mobile */
    font-size: 16px;
  }

  /* Mobile: Main navigation wrapper (collapsible menu) */
  .site-header .header-nav-wrapper {
    display: none; /* Hidden by default */
    flex-basis: 100%; /* Take full width */
    flex-direction: column; /* Stack nav items vertically */
    background-color: #0069d9; /* Slightly darker primary for mobile menu */
    position: absolute;
    top: 70px; /* Below the header content and buttons */
    left: 0;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    z-index: 1000;
    order: 3; /* Place after logo/hamburger and buttons */
  }

  .site-header .header-nav-wrapper.active {
    display: flex; /* Show when active */
  }

  .site-header .main-nav {
    flex-basis: 100%; /* Take full width within the wrapper */
    padding: 0;
  }

  .site-header .main-nav ul {
    flex-direction: column;
    text-align: center;
  }

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

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

  .site-header .main-nav a {
    display: block;
    padding: 12px 15px;
    width: 100%;
  }

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

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

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