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

.page-arcade__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #1A2B4C 0%, #0d1a2c 100%); /* Dark gradient background */
  color: #ffffff;
  overflow: hidden; /* To contain the absolute positioned image */
}

.page-arcade__hero-container {
  position: relative;
  z-index: 2; /* Ensure text is above the image */
  max-width: 900px;
  padding: 60px 20px;
  margin: 0 auto;
}

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

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

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

.page-arcade__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Make the background image subtle */
}

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

.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-arcade__button--primary {
  background-color: #FFD700; /* Gold */
  color: #1A2B4C; /* Midnight Blue */
  border: 2px solid #FFD700;
}

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

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

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

.page-arcade__button--tertiary {
  background-color: #1A2B4C;
  color: #FFD700;
  border: 2px solid #1A2B4C;
}

.page-arcade__button--tertiary:hover {
  background-color: #0d1a2c;
  transform: translateY(-2px);
}

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

.page-arcade__button--large {
  padding: 18px 35px;
  font-size: 1.3em;
}

.page-arcade__introduction-section,
.page-arcade__game-categories,
.page-arcade__why-choose-us,
.page-arcade__how-to-play,
.page-arcade__responsible-gaming,
.page-arcade__faq-section,
.page-arcade__call-to-action {
  padding: 80px 20px;
  text-align: center;
}

.page-arcade__introduction-section,
.page-arcade__how-to-play {
  background-color: #f8f8f8;
}

.page-arcade__game-categories,
.page-arcade__why-choose-us,
.page-arcade__faq-section,
.page-arcade__call-to-action {
  background-color: #ffffff;
}

.page-arcade__section-title {
  font-size: 2.8em;
  color: #1A2B4C;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-arcade__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-arcade__introduction-container,
.page-arcade__game-categories-container,
.page-arcade__why-choose-container,
.page-arcade__how-to-play-container,
.page-arcade__responsible-gaming-container,
.page-arcade__faq-container,
.page-arcade__call-to-action-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-arcade__category-grid,
.page-arcade__features-grid,
.page-arcade__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade__category-card,
.page-arcade__feature-item,
.page-arcade__step-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-arcade__category-image,
.page-arcade__feature-icon {
  width: 100%;
  max-width: 400px; /* Ensure images are not too wide for cards */
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-arcade__feature-icon {
    max-width: 200px;
    height: 150px;
    object-fit: contain;
}

.page-arcade__card-title,
.page-arcade__feature-title,
.page-arcade__step-title {
  font-size: 1.8em;
  color: #1A2B4C;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-arcade__card-text a,
.page-arcade__feature-text a,
.page-arcade__faq-answer a {
  color: #1A2B4C;
  text-decoration: underline;
}

.page-arcade__card-text a:hover,
.page-arcade__feature-text a:hover,
.page-arcade__faq-answer a:hover {
  color: #FFD700;
}

.page-arcade__responsible-gaming {
  background-color: #1A2B4C;
  color: #ffffff;
}

.page-arcade__responsible-gaming .page-arcade__section-title {
  color: #FFD700;
}

.page-arcade__responsible-gaming .page-arcade__section-description {
  color: #f0f0f0;
}

.page-arcade__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-arcade__faq-question {
  font-size: 1.4em;
  color: #1A2B4C;
  margin-bottom: 10px;
  font-weight: 600;
}

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

.page-arcade__call-to-action {
  background: linear-gradient(45deg, #1A2B4C 0%, #FFD700 100%);
  color: #ffffff;
  padding: 100px 20px;
}

.page-arcade__call-to-action .page-arcade__section-title {
  color: #ffffff;
  font-size: 3em;
}

.page-arcade__call-to-action .page-arcade__section-description {
  color: #f0f0f0;
  font-size: 1.2em;
  margin-bottom: 50px;
}

.page-arcade__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-arcade__floating-button {
  background-color: #FFD700; /* Gold */
  color: #1A2B4C; /* Midnight Blue */
  border-radius: 50px;
  padding: 15px 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__floating-button--login {
  background-color: #1A2B4C;
  color: #FFD700;
  border: 2px solid #FFD700;
}

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

.page-arcade__floating-button--login:hover {
  background-color: #0d1a2c;
  color: #FFD700;
  border-color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 3em;
  }
  .page-arcade__section-title {
    font-size: 2.2em;
  }
  .page-arcade__category-grid,
  .page-arcade__features-grid,
  .page-arcade__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding: 40px 15px;
  }
  .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__button {
    width: 100%;
    max-width: 300px;
  }
  .page-arcade__introduction-section,
  .page-arcade__game-categories,
  .page-arcade__why-choose-us,
  .page-arcade__how-to-play,
  .page-arcade__responsible-gaming,
  .page-arcade__faq-section,
  .page-arcade__call-to-action {
    padding: 60px 15px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-description {
    font-size: 0.95em;
  }
  .page-arcade__category-card,
  .page-arcade__feature-item,
  .page-arcade__step-card {
    padding: 25px;
  }
  .page-arcade__category-image, .page-arcade__feature-icon {
    max-width: 100%; /* Ensures images scale down */
    height: auto; /* Maintains aspect ratio */
  }
  .page-arcade__card-title,
  .page-arcade__feature-title,
  .page-arcade__step-title {
    font-size: 1.5em;
  }
  .page-arcade__faq-question {
    font-size: 1.2em;
  }
  .page-arcade__call-to-action .page-arcade__section-title {
    font-size: 2.5em;
  }
  .page-arcade__floating-buttons {
    flex-direction: row;
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
    width: calc(100% - 30px);
    max-width: 400px;
    gap: 10px;
  }
  .page-arcade__floating-button {
    flex: 1;
    min-width: unset;
    padding: 12px 15px;
    font-size: 1em;
  }

  /* Mobile content area image overflow prevention */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__section-title {
    font-size: 1.6em;
  }
  .page-arcade__call-to-action .page-arcade__section-title {
    font-size: 2em;
  }
  .page-arcade__button--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }
}