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

.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 0;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 400px; /* Ensure hero image has a minimum height */
  z-index: 1;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)); /* Overlay for text readability */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* Match hero image min-height for content visibility */
}

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

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

.page-arcade__hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.page-arcade__button--primary {
  background-color: #FFD700; /* Gold primary color */
  color: #8B0000; /* Dark red for text */
  border: 2px solid #FFD700;
}

.page-arcade__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-arcade__button--secondary {
  background-color: #8B0000; /* Dark red auxiliary color */
  color: #FFD700; /* Gold for text */
  border: 2px solid #8B0000;
}

.page-arcade__button--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-arcade__section-title {
  font-size: 2.2em;
  color: #8B0000; /* Dark red auxiliary color */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

.page-arcade__games-showcase,
.page-arcade__why-ph444,
.page-arcade__getting-started,
.page-arcade__testimonials,
.page-arcade__faq,
.page-arcade__cta-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-arcade__game-card,
.page-arcade__feature-item,
.page-arcade__testimonial-card,
.page-arcade__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px 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,
.page-arcade__feature-item:hover,
.page-arcade__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-arcade__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.page-arcade__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-arcade__feature-link,
.page-arcade__faq-link {
  color: #8B0000; /* Dark red auxiliary color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-arcade__feature-link:hover,
.page-arcade__faq-link:hover {
  color: #FFD700; /* Gold on hover */
}

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

.page-arcade__step-card {
  background-color: #fefefe;
  border: 1px solid #eee;
  padding: 30px;
  position: relative;
}

.page-arcade__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #8B0000; /* Dark red */
  color: #FFD700; /* Gold */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade__testimonial-text {
  font-style: italic;
  color: #444444;
}

.page-arcade__testimonial-author {
  font-weight: bold;
  color: #8B0000; /* Dark red */
  margin-top: 15px;
}

.page-arcade__faq-list {
  margin-top: 30px;
}

.page-arcade__faq-item {
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  text-align: left;
}

.page-arcade__faq-question {
  font-size: 1.2em;
  color: #8B0000; /* Dark red */
  margin-bottom: 10px;
}

.page-arcade__faq-answer {
  color: #555555;
}

.page-arcade__cta-bottom {
  background-color: #8B0000; /* Dark red background */
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  margin-top: 50px;
  border-radius: 10px;
}

.page-arcade__cta-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold */
  margin-bottom: 20px;
}

.page-arcade__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

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

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

  .page-arcade__game-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-arcade {
    padding-top: var(--header-offset, 120px); /* Ensure mobile also respects header offset */
  }

  .page-arcade__hero-content {
    padding: 60px 15px;
    min-height: 350px;
  }

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

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

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

  .page-arcade__button {
    width: 100%;
    padding: 10px 20px;
  }

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

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

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

  .page-arcade__game-image {
    height: 200px;
  }

  .page-arcade__game-title,
  .page-arcade__feature-title,
  .page-arcade__step-title {
    font-size: 1.3em;
  }

  .page-arcade__feature-icon {
    width: 60px;
    height: 60px;
  }

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

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

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

@media (max-width: 480px) {
  .page-arcade__hero-content {
    min-height: 300px;
  }

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

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

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