.page-arcade {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-arcade__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  min-height: 500px; /* Ensure hero section has a minimum height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-arcade__hero-container {
  position: relative;
  z-index: 1;
}

.page-arcade__hero-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for text */
  padding: 30px;
  border-radius: 10px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold main color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-arcade__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-arcade__hero-button,
.page-arcade__button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Dark red text for contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-arcade__hero-button:hover,
.page-arcade__button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  color: #6a0000;
}

.page-arcade__button--primary {
  background-color: #FFD700;
  color: #8B0000;
}

.page-arcade__button--primary:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.page-arcade__button--secondary {
  background-color: #8B0000; /* Dark red button */
  color: #FFD700; /* Gold text for contrast */
  margin-left: 20px;
}

.page-arcade__button--secondary:hover {
  background-color: #6a0000;
  color: #e6c200;
}

.page-arcade__button--outline {
  background: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
}

.page-arcade__button--outline:hover {
  background-color: #FFD700;
  color: #8B0000;
}

.page-arcade__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

.page-arcade__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #8B0000;
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-arcade__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-arcade__games-section,
.page-arcade__features-section,
.page-arcade__get-started-section,
.page-arcade__responsible-gaming-section,
.page-arcade__cta-section {
  padding: 40px 0;
}

.page-arcade__game-category {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-arcade__category-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-arcade__category-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-arcade__game-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-arcade__game-list li {
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
  padding: 15px;
  border-left: 5px solid #8B0000;
  border-radius: 5px;
  font-size: 1.05em;
  color: #ffffff;
  text-align: left;
}

.page-arcade__features-grid,
.page-arcade__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade__feature-card,
.page-arcade__step-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-arcade__feature-card:hover,
.page-arcade__step-card:hover {
  transform: translateY(-5px);
}

.page-arcade__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px; /* Constrain height for consistency */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-arcade__feature-title,
.page-arcade__step-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-arcade__feature-description,
.page-arcade__step-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-arcade__cta-section {
  background-color: #8B0000; /* Dark red background for CTA */
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
}

.page-arcade__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-arcade__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 3em;
  }
  .page-arcade__section-title {
    font-size: 2em;
  }
  .page-arcade__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__hero-content {
    padding: 20px;
  }
  .page-arcade__button--secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-arcade__features-grid,
  .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__category-image,
  .page-arcade__feature-icon {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
  }
  .page-arcade__container img {
    max-width: 100%;
    height: auto; /* IMPORTANT: Prevent image overflow on mobile */
  }
  .page-arcade__hero-section {
    padding: 60px 15px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-button,
  .page-arcade__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-arcade__section-title {
    font-size: 1.6em;
  }
  .page-arcade__cta-title {
    font-size: 1.8em;
  }
  .page-arcade__game-category,
  .page-arcade__feature-card,
  .page-arcade__step-card {
    padding: 20px;
  }
}