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

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

.page-arcade__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF6D6;
  line-height: 1.2;
}

.page-arcade__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD36B;
}

/* Hero Section */
.page-arcade__hero-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.page-arcade__hero-content-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  padding: 0 15px;
  gap: 30px;
}

.page-arcade__hero-text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-arcade__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 900;
  color: #111111;
  margin-bottom: 15px;
  line-height: 1.1;
  max-width: 800px;
}

.page-arcade__hero-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
}

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

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

.page-arcade__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* About Section */
.page-arcade__about-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-arcade__about-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-arcade__about-text {
  flex: 1;
  min-width: 300px;
}

.page-arcade__about-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #FFF6D6;
}

.page-arcade__about-image-container {
  flex: 1;
  min-width: 300px;
}

.page-arcade__about-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Categories Section */
.page-arcade__categories-section {
  padding: 60px 0;
  background-color: #111111;
}

.page-arcade__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-arcade__category-card {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #FFF6D6;
}

.page-arcade__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: #FFD36B;
}

.page-arcade__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.5));
}

.page-arcade__category-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD36B;
}

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

/* Featured Games Section */
.page-arcade__featured-games-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

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

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

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

.page-arcade__game-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-arcade__game-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD36B;
}

.page-arcade__game-title a {
  color: #FFD36B;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-arcade__game-title a:hover {
  color: #F2C14E;
}

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

.page-arcade__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  align-self: flex-start;
}

/* Why Play Section */
.page-arcade__why-play-section {
  padding: 60px 0;
  background-color: #111111;
}

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

.page-arcade__feature-card {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: #FFD36B;
}

.page-arcade__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-arcade__feature-description {
  font-size: 1em;
  color: #FFF6D6;
}

.page-arcade__feature-image-container {
  text-align: center;
}

.page-arcade__feature-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Promotions Section */
.page-arcade__promotions-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-arcade__promo-card {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-arcade__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-arcade__promo-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-arcade__promo-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-arcade__promo-description {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-arcade__view-all-promos {
  text-align: center;
}

/* How to Start Section */
.page-arcade__how-to-start-section {
  padding: 60px 0;
  background-color: #111111;
}

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

.page-arcade__step-card {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-arcade__step-number {
  display: inline-flex;
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #333333; /* Dark text for light button background */
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade__step-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-arcade__step-description {
  font-size: 1em;
  color: #FFF6D6;
}

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

/* Responsible Gaming Section */
.page-arcade__responsible-gaming-section {
  padding: 60px 0;
  background-color: #0A0A0A;
  text-align: center;
}

/* Partners Section */
.page-arcade__partners-section {
  padding: 60px 0;
  background-color: #111111;
}

.page-arcade__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for 167x127 images */
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.page-arcade__partner-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__partner-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: #FFD36B;
}

.page-arcade__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  display: block;
}

/* FAQ Section */
.page-arcade__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-arcade__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-arcade__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #111111;
  color: #FFD36B;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-arcade__faq-question:hover {
  background-color: #222222;
}

.page-arcade__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

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

.page-arcade__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

/* Final CTA Section */
.page-arcade__cta-final-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  text-align: center;
}

.page-arcade__cta-final-section .page-arcade__section-title,
.page-arcade__cta-final-section .page-arcade__section-description {
  color: #111111;
}

/* Generic Button Styles */
.page-arcade__btn-primary,
.page-arcade__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-arcade__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #333333; /* Dark text for light gradient background */
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-arcade__btn-secondary {
  background-color: transparent;
  color: #FFD36B;
  border: 2px solid #FFD36B;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: #FFD36B;
  color: #111111;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Dark Section Specifics */
.page-arcade__dark-section .page-arcade__section-title,
.page-arcade__dark-section .page-arcade__section-description {
  color: #FFF6D6;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-arcade__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-arcade__about-content {
    flex-direction: column-reverse;
  }
  .page-arcade__about-image-container, .page-arcade__about-text {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-arcade__section-title {
    font-size: 2em;
  }
  .page-arcade__section-description {
    font-size: 1em;
  }

  .page-arcade__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-arcade__hero-content-wrapper {
    flex-direction: column;
    padding: 0 15px;
  }

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

  .page-arcade__btn-primary,
  .page-arcade__btn-secondary,
  .page-arcade a[class*="button"],
  .page-arcade a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-arcade__hero-cta-buttons,
  .page-arcade__start-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-arcade img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-arcade__categories-section,
  .page-arcade__featured-games-section,
  .page-arcade__why-play-section,
  .page-arcade__promotions-section,
  .page-arcade__how-to-start-section,
  .page-arcade__responsible-gaming-section,
  .page-arcade__partners-section,
  .page-arcade__faq-section,
  .page-arcade__cta-final-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-arcade__category-icon {
    width: 30px;
    height: 30px;
  }
  .page-arcade__partner-logo {
    width: 167px;
    height: 127px;
  }
  .page-arcade__game-image {
    height: auto; /* Allow auto height for mobile to prevent stretching */
  }
  .page-arcade__promo-image {
    height: auto; /* Allow auto height for mobile to prevent stretching */
  }
}

@media (max-width: 480px) {
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__category-card,
  .page-arcade__game-card,
  .page-arcade__feature-card,
  .page-arcade__promo-card,
  .page-arcade__step-card,
  .page-arcade__partner-item,
  .page-arcade__faq-item {
    padding: 15px;
  }
  .page-arcade__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }
  .page-arcade__faq-answer {
    padding: 0 15px;
  }
  .page-arcade__faq-item.active .page-arcade__faq-answer {
    padding: 15px !important;
  }
}