:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-color-light: #f4f4f4;
  --text-color-dark: #333;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark);
  line-height: 1.6;
  background-color: #f4f4f4;
}

body.no-scroll {
  overflow: hidden;
}

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

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

.logo {
  font-family: 'Verdana', sans-serif;
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #fff;
}

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

.main-nav a {
  color: var(--text-color-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 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: var(--secondary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary-color);
}

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

.nav-actions {
  display: flex;
  gap: 0.8rem;
}

.btn {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background-color: #e0bb00;
  transform: translateY(-2px);
}

.btn-login {
  background-color: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-login:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

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

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

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 3rem 0;
  font-size: 0.9rem;
  border-top: 5px solid var(--secondary-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--secondary-color);
}

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

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .main-nav ul {
    gap: 1rem;
  }
  .main-nav a {
    font-size: 0.95rem;
  }
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  .logo {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    display: grid; /* Change to grid for flexible mobile layout */
    grid-template-areas:
      "hamburger logo ."
      "buttons buttons buttons";
    grid-template-columns: 1fr auto 1fr; /* Left (hamburger), Center (logo), Right (empty space to push logo center) */
    grid-template-rows: auto auto; /* First row for top bar, second for buttons */
    gap: 1rem 0; /* Vertical gap 1rem, no horizontal gap */
    align-items: center;
    padding: 0 1rem;
  }

  .hamburger-menu {
    grid-area: hamburger;
    justify-self: start; /* Align to the start (left) of its grid area */
    display: flex; /* Ensure hamburger is visible on mobile */
  }

  .logo {
    grid-area: logo;
    justify-self: center; /* Align to the center of its grid area */
    margin: 0; /* Remove any default margins that might interfere with centering */
  }

  .main-nav {
    /* Existing mobile nav styles will apply when active */
    display: none; /* Hide main nav by default on mobile */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
  }

  .main-nav.active {
    display: flex; /* Override display: none when active */
    transform: translateX(0);
  }

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

  .main-nav a {
    font-size: 1.5rem;
    padding: 1rem 0;
    width: fit-content;
  }

  .nav-actions {
    grid-area: buttons; /* Place buttons in the second row, spanning all columns */
    display: flex; /* Override display: none from original CSS for mobile */
    justify-content: center; /* Center the buttons horizontally */
    gap: 0.8rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    /* Original CSS had `nav-actions { display: none; }` here. This is removed/overridden. */
  }

  .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);
  }

  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h3 {
    margin-top: 1.5rem;
  }

  .footer-col p, .footer-col a {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.8rem;
  }
  .header-container {
    padding: 0 0.8rem;
  }
  .site-footer {
    padding: 2rem 0;
  }
  .footer-bottom {
    font-size: 0.8rem;
  }
}