/* General Styles */
:root {
  --primary-color: #0A192F;
  --accent-color: #FFD700;
  --text-light: #f0f0f0;
  --text-dark: #333;
  --button-hover: #e6c200;
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--primary-color);
}

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

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

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

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

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

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

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

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--primary-color);
  padding: 1px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.site-header .logo {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding-right: 20px; /* Space from nav */
}

.site-header .main-nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-header .nav-list {
  display: flex;
  gap: 25px;
}

.site-header .nav-list a {
  color: var(--text-light);
  font-weight: bold;
  font-size: 1.05em;
  padding: 5px 0;
  position: relative;
}

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

.site-header .nav-list a:hover::after,
.site-header .nav-list a.active::after {
  width: 100%;
}

.site-header .header-actions {
  display: flex;
  gap: 10px;
  margin-left: 20px; /* Space from nav */
}

.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 span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Footer Styles */
.site-footer {
  background-color: #071322; /* Slightly darker than primary for contrast */
  color: var(--text-light);
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.site-footer h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 1.3em;
}

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

.site-footer .footer-logo {
  font-size: 2em;
  font-weight: bold;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: block;
}

.site-footer .about-mcw p {
  font-size: 0.9em;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

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

.site-footer .footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95em;
  transition: color 0.3s ease;
}

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

.site-footer .contact-info p {
  margin-bottom: 10px;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer .contact-info a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer .contact-info a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

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

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

#scrollToTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--accent-color);
  color: var(--primary-color);
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  font-size: 1.5em;
  line-height: 1;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#scrollToTopBtn:hover {
  background-color: var(--button-hover);
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .site-header .nav-list {
    gap: 15px;
  }
  .site-header .nav-list a {
    font-size: 1em;
  }
  .site-header .logo {
    font-size: 1.8em;
  }
  .site-header .header-actions .btn {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
    justify-content: center; /* Changed to center for logo alignment */
  }

  .site-header .logo {
    /* Removed margin-right: auto; */
    padding-right: 0;
    order: 2; /* Logo in the middle */
    margin: 0; /* Reset any conflicting margins */
  }

  .site-header .main-nav {
    order: 4; /* Moved nav to the last position */
    flex-basis: 100%;
    /* Removed justify-content: flex-end; as hamburger is now a direct child of container */
  }

  .site-header .header-actions {
    order: 3; /* Actions to the right of the logo */
    margin-left: auto; /* Pushes actions to the right */
    margin-right: 0; /* Ensure no conflicting right margin */
    gap: 5px;
  }

  .hamburger-menu {
    display: flex;
    order: 1; /* Hamburger to the far left */
    margin-right: auto; /* Pushes hamburger to the left */
    /* Removed margin-left: 15px; */
  }

  .site-header .nav-list {
    flex-direction: column;
    background-color: var(--primary-color);
    position: absolute;
    top: 70px; /* Adjust based on header height */
    left: 0;
    width: 100%;
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none; /* Hidden by default */
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }

  .site-header .nav-list.active {
    display: flex;
  }

  .site-header .nav-list li {
    margin-bottom: 10px;
  }

  .site-header .nav-list a {
    display: block;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .site-header .nav-list a::after {
    display: none;
  }

  .site-header .nav-list a:hover,
  .site-header .nav-list a.active {
    color: var(--accent-color);
  }

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

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

  .site-footer .footer-col {
    margin-bottom: 30px;
  }

  .site-footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }
  .site-footer .footer-nav li {
    margin-bottom: 0;
  }

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