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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Header Styles */
.site-header {
  background-color: #003366;
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1000;
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: #FFCC00;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #fff;
}

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

.main-nav .nav-list a {
  color: #fff;
  font-weight: 600;
  padding: 5px 0;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  position: relative;
}

.main-nav .nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background-color: #FFCC00;
  transition: width 0.3s ease;
}

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

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
  color: #FFCC00;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  background-color: #FFCC00;
  color: #003366;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.btn:hover {
  background-color: #e6b800;
  color: #001a33;
}

.btn-login {
  background-color: #0056b3; /* Slightly different blue for login */
  color: #fff;
}
.btn-login:hover {
  background-color: #004085;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.mobile-nav-overlay {
  display: flex; /* CHANGED: from display: none; to display: flex; */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 51, 102, 0.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  text-align: center;
}

.mobile-nav-list li {
  margin-bottom: 20px;
}

.mobile-nav-list a {
  color: #fff;
  font-size: 1.5em;
  padding: 10px 0;
  display: block;
  transition: color 0.3s ease;
}

.mobile-nav-list a:hover {
  color: #FFCC00;
}

.mobile-nav-list .mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.mobile-nav-list .mobile-actions .btn {
  width: 200px;
  padding: 12px 0;
  font-size: 1.1em;
}

.floating-ad-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #FFCC00;
  color: #003366;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 990;
}

.floating-ad-button:hover {
  transform: translateY(-3px);
  background-color: #e6b800;
}

/* Footer Styles */
.site-footer {
  background-color: #003366;
  color: #f0f0f0;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
}

.footer-col h3 {
  color: #FFCC00;
  margin-bottom: 15px;
  font-size: 1.2em;
}

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

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

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

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

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 20px 20px 0;
}

.copyright {
  margin-bottom: 10px;
  color: #bbb;
}

.responsible-gaming-note {
  color: #aaa;
  font-style: italic;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .main-nav .nav-list {
    gap: 15px;
  }

  .header-actions .btn {
    padding: 7px 12px;
    font-size: 0.9em;
  }

  .floating-ad-button {
    bottom: 15px;
    right: 15px;
    padding: 10px 18px;
    font-size: 0.9em;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-col:last-child {
    grid-column: span 2; /* Make the last column span full width on tablets */
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap; /* Changed from nowrap to wrap */
    justify-content: space-between; /* Keep for toggle/actions positioning */
    align-items: center;
    gap: 0;
    padding: 0 20px;
  }

  .logo {
    order: 2;
    width: 100%; /* Force logo to its own line */
    text-align: center; /* Center the logo text */
    margin: 10px 0 0; /* Add top margin, reset others */
    flex-grow: 0; /* No need to grow if 100% width */
    min-width: unset; /* Remove min-width constraint */
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    order: 3;
    width: 100%; /* Force buttons to their own line */
    display: flex; /* Enable flex for centering children */
    justify-content: center; /* Center the buttons */
    gap: 10px;
    margin: 15px 0 0; /* Add top margin, reset others */
    margin-left: 0; /* Ensure no left margin from previous rules */
    flex-shrink: 0;
  }

  .mobile-menu-toggle {
    display: flex; /* Ensure it's visible and acts as flex item */
    order: 1;
    margin-left: 0;
    margin-right: auto; /* Push toggle to the left and create space */
    flex-shrink: 0;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

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

  .footer-col:last-child {
    grid-column: span 1;
  }

  .floating-ad-button {
    bottom: 10px;
    right: 10px;
    padding: 8px 15px;
    font-size: 0.8em;
  }
}