.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__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #f8f8f8;
  text-align: center;
  gap: 40px;
}

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

.page-arcade__hero-title {
  font-size: 3.2em;
  color: #000000; /* Main color */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

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

.page-arcade__button--register {
  background-color: #000000; /* Primary brand color */
  color: #FFFFFF; /* White text for register */
  border: 2px solid #000000;
}

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

.page-arcade__button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for login */
  border: 2px solid #FCBC45;
}

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

.page-arcade__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Limit hero image width */
  margin-top: 40px;
}

.page-arcade__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-arcade__games-overview,
.page-arcade__why-choose,
.page-arcade__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-arcade__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

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

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

.page-arcade__game-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum display size */
  min-height: 200px;
  object-fit: cover;
}

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

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

.page-arcade__button--play {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-arcade__feature-icon {
  width: 100%;
  max-width: 250px; /* Adjust max-width for feature icons */
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum display size */
  min-height: 150px;
  object-fit: contain;
}

.page-arcade__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  padding: 80px 20px;
  border-radius: 15px;
  gap: 40px;
}

.page-arcade__cta-content {
  max-width: 800px;
  text-align: center;
}

.page-arcade__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFFFF;
}

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

.page-arcade__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
  background-color: #FCBC45; /* Highlight color for CTA button */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-arcade__cta-image-wrapper {
  width: 100%;
  max-width: 600px;
}

.page-arcade__cta-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-arcade__hero-section {
    flex-direction: row;
    text-align: left;
    padding: 80px 40px;
  }

  .page-arcade__hero-content {
    text-align: left;
    margin-right: 40px;
  }

  .page-arcade__hero-actions {
    justify-content: flex-start;
  }

  .page-arcade__cta-section {
    flex-direction: row;
    padding: 80px 40px;
    text-align: left;
  }

  .page-arcade__cta-content {
    text-align: left;
    margin-right: 40px;
  }
}

@media (max-width: 768px) {
  .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%;
    max-width: 300px;
  }

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

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

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

  .page-arcade__game-image,
  .page-arcade__feature-icon,
  .page-arcade__cta-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images maintain minimum display size */
    min-height: 150px;
    object-fit: cover;
  }

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

  .page-arcade__hero-section,
  .page-arcade__cta-section {
    padding: 40px 15px;
  }

  .page-arcade__games-overview,
  .page-arcade__why-choose,
  .page-arcade__cta-section {
    margin: 40px auto;
    padding: 0 15px;
  }

  .page-arcade {
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
  }
}