/* Base Styles */
:root {
  --primary-color: #0A2342;
  --accent-color: #FFD700;
  --text-color: #333;
  --light-text-color: #f0f0f0;
  --dark-bg: #1a1a1a;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f9f9f9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: var(--accent-color);
}

a:hover {
  text-decoration: underline;
}

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

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

.site-header .logo {
  color: var(--accent-color);
  font-size: 2.2em;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Arial Black', Gadget, sans-serif; /* Creative font for brand */
  transition: color 0.3s ease;
  white-space: nowrap;
}

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

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

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

.main-nav a {
  color: var(--light-text-color);
  font-weight: 600;
  font-size: 1em;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  display: block;
}

.main-nav a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1000;
}

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

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* New Register/Login Button Styles */
.btn-register-login {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-left: 20px; /* Space it from the main-nav */
  white-space: nowrap;
  display: flex; /* Ensure it aligns well with other flex items */
  align-items: center;
  justify-content: center;
  height: 40px; /* Match typical button height */
}

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

/* Footer Styles */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--light-text-color);
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.site-footer a {
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

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

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

.footer-col h3 {
  color: var(--accent-color);
  font-size: 1.3em;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 5px;
  display: inline-block;
}

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

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

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

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

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
    padding-top: 10px; /* Add some top padding to container for visual spacing */
    padding-bottom: 10px; /* Add some bottom padding */
    /* justify-content: space-between; already inherited */
  }

  .site-header .logo {
    flex-grow: 1;
    font-size: 1.8em;
    order: 2; /* LOGO centered in the middle of the top row */
    text-align: center; /* Center the logo text */
  }

  .hamburger-menu {
    display: block;
    order: 1; /* Far left */
  }

  .main-nav {
    flex-basis: 100%;
    order: 4; /* Push nav below logo and hamburger and new button */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background-color: rgba(10, 35, 66, 0.95); /* Semi-transparent background for mobile nav */
    position: absolute;
    left: 0;
    right: 0;
    top: 100%; /* Position below header */
    width: 100%;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
  }

  .main-nav.active {
    max-height: 400px; /* Adjust as needed to fit all menu items */
  }

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

  .main-nav li {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

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

  .main-nav a::after {
    display: none; /* Hide hover effect on mobile */
  }

  /* New Register/Login Button Responsive Styles */
  .btn-register-login {
    display: block; /* Override flex for mobile to allow margin auto centering */
    order: 3; /* Below logo */
    flex-basis: 100%; /* Force to new line */
    text-align: center; /* Center the button text content */
    margin: 15px auto 0 auto; /* Center the button itself, add top margin */
    max-width: 250px; /* Limit button width for aesthetic */
    padding: 12px 25px; /* Slightly larger padding for mobile button */
    font-size: 1.2em;
  }

  .footer-columns {
    flex-direction: column;
    gap: 20px;
  }

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

  .footer-col h3 {
    width: auto;
  }
}