*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: var(--site-header-desktop-height); /* Adjust for fixed header height */
}

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

ul {
  list-style: none;
}

/* Header Styles */
.site-header {
  --site-header-desktop-height: 62px; /* Approximate height for desktop header */
  --site-header-mobile-height: 120px; /* Approximate height for mobile header */

  background-color: #0A192F; /* Primary color */
  color: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed; /* Make header sticky */
  top: 0;
  width: 100%;
  z-index: 1000; /* Ensure it's above other content */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #FFD700; /* Secondary color */
  text-transform: lowercase;
  letter-spacing: 1px;
}

.main-nav .nav-list {
  display: flex;
  gap: 1.5rem;
}

.main-nav .nav-list a {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
  color: #FFD700; /* Secondary color */
  border-bottom: 2px solid #FFD700;
}

.header-actions {
  display: flex;
  gap: 1rem;
  margin-left: 1.5rem; /* Space from nav */
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping */
  display: inline-block; /* Ensure padding and dimensions work */
}

.btn-register {
  background-color: #FFD700; /* Secondary color */
  color: #0A192F; /* Primary color */
}

.btn-register:hover {
  background-color: #e6c200; /* Darker secondary */
}

.btn-login {
  background-color: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
}

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

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FFD700; /* Secondary color */
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Footer Styles */
.site-footer {
  background-color: #0A192F; /* Primary color */
  color: #fff;
  padding: 3rem 2rem;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h3 {
  color: #FFD700; /* Secondary color */
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column p, .footer-column a {
  color: #ccc;
  line-height: 1.8;
}

.footer-column a:hover {
  color: #FFD700; /* Secondary color */
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFD700; /* Secondary color */
  text-transform: lowercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 1rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem; /* Adjust header padding for mobile */
  }

  body {
    padding-top: var(--site-header-mobile-height); /* Use variable for mobile header height */
  }

  .header-container {
    flex-wrap: wrap; /* Allow items to wrap to new lines */
    justify-content: space-between; /* Space out hamburger and logo/empty space */
    align-items: center;
  }

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

  .logo {
    order: 2; /* Place logo second */
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center; /* Center the logo text */
    margin: 0; /* Reset any default margins */
  }

  .header-actions {
    order: 3; /* Place buttons after logo, but they will wrap to a new line */
    flex-basis: 100%; /* Make buttons take full width on their new line */
    justify-content: center; /* Center buttons horizontally */
    margin-top: 1rem; /* Space from the row above (logo/hamburger) */
    margin-left: 0; /* Reset desktop margin */
    gap: 1rem; /* Space between buttons */
  }

  .main-nav {
    width: 100%;
    order: 4; /* Push nav below logo, buttons, and hamburger */
  }

  .main-nav .nav-list {
    flex-direction: column;
    background-color: #1a2a47; /* Slightly lighter primary for dropdown */
    position: absolute; /* Position relative to the viewport (since site-header is fixed) */
    top: var(--site-header-mobile-height); /* Position below the full mobile header */
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .main-nav .nav-list.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav .nav-list li a {
    padding: 0.8rem 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-nav .nav-list li:last-child a {
    border-bottom: none;
  }

  .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);
  }

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

  .footer-column {
    margin-bottom: 1.5rem;
  }

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

  .footer-nav ul {
    align-items: center;
  }
}