.page-arcade-games {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-arcade-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding for internal content */
}

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

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

.page-arcade-games__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-arcade-games__hero-title {
  color: #FFD36B;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

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

.page-arcade-games__hero-button,
.page-arcade-games__game-button,
.page-arcade-games__step-button,
.page-arcade-games__cta-button {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.05em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-arcade-games__hero-button:hover,
.page-arcade-games__game-button:hover,
.page-arcade-games__step-button:hover,
.page-arcade-games__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.4);
}

.page-arcade-games__section-title {
  color: #FFD36B;
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 20px;
  padding-top: 60px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-arcade-games__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 1.05em;
  color: #CFCFCF;
}

.page-arcade-games__game-showcase {
  padding: 40px 20px;
}

.page-arcade-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-arcade-games__game-card {
  background-color: #111111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(255, 211, 107, 0.2);
}

.page-arcade-games__game-iframe {
  width: 100%;
  height: 200px; /* Minimum height for arcade game iframe */
  border: none;
  background-color: #000;
  margin-bottom: 15px;
}

.page-arcade-games__game-title {
  color: #F2C14E;
  font-size: 1.4em;
  margin-bottom: 15px;
  text-align: center;
  padding: 0 15px;
}

.page-arcade-games__view-all-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-arcade-games__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #F2C14E;
  color: #111111;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.page-arcade-games__view-all-button:hover {
  background-color: #FFD36B;
  transform: translateY(-2px);
}

.page-arcade-games__features-section {
  padding: 60px 20px;
  background-color: #0A0A0A;
}

.page-arcade-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-arcade-games__feature-card {
  background-color: #111111;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid #3A2A12;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-arcade-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(255, 211, 107, 0.15);
}

.page-arcade-games__feature-icon {
  width: 100%;
  max-width: 250px; /* Adjust max-width for content images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
  object-fit: cover;
}

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

.page-arcade-games__feature-description {
  color: #CFCFCF;
  font-size: 0.95em;
}

.page-arcade-games__how-to-play-section {
  padding: 60px 20px;
}

.page-arcade-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-arcade-games__step-card {
  background-color: #111111;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid #3A2A12;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #F2C14E;
  color: #111111;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-arcade-games__step-description {
  color: #CFCFCF;
  font-size: 0.95em;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-arcade-games__faq-section {
  padding: 60px 20px;
  background-color: #0A0A0A;
  max-width: 1000px;
  margin: 0 auto;
}

.page-arcade-games__faq-item {
  background-color: #111111;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid #3A2A12;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.page-arcade-games__faq-question {
  color: #F2C14E;
  font-size: 1.2em;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
}

.page-arcade-games__faq-answer {
  color: #CFCFCF;
  font-size: 1em;
  line-height: 1.5;
}

.page-arcade-games__cta-section {
  background-color: #111111;
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #3A2A12;
}

.page-arcade-games__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-arcade-games__cta-title {
  color: #FFD36B;
  font-size: 2.2em;
  margin-bottom: 20px;
  text-shadow: 0 0 6px rgba(255, 211, 107, 0.4);
}

.page-arcade-games__cta-description {
  font-size: 1.1em;
  color: #E5E5E5;
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-arcade-games__hero-title {
    font-size: clamp(2em, 4vw, 3em);
  }

  .page-arcade-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-arcade-games__hero-section {
    padding-bottom: 30px;
  }

  .page-arcade-games__hero-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }

  .page-arcade-games__hero-description,
  .page-arcade-games__section-description,
  .page-arcade-games__feature-description,
  .page-arcade-games__step-description,
  .page-arcade-games__faq-answer,
  .page-arcade-games__cta-description {
    font-size: 0.95em;
  }

  .page-arcade-games__hero-button,
  .page-arcade-games__game-button,
  .page-arcade-games__step-button,
  .page-arcade-games__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-arcade-games__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-arcade-games__game-grid,
  .page-arcade-games__features-grid,
  .page-arcade-games__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-arcade-games__game-iframe {
    height: 180px;
  }

  .page-arcade-games__feature-icon {
    max-width: 200px;
  }

  .page-arcade-games__cta-title {
    font-size: 1.8em;
  }

  /* Mobile image overflow prevention */
  .page-arcade-games__hero-image,
  .page-arcade-games__game-card img,
  .page-arcade-games__feature-icon {
    max-width: 100%;
    height: auto;
  }

  .page-arcade-games__game-iframe {
    max-width: 100%;
  }

  /* Ensure all content images in the main content area are responsive */
  .page-arcade-games img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure content area does not cause horizontal scroll */
  .page-arcade-games {
    overflow-x: hidden;
  }

  .page-arcade-games__hero-image-wrapper,
  .page-arcade-games__game-grid,
  .page-arcade-games__features-grid,
  .page-arcade-games__steps-grid,
  .page-arcade-games__faq-section,
  .page-arcade-games__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-arcade-games__hero-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-arcade-games__section-title {
    font-size: 1.5em;
  }

  .page-arcade-games__hero-description {
    font-size: 0.9em;
  }

  .page-arcade-games__game-iframe {
    height: 160px;
  }

  .page-arcade-games__cta-title {
    font-size: 1.5em;
  }
}