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

.page-arcade__hero-section {
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #0A192F 0%, #1a3a60 100%);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-arcade__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-arcade__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-arcade__cta-button--primary {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

.page-arcade__cta-button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-arcade__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-arcade__hero-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.page-arcade__section-title {
  font-size: 2.8em;
  color: #0A192F;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-arcade__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

.page-arcade__features-section,
.page-arcade__popular-games-section,
.page-arcade__getting-started-section,
.page-arcade__promotions-section,
.page-arcade__testimonials-section,
.page-arcade__cta-final-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

.page-arcade__feature-card,
.page-arcade__game-card,
.page-arcade__step-item,
.page-arcade__testimonial-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

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

.page-arcade__feature-icon {
  width: 250px;
  height: 187px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-arcade__feature-title {
  font-size: 1.8em;
  color: #0A192F;
  margin-bottom: 15px;
}

.page-arcade__feature-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-arcade__feature-link {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-arcade__feature-link:hover {
  color: #e6c200;
  border-color: #e6c200;
}

.page-arcade__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.page-arcade__game-title {
  font-size: 1.7em;
  color: #0A192F;
  margin-bottom: 10px;
}

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

.page-arcade__game-button {
  display: inline-block;
  background-color: #0A192F;
  color: #FFD700;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-arcade__game-button:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-2px);
}

.page-arcade__step-item {
  background-color: #f8f8f8;
  border: 1px solid #eeeeee;
  padding: 30px;
}

.page-arcade__step-number {
  font-size: 3em;
  color: #FFD700;
  font-weight: bold;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.page-arcade__step-number::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #0A192F;
  border-radius: 2px;
}

.page-arcade__step-title {
  font-size: 1.8em;
  color: #0A192F;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-arcade__step-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-arcade__step-button {
  display: inline-block;
  background-color: #FF4500;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-arcade__step-button:hover {
  background-color: #e03c00;
}

.page-arcade__promo-card {
  display: flex;
  flex-direction: column;
  background-color: #0A192F;
  color: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-arcade__promo-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-arcade__promo-content {
  padding: 30px;
  text-align: center;
}

.page-arcade__promo-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-arcade__promo-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-arcade__promo-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A192F;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-arcade__promo-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-arcade__testimonials-section {
  background-color: #f9f9f9;
}

.page-arcade__testimonial-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-arcade__testimonial-text {
  font-style: italic;
  color: #444444;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-arcade__testimonial-author {
  font-weight: bold;
  color: #0A192F;
  font-size: 0.95em;
}

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

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

.page-arcade__cta-final-section .page-arcade__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-arcade__cta-final-section .page-arcade__cta-button {
  margin: 0 10px;
}

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

@media (max-width: 768px) {
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-arcade__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__hero-image {
    opacity: 0.2;
  }
  .page-arcade__section-title {
    font-size: 2em;
  }
  .page-arcade__features-grid,
  .page-arcade__game-grid,
  .page-arcade__steps-grid,
  .page-arcade__testimonials-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__feature-card,
  .page-arcade__game-card,
  .page-arcade__step-item,
  .page-arcade__testimonial-card {
    padding: 25px;
  }
  .page-arcade__promo-card {
    flex-direction: column;
  }
  .page-arcade__promo-content {
    padding: 25px;
  }
  .page-arcade__promo-title {
    font-size: 1.8em;
  }
  .page-arcade__promo-text {
    font-size: 1em;
  }

  /* Critical: Ensure images do not overflow on mobile */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  /* Specific content area images */
  .page-arcade__feature-icon,
  .page-arcade__game-image,
  .page-arcade__promo-image {
    width: 100%; /* Ensure they take full width within their container */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__cta-button {
    width: 100%;
  }
  .page-arcade__promo-button {
    width: 100%;
  }
}

/* Ensure all content area images meet minimum size requirements */
.page-arcade__features-section img,
.page-arcade__popular-games-section img,
.page-arcade__getting-started-section img,
.page-arcade__promotions-section img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}