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

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

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Slightly darkens image for text readability, not changing color */
}

.page-arcade__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.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.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-arcade__button {
  display: inline-block;
  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__button--primary {
  background-color: #FFD700;
  color: #1A1A1A;
}

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

.page-arcade__button--secondary {
  background-color: #DC143C;
  color: #ffffff;
}

.page-arcade__button--secondary:hover {
  background-color: #c20f34;
  transform: translateY(-3px);
}

.page-arcade__button--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

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

.page-arcade__section {
  padding: 60px 20px;
  background-color: #1A1A1A;
}

.page-arcade__section--discover {
  background-color: #1A1A1A;
}

.page-arcade__section--games {
  background-color: #0d0d0d;
}

.page-arcade__section--why-choose {
  background-color: #1A1A1A;
}

.page-arcade__section--getting-started {
  background-color: #0d0d0d;
}

.page-arcade__section--responsible-gaming {
  background-color: #1A1A1A;
}

.page-arcade__section--faq {
  background-color: #0d0d0d;
}

.page-arcade__section--cta {
  background: linear-gradient(45deg, #DC143C, #FFD700);
  text-align: center;
  padding: 80px 20px;
}

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

.page-arcade__container--center {
  text-align: center;
}

.page-arcade__heading {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-arcade__text {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-arcade__game-image,
.page-arcade__feature-image {
  width: 100%;
  max-width: 400px; /* Constrain max width for content images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-arcade__step-number {
  font-size: 3em;
  color: #DC143C;
  font-weight: bold;
  margin-bottom: 15px;
}

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

.page-arcade__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade__faq-question {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  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.active {
  max-height: 200px; /* Adjust as needed for content */
  padding-top: 15px;
}

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

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding: 60px 15px;
    min-height: 450px;
  }
  .page-arcade__hero-title {
    font-size: 2.2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-arcade__heading {
    font-size: 2em;
  }
  .page-arcade__text {
    font-size: 0.95em;
  }
  .page-arcade__game-grid,
  .page-arcade__feature-grid,
  .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__game-image, 
  .page-arcade__feature-image {
    max-width: 100%; 
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  /* Enforce max-width for all images in content area to prevent overflow */
  .page-arcade img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-arcade__faq-question {
    font-size: 1.2em;
  }
  .page-arcade__faq-answer {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.8em;
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-arcade__heading {
    font-size: 1.8em;
  }
  .page-arcade__game-title,
  .page-arcade__feature-title,
  .page-arcade__step-title {
    font-size: 1.5em;
  }
  .page-arcade__step-number {
    font-size: 2.5em;
  }
}