html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: 90px; /* Desktop Header Height: header-top (50px) + main-nav (40px) */
}

/* Global Link Reset */
a {
  text-decoration: none;
  color: inherit;
}

/* Site Header - Sticky Navigation */
.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 Area (Desktop) */
.header-top {
  background-color: #000080; /* Navy Blue */
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700; /* Gold */
  text-decoration: none;
  white-space: nowrap;
}

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

/* General Button Styles */
.btn {
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-register {
  background-color: #FFD700; /* Gold */
  color: #000080; /* Navy Blue */
}

.btn-login {
  background-color: #000080; /* Navy Blue */
  color: #FFD700; /* Gold */
  border: 1px solid #FFD700;
}

.btn-download {
  background-color: #FFD700; /* Gold */
  color: #000080; /* Navy Blue */
}

/* Main Navigation Area (Desktop) */
.main-nav {
  background-color: #FFD700; /* Gold */
  width: 100%;
  min-height: 40px;
  display: flex;
  flex-direction: row; /* Desktop default */
  position: static; /* Desktop default */
  transition: transform 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row; /* Desktop default */
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

.nav-link {
  color: #000080; /* Navy Blue */
  text-decoration: none;
  padding: 8px 15px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(0, 0, 128, 0.1); /* Slight navy overlay */
  border-radius: 5px;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none;
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

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

/* Mobile Button Area (Hidden on Desktop) */
.mobile-button-area {
  display: none;
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
  display: none;
}

/* Site Footer */
.site-footer {
  background-color: #000080; /* Navy Blue */
  color: #FFD700; /* Gold */
  padding: 40px 0;
  font-size: 14px;
}

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

.footer-col {
  flex: 1 1 280px; /* Allow columns to grow and shrink, min-width 280px */
}

.footer-col h3 {
  color: #FFD700; /* Gold */
  font-size: 18px;
  margin-bottom: 15px;
}

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

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

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

.footer-nav a {
  color: #FFD700; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #FFFFFF; /* White */
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  margin-top: 30px;
  color: #E0E0E0;
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 100px; /* Mobile Header (50px) + Mobile Button Area (50px) */
  }

  .header-container {
    width: 100%;
    max-width: none; /* Crucial for mobile to take full width */
    padding: 10px 15px;
  }

  .logo {
    flex-grow: 1;
    text-align: center;
    order: 2; /* Centers logo between hamburger and empty space */
    font-size: 20px;
  }

  .desktop-nav-buttons {
    display: none;
  }

  .hamburger-menu {
    display: flex;
    order: 1;
  }

  .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-button-area {
    display: block;
    width: 100%;
    background-color: #000080; /* Navy Blue */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .mobile-button-container {
    width: 100%;
    max-width: none; /* Crucial for mobile to take full width */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
  }

  .btn {
    flex: 1; /* Allow buttons to share space */
    font-size: 13px;
    padding: 8px 10px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    max-width: 80%; /* Limit width on smaller screens */
    height: 100%;
    background-color: #000080; /* Navy Blue */
    flex-direction: column; /* Vertical for mobile */
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

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

  .nav-container {
    width: 100%;
    max-width: none; /* Crucial for mobile to take full width */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    color: #FFD700; /* Gold */
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  }

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

  .nav-link:hover {
    background-color: rgba(255, 215, 0, 0.1); /* Light gold background on hover */
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

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

  .footer-container {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .footer-col {
    flex: 1 1 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-radius: 5px;
    background-color: rgba(255, 215, 0, 0.1);
  }
}
