.page-arcade {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure main content starts below header */
  background-color: #000; /* Ensure a consistent dark background for the page content */
}

.page-arcade__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 70vh;
  overflow: hidden;
}

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

.page-arcade__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6); /* Dim image for text readability */
}

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

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

.page-arcade__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-arcade__btn--primary {
  background-color: #FFD700;
  color: #1A1A2E;
  border: 2px solid #FFD700;
}

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

.page-arcade__btn--secondary {
  background-color: #1A1A2E;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-arcade__btn--secondary:hover {
  background-color: #33334d;
  transform: translateY(-3px);
}

.page-arcade__btn--outline {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-arcade__btn--outline:hover {
  background-color: #FFD700;
  color: #1A1A2E;
  transform: translateY(-3px);
}

.page-arcade__btn--small {
  padding: 10px 20px;
  font-size: 1em;
}

.page-arcade__btn--large {
  padding: 18px 35px;
  font-size: 1.3em;
}

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

.page-arcade__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
}

.page-arcade__section-description {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

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

.page-arcade__feature-card,
.page-arcade__game-card {
  background-color: #1A1A2E;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-arcade__feature-card:hover,
.page-arcade__game-card:hover {
  transform: translateY(-10px);
}

.page-arcade__feature-card img,
.page-arcade__game-card img {
  width: 100%;
  max-width: 400px; /* Ensure images are not too wide for cards */
  height: auto;
  min-height: 200px; /* Minimum display height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
}

.page-arcade__feature-card-title,
.page-arcade__game-card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-arcade__feature-card-description,
.page-arcade__game-card-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  flex-grow: 1; /* Make descriptions take available space */
}

.page-arcade__game-card .page-arcade__btn--small {
  margin-top: 20px;
}

.page-arcade__how-to-play {
  margin-top: 80px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #1A1A2E, #0d0d1a);
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

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

.page-arcade__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFD700;
  background-color: #1A1A2E;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 3px solid #FFD700;
}

.page-arcade__step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-arcade__step-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  flex-grow: 1;
}

.page-arcade__step-card .page-arcade__btn--outline {
  margin-top: 25px;
}

.page-arcade__faq-section {
  margin-top: 80px;
  padding: 40px 20px;
}

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

.page-arcade__faq-question {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

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

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

.page-arcade__cta-section {
  background: linear-gradient(45deg, #FFD700, #e6c200);
  padding: 80px 20px;
  text-align: center;
  border-radius: 15px;
  margin-top: 80px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  color: #1A1A2E;
}

.page-arcade__cta-section .page-arcade__section-title {
  color: #1A1A2E;
  font-size: 3em;
  margin-bottom: 20px;
}

.page-arcade__cta-section .page-arcade__section-description {
  color: #333333;
  margin-bottom: 40px;
  font-size: 1.2em;
}

.page-arcade__cta-section .page-arcade__btn--large {
  background-color: #1A1A2E;
  color: #FFD700;
  border: 2px solid #1A1A2E;
}

.page-arcade__cta-section .page-arcade__btn--large:hover {
  background-color: #33334d;
  color: #FFD700;
  border-color: #33334d;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 3em;
  }
  .page-arcade__section-title {
    font-size: 2.5em;
  }
  .page-arcade__cta-section .page-arcade__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__btn {
    width: 80%;
  }
  .page-arcade__section-title {
    font-size: 2em;
  }
  .page-arcade__section-description {
    font-size: 0.95em;
  }
  .page-arcade__features-grid,
  .page-arcade__game-grid,
  .page-arcade__steps-container {
    grid-template-columns: 1fr;
  }
  .page-arcade__feature-card img,
  .page-arcade__game-card img {
    max-width: 100%;
    width: 100%; /* Ensure images don't overflow */
    height: auto; /* Maintain aspect ratio */
    min-height: 200px; /* Enforce minimum height for mobile */
  }
  .page-arcade__cta-section .page-arcade__section-title {
    font-size: 2em;
  }
  .page-arcade__btn--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }
  /* Ensure all images within .page-arcade have max-width: 100% and height: auto */
  .page-arcade img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-arcade {
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__cta-section .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__feature-card-title,
  .page-arcade__game-card-title {
    font-size: 1.4em;
  }
  .page-arcade__step-title {
    font-size: 1.5em;
  }
  .page-arcade__faq-question {
    font-size: 1.2em;
  }
}