/* General Body Styles */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 70px; /* Added for fixed header */
}

/* Basic Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Container for Centering Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background-color: #0A2342; /* Primary color */
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: fixed; /* Make header sticky */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999; /* Ensure it stays on top */
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.main-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  margin-left: 30px;
}

.main-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #FFD700;
  transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
  width: 100%;
}

.main-nav ul li a:hover,
.main-nav ul li a.active-link {
  color: #FFD700; /* Secondary color on hover and active */
}

/* Auth Buttons (Desktop) */
.auth-buttons {
  display: flex;
  align-items: center;
  margin-left: 20px; /* Space from main nav */
}

.auth-buttons .btn {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent buttons from wrapping */
}

.auth-buttons .btn-register {
  background-color: #FFD700; /* Secondary color */
  color: #0A2342; /* Primary color */
  margin-right: 10px;
}

.auth-buttons .btn-register:hover {
  background-color: #e6c200;
}

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

.auth-buttons .btn-login:hover {
  background-color: #FFD700;
  color: #0A2342;
}

/* Spacer for mobile logo centering (hidden on desktop) */
.header-right-spacer {
  display: none;
}

/* Hamburger Menu for Mobile */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Above other content */
}

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

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  text-align: center;
}

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

.mobile-nav ul li {
  margin-bottom: 20px;
}

.mobile-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active-link {
  color: #FFD700;
}

/* Mobile Auth Area (hidden on desktop) */
.mobile-auth-area {
  display: none; /* Hidden by default on desktop */
  padding: 10px 20px;
  background-color: #0A2342; /* Same as header */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: center; /* Center buttons */
  gap: 15px; /* Space between buttons */
}

.mobile-auth-area .btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  flex-grow: 1; /* Make buttons expand */
  text-align: center;
  max-width: 150px; /* Limit max width for larger screens on mobile */
}

.mobile-auth-area .btn-register {
  background-color: #FFD700;
  color: #0A2342;
}

.mobile-auth-area .btn-register:hover {
  background-color: #e6c200;
}

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

.mobile-auth-area .btn-login:hover {
  background-color: #FFD700;
  color: #0A2342;
}

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

/* Footer Styles */
.site-footer {
  background-color: #0A2342; /* Primary color */
  color: #fff;
  padding: 40px 0 20px;
  font-size: 15px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px; /* Space between columns */
}

.footer-col {
  flex: 1;
  min-width: 220px; /* Minimum width for columns before wrapping */
  margin-bottom: 20px;
}

.footer-col h3 {
  color: #FFD700; /* Secondary color for headings */
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: #FFD700;
}

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

.footer-col .footer-logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}

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

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

.footer-nav ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.footer-bottom .copyright {
  color: #ccc;
  font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .main-nav ul li {
    margin-left: 20px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 120px; /* Adjusted for combined header height on mobile */
  }

  .site-header .container {
    flex-wrap: nowrap; /* Prevent wrapping in the main container */
    justify-content: space-between; /* Space out hamburger, logo, and spacer */
    padding-bottom: 15px; /* Add some space before the mobile auth area */
  }

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

  .hamburger-menu {
    display: block; /* Show hamburger */
    order: 1; /* Position it to the left */
  }

  .site-header .logo {
    order: 2; /* Position logo in the middle */
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center; /* Center the logo text */
    margin: 0; /* Remove any default margins that might interfere with centering */
  }

  .header-right-spacer {
    display: block; /* Show spacer on mobile */
    order: 3; /* Position it to the right */
    width: 45px; /* Match hamburger menu's approximate width for centering */
    height: 1px; /* Minimal height */
  }

  .mobile-auth-area {
    display: flex; /* Show mobile auth area */
  }

  /* Hamburger menu animation */
  .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);
  }

  .site-footer .container {
    flex-direction: column; /* Stack footer columns */
    align-items: center;
  }

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

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-col .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .site-header .logo {
    font-size: 24px;
  }

  .mobile-nav ul li a {
    font-size: 20px;
  }
}