.page-arcade {
  color: #333333; /* Default text color for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
}

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

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-arcade__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFC107;
  line-height: 1.2;
}

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

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

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

.page-arcade__button--primary {
  background-color: #FFC107;
  color: #007BFF;
}

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

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

.page-arcade__button--secondary:hover {
  background-color: #FFC107;
  color: #007BFF;
  transform: translateY(-2px);
}

.page-arcade__button--light-primary {
  background-color: #ffffff;
  color: #007BFF;
}

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

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

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

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #007BFF;
  color: #ffffff;
}

.page-arcade__button--small:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.page-arcade__section-padding {
  padding: 80px 20px;
}

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

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

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

.page-arcade__section-title--light {
  color: #ffffff;
}

.page-arcade__section-title--light::after {
  background-color: #FFC107;
}

.page-arcade__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__section-text a {
  color: #007BFF;
  text-decoration: underline;
}

.page-arcade__section-text--light {
  color: #f0f0f0;
}

.page-arcade__section-text--light a {
  color: #FFC107;
}

.page-arcade__bg--dark {
  background-color: #007BFF;
  color: #ffffff;
}

.page-arcade__bg--accent {
  background-color: #FFC107;
  color: #333333;
}

.page-arcade__bg--primary {
  background-color: #007BFF;
  color: #ffffff;
}

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

.page-arcade__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-arcade__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 3px solid #FFC107;
}

.page-arcade__game-card-title {
  font-size: 1.5em;
  color: #FFC107;
  margin: 20px 15px 10px 15px;
}

.page-arcade__game-card-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

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

.page-arcade__feature-item {
  text-align: center;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

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

.page-arcade__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-arcade__feature-title {
  font-size: 1.4em;
  color: #007BFF;
  margin-bottom: 15px;
}

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

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

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

.page-arcade__step-title {
  font-size: 1.6em;
  color: #007BFF;
  margin-bottom: 15px;
}

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

.page-arcade__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  overflow: hidden;
}

.page-arcade__promo-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 350px;
}

.page-arcade__promo-content {
  padding: 30px;
  text-align: center;
}

.page-arcade__promo-title {
  font-size: 2em;
  color: #007BFF;
  margin-bottom: 15px;
}

.page-arcade__promo-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-arcade__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #f0f0f0;
  border-left: 5px solid #FFC107;
}

.page-arcade__benefit-item--light {
  color: #f0f0f0;
}

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

.page-arcade__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-arcade__faq-question {
  font-size: 1.2em;
  color: #007BFF;
  padding: 20px 25px;
  cursor: pointer;
  margin: 0;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-arcade__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FFC107;
  transition: transform 0.3s ease;
}

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

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

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

.page-arcade__cta-section {
  text-align: center;
}

.page-arcade__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__section-title {
    font-size: 2em;
  }
  .page-arcade__promo-title {
    font-size: 1.8em;
  }
  .page-arcade__promo-card {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-arcade {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-arcade__hero-section {
    min-height: 400px;
    padding: 30px 15px;
  }
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-arcade__section-padding {
    padding: 50px 15px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-text {
    font-size: 0.95em;
  }
  .page-arcade__game-grid, .page-arcade__feature-grid, .page-arcade__steps-list, .page-arcade__benefits-list {
    grid-template-columns: 1fr;
  }
  .page-arcade__promo-image {
    height: 200px;
  }
  .page-arcade__promo-title {
    font-size: 1.5em;
  }
  .page-arcade__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-arcade__faq-question::after {
    right: 20px;
  }
  .page-arcade__faq-answer {
    padding: 0 20px 15px 20px;
  }
  /* Mobile content area images must be responsive */
  .page-arcade__game-card-image,
  .page-arcade__promo-image,
  .page-arcade__feature-icon,
  .page-arcade__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-arcade__game-card-image {
    min-height: 200px; /* Ensure minimum size */
  }
  .page-arcade__feature-icon {
    min-width: 100px; /* Ensure minimum size */
    min-height: 100px; /* Ensure minimum size */
  }
  .page-arcade__container {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.8em;
  }
  .page-arcade__section-title {
    font-size: 1.5em;
  }
  .page-arcade__promo-title {
    font-size: 1.3em;
  }
  .page-arcade__faq-question {
    font-size: 1em;
  }
  .page-arcade__hero-content {
    padding: 15px;
  }
  .page-arcade__button {
    font-size: 1em;
  }
}