.page-arcade {
  color: #FFF6D6; /* Main text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0A0A0A; /* Body background from shared.css */
}

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

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  background-color: #0A0A0A; /* Ensure background matches body */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 600px; /* Ensure hero section has a decent height */
}

.page-arcade__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-arcade__hero-content {
  position: relative; /* Ensure content is above the image visually */
  z-index: 2; /* Ensure text is above dimming filter */
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image */
  background: rgba(17, 17, 17, 0.7); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #3A2A12; /* Border color */
}

.page-arcade__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #FFD36B; /* Glow color for title */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.7);
}

.page-arcade__description {
  font-size: 1.1rem;
  color: #FFF6D6;
  margin-bottom: 30px;
}

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

.page-arcade__btn-primary,
.page-arcade__btn-secondary,
.page-arcade__btn-play {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.page-arcade__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #333333; /* Ensuring contrast for light background */
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.3);
}

.page-arcade__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 211, 107, 0.5);
}

.page-arcade__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow color */
  border: 1px solid #FFD36B;
}

.page-arcade__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.3);
}

.page-arcade__btn-play {
  background: #F2C14E; /* Main color */
  color: #333333; /* Ensuring contrast */
  padding: 8px 15px;
  font-size: 0.9rem;
  border-radius: 5px;
}

.page-arcade__btn-play:hover {
  background: #FFD36B;
}

/* General Section Styling */
.page-arcade__intro-section,
.page-arcade__game-categories-section,
.page-arcade__featured-games-section,
.page-arcade__getting-started-section,
.page-arcade__promotions-section,
.page-arcade__mobile-gaming-section,
.page-arcade__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-arcade__why-choose-section,
.page-arcade__security-section,
.page-arcade__cta-final-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG for dark sections */
  color: #FFF6D6;
}

.page-arcade__section-title {
  font-size: 2.2rem;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-arcade__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #FFD36B; /* Glow color */
  border-radius: 5px;
}

.page-arcade__text-block {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-arcade__category-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-arcade__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-arcade__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: brightness(1.2); /* Enhance visibility on dark background */
}

.page-arcade__category-title {
  font-size: 1.3rem;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-arcade__category-description {
  font-size: 0.95rem;
  color: #FFF6D6;
}

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

.page-arcade__game-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-arcade__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-arcade__game-card h3,
.page-arcade__game-card p,
.page-arcade__game-card a {
  padding: 0 20px;
}

.page-arcade__game-title {
  font-size: 1.2rem;
  color: #F2C14E;
  margin: 20px 0 10px;
}

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

.page-arcade__game-card .page-arcade__btn-play {
  margin: 0 20px 20px;
  align-self: flex-start; /* Align button to start */
}

/* Why Choose Section */
.page-arcade__features-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-arcade__features-list li {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for list items */
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.05rem;
  border-left: 4px solid #F2C14E;
  color: #FFF6D6;
}

.page-arcade__features-list li strong {
  color: #FFD36B;
}

/* Getting Started Section */
.page-arcade__steps-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 40px auto;
  max-width: 800px;
  counter-reset: step-counter;
}

.page-arcade__steps-list li {
  counter-increment: step-counter;
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  margin-bottom: 20px;
  padding: 20px 25px 20px 60px;
  border-radius: 8px;
  position: relative;
  font-size: 1rem;
  color: #FFF6D6;
}

.page-arcade__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #F2C14E; /* Main color */
  color: #333333; /* Ensuring contrast */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.page-arcade__steps-list li strong {
  color: #FFD36B;
}

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

.page-arcade__promo-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-arcade__promo-card:hover {
  transform: translateY(-5px);
}

.page-arcade__promo-title {
  font-size: 1.5rem;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-arcade__promo-description {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 25px;
}

/* Security Section */
.page-arcade__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Mobile Gaming Section */
.page-arcade__mobile-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.page-arcade__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-arcade__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  color: #F2C14E;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-arcade__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-arcade__faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: inherit; /* Inherit color from parent for consistency */
}

.page-arcade__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFD36B; /* Glow color */
  transition: transform 0.3s ease;
}

.page-arcade__faq-item.active .page-arcade__faq-toggle {
  transform: rotate(45deg);
}

.page-arcade__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
  font-size: 0.95rem;
}

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

.page-arcade__faq-answer p {
  margin: 0;
  color: inherit;
}

/* Final CTA Section */
.page-arcade__cta-final-section {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-content {
    margin-top: -100px;
  }
  .page-arcade__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-arcade__section-title {
    font-size: 2rem;
  }
  .page-arcade__features-list,
  .page-arcade__steps-list {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding top */
    min-height: 450px;
  }
  .page-arcade__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 25px 15px;
  }
  .page-arcade__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-arcade__description {
    font-size: 1rem;
  }
  .page-arcade__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .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;
    padding-right: 15px;
  }

  .page-arcade__intro-section,
  .page-arcade__game-categories-section,
  .page-arcade__featured-games-section,
  .page-arcade__why-choose-section,
  .page-arcade__getting-started-section,
  .page-arcade__promotions-section,
  .page-arcade__security-section,
  .page-arcade__mobile-gaming-section,
  .page-arcade__faq-section,
  .page-arcade__cta-final-section {
    padding: 40px 0;
  }
  .page-arcade__container {
    padding: 0 15px; /* Add horizontal padding to containers */
  }
  .page-arcade__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-arcade__categories-grid,
  .page-arcade__games-grid,
  .page-arcade__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-arcade__category-card,
  .page-arcade__game-card,
  .page-arcade__promo-card,
  .page-arcade__faq-item {
    padding: 20px;
  }
  .page-arcade__game-image {
    height: 180px;
  }
  .page-arcade__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-arcade__faq-question h3 {
    font-size: 1rem;
  }
  .page-arcade__faq-answer {
    padding: 0 20px;
  }
  .page-arcade__faq-item.active .page-arcade__faq-answer {
    padding: 10px 20px;
  }
  .page-arcade img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-arcade__section,
  .page-arcade__card,
  .page-arcade__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-arcade__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-content {
    margin-top: -60px;
    padding: 20px 10px;
  }
  .page-arcade__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-arcade__description {
    font-size: 0.9rem;
  }
  .page-arcade__section-title {
    font-size: 1.5rem;
  }
  .page-arcade__features-list li,
  .page-arcade__steps-list li {
    font-size: 0.95rem;
    padding: 15px 15px 15px 50px;
  }
  .page-arcade__steps-list li::before {
    left: 15px;
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }
  .page-arcade__game-image {
    height: 150px;
  }
}