/* style/arcade.css */
.page-arcade {
  color: #333333; /* Default text color for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-arcade__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding: 0;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-arcade__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  padding: 20px;
  box-sizing: border-box;
}

.page-arcade__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #E3B505; /* Auxiliary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: bold;
  line-height: 1.2;
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-arcade__hero-button {
  display: inline-block;
  background-color: #E3B505; /* Auxiliary color */
  color: #0A2463; /* Main color for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-arcade__hero-button:hover {
  background-color: #f0c95a;
  transform: translateY(-2px);
}

.page-arcade__intro-section,
.page-arcade__game-categories-section,
.page-arcade__why-choose-section,
.page-arcade__how-to-play-section,
.page-arcade__faq-section,
.page-arcade__cta-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.page-arcade__intro-section {
  background-color: #ffffff;
}

.page-arcade__section-title {
  font-size: 2.5em;
  color: #0A2463; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-arcade__section-text {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-arcade__primary-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  background-color: #E3B505; /* Auxiliary color */
  color: #0A2463; /* Main color for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-arcade__primary-button:hover {
  background-color: #f0c95a;
  transform: translateY(-2px);
}

.page-arcade__primary-button--bottom {
  margin-top: 60px;
}

.page-arcade__game-categories-section {
  background-color: #f0f5fa; /* Light blue tint */
}

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

.page-arcade__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
}

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

.page-arcade__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-arcade__card-title {
  font-size: 1.8em;
  color: #0A2463; /* Main color */
  margin: 20px 15px 10px 15px;
  font-weight: bold;
}

.page-arcade__card-description {
  font-size: 1em;
  color: #666666;
  padding: 0 20px 20px 20px;
}

.page-arcade__card-button {
  display: inline-block;
  background-color: #0A2463; /* Main color */
  color: #E3B505; /* Auxiliary color for contrast */
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-arcade__card-button:hover {
  background-color: #1a3c7c;
  transform: translateY(-2px);
}

.page-arcade__why-choose-section {
  background-color: #ffffff;
}

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

.page-arcade__feature-item {
  text-align: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.page-arcade__feature-icon {
  width: 200px; /* Enforce min size */
  height: 150px; /* Enforce min size */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-arcade__feature-title {
  font-size: 1.5em;
  color: #0A2463; /* Main color */
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-arcade__how-to-play-section {
  background-color: #f0f5fa; /* Light blue tint */
}

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

.page-arcade__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-arcade__step-title {
  font-size: 1.6em;
  color: #E3B505; /* Auxiliary color */
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-arcade__faq-section {
  background-color: #ffffff;
}

.page-arcade__faq-list {
  margin-top: 40px;
}

.page-arcade__faq-item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eeeeee;
}

.page-arcade__faq-item:last-child {
  border-bottom: none;
}

.page-arcade__faq-question {
  font-size: 1.4em;
  color: #0A2463; /* Main color */
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: bold;
}

.page-arcade__faq-answer {
  font-size: 1em;
  color: #666666;
  padding-left: 20px;
  display: none; /* Initially hidden, can be toggled with JS */
}

.page-arcade__cta-section {
  background-color: #0A2463; /* Main color */
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-arcade__cta-section .page-arcade__section-title {
  color: #E3B505; /* Auxiliary color */
  margin-bottom: 20px;
}

.page-arcade__cta-section .page-arcade__section-text {
  color: #f0f0f0;
  margin-bottom: 50px;
}

.page-arcade__primary-button--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 2.8em;
  }
  .page-arcade__hero-description {
    font-size: 1.2em;
  }
  .page-arcade__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-arcade {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller mobile header if needed */
  }
  .page-arcade__hero-title {
    font-size: 2.2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-text {
    font-size: 0.95em;
  }
  .page-arcade__category-grid,
  .page-arcade__features-grid,
  .page-arcade__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-arcade__category-image,
  .page-arcade__feature-icon {
    height: auto; /* Allow height to adjust */
    width: 100%;
    max-width: 100%; /* Important for mobile overflow */
  }
  .page-arcade__primary-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-arcade__primary-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-arcade__intro-section, .page-arcade__game-categories-section, .page-arcade__why-choose-section, .page-arcade__how-to-play-section, .page-arcade__faq-section, .page-arcade__cta-section {
    padding: 40px 0;
  }
  .page-arcade__container {
    padding: 0 15px;
  }
  .page-arcade__faq-question {
    font-size: 1.2em;
  }
  .page-arcade__faq-answer {
    font-size: 0.95em;
  }
  /* Ensure all images within .page-arcade are responsive and do not cause overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.8em;
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__section-title {
    font-size: 1.5em;
  }
  .page-arcade__primary-button--large {
    font-size: 1em;
    padding: 12px 25px;
  }
}