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

.page-arcade__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #0A2463; /* Dark blue background for hero content area */
}

.page-arcade__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image to make text pop */
  margin-bottom: 30px;
}

.page-arcade__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 90%;
  z-index: 2;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for emphasis */
  line-height: 1.2;
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.6;
}

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

.page-arcade__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.page-arcade__btn--primary {
  background-color: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-arcade__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-arcade__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-arcade__btn--secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
  transform: translateY(-2px);
}

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

.page-arcade__section-title {
  font-size: 2.8em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-arcade__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__features-section,
.page-arcade__game-showcase,
.page-arcade__cta-section,
.page-arcade__faq-section,
.page-arcade__explore-more-section {
  padding: 60px 0;
}

.page-arcade__features-section {
  background-color: #f8f8f8;
}

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

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

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

.page-arcade__feature-icon {
  width: 250px;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Ensure it's not inline-block to prevent extra spacing */
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__card-title {
  font-size: 1.8em;
  color: #0A2463;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-arcade__card-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
}

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

.page-arcade__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-arcade__game-card .page-arcade__card-title {
  font-size: 1.5em;
  margin: 15px 20px 10px;
  color: #0A2463;
}

.page-arcade__game-card .page-arcade__card-description {
  font-size: 0.95em;
  color: #777777;
  padding: 0 20px 15px;
}

.page-arcade__btn--small {
  font-size: 0.9em;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background-color: #0A2463;
  color: #FFD700;
  border: 2px solid #0A2463;
}

.page-arcade__btn--small:hover {
  background-color: #1a3a7a;
  border-color: #1a3a7a;
}

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

.page-arcade__cta-section .page-arcade__section-title {
  color: #FFD700;
}

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

.page-arcade__cta-actions {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-arcade__btn--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-arcade__btn--large.page-arcade__btn--outline {
  background-color: transparent;
  border-color: #FFD700;
  color: #FFD700;
}

.page-arcade__btn--large.page-arcade__btn--outline:hover {
  background-color: #FFD700;
  color: #0A2463;
}

.page-arcade__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-arcade__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

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

.page-arcade__faq-answer {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

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

.page-arcade__explore-card {
  display: block;
  text-decoration: none;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-arcade__explore-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-arcade__explore-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.page-arcade__explore-card .page-arcade__card-title {
  font-size: 1.4em;
  margin: 15px 10px 20px;
  color: #0A2463;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 3em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__section-title {
    font-size: 2.2em;
  }
  .page-arcade__feature-icon,
  .page-arcade__game-image,
  .page-arcade__explore-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding-top: var(--header-offset, 120px);
  }
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__btn--large {
    width: 100%;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-subtitle {
    font-size: 1em;
  }
  .page-arcade__features-grid,
  .page-arcade__game-grid,
  .page-arcade__explore-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__feature-card,
  .page-arcade__game-card,
  .page-arcade__faq-item,
  .page-arcade__explore-card {
    padding: 20px;
  }
  .page-arcade__game-image {
    height: 200px; /* Adjust height for smaller screens */
  }
  .page-arcade__feature-icon {
    width: 200px; /* Min size for content images */
    height: auto;
  }
  .page-arcade__faq-question {
    font-size: 1.2em;
  }
  .page-arcade__btn--small {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
  }

  /* Critical: Prevent content overflow on mobile */
  .page-arcade * {
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-arcade img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-arcade {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__btn {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-arcade__section-title {
    font-size: 1.6em;
  }
}