.page-arcade {
  color: #333333; /* Dark text for default white body background */
}

.page-arcade__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(180deg, rgba(10, 34, 57, 0.8) 0%, rgba(10, 34, 57, 0.6) 100%);
  min-height: 600px;
}

.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;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-arcade__hero-title {
  font-size: 3.5rem;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-arcade__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A2239;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-arcade__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-arcade__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-arcade__section-title {
  font-size: 2.8rem;
  color: #0A2239;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-arcade__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-arcade__text-content {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-arcade__image-content {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-arcade__action-button {
  display: inline-block;
  background-color: #0A2239;
  color: #FFD700;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-arcade__action-button:hover {
  background-color: #1a3a5a;
}

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

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

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

.page-arcade__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-arcade__card-title {
  font-size: 1.8rem;
  color: #0A2239;
  margin-bottom: 15px;
}

.page-arcade__card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-arcade__card-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A2239;
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-arcade__card-button:hover {
  background-color: #e6c200;
}

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

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

.page-arcade__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #0A2239;
  color: #FFD700;
  border-radius: 50%;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade__step-title {
  font-size: 1.8rem;
  color: #0A2239;
  margin-bottom: 15px;
}

.page-arcade__step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-arcade__step-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A2239;
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-arcade__step-button:hover {
  background-color: #e6c200;
}

.page-arcade__faq-items {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-arcade__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  padding: 25px;
}

.page-arcade__faq-question {
  font-size: 1.3rem;
  color: #0A2239;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-arcade__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: #FFD700;
  transition: transform 0.3s ease;
}

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

.page-arcade__faq-answer {
  font-size: 1rem;
  line-height: 1.7;
  color: #666666;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.page-arcade__faq-answer.active {
  max-height: 200px; /* Adjust as needed for content */
  padding-top: 15px;
}

.page-arcade__cta-section {
  background-color: #0A2239;
  color: #ffffff;
  padding: 80px 20px;
}

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

.page-arcade__cta-section .page-arcade__text-content {
  color: #f0f0f0;
}

.page-arcade__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A2239;
  padding: 18px 45px;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
  margin-top: 30px;
}

.page-arcade__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-5px);
}

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

  .page-arcade__hero-description {
    font-size: 1.1rem;
  }

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

@media (max-width: 768px) {
  .page-arcade__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }

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

  .page-arcade__hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-arcade__hero-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-arcade__content-wrapper {
    padding: 40px 15px;
  }

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

  .page-arcade__text-content {
    font-size: 0.95rem;
  }

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

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

  .page-arcade__steps {
    grid-template-columns: 1fr;
  }

  .page-arcade__faq-question {
    font-size: 1.1rem;
  }

  .page-arcade__cta-section {
    padding: 60px 15px;
  }

  .page-arcade__cta-button {
    padding: 15px 30px;
    font-size: 1.2rem;
  }

  /* Ensure content images are responsive and do not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto; /* Important for preventing horizontal scroll */
  }

  /* Content images must be at least 200px */
  .page-arcade__image-content, .page-arcade__card-image {
    min-width: 200px;
    min-height: 200px;
  }
}

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

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

  .page-arcade__hero-button {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  .page-arcade__card-title {
    font-size: 1.5rem;
  }

  .page-arcade__step-title {
    font-size: 1.5rem;
  }

  .page-arcade__faq-question {
    font-size: 1rem;
  }

  .page-arcade__cta-button {
    font-size: 1rem;
    padding: 12px 25px;
  }
}