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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  /* New: Add padding to body to prevent content from being hidden by fixed header */
  padding-top: 65px; /* Adjust this value based on actual header height */
}

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

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  color: #0056b3;
}

ul {
  list-style: none;
}

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

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: #28a745;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #218838; /* Darker green on hover */
}

.main-nav ul {
  display: flex;
}

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

.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: #007bff;
  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: #007bff;
}

.auth-buttons {
  display: flex; /* Always flex for buttons */
  gap: 10px;
  margin-left: 20px; /* Space from nav */
}

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

.auth-buttons .btn-register {
  background-color: #28a745; /* Green */
  color: #fff;
  border: 1px solid #28a745;
}

.auth-buttons .btn-register:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.auth-buttons .btn-login {
  background-color: transparent;
  color: #007bff; /* Blue */
  border: 1px solid #007bff;
}

.auth-buttons .btn-login:hover {
  background-color: #007bff;
  color: #fff;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

/* Footer Styles */
.site-footer {
  background-color: #343a40;
  color: #f8f9fa;
  padding: 40px 0;
  font-size: 0.9em;
  border-top: 1px solid #495057;
}

.site-footer h3 {
  color: #007bff;
  margin-bottom: 20px;
  font-size: 1.2em;
}

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

.footer-col {
  flex: 1;
  min-width: 250px;
}

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

.footer-col a {
  color: #f8f9fa;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #007bff;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid #495057;
}

.copyright {
  color: #adb5bd;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center items horizontally */
    position: relative; /* For absolute positioning of hamburger */
  }

  .logo {
    margin: 0 auto; /* Center logo horizontally */
  }

  .hamburger-menu {
    display: flex; /* Show hamburger menu */
    position: absolute; /* Position hamburger absolutely */
    right: 20px; /* Align to the right */
    top: 20px; /* Adjust top to be visually aligned with logo */
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 115px; /* Adjust based on new header height for mobile */
    left: 0;
    background-color: #343a40;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
  }

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

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav li {
    margin: 0;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #495057;
  }

  .main-nav li:last-child a {
    border-bottom: none;
  }

  .auth-buttons {
    display: flex; /* Show buttons */
    justify-content: center; /* Center buttons horizontally */
    gap: 15px; /* Space between buttons */
    margin-top: 20px; /* Space below logo */
    width: 100%; /* Take full width */
    padding-bottom: 10px; /* Add some padding below buttons */
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
  }

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

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