.page-arcade {
  color: #000000; /* Dark text for light body background */
  background-color: var(--secondary-color); /* Matches body background: #FFFFFF */
}

.page-arcade__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
  text-align: center;
}

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

.page-arcade__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF; /* White text over hero image */
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for readability */
  border-radius: 8px;
  margin: 20px;
}

.page-arcade__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

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

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

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

.page-arcade__btn--register {
  background-color: #000000; /* Primary color */
  color: #FFFFFF; /* Register button text color */
  border: 2px solid #FFFFFF;
}

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

.page-arcade__btn--login, .page-arcade__btn--play, .page-arcade__btn--play-small, .page-arcade__btn--deposit-small, .page-arcade__btn--download, .page-arcade__btn--cta {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade__btn--login:hover, .page-arcade__btn--play:hover, .page-arcade__btn--play-small:hover, .page-arcade__btn--deposit-small:hover, .page-arcade__btn--download:hover, .page-arcade__btn--cta:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

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

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

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

.page-arcade__about-section, .page-arcade__benefits-section, .page-arcade__how-to-start-section, .page-arcade__faq-section, .page-arcade__cta-section {
  padding: 60px 0;
}

.page-arcade__featured-games-section {
  background-color: #f8f8f8;
  padding: 80px 0;
}

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

.page-arcade__card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.page-arcade__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  display: block; /* Ensure image behaves as block */
}

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

.page-arcade__card-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  flex-grow: 1;
  padding: 0 20px 20px;
}

.page-arcade__btn--play {
  margin-top: auto; /* Push button to bottom */
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-arcade__benefits-item {
  background-color: #FFFFFF;
  border-left: 5px solid #FCBC45;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-arcade__benefits-heading {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-arcade__benefits-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-arcade__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-arcade__step-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

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

.page-arcade__btn--register-small, .page-arcade__btn--deposit-small, .page-arcade__btn--play-small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: auto; /* Push button to bottom */
    margin-left: auto;
    margin-right: auto;
}

.page-arcade__download-app-cta {
    display: flex;
    align-items: center;
    background-color: #000000; /* Dark background for the CTA */
    color: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    margin-top: 60px;
    gap: 40px;
}

.page-arcade__app-image {
    width: 300px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    display: block; /* Ensure image behaves as block */
}

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

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

.page-arcade__app-description {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 25px;
}

.page-arcade__btn--download {
    background-color: #FCBC45;
    color: #000000;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 50px;
}

.page-arcade__faq-section {
    background-color: #f0f0f0;
}

.page-arcade__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-arcade__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-arcade__faq-answer {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

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

.page-arcade__cta-section .page-arcade__section-title {
  color: #FCBC45; /* Highlight title */
}

.page-arcade__cta-section .page-arcade__text-content {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-arcade__btn--cta {
  margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 2.8em;
  }
  .page-arcade__hero-description {
    font-size: 1.15em;
  }
  .page-arcade__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    min-height: 400px;
  }
  .page-arcade__hero-content {
    padding: 15px;
  }
  .page-arcade__hero-title {
    font-size: 2.2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-arcade__container {
    padding: 30px 15px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-arcade__text-content {
    font-size: 0.95em;
  }
  .page-arcade__game-cards, .page-arcade__benefits-list, .page-arcade__steps-list {
    grid-template-columns: 1fr;
  }
  .page-arcade__card-image {
    height: 200px;
  }
  .page-arcade__card-title {
    font-size: 1.5em;
  }
  .page-arcade__benefits-heading, .page-arcade__step-heading {
    font-size: 1.3em;
  }
  .page-arcade__download-app-cta {
      flex-direction: column;
      text-align: center;
      padding: 30px;
      gap: 20px;
  }
  .page-arcade__app-image {
      width: 250px;
      height: auto;
  }
  .page-arcade__app-content {
      text-align: center;
  }
  .page-arcade__app-title {
      font-size: 1.7em;
  }
  .page-arcade__faq-question {
      font-size: 1.1em;
  }
  /* CRITICAL: Ensure all images within .page-arcade are responsive and do not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
}

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