.page-arcade {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-arcade__section {
  padding: 60px 20px;
  margin-bottom: 0;
}

.page-arcade__section--dark {
  background-color: #0A2463;
  color: #ffffff;
}

.page-arcade__section--light-bg {
  background-color: #f5f5f5;
  color: #333333;
}

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

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

.page-arcade__text-content {
  max-width: 900px;
  margin: 0 auto 20px auto;
  font-size: 1.1em;
  text-align: center;
}

.page-arcade__button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.05em;
  text-align: center;
}

.page-arcade__button--primary {
  background-color: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

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

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

.page-arcade__section--dark .page-arcade__button--secondary {
  color: #FFD700;
  border-color: #FFD700;
}

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

.page-arcade__section--dark .page-arcade__button--secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
}

.page-arcade__button--small {
  padding: 8px 20px;
  font-size: 0.95em;
}

/* Hero Section */
.page-arcade__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Desktop header offset */
}

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

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

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-arcade__hero-image-wrapper {
  max-width: 1200px;
  width: 100%;
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Game Types Grid */
.page-arcade__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

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

.page-arcade__game-card-title {
  font-size: 1.7em;
  color: #0A2463;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Why Choose Section */
.page-arcade__feature-list {
  list-style: none;
  padding: 0;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-arcade__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-arcade__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Getting Started Section */
.page-arcade__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-arcade__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade__step-title {
  font-size: 1.8em;
  color: #0A2463;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-arcade__step-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Mobile App Section */
.page-arcade__app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 40px;
}

.page-arcade__app-text {
  flex: 1;
  text-align: left;
}

.page-arcade__app-image-wrapper {
  flex: 1;
  min-width: 250px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-arcade__app-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 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 {
    flex-direction: column;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px); /* Mobile header offset */
  }
  .page-arcade__hero-title {
    font-size: 2.2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-ctas {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__section {
    padding: 40px 15px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-arcade__text-content {
    font-size: 0.95em;
  }
  .page-arcade__button {
    width: 100%;
  }
  .page-arcade__game-grid, .page-arcade__feature-list, .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__game-card-image {
    height: 200px;
  }
  .page-arcade__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-arcade__app-text {
    text-align: center;
  }
  .page-arcade__app-image-wrapper {
    margin-top: 30px;
  }
  /* Ensure content images do not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* Maintain aspect ratio and cover space */
  }
  /* Content area images must be at least 200px */
  .page-arcade__game-card-image, .page-arcade__app-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.8em;
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__section-title {
    font-size: 1.5em;
  }
  .page-arcade__button {
    padding: 10px 20px;
    font-size: 1em;
  }
}

/* Ensure all images in content area are at least 200px */
.page-arcade img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}