:root {
  --primary-color: #0A203C;
  --secondary-color: #FFD700;
  --text-light: #f0f0f0;
  --text-dark: #333;
  --bg-dark: #071526;
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f8f8f8;
  /* Added for sticky header - default desktop height */
  padding-top: 70px;
}

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

/* Header Styles */
.site-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  /* Added for sticky header */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

.site-header .header-left {
  display: flex;
  align-items: center;
}

.site-header .logo {
  font-family: 'Impact', sans-serif; /* Creative font for brand feel */
  font-size: 2.5em;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

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

.site-header .header-right {
  display: flex;
  align-items: center;
}

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

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

.main-nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

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

.main-nav ul li 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 ul li a:hover::after,
.main-nav ul li a.active::after {
  width: 100%;
}

.auth-buttons {
  margin-left: 30px;
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.btn-register {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.btn-register:hover {
  background-color: #fff;
  color: var(--primary-color);
}

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1000;
}

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

.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: var(--bg-dark);
  color: var(--text-light);
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.site-footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
  color: var(--secondary-color);
  font-size: 1.2em;
  margin-bottom: 15px;
}

.footer-col.company-info .footer-logo {
  font-family: 'Impact', sans-serif;
  font-size: 2em;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
}

.footer-col.company-info p {
  line-height: 1.8;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85em;
}

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

@media (max-width: 768px) {
  /* Define CSS variables for mobile header height calculation */
  :root {
    --mobile-header-top-row-height: 70px; /* site-header padding (15px top/bottom) + ~40px logo/hamburger height */
    --mobile-header-auth-row-height: 60px; /* ~40px buttons height + 10px margin-top + 10px margin-bottom */
    --mobile-header-total-height: calc(var(--mobile-header-top-row-height) + var(--mobile-header-auth-row-height));
  }

  /* Adjust body padding for mobile sticky header */
  body {
    padding-top: var(--mobile-header-total-height);
  }

  .site-header .container {
    flex-wrap: wrap;
    justify-content: space-between; /* MODIFIED: Added to separate hamburger and logo */
    align-items: center;
  }

  /* Hamburger menu: left, first item */
  .hamburger-menu {
    display: block; /* Show on mobile */
    order: 1; /* Place hamburger menu first */
    /* MODIFIED: Removed margin-right: auto to allow logo centering */
  }

  /* Logo: centered, second item */
  .site-header .header-left {
    order: 2; /* After hamburger */
    flex-basis: auto;
    flex-grow: 1; /* Take available space to help center logo */
    text-align: center; /* Center the logo */
  }

  /* Header right (contains auth buttons and main nav): below logo, full width, centered */
  .site-header .header-right {
    order: 3; /* After hamburger and logo row */
    flex-basis: 100%; /* Take full width */
    display: flex; /* Make its children flex */
    flex-wrap: wrap; /* Allow auth buttons to wrap if needed */
    justify-content: center; /* Center auth buttons */
    margin-top: 10px; /* Space below logo */
    margin-bottom: 10px; /* Space above nav dropdown */
  }

  /* Auth buttons: first within header-right, centered */
  .auth-buttons {
    order: 1; /* First item within header-right */
    margin-left: 0; /* Override desktop margin */
    margin-right: 0; /* Override desktop margin */
    /* gap: 5px; already present from previous media query, keeps buttons spaced */
    flex-basis: auto; /* Allow buttons to size naturally */
    /* The justify-content: center on header-right already centers them */
  }

  /* Main navigation: second within header-right, full width, positioned absolutely */
  .main-nav {
    order: 2; /* After auth buttons within header-right */
    flex-basis: 100%; /* Take full width */
    display: none; /* Hidden by default */
    background-color: var(--primary-color);
    position: absolute; /* Position relative to the viewport (since site-header is fixed) */
    top: var(--mobile-header-total-height); /* Position below the visible header content */
    left: 0;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    z-index: 999;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    padding: 10px 0;
  }

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

  .main-nav ul li a {
    display: block;
    padding: 10px 0;
  }

  /* Removed previous auth-buttons media query overrides that are now handled by .site-header .header-right and .auth-buttons */

  .auth-buttons .btn {
    padding: 8px 15px;
    font-size: 0.85em;
  }

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

  .footer-col {
    margin-bottom: 20px;
  }

  .footer-col:last-child {
    margin-bottom: 0;
  }

  .footer-col.company-info .footer-logo {
    margin: 0 auto 10px;
  }
}

@media (max-width: 480px) {
  .site-header .logo {
    font-size: 2em;
  }
  .auth-buttons {
    /* MODIFIED: Removed flex-direction: column; to make buttons side-by-side */
    gap: 5px;
  }
  .auth-buttons .btn {
    /* MODIFIED: Removed width: 100%; to allow buttons to size naturally and sit side-by-side */
  }
  .site-header .container {
    padding: 0 10px;
  }
}