:root {
  --primary-color: #0A2463;
  --accent-color: #FFD700;
  --header-top-bg: #071a44; /* Darker variant of primary for top bar */
  --main-nav-bg: var(--primary-color); /* Primary color for main nav */

  --header-top-height-desktop: 60px;
  --main-nav-height-desktop: 50px;
  --header-total-height-desktop: calc(var(--header-top-height-desktop) + var(--main-nav-height-desktop));

  --header-top-height-mobile: 60px; /* Hamburger + Logo row */
  --mobile-buttons-height: 60px; /* Buttons row */
  --header-total-height-mobile: calc(var(--header-top-height-mobile) + var(--mobile-buttons-height));
}

/* Base Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  padding-top: var(--header-total-height-desktop); /* Desktop padding for fixed header */
}

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

/* Site Header - Fixed and Suspended */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Header Top - Desktop Layout */
.header-top {
  background-color: var(--header-top-bg);
  width: 100%;
  min-height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-color);
  text-transform: uppercase;
  padding: 10px 0;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none; /* Remove underline for buttons */
}

.btn-register {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: 2px solid var(--accent-color);
}

.btn-register:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.btn-login {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-login:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Main Navigation - Desktop Layout */
.main-nav {
  background-color: var(--main-nav-bg);
  width: 100%;
  min-height: var(--main-nav-height-desktop);
  display: flex; /* Default to flex for desktop */
  align-items: center;
}

.main-nav .nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

.nav-link {
  color: #fff;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--accent-color);
  margin-bottom: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

/* Mobile Buttons Area - Hidden on Desktop */
.mobile-buttons-area {
  display: none; /* Hidden by default on desktop */
  background-color: var(--header-top-bg);
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 990; /* Below header-top, above main content */
}

.mobile-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Mobile Menu Overlay - Hidden on Desktop */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999; /* Below mobile menu, above content */
  display: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Site Footer */
.site-footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  color: var(--accent-color);
  font-size: 18px;
  margin-bottom: 15px;
}

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

.footer-col a {
  color: #fff;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--accent-color);
}

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

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

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

.footer-bottom p {
  margin: 0;
}

/* Utility for no-scroll on body */
body.no-scroll {
  overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-total-height-mobile); /* Mobile padding for fixed header */
  }

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none; /* Mobile container fills width */
    justify-content: space-between;
  }

  .header-top {
    min-height: var(--header-top-height-mobile);
  }

  .logo {
    flex-grow: 1;
    text-align: center;
    order: 2; /* Center logo */
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

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

  .mobile-buttons-area {
    display: block; /* Show mobile buttons area */
    min-height: var(--mobile-buttons-height);
  }

  .mobile-nav-buttons {
    padding: 5px 0;
  }

  .main-nav {
    display: none; /* Hide main nav by default on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding-top: var(--header-top-height-mobile);
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease-out;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .main-nav.active {
    display: flex; /* Show main nav when active */
    transform: translateX(0); /* Slide in */
  }

  .main-nav .nav-container {
    flex-direction: column;
    padding: 20px 0;
    width: 100%;
    max-width: none; /* Mobile container fills width */
    align-items: flex-start;
  }

  .nav-link {
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }

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

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

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

  .footer-col h3 {
    text-align: center;
    margin-bottom: 10px;
  }

  .footer-col p {
    text-align: center;
  }

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

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