/* style/arcade.css */
.page-arcade {
  color: #333333; /* Dark text for light body background */
}

.page-arcade__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #f8f9fa; /* Light background for hero */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-arcade__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.7); /* Slightly dim the image to make text pop */
  border-radius: 8px;
}

.page-arcade__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  max-width: 80%;
  z-index: 1;
}

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

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

.page-arcade__hero-button {
  display: inline-block;
  background-color: #007bff; /* Primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.page-arcade__hero-button:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

.page-arcade__introduction-section,
.page-arcade__game-categories,
.page-arcade__why-choose-section,
.page-arcade__how-to-play-section,
.page-arcade__faq-section,
.page-arcade__cta-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-arcade__introduction-container,
.page-arcade__categories-container,
.page-arcade__why-choose-container,
.page-arcade__how-to-play-container,
.page-arcade__faq-container,
.page-arcade__cta-container {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.page-arcade__introduction-title,
.page-arcade__categories-title,
.page-arcade__why-choose-title,
.page-arcade__how-to-play-title,
.page-arcade__faq-title,
.page-arcade__cta-title {
  font-size: 2.5em;
  color: #007bff; /* Primary color */
  margin-bottom: 30px;
  text-align: center;
}

.page-arcade__introduction-text,
.page-arcade__categories-description,
.page-arcade__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
  color: #555555;
}

.page-arcade__game-categories {
  background-color: #f0f8ff; /* Light blue tint for contrast */
}

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

.page-arcade__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-arcade__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-arcade__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #007bff; /* Primary color */
  line-height: 1.3;
}

.page-arcade__card-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-arcade__card-link:hover {
  color: #0056b3;
}

.page-arcade__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-arcade__card-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color */
  color: #333333;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  text-align: center;
  align-self: flex-start;
}

.page-arcade__card-button:hover {
  background-color: #e0a800;
}

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

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

.page-arcade__feature-icon {
  width: 200px; /* Min size for content images */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-arcade__feature-heading {
  font-size: 1.5em;
  color: #007bff; /* Primary color */
  margin-bottom: 15px;
}

.page-arcade__feature-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666666;
}

.page-arcade__how-to-play-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-arcade__how-to-play-list-item {
  background-color: #f0f8ff; /* Light blue tint */
  border-left: 5px solid #007bff; /* Primary color accent */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.page-arcade__list-item-title {
  font-size: 1.6em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-arcade__list-item-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-arcade__list-item-button {
  display: inline-block;
  background-color: #ffc107;
  color: #333333;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-arcade__list-item-button:hover {
  background-color: #e0a800;
}

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

.page-arcade__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-arcade__faq-question {
  font-size: 1.2em;
  color: #007bff;
  padding: 20px 25px;
  margin: 0;
  cursor: pointer;
  background-color: #eaf6ff; /* Lighter blue for question */
  position: relative;
  transition: background-color 0.3s ease;
}

.page-arcade__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #007bff;
  transition: transform 0.3s ease;
}

.page-arcade__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-arcade__faq-answer {
  font-size: 1em;
  color: #555555;
  padding: 0 25px 20px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-arcade__faq-answer.active {
  max-height: 200px; /* Adjust as needed */
  padding: 0 25px 20px;
}

.page-arcade__faq-link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.page-arcade__faq-link:hover {
  text-decoration: underline;
}

.page-arcade__cta-section {
  background-color: #007bff; /* Primary color for strong CTA */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  border-radius: 8px;
}

.page-arcade__cta-title {
  color: #ffc107; /* Auxiliary color for contrast */
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-arcade__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__cta-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color */
  color: #333333;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-arcade__cta-button:hover {
  background-color: #e0a800;
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 2.8em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__introduction-title,
  .page-arcade__categories-title,
  .page-arcade__why-choose-title,
  .page-arcade__how-to-play-title,
  .page-arcade__faq-title,
  .page-arcade__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding: 40px 15px;
  }
  .page-arcade__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-arcade__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-arcade__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-arcade__introduction-section,
  .page-arcade__game-categories,
  .page-arcade__why-choose-section,
  .page-arcade__how-to-play-section,
  .page-arcade__faq-section,
  .page-arcade__cta-section {
    padding: 40px 15px;
  }
  .page-arcade__introduction-container,
  .page-arcade__categories-container,
  .page-arcade__why-choose-container,
  .page-arcade__how-to-play-container,
  .page-arcade__faq-container,
  .page-arcade__cta-container {
    padding: 25px;
  }
  .page-arcade__introduction-title,
  .page-arcade__categories-title,
  .page-arcade__why-choose-title,
  .page-arcade__how-to-play-title,
  .page-arcade__faq-title,
  .page-arcade__cta-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-arcade__introduction-text,
  .page-arcade__categories-description,
  .page-arcade__cta-description {
    font-size: 0.95em;
    margin-bottom: 15px;
  }
  .page-arcade__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-arcade__card-title {
    font-size: 1.5em;
  }
  .page-arcade__card-image {
    height: 200px;
  }
  .page-arcade__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-arcade__how-to-play-list-item {
    padding: 20px;
  }
  .page-arcade__list-item-title {
    font-size: 1.4em;
  }
  .page-arcade__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-arcade__cta-title {
    font-size: 2.em;
  }
  /* Ensure all images within .page-arcade are responsive and don't overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  .page-arcade__hero-content {
    max-width: 90%;
  }
  .page-arcade__hero-image {
    filter: brightness(0.6);
  }
  .page-arcade {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.8em;
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-arcade__introduction-title,
  .page-arcade__categories-title,
  .page-arcade__why-choose-title,
  .page-arcade__how-to-play-title,
  .page-arcade__faq-title,
  .page-arcade__cta-title {
    font-size: 1.6em;
  }
  .page-arcade__card-title {
    font-size: 1.3em;
  }
  .page-arcade__list-item-title {
    font-size: 1.2em;
  }
  .page-arcade__faq-question {
    font-size: 1em;
  }
  .page-arcade__cta-title {
    font-size: 1.8em;
  }
  .page-arcade__feature-icon {
    width: 150px; /* Still above 200px as per content, but adjusted for mobile visual */
    height: 112px;
  }
}