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

.page-arcade__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  background-color: #1A237E; /* Fallback background */
}

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

.page-arcade__hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-arcade__hero-content {
  color: #ffffff;
}

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

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

.page-arcade__cta-button {
  display: inline-block;
  background-color: #FFC107;
  color: #1A237E;
  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__cta-button:hover {
  background-color: #e5ad00;
  transform: translateY(-3px);
}

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

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

.page-arcade__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFC107;
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-arcade__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #444444;
  text-align: justify;
}

.page-arcade__about-section, .page-arcade__game-types-section, .page-arcade__why-choose-section, .page-arcade__how-to-play-section, .page-arcade__promotions-section, .page-arcade__security-section, .page-arcade__mobile-section, .page-arcade__faq-section, .page-arcade__register-cta-section {
  padding: 60px 0;
}

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

.page-arcade__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
}

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

.page-arcade__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 4px solid #FFC107;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-arcade__game-title {
  font-size: 1.8em;
  color: #1A237E;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-arcade__game-description {
  font-size: 1em;
  color: #666666;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-arcade__game-button {
  display: inline-block;
  background-color: #1A237E;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-arcade__game-button:hover {
  background-color: #2b3896;
}

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

.page-arcade__advantage-item {
  background-color: #f8f8f8;
  border-left: 5px solid #FFC107;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-arcade__advantage-item:hover {
  transform: translateY(-5px);
}

.page-arcade__advantage-icon {
  font-size: 2.5em;
  color: #1A237E;
  margin-bottom: 15px;
  display: block;
}

.page-arcade__advantage-title {
  font-size: 1.5em;
  color: #1A237E;
  margin-bottom: 10px;
}

.page-arcade__advantage-text {
  font-size: 1em;
  color: #555555;
}

.page-arcade__learn-more-button {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-arcade__step-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-arcade__step-title {
  font-size: 1.6em;
  color: #1A237E;
  margin-bottom: 10px;
}

.page-arcade__step-description {
  font-size: 1.05em;
  color: #555555;
}

.page-arcade__step-description a {
  color: #1A237E;
  text-decoration: none;
  font-weight: bold;
}

.page-arcade__step-description a:hover {
  text-decoration: underline;
}

.page-arcade__faq-list {
  margin-top: 40px;
}

.page-arcade__faq-item {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-arcade__faq-question {
  font-size: 1.3em;
  color: #1A237E;
  padding: 20px;
  cursor: pointer;
  background-color: #eef;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-arcade__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-arcade__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-arcade__faq-answer {
  font-size: 1.05em;
  color: #555555;
  padding: 0 20px 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-arcade__faq-answer.active {
  max-height: 200px; /* Adjust based on expected content length */
  padding-top: 10px;
}

.page-arcade__register-cta-section {
  background-color: #1A237E;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  margin-top: 60px;
}

.page-arcade__register-cta-section .page-arcade__section-title {
  color: #FFC107;
}

.page-arcade__register-cta-section .page-arcade__paragraph {
  color: #f0f0f0;
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-arcade__cta-button--final {
  background-color: #FFC107;
  color: #1A237E;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
}

.page-arcade__cta-button--final:hover {
  background-color: #e5ad00;
  transform: translateY(-4px);
}

/* 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;
  }
  .page-arcade__game-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    min-height: 450px;
    padding: 30px 15px;
  }
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-arcade__content-wrapper {
    padding: 30px 15px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__game-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__game-image {
    height: 200px;
    min-width: 200px; /* Ensure minimum size is maintained */
    min-height: 200px; /* Ensure minimum size is maintained */
    max-width: 100%;
    height: auto;
  }
  .page-arcade__advantage-list {
    grid-template-columns: 1fr;
  }
  .page-arcade__advantage-icon {
    font-size: 2em;
  }
  .page-arcade__advantage-title {
    font-size: 1.3em;
  }
  .page-arcade__step-title {
    font-size: 1.4em;
  }
  .page-arcade__faq-question {
    font-size: 1.2em;
  }
  .page-arcade__register-cta-section {
    padding: 60px 15px;
  }
  .page-arcade__cta-button--final {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Mobile content area image constraints */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-container {
    padding: 20px;
  }
  .page-arcade__section-title {
    font-size: 1.6em;
  }
  .page-arcade__game-image {
    height: 180px;
  }
  .page-arcade__game-title {
    font-size: 1.5em;
  }
  .page-arcade__game-description {
    font-size: 0.95em;
  }
  .page-arcade__faq-question {
    font-size: 1.1em;
  }
}