.page-arcade {
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #FFFFFF; /* Explicitly set page background for consistency */
}

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

.page-arcade__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

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

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

.page-arcade__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #F0F0F0;
}

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

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

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

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

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

.page-arcade__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-arcade__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Slightly transparent to let text stand out */
}

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

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

.page-arcade__section-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

.page-arcade__subsection-title {
  font-size: 2em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #000000;
}

.page-arcade__info-section, .page-arcade__features-section, .page-arcade__get-started-section, .page-arcade__mobile-section, .page-arcade__support-section, .page-arcade__responsible-gaming-section, .page-arcade__cta-section {
  padding: 60px 0;
}

.page-arcade__info-section {
  background-color: #F8F8F8;
}

.page-arcade__games-grid {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-arcade__game-card {
  background-color: #F8F8F8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-arcade__game-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #000000;
  padding: 0 20px;
}

.page-arcade__game-description {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 20px;
}

.page-arcade__features-section {
  background-color: #000000;
  color: #FFFFFF;
}

.page-arcade__features-section .page-arcade__section-title {
  color: #FFFFFF;
}

.page-arcade__features-grid {
  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: 12px;
  padding: 30px;
  text-align: left;
}

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

.page-arcade__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #F0F0F0;
}

.page-arcade__get-started-section {
  background-color: #F8F8F8;
}

.page-arcade__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-arcade__step-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  padding: 30px;
}

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

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

.page-arcade__mobile-section {
  background-color: #FFFFFF;
}

.page-arcade__mobile-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.page-arcade__mobile-content {
  flex: 1;
}

.page-arcade__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-arcade__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure mobile image meets min size */
  min-height: 200px;
}

.page-arcade__mobile-buttons {
  margin-top: 30px;
}

.page-arcade__support-section, .page-arcade__responsible-gaming-section {
  background-color: #F8F8F8;
  text-align: center;
}

.page-arcade__support-links {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-arcade__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
}

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

.page-arcade__cta-section .page-arcade__section-text {
  color: #F0F0F0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

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

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding: 60px 15px;
  }

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

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

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

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

  .page-arcade__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-arcade__subsection-title {
    font-size: 1.6em;
  }

  .page-arcade__info-section, .page-arcade__features-section, .page-arcade__get-started-section, .page-arcade__mobile-section, .page-arcade__support-section, .page-arcade__responsible-gaming-section, .page-arcade__cta-section {
    padding: 40px 0;
  }

  .page-arcade__grid, .page-arcade__features-grid, .page-arcade__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-arcade__game-image {
    height: 200px;
  }

  .page-arcade__mobile-layout {
    flex-direction: column;
  }

  .page-arcade__mobile-image-wrapper {
    margin-top: 30px;
  }

  .page-arcade__support-links {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure all images within content area are responsive and not smaller than 200px */
  .page-arcade img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
    object-fit: cover;
  }
  
  .page-arcade__hero-image {
    min-width: unset;
    min-height: unset;
  }
}

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

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

  .page-arcade__subsection-title {
    font-size: 1.4em;
  }

  .page-arcade__hero-buttons {
    flex-direction: column;
  }
}