.page-arcade {
  color: #333333; /* Dark text for light body 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 section */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-arcade__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly dim the image for text readability */
  z-index: 0;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

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

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

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

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

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

.page-arcade__button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
}

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

.page-arcade__about-section, 
.page-arcade__features-section, 
.page-arcade__popular-games-section, 
.page-arcade__how-to-play-section, 
.page-arcade__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

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

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

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

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

.page-arcade__feature-image, .page-arcade__game-image {
  width: 100%;
  height: 250px; /* Consistent height for images */
  object-fit: cover;
  display: block;
}

.page-arcade__feature-title, .page-arcade__game-title {
  font-size: 1.8em;
  color: #000000;
  margin: 25px 15px 10px 15px;
}

.page-arcade__feature-description, .page-arcade__game-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-arcade__game-card .page-arcade__button--play-game {
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  font-size: 1em;
  margin: 0 20px 20px 20px;
  align-self: center;
}

.page-arcade__game-card .page-arcade__button--play-game:hover {
  background-color: #e0a53b;
}

.page-arcade__call-to-action {
  text-align: center;
  margin-top: 60px;
}

.page-arcade__button--learn-more, .page-arcade__button--get-started, .page-arcade__button--view-all {
  background-color: #000000;
  color: #FFFFFF;
  padding: 18px 40px;
  font-size: 1.1em;
}

.page-arcade__button--learn-more:hover, .page-arcade__button--get-started:hover, .page-arcade__button--view-all:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-arcade__steps-list {
  list-style: none;
  padding: 0;
  margin: 60px auto 0 auto;
  max-width: 800px;
}

.page-arcade__step-item {
  background-color: #f8f8f8;
  border-left: 5px solid #FCBC45;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-arcade__faq-item {
  background-color: #f8f8f8;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

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

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

.page-arcade__faq-answer {
  color: #555555;
  font-size: 1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-arcade__faq-answer.active {
  max-height: 200px; /* Adjust as needed */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-arcade {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-arcade__hero-container {
    padding: 60px 15px;
  }

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

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

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

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

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

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

  .page-arcade__feature-image, .page-arcade__game-image {
    max-width: 100%;
    height: auto; /* Ensure images don't overflow */
  }

  .page-arcade__button--learn-more, .page-arcade__button--get-started, .page-arcade__button--view-all {
    padding: 15px 30px;
  }

  .page-arcade__container {
    padding: 0 15px;
  }
  
  .page-arcade__features-section, 
  .page-arcade__popular-games-section, 
  .page-arcade__how-to-play-section, 
  .page-arcade__faq-section {
    padding: 50px 0;
  }
}