/* Global Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Inter", sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: relative;
}
header {
  background-color: #222;
  color: #fff;
}
header .logo {
  font-size: 1.8rem;
  font-weight: bold;
}

/* Burger Menu */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.burger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px;
  background-color: #fff;
}
.content-img {
  width: 100%;
  height: auto;
  max-height: 600px;
  margin: 30px auto;
}

/* Navigation Menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-menu li {
  position: relative;
}
.nav-menu li a {
  color: #fff;
  padding: 5px 10px;
  transition: background 0.3s;
}
.nav-menu li a:hover {
  background-color: #444;
  border-radius: 5px;
}
.dropdown-icon {
  margin-left: 5px;
  vertical-align: middle;
  fill: #fff;
}

/* Dropdown for Desktop */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #222;
  min-width: 150px;
  list-style: none;
  padding: 10px 0;
  border-radius: 5px;
  z-index: 1000;
}
.dropdown-content li a {
  padding: 8px 15px;
  display: block;
  white-space: nowrap;
}
.nav-menu li:hover .dropdown-content {
  display: block;
}

/* Section Titles */
h1, h2, h3 {
  text-align: center;
  margin-bottom: 15px;
}

/* SEO Intro */
.seo-intro p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-bottom: 30px;
}
table thead tr {
  background-color: #e0e0e0;
}
table thead th {
  padding: 15px;
  text-align: center;
  font-weight: bold;
}
table tbody tr {
  background-color: #fff;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 15px;
  overflow: hidden;
}
table tbody tr td {
  padding: 15px;
  vertical-align: middle;
}
.best-pokies table {
  border-collapse: collapse;
}
.best-pokies table thead {
  background-color: #e0e0e0;
}
.best-pokies table th,
.best-pokies table td {
  border: 1px solid #ccc;
  padding: 15px;
}

/* Casino Rating and Stars */
.casino-rating {
  font-weight: bold;
  margin-top: 5px;
}
.stars {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}
.star {
  fill: #FFD700;
}
.star.half {
  fill: url(#halfGradient);
}

/* Buttons */
.btn {
  background-color: #28a745;
  color: #fff;
  padding: 10px 20px;
  border-radius: 15px;
  display: inline-block;
  transition: background 0.3s;
}
.btn:hover {
  background-color: #218838;
}

/* Section: Top Choice */
.top-choice p {
  max-width: 900px;
  margin: 0 auto 20px;
  text-align: center;
}
.top-choice ol,
.top-choice ul {
  max-width: 600px;
  margin: 10px auto;
  text-align: left;
  padding-left: 20px;
}

/* FAQ */
.faq .faq-item {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 15px;
  margin-bottom: 15px;
  padding: 15px;
}
.faq h3 {
  margin-top: 0;
}

/* Footer */
footer {
  background-color: #222;
  color: #fff;
  padding: 30px 0;
  width: 100%;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  flex: 1 1 600px;
}
.footer-column {
  flex: 1;
  min-width: 150px;
}
.footer-column h3 {
  margin-bottom: 10px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column ul li {
  margin-bottom: 5px;
}
.footer-column ul li a {
  color: #fff;
  transition: color 0.3s;
}
.footer-column ul li a:hover {
  color: #ccc;
}
.responsible-gaming {
  text-align: center;
  flex: 1 1 100%;
  margin-top: 20px;
}
.rg-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}
.footer-final {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  /* Keep header in one row */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  /* Position burger menu closer to the right edge */
  .burger {
    display: block;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  /* Mobile Navigation */
  .nav-menu {
    flex-direction: column;
    gap: 0;
    display: none;
    background-color: #222;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 0;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }
  .nav-menu li .dropdown-content {
    position: static;
    display: none;
  }
  .nav-menu li.active > .dropdown-content {
    display: block;
  }
  /* Transform Top 10 Casino Table into Cards */
  .top10-casinos table thead {
    display: none;
  }
  .top10-casinos table tbody tr {
    display: block;
    border: 1px solid #ccc;
    border-radius: 15px;
    margin-bottom: 20px;
    padding: 15px;
    text-align: center;
  }
  .top10-casinos table tbody tr td {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }
  /* Hide casino position column on mobile */
  .top10-casinos table tbody tr td.rank-col,
  .top10-casinos table thead th.rank-col {
    display: none;
  }
}