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

.page-arcade-games__hero-section {
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding to avoid double header offset */
  text-align: center;
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-arcade-games__hero-image {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.page-arcade-games__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-arcade-games__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-arcade-games__hero-content h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-arcade-games__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-arcade-games__hero-ctas {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-arcade-games__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 150px;
  text-align: center;
}

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

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

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

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

.page-arcade-games__section {
  padding: 50px 20px;
  background-color: #FFFFFF;
  text-align: center;
}

.page-arcade-games__section:nth-of-type(even) {
  background-color: #F8F8F8;
}

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

.page-arcade-games__section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #000000;
}

.page-arcade-games__section-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #333333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade-games__image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-arcade-games__image--centered {
  margin-left: auto;
  margin-right: auto;
}

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

.page-arcade-games__feature-item {
  background-color: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-arcade-games__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000000;
}

.page-arcade-games__feature-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555;
}

.page-arcade-games__cta-container {
  margin-top: 40px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-arcade-games__category-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-arcade-games__category-image {
  width: 100%;
  height: 220px; /* Fixed height for category images */
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-arcade-games__category-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 15px;
  color: #000000;
}

.page-arcade-games__category-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-arcade-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 -15px 40px;
  text-align: left;
}

.page-arcade-games__step-item {
  background-color: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

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

.page-arcade-games__step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}

.page-arcade-games__link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: 600;
}

.page-arcade-games__link:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-arcade-games__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-arcade-games__hero-content h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .page-arcade-games__hero-description {
    font-size: 1rem;
  }

  .page-arcade-games__section {
    padding: 30px 15px;
  }

  .page-arcade-games__section-title {
    font-size: 1.7rem;
  }

  .page-arcade-games__feature-list,
  .page-arcade-games__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-arcade-games__btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Critical: Ensure images are not overflowing on mobile */
  .page-arcade-games__image,
  .page-arcade-games__category-image {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Re-assert min-width for mobile */
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-arcade-games__hero-ctas,
  .page-arcade-games__cta-container {
    flex-direction: column;
    gap: 10px;
  }

  .page-arcade-games__btn {
    width: 100%;
  }
}