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

.page-arcade__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

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

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Highlight with login color */
}

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

.page-arcade__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Main color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(252, 188, 69, 0.4);
}

.page-arcade__hero-button:hover {
  background-color: #FFD700;
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-arcade__introduction-section,
.page-arcade__game-showcase-section,
.page-arcade__why-choose-section,
.page-arcade__tips-section,
.page-arcade__cta-section,
.page-arcade__faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.page-arcade__introduction-heading,
.page-arcade__game-showcase-heading,
.page-arcade__why-choose-heading,
.page-arcade__tips-heading,
.page-arcade__cta-heading,
.page-arcade__faq-heading {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-arcade__introduction-heading::after,
.page-arcade__game-showcase-heading::after,
.page-arcade__why-choose-heading::after,
.page-arcade__tips-heading::after,
.page-arcade__cta-heading::after,
.page-arcade__faq-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-arcade__introduction-text,
.page-arcade__game-showcase-description,
.page-arcade__tips-text,
.page-arcade__faq-answer {
  font-size: 1.1em;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-arcade__game-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-arcade__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-arcade__game-card-title {
  font-size: 1.8em;
  color: #000000;
  margin: 20px 20px 10px;
}

.page-arcade__game-card-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-arcade__game-card-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-arcade__game-card-button:hover {
  background-color: #FFD700;
}

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

.page-arcade__why-choose-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-arcade__why-choose-item-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
}

.page-arcade__why-choose-item-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-arcade__why-choose-item-button {
  display: inline-block;
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-arcade__why-choose-item-button:hover {
  background-color: #333333;
}

.page-arcade__tips-content {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-arcade__tips-item {
  font-size: 1.1em;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.page-arcade__tips-item::before {
  content: '✓';
  color: #FCBC45;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-arcade__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.page-arcade__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 1;
}

.page-arcade__cta-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-arcade__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
}

.page-arcade__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-arcade__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-arcade__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.page-arcade__cta-button--register:hover {
  background-color: #f0f0f0;
}

.page-arcade__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
  box-shadow: 0 4px 15px rgba(252, 188, 69, 0.4);
}

.page-arcade__cta-button--login:hover {
  background-color: #FFD700;
}

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

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

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

.page-arcade__faq-answer a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-arcade__faq-answer a:hover {
  text-decoration: underline;
}

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

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

  .page-arcade__introduction-heading,
  .page-arcade__game-showcase-heading,
  .page-arcade__why-choose-heading,
  .page-arcade__tips-heading,
  .page-arcade__cta-heading,
  .page-arcade__faq-heading {
    font-size: 2.5em;
  }

  .page-arcade__game-card-image,
  .page-arcade__game-card {
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding-top: var(--header-offset, 120px);
    padding: 30px 15px;
  }

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

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

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

  .page-arcade__introduction-section,
  .page-arcade__game-showcase-section,
  .page-arcade__why-choose-section,
  .page-arcade__tips-section,
  .page-arcade__cta-section,
  .page-arcade__faq-section {
    padding: 40px 15px;
  }

  .page-arcade__introduction-heading,
  .page-arcade__game-showcase-heading,
  .page-arcade__why-choose-heading,
  .page-arcade__tips-heading,
  .page-arcade__cta-heading,
  .page-arcade__faq-heading {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-arcade__game-cards {
    grid-template-columns: 1fr;
  }

  .page-arcade__why-choose-list {
    grid-template-columns: 1fr;
  }

  .page-arcade__cta-heading {
    font-size: 2.5em;
  }

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

  .page-arcade__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-arcade__cta-button {
    width: 100%;
    padding: 12px 25px;
    font-size: 1em;
  }

  /* Ensures all images within .page-arcade are responsive and do not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure content area does not cause horizontal scroll */
  .page-arcade {
    overflow-x: hidden;
  }
}

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

  .page-arcade__introduction-heading,
  .page-arcade__game-showcase-heading,
  .page-arcade__why-choose-heading,
  .page-arcade__tips-heading,
.page-arcade__cta-heading,
  .page-arcade__faq-heading {
    font-size: 1.8em;
  }

  .page-arcade__game-card-title {
    font-size: 1.5em;
  }

  .page-arcade__why-choose-item-title {
    font-size: 1.4em;
  }

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