/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

.header-top {
  background-color: #1A2B4C; /* Primary dark blue */
  color: #fff;
}

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

.logo {
  color: #FFD700; /* Accent gold */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-register {
  background-color: #FFD700; /* Accent gold */
  color: #1A2B4C; /* Primary dark blue */
  border: 2px solid #FFD700;
}

.btn-register:hover {
  background-color: #E6C200;
  border-color: #E6C200;
}

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

.btn-login:hover {
  background-color: #FFD700;
  color: #1A2B4C;
}

.btn-download {
  background-color: #3D5A80;
  color: #fff;
  border: 2px solid #3D5A80;
}

.btn-download:hover {
  background-color: #4C6F9C;
  border-color: #4C6F9C;
}

.main-nav {
  background-color: #273A5B; /* Slightly lighter primary for contrast */
  display: flex;
}

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

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 8px 15px;
  margin: 0 5px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFD700;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  padding: 5px;
  z-index: 1002;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #FFD700;
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

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

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

.mobile-buttons-area {
  display: none; /* Hidden on desktop */
}

.mobile-menu-overlay {
  display: none;
}

/* Site Footer */
.site-footer {
  background-color: #1A2B4C; /* Primary dark blue */
  color: #fff;
  padding: 40px 0;
  font-size: 0.95em;
}

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

.footer-column {
  flex: 1;
  min-width: 200px;
  padding: 10px;
}

.footer-column h3 {
  color: #FFD700; /* Accent gold */
  margin-bottom: 15px;
  font-size: 1.2em;
}

.footer-column p {
  margin-bottom: 10px;
  color: #ccc;
}

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

.footer-nav li a {
  color: #fff;
  text-decoration: none;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.footer-nav li a:hover {
  color: #FFD700;
}

.footer-bottom {
  background-color: #111A2B; /* Even darker blue */
  text-align: center;
  padding: 15px 20px;
  margin-top: 30px;
  font-size: 0.85em;
  color: #aaa;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
  }

  .nav-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
  }

  .hamburger-menu {
    display: flex; /* Visible on mobile */
    order: 0;
  }

  .logo {
    order: 1;
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
  }

  .desktop-nav-buttons {
    display: none; /* Hidden on mobile */
  }

  .mobile-buttons-area {
    display: block; /* Visible on mobile */
    background-color: #1A2B4C;
    padding-bottom: 10px;
    z-index: 999; /* Below hamburger menu, above content */
  }

  .mobile-buttons-area .header-container {
    justify-content: center;
    gap: 10px;
    padding: 0 15px;
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 80%; /* Menu width */
    height: 100%;
    background-color: #1A2B4C; /* Dark blue background */
    flex-direction: column;
    padding-top: 80px; /* Space for fixed header elements if needed, though overlay handles full screen */
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex; /* Must be flex to show */
    transform: translateX(0); /* Slide in */
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }

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

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

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

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

  body.no-scroll {
    overflow: hidden;
  }

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

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

  .footer-nav ul {
    padding-left: 0;
  }

  .footer-nav li {
    display: block;
  }
}
