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

.page-arcade__hero-section {
  background-color: #4B0082; /* Auxiliary color for hero background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-arcade__hero-content {
  max-width: 900px;
}

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

.page-arcade__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-arcade__button--primary {
  background-color: #FFD700; /* Primary gold for main CTA */
  color: #4B0082;
  border: 2px solid #FFD700;
}

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

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

.page-arcade__button--secondary:hover {
  background-color: #FFD700;
  color: #4B0082;
  transform: translateY(-3px);
}

.page-arcade__hero-image {
  max-width: 100%;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-arcade__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-arcade__features-section,
.page-arcade__games-showcase,
.page-arcade__how-to-play,
.page-arcade__faq-section,
.page-arcade__cta-bottom {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-arcade__section-title {
  font-size: 2.5em;
  color: #4B0082; /* Auxiliary color for section titles */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-arcade__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

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

.page-arcade__feature-card {
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-arcade__feature-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold for feature titles */
  margin-bottom: 15px;
}

.page-arcade__feature-text {
  color: #666666;
}

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

.page-arcade__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-arcade__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-arcade__game-title {
  font-size: 1.6em;
  color: #4B0082;
  margin: 20px 15px 10px 15px;
}

.page-arcade__game-text {
  color: #666666;
  padding: 0 15px 20px 15px;
}

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 1em;
  margin-bottom: 20px;
}

.page-arcade__how-to-play {
  background-color: #f9f9f9;
  padding: 60px 20px;
  border-radius: 10px;
  text-align: center;
}

.page-arcade__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-arcade__step-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-arcade__step-title {
  font-size: 1.4em;
  color: #4B0082;
  margin-bottom: 10px;
}

.page-arcade__step-text {
  color: #666666;
}

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

.page-arcade__faq-container {
  max-width: 900px;
  margin: 40px auto;
}

.page-arcade__faq-item {
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-arcade__faq-question {
  font-size: 1.2em;
  color: #4B0082;
  padding: 20px 25px;
  margin: 0;
  cursor: pointer;
  background-color: #fdfdfd;
  border-bottom: 1px solid #eee;
  position: relative;
  transition: background-color 0.3s ease;
}

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

.page-arcade__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-arcade__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-arcade__faq-answer {
  font-size: 1em;
  color: #666666;
  padding: 0 25px 20px 25px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-arcade__faq-answer.active {
  max-height: 200px; /* Adjust based on content */
  padding-top: 15px;
}

.page-arcade__cta-bottom {
  text-align: center;
  background-color: #4B0082;
  color: #ffffff;
  padding: 60px 20px;
  border-radius: 10px;
  margin-bottom: 60px;
}

.page-arcade__cta-bottom .page-arcade__section-title {
  color: #FFD700;
}

.page-arcade__cta-bottom .page-arcade__section-title::after {
  background-color: #FFD700;
}

.page-arcade__cta-bottom .page-arcade__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding: 60px 15px;
  }
  .page-arcade__hero-title {
    font-size: 2.2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 100%;
    max-width: 300px;
  }
  .page-arcade__features-section,
  .page-arcade__games-showcase,
  .page-arcade__how-to-play,
  .page-arcade__faq-section,
  .page-arcade__cta-bottom {
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__steps-list {
    grid-template-columns: 1fr;
  }
  .page-arcade__game-card img, .page-arcade__hero-image img {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }
  .page-arcade__game-card img {
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }
  .page-arcade__faq-question, .page-arcade__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-arcade__faq-question::after {
    right: 15px;
  }
}