.page-arcade {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for aesthetic, body handles --header-offset */
}

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

.page-arcade__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
}

.page-arcade__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and content */
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-arcade__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-arcade__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Main color for emphasis */
}

.page-arcade__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

.page-arcade__cta-buttons--center {
  margin-top: 40px;
}

.page-arcade__btn-primary,
.page-arcade__btn-secondary,
.page-arcade__btn-play {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-arcade__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for contrast */
  border: none;
}

.page-arcade__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-arcade__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Main color for border */
}

.page-arcade__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-arcade__btn-play {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
  padding: 10px 20px;
  font-size: 0.95em;
  margin-top: 15px;
  border-radius: 6px;
}

.page-arcade__btn-play:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.page-arcade__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow color for titles */
}

.page-arcade__section-description {
  font-size: 1.05em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #FFF6D6; /* Text Main */
}

.page-arcade__dark-section {
  background-color: #0A0A0A; /* Background */
  padding: 80px 0;
}

.page-arcade__card {
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
}

.page-arcade__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* About Section */
.page-arcade__about-section {
  padding-top: 60px;
}

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

.page-arcade__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-arcade__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E; /* Main color */
}

.page-arcade__card-text {
  font-size: 0.95em;
  flex-grow: 1; /* Allow text to grow */
}

/* Games Showcase Section */
.page-arcade__games-showcase {
  padding-bottom: 60px;
}

.page-arcade__game-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.page-arcade__category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  text-decoration: none;
  color: #FFF6D6;
  background-color: #111111;
  border-radius: 50px;
  border: 1px solid #3A2A12;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-arcade__category-item:hover {
  background-color: rgba(242, 193, 78, 0.1);
  border-color: #F2C14E;
}

.page-arcade__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.page-arcade__category-name {
  font-size: 1.1em;
  font-weight: 500;
  white-space: nowrap;
}

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

.page-arcade__game-card {
  text-align: center;
  padding: 20px;
}

.page-arcade__game-image {
  width: 100%;
  height: 200px; /* Consistent height for game images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-arcade__game-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD36B; /* Glow color */
}

.page-arcade__game-description {
  font-size: 0.9em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-arcade__benefit-item {
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  border: 1px solid #3A2A12; /* Border */
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-arcade__benefit-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E; /* Main color */
}

.page-arcade__benefit-text {
  font-size: 0.95em;
  color: #FFF6D6;
  flex-grow: 1;
}

/* How to Play Section */
.page-arcade__how-to-play {
  padding-top: 60px;
  padding-bottom: 80px;
}

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

.page-arcade__step-card {
  text-align: center;
  padding: 30px;
}

.page-arcade__step-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD36B; /* Glow color */
}

.page-arcade__step-text {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-arcade__promotions-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

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

.page-arcade__promo-card {
  text-align: center;
  padding: 20px;
}

.page-arcade__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-arcade__promo-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2C14E;
}

.page-arcade__promo-text {
  font-size: 0.9em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-arcade__faq-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

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

.page-arcade__faq-item {
  margin-bottom: 15px;
  overflow: hidden; /* Ensure content is hidden when collapsed */
  padding: 0; /* Override default card padding */
}

.page-arcade__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-arcade__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-arcade__faq-question h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: #F2C14E; /* Main color */
  margin: 0;
  flex-grow: 1;
}

.page-arcade__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: #FFD36B; /* Glow color */
  margin-left: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.page-arcade__faq-item.active .page-arcade__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an 'x' or minus */
}

.page-arcade__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px; /* Initial padding */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #111111; /* Card BG */
  border-left: 1px solid #3A2A12;
  border-right: 1px solid #3A2A12;
  border-bottom: 1px solid #3A2A12;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.page-arcade__faq-item.active .page-arcade__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 30px 30px 30px; /* Final padding */
}

.page-arcade__faq-answer p {
  margin: 0;
  font-size: 0.95em;
  color: #FFF6D6; /* Text Main */
}

/* CTA Section */
.page-arcade__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.page-arcade__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-content {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .page-arcade {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 10px !important; /* Small aesthetic top padding */
  }

  .page-arcade__container {
    padding: 0 15px !important; /* Mobile padding */
  }

  .page-arcade__hero-section {
    padding-bottom: 40px;
  }

  .page-arcade__main-title {
    font-size: 2.2em; /* Adjust H1 for mobile */
  }

  .page-arcade__intro-text {
    font-size: 1em;
  }

  .page-arcade__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px; /* Add padding to container of buttons */
    box-sizing: border-box;
  }
  
  .page-arcade__btn-primary,
  .page-arcade__btn-secondary,
  .page-arcade__btn-play {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important; /* Ensure text inside button has padding */
    padding-right: 15px !important;
  }

  .page-arcade__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-arcade__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-arcade__dark-section {
    padding: 50px 0;
  }

  .page-arcade__content-grid,
  .page-arcade__game-grid,
  .page-arcade__benefits-list,
  .page-arcade__steps-grid,
  .page-arcade__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-arcade__card-image,
  .page-arcade__game-image,
  .page-arcade__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-arcade__game-categories {
    gap: 10px;
    margin-bottom: 30px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
  }
  
  .page-arcade__game-categories::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
  }

  .page-arcade__category-item {
    flex-shrink: 0;
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .page-arcade__faq-question {
    padding: 15px 20px;
  }

  .page-arcade__faq-question h3 {
    font-size: 1em;
  }
  
  .page-arcade__faq-answer {
    padding: 0 20px;
  }

  .page-arcade__faq-item.active .page-arcade__faq-answer {
    padding: 10px 20px 20px 20px;
  }

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