.page-arcade {
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-arcade__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(252, 188, 69, 0.8);
}

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

.page-arcade__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color for CTA */
  color: #000000;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-arcade__hero-button:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-arcade__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
  overflow: hidden;
}

.page-arcade__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-arcade__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-arcade__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
  color: #333333;
}

.page-arcade__what-are-arcade,
.page-arcade__categories,
.page-arcade__featured-games,
.page-arcade__why-play,
.page-arcade__how-to-start,
.page-arcade__faq {
  padding: 60px 0;
}

.page-arcade__categories {
  background-color: #f8f8f8;
}

.page-arcade__category-grid,
.page-arcade__game-grid,
.page-arcade__why-grid,
.page-arcade__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-arcade__category-card,
.page-arcade__game-card,
.page-arcade__why-item,
.page-arcade__step-card {
  background-color: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-arcade__category-card:hover,
.page-arcade__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-arcade__category-image,
.page-arcade__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-arcade__category-title,
.page-arcade__game-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-arcade__category-description,
.page-arcade__game-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-arcade__category-button,
.page-arcade__game-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-arcade__category-button:hover,
.page-arcade__game-button:hover {
  background-color: #333333;
}

.page-arcade__why-item-title,
.page-arcade__step-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-arcade__why-item-description,
.page-arcade__step-description {
  font-size: 1em;
  color: #555555;
}

.page-arcade__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-arcade__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-arcade__cta-button:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-arcade__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 25px;
}

.page-arcade__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-arcade__faq-answer {
  font-size: 1em;
  color: #555555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding: 60px 15px;
  }

  .page-arcade__hero-title {
    font-size: 2.5em;
  }

  .page-arcade__hero-description {
    font-size: 1em;
  }

  .page-arcade__hero-button {
    font-size: 1.1em;
    padding: 12px 30px;
  }

  .page-arcade__section-title {
    font-size: 2em;
  }

  .page-arcade__section-text {
    font-size: 0.95em;
  }

  .page-arcade__category-grid,
  .page-arcade__game-grid,
  .page-arcade__why-grid,
  .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-arcade__category-card,
  .page-arcade__game-card,
  .page-arcade__why-item,
  .page-arcade__step-card {
    padding: 20px;
  }

  .page-arcade__category-image,
  .page-arcade__game-image {
    height: auto; /* Allow image to scale */
    max-width: 100%; /* Ensure images don't overflow */
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px; /* Maintain minimum size */
  }

  /* Ensure all images within .page-arcade are responsive and don't overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }

  .page-arcade__cta-button {
    font-size: 1.2em;
    padding: 15px 35px;
  }

  .page-arcade__faq-question {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }

  .page-arcade__hero-button {
    font-size: 1em;
    padding: 10px 25px;
  }

  .page-arcade__section-title {
    font-size: 1.8em;
  }

  .page-arcade__cta-button {
    font-size: 1em;
    padding: 12px 30px;
  }
}