.page-arcade {
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
}

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

.page-arcade__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF;
  text-align: center;
  padding-bottom: 60px;
  overflow: hidden; /* Hide overflow from image */
}

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

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

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

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

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

.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--primary {
  background-color: #FCBC45; /* Login color for primary action */
  color: #000000;
}

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

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

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

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

.page-arcade__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
}

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

.page-arcade__intro-section,
.page-arcade__features-section,
.page-arcade__popular-games-section,
.page-arcade__cta-section,
.page-arcade__responsible-gaming,
.page-arcade__download-app {
  padding: 60px 0;
}

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

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

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

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

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

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

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FCBC45;
  color: #000000;
}

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

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

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

.page-arcade__cta-section .page-arcade__section-title::after {
  background-color: #FCBC45;
}

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

.page-arcade__responsible-gaming .page-arcade__text-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-arcade__responsible-gaming .page-arcade__text-link: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__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding-top: var(--header-offset, 80px);
    padding-bottom: 40px;
  }

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

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

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

  .page-arcade__button {
    width: 80%;
    margin: 0 auto;
  }

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

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

  .page-arcade__intro-section,
  .page-arcade__features-section,
  .page-arcade__popular-games-section,
  .page-arcade__cta-section,
  .page-arcade__responsible-gaming,
  .page-arcade__download-app {
    padding: 40px 0;
  }

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

  .page-arcade__feature-image,
  .page-arcade__game-image {
    max-width: 100%;
    height: auto;
  }

  /* Ensure all images within .page-arcade do not cause horizontal scrolling */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }

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

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

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

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

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