.page-arcade {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

.page-arcade__hero-section {
  background-color: #1A202C; /* Main color for hero background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-arcade__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Blend with background color */
  z-index: 0;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff; /* Light text on dark hero background */
  max-width: 800px;
  margin: 0 auto;
}

.page-arcade__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Accent color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 10px;
  cursor: pointer;
}

.page-arcade__button--primary {
  background-color: #FFD700; /* Accent color for primary button */
  color: #1A202C; /* Dark text on accent button */
}

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

.page-arcade__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Accent color for secondary button text */
  border: 2px solid #FFD700;
}

.page-arcade__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-3px);
}

.page-arcade__section-title {
  font-size: 2.5em;
  color: #1A202C;
  text-align: center;
  margin-bottom: 20px;
}

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

.page-arcade__games-overview {
  padding: 60px 20px;
  background-color: #f4f4f4;
}

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

.page-arcade__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-arcade__card-title {
  font-size: 1.8em;
  color: #1A202C;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-arcade__card-description {
  color: #666666;
  font-size: 1em;
  margin-bottom: 25px;
  padding: 0 20px;
}

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-arcade__why-juan365 {
  padding: 80px 20px;
  background-color: #e0e0e0;
}

.page-arcade__why-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.page-arcade__why-content {
  flex: 1;
  min-width: 300px;
}

.page-arcade__why-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-arcade__why-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-arcade__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-arcade__feature-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #444444;
}

.page-arcade__feature-item::before {
  content: '✔';
  color: #FFD700; /* Accent color for checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-arcade__cta-section {
  background-color: #1A202C; /* Main color for CTA background */
  padding: 80px 20px;
  text-align: center;
}

.page-arcade__cta-container {
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff; /* Light text on dark CTA background */
}

.page-arcade__cta-title {
  font-size: 2.8em;
  color: #FFD700; /* Accent color for CTA title */
  margin-bottom: 20px;
}

.page-arcade__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

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

@media (max-width: 768px) {
  .page-arcade__hero-title {
    font-size: 2.2em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__button {
    margin: 10px 5px;
    padding: 12px 25px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-description {
    font-size: 1em;
  }
  .page-arcade__game-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__why-container {
    flex-direction: column;
  }
  .page-arcade__why-content, .page-arcade__why-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-arcade__cta-title {
    font-size: 2em;
  }
  .page-arcade__cta-description {
    font-size: 1em;
  }

  /* Mobile content image constraint */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  .page-arcade__game-image, .page-arcade__why-image {
    min-width: 200px; /* Ensure minimum display size */
    min-height: 200px; /* Ensure minimum display size */
  }
}