/* style/arcade-games.css */
.page-arcade-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
}

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

.page-arcade-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-arcade-games__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000000;
}

.page-arcade-games__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Hero Section */
.page-arcade-games__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #000000, #444444);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-arcade-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
}

.page-arcade-games__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
}

.page-arcade-games__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-arcade-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-arcade-games__btn-primary {
  background-color: #FCBC45; /* Login color for primary action */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade-games__btn-primary:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-arcade-games__btn-secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-arcade-games__btn-secondary:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-arcade-games__btn-tertiary {
  background-color: #FFFFFF;
  color: #000000;
  border: 1px solid #e0e0e0;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-arcade-games__btn-tertiary:hover {
  background-color: #f0f0f0;
}

.page-arcade-games__btn-text {
  background: none;
  border: none;
  color: #000000;
  padding: 0;
  text-decoration: underline;
  font-size: 1em;
}

.page-arcade-games__btn-text:hover {
  color: #FCBC45;
}

/* Features Grid */
.page-arcade-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
  margin-top: 50px;
}

.page-arcade-games__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-arcade-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

/* Game Categories */
.page-arcade-games__game-categories {
  background-color: #f8f8f8;
}

.page-arcade-games__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-arcade-games__category-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e0e0e0;
}

.page-arcade-games__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  display: block;
}

.page-arcade-games__category-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #000000;
}

.page-arcade-games__category-card p {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Play */
.page-arcade-games__how-to-play {
  padding-bottom: 80px;
}

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

.page-arcade-games__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-arcade-games__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #000000;
}

.page-arcade-games__cta-center {
  margin-top: 60px;
}

/* Mobile App Section */
.page-arcade-games__mobile-app {
  background-color: #f0f0f0;
}

.page-arcade-games__mobile-app-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.page-arcade-games__mobile-app-content {
  flex: 1;
  min-width: 300px;
  padding-right: 40px;
}

.page-arcade-games__app-benefits-list {
  list-style: disc;
  margin: 20px 0 30px 20px;
  color: #333333;
}

.page-arcade-games__app-benefits-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

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

.page-arcade-games__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: block;
}

.page-arcade-games__small-text {
  font-size: 0.85em;
  color: #666666;
  margin-top: 15px;
}

/* Game Providers */
.page-arcade-games__game-providers {
  background-color: #ffffff;
}

.page-arcade-games__providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(167px, 1fr)); /* Fixed width for provider images */
  gap: 20px;
  margin-top: 50px;
  justify-content: center;
}

.page-arcade-games__provider-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #eee;
}

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

/* FAQ Section */
.page-arcade-games__faq-section {
  background-color: #f8f8f8;
  padding-bottom: 80px;
}

.page-arcade-games__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-arcade-games__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #000000;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-arcade-games__faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  flex-grow: 1;
}

.page-arcade-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-arcade-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

.page-arcade-games__faq-answer p {
  margin: 0;
}

/* Final CTA */
.page-arcade-games__cta-final {
  background-color: #000000; /* Dark background for final CTA */
  color: #FFFFFF;
  padding: 80px 0;
}

.page-arcade-games__cta-final .page-arcade-games__section-title {
  color: #FFFFFF;
}

.page-arcade-games__cta-final .page-arcade-games__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

.page-arcade-games__cta-final-content {
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade-games__hero-image {
    max-height: 400px;
  }
  .page-arcade-games__mobile-app-content,
  .page-arcade-games__mobile-app-image-wrapper {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .page-arcade-games__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
  }
  .page-arcade-games__section {
    padding: 40px 0;
  }
  .page-arcade-games__section-title {
    font-size: 2em;
  }
  .page-arcade-games__section-description {
    font-size: 1em;
  }
  .page-arcade-games__hero-title {
    font-size: clamp(2em, 8vw, 3em);
  }
  .page-arcade-games__hero-description {
    font-size: 1em;
  }
  .page-arcade-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary,
  .page-arcade-games__btn-tertiary,
  .page-arcade-games__btn-text,
  .page-arcade-games a[class*="button"],
  .page-arcade-games a[class*="btn"] {
    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-games__hero-cta-buttons,
  .page-arcade-games__button-group,
  .page-arcade-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-arcade-games__hero-cta-buttons {
    flex-direction: column;
  }
  .page-arcade-games__mobile-app-flex {
    flex-direction: column-reverse;
  }
  .page-arcade-games__mobile-app-content {
    padding-right: 0;
    text-align: center;
  }
  .page-arcade-games__mobile-app-image-wrapper {
    padding-left: 0;
    margin-bottom: 30px;
  }
  .page-arcade-games__app-benefits-list {
    text-align: left;
    margin-left: 0;
    padding-left: 20px;
  }
  .page-arcade-games img {
    max-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__providers-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .page-arcade-games__provider-logo {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-arcade-games__section-title {
    font-size: 1.8em;
  }
  .page-arcade-games__hero-title {
    font-size: clamp(1.8em, 9vw, 2.5em);
  }
  .page-arcade-games__feature-title,
  .page-arcade-games__category-title,
  .page-arcade-games__step-title {
    font-size: 1.2em;
  }
  .page-arcade-games__hero-image {
    max-height: 300px;
  }
}