/* General Resets & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

body.no-scroll {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

/* Header Styles */
.site-header {
  background-color: #1A202C; /* Primary color */
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-header .logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Auxiliary color */
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.site-header .logo:hover {
  color: #fff;
}

.header-right { /* New wrapper for desktop nav and buttons */
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
}

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

.main-nav a {
  color: #fff;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
  color: #FFD700; /* Auxiliary color */
}

.auth-buttons {
  display: flex; /* Always flex for buttons inside */
  gap: 15px; /* Space between buttons */
  margin-left: 30px; /* Space from navigation */
}

.auth-buttons .btn {
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent buttons from wrapping */
  text-align: center; /* Ensure text is centered */
  display: inline-flex; /* For better vertical alignment if content varies */
  align-items: center;
  justify-content: center;
}

.auth-buttons .btn-primary {
  background-color: #FFD700; /* Auxiliary color */
  color: #1A202C; /* Primary color */
  border: 1px solid #FFD700;
}

.auth-buttons .btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #1A202C;
}

.auth-buttons .btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Auxiliary color */
  border: 1px solid #FFD700;
}

.auth-buttons .btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001; /* Ensure it's above other content when open */
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
  .site-header .container {
    display: grid;
    grid-template-areas:
      "hamburger logo ."
      "buttons buttons buttons";
    grid-template-columns: auto 1fr auto; /* hamburger | logo | empty (or another element) */
    grid-template-rows: auto auto; /* row 1: hamburger, logo; row 2: buttons */
    gap: 15px 0; /* Vertical gap between rows */
    padding: 15px 20px; /* Adjust padding for mobile header */
  }

  .site-header .logo {
    grid-area: logo; /* Place in grid area */
    justify-self: center; /* Center horizontally */
    margin: 0; /* Override desktop margin */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    grid-area: hamburger; /* Place in grid area */
    justify-self: start; /* Align to left */
    /* Ensure it's above other content when open */
    position: relative; /* Make sure z-index works */
    z-index: 1001; /* Keep existing z-index */
  }

  .header-right {
    display: contents; /* Make children participate in the parent grid */
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 32, 44, 0.95); /* Semi-transparent primary color */
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }

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

  .main-nav ul {
    flex-direction: column;
    text-align: center;
  }

  .main-nav li {
    margin: 20px 0;
  }

  .main-nav a {
    font-size: 24px;
    padding: 10px 0;
    display: block;
  }

  .auth-buttons {
    grid-area: buttons; /* Place in grid area */
    justify-content: center; /* Center the buttons within their area */
    width: 100%; /* Take full width */
    margin: 0; /* Remove desktop margin */
    /* Keep display: flex and gap for internal button arrangement */
  }

  /* Hamburger menu animation */
  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Footer Styles */
.site-footer {
  background-color: #1A202C; /* Primary color */
  color: #ccc;
  padding: 40px 0 20px;
  font-size: 14px;
}

.site-footer .footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.site-footer .footer-col {
  flex: 1;
  min-width: 250px; /* Ensure columns don't get too small */
}

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

.site-footer p {
  margin-bottom: 10px;
}

.site-footer a {
  color: #ccc;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #FFD700; /* Auxiliary color */
}

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

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

/* Responsive Footer */
@media (max-width: 768px) {
  .site-footer .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .footer-col {
    min-width: unset;
    width: 100%;
    margin-bottom: 20px;
  }

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