.page-arcade {
  color: #333333; /* Dark text for light body background */
}

.page-arcade__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* Light text for dark background */
  text-align: center;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.page-arcade__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-arcade__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
  white-space: nowrap;
}

.page-arcade__button--primary {
  background-color: #FCBC45; /* Login color for primary CTA */
  color: #000000;
}

.page-arcade__button--primary:hover {
  background-color: #e0a53a;
}

.page-arcade__button--secondary {
  background-color: #FFFFFF; /* Register color for secondary CTA */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade__button--secondary:hover {
  background-color: #f0f0f0;
  border-color: #e0a53a;
}

.page-arcade__hero-image {
  width: 100%;
  max-width: 1000px; /* Limit hero image width for better composition */
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-arcade__content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-arcade__introduction-section,
.page-arcade__game-types-section,
.page-arcade__why-choose-section,
.page-arcade__get-started-section,
.page-arcade__promotions-section,
.page-arcade__faq-section,
.page-arcade__final-cta-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background for content sections */
  text-align: center;
}

.page-arcade__introduction-section {
  background-color: #f5f5f5;
}

.page-arcade__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #000000;
}

.page-arcade__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333333;
  text-align: left;
}

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

.page-arcade__game-card {
  background-color: #fcfcfc;
  border-radius: 10px;
  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;
}

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

.page-arcade__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size for images */
  min-height: 200px;
}

.page-arcade__card-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #000000;
}

.page-arcade__card-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 25px;
  text-align: left;
}

.page-arcade__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-arcade__feature-item {
  background-color: #fcfcfc;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-arcade__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size for images */
  min-height: 200px;
}

.page-arcade__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000000;
}

.page-arcade__feature-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

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

.page-arcade__step-card {
  background-color: #fcfcfc;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

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

.page-arcade__step-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 25px;
  text-align: left;
}

.page-arcade__faq-section {
  background-color: #f5f5f5;
}

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

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

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

.page-arcade__final-cta-section {
  background-color: #000000;
  color: #FFFFFF;
}

.page-arcade__final-cta-section .page-arcade__section-title {
  color: #FFFFFF;
}

.page-arcade__final-cta-section .page-arcade__text-content {
  color: #f0f0f0;
}

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

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

@media (max-width: 768px) {
  .page-arcade__hero-section,
  .page-arcade__introduction-section,
  .page-arcade__game-types-section,
  .page-arcade__why-choose-section,
  .page-arcade__get-started-section,
  .page-arcade__promotions-section,
  .page-arcade__faq-section,
  .page-arcade__final-cta-section {
    padding: 60px 0;
  }

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

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

  .page-arcade__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-arcade__button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

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

  .page-arcade__text-content {
    font-size: 1em;
  }

  .page-arcade__game-grid,
  .page-arcade__feature-list,
  .page-arcade__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-arcade__card-image,
  .page-arcade__feature-icon {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
  
  .page-arcade__game-card,
  .page-arcade__feature-item,
  .page-arcade__step-card,
  .page-arcade__faq-item {
    padding: 20px;
  }

  /* Critical: Prevent content overflow for images */
  .page-arcade img {
    max-width: 100% !important;
    height: auto !important;
  }
}