.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 not hidden by fixed header */
}

.page-arcade__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF; /* White text for hero content over dark image */
  text-align: center;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

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

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-arcade__hero-actions {
  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, color 0.3s ease;
  min-width: 200px;
  text-align: center;
}

.page-arcade__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Black text for contrast */
  border: 2px solid #FCBC45;
}

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

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

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

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  min-width: unset;
}

.page-arcade__button--text {
  background: none;
  border: none;
  color: #000000;
  text-decoration: underline;
  padding: 0;
  min-width: unset;
}

.page-arcade__button--text:hover {
  color: #555555;
}

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

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

.page-arcade__features-section,
.page-arcade__popular-games-section,
.page-arcade__how-to-start-section,
.page-arcade__promo-section,
.page-arcade__responsible-gaming-section,
.page-arcade__faq-section,
.page-arcade__cta-section {
  padding: 60px 0;
}

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

.page-arcade__feature-card,
.page-arcade__game-card,
.page-arcade__step-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-arcade__feature-card:hover,
.page-arcade__game-card:hover,
.page-arcade__step-card:hover {
  transform: translateY(-10px);
}

.page-arcade__feature-icon,
.page-arcade__step-icon {
  width: 100%;
  height: 200px; /* Minimum display size */
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-arcade__feature-title,
.page-arcade__game-title,
.page-arcade__step-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
}

.page-arcade__feature-description,
.page-arcade__game-description,
.page-arcade__step-description {
  color: #666666;
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-arcade__promo-section {
  background-color: #f8f8f8;
}

.page-arcade__promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-arcade__promo-image {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 12px;
  height: auto;
  object-fit: cover;
}

.page-arcade__promo-details {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-arcade__promo-subtitle {
  font-size: 2em;
  color: #000000;
  margin-bottom: 15px;
}

.page-arcade__promo-description {
  color: #666666;
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

.page-arcade__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 25px;
}

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

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

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

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

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

.page-arcade__cta-section {
  background-color: #000000; /* Dark background for strong CTA */
  color: #FFFFFF;
  text-align: center;
}

.page-arcade__cta-section .page-arcade__section-title,
.page-arcade__cta-section .page-arcade__section-intro {
  color: #FFFFFF;
}

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

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

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

  .page-arcade__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }

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

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

  .page-arcade__button {
    padding: 12px 25px;
    min-width: 180px;
  }

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

  .page-arcade__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }

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

  .page-arcade__promo-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-arcade__promo-image,
  .page-arcade__promo-details {
    min-width: unset;
    width: 100%;
  }

  .page-arcade__promo-subtitle {
    font-size: 1.8em;
  }

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

  /* Ensure all content area images are responsive and do not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto; /* Important for preventing horizontal scroll */
  }

  /* Specific overrides for images in cards/steps to maintain min-size on mobile if not already covered */
  .page-arcade__feature-icon, 
  .page-arcade__step-icon, 
  .page-arcade__game-image, 
  .page-arcade__promo-image {
    min-width: 200px; /* Ensure minimum display size */
    min-height: 200px; /* Ensure minimum display size */
    width: 100%; /* Override to fit container */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Or contain, depending on desired effect */
  }
}

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

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

  .page-arcade__button {
    width: 100%;
  }

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

  .page-arcade__promo-subtitle {
    font-size: 1.5em;
  }
}