.page-arcade {
  color: #ffffff; /* Light text on dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-arcade__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #1A202C; /* Main color for hero background */
  gap: 40px;
  overflow: hidden;
}

.page-arcade__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

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

.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-arcade__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #1A202C; /* Dark text on gold */
  border: 2px solid #FFD700;
}

.page-arcade__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-arcade__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-arcade__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.page-arcade__button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-arcade__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-arcade__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

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

.page-arcade__about-section, .page-arcade__popular-games-section, .page-arcade__how-to-play-section, .page-arcade__responsible-gaming-section, .page-arcade__faq-section, .page-arcade__cta-section {
  padding: 80px 0;
  background-color: #2D3748; /* Body background color */
}

.page-arcade__about-section {
  background-color: #1A202C;
}

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

.page-arcade__feature-card, .page-arcade__game-card, .page-arcade__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade__feature-card:hover, .page-arcade__game-card:hover, .page-arcade__step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-arcade__feature-icon, .page-arcade__game-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-arcade__feature-title, .page-arcade__game-title, .page-arcade__step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-arcade__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-arcade__how-to-play-cta {
  text-align: center;
  margin-top: 60px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-arcade__responsible-gaming-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #1A202C;
}

.page-arcade__responsible-gaming-section .page-arcade__section-intro {
  margin-bottom: 40px;
}

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

.page-arcade__accordion-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-arcade__accordion-header {
  width: 100%;
  background-color: rgba(255, 215, 0, 0.15);
  color: #FFD700;
  padding: 20px 25px;
  text-align: left;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-arcade__accordion-header:hover {
  background-color: rgba(255, 215, 0, 0.25);
}

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

.page-arcade__accordion-header.active::after {
  content: '-';
  transform: rotate(0deg);
}

.page-arcade__accordion-content {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-arcade__accordion-content.active {
  max-height: 500px; /* Adjust based on expected content height */
  padding: 20px 25px;
}

.page-arcade__accordion-content p {
  color: #cccccc;
  line-height: 1.6;
}

.page-arcade__cta-section {
  text-align: center;
  padding: 100px 20px;
  background-color: #1A202C;
}

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

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

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding: 60px 20px;
  }

  .page-arcade__hero-title {
    font-size: 2.2em;
  }

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

  .page-arcade__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-arcade__button {
    width: 100%;
    max-width: 300px;
  }

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

  .page-arcade__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-arcade__about-section, .page-arcade__popular-games-section, .page-arcade__how-to-play-section, .page-arcade__responsible-gaming-section, .page-arcade__faq-section, .page-arcade__cta-section {
    padding: 60px 0;
  }

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

  .page-arcade__feature-card, .page-arcade__game-card, .page-arcade__step-card {
    padding: 25px;
  }

  .page-arcade__feature-icon, .page-arcade__game-image {
    max-width: 100%;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    height: auto; /* Ensure images are responsive */
  }

  .page-arcade__how-to-play-cta {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile content area overflow prevention */
  .page-arcade {
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-arcade__container {
    padding: 0 15px;
  }
  .page-arcade img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }
}