/* Base styles and Desktop First approach */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: 120px; /* Adjust for fixed header height (header-top + main-nav) */
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #1A202C; /* Default background for entire header, overridden by header-top/main-nav */
}

.header-top {
  background-color: #1A202C; /* Dark background for top bar */
  padding: 15px 0; /* Vertical padding, horizontal handled by container */
}

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

.logo {
  font-family: 'Arial', sans-serif; /* Example font */
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Gold color for logo */
  text-decoration: none;
  padding-right: 20px; /* Space between logo and potential elements to its right */
  white-space: nowrap;
}

.desktop-nav-buttons {
  display: flex; /* Always visible on desktop */
  gap: 10px;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
}

.main-nav {
  background-color: #FFD700; /* Gold background for main navigation */
  width: 100%;
  display: flex; /* Desktop default: visible, flex */
  flex-direction: row; /* Desktop default: horizontal */
  justify-content: center;
  padding: 10px 0; /* Vertical padding, horizontal handled by container */
  position: static; /* Desktop default: normal flow */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 30px; /* Horizontal padding for desktop */
  flex-wrap: wrap; /* Allow items to wrap if screen is narrow */
}

.nav-link {
  color: #1A202C; /* Dark text for nav links */
  text-decoration: none;
  padding: 8px 15px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(26, 32, 44, 0.1); /* Subtle hover effect */
  color: #000;
}

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

/* Base button styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap; /* Prevent text wrapping */
}

.btn-primary {
  background-image: linear-gradient(45deg, #FFD700, #FFA500); /* Gold to Orange gradient */
  color: #1A202C; /* Dark text */
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
  background-image: linear-gradient(45deg, #FFA500, #FFD700);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #1A202C; /* Dark background */
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  box-shadow: 0 4px 10px rgba(26, 32, 44, 0.3);
}

.btn-secondary:hover {
  background-color: #2D3748; /* Slightly lighter dark */
  color: #FFF;
  box-shadow: 0 6px 15px rgba(26, 32, 44, 0.5);
  transform: translateY(-2px);
}

/* Footer styles */
.site-footer {
  background-color: #1A202C; /* Dark background for footer */
  color: #E2E8F0; /* Light grey text */
  padding: 40px 20px 20px;
  font-size: 14px;
}

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

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

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

.footer-column h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: #FFD700;
  margin-top: 5px;
}

.footer-column p, .footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.8;
}

.footer-column a {
  color: #E2E8F0;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  color: #A0AEC0; /* Lighter grey for copyright */
}

/* Responsive styles for mobile (max-width: 768px) */
@media (max-width: 768px) {
  body {
    padding-top: 120px; /* Consistent padding for mobile, adjusted for fixed header + mobile buttons */
  }

  .site-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .header-top {
    padding: 10px 0;
  }

  .header-container {
    width: 100%;
    max-width: none; /* CRITICAL: Mobile container full width */
    padding: 0 15px; /* Smaller horizontal padding for mobile */
    justify-content: space-between; /* Hamburger left, logo centered */
    position: relative; /* For logo centering */
  }

  .logo {
    font-size: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 0; /* No extra padding for centering */
  }

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

  .hamburger-menu {
    display: block; /* Show hamburger menu */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1003; /* Above overlay and menu */
    order: -1; /* Move to the left */
  }

  .hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFD700; /* Gold color for icon */
    position: relative;
    transition: background-color 0.3s ease;
  }

  .hamburger-icon::before,
  .hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #FFD700;
    position: absolute;
    transition: transform 0.3s ease, top 0.3s ease;
  }

  .hamburger-icon::before {
    top: -8px;
  }

  .hamburger-icon::after {
    top: 8px;
  }

  .hamburger-menu.active .hamburger-icon {
    background-color: transparent; /* Hide middle bar */
  }

  .hamburger-menu.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
  }

  .hamburger-menu.active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .main-nav {
    display: none; /* CRITICAL: Default hidden on mobile */
    flex-direction: column; /* Vertical layout */
    position: fixed;
    top: 0;
    left: 0;
    width: 80%; /* Menu width */
    max-width: 300px; /* Optional: max width for side menu */
    height: 100%;
    background-color: #1A202C; /* Dark background for mobile menu */
    transform: translateX(-100%); /* CRITICAL: Slide out of view */
    transition: transform 0.3s ease;
    z-index: 1002; /* Above overlay */
    overflow-y: auto; /* Enable scrolling for long menus */
    padding-top: 70px; /* Space for logo/hamburger area inside the menu */
  }

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

  .nav-container {
    width: 100%;
    max-width: none; /* CRITICAL: Mobile container full width */
    flex-direction: column;
    align-items: flex-start; /* Align links to the left */
    padding: 0 20px; /* Padding inside mobile menu */
  }

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    color: #E2E8F0; /* Light text for mobile nav links */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .nav-link:hover {
    background-color: rgba(255, 215, 0, 0.1); /* Gold tint on hover */
    color: #FFD700;
  }

  .mobile-nav-buttons-container {
    display: block; /* Show mobile button container */
    width: 100%;
    background-color: #1A202C; /* Same as header-top */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    z-index: 999; /* Below hamburger menu, above content */
  }

  .mobile-nav-buttons {
    width: 100%;
    max-width: none; /* CRITICAL: Mobile container full width */
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 15px; /* Horizontal padding for mobile buttons */
  }

  .mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent overlay */
    z-index: 1001; /* Below menu, above content */
  }

  .mobile-menu-overlay.active {
    display: block; /* Show overlay when active */
  }

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

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

  .footer-column h3::after {
    margin: 5px auto 0; /* Center underline */
  }
}