.page-arcade-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default text color for dark sections */
  background-color: var(--background, #0A0A0A); /* Default background for the page */
}

.page-arcade-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-arcade-games__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--text-main, #FFF6D6);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-arcade-games__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-main, #FFF6D6);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Color Contrast Classes */
.page-arcade-games__dark-bg {
  background-color: var(--background, #0A0A0A);
  color: var(--text-main, #FFF6D6);
}

.page-arcade-games__light-bg {
  background-color: #111111; /* Card BG color for light sections */
  color: var(--text-main, #FFF6D6);
}

.page-arcade-games__card {
  background: var(--card-bg, #111111);
  color: var(--text-main, #FFF6D6);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow, #FFD36B);
}

.page-arcade-games__card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-main, #FFF6D6);
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-arcade-games__card-text {
  font-size: 16px;
  color: var(--text-main, #FFF6D6);
  line-height: 1.5;
}

.page-arcade-games__btn-primary,
.page-arcade-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-arcade-games__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow, #FFD36B);
}

.page-arcade-games__btn-secondary {
  background-color: transparent;
  color: var(--primary-color, #F2C14E);
  border: 2px solid var(--primary-color, #F2C14E);
}

.page-arcade-games__btn-secondary:hover {
  background-color: var(--primary-color, #F2C14E);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-arcade-games__cta-buttons--center {
  text-align: center;
}

/* Hero Section */
.page-arcade-games__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
}

.page-arcade-games__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

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

.page-arcade-games__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
  border-radius: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-arcade-games__main-title {
  font-size: clamp(36px, 5vw, 60px); /* Clamp for responsive H1 */
  color: #ffffff;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-arcade-games__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-arcade-games__intro-section {
  padding: 60px 0;
}

/* Why Choose Section */
.page-arcade-games__why-choose-section {
  padding: 60px 0;
}

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

.page-arcade-games__feature-image {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
  object-fit: cover;
  min-height: 200px;
}

/* Categories Section */
.page-arcade-games__categories-section {
  padding: 60px 0;
}

.page-arcade-games__category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-arcade-games__category-icon {
  width: 30px; /* Allowed small size for category icons */
  height: 30px; /* Allowed small size for category icons */
  object-fit: contain;
  margin-bottom: 10px;
}

.page-arcade-games__game-trial-frame {
  width: 100%;
  height: 250px; /* Example height for game iframe */
  border: none;
  border-radius: 5px;
  margin-top: 15px;
  background-color: rgba(0, 0, 0, 0.3);
}

/* Get Started Section */
.page-arcade-games__get-started-section {
  padding: 60px 0;
}

.page-arcade-games__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.page-arcade-games__step-item {
  text-align: center;
  padding: 30px;
}

.page-arcade-games__step-item .page-arcade-games__card-title {
  font-size: 24px;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 15px;
}

.page-arcade-games__step-item .page-arcade-games__btn-primary,
.page-arcade-games__step-item .page-arcade-games__btn-secondary {
  margin-top: 20px;
  width: auto; /* Allow buttons to size naturally */
  max-width: 250px;
}

/* Features Section */
.page-arcade-games__features-section {
  padding: 60px 0;
}

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

/* Mobile Gaming Section */
.page-arcade-games__mobile-section {
  padding: 60px 0;
}

.page-arcade-games__mobile-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-arcade-games__mobile-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-arcade-games__mobile-text .page-arcade-games__text-block {
  text-align: left;
}

.page-arcade-games__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-arcade-games__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow, #FFD36B);
  min-width: 200px;
  min-height: 200px;
}

/* Responsible Gaming Section */
.page-arcade-games__responsible-gaming-section {
  padding: 60px 0;
}

.page-arcade-games__responsible-content {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-arcade-games__responsible-text {
  flex: 1;
  min-width: 300px;
  text-align: right;
}

.page-arcade-games__responsible-text .page-arcade-games__text-block {
  text-align: right;
}

.page-arcade-games__responsible-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-arcade-games__responsible-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Strategy Section */
.page-arcade-games__strategy-section {
  padding: 60px 0;
}

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

/* Community Section */
.page-arcade-games__community-section {
  padding: 60px 0;
}

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

.page-arcade-games__testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
}

.page-arcade-games__testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color, #F2C14E);
  margin-bottom: 15px;
}

/* FAQ Section */
.page-arcade-games__faq-section {
  padding: 60px 0;
}

.page-arcade-games__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade-games__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
}

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: var(--text-main, #FFF6D6);
  background-color: #1a1a1a;
  border-bottom: 1px solid var(--border-color, #3A2A12);
  transition: background-color 0.3s ease;
}

.page-arcade-games__faq-question:hover {
  background-color: #2a2a2a;
}

.page-arcade-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color, #F2C14E);
}

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

.page-arcade-games__faq-answer {
  max-height: 0; /* Initial state: collapsed */
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
  max-height: 1000px !important; /* Ensure it expands to fit content */
  padding: 15px 25px; /* Adjust padding when active */
}

.page-arcade-games__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
  color: var(--text-main, #FFF6D6);
}

/* Conclusion Section */
.page-arcade-games__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade-games__main-title {
    font-size: clamp(32px, 6vw, 50px);
  }

  .page-arcade-games__hero-description {
    font-size: 18px;
  }

  .page-arcade-games__text-block {
    font-size: 16px;
  }

  .page-arcade-games__card-title {
    font-size: 20px;
  }

  .page-arcade-games__card-text {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-arcade-games__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-arcade-games__hero-content {
    padding: 30px 15px;
  }

  .page-arcade-games__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-arcade-games__hero-description {
    font-size: 16px;
  }

  .page-arcade-games__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-arcade-games__text-block {
    font-size: 15px;
  }

  .page-arcade-games__features-grid,
  .page-arcade-games__category-list,
  .page-arcade-games__steps-list,
  .page-arcade-games__feature-cards-grid,
  .page-arcade-games__tips-grid,
  .page-arcade-games__testimonials-grid {
    grid-template-columns: 1fr;
  }

  .page-arcade-games__mobile-content,
  .page-arcade-games__responsible-content {
    flex-direction: column;
  }

  .page-arcade-games__mobile-text,
  .page-arcade-games__responsible-text {
    text-align: center;
  }

  .page-arcade-games__mobile-text .page-arcade-games__text-block,
  .page-arcade-games__responsible-text .page-arcade-games__text-block {
    text-align: center;
  }

  .page-arcade-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary {
    width: 100% !important;
    max-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-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-arcade-games__section,
  .page-arcade-games__card,
  .page-arcade-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-arcade-games__game-trial-frame {
    height: 200px; /* Adjust height for mobile */
  }

  .page-arcade-games__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-arcade-games__faq-answer {
    padding: 0 20px;
  }

  .page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
    padding: 15px 20px;
  }
}